2010-12-10 Tristan Gingold <gingold@adacore.com>
[deliverable/binutils-gdb.git] / configure
... / ...
CommitLineData
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_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.
43if 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 --'
47elif (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'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
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
99IFS=$as_save_IFS
100
101 ;;
102esac
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.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if 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
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test 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
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
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
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376else
377 as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382else
383 as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484else
485 as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527exec 7<&0 </dev/null 6>&1
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534#
535# Initializations.
536#
537ac_default_prefix=/usr/local
538ac_clean_files=
539ac_config_libobj_dir=.
540LIBOBJS=
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
552PACKAGE_URL=
553
554ac_unique_file="move-if-change"
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
581GOC_FOR_TARGET
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
614GOC_FOR_BUILD
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
624target_configdirs
625configdirs
626build_configdirs
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
634target_configargs
635host_configargs
636build_configargs
637BUILD_CONFIG
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
643extra_host_libiberty_configure_flags
644clooginc
645clooglibs
646pplinc
647ppllibs
648poststage1_ldflags
649poststage1_libs
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
674AWK
675SED
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
744enable_ld
745enable_libada
746enable_libssp
747enable_build_with_cxx
748with_mpc
749with_mpc_include
750with_mpc_lib
751with_mpfr_dir
752with_mpfr
753with_mpfr_include
754with_mpfr_lib
755with_gmp_dir
756with_gmp
757with_gmp_include
758with_gmp_lib
759with_host_libstdcxx
760with_stage1_ldflags
761with_stage1_libs
762with_boot_libs
763with_boot_ldflags
764with_ppl
765with_ppl_include
766with_ppl_lib
767enable_ppl_version_check
768with_cloog
769with_cloog_include
770with_cloog_lib
771enable_cloog_backend
772enable_cloog_version_check
773enable_lto
774enable_stage1_languages
775enable_objc_gc
776with_build_sysroot
777with_debug_prefix_map
778enable_bootstrap
779with_build_config
780enable_serial_configure
781with_build_time_tools
782enable_maintainer_mode
783enable_stage1_checking
784enable_werror
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CXX
795CXXFLAGS
796CCC
797build_configargs
798host_configargs
799target_configargs
800AR
801AS
802DLLTOOL
803LD
804LIPO
805NM
806RANLIB
807STRIP
808WINDRES
809WINDMC
810OBJCOPY
811OBJDUMP
812CC_FOR_TARGET
813CXX_FOR_TARGET
814GCC_FOR_TARGET
815GCJ_FOR_TARGET
816GFORTRAN_FOR_TARGET
817GOC_FOR_TARGET
818AR_FOR_TARGET
819AS_FOR_TARGET
820DLLTOOL_FOR_TARGET
821LD_FOR_TARGET
822LIPO_FOR_TARGET
823NM_FOR_TARGET
824OBJDUMP_FOR_TARGET
825RANLIB_FOR_TARGET
826STRIP_FOR_TARGET
827WINDRES_FOR_TARGET
828WINDMC_FOR_TARGET'
829
830
831# Initialize some variables set by options.
832ac_init_help=
833ac_init_version=false
834ac_unrecognized_opts=
835ac_unrecognized_sep=
836# The variables have the same names as the options, with
837# dashes changed to underlines.
838cache_file=/dev/null
839exec_prefix=NONE
840no_create=
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
849verbose=
850x_includes=NONE
851x_libraries=NONE
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
858# (The list follows the same order as the GNU Coding Standards.)
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
869docdir='${datarootdir}/doc/${PACKAGE}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
878
879ac_prev=
880ac_dashdash=
881for ac_option
882do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
889
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
894
895 # Accept the important Cygnus configure options, so we can diagnose typos.
896
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
905
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
920
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
925
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
958
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968"enable_$ac_useropt"
969"*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
994
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
999
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1029
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1103
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1162
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1178
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1212
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information."
1215 ;;
1216
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1226
1227 *)
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1233 ;;
1234
1235 esac
1236done
1237
1238if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error "missing argument to $ac_option"
1241fi
1242
1243if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1249fi
1250
1251# Check all directory arguments for consistency.
1252for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1256do
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1270done
1271
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
1278
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
1295
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1302
1303
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
1331 srcdir=$ac_confdir
1332 if test ! -r "$srcdir/$ac_unique_file"; then
1333 srcdir=..
1334 fi
1335else
1336 ac_srcdir_defaulted=no
1337fi
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356case $srcdir in
1357 *" "*)
1358 as_fn_error "path to source, $srcdir, contains spaces"
1359 ;;
1360esac
1361ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1362
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377\`configure' configures this package to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
1397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
1399 [$ac_default_prefix]
1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1401 [PREFIX]
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447
1448 cat <<\_ACEOF
1449
1450Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1455 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1456 --enable-libada build libada directory
1457 --enable-libssp build libssp directory
1458 --enable-build-with-cxx build with C++ compiler instead of C compiler
1459 --disable-ppl-version-check disable check for PPL version
1460 --enable-cloog-backend[=BACKEND]
1461 set the CLooG BACKEND used to either isl, ppl or
1462 ppl-legacy (default)
1463 --disable-cloog-version-check
1464 disable check for CLooG version
1465 --enable-lto enable link time optimization support
1466 --enable-stage1-languages[=all] choose additional languages to build during
1467 stage1. Mostly useful for compiler development.
1468 --enable-objc-gc enable use of Boehm's garbage collector with the
1469 GNU Objective-C runtime
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --enable-serial-[{host,target,build}-]configure
1472 force sequential configuration of
1473 sub-packages for the host, target or build
1474 machine, or all sub-packages
1475 --enable-maintainer-mode enable make rules and dependencies not useful
1476 (and sometimes confusing) to the casual installer
1477 --enable-stage1-checking[=all] choose additional checking for stage1
1478 of the compiler
1479 --enable-werror enable -Werror in bootstrap stage2 and later
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-build-libsubdir=DIR Directory where to find libraries for build system
1485 --with-mpc=PATH specify prefix directory for installed MPC package.
1486 Equivalent to --with-mpc-include=PATH/include
1487 plus --with-mpc-lib=PATH/lib
1488 --with-mpc-include=PATH
1489 specify directory for installed MPC include files
1490 --with-mpc-lib=PATH specify directory for the installed MPC library
1491 --with-mpfr-dir=PATH this option has been REMOVED
1492 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1493 Equivalent to --with-mpfr-include=PATH/include
1494 plus --with-mpfr-lib=PATH/lib
1495 --with-mpfr-include=PATH
1496 specify directory for installed MPFR include files
1497 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1498 --with-gmp-dir=PATH this option has been REMOVED
1499 --with-gmp=PATH specify prefix directory for the installed GMP package.
1500 Equivalent to --with-gmp-include=PATH/include
1501 plus --with-gmp-lib=PATH/lib
1502 --with-gmp-include=PATH specify directory for installed GMP include files
1503 --with-gmp-lib=PATH specify directory for the installed GMP library
1504 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1505 when linking with PPL
1506 --with-stage1-ldflags=FLAGS Linker flags for stage1
1507 -with-stage1-libs=LIBS Libraries for stage1
1508 --with-boot-libs=LIBS Libraries for stage2 and later
1509 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1510 --with-ppl=PATH Specify prefix directory for the installed PPL package
1511 Equivalent to --with-ppl-include=PATH/include
1512 plus --with-ppl-lib=PATH/lib
1513 --with-ppl-include=PATH Specify directory for installed PPL include files
1514 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1515 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1516 package. Equivalent to
1517 --with-cloog-include=PATH/include plus
1518 --with-cloog-lib=PATH/lib
1519 --with-cloog-include=PATH
1520 Specify directory for installed CLooG include files
1521 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1522 library
1523 --with-build-sysroot=SYSROOT
1524 use sysroot as the system root during the build
1525 --with-debug-prefix-map='A=B C=D ...'
1526 map A to B, C to D ... in debug information
1527--with-build-config='NAME NAME2...'
1528 Use config/NAME.mk build configuration
1529 --with-build-time-tools=PATH
1530 use given path to find target tools during the build
1531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
1542 build_configargs
1543 additional configure arguments for build directories
1544 host_configargs
1545 additional configure arguments for host directories
1546 target_configargs
1547 additional configure arguments for target directories
1548 AR AR for the host
1549 AS AS for the host
1550 DLLTOOL DLLTOOL for the host
1551 LD LD for the host
1552 LIPO LIPO for the host
1553 NM NM for the host
1554 RANLIB RANLIB for the host
1555 STRIP STRIP for the host
1556 WINDRES WINDRES for the host
1557 WINDMC WINDMC for the host
1558 OBJCOPY OBJCOPY for the host
1559 OBJDUMP OBJDUMP for the host
1560 CC_FOR_TARGET
1561 CC for the target
1562 CXX_FOR_TARGET
1563 CXX for the target
1564 GCC_FOR_TARGET
1565 GCC for the target
1566 GCJ_FOR_TARGET
1567 GCJ for the target
1568 GFORTRAN_FOR_TARGET
1569 GFORTRAN for the target
1570 GOC_FOR_TARGET
1571 GOC for the target
1572 AR_FOR_TARGET
1573 AR for the target
1574 AS_FOR_TARGET
1575 AS for the target
1576 DLLTOOL_FOR_TARGET
1577 DLLTOOL for the target
1578 LD_FOR_TARGET
1579 LD for the target
1580 LIPO_FOR_TARGET
1581 LIPO for the target
1582 NM_FOR_TARGET
1583 NM for the target
1584 OBJDUMP_FOR_TARGET
1585 OBJDUMP for the target
1586 RANLIB_FOR_TARGET
1587 RANLIB for the target
1588 STRIP_FOR_TARGET
1589 STRIP for the target
1590 WINDRES_FOR_TARGET
1591 WINDRES for the target
1592 WINDMC_FOR_TARGET
1593 WINDMC for the target
1594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
1598Report bugs to the package provider.
1599_ACEOF
1600ac_status=$?
1601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
1609 ac_builddir=.
1610
1611case "$ac_dir" in
1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613*)
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621esac
1622ac_abs_top_builddir=$ac_pwd
1623ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624# for backward compatibility:
1625ac_top_builddir=$ac_top_build_prefix
1626
1627case $srcdir in
1628 .) # We are building in place.
1629 ac_srcdir=.
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1633 ac_srcdir=$srcdir$ac_dir_suffix;
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640esac
1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1651 else
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1655 done
1656fi
1657
1658test -n "$ac_init_help" && exit $ac_status
1659if $ac_init_version; then
1660 cat <<\_ACEOF
1661configure
1662generated by GNU Autoconf 2.64
1663
1664Copyright (C) 2009 Free Software Foundation, Inc.
1665This configure script is free software; the Free Software Foundation
1666gives unlimited permission to copy, distribute and modify it.
1667_ACEOF
1668 exit
1669fi
1670
1671## ------------------------ ##
1672## Autoconf initialization. ##
1673## ------------------------ ##
1674
1675# ac_fn_c_try_compile LINENO
1676# --------------------------
1677# Try to compile conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_compile ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707fi
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
1710
1711} # ac_fn_c_try_compile
1712
1713# ac_fn_cxx_try_compile LINENO
1714# ----------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_cxx_try_compile ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745fi
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1748
1749} # ac_fn_cxx_try_compile
1750
1751# ac_fn_c_try_link LINENO
1752# -----------------------
1753# Try to link conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_link ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 $as_test_x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 return $ac_retval
1794
1795} # ac_fn_c_try_link
1796cat >config.log <<_ACEOF
1797This file contains any messages produced by compilers while
1798running configure, to aid debugging if configure makes a mistake.
1799
1800It was created by $as_me, which was
1801generated by GNU Autoconf 2.64. Invocation command line was
1802
1803 $ $0 $@
1804
1805_ACEOF
1806exec 5>>config.log
1807{
1808cat <<_ASUNAME
1809## --------- ##
1810## Platform. ##
1811## --------- ##
1812
1813hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817uname -v = `(uname -v) 2>/dev/null || echo unknown`
1818
1819/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1821
1822/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1823/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1824/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1825/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1826/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1827/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1828/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1829
1830_ASUNAME
1831
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
1837 $as_echo "PATH: $as_dir"
1838 done
1839IFS=$as_save_IFS
1840
1841} >&5
1842
1843cat >&5 <<_ACEOF
1844
1845
1846## ----------- ##
1847## Core tests. ##
1848## ----------- ##
1849
1850_ACEOF
1851
1852
1853# Keep a trace of the command line.
1854# Strip out --no-create and --no-recursion so they do not pile up.
1855# Strip out --silent because we don't want to record it for future runs.
1856# Also quote any args containing shell meta-characters.
1857# Make two passes to allow for proper duplicate-argument suppression.
1858ac_configure_args=
1859ac_configure_args0=
1860ac_configure_args1=
1861ac_must_keep_next=false
1862for ac_pass in 1 2
1863do
1864 for ac_arg
1865 do
1866 case $ac_arg in
1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869 | -silent | --silent | --silen | --sile | --sil)
1870 continue ;;
1871 *\'*)
1872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 esac
1874 case $ac_pass in
1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1876 2)
1877 as_fn_append ac_configure_args1 " '$ac_arg'"
1878 if test $ac_must_keep_next = true; then
1879 ac_must_keep_next=false # Got value, back to normal.
1880 else
1881 case $ac_arg in
1882 *=* | --config-cache | -C | -disable-* | --disable-* \
1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885 | -with-* | --with-* | -without-* | --without-* | --x)
1886 case "$ac_configure_args0 " in
1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888 esac
1889 ;;
1890 -* ) ac_must_keep_next=true ;;
1891 esac
1892 fi
1893 as_fn_append ac_configure_args " '$ac_arg'"
1894 ;;
1895 esac
1896 done
1897done
1898{ ac_configure_args0=; unset ac_configure_args0;}
1899{ ac_configure_args1=; unset ac_configure_args1;}
1900
1901# When interrupted or exit'd, cleanup temporary files, and complete
1902# config.log. We remove comments because anyway the quotes in there
1903# would cause problems or look ugly.
1904# WARNING: Use '\'' to represent an apostrophe within the trap.
1905# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1906trap 'exit_status=$?
1907 # Save into config.log some information that might help in debugging.
1908 {
1909 echo
1910
1911 cat <<\_ASBOX
1912## ---------------- ##
1913## Cache variables. ##
1914## ---------------- ##
1915_ASBOX
1916 echo
1917 # The following way of writing the cache mishandles newlines in values,
1918(
1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in #(
1922 *${as_nl}*)
1923 case $ac_var in #(
1924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926 esac
1927 case $ac_var in #(
1928 _ | IFS | as_nl) ;; #(
1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930 *) { eval $ac_var=; unset $ac_var;} ;;
1931 esac ;;
1932 esac
1933 done
1934 (set) 2>&1 |
1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936 *${as_nl}ac_space=\ *)
1937 sed -n \
1938 "s/'\''/'\''\\\\'\'''\''/g;
1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940 ;; #(
1941 *)
1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1943 ;;
1944 esac |
1945 sort
1946)
1947 echo
1948
1949 cat <<\_ASBOX
1950## ----------------- ##
1951## Output variables. ##
1952## ----------------- ##
1953_ASBOX
1954 echo
1955 for ac_var in $ac_subst_vars
1956 do
1957 eval ac_val=\$$ac_var
1958 case $ac_val in
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 esac
1961 $as_echo "$ac_var='\''$ac_val'\''"
1962 done | sort
1963 echo
1964
1965 if test -n "$ac_subst_files"; then
1966 cat <<\_ASBOX
1967## ------------------- ##
1968## File substitutions. ##
1969## ------------------- ##
1970_ASBOX
1971 echo
1972 for ac_var in $ac_subst_files
1973 do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 $as_echo "$ac_var='\''$ac_val'\''"
1979 done | sort
1980 echo
1981 fi
1982
1983 if test -s confdefs.h; then
1984 cat <<\_ASBOX
1985## ----------- ##
1986## confdefs.h. ##
1987## ----------- ##
1988_ASBOX
1989 echo
1990 cat confdefs.h
1991 echo
1992 fi
1993 test "$ac_signal" != 0 &&
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
1996 } >&5
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1999 exit $exit_status
2000' 0
2001for ac_signal in 1 2 13 15; do
2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2003done
2004ac_signal=0
2005
2006# confdefs.h avoids OS command line length limits that DEFS can exceed.
2007rm -f -r conftest* confdefs.h
2008
2009$as_echo "/* confdefs.h */" > confdefs.h
2010
2011# Predefined preprocessor variables.
2012
2013cat >>confdefs.h <<_ACEOF
2014#define PACKAGE_NAME "$PACKAGE_NAME"
2015_ACEOF
2016
2017cat >>confdefs.h <<_ACEOF
2018#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019_ACEOF
2020
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_VERSION "$PACKAGE_VERSION"
2023_ACEOF
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_STRING "$PACKAGE_STRING"
2027_ACEOF
2028
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031_ACEOF
2032
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_URL "$PACKAGE_URL"
2035_ACEOF
2036
2037
2038# Let the site file select an alternate cache file if it wants to.
2039# Prefer an explicitly selected file to automatically selected ones.
2040ac_site_file1=NONE
2041ac_site_file2=NONE
2042if test -n "$CONFIG_SITE"; then
2043 ac_site_file1=$CONFIG_SITE
2044elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2047else
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
2050fi
2051for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052do
2053 test "x$ac_site_file" = xNONE && continue
2054 if test -r "$ac_site_file"; then
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2057 sed 's/^/| /' "$ac_site_file" >&5
2058 . "$ac_site_file"
2059 fi
2060done
2061
2062if test -r "$cache_file"; then
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067$as_echo "$as_me: loading cache $cache_file" >&6;}
2068 case $cache_file in
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
2071 esac
2072 fi
2073else
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075$as_echo "$as_me: creating cache $cache_file" >&6;}
2076 >$cache_file
2077fi
2078
2079# Check that the precious variables saved in the cache have kept the same
2080# value.
2081ac_cache_corrupted=false
2082for ac_var in $ac_precious_vars; do
2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
2087 case $ac_old_set,$ac_new_set in
2088 set,)
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2092 ,set)
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2095 ac_cache_corrupted=: ;;
2096 ,);;
2097 *)
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2110 fi
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2112$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2114$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2115 fi;;
2116 esac
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2119 case $ac_new_val in
2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 *) ac_arg=$ac_var=$ac_new_val ;;
2122 esac
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2125 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2126 esac
2127 fi
2128done
2129if $ac_cache_corrupted; then
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2135fi
2136## -------------------- ##
2137## Main body of script. ##
2138## -------------------- ##
2139
2140ac_ext=c
2141ac_cpp='$CPP $CPPFLAGS'
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154progname=$0
2155# if PWD already has a value, it is probably wrong.
2156if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2157
2158# Export original configure arguments for use by sub-configures.
2159# Quote arguments with shell meta charatcers.
2160TOPLEVEL_CONFIGURE_ARGUMENTS=
2161set -- "$progname" "$@"
2162for ac_arg
2163do
2164 case "$ac_arg" in
2165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2167 # if the argument is of the form -foo=baz, quote the baz part only
2168 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2169 *) ;;
2170 esac
2171 # Add the quoted argument to the list.
2172 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2173done
2174if test "$silent" = yes; then
2175 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2176fi
2177# Remove the initial space we just introduced and, as these will be
2178# expanded by make, quote '$'.
2179TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2180
2181
2182# Find the build, host, and target systems.
2183ac_aux_dir=
2184for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2189 break 2
2190 fi
2191 done
2192done
2193if test -z "$ac_aux_dir"; then
2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2195fi
2196
2197# These three variables are undocumented and unsupported,
2198# and are intended to be withdrawn in a future Autoconf release.
2199# They can cause serious problems if a builder's source tree is in a directory
2200# whose full name contains unusual characters.
2201ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2204
2205
2206# Make sure we can run config.sub.
2207$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2209
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211$as_echo_n "checking build system type... " >&6; }
2212if test "${ac_cv_build+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214else
2215 ac_build_alias=$build_alias
2216test "x$ac_build_alias" = x &&
2217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218test "x$ac_build_alias" = x &&
2219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2222
2223fi
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225$as_echo "$ac_cv_build" >&6; }
2226case $ac_cv_build in
2227*-*-*) ;;
2228*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2229esac
2230build=$ac_cv_build
2231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_build
2233shift
2234build_cpu=$1
2235build_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239build_os=$*
2240IFS=$ac_save_IFS
2241case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2242
2243
2244 case ${build_alias} in
2245 "") build_noncanonical=${build} ;;
2246 *) build_noncanonical=${build_alias} ;;
2247esac
2248
2249
2250
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
2254esac
2255
2256
2257
2258 case ${target_alias} in
2259 "") target_noncanonical=${host_noncanonical} ;;
2260 *) target_noncanonical=${target_alias} ;;
2261esac
2262
2263
2264
2265
2266test "$host_noncanonical" = "$target_noncanonical" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
2269 program_transform_name=s,y,y,
2270
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272$as_echo_n "checking host system type... " >&6; }
2273if test "${ac_cv_host+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
2275else
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2278else
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281fi
2282
2283fi
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285$as_echo "$ac_cv_host" >&6; }
2286case $ac_cv_host in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2289esac
2290host=$ac_cv_host
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_host
2293shift
2294host_cpu=$1
2295host_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299host_os=$*
2300IFS=$ac_save_IFS
2301case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2302
2303
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305$as_echo_n "checking target system type... " >&6; }
2306if test "${ac_cv_target+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
2308else
2309 if test "x$target_alias" = x; then
2310 ac_cv_target=$ac_cv_host
2311else
2312 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2314fi
2315
2316fi
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318$as_echo "$ac_cv_target" >&6; }
2319case $ac_cv_target in
2320*-*-*) ;;
2321*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2322esac
2323target=$ac_cv_target
2324ac_save_IFS=$IFS; IFS='-'
2325set x $ac_cv_target
2326shift
2327target_cpu=$1
2328target_vendor=$2
2329shift; shift
2330# Remember, the first character of IFS is used to create $*,
2331# except with old shells:
2332target_os=$*
2333IFS=$ac_save_IFS
2334case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2335
2336
2337# The aliases save the names the user supplied, while $host etc.
2338# will get canonicalized.
2339test -n "$target_alias" &&
2340 test "$program_prefix$program_suffix$program_transform_name" = \
2341 NONENONEs,x,x, &&
2342 program_prefix=${target_alias}-
2343
2344test "$program_prefix" != NONE &&
2345 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2346# Use a double $ so make ignores it.
2347test "$program_suffix" != NONE &&
2348 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349# Double any \ or $.
2350# By default was `s,x,x', remove it if useless.
2351ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2353
2354
2355
2356# Get 'install' or 'install-sh' and its variants.
2357# Find a good install program. We prefer a C program (faster),
2358# so one script is as good as another. But avoid the broken or
2359# incompatible versions:
2360# SysV /etc/install, /usr/sbin/install
2361# SunOS /usr/etc/install
2362# IRIX /sbin/install
2363# AIX /bin/install
2364# AmigaOS /C/install, which installs bootblocks on floppy discs
2365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2368# OS/2's system install, which has a completely different semantic
2369# ./install, which can be erroneously created by make from ./install.sh.
2370# Reject install programs that cannot install multiple files.
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372$as_echo_n "checking for a BSD-compatible install... " >&6; }
2373if test -z "$INSTALL"; then
2374if test "${ac_cv_path_install+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
2376else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 # Account for people who put trailing slashes in PATH elements.
2383case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2387 /usr/ucb/* ) ;;
2388 *)
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2395 if test $ac_prog = install &&
2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2397 # AIX install. It has an incompatible calling convention.
2398 :
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2402 :
2403 else
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2415 fi
2416 fi
2417 fi
2418 done
2419 done
2420 ;;
2421esac
2422
2423 done
2424IFS=$as_save_IFS
2425
2426rm -rf conftest.one conftest.two conftest.dir
2427
2428fi
2429 if test "${ac_cv_path_install+set}" = set; then
2430 INSTALL=$ac_cv_path_install
2431 else
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
2434 # break other packages using the cache if that directory is
2435 # removed, or if the value is a relative name.
2436 INSTALL=$ac_install_sh
2437 fi
2438fi
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440$as_echo "$INSTALL" >&6; }
2441
2442# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443# It thinks the first close brace ends the variable substitution.
2444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
2446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2447
2448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2451$as_echo_n "checking whether ln works... " >&6; }
2452if test "${acx_cv_prog_LN+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
2454else
2455 rm -f conftestdata_t
2456echo >conftestdata_f
2457if ln conftestdata_f conftestdata_t 2>/dev/null
2458then
2459 acx_cv_prog_LN=ln
2460else
2461 acx_cv_prog_LN=no
2462fi
2463rm -f conftestdata_f conftestdata_t
2464
2465fi
2466if test $acx_cv_prog_LN = no; then
2467 LN="cp"
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2469$as_echo "no, using $LN" >&6; }
2470else
2471 LN="$acx_cv_prog_LN"
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473$as_echo "yes" >&6; }
2474fi
2475
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2477$as_echo_n "checking whether ln -s works... " >&6; }
2478LN_S=$as_ln_s
2479if test "$LN_S" = "ln -s"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481$as_echo "yes" >&6; }
2482else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2484$as_echo "no, using $LN_S" >&6; }
2485fi
2486
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2488$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2489if test "${ac_cv_path_SED+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491else
2492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2493 for ac_i in 1 2 3 4 5 6 7; do
2494 ac_script="$ac_script$as_nl$ac_script"
2495 done
2496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2497 { ac_script=; unset ac_script;}
2498 if test -z "$SED"; then
2499 ac_path_SED_found=false
2500 # Loop through the user's path and test for each of PROGNAME-LIST
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_prog in sed gsed; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2509 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2510# Check for GNU ac_path_SED and select it if it is found.
2511 # Check for GNU $ac_path_SED
2512case `"$ac_path_SED" --version 2>&1` in
2513*GNU*)
2514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2515*)
2516 ac_count=0
2517 $as_echo_n 0123456789 >"conftest.in"
2518 while :
2519 do
2520 cat "conftest.in" "conftest.in" >"conftest.tmp"
2521 mv "conftest.tmp" "conftest.in"
2522 cp "conftest.in" "conftest.nl"
2523 $as_echo '' >> "conftest.nl"
2524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2526 as_fn_arith $ac_count + 1 && ac_count=$as_val
2527 if test $ac_count -gt ${ac_path_SED_max-0}; then
2528 # Best one so far, save it but keep looking for a better one
2529 ac_cv_path_SED="$ac_path_SED"
2530 ac_path_SED_max=$ac_count
2531 fi
2532 # 10*(2^10) chars as input seems more than enough
2533 test $ac_count -gt 10 && break
2534 done
2535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2536esac
2537
2538 $ac_path_SED_found && break 3
2539 done
2540 done
2541 done
2542IFS=$as_save_IFS
2543 if test -z "$ac_cv_path_SED"; then
2544 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2545 fi
2546else
2547 ac_cv_path_SED=$SED
2548fi
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2552$as_echo "$ac_cv_path_SED" >&6; }
2553 SED="$ac_cv_path_SED"
2554 rm -f conftest.sed
2555
2556for ac_prog in gawk mawk nawk awk
2557do
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559set dummy $ac_prog; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if test "${ac_cv_prog_AWK+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564else
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580 done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585AWK=$ac_cv_prog_AWK
2586if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588$as_echo "$AWK" >&6; }
2589else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595 test -n "$AWK" && break
2596done
2597
2598
2599### we might need to use some other shell than /bin/sh for running subshells
2600### If we are on Windows, search for the shell. This will permit people
2601### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2602### without also having to set CONFIG_SHELL. This code will work when
2603### using bash, which sets OSTYPE.
2604case "${OSTYPE}" in
2605*win32*)
2606 if test x${CONFIG_SHELL} = x ; then
2607 if test ! -f /bin/sh ; then
2608 if test x${SHELL} != x && test -f ${SHELL} ; then
2609 CONFIG_SHELL=${SHELL}
2610 export CONFIG_SHELL
2611 else
2612 for prog in sh sh.exe bash bash.exe; do
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$prog; then
2617 CONFIG_SHELL=$dir/$prog
2618 export CONFIG_SHELL
2619 break
2620 fi
2621 done
2622 IFS="$save_ifs"
2623 test -n "${CONFIG_SHELL}" && break
2624 done
2625 fi
2626 fi
2627 fi
2628 ;;
2629esac
2630
2631config_shell=${CONFIG_SHELL-/bin/sh}
2632
2633moveifchange=${srcdir}/move-if-change
2634
2635srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2636
2637# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2638# a relative path.
2639if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2640 INSTALL="${srcpwd}/install-sh -c"
2641fi
2642
2643# Set srcdir to "." if that's what it is.
2644# This is important for multilib support.
2645pwd=`${PWDCMD-pwd}`
2646if test "${pwd}" = "${srcpwd}" ; then
2647 srcdir=.
2648fi
2649
2650topsrcdir=$srcpwd
2651
2652extra_host_args=
2653
2654### To add a new directory to the tree, first choose whether it is a target
2655### or a host dependent tool. Then put it into the appropriate list
2656### (library or tools, host or target), doing a dependency sort.
2657
2658# Subdirs will be configured in the order listed in build_configdirs,
2659# configdirs, or target_configdirs; see the serialization section below.
2660
2661# Dependency sorting is only needed when *configuration* must be done in
2662# a particular order. In all cases a dependency should be specified in
2663# the Makefile, whether or not it's implicitly specified here.
2664
2665# Double entries in build_configdirs, configdirs, or target_configdirs may
2666# cause circular dependencies and break everything horribly.
2667
2668# these library is used by various programs built for the build
2669# environment
2670#
2671build_libs="build-libiberty"
2672
2673# these tools are built for the build environment
2674build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
2675
2676# these libraries are used by various programs built for the host environment
2677#
2678host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
2679
2680# these tools are built for the host environment
2681# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2682# know that we are building the simulator.
2683# binutils, gas and ld appear in that order because it makes sense to run
2684# "make check" in that particular order.
2685# If --enable-gold is used, "gold" may replace "ld".
2686host_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"
2687
2688# libgcj represents the runtime libraries only used by gcj.
2689libgcj="target-libffi \
2690 target-zlib \
2691 target-qthreads \
2692 target-libjava"
2693
2694# these libraries are built for the target environment, and are built after
2695# the host libraries and the host tools (which may be a cross compiler)
2696#
2697target_libraries="target-libgcc \
2698 target-libiberty \
2699 target-libgloss \
2700 target-newlib \
2701 target-libgomp \
2702 target-libstdc++-v3 \
2703 target-libmudflap \
2704 target-libssp \
2705 target-libquadmath \
2706 target-libgfortran \
2707 target-boehm-gc \
2708 ${libgcj} \
2709 target-libobjc \
2710 target-libada \
2711 target-libgo"
2712
2713# these tools are built using the target libraries, and are intended to
2714# run only in the target environment
2715#
2716# note: any program that *uses* libraries that are in the "target_libraries"
2717# list belongs in this list. those programs are also very likely
2718# candidates for the "native_only" list which follows
2719#
2720target_tools="target-examples target-groff target-gperf target-rda"
2721
2722################################################################################
2723
2724## All tools belong in one of the four categories, and are assigned above
2725## We assign ${configdirs} this way to remove all embedded newlines. This
2726## is important because configure will choke if they ever get through.
2727## ${configdirs} is directories we build using the host tools.
2728## ${target_configdirs} is directories we build using the target tools.
2729configdirs=`echo ${host_libs} ${host_tools}`
2730target_configdirs=`echo ${target_libraries} ${target_tools}`
2731build_configdirs=`echo ${build_libs} ${build_tools}`
2732
2733
2734
2735################################################################################
2736
2737srcname="gnu development package"
2738
2739# This gets set non-empty for some net releases of packages.
2740appdirs=""
2741
2742# Define is_cross_compiler to save on calls to 'test'.
2743is_cross_compiler=
2744if test x"${host}" = x"${target}" ; then
2745 is_cross_compiler=no
2746else
2747 is_cross_compiler=yes
2748fi
2749
2750# Find the build and target subdir names.
2751
2752# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2753# have matching libraries, they should use host libraries: Makefile.tpl
2754# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2755# However, they still use the build modules, because the corresponding
2756# host modules (e.g. bison) are only built for the host when bootstrap
2757# finishes. So:
2758# - build_subdir is where we find build modules, and never changes.
2759# - build_libsubdir is where we find build libraries, and can be overridden.
2760
2761# Prefix 'build-' so this never conflicts with target_subdir.
2762build_subdir="build-${build_noncanonical}"
2763
2764# Check whether --with-build-libsubdir was given.
2765if test "${with_build_libsubdir+set}" = set; then :
2766 withval=$with_build_libsubdir; build_libsubdir="$withval"
2767else
2768 build_libsubdir="$build_subdir"
2769fi
2770
2771# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2772if ( test $srcdir = . && test -d gcc ) \
2773 || test -d $srcdir/../host-${host_noncanonical}; then
2774 host_subdir="host-${host_noncanonical}"
2775else
2776 host_subdir=.
2777fi
2778# No prefix.
2779target_subdir=${target_noncanonical}
2780
2781# Be sure to cover against remnants of an in-tree build.
2782if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2783 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2784Use a pristine source tree when building in a separate tree" "$LINENO" 5
2785fi
2786
2787# Skipdirs are removed silently.
2788skipdirs=
2789# Noconfigdirs are removed loudly.
2790noconfigdirs=""
2791
2792use_gnu_ld=
2793# Make sure we don't let GNU ld be added if we didn't want it.
2794if test x$with_gnu_ld = xno ; then
2795 use_gnu_ld=no
2796 noconfigdirs="$noconfigdirs ld gold"
2797fi
2798
2799use_gnu_as=
2800# Make sure we don't let GNU as be added if we didn't want it.
2801if test x$with_gnu_as = xno ; then
2802 use_gnu_as=no
2803 noconfigdirs="$noconfigdirs gas"
2804fi
2805
2806use_included_zlib=
2807# Make sure we don't let ZLIB be added if we didn't want it.
2808if test x$with_system_zlib = xyes ; then
2809 use_included_zlib=no
2810 noconfigdirs="$noconfigdirs zlib"
2811fi
2812
2813# some tools are so dependent upon X11 that if we're not building with X,
2814# it's not even worth trying to configure, much less build, that tool.
2815
2816case ${with_x} in
2817 yes | "") ;; # the default value for this tree is that X11 is available
2818 no)
2819 skipdirs="${skipdirs} tk itcl libgui"
2820 # We won't be able to build gdbtk without X.
2821 enable_gdbtk=no
2822 ;;
2823 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2824esac
2825
2826# Some tools are only suitable for building in a "native" situation.
2827# Remove these if host!=target.
2828native_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"
2829
2830# Similarly, some are only suitable for cross toolchains.
2831# Remove these if host=target.
2832cross_only="target-libgloss target-newlib target-opcodes"
2833
2834case $is_cross_compiler in
2835 no) skipdirs="${skipdirs} ${cross_only}" ;;
2836 yes) skipdirs="${skipdirs} ${native_only}" ;;
2837esac
2838
2839# If both --with-headers and --with-libs are specified, default to
2840# --without-newlib.
2841if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2842 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2843 if test x"${with_newlib}" = x ; then
2844 with_newlib=no
2845 fi
2846fi
2847
2848# Recognize --with-newlib/--without-newlib.
2849case ${with_newlib} in
2850 no) skipdirs="${skipdirs} target-newlib" ;;
2851 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2852esac
2853
2854# Handle --enable-gold, --enable-ld.
2855# --disable-gold [--enable-ld]
2856# Build only ld. Default option.
2857# --enable-gold [--enable-ld]
2858# Build both gold and ld. Install gold as "ld.gold", install ld
2859# as "ld.bfd" and "ld".
2860# --enable-gold=default [--enable-ld]
2861# Build both gold and ld. Install gold as "ld.gold" and "ld",
2862# install ld as "ld.bfd".
2863# --enable-gold[=default] --disable-ld
2864# Build only gold, which is then installed as both "ld.gold" and "ld".
2865# --enable-gold --enable-ld=default
2866# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2867# and ld.bfd).
2868# In other words, ld is default
2869# --enable-gold=default --enable-ld=default
2870# Error.
2871
2872default_ld=
2873# Check whether --enable-gold was given.
2874if test "${enable_gold+set}" = set; then :
2875 enableval=$enable_gold; ENABLE_GOLD=$enableval
2876else
2877 ENABLE_GOLD=no
2878fi
2879
2880case "${ENABLE_GOLD}" in
2881 yes|default)
2882 # Check for ELF target.
2883 is_elf=no
2884 case "${target}" in
2885 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2886 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2887 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2888 case "${target}" in
2889 *-*-linux*aout* | *-*-linux*oldld*)
2890 ;;
2891 *)
2892 is_elf=yes
2893 ;;
2894 esac
2895 esac
2896
2897 if test "$is_elf" = "yes"; then
2898 # Check for target supported by gold.
2899 case "${target}" in
2900 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2901 configdirs="$configdirs gold"
2902 if test x${ENABLE_GOLD} = xdefault; then
2903 default_ld=gold
2904 fi
2905 ENABLE_GOLD=yes
2906 ;;
2907 esac
2908 fi
2909 ;;
2910 no)
2911 ;;
2912 *)
2913 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2914 ;;
2915esac
2916
2917# Check whether --enable-ld was given.
2918if test "${enable_ld+set}" = set; then :
2919 enableval=$enable_ld; ENABLE_LD=$enableval
2920else
2921 ENABLE_LD=yes
2922fi
2923
2924
2925case "${ENABLE_LD}" in
2926 default)
2927 if test x${default_ld} != x; then
2928 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2929 fi
2930 ;;
2931 yes)
2932 ;;
2933 no)
2934 if test x${ENABLE_GOLD} != xyes; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2936$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2937 fi
2938 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2939 ;;
2940 *)
2941 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2942 ;;
2943esac
2944
2945# Configure extra directories which are host specific
2946
2947case "${host}" in
2948 *-cygwin*)
2949 configdirs="$configdirs libtermcap" ;;
2950esac
2951
2952# A target can indicate whether a language isn't supported for some reason.
2953# Only spaces may be used in this macro; not newlines or tabs.
2954unsupported_languages=
2955
2956# Remove more programs from consideration, based on the host or
2957# target this usually means that a port of the program doesn't
2958# exist yet.
2959
2960case "${host}" in
2961 hppa*64*-*-*)
2962 noconfigdirs="$noconfigdirs byacc"
2963 ;;
2964 i[3456789]86-*-vsta)
2965 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
2966 ;;
2967 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
2968 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
2969 ;;
2970 x86_64-*-mingw*)
2971 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2972 ;;
2973 i[3456789]86-*-mingw32*)
2974 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
2975 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2976 ;;
2977 i[3456789]86-*-beos*)
2978 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
2979 ;;
2980 *-*-cygwin*)
2981 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
2982 ;;
2983 *-*-netbsd*)
2984 noconfigdirs="$noconfigdirs rcs"
2985 ;;
2986 ppc*-*-pe)
2987 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
2988 ;;
2989 powerpc-*-beos*)
2990 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
2991 ;;
2992esac
2993
2994
2995# Check whether --enable-libada was given.
2996if test "${enable_libada+set}" = set; then :
2997 enableval=$enable_libada; ENABLE_LIBADA=$enableval
2998else
2999 ENABLE_LIBADA=yes
3000fi
3001
3002if test "${ENABLE_LIBADA}" != "yes" ; then
3003 noconfigdirs="$noconfigdirs gnattools"
3004fi
3005
3006# Check whether --enable-libssp was given.
3007if test "${enable_libssp+set}" = set; then :
3008 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3009else
3010 ENABLE_LIBSSP=yes
3011fi
3012
3013
3014# Save it here so that, even in case of --enable-libgcj, if the Java
3015# front-end isn't enabled, we still get libgcj disabled.
3016libgcj_saved=$libgcj
3017case $enable_libgcj in
3018yes)
3019 # If we reset it here, it won't get added to noconfigdirs in the
3020 # target-specific build rules, so it will be forcibly enabled
3021 # (unless the Java language itself isn't enabled).
3022 libgcj=
3023 ;;
3024no)
3025 # Make sure we get it printed in the list of not supported target libs.
3026 # Don't disable libffi, though, other languages use it.
3027 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
3028 ;;
3029esac
3030
3031
3032# Disable libmudflap on some systems.
3033if test x$enable_libmudflap = x ; then
3034 case "${target}" in
3035 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3036 # Enable libmudflap by default in GNU and friends.
3037 ;;
3038 *-*-freebsd*)
3039 # Enable libmudflap by default in FreeBSD.
3040 ;;
3041 *)
3042 # Disable it by default everywhere else.
3043 noconfigdirs="$noconfigdirs target-libmudflap"
3044 ;;
3045 esac
3046fi
3047
3048# Disable libgomp on non POSIX hosted systems.
3049if test x$enable_libgomp = x ; then
3050 # Enable libgomp by default on hosted POSIX systems.
3051 case "${target}" in
3052 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3053 ;;
3054 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3055 ;;
3056 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
3057 ;;
3058 *-*-darwin* | *-*-aix*)
3059 ;;
3060 *)
3061 noconfigdirs="$noconfigdirs target-libgomp"
3062 ;;
3063 esac
3064fi
3065
3066# Default libgloss CPU subdirectory.
3067libgloss_dir="$target_cpu"
3068
3069case "${target}" in
3070 *-*-chorusos)
3071 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3072 ;;
3073 powerpc-*-darwin*)
3074 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3075 noconfigdirs="$noconfigdirs sim target-rda"
3076 ;;
3077 i[3456789]86-*-darwin*)
3078 noconfigdirs="$noconfigdirs ld gprof"
3079 noconfigdirs="$noconfigdirs sim target-rda"
3080 ;;
3081 x86_64-*-darwin[912]*)
3082 noconfigdirs="$noconfigdirs ld gas gprof"
3083 noconfigdirs="$noconfigdirs sim target-rda"
3084 ;;
3085 *-*-darwin*)
3086 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3087 noconfigdirs="$noconfigdirs sim target-rda"
3088 noconfigdirs="$noconfigdirs ${libgcj}"
3089 ;;
3090 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
3091 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3092 ;;
3093 *-*-freebsd*)
3094 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3095 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3096 && test -f /usr/local/include/gmp.h; then
3097 with_gmp=/usr/local
3098 fi
3099
3100 # Skip some stuff that's unsupported on some FreeBSD configurations.
3101 case "${target}" in
3102 i*86-*-*) ;;
3103 alpha*-*-*) ;;
3104 x86_64-*-*) ;;
3105 *)
3106 noconfigdirs="$noconfigdirs ${libgcj}"
3107 ;;
3108 esac
3109 ;;
3110 *-*-kaos*)
3111 # Remove unsupported stuff on all kaOS configurations.
3112 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
3113 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3114 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3115 noconfigdirs="$noconfigdirs target-libgloss"
3116 ;;
3117 *-*-netbsd*)
3118 # Skip some stuff on all NetBSD configurations.
3119 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3120
3121 # Skip some stuff that's unsupported on some NetBSD configurations.
3122 case "${target}" in
3123 i*86-*-netbsdelf*) ;;
3124 arm*-*-netbsdelf*) ;;
3125 *)
3126 noconfigdirs="$noconfigdirs ${libgcj}"
3127 ;;
3128 esac
3129 ;;
3130 *-*-netware*)
3131 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
3132 ;;
3133 *-*-rtems*)
3134 skipdirs="${skipdirs} target-libiberty"
3135 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3136 ;;
3137 # The tpf target doesn't support gdb yet.
3138 *-*-tpf*)
3139 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
3140 ;;
3141 *-*-uclinux*)
3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
3143 ;;
3144 *-*-vxworks*)
3145 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
3146 ;;
3147 alpha*-dec-osf*)
3148 # ld works, but does not support shared libraries.
3149 # newlib is not 64 bit ready. I'm not sure about fileutils.
3150 # gas doesn't generate exception information.
3151 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3152 ;;
3153 alpha*-*-*vms*)
3154 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3155 ;;
3156 alpha*-*-linux*)
3157 # newlib is not 64 bit ready
3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3159 ;;
3160 alpha*-*-*)
3161 # newlib is not 64 bit ready
3162 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3163 ;;
3164 am33_2.0-*-linux*)
3165 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3166 ;;
3167 sh-*-linux*)
3168 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
3169 ;;
3170 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3171 noconfigdirs="$noconfigdirs ${libgcj}"
3172 noconfigdirs="$noconfigdirs target-examples"
3173 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
3174 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3175 noconfigdirs="$noconfigdirs expect dejagnu"
3176 # the C++ libraries don't build on top of CE's C libraries
3177 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3178 noconfigdirs="$noconfigdirs target-newlib"
3179 case "${host}" in
3180 *-*-cygwin*) ;; # keep gdb and readline
3181 *) noconfigdirs="$noconfigdirs gdb readline"
3182 ;;
3183 esac
3184 libgloss_dir=wince
3185 ;;
3186 arc-*-*)
3187 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3188 ;;
3189 arm-semi-aof )
3190 ;;
3191 arm-*-coff | strongarm-*-coff | xscale-*-coff)
3192 noconfigdirs="$noconfigdirs ${libgcj}"
3193 libgloss_dir=arm
3194 ;;
3195 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
3196 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
3197 libgloss_dir=arm
3198 ;;
3199 arm*-*-linux-gnueabi)
3200 noconfigdirs="$noconfigdirs target-qthreads"
3201 case ${with_newlib} in
3202 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3203 esac
3204 libgloss_dir=arm
3205 ;;
3206 arm*-*-symbianelf*)
3207 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
3208 libgloss_dir=arm
3209 ;;
3210 arm-*-pe*)
3211 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3212 ;;
3213 thumb-*-coff)
3214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3215 ;;
3216 thumb-*-elf)
3217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3218 ;;
3219 thumb-*-pe)
3220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3221 ;;
3222 arm-*-riscix*)
3223 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3224 ;;
3225 avr-*-*)
3226 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
3227 ;;
3228 bfin-*-*)
3229 unsupported_languages="$unsupported_languages java"
3230 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3231 if test x${is_cross_compiler} != xno ; then
3232 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3233 fi
3234 ;;
3235 c4x-*-* | tic4x-*-*)
3236 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3237 ;;
3238 c54x*-*-* | tic54x-*-*)
3239 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
3240 ;;
3241 cr16-*-*)
3242 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3243 ;;
3244 cris-*-* | crisv32-*-*)
3245 unsupported_languages="$unsupported_languages java"
3246 case "${target}" in
3247 *-*-aout)
3248 unsupported_languages="$unsupported_languages fortran"
3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3250 *-*-elf) # See PR46792 regarding target-libffi.
3251 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3252 *-*-linux*)
3253 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
3254 *)
3255 unsupported_languages="$unsupported_languages fortran"
3256 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
3257 esac
3258 libgloss_dir=cris
3259 ;;
3260 crx-*-*)
3261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3262 ;;
3263 d10v-*-*)
3264 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3265 ;;
3266 d30v-*-*)
3267 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3268 ;;
3269 ep9312-*-elf | ep9312-*-coff)
3270 libgloss_dir=arm
3271 ;;
3272 fr30-*-elf*)
3273 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3274 ;;
3275 frv-*-*)
3276 noconfigdirs="$noconfigdirs ${libgcj}"
3277 ;;
3278 moxie-*-*)
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3280 noconfigdirs="$noconfigdirs gprof"
3281 ;;
3282 h8300*-*-*)
3283 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3284 ;;
3285 h8500-*-*)
3286 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3287 ;;
3288 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3289 ;;
3290 hppa*64*-*-linux* | parisc*64*-*-linux*)
3291 # In this case, it's because the hppa64-linux target is for
3292 # the kernel only at this point and has no libc, and thus no
3293 # headers, crt*.o, etc., all of which are needed by these.
3294 noconfigdirs="$noconfigdirs target-zlib"
3295 ;;
3296 parisc*-*-linux* | hppa*-*-linux*)
3297 ;;
3298 hppa*-*-*elf* | \
3299 hppa*-*-lites* | \
3300 hppa*-*-openbsd* | \
3301 hppa*64*-*-*)
3302 noconfigdirs="$noconfigdirs ${libgcj}"
3303 ;;
3304 hppa*-hp-hpux11*)
3305 noconfigdirs="$noconfigdirs ld shellutils"
3306 ;;
3307 hppa*-*-pro*)
3308 libgloss_dir=pa
3309 ;;
3310 hppa*-*-*)
3311 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3312 # build on HP-UX 10.20.
3313 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
3314 ;;
3315 i960-*-*)
3316 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3317 ;;
3318 ia64*-*-elf*)
3319 # No gdb support yet.
3320 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
3321 ;;
3322 ia64*-**-hpux*)
3323 # No gdb or ld support yet.
3324 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
3325 ;;
3326 ia64*-*-*vms*)
3327 # No gdb or ld support yet.
3328 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3329 ;;
3330 i370-*-opened*)
3331 ;;
3332 i[3456789]86-*-coff | i[3456789]86-*-elf)
3333 noconfigdirs="$noconfigdirs ${libgcj}"
3334 libgloss_dir=i386
3335 ;;
3336 i[3456789]86-*-linux*)
3337 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3338 # not build java stuff by default.
3339 case "${target}" in
3340 *-*-*libc1*)
3341 noconfigdirs="$noconfigdirs ${libgcj}";;
3342 esac
3343
3344 # This section makes it possible to build newlib natively on linux.
3345 # If we are using a cross compiler then don't configure newlib.
3346 if test x${is_cross_compiler} != xno ; then
3347 noconfigdirs="$noconfigdirs target-newlib"
3348 fi
3349 noconfigdirs="$noconfigdirs target-libgloss"
3350 # If we are not using a cross compiler, do configure newlib.
3351 # Note however, that newlib will only be configured in this situation
3352 # if the --with-newlib option has been given, because otherwise
3353 # 'target-newlib' will appear in skipdirs.
3354 ;;
3355 i[3456789]86-w64-mingw*)
3356 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3357 ;;
3358 i[3456789]86-*-mingw*)
3359 target_configdirs="$target_configdirs target-winsup"
3360 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3361 ;;
3362 x86_64-*-mingw*)
3363 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3364 ;;
3365 *-*-cygwin*)
3366 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3367 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
3368 # always build newlib if winsup directory is present.
3369 if test -d "$srcdir/winsup/cygwin"; then
3370 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3371 elif test -d "$srcdir/newlib"; then
3372 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3373 fi
3374 ;;
3375 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3376 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
3377 ;;
3378 i[3456789]86-*-pe)
3379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
3380 ;;
3381 i[3456789]86-*-sco3.2v5*)
3382 # The linker does not yet know about weak symbols in COFF,
3383 # and is not configured to handle mixed ELF and COFF.
3384 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
3385 ;;
3386 i[3456789]86-*-sco*)
3387 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3388 ;;
3389 i[3456789]86-*-solaris2*)
3390 noconfigdirs="$noconfigdirs target-libgloss"
3391 ;;
3392 i[3456789]86-*-sysv4*)
3393 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
3394 ;;
3395 i[3456789]86-*-beos*)
3396 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3397 ;;
3398 i[3456789]86-*-rdos*)
3399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3400 ;;
3401 m32r-*-*)
3402 noconfigdirs="$noconfigdirs ${libgcj}"
3403 ;;
3404 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3405 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3406 libgloss_dir=m68hc11
3407 ;;
3408 m68k-*-elf*)
3409 noconfigdirs="$noconfigdirs ${libgcj}"
3410 ;;
3411 m68k-*-coff*)
3412 noconfigdirs="$noconfigdirs ${libgcj}"
3413 ;;
3414 m68*-*-* | fido-*-*)
3415 libgloss_dir=m68k
3416 ;;
3417 mcore-*-pe*)
3418 # The EPOC C++ environment does not support exceptions or rtti,
3419 # and so building libstdc++-v3 tends not to always work.
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3421 ;;
3422 mmix-*-*)
3423 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
3424 unsupported_languages="$unsupported_languages fortran java"
3425 ;;
3426 mn10200-*-*)
3427 noconfigdirs="$noconfigdirs ${libgcj}"
3428 ;;
3429 mn10300-*-*)
3430 noconfigdirs="$noconfigdirs ${libgcj}"
3431 ;;
3432 mt-*-*)
3433 noconfigdirs="$noconfigdirs sim"
3434 ;;
3435 powerpc-*-aix*)
3436 # copied from rs6000-*-* entry
3437 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3438 ;;
3439 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3440 target_configdirs="$target_configdirs target-winsup"
3441 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
3442 # always build newlib.
3443 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3444 ;;
3445 # This is temporary until we can link against shared libraries
3446 powerpcle-*-solaris*)
3447 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
3448 libgloss_dir=rs6000
3449 ;;
3450 powerpc-*-beos*)
3451 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3452 ;;
3453 powerpc-*-eabi)
3454 noconfigdirs="$noconfigdirs ${libgcj}"
3455 libgloss_dir=rs6000
3456 ;;
3457 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3458 libgloss_dir=rs6000
3459 ;;
3460 rs6000-*-lynxos*)
3461 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
3462 ;;
3463 rs6000-*-aix*)
3464 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
3465 ;;
3466 rs6000-*-*)
3467 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3468 ;;
3469 m68k-apollo-*)
3470 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
3471 ;;
3472 microblaze*)
3473 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
3474 ;;
3475 mips*-sde-elf*)
3476 skipdirs="$skipdirs target-libiberty"
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 if test x$with_newlib = xyes; then
3479 noconfigdirs="$noconfigdirs gprof"
3480 fi
3481 libgloss_dir=mips
3482 ;;
3483 mips*-*-irix5*)
3484 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3485 ;;
3486 mips*-*-irix6*)
3487 # Linking libjava exceeds command-line length limits on at least
3488 # IRIX 6.2, but not on IRIX 6.5.
3489 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3490 # <oldham@codesourcery.com>
3491 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3492 ;;
3493 mips*-*-bsd*)
3494 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3495 ;;
3496 mips*-*-linux*)
3497 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3498 ;;
3499 mips*-*-*)
3500 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3501 libgloss_dir=mips
3502 ;;
3503 romp-*-*)
3504 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
3505 ;;
3506 sh-*-* | sh64-*-*)
3507 case "${host}" in
3508 i[3456789]86-*-vsta) ;; # don't add gprof back in
3509 i[3456789]86-*-go32*) ;; # don't add gprof back in
3510 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
3511 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3512 esac
3513 case "${target}" in
3514 sh*-*-elf)
3515 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3516 *)
3517 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3518 esac
3519 ;;
3520 sparclet-*-aout* | sparc86x-*-*)
3521 libgloss_dir=sparc
3522 ;;
3523 sparc-*-elf*)
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
3526 sparc64-*-elf*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 libgloss_dir=sparc
3529 ;;
3530 sparclite-*-*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3532 libgloss_dir=sparc
3533 ;;
3534 sparc-*-sunos4*)
3535 noconfigdirs="$noconfigdirs ${libgcj}"
3536 if test x${is_cross_compiler} != xno ; then
3537 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3538 else
3539 use_gnu_ld=no
3540 fi
3541 ;;
3542 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3544 ;;
3545 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3546 ;;
3547 tic6x-*-*)
3548 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3549 ;;
3550 v810-*-*)
3551 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
3552 ;;
3553 v850*-*-*)
3554 noconfigdirs="$noconfigdirs ${libgcj}"
3555 ;;
3556 vax-*-vms)
3557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
3558 ;;
3559 vax-*-*)
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3561 ;;
3562 xtensa*-*-*)
3563 noconfigdirs="$noconfigdirs ${libgcj}"
3564 ;;
3565 ip2k-*-*)
3566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
3567 ;;
3568 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 ;;
3571 *-*-lynxos*)
3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
3573 ;;
3574 *-*-*)
3575 noconfigdirs="$noconfigdirs ${libgcj}"
3576 ;;
3577esac
3578
3579# If we aren't building newlib, then don't build libgloss, since libgloss
3580# depends upon some newlib header files.
3581case "${noconfigdirs}" in
3582 *target-libgloss*) ;;
3583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3584esac
3585
3586# Work in distributions that contain no compiler tools, like Autoconf.
3587tentative_cc=""
3588host_makefile_frag=/dev/null
3589if test -d ${srcdir}/config ; then
3590case "${host}" in
3591 m68k-hp-hpux*)
3592 # Avoid "too much defining" errors from HPUX compiler.
3593 tentative_cc="cc -Wp,-H256000"
3594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3595 # If it's HP/UX ar, this should be harmless.
3596 RANLIB="ar ts"
3597 ;;
3598 m68k-apollo-sysv*)
3599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3600 ;;
3601 m68k-apollo-bsd*)
3602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3603 # chokes on bfd, the compiler won't let you assign integers to enums, and
3604 # other problems. Defining CC to gcc is a questionable way to say "don't use
3605 # the apollo compiler" (the preferred version of GCC could be called cc,
3606 # or whatever), but I'm not sure leaving CC as cc is any better...
3607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3608 # Used to have BISON=yacc.
3609 tentative_cc=gcc
3610 ;;
3611 m88k-dg-dgux*)
3612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3613 ;;
3614 m88k-harris-cxux*)
3615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3616 tentative_cc="cc -Xa"
3617 host_makefile_frag="config/mh-cxux"
3618 ;;
3619 m88k-motorola-sysv*)
3620 ;;
3621 mips*-dec-ultrix*)
3622 tentative_cc="cc -Wf,-XNg1000"
3623 host_makefile_frag="config/mh-decstation"
3624 ;;
3625 mips*-nec-sysv4*)
3626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3628 host_makefile_frag="config/mh-necv4"
3629 ;;
3630 mips*-sgi-irix4*)
3631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3632 # environment. Also bump switch table size so that cp-parse will
3633 # compile. Bump string length limit so linker builds.
3634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3635 ;;
3636 mips*-*-sysv4*)
3637 host_makefile_frag="config/mh-sysv4"
3638 ;;
3639 mips*-*-sysv*)
3640 # This is for a MIPS running RISC/os 4.52C.
3641
3642 # This is needed for GDB, but needs to be in the top-level make because
3643 # if a library is compiled with the bsd headers and gets linked with the
3644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3645 # a different size).
3646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3647 # known except to select the sysv environment. Could we use /proc instead?
3648 # These "sysv environments" and "bsd environments" often end up being a pain.
3649 #
3650 # This is not part of CFLAGS because perhaps not all C compilers have this
3651 # option.
3652 tentative_cc="cc -systype sysv"
3653 ;;
3654 i370-ibm-opened*)
3655 tentative_cc="c89"
3656 ;;
3657 i[3456789]86-*-sysv5*)
3658 host_makefile_frag="config/mh-sysv5"
3659 ;;
3660 i[3456789]86-*-dgux*)
3661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3662 host_makefile_frag="config/mh-dgux386"
3663 ;;
3664 i[3456789]86-ncr-sysv4.3*)
3665 # The MetaWare compiler will generate a copyright message unless you
3666 # turn it off by adding the -Hnocopyr flag.
3667 tentative_cc="cc -Hnocopyr"
3668 ;;
3669 i[3456789]86-ncr-sysv4*)
3670 # for an NCR 3000 (i486/SVR4) system.
3671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3672 # This compiler not only emits obnoxious copyright messages every time
3673 # you run it, but it chokes and dies on a whole bunch of GNU source
3674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3675 tentative_cc="/usr/ccs/ATT/cc"
3676 host_makefile_frag="config/mh-ncr3000"
3677 ;;
3678 i[3456789]86-*-sco3.2v5*)
3679 ;;
3680 i[3456789]86-*-sco*)
3681 # The native C compiler botches some simple uses of const. Unfortunately,
3682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3683 tentative_cc="cc -Dconst="
3684 host_makefile_frag="config/mh-sco"
3685 ;;
3686 i[3456789]86-*-udk*)
3687 host_makefile_frag="config/mh-sysv5"
3688 ;;
3689 i[3456789]86-*-solaris2*)
3690 host_makefile_frag="config/mh-sysv4"
3691 ;;
3692 i[3456789]86-*-msdosdjgpp*)
3693 host_makefile_frag="config/mh-djgpp"
3694 ;;
3695 *-cygwin*)
3696
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3698$as_echo_n "checking to see if cat works as expected... " >&6; }
3699echo a >cygwin-cat-check
3700if test `cat cygwin-cat-check` = a ; then
3701 rm cygwin-cat-check
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
3704else
3705 rm cygwin-cat-check
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708 as_fn_error "The cat command does not ignore carriage return characters.
3709 Please either mount the build directory in binary mode or run the following
3710 commands before running any configure script:
3711set -o igncr
3712export SHELLOPTS
3713 " "$LINENO" 5
3714fi
3715
3716 host_makefile_frag="config/mh-cygwin"
3717 ;;
3718 *-mingw*)
3719 host_makefile_frag="config/mh-mingw"
3720 ;;
3721 *-interix*)
3722 host_makefile_frag="config/mh-interix"
3723 ;;
3724 vax-*-ultrix2*)
3725 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3726 tentative_cc=gcc
3727 ;;
3728 *-*-solaris2*)
3729 host_makefile_frag="config/mh-solaris"
3730 ;;
3731 m68k-sun-sunos*)
3732 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3733 # without overflowing the jump tables (-J says to use a 32 bit table)
3734 tentative_cc="cc -J"
3735 ;;
3736 hppa*-hp-hpux10*)
3737 tentative_cc="cc -Wp,-H256000"
3738 host_makefile_frag="config/mh-pa-hpux10"
3739 ;;
3740 hppa*-hp-hpux* | hppa*-*-hiux*)
3741 tentative_cc="cc -Wp,-H256000"
3742 host_makefile_frag="config/mh-pa"
3743 ;;
3744 hppa*-*)
3745 host_makefile_frag="config/mh-pa"
3746 ;;
3747 *-hp-hpux* | *-*-hiux*)
3748 tentative_cc="cc -Wp,-H256000"
3749 ;;
3750 rs6000-*-lynxos*)
3751 # /bin/cc is less than useful for our purposes. Always use GCC
3752 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3753 host_makefile_frag="config/mh-lynxrs6k"
3754 ;;
3755 *-*-darwin*)
3756 host_makefile_frag="config/mh-darwin"
3757 ;;
3758 powerpc-*-aix*)
3759 host_makefile_frag="config/mh-ppc-aix"
3760 ;;
3761 rs6000-*-aix*)
3762 host_makefile_frag="config/mh-ppc-aix"
3763 ;;
3764 *-*-lynxos*)
3765 # /bin/cc is less than useful for our purposes. Always use GCC
3766 tentative_cc="/bin/gcc"
3767 ;;
3768 *-*-sysv4*)
3769 host_makefile_frag="config/mh-sysv4"
3770 ;;
3771 # This is placed last to prevent interfering with the cases above.
3772 i[3456789]86-*-*)
3773 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3774 host_makefile_frag="config/mh-x86omitfp"
3775 ;;
3776esac
3777fi
3778
3779# If we aren't going to be using gcc, see if we can extract a definition
3780# of CC from the fragment.
3781# Actually, use the 'pre-extracted' version above.
3782if test -z "${CC}" && test "${build}" = "${host}" ; then
3783 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3784 found=
3785 for dir in $PATH; do
3786 test -z "$dir" && dir=.
3787 if test -f $dir/gcc; then
3788 found=yes
3789 break
3790 fi
3791 done
3792 IFS="$save_ifs"
3793 if test -z "${found}" && test -n "${tentative_cc}" ; then
3794 CC=$tentative_cc
3795 fi
3796fi
3797
3798if test "${build}" != "${host}" ; then
3799 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3800 AS_FOR_BUILD=${AS_FOR_BUILD-as}
3801 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
3802 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3803 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3804 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3805 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
3806 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3807 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3808 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3809 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3810 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3811 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3812else
3813 AR_FOR_BUILD="\$(AR)"
3814 AS_FOR_BUILD="\$(AS)"
3815 CC_FOR_BUILD="\$(CC)"
3816 CXX_FOR_BUILD="\$(CXX)"
3817 GCJ_FOR_BUILD="\$(GCJ)"
3818 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3819 GOC_FOR_BUILD="\$(GOC)"
3820 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3821 LD_FOR_BUILD="\$(LD)"
3822 NM_FOR_BUILD="\$(NM)"
3823 RANLIB_FOR_BUILD="\$(RANLIB)"
3824 WINDRES_FOR_BUILD="\$(WINDRES)"
3825 WINDMC_FOR_BUILD="\$(WINDMC)"
3826fi
3827
3828ac_ext=c
3829ac_cpp='$CPP $CPPFLAGS'
3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3835set dummy ${ac_tool_prefix}gcc; ac_word=$2
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
3838if test "${ac_cv_prog_CC+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3854 fi
3855done
3856 done
3857IFS=$as_save_IFS
3858
3859fi
3860fi
3861CC=$ac_cv_prog_CC
3862if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864$as_echo "$CC" >&6; }
3865else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
3868fi
3869
3870
3871fi
3872if test -z "$ac_cv_prog_CC"; then
3873 ac_ct_CC=$CC
3874 # Extract the first word of "gcc", so it can be a program name with args.
3875set dummy gcc; ac_word=$2
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877$as_echo_n "checking for $ac_word... " >&6; }
3878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
3880else
3881 if test -n "$ac_ct_CC"; then
3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883else
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3891 ac_cv_prog_ac_ct_CC="gcc"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895done
3896 done
3897IFS=$as_save_IFS
3898
3899fi
3900fi
3901ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902if test -n "$ac_ct_CC"; then
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3904$as_echo "$ac_ct_CC" >&6; }
3905else
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907$as_echo "no" >&6; }
3908fi
3909
3910 if test "x$ac_ct_CC" = x; then
3911 CC=""
3912 else
3913 case $cross_compiling:$ac_tool_warned in
3914yes:)
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917ac_tool_warned=yes ;;
3918esac
3919 CC=$ac_ct_CC
3920 fi
3921else
3922 CC="$ac_cv_prog_CC"
3923fi
3924
3925if test -z "$CC"; then
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3928set dummy ${ac_tool_prefix}cc; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
3931if test "${ac_cv_prog_CC+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933else
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_prog_CC="${ac_tool_prefix}cc"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949 done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954CC=$ac_cv_prog_CC
3955if test -n "$CC"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957$as_echo "$CC" >&6; }
3958else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963
3964 fi
3965fi
3966if test -z "$CC"; then
3967 # Extract the first word of "cc", so it can be a program name with args.
3968set dummy cc; ac_word=$2
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
3971if test "${ac_cv_prog_CC+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
3973else
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3976else
3977 ac_prog_rejected=no
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3986 ac_prog_rejected=yes
3987 continue
3988 fi
3989 ac_cv_prog_CC="cc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3992 fi
3993done
3994 done
3995IFS=$as_save_IFS
3996
3997if test $ac_prog_rejected = yes; then
3998 # We found a bogon in the path, so make sure we never use it.
3999 set dummy $ac_cv_prog_CC
4000 shift
4001 if test $# != 0; then
4002 # We chose a different compiler from the bogus one.
4003 # However, it has the same basename, so the bogon will be chosen
4004 # first if we set CC to just the basename; use the full file name.
4005 shift
4006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4007 fi
4008fi
4009fi
4010fi
4011CC=$ac_cv_prog_CC
4012if test -n "$CC"; then
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014$as_echo "$CC" >&6; }
4015else
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
4018fi
4019
4020
4021fi
4022if test -z "$CC"; then
4023 if test -n "$ac_tool_prefix"; then
4024 for ac_prog in cl.exe
4025 do
4026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4027set dummy $ac_tool_prefix$ac_prog; 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; }
4030if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035else
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
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$ac_prog"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4046 fi
4047done
4048 done
4049IFS=$as_save_IFS
4050
4051fi
4052fi
4053CC=$ac_cv_prog_CC
4054if test -n "$CC"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056$as_echo "$CC" >&6; }
4057else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
4060fi
4061
4062
4063 test -n "$CC" && break
4064 done
4065fi
4066if test -z "$CC"; then
4067 ac_ct_CC=$CC
4068 for ac_prog in cl.exe
4069do
4070 # Extract the first word of "$ac_prog", so it can be a program name with args.
4071set dummy $ac_prog; ac_word=$2
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073$as_echo_n "checking for $ac_word... " >&6; }
4074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
4076else
4077 if test -n "$ac_ct_CC"; then
4078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4079else
4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4087 ac_cv_prog_ac_ct_CC="$ac_prog"
4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 break 2
4090 fi
4091done
4092 done
4093IFS=$as_save_IFS
4094
4095fi
4096fi
4097ac_ct_CC=$ac_cv_prog_ac_ct_CC
4098if test -n "$ac_ct_CC"; then
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4100$as_echo "$ac_ct_CC" >&6; }
4101else
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
4104fi
4105
4106
4107 test -n "$ac_ct_CC" && break
4108done
4109
4110 if test "x$ac_ct_CC" = x; then
4111 CC=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114yes:)
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117ac_tool_warned=yes ;;
4118esac
4119 CC=$ac_ct_CC
4120 fi
4121fi
4122
4123fi
4124
4125
4126test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128as_fn_error "no acceptable C compiler found in \$PATH
4129See \`config.log' for more details." "$LINENO" 5; }
4130
4131# Provide some information about the compiler.
4132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4133set X $ac_compile
4134ac_compiler=$2
4135for ac_option in --version -v -V -qversion; do
4136 { { ac_try="$ac_compiler $ac_option >&5"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142$as_echo "$ac_try_echo"; } >&5
4143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4144 ac_status=$?
4145 if test -s conftest.err; then
4146 sed '10a\
4147... rest of stderr output deleted ...
4148 10q' conftest.err >conftest.er1
4149 cat conftest.er1 >&5
4150 rm -f conftest.er1 conftest.err
4151 fi
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }
4154done
4155
4156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h. */
4158
4159int
4160main ()
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167ac_clean_files_save=$ac_clean_files
4168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4169# Try to create an executable without -o first, disregard a.out.
4170# It will help us diagnose broken compilers, and finding out an intuition
4171# of exeext.
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4173$as_echo_n "checking for C compiler default output file name... " >&6; }
4174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4175
4176# The possible output files:
4177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4178
4179ac_rmfiles=
4180for ac_file in $ac_files
4181do
4182 case $ac_file in
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4185 esac
4186done
4187rm -f $ac_rmfiles
4188
4189if { { ac_try="$ac_link_default"
4190case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195$as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_link_default") 2>&5
4197 ac_status=$?
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }; then :
4200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4202# in a Makefile. We should not override ac_cv_exeext if it was cached,
4203# so that the user can short-circuit this test for compilers unknown to
4204# Autoconf.
4205for ac_file in $ac_files ''
4206do
4207 test -f "$ac_file" || continue
4208 case $ac_file in
4209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4210 ;;
4211 [ab].out )
4212 # We found the default executable, but exeext='' is most
4213 # certainly right.
4214 break;;
4215 *.* )
4216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4217 then :; else
4218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4219 fi
4220 # We set ac_cv_exeext here because the later test for it is not
4221 # safe: cross compilers may not add the suffix if given an `-o'
4222 # argument, so we may need to know it at that point already.
4223 # Even if this section looks crufty: it has the advantage of
4224 # actually working.
4225 break;;
4226 * )
4227 break;;
4228 esac
4229done
4230test "$ac_cv_exeext" = no && ac_cv_exeext=
4231
4232else
4233 ac_file=''
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4236$as_echo "$ac_file" >&6; }
4237if test -z "$ac_file"; then :
4238 $as_echo "$as_me: failed program was:" >&5
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
4241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243{ as_fn_set_status 77
4244as_fn_error "C compiler cannot create executables
4245See \`config.log' for more details." "$LINENO" 5; }; }
4246fi
4247ac_exeext=$ac_cv_exeext
4248
4249# Check that the compiler produces executables we can run. If not, either
4250# the compiler is broken, or we cross compile.
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4252$as_echo_n "checking whether the C compiler works... " >&6; }
4253# If not cross compiling, check that we can run a simple program.
4254if test "$cross_compiling" != yes; then
4255 if { ac_try='./$ac_file'
4256 { { case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; }; then
4266 cross_compiling=no
4267 else
4268 if test "$cross_compiling" = maybe; then
4269 cross_compiling=yes
4270 else
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273as_fn_error "cannot run C compiled programs.
4274If you meant to cross compile, use \`--host'.
4275See \`config.log' for more details." "$LINENO" 5; }
4276 fi
4277 fi
4278fi
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280$as_echo "yes" >&6; }
4281
4282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4283ac_clean_files=$ac_clean_files_save
4284# Check that the compiler produces executables we can run. If not, either
4285# the compiler is broken, or we cross compile.
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4287$as_echo_n "checking whether we are cross compiling... " >&6; }
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4289$as_echo "$cross_compiling" >&6; }
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4292$as_echo_n "checking for suffix of executables... " >&6; }
4293if { { ac_try="$ac_link"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299$as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_link") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
4304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4305# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4306# work properly (i.e., refer to `conftest.exe'), while it won't with
4307# `rm'.
4308for ac_file in conftest.exe conftest conftest.*; do
4309 test -f "$ac_file" || continue
4310 case $ac_file in
4311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4313 break;;
4314 * ) break;;
4315 esac
4316done
4317else
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320as_fn_error "cannot compute suffix of executables: cannot compile and link
4321See \`config.log' for more details." "$LINENO" 5; }
4322fi
4323rm -f conftest$ac_cv_exeext
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4325$as_echo "$ac_cv_exeext" >&6; }
4326
4327rm -f conftest.$ac_ext
4328EXEEXT=$ac_cv_exeext
4329ac_exeext=$EXEEXT
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4331$as_echo_n "checking for suffix of object files... " >&6; }
4332if test "${ac_cv_objext+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
4334else
4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4336/* end confdefs.h. */
4337
4338int
4339main ()
4340{
4341
4342 ;
4343 return 0;
4344}
4345_ACEOF
4346rm -f conftest.o conftest.obj
4347if { { ac_try="$ac_compile"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_compile") 2>&5
4355 ac_status=$?
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; then :
4358 for ac_file in conftest.o conftest.obj conftest.*; do
4359 test -f "$ac_file" || continue;
4360 case $ac_file in
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4363 break;;
4364 esac
4365done
4366else
4367 $as_echo "$as_me: failed program was:" >&5
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
4370{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372as_fn_error "cannot compute suffix of object files: cannot compile
4373See \`config.log' for more details." "$LINENO" 5; }
4374fi
4375rm -f conftest.$ac_cv_objext conftest.$ac_ext
4376fi
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4378$as_echo "$ac_cv_objext" >&6; }
4379OBJEXT=$ac_cv_objext
4380ac_objext=$OBJEXT
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4382$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4383if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
4385else
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h. */
4388
4389int
4390main ()
4391{
4392#ifndef __GNUC__
4393 choke me
4394#endif
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
4400if ac_fn_c_try_compile "$LINENO"; then :
4401 ac_compiler_gnu=yes
4402else
4403 ac_compiler_gnu=no
4404fi
4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406ac_cv_c_compiler_gnu=$ac_compiler_gnu
4407
4408fi
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4410$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4411if test $ac_compiler_gnu = yes; then
4412 GCC=yes
4413else
4414 GCC=
4415fi
4416ac_test_CFLAGS=${CFLAGS+set}
4417ac_save_CFLAGS=$CFLAGS
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4419$as_echo_n "checking whether $CC accepts -g... " >&6; }
4420if test "${ac_cv_prog_cc_g+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422else
4423 ac_save_c_werror_flag=$ac_c_werror_flag
4424 ac_c_werror_flag=yes
4425 ac_cv_prog_cc_g=no
4426 CFLAGS="-g"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h. */
4429
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
4438if ac_fn_c_try_compile "$LINENO"; then :
4439 ac_cv_prog_cc_g=yes
4440else
4441 CFLAGS=""
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h. */
4444
4445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453if ac_fn_c_try_compile "$LINENO"; then :
4454
4455else
4456 ac_c_werror_flag=$ac_save_c_werror_flag
4457 CFLAGS="-g"
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
4460
4461int
4462main ()
4463{
4464
4465 ;
4466 return 0;
4467}
4468_ACEOF
4469if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_g=yes
4471fi
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473fi
4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475fi
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_c_werror_flag=$ac_save_c_werror_flag
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4480$as_echo "$ac_cv_prog_cc_g" >&6; }
4481if test "$ac_test_CFLAGS" = set; then
4482 CFLAGS=$ac_save_CFLAGS
4483elif test $ac_cv_prog_cc_g = yes; then
4484 if test "$GCC" = yes; then
4485 CFLAGS="-g -O2"
4486 else
4487 CFLAGS="-g"
4488 fi
4489else
4490 if test "$GCC" = yes; then
4491 CFLAGS="-O2"
4492 else
4493 CFLAGS=
4494 fi
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4497$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4498if test "${ac_cv_prog_cc_c89+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500else
4501 ac_cv_prog_cc_c89=no
4502ac_save_CC=$CC
4503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504/* end confdefs.h. */
4505#include <stdarg.h>
4506#include <stdio.h>
4507#include <sys/types.h>
4508#include <sys/stat.h>
4509/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4510struct buf { int x; };
4511FILE * (*rcsopen) (struct buf *, struct stat *, int);
4512static char *e (p, i)
4513 char **p;
4514 int i;
4515{
4516 return p[i];
4517}
4518static char *f (char * (*g) (char **, int), char **p, ...)
4519{
4520 char *s;
4521 va_list v;
4522 va_start (v,p);
4523 s = g (p, va_arg (v,int));
4524 va_end (v);
4525 return s;
4526}
4527
4528/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4529 function prototypes and stuff, but not '\xHH' hex character constants.
4530 These don't provoke an error unfortunately, instead are silently treated
4531 as 'x'. The following induces an error, until -std is added to get
4532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4533 array size at least. It's necessary to write '\x00'==0 to get something
4534 that's true only with -std. */
4535int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4536
4537/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4538 inside strings and character constants. */
4539#define FOO(x) 'x'
4540int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4541
4542int test (int i, double x);
4543struct s1 {int (*f) (int a);};
4544struct s2 {int (*f) (double a);};
4545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4546int argc;
4547char **argv;
4548int
4549main ()
4550{
4551return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4552 ;
4553 return 0;
4554}
4555_ACEOF
4556for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4557 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4558do
4559 CC="$ac_save_CC $ac_arg"
4560 if ac_fn_c_try_compile "$LINENO"; then :
4561 ac_cv_prog_cc_c89=$ac_arg
4562fi
4563rm -f core conftest.err conftest.$ac_objext
4564 test "x$ac_cv_prog_cc_c89" != "xno" && break
4565done
4566rm -f conftest.$ac_ext
4567CC=$ac_save_CC
4568
4569fi
4570# AC_CACHE_VAL
4571case "x$ac_cv_prog_cc_c89" in
4572 x)
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4574$as_echo "none needed" >&6; } ;;
4575 xno)
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4577$as_echo "unsupported" >&6; } ;;
4578 *)
4579 CC="$CC $ac_cv_prog_cc_c89"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4581$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4582esac
4583if test "x$ac_cv_prog_cc_c89" != xno; then :
4584
4585fi
4586
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592
4593ac_ext=cpp
4594ac_cpp='$CXXCPP $CPPFLAGS'
4595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4598if test -z "$CXX"; then
4599 if test -n "$CCC"; then
4600 CXX=$CCC
4601 else
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_prog_CXX+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
4611else
4612 if test -n "$CXX"; then
4613 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626done
4627 done
4628IFS=$as_save_IFS
4629
4630fi
4631fi
4632CXX=$ac_cv_prog_CXX
4633if test -n "$CXX"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4635$as_echo "$CXX" >&6; }
4636else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
4639fi
4640
4641
4642 test -n "$CXX" && break
4643 done
4644fi
4645if test -z "$CXX"; then
4646 ac_ct_CXX=$CXX
4647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4648do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650set dummy $ac_prog; ac_word=$2
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
4653if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
4655else
4656 if test -n "$ac_ct_CXX"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_ac_ct_CXX="$ac_prog"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671 done
4672IFS=$as_save_IFS
4673
4674fi
4675fi
4676ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4677if test -n "$ac_ct_CXX"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4679$as_echo "$ac_ct_CXX" >&6; }
4680else
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
4683fi
4684
4685
4686 test -n "$ac_ct_CXX" && break
4687done
4688
4689 if test "x$ac_ct_CXX" = x; then
4690 CXX="g++"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696ac_tool_warned=yes ;;
4697esac
4698 CXX=$ac_ct_CXX
4699 fi
4700fi
4701
4702 fi
4703fi
4704# Provide some information about the compiler.
4705$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4706set X $ac_compile
4707ac_compiler=$2
4708for ac_option in --version -v -V -qversion; do
4709 { { ac_try="$ac_compiler $ac_option >&5"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715$as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4717 ac_status=$?
4718 if test -s conftest.err; then
4719 sed '10a\
4720... rest of stderr output deleted ...
4721 10q' conftest.err >conftest.er1
4722 cat conftest.er1 >&5
4723 rm -f conftest.er1 conftest.err
4724 fi
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727done
4728
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4730$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4731if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
4733else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h. */
4736
4737int
4738main ()
4739{
4740#ifndef __GNUC__
4741 choke me
4742#endif
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
4748if ac_fn_cxx_try_compile "$LINENO"; then :
4749 ac_compiler_gnu=yes
4750else
4751 ac_compiler_gnu=no
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4755
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4758$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4759if test $ac_compiler_gnu = yes; then
4760 GXX=yes
4761else
4762 GXX=
4763fi
4764ac_test_CXXFLAGS=${CXXFLAGS+set}
4765ac_save_CXXFLAGS=$CXXFLAGS
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4767$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4768if test "${ac_cv_prog_cxx_g+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4772 ac_cxx_werror_flag=yes
4773 ac_cv_prog_cxx_g=no
4774 CXXFLAGS="-g"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
4786if ac_fn_cxx_try_compile "$LINENO"; then :
4787 ac_cv_prog_cxx_g=yes
4788else
4789 CXXFLAGS=""
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h. */
4792
4793int
4794main ()
4795{
4796
4797 ;
4798 return 0;
4799}
4800_ACEOF
4801if ac_fn_cxx_try_compile "$LINENO"; then :
4802
4803else
4804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4805 CXXFLAGS="-g"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807/* end confdefs.h. */
4808
4809int
4810main ()
4811{
4812
4813 ;
4814 return 0;
4815}
4816_ACEOF
4817if ac_fn_cxx_try_compile "$LINENO"; then :
4818 ac_cv_prog_cxx_g=yes
4819fi
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821fi
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4828$as_echo "$ac_cv_prog_cxx_g" >&6; }
4829if test "$ac_test_CXXFLAGS" = set; then
4830 CXXFLAGS=$ac_save_CXXFLAGS
4831elif test $ac_cv_prog_cxx_g = yes; then
4832 if test "$GXX" = yes; then
4833 CXXFLAGS="-g -O2"
4834 else
4835 CXXFLAGS="-g"
4836 fi
4837else
4838 if test "$GXX" = yes; then
4839 CXXFLAGS="-O2"
4840 else
4841 CXXFLAGS=
4842 fi
4843fi
4844ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850
4851# We must set the default linker to the linker used by gcc for the correct
4852# operation of libtool. If LD is not defined and we are using gcc, try to
4853# set the LD default to the ld used by gcc.
4854if test -z "$LD"; then
4855 if test "$GCC" = yes; then
4856 case $build in
4857 *-*-mingw*)
4858 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4859 *)
4860 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4861 esac
4862 case $gcc_prog_ld in
4863 # Accept absolute paths.
4864 [\\/]* | [A-Za-z]:[\\/]*)
4865 LD="$gcc_prog_ld" ;;
4866 esac
4867 fi
4868fi
4869
4870
4871
4872
4873if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4875set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
4878if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880else
4881 if test -n "$GNATBIND"; then
4882 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4883else
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893 break 2
4894 fi
4895done
4896 done
4897IFS=$as_save_IFS
4898
4899fi
4900fi
4901GNATBIND=$ac_cv_prog_GNATBIND
4902if test -n "$GNATBIND"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4904$as_echo "$GNATBIND" >&6; }
4905else
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
4908fi
4909
4910
4911fi
4912if test -z "$ac_cv_prog_GNATBIND"; then
4913 ac_ct_GNATBIND=$GNATBIND
4914 # Extract the first word of "gnatbind", so it can be a program name with args.
4915set dummy gnatbind; ac_word=$2
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920else
4921 if test -n "$ac_ct_GNATBIND"; then
4922 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4923else
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4933 break 2
4934 fi
4935done
4936 done
4937IFS=$as_save_IFS
4938
4939fi
4940fi
4941ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4942if test -n "$ac_ct_GNATBIND"; then
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4944$as_echo "$ac_ct_GNATBIND" >&6; }
4945else
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
4948fi
4949
4950 if test "x$ac_ct_GNATBIND" = x; then
4951 GNATBIND="no"
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954yes:)
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957ac_tool_warned=yes ;;
4958esac
4959 GNATBIND=$ac_ct_GNATBIND
4960 fi
4961else
4962 GNATBIND="$ac_cv_prog_GNATBIND"
4963fi
4964
4965if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972else
4973 if test -n "$GNATMAKE"; then
4974 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987done
4988 done
4989IFS=$as_save_IFS
4990
4991fi
4992fi
4993GNATMAKE=$ac_cv_prog_GNATMAKE
4994if test -n "$GNATMAKE"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4996$as_echo "$GNATMAKE" >&6; }
4997else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003fi
5004if test -z "$ac_cv_prog_GNATMAKE"; then
5005 ac_ct_GNATMAKE=$GNATMAKE
5006 # Extract the first word of "gnatmake", so it can be a program name with args.
5007set dummy gnatmake; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012else
5013 if test -n "$ac_ct_GNATMAKE"; then
5014 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5015else
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027done
5028 done
5029IFS=$as_save_IFS
5030
5031fi
5032fi
5033ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5034if test -n "$ac_ct_GNATMAKE"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5036$as_echo "$ac_ct_GNATMAKE" >&6; }
5037else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5040fi
5041
5042 if test "x$ac_ct_GNATMAKE" = x; then
5043 GNATMAKE="no"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046yes:)
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
5051 GNATMAKE=$ac_ct_GNATMAKE
5052 fi
5053else
5054 GNATMAKE="$ac_cv_prog_GNATMAKE"
5055fi
5056
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5058$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5059if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
5061else
5062 cat >conftest.adb <<EOF
5063procedure conftest is begin null; end conftest;
5064EOF
5065acx_cv_cc_gcc_supports_ada=no
5066# There is a bug in old released versions of GCC which causes the
5067# driver to exit successfully when the appropriate language module
5068# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5069# Therefore we must check for the error message as well as an
5070# unsuccessful exit.
5071# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5072# given a .adb file, but produce no object file. So we must check
5073# if an object file was really produced to guard against this.
5074errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5075if test x"$errors" = x && test -f conftest.$ac_objext; then
5076 acx_cv_cc_gcc_supports_ada=yes
5077fi
5078rm -f conftest.*
5079fi
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5081$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5082
5083if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5084 have_gnat=yes
5085else
5086 have_gnat=no
5087fi
5088
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5090$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5091if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
5093else
5094 echo abfoo >t1
5095 echo cdfoo >t2
5096 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5097 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5098 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5099 :
5100 else
5101 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5102 fi
5103 fi
5104 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5105 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5106 :
5107 else
5108 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5109 fi
5110 fi
5111 rm t1 t2
5112
5113fi
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5115$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5116do_compare="$gcc_cv_prog_cmp_skip"
5117
5118
5119
5120# See if we are building gcc with C++.
5121# Check whether --enable-build-with-cxx was given.
5122if test "${enable_build_with_cxx+set}" = set; then :
5123 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
5124else
5125 ENABLE_BUILD_WITH_CXX=no
5126fi
5127
5128
5129# Used for setting $lt_cv_objdir
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5131$as_echo_n "checking for objdir... " >&6; }
5132if test "${lt_cv_objdir+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 rm -f .libs 2>/dev/null
5136mkdir .libs 2>/dev/null
5137if test -d .libs; then
5138 lt_cv_objdir=.libs
5139else
5140 # MS-DOS does not allow filenames that begin with a dot.
5141 lt_cv_objdir=_libs
5142fi
5143rmdir .libs 2>/dev/null
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5146$as_echo "$lt_cv_objdir" >&6; }
5147objdir=$lt_cv_objdir
5148
5149
5150
5151
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LT_OBJDIR "$lt_cv_objdir/"
5155_ACEOF
5156
5157
5158
5159# Check for GMP, MPFR and MPC
5160gmplibs="-lmpc -lmpfr -lgmp"
5161gmpinc=
5162have_gmp=no
5163
5164# Specify a location for mpc
5165# check for this first so it ends up on the link line before mpfr.
5166
5167# Check whether --with-mpc was given.
5168if test "${with_mpc+set}" = set; then :
5169 withval=$with_mpc;
5170fi
5171
5172
5173# Check whether --with-mpc-include was given.
5174if test "${with_mpc_include+set}" = set; then :
5175 withval=$with_mpc_include;
5176fi
5177
5178
5179# Check whether --with-mpc-lib was given.
5180if test "${with_mpc_lib+set}" = set; then :
5181 withval=$with_mpc_lib;
5182fi
5183
5184
5185if test "x$with_mpc" != x; then
5186 gmplibs="-L$with_mpc/lib $gmplibs"
5187 gmpinc="-I$with_mpc/include $gmpinc"
5188fi
5189if test "x$with_mpc_include" != x; then
5190 gmpinc="-I$with_mpc_include $gmpinc"
5191fi
5192if test "x$with_mpc_lib" != x; then
5193 gmplibs="-L$with_mpc_lib $gmplibs"
5194fi
5195if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5196 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
5197 gmpinc='-I$$s/mpc/src '"$gmpinc"
5198 # Do not test the mpc version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
5202 have_gmp=yes
5203fi
5204
5205# Specify a location for mpfr
5206# check for this first so it ends up on the link line before gmp.
5207
5208# Check whether --with-mpfr-dir was given.
5209if test "${with_mpfr_dir+set}" = set; then :
5210 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5211Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5212fi
5213
5214
5215
5216# Check whether --with-mpfr was given.
5217if test "${with_mpfr+set}" = set; then :
5218 withval=$with_mpfr;
5219fi
5220
5221
5222# Check whether --with-mpfr-include was given.
5223if test "${with_mpfr_include+set}" = set; then :
5224 withval=$with_mpfr_include;
5225fi
5226
5227
5228# Check whether --with-mpfr-lib was given.
5229if test "${with_mpfr_lib+set}" = set; then :
5230 withval=$with_mpfr_lib;
5231fi
5232
5233
5234if test "x$with_mpfr" != x; then
5235 gmplibs="-L$with_mpfr/lib $gmplibs"
5236 gmpinc="-I$with_mpfr/include $gmpinc"
5237fi
5238if test "x$with_mpfr_include" != x; then
5239 gmpinc="-I$with_mpfr_include $gmpinc"
5240fi
5241if test "x$with_mpfr_lib" != x; then
5242 gmplibs="-L$with_mpfr_lib $gmplibs"
5243fi
5244if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5245 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5246 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5247 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5248 # Do not test the mpfr version. Assume that it is sufficient, since
5249 # it is in the source tree, and the library has not been built yet
5250 # but it would be included on the link line in the version check below
5251 # hence making the test fail.
5252 have_gmp=yes
5253fi
5254
5255# Specify a location for gmp
5256
5257# Check whether --with-gmp-dir was given.
5258if test "${with_gmp_dir+set}" = set; then :
5259 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5260Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5261fi
5262
5263
5264
5265# Check whether --with-gmp was given.
5266if test "${with_gmp+set}" = set; then :
5267 withval=$with_gmp;
5268fi
5269
5270
5271# Check whether --with-gmp-include was given.
5272if test "${with_gmp_include+set}" = set; then :
5273 withval=$with_gmp_include;
5274fi
5275
5276
5277# Check whether --with-gmp-lib was given.
5278if test "${with_gmp_lib+set}" = set; then :
5279 withval=$with_gmp_lib;
5280fi
5281
5282
5283
5284if test "x$with_gmp" != x; then
5285 gmplibs="-L$with_gmp/lib $gmplibs"
5286 gmpinc="-I$with_gmp/include $gmpinc"
5287fi
5288if test "x$with_gmp_include" != x; then
5289 gmpinc="-I$with_gmp_include $gmpinc"
5290fi
5291if test "x$with_gmp_lib" != x; then
5292 gmplibs="-L$with_gmp_lib $gmplibs"
5293fi
5294if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5295 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
5296 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
5297 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5298 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
5299 # Do not test the gmp version. Assume that it is sufficient, since
5300 # it is in the source tree, and the library has not been built yet
5301 # but it would be included on the link line in the version check below
5302 # hence making the test fail.
5303 have_gmp=yes
5304fi
5305
5306if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
5307 have_gmp=yes
5308 saved_CFLAGS="$CFLAGS"
5309 CFLAGS="$CFLAGS $gmpinc"
5310 # Check for the recommended and required versions of GMP.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5312$as_echo_n "checking for the correct version of gmp.h... " >&6; }
5313
5314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h. */
5316#include "gmp.h"
5317int
5318main ()
5319{
5320
5321 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5322 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5323 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5324 choke me
5325 #endif
5326
5327 ;
5328 return 0;
5329}
5330_ACEOF
5331if ac_fn_c_try_compile "$LINENO"; then :
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <gmp.h>
5335int
5336main ()
5337{
5338
5339 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5340 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5341 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
5342 choke me
5343 #endif
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
5349if ac_fn_c_try_compile "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5354$as_echo "buggy but acceptable" >&6; }
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }; have_gmp=no
5360fi
5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362
5363 # If we have GMP, check the MPFR version.
5364 if test x"$have_gmp" = xyes; then
5365 # Check for the recommended and required versions of MPFR.
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5367$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370#include <gmp.h>
5371 #include <mpfr.h>
5372int
5373main ()
5374{
5375
5376 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
5377 choke me
5378 #endif
5379
5380 ;
5381 return 0;
5382}
5383_ACEOF
5384if ac_fn_c_try_compile "$LINENO"; then :
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386/* end confdefs.h. */
5387#include <gmp.h>
5388 #include <mpfr.h>
5389int
5390main ()
5391{
5392
5393 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
5394 choke me
5395 #endif
5396
5397 ;
5398 return 0;
5399}
5400_ACEOF
5401if ac_fn_c_try_compile "$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403$as_echo "yes" >&6; }
5404else
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5406$as_echo "buggy but acceptable" >&6; }
5407fi
5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5409else
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411$as_echo "no" >&6; }; have_gmp=no
5412fi
5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 fi
5415
5416 # Check for the MPC header version.
5417 if test x"$have_gmp" = xyes ; then
5418 # Check for the recommended and required versions of MPC.
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5420$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422/* end confdefs.h. */
5423#include <mpc.h>
5424int
5425main ()
5426{
5427
5428 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5429 choke me
5430 #endif
5431
5432 ;
5433 return 0;
5434}
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <mpc.h>
5440int
5441main ()
5442{
5443
5444 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
5445 choke me
5446 #endif
5447
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_compile "$LINENO"; then :
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5454$as_echo "yes" >&6; }
5455else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5457$as_echo "buggy but acceptable" >&6; }
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462$as_echo "no" >&6; }; have_gmp=no
5463fi
5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 fi
5466
5467 # Now check the MPFR library.
5468 if test x"$have_gmp" = xyes; then
5469 saved_LIBS="$LIBS"
5470 LIBS="$LIBS $gmplibs"
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5472$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h. */
5475#include <mpc.h>
5476int
5477main ()
5478{
5479
5480 mpfr_t n;
5481 mpfr_t x;
5482 mpc_t c;
5483 int t;
5484 mpfr_init (n);
5485 mpfr_init (x);
5486 mpfr_atan2 (n, n, x, GMP_RNDN);
5487 mpfr_erfc (n, x, GMP_RNDN);
5488 mpfr_subnormalize (x, t, GMP_RNDN);
5489 mpfr_clear(n);
5490 mpfr_clear(x);
5491 mpc_init2 (c, 53);
5492 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5493 mpc_cosh (c, c, MPC_RNDNN);
5494 mpc_pow (c, c, c, MPC_RNDNN);
5495 mpc_acosh (c, c, MPC_RNDNN);
5496 mpc_clear (c);
5497
5498 ;
5499 return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_link "$LINENO"; then :
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504$as_echo "yes" >&6; }
5505else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }; have_gmp=no
5508fi
5509rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511 LIBS="$saved_LIBS"
5512 fi
5513
5514 CFLAGS="$saved_CFLAGS"
5515
5516# The library versions listed in the error message below should match
5517# the HARD-minimums enforced above.
5518 if test x$have_gmp != xyes; then
5519 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
5520Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5521their locations. Source code for these libraries can be found at
5522their respective hosting sites as well as at
5523ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5524http://gcc.gnu.org/install/prerequisites.html for additional info. If
5525you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5526make sure that you have installed both the libraries and the header
5527files. They may be located in separate packages." "$LINENO" 5
5528 fi
5529fi
5530
5531# Flags needed for both GMP, MPFR and/or MPC.
5532
5533
5534
5535
5536
5537
5538# Allow host libstdc++ to be specified for static linking with PPL.
5539
5540# Check whether --with-host-libstdcxx was given.
5541if test "${with_host_libstdcxx+set}" = set; then :
5542 withval=$with_host_libstdcxx;
5543fi
5544
5545
5546case $with_host_libstdcxx in
5547 no|yes)
5548 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5549 ;;
5550esac
5551
5552# Linker flags to use for stage1 or when not boostrapping.
5553
5554# Check whether --with-stage1-ldflags was given.
5555if test "${with_stage1_ldflags+set}" = set; then :
5556 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5557 stage1_ldflags=
5558 else
5559 stage1_ldflags=$withval
5560 fi
5561else
5562 stage1_ldflags=
5563fi
5564
5565
5566
5567# Libraries to use for stage1 or when not bootstrapping.
5568
5569# Check whether --with-stage1-libs was given.
5570if test "${with_stage1_libs+set}" = set; then :
5571 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5572 stage1_libs=
5573 else
5574 stage1_libs=$withval
5575 fi
5576else
5577 stage1_libs=$with_host_libstdcxx
5578fi
5579
5580
5581
5582# Libraries to use for stage2 and later builds. This defaults to the
5583# argument passed to --with-host-libstdcxx.
5584
5585# Check whether --with-boot-libs was given.
5586if test "${with_boot_libs+set}" = set; then :
5587 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5588 poststage1_libs=
5589 else
5590 poststage1_libs=$withval
5591 fi
5592else
5593 poststage1_libs=$with_host_libstdcxx
5594fi
5595
5596
5597
5598# Linker flags to use for stage2 and later builds.
5599
5600# Check whether --with-boot-ldflags was given.
5601if test "${with_boot_ldflags+set}" = set; then :
5602 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5603 poststage1_ldflags=
5604 else
5605 poststage1_ldflags=$withval
5606 fi
5607else
5608 poststage1_ldflags=
5609 # In stages 2 and 3, default to linking libstdc++ and libgcc
5610 # statically. But if the user explicitly specified the libraries to
5611 # use, trust that they are doing what they want.
5612 if test "$poststage1_libs" = ""; then
5613 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5614 fi
5615fi
5616
5617
5618
5619# Check for PPL
5620ppllibs=" -lppl_c -lppl -lgmpxx"
5621pplinc=
5622
5623
5624# Check whether --with-ppl was given.
5625if test "${with_ppl+set}" = set; then :
5626 withval=$with_ppl;
5627fi
5628
5629
5630# Check whether --with-ppl-include was given.
5631if test "${with_ppl_include+set}" = set; then :
5632 withval=$with_ppl_include;
5633fi
5634
5635
5636# Check whether --with-ppl-lib was given.
5637if test "${with_ppl_lib+set}" = set; then :
5638 withval=$with_ppl_lib;
5639fi
5640
5641
5642case $with_ppl in
5643 no)
5644 ppllibs=
5645 ;;
5646 "" | yes)
5647 ;;
5648 *)
5649 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
5650 pplinc="-I$with_ppl/include $pplinc"
5651 ;;
5652esac
5653if test "x$with_ppl_include" != x; then
5654 pplinc="-I$with_ppl_include $pplinc"
5655fi
5656if test "x$with_ppl_lib" != x; then
5657 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
5658fi
5659if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5660 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
5661 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5662 enable_ppl_version_check=no
5663fi
5664
5665# Check whether --enable-ppl-version-check was given.
5666if test "${enable_ppl_version_check+set}" = set; then :
5667 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
5668else
5669 ENABLE_PPL_CHECK=yes
5670fi
5671
5672
5673if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
5674 saved_CFLAGS="$CFLAGS"
5675 CFLAGS="$CFLAGS $pplinc $gmpinc"
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5677$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679/* end confdefs.h. */
5680#include "ppl_c.h"
5681int
5682main ()
5683{
5684
5685 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
5686 choke me
5687 #endif
5688
5689 ;
5690 return 0;
5691}
5692_ACEOF
5693if ac_fn_c_try_compile "$LINENO"; then :
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695$as_echo "yes" >&6; }
5696else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
5699fi
5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 CFLAGS="$saved_CFLAGS"
5702fi
5703
5704# Flags needed for PPL
5705
5706
5707
5708
5709# Check for CLOOG
5710
5711
5712
5713# Check whether --with-cloog was given.
5714if test "${with_cloog+set}" = set; then :
5715 withval=$with_cloog;
5716fi
5717
5718
5719# Check whether --with-cloog-include was given.
5720if test "${with_cloog_include+set}" = set; then :
5721 withval=$with_cloog_include;
5722fi
5723
5724
5725# Check whether --with-cloog-lib was given.
5726if test "${with_cloog_lib+set}" = set; then :
5727 withval=$with_cloog_lib;
5728fi
5729
5730
5731 # Check whether --enable-cloog-backend was given.
5732if test "${enable_cloog_backend+set}" = set; then :
5733 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5734 cloog_backend=isl
5735 elif test "x${enableval}" = "xppl"; then
5736 cloog_backend=ppl
5737 else
5738 cloog_backend=ppl-legacy
5739 fi
5740else
5741 cloog_backend=ppl-legacy
5742fi
5743
5744 # Check whether --enable-cloog-version-check was given.
5745if test "${enable_cloog_version_check+set}" = set; then :
5746 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5747else
5748 ENABLE_CLOOG_CHECK=yes
5749fi
5750
5751
5752 # Initialize clooglibs and clooginc.
5753 case $with_cloog in
5754 no)
5755 clooglibs=
5756 clooginc=
5757 ;;
5758 "" | yes)
5759 ;;
5760 *)
5761 clooglibs="-L$with_cloog/lib"
5762 clooginc="-I$with_cloog/include"
5763 ;;
5764 esac
5765 if test "x${with_cloog_include}" != x ; then
5766 clooginc="-I$with_cloog_include"
5767 fi
5768 if test "x${with_cloog_lib}" != x; then
5769 clooglibs="-L$with_cloog_lib"
5770 fi
5771
5772
5773
5774
5775
5776if test "x$with_ppl" = "xno"; then
5777 with_cloog=no
5778fi
5779if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5780 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5781 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5782 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5783fi
5784if test "x$with_cloog" != "xno"; then
5785
5786
5787
5788 _cloog_saved_CFLAGS=$CFLAGS
5789 _cloog_saved_CPPFLAGS=$CPPFLAGS
5790 _cloog_saved_LDFLAGS=$LDFLAGS
5791 _cloog_saved_LIBS=$LIBS
5792
5793 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5794
5795 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5796 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5797 LDFLAGS="${LDFLAGS} ${clooglibs}"
5798
5799 case $cloog_backend in
5800 "ppl-legacy")
5801 CFLAGS="${CFLAGS} ${pplinc}"
5802 LDFLAGS="${LDFLAGS} ${ppllibs}"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5804$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5805if test "${gcc_cv_cloog_type+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 LIBS="-lcloog ${_cloog_saved_LIBS}"
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810/* end confdefs.h. */
5811#include "cloog/cloog.h"
5812int
5813main ()
5814{
5815#ifndef CLOOG_PPL_BACKEND
5816 choke me
5817 #endif
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_link "$LINENO"; then :
5823 gcc_cv_cloog_type="PPL Legacy"
5824else
5825 gcc_cv_cloog_type=no
5826fi
5827rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5831$as_echo "$gcc_cv_cloog_type" >&6; }
5832 ;;
5833 "isl")
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5835$as_echo_n "checking for installed CLooG ISL... " >&6; }
5836if test "${gcc_cv_cloog_type+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841/* end confdefs.h. */
5842#include "cloog/cloog.h"
5843int
5844main ()
5845{
5846cloog_version ()
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_link "$LINENO"; then :
5852 gcc_cv_cloog_type="ISL"
5853else
5854 gcc_cv_cloog_type=no
5855fi
5856rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5860$as_echo "$gcc_cv_cloog_type" >&6; }
5861 ;;
5862 "ppl")
5863 CFLAGS="${CFLAGS} ${pplinc}"
5864 LDFLAGS="${LDFLAGS} ${ppllibs}"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5866$as_echo_n "checking for installed CLooG PPL... " >&6; }
5867if test "${gcc_cv_cloog_type+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
5869else
5870 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h. */
5873#include "cloog/cloog.h"
5874 #include "cloog/ppl/cloog.h"
5875int
5876main ()
5877{
5878cloog_version ()
5879 ;
5880 return 0;
5881}
5882_ACEOF
5883if ac_fn_c_try_link "$LINENO"; then :
5884 gcc_cv_cloog_type="PPL"
5885else
5886 gcc_cv_cloog_type=no
5887fi
5888rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
5890fi
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5892$as_echo "$gcc_cv_cloog_type" >&6; }
5893 ;;
5894 *)
5895 gcc_cv_cloog_type=""
5896 esac
5897
5898 case $gcc_cv_cloog_type in
5899 "PPL Legacy")
5900 clooginc="${clooginc}"
5901 clooglibs="${clooglibs} -lcloog"
5902 cloog_org=no
5903 ;;
5904 "ISL")
5905 clooginc="${clooginc} ${_cloogorginc}"
5906 clooglibs="${clooglibs} -lcloog-isl"
5907 cloog_org=yes
5908 ;;
5909 "PPL")
5910 clooginc="${clooginc} ${_cloogorginc}"
5911 clooglibs="${clooglibs} -lcloog-ppl"
5912 cloog_org=yes
5913 ;;
5914 *)
5915 clooglibs=
5916 clooginc=
5917 cloog_org=
5918 ;;
5919 esac
5920
5921 LIBS=$_cloog_saved_LIBS
5922 CFLAGS=$_cloog_saved_CFLAGS
5923 CPPFLAGS=$_cloog_saved_CPPFLAGS
5924 LDFLAGS=$_cloog_saved_LDFLAGS
5925
5926
5927
5928
5929
5930 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5931 _cloog_saved_CFLAGS=$CFLAGS
5932 _cloog_saved_LDFLAGS=$LDFLAGS
5933
5934 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5935 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5936
5937 if test "${cloog_org}" = yes ; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5939$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5940if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945#include "cloog/cloog.h"
5946int
5947main ()
5948{
5949#if CLOOG_VERSION_MAJOR != 0 \
5950 || CLOOG_VERSION_MINOR != 14 \
5951 || CLOOG_VERSION_REVISION < 0
5952 choke me
5953 #endif
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"; then :
5959 gcc_cv_cloog_ct_0_14_0=yes
5960else
5961 gcc_cv_cloog_ct_0_14_0=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5966$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5967 elif test "${cloog_org}" = no ; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5969$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5970if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h. */
5975#include "cloog/cloog.h"
5976int
5977main ()
5978{
5979#if CLOOG_VERSION_MAJOR != 0 \
5980 || CLOOG_VERSION_MINOR != 15 \
5981 || CLOOG_VERSION_REVISION < 5
5982 choke me
5983 #endif
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988if ac_fn_c_try_compile "$LINENO"; then :
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h. */
5991#include "cloog/cloog.h"
5992int
5993main ()
5994{
5995#if CLOOG_VERSION_MAJOR != 0 \
5996 || CLOOG_VERSION_MINOR != 15 \
5997 || CLOOG_VERSION_REVISION < 9
5998 choke me
5999 #endif
6000 ;
6001 return 0;
6002}
6003_ACEOF
6004if ac_fn_c_try_compile "$LINENO"; then :
6005 gcc_cv_cloog_ct_0_15_5=yes
6006else
6007 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010else
6011 gcc_cv_cloog_ct_0_15_5=no
6012fi
6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014fi
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6016$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6017 fi
6018
6019 CFLAGS=$_cloog_saved_CFLAGS
6020 LDFLAGS=$_cloog_saved_LDFLAGS
6021 fi
6022
6023
6024
6025
6026
6027
6028
6029 if test "x${with_cloog}" != x \
6030 || test "x${with_cloog_include}" != x \
6031 || test "x${with_cloog_lib}" != x ; then
6032 graphite_requested=yes
6033 else
6034 graphite_requested=no
6035 fi
6036
6037
6038
6039 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6040 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6041 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6042 clooglibs=
6043 clooginc=
6044 fi
6045
6046 if test "${graphite_requested}" = yes \
6047 && test "x${clooglibs}" = x \
6048 && test "x${clooginc}" = x ; then
6049
6050 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6051 fi
6052
6053
6054fi
6055
6056# Check for LTO support.
6057# Check whether --enable-lto was given.
6058if test "${enable_lto+set}" = set; then :
6059 enableval=$enable_lto; enable_lto=$enableval
6060else
6061 enable_lto=yes; default_enable_lto=yes
6062fi
6063
6064
6065
6066
6067
6068target_elf=no
6069case $target in
6070 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6071 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6072 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6073 target_elf=no
6074 ;;
6075 *)
6076 target_elf=yes
6077 ;;
6078esac
6079
6080if test $target_elf = yes; then :
6081 # ELF platforms build the lto-plugin always.
6082 build_lto_plugin=yes
6083
6084else
6085 if test x"$default_enable_lto" = x"yes" ; then
6086 case $target in
6087 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
6088 # On other non-ELF platforms, LTO has yet to be validated.
6089 *) enable_lto=no ;;
6090 esac
6091 else
6092 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6093 # It would also be nice to check the binutils support, but we don't
6094 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6095 # warn during gcc/ subconfigure; unless you're bootstrapping with
6096 # -flto it won't be needed until after installation anyway.
6097 case $target in
6098 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
6099 *) if test x"$enable_lto" = x"yes"; then
6100 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6101 fi
6102 ;;
6103 esac
6104 fi
6105 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6106 # Build it unless LTO was explicitly disabled.
6107 case $target in
6108 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
6109 *) ;;
6110 esac
6111
6112fi
6113
6114
6115
6116# By default, C is the only stage 1 language.
6117stage1_languages=,c,
6118
6119# Target libraries that we bootstrap.
6120bootstrap_target_libs=,target-libgcc,
6121
6122# Figure out what language subdirectories are present.
6123# Look if the user specified --enable-languages="..."; if not, use
6124# the environment variable $LANGUAGES if defined. $LANGUAGES might
6125# go away some day.
6126# NB: embedded tabs in this IF block -- do not untabify
6127if test -d ${srcdir}/gcc; then
6128 if test x"${enable_languages+set}" != xset; then
6129 if test x"${LANGUAGES+set}" = xset; then
6130 enable_languages="${LANGUAGES}"
6131 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6132 else
6133 enable_languages=all
6134 fi
6135 else
6136 if test x"${enable_languages}" = x ||
6137 test x"${enable_languages}" = xyes;
6138 then
6139 echo configure.in: --enable-languages needs at least one language argument 1>&2
6140 exit 1
6141 fi
6142 fi
6143 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6144
6145 # 'f95' is the old name for the 'fortran' language. We issue a warning
6146 # and make the substitution.
6147 case ,${enable_languages}, in
6148 *,f95,*)
6149 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6151 ;;
6152 esac
6153
6154 # First scan to see if an enabled language requires some other language.
6155 # We assume that a given config-lang.in will list all the language
6156 # front ends it requires, even if some are required indirectly.
6157 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6158 case ${lang_frag} in
6159 ..) ;;
6160 # The odd quoting in the next line works around
6161 # an apparent bug in bash 1.12 on linux.
6162 ${srcdir}/gcc/[*]/config-lang.in) ;;
6163 *)
6164 # From the config-lang.in, get $language, $lang_requires, and
6165 # $lang_requires_boot_languages.
6166 language=
6167 lang_requires=
6168 lang_requires_boot_languages=
6169 . ${lang_frag}
6170 for other in ${lang_requires} ${lang_requires_boot_languages}; do
6171 case ,${enable_languages}, in
6172 *,$other,*) ;;
6173 *,all,*) ;;
6174 *,$language,*)
6175 echo " \`$other' language required by \`$language'; enabling" 1>&2
6176 enable_languages="${enable_languages},${other}"
6177 ;;
6178 esac
6179 done
6180 for other in ${lang_requires_boot_languages} ; do
6181 if test "$other" != "c"; then
6182 case ,${enable_stage1_languages}, in
6183 *,$other,*) ;;
6184 *,all,*) ;;
6185 *)
6186 case ,${enable_languages}, in
6187 *,$language,*)
6188 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6189 enable_stage1_languages="$enable_stage1_languages,${other}"
6190 ;;
6191 esac
6192 ;;
6193 esac
6194 fi
6195 done
6196 ;;
6197 esac
6198 done
6199
6200 new_enable_languages=,c,
6201
6202 # If LTO is enabled, add the LTO front end.
6203 extra_host_libiberty_configure_flags=
6204 if test "$enable_lto" = "yes" ; then
6205 case ,${enable_languages}, in
6206 *,lto,*) ;;
6207 *) enable_languages="${enable_languages},lto" ;;
6208 esac
6209 if test "${build_lto_plugin}" = "yes" ; then
6210 configdirs="$configdirs lto-plugin"
6211 extra_host_libiberty_configure_flags=--enable-shared
6212 fi
6213 fi
6214
6215
6216 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
6217 potential_languages=,c,
6218
6219 enabled_target_libs=
6220 disabled_target_libs=
6221
6222 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6223 case ${lang_frag} in
6224 ..) ;;
6225 # The odd quoting in the next line works around
6226 # an apparent bug in bash 1.12 on linux.
6227 ${srcdir}/gcc/[*]/config-lang.in) ;;
6228 *)
6229 # From the config-lang.in, get $language, $target_libs,
6230 # $lang_dirs, $boot_language, and $build_by_default
6231 language=
6232 target_libs=
6233 lang_dirs=
6234 subdir_requires=
6235 boot_language=no
6236 build_by_default=yes
6237 . ${lang_frag}
6238 if test x${language} = x; then
6239 echo "${lang_frag} doesn't set \$language." 1>&2
6240 exit 1
6241 fi
6242
6243 if test "$language" = "c++" \
6244 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6245 boot_language=yes
6246 fi
6247
6248 case ,${enable_languages}, in
6249 *,${language},*)
6250 # Language was explicitly selected; include it.
6251 add_this_lang=yes
6252 ;;
6253 *,all,*)
6254 # 'all' was selected, select it if it is a default language
6255 add_this_lang=${build_by_default}
6256 ;;
6257 *)
6258 add_this_lang=no
6259 ;;
6260 esac
6261
6262 # Disable languages that need other directories if these aren't available.
6263 for i in $subdir_requires; do
6264 test -f "$srcdir/gcc/$i/config-lang.in" && continue
6265 case ,${enable_languages}, in
6266 *,${language},*)
6267 # Specifically requested language; tell them.
6268 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
6269 ;;
6270 *)
6271 # Silently disable.
6272 add_this_lang=unsupported
6273 ;;
6274 esac
6275 done
6276
6277 # Disable Ada if no preexisting GNAT is available.
6278 case ,${enable_languages},:${language}:${have_gnat} in
6279 *,${language},*:ada:no)
6280 # Specifically requested language; tell them.
6281 as_fn_error "GNAT is required to build $language" "$LINENO" 5
6282 ;;
6283 *:ada:no)
6284 # Silently disable.
6285 add_this_lang=unsupported
6286 ;;
6287 esac
6288
6289 # Disable a language that is unsupported by the target.
6290 case " $unsupported_languages " in
6291 *" $language "*)
6292 add_this_lang=unsupported
6293 ;;
6294 esac
6295
6296 case $add_this_lang in
6297 unsupported)
6298 # Remove language-dependent dirs.
6299 disabled_target_libs="$disabled_target_libs $target_libs"
6300 noconfigdirs="$noconfigdirs $lang_dirs"
6301 ;;
6302 no)
6303 # Remove language-dependent dirs; still show language as supported.
6304 disabled_target_libs="$disabled_target_libs $target_libs"
6305 noconfigdirs="$noconfigdirs $lang_dirs"
6306 potential_languages="${potential_languages}${language},"
6307 ;;
6308 yes)
6309 new_enable_languages="${new_enable_languages}${language},"
6310 potential_languages="${potential_languages}${language},"
6311 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
6312 enabled_target_libs="$enabled_target_libs $target_libs"
6313 case "${boot_language}:,$enable_stage1_languages," in
6314 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
6315 # Add to (comma-separated) list of stage 1 languages.
6316 case ",$stage1_languages," in
6317 *,$language,* | ,yes, | ,all,) ;;
6318 *) stage1_languages="${stage1_languages}${language}," ;;
6319 esac
6320 # We need to bootstrap any supporting libraries.
6321 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
6322 ;;
6323 esac
6324 ;;
6325 esac
6326 ;;
6327 esac
6328 done
6329
6330 # Add target libraries which are only needed for disabled languages
6331 # to noconfigdirs.
6332 if test -n "$disabled_target_libs"; then
6333 for dir in $disabled_target_libs; do
6334 case " $enabled_target_libs " in
6335 *" ${dir} "*) ;;
6336 *) noconfigdirs="$noconfigdirs $dir" ;;
6337 esac
6338 done
6339 fi
6340
6341 # Check whether --enable-stage1-languages was given.
6342if test "${enable_stage1_languages+set}" = set; then :
6343 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
6344 ,no,|,,)
6345 # Set it to something that will have no effect in the loop below
6346 enable_stage1_languages=c ;;
6347 ,yes,)
6348 enable_stage1_languages=`echo $new_enable_languages | \
6349 sed -e "s/^,//" -e "s/,$//" ` ;;
6350 *,all,*)
6351 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6352 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6353 esac
6354
6355 # Add "good" languages from enable_stage1_languages to stage1_languages,
6356 # while "bad" languages go in missing_languages. Leave no duplicates.
6357 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6358 case $potential_languages in
6359 *,$i,*)
6360 case $stage1_languages in
6361 *,$i,*) ;;
6362 *) stage1_languages="$stage1_languages$i," ;;
6363 esac ;;
6364 *)
6365 case $missing_languages in
6366 *,$i,*) ;;
6367 *) missing_languages="$missing_languages$i," ;;
6368 esac ;;
6369 esac
6370 done
6371fi
6372
6373
6374 # Remove leading/trailing commas that were added for simplicity
6375 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
6376 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
6377 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6379
6380 if test "x$missing_languages" != x; then
6381 as_fn_error "
6382The following requested languages could not be built: ${missing_languages}
6383Supported languages are: ${potential_languages}" "$LINENO" 5
6384 fi
6385 if test "x$new_enable_languages" != "x$enable_languages"; then
6386 echo The following languages will be built: ${new_enable_languages}
6387 enable_languages="$new_enable_languages"
6388 fi
6389
6390
6391 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
6392fi
6393
6394# Handle --disable-<component> generically.
6395for dir in $configdirs $build_configdirs $target_configdirs ; do
6396 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
6397 varname=`echo $dirname | sed -e s/+/_/g`
6398 if eval test x\${enable_${varname}} "=" xno ; then
6399 noconfigdirs="$noconfigdirs $dir"
6400 fi
6401done
6402
6403# Check for Boehm's garbage collector
6404# Check whether --enable-objc-gc was given.
6405if test "${enable_objc_gc+set}" = set; then :
6406 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6407 *,objc,*:*:yes:*target-boehm-gc*)
6408 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6409 ;;
6410esac
6411fi
6412
6413
6414# Make sure we only build Boehm's garbage collector if required.
6415case ,${enable_languages},:${enable_objc_gc} in
6416 *,objc,*:yes)
6417 # Keep target-boehm-gc if requested for Objective-C.
6418 ;;
6419 *)
6420 # Otherwise remove target-boehm-gc depending on target-libjava.
6421 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6422 noconfigdirs="$noconfigdirs target-boehm-gc"
6423 fi
6424 ;;
6425esac
6426
6427# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6428# $build_configdirs and $target_configdirs.
6429# If we have the source for $noconfigdirs entries, add them to $notsupp.
6430
6431notsupp=""
6432for dir in . $skipdirs $noconfigdirs ; do
6433 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
6434 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6436 if test -r $srcdir/$dirname/configure ; then
6437 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6438 true
6439 else
6440 notsupp="$notsupp $dir"
6441 fi
6442 fi
6443 fi
6444 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6446 if test -r $srcdir/$dirname/configure ; then
6447 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 true
6449 else
6450 notsupp="$notsupp $dir"
6451 fi
6452 fi
6453 fi
6454 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6455 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6456 if test -r $srcdir/$dirname/configure ; then
6457 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 true
6459 else
6460 notsupp="$notsupp $dir"
6461 fi
6462 fi
6463 fi
6464done
6465
6466# Sometimes the tools are distributed with libiberty but with no other
6467# libraries. In that case, we don't want to build target-libiberty.
6468# Don't let libgcc imply libiberty either.
6469if test -n "${target_configdirs}" ; then
6470 libgcc=
6471 others=
6472 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
6473 if test "$i" = "libgcc"; then
6474 libgcc=target-libgcc
6475 elif test "$i" != "libiberty" ; then
6476 if test -r $srcdir/$i/configure ; then
6477 others=yes;
6478 break;
6479 fi
6480 fi
6481 done
6482 if test -z "${others}" ; then
6483 target_configdirs=$libgcc
6484 fi
6485fi
6486
6487# Quietly strip out all directories which aren't configurable in this tree.
6488# This relies on all configurable subdirectories being autoconfiscated, which
6489# is now the case.
6490build_configdirs_all="$build_configdirs"
6491build_configdirs=
6492for i in ${build_configdirs_all} ; do
6493 j=`echo $i | sed -e s/build-//g`
6494 if test -f ${srcdir}/$j/configure ; then
6495 build_configdirs="${build_configdirs} $i"
6496 fi
6497done
6498
6499configdirs_all="$configdirs"
6500configdirs=
6501for i in ${configdirs_all} ; do
6502 if test -f ${srcdir}/$i/configure ; then
6503 configdirs="${configdirs} $i"
6504 fi
6505done
6506
6507target_configdirs_all="$target_configdirs"
6508target_configdirs=
6509for i in ${target_configdirs_all} ; do
6510 j=`echo $i | sed -e s/target-//g`
6511 if test -f ${srcdir}/$j/configure ; then
6512 target_configdirs="${target_configdirs} $i"
6513 fi
6514done
6515
6516# Produce a warning message for the subdirs we can't configure.
6517# This isn't especially interesting in the Cygnus tree, but in the individual
6518# FSF releases, it's important to let people know when their machine isn't
6519# supported by the one or two programs in a package.
6520
6521if test -n "${notsupp}" && test -z "${norecursion}" ; then
6522 # If $appdirs is non-empty, at least one of those directories must still
6523 # be configured, or we error out. (E.g., if the gas release supports a
6524 # specified target in some subdirs but not the gas subdir, we shouldn't
6525 # pretend that all is well.)
6526 if test -n "$appdirs" ; then
6527 for dir in $appdirs ; do
6528 if test -r $dir/Makefile.in ; then
6529 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6530 appdirs=""
6531 break
6532 fi
6533 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
6534 appdirs=""
6535 break
6536 fi
6537 fi
6538 done
6539 if test -n "$appdirs" ; then
6540 echo "*** This configuration is not supported by this package." 1>&2
6541 exit 1
6542 fi
6543 fi
6544 # Okay, some application will build, or we don't care to check. Still
6545 # notify of subdirs not getting built.
6546 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6547 echo " ${notsupp}" 1>&2
6548 echo " (Any other directories should still work fine.)" 1>&2
6549fi
6550
6551case "$host" in
6552 *msdosdjgpp*)
6553 enable_gdbtk=no ;;
6554esac
6555
6556# To find our prefix, in gcc_cv_tool_prefix.
6557
6558# The user is always right.
6559if test "${PATH_SEPARATOR+set}" != set; then
6560 echo "#! /bin/sh" >conf$$.sh
6561 echo "exit 0" >>conf$$.sh
6562 chmod +x conf$$.sh
6563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6564 PATH_SEPARATOR=';'
6565 else
6566 PATH_SEPARATOR=:
6567 fi
6568 rm -f conf$$.sh
6569fi
6570
6571
6572
6573if test "x$exec_prefix" = xNONE; then
6574 if test "x$prefix" = xNONE; then
6575 gcc_cv_tool_prefix=$ac_default_prefix
6576 else
6577 gcc_cv_tool_prefix=$prefix
6578 fi
6579else
6580 gcc_cv_tool_prefix=$exec_prefix
6581fi
6582
6583# If there is no compiler in the tree, use the PATH only. In any
6584# case, if there is no compiler in the tree nobody should use
6585# AS_FOR_TARGET and LD_FOR_TARGET.
6586if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6587 gcc_version=`cat $srcdir/gcc/BASE-VER`
6588 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6589 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6590 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6591 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6592 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6593 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6594else
6595 gcc_cv_tool_dirs=
6596fi
6597
6598if test x$build = x$target && test -n "$md_exec_prefix"; then
6599 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6600fi
6601
6602
6603
6604copy_dirs=
6605
6606
6607# Check whether --with-build-sysroot was given.
6608if test "${with_build_sysroot+set}" = set; then :
6609 withval=$with_build_sysroot; if test x"$withval" != x ; then
6610 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6611 fi
6612else
6613 SYSROOT_CFLAGS_FOR_TARGET=
6614fi
6615
6616
6617
6618
6619# Check whether --with-debug-prefix-map was given.
6620if test "${with_debug_prefix_map+set}" = set; then :
6621 withval=$with_debug_prefix_map; if test x"$withval" != x; then
6622 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6623 for debug_map in $withval; do
6624 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6625 done
6626 fi
6627else
6628 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6629fi
6630
6631
6632
6633# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6634# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6635# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6636# We want to ensure that TARGET libraries (which we know are built with
6637# gcc) are built with "-O2 -g", so include those options when setting
6638# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6639if test "x$CFLAGS_FOR_TARGET" = x; then
6640 CFLAGS_FOR_TARGET=$CFLAGS
6641 case " $CFLAGS " in
6642 *" -O2 "*) ;;
6643 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6644 esac
6645 case " $CFLAGS " in
6646 *" -g "* | *" -g3 "*) ;;
6647 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6648 esac
6649fi
6650
6651
6652if test "x$CXXFLAGS_FOR_TARGET" = x; then
6653 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6654 case " $CXXFLAGS " in
6655 *" -O2 "*) ;;
6656 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6657 esac
6658 case " $CXXFLAGS " in
6659 *" -g "* | *" -g3 "*) ;;
6660 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6661 esac
6662fi
6663
6664
6665# Handle --with-headers=XXX. If the value is not "yes", the contents of
6666# the named directory are copied to $(tooldir)/sys-include.
6667if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6668 if test x${is_cross_compiler} = xno ; then
6669 echo 1>&2 '***' --with-headers is only supported when cross compiling
6670 exit 1
6671 fi
6672 if test x"${with_headers}" != xyes ; then
6673 x=${gcc_cv_tool_prefix}
6674 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
6675 fi
6676fi
6677
6678# Handle --with-libs=XXX. If the value is not "yes", the contents of
6679# the name directories are copied to $(tooldir)/lib. Multiple directories
6680# are permitted.
6681if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6682 if test x${is_cross_compiler} = xno ; then
6683 echo 1>&2 '***' --with-libs is only supported when cross compiling
6684 exit 1
6685 fi
6686 if test x"${with_libs}" != xyes ; then
6687 # Copy the libraries in reverse order, so that files in the first named
6688 # library override files in subsequent libraries.
6689 x=${gcc_cv_tool_prefix}
6690 for l in ${with_libs}; do
6691 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
6692 done
6693 fi
6694fi
6695
6696# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
6697#
6698# This is done by determining whether or not the appropriate directory
6699# is available, and by checking whether or not specific configurations
6700# have requested that this magic not happen.
6701#
6702# The command line options always override the explicit settings in
6703# configure.in, and the settings in configure.in override this magic.
6704#
6705# If the default for a toolchain is to use GNU as and ld, and you don't
6706# want to do that, then you should use the --without-gnu-as and
6707# --without-gnu-ld options for the configure script. Similarly, if
6708# the default is to use the included zlib and you don't want to do that,
6709# you should use the --with-system-zlib option for the configure script.
6710
6711if test x${use_gnu_as} = x &&
6712 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6713 with_gnu_as=yes
6714 extra_host_args="$extra_host_args --with-gnu-as"
6715fi
6716
6717if test x${use_gnu_ld} = x &&
6718 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
6719 with_gnu_ld=yes
6720 extra_host_args="$extra_host_args --with-gnu-ld"
6721fi
6722
6723if test x${use_included_zlib} = x &&
6724 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6725 :
6726else
6727 with_system_zlib=yes
6728 extra_host_args="$extra_host_args --with-system-zlib"
6729fi
6730
6731# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6732# can detect this case.
6733
6734if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6735 with_newlib=yes
6736 extra_host_args="$extra_host_args --with-newlib"
6737fi
6738
6739# Handle ${copy_dirs}
6740set fnord ${copy_dirs}
6741shift
6742while test $# != 0 ; do
6743 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6744 :
6745 else
6746 echo Copying $1 to $2
6747
6748 # Use the install script to create the directory and all required
6749 # parent directories.
6750 if test -d $2 ; then
6751 :
6752 else
6753 echo >config.temp
6754 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6755 fi
6756
6757 # Copy the directory, assuming we have tar.
6758 # FIXME: Should we use B in the second tar? Not all systems support it.
6759 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6760
6761 # It is the responsibility of the user to correctly adjust all
6762 # symlinks. If somebody can figure out how to handle them correctly
6763 # here, feel free to add the code.
6764
6765 echo $1 > $2/COPIED
6766 fi
6767 shift; shift
6768done
6769
6770# Determine a target-dependent exec_prefix that the installed
6771# gcc will search in. Keep this list sorted by triplet, with
6772# the *-*-osname triplets last.
6773md_exec_prefix=
6774case "${target}" in
6775 alpha*-*-*vms*)
6776 md_exec_prefix=/gnu/lib/gcc-lib
6777 ;;
6778 i[34567]86-pc-msdosdjgpp*)
6779 md_exec_prefix=/dev/env/DJDIR/bin
6780 ;;
6781 i[34567]86-*-sco3.2v5*)
6782 if test $with_gnu_as = yes; then
6783 md_exec_prefix=/usr/gnu/bin
6784 else
6785 md_exec_prefix=/usr/ccs/bin/elf
6786 fi
6787 ;;
6788
6789 mn10300-*-* | \
6790 powerpc-*-chorusos* | \
6791 powerpc*-*-eabi* | \
6792 powerpc*-*-sysv* | \
6793 powerpc*-*-kaos* | \
6794 s390x-ibm-tpf*)
6795 md_exec_prefix=/usr/ccs/bin
6796 ;;
6797 sparc64-*-elf*)
6798 ;;
6799 v850*-*-*)
6800 md_exec_prefix=/usr/ccs/bin
6801 ;;
6802 xtensa*-*-elf*)
6803 ;;
6804
6805 *-*-beos* | \
6806 *-*-elf* | \
6807 *-*-hpux* | \
6808 *-*-netware* | \
6809 *-*-nto-qnx* | \
6810 *-*-rtems* | \
6811 *-*-solaris2* | \
6812 *-*-sysv[45]* | \
6813 *-*-vxworks* | \
6814 *-wrs-windiss)
6815 md_exec_prefix=/usr/ccs/bin
6816 ;;
6817esac
6818
6819extra_arflags_for_target=
6820extra_nmflags_for_target=
6821extra_ranlibflags_for_target=
6822target_makefile_frag=/dev/null
6823case "${target}" in
6824 mep*-*-*)
6825 target_makefile_frag="config/mt-mep"
6826 ;;
6827 spu-*-*)
6828 target_makefile_frag="config/mt-spu"
6829 ;;
6830 mips*-sde-elf*)
6831 target_makefile_frag="config/mt-sde"
6832 ;;
6833 mipsisa*-*-elfoabi*)
6834 target_makefile_frag="config/mt-mips-elfoabi"
6835 ;;
6836 mips*-*-*linux* | mips*-*-gnu*)
6837 target_makefile_frag="config/mt-mips-gnu"
6838 ;;
6839 *-*-netware*)
6840 target_makefile_frag="config/mt-netware"
6841 ;;
6842 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
6843 target_makefile_frag="config/mt-gnu"
6844 ;;
6845 *-*-aix4.[3456789]* | *-*-aix[56789].*)
6846 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
6847 # commands to handle both 32-bit and 64-bit objects. These flags are
6848 # harmless if we're using GNU nm or ar.
6849 extra_arflags_for_target=" -X32_64"
6850 extra_nmflags_for_target=" -B -X32_64"
6851 ;;
6852 *-*-darwin[3-9]*)
6853 # ranlib before Darwin10 requires the -c flag to look at common symbols.
6854 extra_ranlibflags_for_target=" -c"
6855 ;;
6856 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6857 target_makefile_frag="config/mt-wince"
6858 ;;
6859esac
6860
6861alphaieee_frag=/dev/null
6862case $target in
6863 alpha*-*-*)
6864 # This just makes sure to use the -mieee option to build target libs.
6865 # This should probably be set individually by each library.
6866 alphaieee_frag="config/mt-alphaieee"
6867 ;;
6868esac
6869
6870# If --enable-target-optspace always use -Os instead of -O2 to build
6871# the target libraries, similarly if it is not specified, use -Os
6872# on selected platforms.
6873ospace_frag=/dev/null
6874case "${enable_target_optspace}:${target}" in
6875 yes:*)
6876 ospace_frag="config/mt-ospace"
6877 ;;
6878 :d30v-*)
6879 ospace_frag="config/mt-d30v"
6880 ;;
6881 :m32r-* | :d10v-* | :fr30-*)
6882 ospace_frag="config/mt-ospace"
6883 ;;
6884 no:* | :*)
6885 ;;
6886 *)
6887 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6888 ;;
6889esac
6890
6891# Default to using --with-stabs for certain targets.
6892if test x${with_stabs} = x ; then
6893 case "${target}" in
6894 mips*-*-irix[56]*)
6895 ;;
6896 mips*-*-* | alpha*-*-osf*)
6897 with_stabs=yes;
6898 extra_host_args="${extra_host_args} --with-stabs"
6899 ;;
6900 esac
6901fi
6902
6903# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6904# them automatically.
6905case "${host}" in
6906 hppa*64*-*-hpux11*)
6907 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6908 ;;
6909esac
6910
6911# Some systems (e.g., one of the i386-aix systems the gas testers are
6912# using) don't handle "\$" correctly, so don't use it here.
6913tooldir='${exec_prefix}'/${target_noncanonical}
6914build_tooldir=${tooldir}
6915
6916# Create a .gdbinit file which runs the one in srcdir
6917# and tells GDB to look there for source files.
6918
6919if test -r ${srcdir}/.gdbinit ; then
6920 case ${srcdir} in
6921 .) ;;
6922 *) cat > ./.gdbinit <<EOF
6923# ${NO_EDIT}
6924dir ${srcdir}
6925dir .
6926source ${srcdir}/.gdbinit
6927EOF
6928 ;;
6929 esac
6930fi
6931
6932# Make sure that the compiler is able to generate an executable. If it
6933# can't, we are probably in trouble. We don't care whether we can run the
6934# executable--we might be using a cross compiler--we only care whether it
6935# can be created. At this point the main configure script has set CC.
6936we_are_ok=no
6937echo "int main () { return 0; }" > conftest.c
6938${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6939if test $? = 0 ; then
6940 if test -s conftest || test -s conftest.exe ; then
6941 we_are_ok=yes
6942 fi
6943fi
6944case $we_are_ok in
6945 no)
6946 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6947 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6948 rm -f conftest*
6949 exit 1
6950 ;;
6951esac
6952rm -f conftest*
6953
6954# The Solaris /usr/ucb/cc compiler does not appear to work.
6955case "${host}" in
6956 sparc-sun-solaris2*)
6957 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6958 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6959 could_use=
6960 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6961 if test -d /opt/cygnus/bin ; then
6962 if test "$could_use" = "" ; then
6963 could_use="/opt/cygnus/bin"
6964 else
6965 could_use="$could_use or /opt/cygnus/bin"
6966 fi
6967 fi
6968 if test "$could_use" = "" ; then
6969 echo "Warning: compilation may fail because you're using"
6970 echo "/usr/ucb/cc. You should change your PATH or CC "
6971 echo "variable and rerun configure."
6972 else
6973 echo "Warning: compilation may fail because you're using"
6974 echo "/usr/ucb/cc, when you should use the C compiler from"
6975 echo "$could_use. You should change your"
6976 echo "PATH or CC variable and rerun configure."
6977 fi
6978 fi
6979 ;;
6980esac
6981
6982# Decide which environment variable is used to find dynamic libraries.
6983case "${host}" in
6984 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
6985 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
6986 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
6987 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6988esac
6989
6990# On systems where the dynamic library environment variable is PATH,
6991# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6992# built executables to PATH.
6993if test "$RPATH_ENVVAR" = PATH; then
6994 GCC_SHLIB_SUBDIR=/shlib
6995else
6996 GCC_SHLIB_SUBDIR=
6997fi
6998
6999# Record target_configdirs and the configure arguments for target and
7000# build configuration in Makefile.
7001target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
7002build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
7003
7004# If we are building libgomp, bootstrap it.
7005if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7006 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7007fi
7008
7009# Determine whether gdb needs tk/tcl or not.
7010# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7011# and in that case we want gdb to be built without tk. Ugh!
7012# In fact I believe gdb is the *only* package directly dependent on tk,
7013# so we should be able to put the 'maybe's in unconditionally and
7014# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7015# 100% sure that that's safe though.
7016
7017gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
7018case "$enable_gdbtk" in
7019 no)
7020 GDB_TK="" ;;
7021 yes)
7022 GDB_TK="${gdb_tk}" ;;
7023 *)
7024 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7025 # distro. Eventually someone will fix this and move Insight, nee
7026 # gdbtk to a separate directory.
7027 if test -d ${srcdir}/gdb/gdbtk ; then
7028 GDB_TK="${gdb_tk}"
7029 else
7030 GDB_TK=""
7031 fi
7032 ;;
7033esac
7034CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7035INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
7036
7037# Strip out unwanted targets.
7038
7039# While at that, we remove Makefiles if we were started for recursive
7040# configuration, so that the top-level Makefile reconfigures them,
7041# like we used to do when configure itself was recursive.
7042
7043# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7044# but now we're fixing up the Makefile ourselves with the additional
7045# commands passed to AC_CONFIG_FILES. Use separate variables
7046# extrasub-{build,host,target} not because there is any reason to split
7047# the substitutions up that way, but only to remain below the limit of
7048# 99 commands in a script, for HP-UX sed.
7049# Do not nest @if/@endif pairs, because configure will not warn you at all.
7050
7051# Check whether --enable-bootstrap was given.
7052if test "${enable_bootstrap+set}" = set; then :
7053 enableval=$enable_bootstrap;
7054else
7055 enable_bootstrap=default
7056fi
7057
7058
7059# Issue errors and warnings for invalid/strange bootstrap combinations.
7060case "$configdirs" in
7061 *gcc*) have_compiler=yes ;;
7062 *) have_compiler=no ;;
7063esac
7064
7065case "$have_compiler:$host:$target:$enable_bootstrap" in
7066 *:*:*:no) ;;
7067
7068 # Default behavior. Enable bootstrap if we have a compiler
7069 # and we are in a native configuration.
7070 yes:$build:$build:default)
7071 enable_bootstrap=yes ;;
7072
7073 *:*:*:default)
7074 enable_bootstrap=no ;;
7075
7076 # We have a compiler and we are in a native configuration, bootstrap is ok
7077 yes:$build:$build:yes)
7078 ;;
7079
7080 # Other configurations, but we have a compiler. Assume the user knows
7081 # what he's doing.
7082 yes:*:*:yes)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7084$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
7085 ;;
7086
7087 # No compiler: if they passed --enable-bootstrap explicitly, fail
7088 no:*:*:yes)
7089 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
7090
7091 # Fail if wrong command line
7092 *)
7093 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
7094 ;;
7095esac
7096
7097case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7098 *,c++,*:yes:yes) ;;
7099 *:yes:yes)
7100 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7101 ;;
7102esac
7103
7104case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7105 yes:yes:*\ gold\ *:*,c++,*) ;;
7106 yes:yes:*\ gold\ *:*)
7107 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7108 ;;
7109esac
7110
7111# Adjust the toplevel makefile according to whether bootstrap was selected.
7112case $enable_bootstrap in
7113 yes)
7114 bootstrap_suffix=bootstrap
7115 BUILD_CONFIG=bootstrap-debug
7116 ;;
7117 no)
7118 bootstrap_suffix=no-bootstrap
7119 BUILD_CONFIG=
7120 ;;
7121esac
7122
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7124$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7125
7126
7127# Check whether --with-build-config was given.
7128if test "${with_build_config+set}" = set; then :
7129 withval=$with_build_config; case $with_build_config in
7130 yes) with_build_config= ;;
7131 no) with_build_config= BUILD_CONFIG= ;;
7132 esac
7133fi
7134
7135
7136if test "x${with_build_config}" != x; then
7137 BUILD_CONFIG=$with_build_config
7138else
7139 case $BUILD_CONFIG in
7140 bootstrap-debug)
7141 if echo "int f (void) { return 0; }" > conftest.c &&
7142 ${CC} -c conftest.c &&
7143 mv conftest.o conftest.o.g0 &&
7144 ${CC} -c -g conftest.c &&
7145 mv conftest.o conftest.o.g &&
7146 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7147 :
7148 else
7149 BUILD_CONFIG=
7150 fi
7151 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7152 ;;
7153 esac
7154fi
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7156$as_echo "$BUILD_CONFIG" >&6; }
7157
7158
7159extrasub_build=
7160for module in ${build_configdirs} ; do
7161 if test -z "${no_recursion}" \
7162 && test -f ${build_subdir}/${module}/Makefile; then
7163 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7164 rm -f ${build_subdir}/${module}/Makefile
7165 fi
7166 extrasub_build="$extrasub_build
7167/^@if build-$module\$/d
7168/^@endif build-$module\$/d
7169/^@if build-$module-$bootstrap_suffix\$/d
7170/^@endif build-$module-$bootstrap_suffix\$/d"
7171done
7172extrasub_host=
7173for module in ${configdirs} ; do
7174 if test -z "${no_recursion}"; then
7175 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
7176 if test -f ${file}; then
7177 echo 1>&2 "*** removing ${file} to force reconfigure"
7178 rm -f ${file}
7179 fi
7180 done
7181 fi
7182 extrasub_host="$extrasub_host
7183/^@if $module\$/d
7184/^@endif $module\$/d
7185/^@if $module-$bootstrap_suffix\$/d
7186/^@endif $module-$bootstrap_suffix\$/d"
7187done
7188extrasub_target=
7189for module in ${target_configdirs} ; do
7190 if test -z "${no_recursion}" \
7191 && test -f ${target_subdir}/${module}/Makefile; then
7192 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193 rm -f ${target_subdir}/${module}/Makefile
7194 fi
7195
7196 # We only bootstrap target libraries listed in bootstrap_target_libs.
7197 case $bootstrap_target_libs in
7198 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199 *) target_bootstrap_suffix=no-bootstrap ;;
7200 esac
7201
7202 extrasub_target="$extrasub_target
7203/^@if target-$module\$/d
7204/^@endif target-$module\$/d
7205/^@if target-$module-$target_bootstrap_suffix\$/d
7206/^@endif target-$module-$target_bootstrap_suffix\$/d"
7207done
7208
7209# Do the final fixup along with target modules.
7210extrasub_target="$extrasub_target
7211/^@if /,/^@endif /d"
7212
7213# Create the serialization dependencies. This uses a temporary file.
7214
7215# Check whether --enable-serial-configure was given.
7216if test "${enable_serial_configure+set}" = set; then :
7217 enableval=$enable_serial_configure;
7218fi
7219
7220
7221case ${enable_serial_configure} in
7222 yes)
7223 enable_serial_build_configure=yes
7224 enable_serial_host_configure=yes
7225 enable_serial_target_configure=yes
7226 ;;
7227esac
7228
7229# These force 'configure's to be done one at a time, to avoid problems
7230# with contention over a shared config.cache.
7231rm -f serdep.tmp
7232echo '# serdep.tmp' > serdep.tmp
7233olditem=
7234test "x${enable_serial_build_configure}" = xyes &&
7235for item in ${build_configdirs} ; do
7236 case ${olditem} in
7237 "") ;;
7238 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
7239 esac
7240 olditem=${item}
7241done
7242olditem=
7243test "x${enable_serial_host_configure}" = xyes &&
7244for item in ${configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
7247 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
7248 esac
7249 olditem=${item}
7250done
7251olditem=
7252test "x${enable_serial_target_configure}" = xyes &&
7253for item in ${target_configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
7256 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
7257 esac
7258 olditem=${item}
7259done
7260serialization_dependencies=serdep.tmp
7261
7262
7263# Base args. Strip norecursion, cache-file, srcdir, host, build,
7264# target, nonopt, and variable assignments. These are the ones we
7265# might not want to pass down to subconfigures. The exception being
7266# --cache-file=/dev/null, which is used to turn off the use of cache
7267# files altogether, and which should be passed on to subconfigures.
7268# Also strip program-prefix, program-suffix, and program-transform-name,
7269# so that we can pass down a consistent program-transform-name.
7270baseargs=
7271keep_next=no
7272skip_next=no
7273eval "set -- $ac_configure_args"
7274for ac_arg
7275do
7276 if test X"$skip_next" = X"yes"; then
7277 skip_next=no
7278 continue
7279 fi
7280 if test X"$keep_next" = X"yes"; then
7281 case $ac_arg in
7282 *\'*)
7283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7284 esac
7285 baseargs="$baseargs '$ac_arg'"
7286 keep_next=no
7287 continue
7288 fi
7289
7290 # Handle separated arguments. Based on the logic generated by
7291 # autoconf 2.59.
7292 case $ac_arg in
7293 *=* | --config-cache | -C | -disable-* | --disable-* \
7294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7296 | -with-* | --with-* | -without-* | --without-* | --x)
7297 separate_arg=no
7298 ;;
7299 -*)
7300 separate_arg=yes
7301 ;;
7302 *)
7303 separate_arg=no
7304 ;;
7305 esac
7306
7307 case "$ac_arg" in
7308 --cache-file=/dev/null | \
7309 -cache-file=/dev/null )
7310 # Handled here to avoid the test to skip args below.
7311 baseargs="$baseargs '$ac_arg'"
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
7342 keep_next=$separate_arg
7343 ;;
7344 *)
7345 # Either a variable assignment, or a nonopt (triplet). Don't
7346 # pass it down; let the Makefile handle this.
7347 continue
7348 ;;
7349 esac
7350done
7351# Remove the initial space we just introduced and, as these will be
7352# expanded by make, quote '$'.
7353baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
7354
7355# Add in --program-transform-name, after --program-prefix and
7356# --program-suffix have been applied to it. Autoconf has already
7357# doubled dollar signs and backslashes in program_transform_name; we want
7358# the backslashes un-doubled, and then the entire thing wrapped in single
7359# quotes, because this will be expanded first by make and then by the shell.
7360# Also, because we want to override the logic in subdir configure scripts to
7361# choose program_transform_name, replace any s,x,x, with s,y,y,.
7362sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7363${program_transform_name}
7364EOF_SED
7365gcc_transform_name=`cat conftestsed.out`
7366rm -f conftestsed.out
7367baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
7368if test "$silent" = yes; then
7369 baseargs="$baseargs --silent"
7370fi
7371baseargs="$baseargs --disable-option-checking"
7372
7373# Record and document user additions to sub configure arguments.
7374
7375
7376
7377
7378# For the build-side libraries, we just need to pretend we're native,
7379# and not use the same cache file. Multilibs are neither needed nor
7380# desired.
7381build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
7382
7383# For host modules, accept cache file option, or specification as blank.
7384case "${cache_file}" in
7385"") # empty
7386 cache_file_option="" ;;
7387/* | [A-Za-z]:[\\/]* ) # absolute path
7388 cache_file_option="--cache-file=${cache_file}" ;;
7389*) # relative path
7390 cache_file_option="--cache-file=../${cache_file}" ;;
7391esac
7392
7393# Host dirs don't like to share a cache file either, horribly enough.
7394# This seems to be due to autoconf 2.5x stupidity.
7395host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
7396
7397target_configargs="$target_configargs ${baseargs}"
7398
7399# Passing a --with-cross-host argument lets the target libraries know
7400# whether they are being built with a cross-compiler or being built
7401# native. However, it would be better to use other mechanisms to make the
7402# sorts of decisions they want to make on this basis. Please consider
7403# this option to be deprecated. FIXME.
7404if test x${is_cross_compiler} = xyes ; then
7405 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
7406fi
7407
7408# Default to --enable-multilib.
7409if test x${enable_multilib} = x ; then
7410 target_configargs="--enable-multilib ${target_configargs}"
7411fi
7412
7413# Pass --with-newlib if appropriate. Note that target_configdirs has
7414# changed from the earlier setting of with_newlib.
7415if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7416 target_configargs="--with-newlib ${target_configargs}"
7417fi
7418
7419# Different target subdirs use different values of certain variables
7420# (notably CXX). Worse, multilibs use *lots* of different values.
7421# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7422# it doesn't automatically accept command-line overrides of them.
7423# This means it's not safe for target subdirs to share a cache file,
7424# which is disgusting, but there you have it. Hopefully this can be
7425# fixed in future. It's still worthwhile to use a cache file for each
7426# directory. I think.
7427
7428# Pass the appropriate --build, --host, --target and --cache-file arguments.
7429# We need to pass --target, as newer autoconf's requires consistency
7430# for target_alias and gcc doesn't manage it consistently.
7431target_configargs="--cache-file=./config.cache ${target_configargs}"
7432
7433FLAGS_FOR_TARGET=
7434case " $target_configdirs " in
7435 *" newlib "*)
7436 case " $target_configargs " in
7437 *" --with-newlib "*)
7438 case "$target" in
7439 *-cygwin*)
7440 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'
7441 ;;
7442 esac
7443
7444 # If we're not building GCC, don't discard standard headers.
7445 if test -d ${srcdir}/gcc; then
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7447
7448 if test "${build}" != "${host}"; then
7449 # On Canadian crosses, CC_FOR_TARGET will have already been set
7450 # by `configure', so we won't have an opportunity to add -Bgcc/
7451 # to it. This is right: we don't want to search that directory
7452 # for binaries, but we want the header files in there, so add
7453 # them explicitly.
7454 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
7455
7456 # Someone might think of using the pre-installed headers on
7457 # Canadian crosses, in case the installed compiler is not fully
7458 # compatible with the compiler being built. In this case, it
7459 # would be better to flag an error than risking having
7460 # incompatible object files being constructed. We can't
7461 # guarantee that an error will be flagged, but let's hope the
7462 # compiler will do it, when presented with incompatible header
7463 # files.
7464 fi
7465 fi
7466
7467 case "${target}-${is_cross_compiler}" in
7468 i[3456789]86-*-linux*-no)
7469 # Here host == target, so we don't need to build gcc,
7470 # so we don't want to discard standard headers.
7471 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7472 ;;
7473 *)
7474 # If we're building newlib, use its generic headers last, but search
7475 # for any libc-related directories first (so make it the last -B
7476 # switch).
7477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
7478
7479 # If we're building libgloss, find the startup file, simulator library
7480 # and linker script.
7481 case " $target_configdirs " in
7482 *" libgloss "*)
7483 # Look for startup file, simulator library and maybe linker script.
7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7485 # Look for libnosys.a in case the target needs it.
7486 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7487 # Most targets have the linker script in the source directory.
7488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7489 ;;
7490 esac
7491 ;;
7492 esac
7493 ;;
7494 esac
7495 ;;
7496esac
7497
7498case "$target" in
7499 x86_64-*mingw* | *-w64-mingw*)
7500 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7501 # however, use a symlink named 'mingw' in ${prefix} .
7502 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7503 ;;
7504 *-mingw*)
7505 # MinGW can't be handled as Cygwin above since it does not use newlib.
7506 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'
7507 ;;
7508esac
7509
7510# Allow the user to override the flags for
7511# our build compiler if desired.
7512if test x"${build}" = x"${host}" ; then
7513 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7514 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7515 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7516fi
7517
7518# On Canadian crosses, we'll be searching the right directories for
7519# the previously-installed cross compiler, so don't bother to add
7520# flags for directories within the install tree of the compiler
7521# being built; programs in there won't even run.
7522if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7523 # Search for pre-installed headers if nothing else fits.
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
7525fi
7526
7527if test "x${use_gnu_ld}" = x &&
7528 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7529 # Arrange for us to find uninstalled linker scripts.
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
7531fi
7532
7533# Search for other target-specific linker scripts and such.
7534case "${target}" in
7535 mep*)
7536 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7537 ;;
7538esac
7539
7540# Makefile fragments.
7541for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7542do
7543 eval fragval=\$$frag
7544 if test $fragval != /dev/null; then
7545 eval $frag=${srcdir}/$fragval
7546 fi
7547done
7548
7549
7550
7551
7552
7553# Miscellanea: directories, flags, etc.
7554
7555
7556
7557
7558
7559
7560
7561
7562# Build module lists & subconfigure args.
7563
7564
7565
7566# Host module lists & subconfigure args.
7567
7568
7569
7570
7571# Target module lists & subconfigure args.
7572
7573
7574
7575# Build tools.
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594# Generate default definitions for YACC, M4, LEX and other programs that run
7595# on the build machine. These are used if the Makefile can't locate these
7596# programs in objdir.
7597MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7598
7599for ac_prog in 'bison -y' byacc yacc
7600do
7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
7602set dummy $ac_prog; ac_word=$2
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604$as_echo_n "checking for $ac_word... " >&6; }
7605if test "${ac_cv_prog_YACC+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
7607else
7608 if test -n "$YACC"; then
7609 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7610else
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_prog_YACC="$ac_prog"
7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622done
7623 done
7624IFS=$as_save_IFS
7625
7626fi
7627fi
7628YACC=$ac_cv_prog_YACC
7629if test -n "$YACC"; then
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7631$as_echo "$YACC" >&6; }
7632else
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
7635fi
7636
7637
7638 test -n "$YACC" && break
7639done
7640test -n "$YACC" || YACC="$MISSING bison -y"
7641
7642case " $build_configdirs " in
7643 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7644 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7645esac
7646
7647for ac_prog in bison
7648do
7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
7650set dummy $ac_prog; ac_word=$2
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if test "${ac_cv_prog_BISON+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
7655else
7656 if test -n "$BISON"; then
7657 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7658else
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7666 ac_cv_prog_BISON="$ac_prog"
7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7668 break 2
7669 fi
7670done
7671 done
7672IFS=$as_save_IFS
7673
7674fi
7675fi
7676BISON=$ac_cv_prog_BISON
7677if test -n "$BISON"; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7679$as_echo "$BISON" >&6; }
7680else
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
7683fi
7684
7685
7686 test -n "$BISON" && break
7687done
7688test -n "$BISON" || BISON="$MISSING bison"
7689
7690case " $build_configdirs " in
7691 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7692esac
7693
7694for ac_prog in gm4 gnum4 m4
7695do
7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
7697set dummy $ac_prog; ac_word=$2
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if test "${ac_cv_prog_M4+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
7702else
7703 if test -n "$M4"; then
7704 ac_cv_prog_M4="$M4" # Let the user override the test.
7705else
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7713 ac_cv_prog_M4="$ac_prog"
7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7715 break 2
7716 fi
7717done
7718 done
7719IFS=$as_save_IFS
7720
7721fi
7722fi
7723M4=$ac_cv_prog_M4
7724if test -n "$M4"; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7726$as_echo "$M4" >&6; }
7727else
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
7730fi
7731
7732
7733 test -n "$M4" && break
7734done
7735test -n "$M4" || M4="$MISSING m4"
7736
7737case " $build_configdirs " in
7738 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7739esac
7740
7741for ac_prog in flex lex
7742do
7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
7744set dummy $ac_prog; ac_word=$2
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if test "${ac_cv_prog_LEX+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749else
7750 if test -n "$LEX"; then
7751 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7752else
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7760 ac_cv_prog_LEX="$ac_prog"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764done
7765 done
7766IFS=$as_save_IFS
7767
7768fi
7769fi
7770LEX=$ac_cv_prog_LEX
7771if test -n "$LEX"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7773$as_echo "$LEX" >&6; }
7774else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
7777fi
7778
7779
7780 test -n "$LEX" && break
7781done
7782test -n "$LEX" || LEX="$MISSING flex"
7783
7784case " $build_configdirs " in
7785 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7786 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7787esac
7788
7789for ac_prog in flex
7790do
7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
7792set dummy $ac_prog; ac_word=$2
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if test "${ac_cv_prog_FLEX+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7797else
7798 if test -n "$FLEX"; then
7799 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_FLEX="$ac_prog"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 break 2
7811 fi
7812done
7813 done
7814IFS=$as_save_IFS
7815
7816fi
7817fi
7818FLEX=$ac_cv_prog_FLEX
7819if test -n "$FLEX"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7821$as_echo "$FLEX" >&6; }
7822else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
7825fi
7826
7827
7828 test -n "$FLEX" && break
7829done
7830test -n "$FLEX" || FLEX="$MISSING flex"
7831
7832case " $build_configdirs " in
7833 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7834esac
7835
7836for ac_prog in makeinfo
7837do
7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
7839set dummy $ac_prog; ac_word=$2
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
7844else
7845 if test -n "$MAKEINFO"; then
7846 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7847else
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7855 ac_cv_prog_MAKEINFO="$ac_prog"
7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 break 2
7858 fi
7859done
7860 done
7861IFS=$as_save_IFS
7862
7863fi
7864fi
7865MAKEINFO=$ac_cv_prog_MAKEINFO
7866if test -n "$MAKEINFO"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7868$as_echo "$MAKEINFO" >&6; }
7869else
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
7872fi
7873
7874
7875 test -n "$MAKEINFO" && break
7876done
7877test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7878
7879case " $build_configdirs " in
7880 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7881 *)
7882
7883 # For an installed makeinfo, we require it to be from texinfo 4.7 or
7884 # higher, else we use the "missing" dummy.
7885 if ${MAKEINFO} --version \
7886 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
7887 :
7888 else
7889 MAKEINFO="$MISSING makeinfo"
7890 fi
7891 ;;
7892
7893esac
7894
7895# FIXME: expect and dejagnu may become build tools?
7896
7897for ac_prog in expect
7898do
7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
7900set dummy $ac_prog; ac_word=$2
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if test "${ac_cv_prog_EXPECT+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 if test -n "$EXPECT"; then
7907 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7908else
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7916 ac_cv_prog_EXPECT="$ac_prog"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7919 fi
7920done
7921 done
7922IFS=$as_save_IFS
7923
7924fi
7925fi
7926EXPECT=$ac_cv_prog_EXPECT
7927if test -n "$EXPECT"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7929$as_echo "$EXPECT" >&6; }
7930else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
7933fi
7934
7935
7936 test -n "$EXPECT" && break
7937done
7938test -n "$EXPECT" || EXPECT="expect"
7939
7940case " $configdirs " in
7941 *" expect "*)
7942 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7943 ;;
7944esac
7945
7946for ac_prog in runtest
7947do
7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
7949set dummy $ac_prog; ac_word=$2
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7954else
7955 if test -n "$RUNTEST"; then
7956 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965 ac_cv_prog_RUNTEST="$ac_prog"
7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7967 break 2
7968 fi
7969done
7970 done
7971IFS=$as_save_IFS
7972
7973fi
7974fi
7975RUNTEST=$ac_cv_prog_RUNTEST
7976if test -n "$RUNTEST"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7978$as_echo "$RUNTEST" >&6; }
7979else
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
7982fi
7983
7984
7985 test -n "$RUNTEST" && break
7986done
7987test -n "$RUNTEST" || RUNTEST="runtest"
7988
7989case " $configdirs " in
7990 *" dejagnu "*)
7991 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
7992 ;;
7993esac
7994
7995
7996# Host tools.
7997ncn_tool_prefix=
7998test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7999ncn_target_tool_prefix=
8000test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8001
8002
8003
8004if test -n "$AR"; then
8005 ac_cv_prog_AR=$AR
8006elif test -n "$ac_cv_prog_AR"; then
8007 AR=$ac_cv_prog_AR
8008fi
8009
8010if test -n "$ac_cv_prog_AR"; then
8011 for ncn_progname in ar; do
8012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8013set dummy ${ncn_progname}; ac_word=$2
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if test "${ac_cv_prog_AR+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
8018else
8019 if test -n "$AR"; then
8020 ac_cv_prog_AR="$AR" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_prog_AR="${ncn_progname}"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8031 break 2
8032 fi
8033done
8034 done
8035IFS=$as_save_IFS
8036
8037fi
8038fi
8039AR=$ac_cv_prog_AR
8040if test -n "$AR"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8042$as_echo "$AR" >&6; }
8043else
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
8046fi
8047
8048
8049 done
8050fi
8051
8052for ncn_progname in ar; do
8053 if test -n "$ncn_tool_prefix"; then
8054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8055set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
8058if test "${ac_cv_prog_AR+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
8060else
8061 if test -n "$AR"; then
8062 ac_cv_prog_AR="$AR" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8074 fi
8075done
8076 done
8077IFS=$as_save_IFS
8078
8079fi
8080fi
8081AR=$ac_cv_prog_AR
8082if test -n "$AR"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8084$as_echo "$AR" >&6; }
8085else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
8088fi
8089
8090
8091 fi
8092 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8094set dummy ${ncn_progname}; ac_word=$2
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096$as_echo_n "checking for $ac_word... " >&6; }
8097if test "${ac_cv_prog_AR+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
8099else
8100 if test -n "$AR"; then
8101 ac_cv_prog_AR="$AR" # Let the user override the test.
8102else
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_prog_AR="${ncn_progname}"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8113 fi
8114done
8115 done
8116IFS=$as_save_IFS
8117
8118fi
8119fi
8120AR=$ac_cv_prog_AR
8121if test -n "$AR"; then
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8123$as_echo "$AR" >&6; }
8124else
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
8127fi
8128
8129
8130 fi
8131 test -n "$ac_cv_prog_AR" && break
8132done
8133
8134if test -z "$ac_cv_prog_AR" ; then
8135 set dummy ar
8136 if test $build = $host ; then
8137 AR="$2"
8138 else
8139 AR="${ncn_tool_prefix}$2"
8140 fi
8141fi
8142
8143
8144
8145if test -n "$AS"; then
8146 ac_cv_prog_AS=$AS
8147elif test -n "$ac_cv_prog_AS"; then
8148 AS=$ac_cv_prog_AS
8149fi
8150
8151if test -n "$ac_cv_prog_AS"; then
8152 for ncn_progname in as; do
8153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8154set dummy ${ncn_progname}; ac_word=$2
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156$as_echo_n "checking for $ac_word... " >&6; }
8157if test "${ac_cv_prog_AS+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8159else
8160 if test -n "$AS"; then
8161 ac_cv_prog_AS="$AS" # Let the user override the test.
8162else
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8170 ac_cv_prog_AS="${ncn_progname}"
8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8172 break 2
8173 fi
8174done
8175 done
8176IFS=$as_save_IFS
8177
8178fi
8179fi
8180AS=$ac_cv_prog_AS
8181if test -n "$AS"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183$as_echo "$AS" >&6; }
8184else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
8187fi
8188
8189
8190 done
8191fi
8192
8193for ncn_progname in as; do
8194 if test -n "$ncn_tool_prefix"; then
8195 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8196set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198$as_echo_n "checking for $ac_word... " >&6; }
8199if test "${ac_cv_prog_AS+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
8201else
8202 if test -n "$AS"; then
8203 ac_cv_prog_AS="$AS" # Let the user override the test.
8204else
8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216done
8217 done
8218IFS=$as_save_IFS
8219
8220fi
8221fi
8222AS=$ac_cv_prog_AS
8223if test -n "$AS"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8225$as_echo "$AS" >&6; }
8226else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
8229fi
8230
8231
8232 fi
8233 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8235set dummy ${ncn_progname}; ac_word=$2
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237$as_echo_n "checking for $ac_word... " >&6; }
8238if test "${ac_cv_prog_AS+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
8240else
8241 if test -n "$AS"; then
8242 ac_cv_prog_AS="$AS" # Let the user override the test.
8243else
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_prog_AS="${ncn_progname}"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8254 fi
8255done
8256 done
8257IFS=$as_save_IFS
8258
8259fi
8260fi
8261AS=$ac_cv_prog_AS
8262if test -n "$AS"; then
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8264$as_echo "$AS" >&6; }
8265else
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267$as_echo "no" >&6; }
8268fi
8269
8270
8271 fi
8272 test -n "$ac_cv_prog_AS" && break
8273done
8274
8275if test -z "$ac_cv_prog_AS" ; then
8276 set dummy as
8277 if test $build = $host ; then
8278 AS="$2"
8279 else
8280 AS="${ncn_tool_prefix}$2"
8281 fi
8282fi
8283
8284
8285
8286if test -n "$DLLTOOL"; then
8287 ac_cv_prog_DLLTOOL=$DLLTOOL
8288elif test -n "$ac_cv_prog_DLLTOOL"; then
8289 DLLTOOL=$ac_cv_prog_DLLTOOL
8290fi
8291
8292if test -n "$ac_cv_prog_DLLTOOL"; then
8293 for ncn_progname in dlltool; do
8294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8295set dummy ${ncn_progname}; ac_word=$2
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8300else
8301 if test -n "$DLLTOOL"; then
8302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_DLLTOOL="${ncn_progname}"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 break 2
8314 fi
8315done
8316 done
8317IFS=$as_save_IFS
8318
8319fi
8320fi
8321DLLTOOL=$ac_cv_prog_DLLTOOL
8322if test -n "$DLLTOOL"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8324$as_echo "$DLLTOOL" >&6; }
8325else
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
8328fi
8329
8330
8331 done
8332fi
8333
8334for ncn_progname in dlltool; do
8335 if test -n "$ncn_tool_prefix"; then
8336 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8337set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339$as_echo_n "checking for $ac_word... " >&6; }
8340if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342else
8343 if test -n "$DLLTOOL"; then
8344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8345else
8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8356 fi
8357done
8358 done
8359IFS=$as_save_IFS
8360
8361fi
8362fi
8363DLLTOOL=$ac_cv_prog_DLLTOOL
8364if test -n "$DLLTOOL"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8366$as_echo "$DLLTOOL" >&6; }
8367else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
8370fi
8371
8372
8373 fi
8374 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8376set dummy ${ncn_progname}; ac_word=$2
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8381else
8382 if test -n "$DLLTOOL"; then
8383 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8384else
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8392 ac_cv_prog_DLLTOOL="${ncn_progname}"
8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394 break 2
8395 fi
8396done
8397 done
8398IFS=$as_save_IFS
8399
8400fi
8401fi
8402DLLTOOL=$ac_cv_prog_DLLTOOL
8403if test -n "$DLLTOOL"; then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8405$as_echo "$DLLTOOL" >&6; }
8406else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408$as_echo "no" >&6; }
8409fi
8410
8411
8412 fi
8413 test -n "$ac_cv_prog_DLLTOOL" && break
8414done
8415
8416if test -z "$ac_cv_prog_DLLTOOL" ; then
8417 set dummy dlltool
8418 if test $build = $host ; then
8419 DLLTOOL="$2"
8420 else
8421 DLLTOOL="${ncn_tool_prefix}$2"
8422 fi
8423fi
8424
8425
8426
8427if test -n "$LD"; then
8428 ac_cv_prog_LD=$LD
8429elif test -n "$ac_cv_prog_LD"; then
8430 LD=$ac_cv_prog_LD
8431fi
8432
8433if test -n "$ac_cv_prog_LD"; then
8434 for ncn_progname in ld; do
8435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8436set dummy ${ncn_progname}; ac_word=$2
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_LD+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8441else
8442 if test -n "$LD"; then
8443 ac_cv_prog_LD="$LD" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_LD="${ncn_progname}"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8455 fi
8456done
8457 done
8458IFS=$as_save_IFS
8459
8460fi
8461fi
8462LD=$ac_cv_prog_LD
8463if test -n "$LD"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8465$as_echo "$LD" >&6; }
8466else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
8469fi
8470
8471
8472 done
8473fi
8474
8475for ncn_progname in ld; do
8476 if test -n "$ncn_tool_prefix"; then
8477 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8478set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if test "${ac_cv_prog_LD+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483else
8484 if test -n "$LD"; then
8485 ac_cv_prog_LD="$LD" # Let the user override the test.
8486else
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8494 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498done
8499 done
8500IFS=$as_save_IFS
8501
8502fi
8503fi
8504LD=$ac_cv_prog_LD
8505if test -n "$LD"; then
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8507$as_echo "$LD" >&6; }
8508else
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
8511fi
8512
8513
8514 fi
8515 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8517set dummy ${ncn_progname}; ac_word=$2
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519$as_echo_n "checking for $ac_word... " >&6; }
8520if test "${ac_cv_prog_LD+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
8522else
8523 if test -n "$LD"; then
8524 ac_cv_prog_LD="$LD" # Let the user override the test.
8525else
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8533 ac_cv_prog_LD="${ncn_progname}"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8536 fi
8537done
8538 done
8539IFS=$as_save_IFS
8540
8541fi
8542fi
8543LD=$ac_cv_prog_LD
8544if test -n "$LD"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8546$as_echo "$LD" >&6; }
8547else
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
8550fi
8551
8552
8553 fi
8554 test -n "$ac_cv_prog_LD" && break
8555done
8556
8557if test -z "$ac_cv_prog_LD" ; then
8558 set dummy ld
8559 if test $build = $host ; then
8560 LD="$2"
8561 else
8562 LD="${ncn_tool_prefix}$2"
8563 fi
8564fi
8565
8566
8567
8568if test -n "$LIPO"; then
8569 ac_cv_prog_LIPO=$LIPO
8570elif test -n "$ac_cv_prog_LIPO"; then
8571 LIPO=$ac_cv_prog_LIPO
8572fi
8573
8574if test -n "$ac_cv_prog_LIPO"; then
8575 for ncn_progname in lipo; do
8576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8577set dummy ${ncn_progname}; ac_word=$2
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579$as_echo_n "checking for $ac_word... " >&6; }
8580if test "${ac_cv_prog_LIPO+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582else
8583 if test -n "$LIPO"; then
8584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8585else
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8593 ac_cv_prog_LIPO="${ncn_progname}"
8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8595 break 2
8596 fi
8597done
8598 done
8599IFS=$as_save_IFS
8600
8601fi
8602fi
8603LIPO=$ac_cv_prog_LIPO
8604if test -n "$LIPO"; then
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8606$as_echo "$LIPO" >&6; }
8607else
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
8610fi
8611
8612
8613 done
8614fi
8615
8616for ncn_progname in lipo; do
8617 if test -n "$ncn_tool_prefix"; then
8618 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8619set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if test "${ac_cv_prog_LIPO+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8624else
8625 if test -n "$LIPO"; then
8626 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8627else
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
8639done
8640 done
8641IFS=$as_save_IFS
8642
8643fi
8644fi
8645LIPO=$ac_cv_prog_LIPO
8646if test -n "$LIPO"; then
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8648$as_echo "$LIPO" >&6; }
8649else
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
8652fi
8653
8654
8655 fi
8656 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8658set dummy ${ncn_progname}; ac_word=$2
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660$as_echo_n "checking for $ac_word... " >&6; }
8661if test "${ac_cv_prog_LIPO+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8663else
8664 if test -n "$LIPO"; then
8665 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8666else
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8674 ac_cv_prog_LIPO="${ncn_progname}"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678done
8679 done
8680IFS=$as_save_IFS
8681
8682fi
8683fi
8684LIPO=$ac_cv_prog_LIPO
8685if test -n "$LIPO"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8687$as_echo "$LIPO" >&6; }
8688else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
8691fi
8692
8693
8694 fi
8695 test -n "$ac_cv_prog_LIPO" && break
8696done
8697
8698if test -z "$ac_cv_prog_LIPO" ; then
8699 set dummy lipo
8700 if test $build = $host ; then
8701 LIPO="$2"
8702 else
8703 LIPO="${ncn_tool_prefix}$2"
8704 fi
8705fi
8706
8707
8708
8709if test -n "$NM"; then
8710 ac_cv_prog_NM=$NM
8711elif test -n "$ac_cv_prog_NM"; then
8712 NM=$ac_cv_prog_NM
8713fi
8714
8715if test -n "$ac_cv_prog_NM"; then
8716 for ncn_progname in nm; do
8717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8718set dummy ${ncn_progname}; ac_word=$2
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720$as_echo_n "checking for $ac_word... " >&6; }
8721if test "${ac_cv_prog_NM+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
8723else
8724 if test -n "$NM"; then
8725 ac_cv_prog_NM="$NM" # Let the user override the test.
8726else
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730 IFS=$as_save_IFS
8731 test -z "$as_dir" && as_dir=.
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8734 ac_cv_prog_NM="${ncn_progname}"
8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8736 break 2
8737 fi
8738done
8739 done
8740IFS=$as_save_IFS
8741
8742fi
8743fi
8744NM=$ac_cv_prog_NM
8745if test -n "$NM"; then
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8747$as_echo "$NM" >&6; }
8748else
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750$as_echo "no" >&6; }
8751fi
8752
8753
8754 done
8755fi
8756
8757for ncn_progname in nm; do
8758 if test -n "$ncn_tool_prefix"; then
8759 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8760set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762$as_echo_n "checking for $ac_word... " >&6; }
8763if test "${ac_cv_prog_NM+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
8765else
8766 if test -n "$NM"; then
8767 ac_cv_prog_NM="$NM" # Let the user override the test.
8768else
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8776 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8778 break 2
8779 fi
8780done
8781 done
8782IFS=$as_save_IFS
8783
8784fi
8785fi
8786NM=$ac_cv_prog_NM
8787if test -n "$NM"; then
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8789$as_echo "$NM" >&6; }
8790else
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
8793fi
8794
8795
8796 fi
8797 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8799set dummy ${ncn_progname}; ac_word=$2
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801$as_echo_n "checking for $ac_word... " >&6; }
8802if test "${ac_cv_prog_NM+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804else
8805 if test -n "$NM"; then
8806 ac_cv_prog_NM="$NM" # Let the user override the test.
8807else
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8815 ac_cv_prog_NM="${ncn_progname}"
8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8817 break 2
8818 fi
8819done
8820 done
8821IFS=$as_save_IFS
8822
8823fi
8824fi
8825NM=$ac_cv_prog_NM
8826if test -n "$NM"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8828$as_echo "$NM" >&6; }
8829else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
8832fi
8833
8834
8835 fi
8836 test -n "$ac_cv_prog_NM" && break
8837done
8838
8839if test -z "$ac_cv_prog_NM" ; then
8840 set dummy nm
8841 if test $build = $host ; then
8842 NM="$2"
8843 else
8844 NM="${ncn_tool_prefix}$2"
8845 fi
8846fi
8847
8848
8849
8850if test -n "$RANLIB"; then
8851 ac_cv_prog_RANLIB=$RANLIB
8852elif test -n "$ac_cv_prog_RANLIB"; then
8853 RANLIB=$ac_cv_prog_RANLIB
8854fi
8855
8856if test -n "$ac_cv_prog_RANLIB"; then
8857 for ncn_progname in ranlib; do
8858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8859set dummy ${ncn_progname}; ac_word=$2
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861$as_echo_n "checking for $ac_word... " >&6; }
8862if test "${ac_cv_prog_RANLIB+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
8864else
8865 if test -n "$RANLIB"; then
8866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8867else
8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869for as_dir in $PATH
8870do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8875 ac_cv_prog_RANLIB="${ncn_progname}"
8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8878 fi
8879done
8880 done
8881IFS=$as_save_IFS
8882
8883fi
8884fi
8885RANLIB=$ac_cv_prog_RANLIB
8886if test -n "$RANLIB"; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8888$as_echo "$RANLIB" >&6; }
8889else
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891$as_echo "no" >&6; }
8892fi
8893
8894
8895 done
8896fi
8897
8898for ncn_progname in ranlib; do
8899 if test -n "$ncn_tool_prefix"; then
8900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8901set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
8904if test "${ac_cv_prog_RANLIB+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
8906else
8907 if test -n "$RANLIB"; then
8908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8909else
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8917 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921done
8922 done
8923IFS=$as_save_IFS
8924
8925fi
8926fi
8927RANLIB=$ac_cv_prog_RANLIB
8928if test -n "$RANLIB"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930$as_echo "$RANLIB" >&6; }
8931else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
8934fi
8935
8936
8937 fi
8938 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8940set dummy ${ncn_progname}; ac_word=$2
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942$as_echo_n "checking for $ac_word... " >&6; }
8943if test "${ac_cv_prog_RANLIB+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
8945else
8946 if test -n "$RANLIB"; then
8947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8948else
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8956 ac_cv_prog_RANLIB="${ncn_progname}"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8959 fi
8960done
8961 done
8962IFS=$as_save_IFS
8963
8964fi
8965fi
8966RANLIB=$ac_cv_prog_RANLIB
8967if test -n "$RANLIB"; then
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8969$as_echo "$RANLIB" >&6; }
8970else
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
8973fi
8974
8975
8976 fi
8977 test -n "$ac_cv_prog_RANLIB" && break
8978done
8979
8980if test -z "$ac_cv_prog_RANLIB" ; then
8981 RANLIB="true"
8982fi
8983
8984
8985
8986if test -n "$STRIP"; then
8987 ac_cv_prog_STRIP=$STRIP
8988elif test -n "$ac_cv_prog_STRIP"; then
8989 STRIP=$ac_cv_prog_STRIP
8990fi
8991
8992if test -n "$ac_cv_prog_STRIP"; then
8993 for ncn_progname in strip; do
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995set dummy ${ncn_progname}; ac_word=$2
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
8998if test "${ac_cv_prog_STRIP+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9000else
9001 if test -n "$STRIP"; then
9002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_prog_STRIP="${ncn_progname}"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015done
9016 done
9017IFS=$as_save_IFS
9018
9019fi
9020fi
9021STRIP=$ac_cv_prog_STRIP
9022if test -n "$STRIP"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9024$as_echo "$STRIP" >&6; }
9025else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
9028fi
9029
9030
9031 done
9032fi
9033
9034for ncn_progname in strip; do
9035 if test -n "$ncn_tool_prefix"; then
9036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9037set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
9040if test "${ac_cv_prog_STRIP+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
9042else
9043 if test -n "$STRIP"; then
9044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9045else
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9055 break 2
9056 fi
9057done
9058 done
9059IFS=$as_save_IFS
9060
9061fi
9062fi
9063STRIP=$ac_cv_prog_STRIP
9064if test -n "$STRIP"; then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9066$as_echo "$STRIP" >&6; }
9067else
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
9070fi
9071
9072
9073 fi
9074 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9076set dummy ${ncn_progname}; ac_word=$2
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078$as_echo_n "checking for $ac_word... " >&6; }
9079if test "${ac_cv_prog_STRIP+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9081else
9082 if test -n "$STRIP"; then
9083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9084else
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092 ac_cv_prog_STRIP="${ncn_progname}"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9095 fi
9096done
9097 done
9098IFS=$as_save_IFS
9099
9100fi
9101fi
9102STRIP=$ac_cv_prog_STRIP
9103if test -n "$STRIP"; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9105$as_echo "$STRIP" >&6; }
9106else
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
9109fi
9110
9111
9112 fi
9113 test -n "$ac_cv_prog_STRIP" && break
9114done
9115
9116if test -z "$ac_cv_prog_STRIP" ; then
9117 STRIP="true"
9118fi
9119
9120
9121
9122if test -n "$WINDRES"; then
9123 ac_cv_prog_WINDRES=$WINDRES
9124elif test -n "$ac_cv_prog_WINDRES"; then
9125 WINDRES=$ac_cv_prog_WINDRES
9126fi
9127
9128if test -n "$ac_cv_prog_WINDRES"; then
9129 for ncn_progname in windres; do
9130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9131set dummy ${ncn_progname}; ac_word=$2
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if test "${ac_cv_prog_WINDRES+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9136else
9137 if test -n "$WINDRES"; then
9138 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9139else
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147 ac_cv_prog_WINDRES="${ncn_progname}"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9150 fi
9151done
9152 done
9153IFS=$as_save_IFS
9154
9155fi
9156fi
9157WINDRES=$ac_cv_prog_WINDRES
9158if test -n "$WINDRES"; then
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9160$as_echo "$WINDRES" >&6; }
9161else
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
9164fi
9165
9166
9167 done
9168fi
9169
9170for ncn_progname in windres; do
9171 if test -n "$ncn_tool_prefix"; then
9172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175$as_echo_n "checking for $ac_word... " >&6; }
9176if test "${ac_cv_prog_WINDRES+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178else
9179 if test -n "$WINDRES"; then
9180 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9181else
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9189 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9192 fi
9193done
9194 done
9195IFS=$as_save_IFS
9196
9197fi
9198fi
9199WINDRES=$ac_cv_prog_WINDRES
9200if test -n "$WINDRES"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9202$as_echo "$WINDRES" >&6; }
9203else
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
9206fi
9207
9208
9209 fi
9210 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9212set dummy ${ncn_progname}; ac_word=$2
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214$as_echo_n "checking for $ac_word... " >&6; }
9215if test "${ac_cv_prog_WINDRES+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217else
9218 if test -n "$WINDRES"; then
9219 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9220else
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228 ac_cv_prog_WINDRES="${ncn_progname}"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9230 break 2
9231 fi
9232done
9233 done
9234IFS=$as_save_IFS
9235
9236fi
9237fi
9238WINDRES=$ac_cv_prog_WINDRES
9239if test -n "$WINDRES"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9241$as_echo "$WINDRES" >&6; }
9242else
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
9245fi
9246
9247
9248 fi
9249 test -n "$ac_cv_prog_WINDRES" && break
9250done
9251
9252if test -z "$ac_cv_prog_WINDRES" ; then
9253 set dummy windres
9254 if test $build = $host ; then
9255 WINDRES="$2"
9256 else
9257 WINDRES="${ncn_tool_prefix}$2"
9258 fi
9259fi
9260
9261
9262
9263if test -n "$WINDMC"; then
9264 ac_cv_prog_WINDMC=$WINDMC
9265elif test -n "$ac_cv_prog_WINDMC"; then
9266 WINDMC=$ac_cv_prog_WINDMC
9267fi
9268
9269if test -n "$ac_cv_prog_WINDMC"; then
9270 for ncn_progname in windmc; do
9271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9272set dummy ${ncn_progname}; ac_word=$2
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274$as_echo_n "checking for $ac_word... " >&6; }
9275if test "${ac_cv_prog_WINDMC+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
9277else
9278 if test -n "$WINDMC"; then
9279 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9280else
9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_prog_WINDMC="${ncn_progname}"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 break 2
9291 fi
9292done
9293 done
9294IFS=$as_save_IFS
9295
9296fi
9297fi
9298WINDMC=$ac_cv_prog_WINDMC
9299if test -n "$WINDMC"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9301$as_echo "$WINDMC" >&6; }
9302else
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
9305fi
9306
9307
9308 done
9309fi
9310
9311for ncn_progname in windmc; do
9312 if test -n "$ncn_tool_prefix"; then
9313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316$as_echo_n "checking for $ac_word... " >&6; }
9317if test "${ac_cv_prog_WINDMC+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
9319else
9320 if test -n "$WINDMC"; then
9321 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9322else
9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9330 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332 break 2
9333 fi
9334done
9335 done
9336IFS=$as_save_IFS
9337
9338fi
9339fi
9340WINDMC=$ac_cv_prog_WINDMC
9341if test -n "$WINDMC"; then
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9343$as_echo "$WINDMC" >&6; }
9344else
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
9347fi
9348
9349
9350 fi
9351 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9353set dummy ${ncn_progname}; ac_word=$2
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355$as_echo_n "checking for $ac_word... " >&6; }
9356if test "${ac_cv_prog_WINDMC+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
9358else
9359 if test -n "$WINDMC"; then
9360 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9361else
9362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9369 ac_cv_prog_WINDMC="${ncn_progname}"
9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9371 break 2
9372 fi
9373done
9374 done
9375IFS=$as_save_IFS
9376
9377fi
9378fi
9379WINDMC=$ac_cv_prog_WINDMC
9380if test -n "$WINDMC"; then
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9382$as_echo "$WINDMC" >&6; }
9383else
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385$as_echo "no" >&6; }
9386fi
9387
9388
9389 fi
9390 test -n "$ac_cv_prog_WINDMC" && break
9391done
9392
9393if test -z "$ac_cv_prog_WINDMC" ; then
9394 set dummy windmc
9395 if test $build = $host ; then
9396 WINDMC="$2"
9397 else
9398 WINDMC="${ncn_tool_prefix}$2"
9399 fi
9400fi
9401
9402
9403
9404if test -n "$OBJCOPY"; then
9405 ac_cv_prog_OBJCOPY=$OBJCOPY
9406elif test -n "$ac_cv_prog_OBJCOPY"; then
9407 OBJCOPY=$ac_cv_prog_OBJCOPY
9408fi
9409
9410if test -n "$ac_cv_prog_OBJCOPY"; then
9411 for ncn_progname in objcopy; do
9412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9413set dummy ${ncn_progname}; ac_word=$2
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
9416if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9418else
9419 if test -n "$OBJCOPY"; then
9420 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9429 ac_cv_prog_OBJCOPY="${ncn_progname}"
9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9431 break 2
9432 fi
9433done
9434 done
9435IFS=$as_save_IFS
9436
9437fi
9438fi
9439OBJCOPY=$ac_cv_prog_OBJCOPY
9440if test -n "$OBJCOPY"; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9442$as_echo "$OBJCOPY" >&6; }
9443else
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
9446fi
9447
9448
9449 done
9450fi
9451
9452for ncn_progname in objcopy; do
9453 if test -n "$ncn_tool_prefix"; then
9454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457$as_echo_n "checking for $ac_word... " >&6; }
9458if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460else
9461 if test -n "$OBJCOPY"; then
9462 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9463else
9464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9474 fi
9475done
9476 done
9477IFS=$as_save_IFS
9478
9479fi
9480fi
9481OBJCOPY=$ac_cv_prog_OBJCOPY
9482if test -n "$OBJCOPY"; then
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9484$as_echo "$OBJCOPY" >&6; }
9485else
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487$as_echo "no" >&6; }
9488fi
9489
9490
9491 fi
9492 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494set dummy ${ncn_progname}; ac_word=$2
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496$as_echo_n "checking for $ac_word... " >&6; }
9497if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
9499else
9500 if test -n "$OBJCOPY"; then
9501 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9502else
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9510 ac_cv_prog_OBJCOPY="${ncn_progname}"
9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9512 break 2
9513 fi
9514done
9515 done
9516IFS=$as_save_IFS
9517
9518fi
9519fi
9520OBJCOPY=$ac_cv_prog_OBJCOPY
9521if test -n "$OBJCOPY"; then
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9523$as_echo "$OBJCOPY" >&6; }
9524else
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526$as_echo "no" >&6; }
9527fi
9528
9529
9530 fi
9531 test -n "$ac_cv_prog_OBJCOPY" && break
9532done
9533
9534if test -z "$ac_cv_prog_OBJCOPY" ; then
9535 set dummy objcopy
9536 if test $build = $host ; then
9537 OBJCOPY="$2"
9538 else
9539 OBJCOPY="${ncn_tool_prefix}$2"
9540 fi
9541fi
9542
9543
9544
9545if test -n "$OBJDUMP"; then
9546 ac_cv_prog_OBJDUMP=$OBJDUMP
9547elif test -n "$ac_cv_prog_OBJDUMP"; then
9548 OBJDUMP=$ac_cv_prog_OBJDUMP
9549fi
9550
9551if test -n "$ac_cv_prog_OBJDUMP"; then
9552 for ncn_progname in objdump; do
9553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9554set dummy ${ncn_progname}; ac_word=$2
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556$as_echo_n "checking for $ac_word... " >&6; }
9557if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9559else
9560 if test -n "$OBJDUMP"; then
9561 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9562else
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9570 ac_cv_prog_OBJDUMP="${ncn_progname}"
9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 break 2
9573 fi
9574done
9575 done
9576IFS=$as_save_IFS
9577
9578fi
9579fi
9580OBJDUMP=$ac_cv_prog_OBJDUMP
9581if test -n "$OBJDUMP"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583$as_echo "$OBJDUMP" >&6; }
9584else
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586$as_echo "no" >&6; }
9587fi
9588
9589
9590 done
9591fi
9592
9593for ncn_progname in objdump; do
9594 if test -n "$ncn_tool_prefix"; then
9595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9601else
9602 if test -n "$OBJDUMP"; then
9603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9604else
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9615 fi
9616done
9617 done
9618IFS=$as_save_IFS
9619
9620fi
9621fi
9622OBJDUMP=$ac_cv_prog_OBJDUMP
9623if test -n "$OBJDUMP"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9625$as_echo "$OBJDUMP" >&6; }
9626else
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
9629fi
9630
9631
9632 fi
9633 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9635set dummy ${ncn_progname}; ac_word=$2
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
9640else
9641 if test -n "$OBJDUMP"; then
9642 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9643else
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9651 ac_cv_prog_OBJDUMP="${ncn_progname}"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656 done
9657IFS=$as_save_IFS
9658
9659fi
9660fi
9661OBJDUMP=$ac_cv_prog_OBJDUMP
9662if test -n "$OBJDUMP"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9664$as_echo "$OBJDUMP" >&6; }
9665else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
9668fi
9669
9670
9671 fi
9672 test -n "$ac_cv_prog_OBJDUMP" && break
9673done
9674
9675if test -z "$ac_cv_prog_OBJDUMP" ; then
9676 set dummy objdump
9677 if test $build = $host ; then
9678 OBJDUMP="$2"
9679 else
9680 OBJDUMP="${ncn_tool_prefix}$2"
9681 fi
9682fi
9683
9684
9685
9686
9687
9688
9689# Target tools.
9690
9691# Check whether --with-build-time-tools was given.
9692if test "${with_build_time_tools+set}" = set; then :
9693 withval=$with_build_time_tools; case x"$withval" in
9694 x/*) ;;
9695 *)
9696 with_build_time_tools=
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9698$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
9699 ;;
9700 esac
9701else
9702 with_build_time_tools=
9703fi
9704
9705
9706
9707
9708if test -n "$CC_FOR_TARGET"; then
9709 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9710elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9711 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9712fi
9713
9714if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9715 for ncn_progname in cc gcc; do
9716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9717set dummy ${ncn_progname}; ac_word=$2
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719$as_echo_n "checking for $ac_word... " >&6; }
9720if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
9722else
9723 if test -n "$CC_FOR_TARGET"; then
9724 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9725else
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9736 fi
9737done
9738 done
9739IFS=$as_save_IFS
9740
9741fi
9742fi
9743CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9744if test -n "$CC_FOR_TARGET"; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9746$as_echo "$CC_FOR_TARGET" >&6; }
9747else
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749$as_echo "no" >&6; }
9750fi
9751
9752
9753 done
9754fi
9755
9756if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
9757 for ncn_progname in cc gcc; do
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9760 if test -x $with_build_time_tools/${ncn_progname}; then
9761 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763$as_echo "yes" >&6; }
9764 break
9765 else
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
9768 fi
9769 done
9770fi
9771
9772if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9773 for ncn_progname in cc gcc; do
9774 if test -n "$ncn_target_tool_prefix"; then
9775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778$as_echo_n "checking for $ac_word... " >&6; }
9779if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
9781else
9782 if test -n "$CC_FOR_TARGET"; then
9783 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9784else
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9795 fi
9796done
9797 done
9798IFS=$as_save_IFS
9799
9800fi
9801fi
9802CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9803if test -n "$CC_FOR_TARGET"; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9805$as_echo "$CC_FOR_TARGET" >&6; }
9806else
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
9809fi
9810
9811
9812 fi
9813 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9815set dummy ${ncn_progname}; ac_word=$2
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817$as_echo_n "checking for $ac_word... " >&6; }
9818if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9820else
9821 if test -n "$CC_FOR_TARGET"; then
9822 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9823else
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9831 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 break 2
9834 fi
9835done
9836 done
9837IFS=$as_save_IFS
9838
9839fi
9840fi
9841CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9842if test -n "$CC_FOR_TARGET"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9844$as_echo "$CC_FOR_TARGET" >&6; }
9845else
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847$as_echo "no" >&6; }
9848fi
9849
9850
9851 fi
9852 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9853 done
9854fi
9855
9856if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9857 set dummy cc gcc
9858 if test $build = $target ; then
9859 CC_FOR_TARGET="$2"
9860 else
9861 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
9862 fi
9863else
9864 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
9865fi
9866
9867
9868
9869if test -n "$CXX_FOR_TARGET"; then
9870 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9871elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9872 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9873fi
9874
9875if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9876 for ncn_progname in c++ g++ cxx gxx; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878set dummy ${ncn_progname}; ac_word=$2
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880$as_echo_n "checking for $ac_word... " >&6; }
9881if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
9883else
9884 if test -n "$CXX_FOR_TARGET"; then
9885 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9886else
9887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896 break 2
9897 fi
9898done
9899 done
9900IFS=$as_save_IFS
9901
9902fi
9903fi
9904CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9905if test -n "$CXX_FOR_TARGET"; then
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9907$as_echo "$CXX_FOR_TARGET" >&6; }
9908else
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
9911fi
9912
9913
9914 done
9915fi
9916
9917if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
9918 for ncn_progname in c++ g++ cxx gxx; do
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9920$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
9921 if test -x $with_build_time_tools/${ncn_progname}; then
9922 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924$as_echo "yes" >&6; }
9925 break
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
9929 fi
9930 done
9931fi
9932
9933if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9934 for ncn_progname in c++ g++ cxx gxx; do
9935 if test -n "$ncn_target_tool_prefix"; then
9936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9937set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
9940if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
9942else
9943 if test -n "$CXX_FOR_TARGET"; then
9944 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9945else
9946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947for as_dir in $PATH
9948do
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9953 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9956 fi
9957done
9958 done
9959IFS=$as_save_IFS
9960
9961fi
9962fi
9963CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9964if test -n "$CXX_FOR_TARGET"; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9966$as_echo "$CXX_FOR_TARGET" >&6; }
9967else
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969$as_echo "no" >&6; }
9970fi
9971
9972
9973 fi
9974 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9976set dummy ${ncn_progname}; ac_word=$2
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
9981else
9982 if test -n "$CXX_FOR_TARGET"; then
9983 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994 break 2
9995 fi
9996done
9997 done
9998IFS=$as_save_IFS
9999
10000fi
10001fi
10002CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10003if test -n "$CXX_FOR_TARGET"; then
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10005$as_echo "$CXX_FOR_TARGET" >&6; }
10006else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
10009fi
10010
10011
10012 fi
10013 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10014 done
10015fi
10016
10017if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10018 set dummy c++ g++ cxx gxx
10019 if test $build = $target ; then
10020 CXX_FOR_TARGET="$2"
10021 else
10022 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
10023 fi
10024else
10025 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
10026fi
10027
10028
10029
10030if test -n "$GCC_FOR_TARGET"; then
10031 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10032elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10033 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10034fi
10035
10036if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10037 for ncn_progname in gcc; do
10038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10039set dummy ${ncn_progname}; ac_word=$2
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
10042if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
10044else
10045 if test -n "$GCC_FOR_TARGET"; then
10046 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10058 fi
10059done
10060 done
10061IFS=$as_save_IFS
10062
10063fi
10064fi
10065GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10066if test -n "$GCC_FOR_TARGET"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10068$as_echo "$GCC_FOR_TARGET" >&6; }
10069else
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
10072fi
10073
10074
10075 done
10076fi
10077
10078if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10079 for ncn_progname in gcc; do
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10081$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10082 if test -x $with_build_time_tools/${ncn_progname}; then
10083 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10085$as_echo "yes" >&6; }
10086 break
10087 else
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089$as_echo "no" >&6; }
10090 fi
10091 done
10092fi
10093
10094if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10095 for ncn_progname in gcc; do
10096 if test -n "$ncn_target_tool_prefix"; then
10097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10098set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100$as_echo_n "checking for $ac_word... " >&6; }
10101if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
10103else
10104 if test -n "$GCC_FOR_TARGET"; then
10105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10106else
10107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $PATH
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10114 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 break 2
10117 fi
10118done
10119 done
10120IFS=$as_save_IFS
10121
10122fi
10123fi
10124GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10125if test -n "$GCC_FOR_TARGET"; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10127$as_echo "$GCC_FOR_TARGET" >&6; }
10128else
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130$as_echo "no" >&6; }
10131fi
10132
10133
10134 fi
10135 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10137set dummy ${ncn_progname}; ac_word=$2
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
10140if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142else
10143 if test -n "$GCC_FOR_TARGET"; then
10144 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10145else
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10153 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 break 2
10156 fi
10157done
10158 done
10159IFS=$as_save_IFS
10160
10161fi
10162fi
10163GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10164if test -n "$GCC_FOR_TARGET"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10166$as_echo "$GCC_FOR_TARGET" >&6; }
10167else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
10170fi
10171
10172
10173 fi
10174 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10175 done
10176fi
10177
10178if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10179 GCC_FOR_TARGET="${CC_FOR_TARGET}"
10180else
10181 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
10182fi
10183
10184
10185
10186if test -n "$GCJ_FOR_TARGET"; then
10187 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10188elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10190fi
10191
10192if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10193 for ncn_progname in gcj; do
10194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10195set dummy ${ncn_progname}; ac_word=$2
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197$as_echo_n "checking for $ac_word... " >&6; }
10198if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
10200else
10201 if test -n "$GCJ_FOR_TARGET"; then
10202 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10203else
10204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10211 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10213 break 2
10214 fi
10215done
10216 done
10217IFS=$as_save_IFS
10218
10219fi
10220fi
10221GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10222if test -n "$GCJ_FOR_TARGET"; then
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10224$as_echo "$GCJ_FOR_TARGET" >&6; }
10225else
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227$as_echo "no" >&6; }
10228fi
10229
10230
10231 done
10232fi
10233
10234if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
10235 for ncn_progname in gcj; do
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10237$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10238 if test -x $with_build_time_tools/${ncn_progname}; then
10239 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10241$as_echo "yes" >&6; }
10242 break
10243 else
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245$as_echo "no" >&6; }
10246 fi
10247 done
10248fi
10249
10250if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10251 for ncn_progname in gcj; do
10252 if test -n "$ncn_target_tool_prefix"; then
10253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10254set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256$as_echo_n "checking for $ac_word... " >&6; }
10257if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
10259else
10260 if test -n "$GCJ_FOR_TARGET"; then
10261 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10262else
10263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $PATH
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10270 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 break 2
10273 fi
10274done
10275 done
10276IFS=$as_save_IFS
10277
10278fi
10279fi
10280GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10281if test -n "$GCJ_FOR_TARGET"; then
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10283$as_echo "$GCJ_FOR_TARGET" >&6; }
10284else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286$as_echo "no" >&6; }
10287fi
10288
10289
10290 fi
10291 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10293set dummy ${ncn_progname}; ac_word=$2
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295$as_echo_n "checking for $ac_word... " >&6; }
10296if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10298else
10299 if test -n "$GCJ_FOR_TARGET"; then
10300 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10301else
10302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10312 fi
10313done
10314 done
10315IFS=$as_save_IFS
10316
10317fi
10318fi
10319GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10320if test -n "$GCJ_FOR_TARGET"; then
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10322$as_echo "$GCJ_FOR_TARGET" >&6; }
10323else
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325$as_echo "no" >&6; }
10326fi
10327
10328
10329 fi
10330 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10331 done
10332fi
10333
10334if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10335 set dummy gcj
10336 if test $build = $target ; then
10337 GCJ_FOR_TARGET="$2"
10338 else
10339 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10340 fi
10341else
10342 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
10343fi
10344
10345
10346
10347if test -n "$GFORTRAN_FOR_TARGET"; then
10348 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10349elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10351fi
10352
10353if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10354 for ncn_progname in gfortran; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10356set dummy ${ncn_progname}; ac_word=$2
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358$as_echo_n "checking for $ac_word... " >&6; }
10359if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
10361else
10362 if test -n "$GFORTRAN_FOR_TARGET"; then
10363 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10372 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377 done
10378IFS=$as_save_IFS
10379
10380fi
10381fi
10382GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10383if test -n "$GFORTRAN_FOR_TARGET"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10385$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10386else
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388$as_echo "no" >&6; }
10389fi
10390
10391
10392 done
10393fi
10394
10395if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
10396 for ncn_progname in gfortran; do
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10398$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10399 if test -x $with_build_time_tools/${ncn_progname}; then
10400 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402$as_echo "yes" >&6; }
10403 break
10404 else
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406$as_echo "no" >&6; }
10407 fi
10408 done
10409fi
10410
10411if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10412 for ncn_progname in gfortran; do
10413 if test -n "$ncn_target_tool_prefix"; then
10414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10415set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417$as_echo_n "checking for $ac_word... " >&6; }
10418if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
10420else
10421 if test -n "$GFORTRAN_FOR_TARGET"; then
10422 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10423else
10424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425for as_dir in $PATH
10426do
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10431 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 break 2
10434 fi
10435done
10436 done
10437IFS=$as_save_IFS
10438
10439fi
10440fi
10441GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10442if test -n "$GFORTRAN_FOR_TARGET"; then
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10444$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10445else
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447$as_echo "no" >&6; }
10448fi
10449
10450
10451 fi
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454set dummy ${ncn_progname}; ac_word=$2
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456$as_echo_n "checking for $ac_word... " >&6; }
10457if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
10459else
10460 if test -n "$GFORTRAN_FOR_TARGET"; then
10461 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10462else
10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464for as_dir in $PATH
10465do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10470 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 break 2
10473 fi
10474done
10475 done
10476IFS=$as_save_IFS
10477
10478fi
10479fi
10480GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10481if test -n "$GFORTRAN_FOR_TARGET"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10483$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
10484else
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
10487fi
10488
10489
10490 fi
10491 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10492 done
10493fi
10494
10495if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10496 set dummy gfortran
10497 if test $build = $target ; then
10498 GFORTRAN_FOR_TARGET="$2"
10499 else
10500 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10501 fi
10502else
10503 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
10504fi
10505
10506
10507
10508if test -n "$GOC_FOR_TARGET"; then
10509 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10510elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10512fi
10513
10514if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10515 for ncn_progname in gccgo; do
10516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10517set dummy ${ncn_progname}; ac_word=$2
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519$as_echo_n "checking for $ac_word... " >&6; }
10520if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522else
10523 if test -n "$GOC_FOR_TARGET"; then
10524 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10525else
10526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527for as_dir in $PATH
10528do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537done
10538 done
10539IFS=$as_save_IFS
10540
10541fi
10542fi
10543GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10544if test -n "$GOC_FOR_TARGET"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10546$as_echo "$GOC_FOR_TARGET" >&6; }
10547else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549$as_echo "no" >&6; }
10550fi
10551
10552
10553 done
10554fi
10555
10556if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10557 for ncn_progname in gccgo; do
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10559$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10560 if test -x $with_build_time_tools/${ncn_progname}; then
10561 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563$as_echo "yes" >&6; }
10564 break
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567$as_echo "no" >&6; }
10568 fi
10569 done
10570fi
10571
10572if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10573 for ncn_progname in gccgo; do
10574 if test -n "$ncn_target_tool_prefix"; then
10575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10576set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578$as_echo_n "checking for $ac_word... " >&6; }
10579if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581else
10582 if test -n "$GOC_FOR_TARGET"; then
10583 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597 done
10598IFS=$as_save_IFS
10599
10600fi
10601fi
10602GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10603if test -n "$GOC_FOR_TARGET"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10605$as_echo "$GOC_FOR_TARGET" >&6; }
10606else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608$as_echo "no" >&6; }
10609fi
10610
10611
10612 fi
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615set dummy ${ncn_progname}; ac_word=$2
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617$as_echo_n "checking for $ac_word... " >&6; }
10618if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620else
10621 if test -n "$GOC_FOR_TARGET"; then
10622 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10623else
10624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625for as_dir in $PATH
10626do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10634 fi
10635done
10636 done
10637IFS=$as_save_IFS
10638
10639fi
10640fi
10641GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10642if test -n "$GOC_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10644$as_echo "$GOC_FOR_TARGET" >&6; }
10645else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648fi
10649
10650
10651 fi
10652 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10653 done
10654fi
10655
10656if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10657 set dummy gccgo
10658 if test $build = $target ; then
10659 GOC_FOR_TARGET="$2"
10660 else
10661 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10662 fi
10663else
10664 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10665fi
10666
10667
10668
10669cat > conftest.c << \EOF
10670#ifdef __GNUC__
10671 gcc_yay;
10672#endif
10673EOF
10674if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10675 have_gcc_for_target=yes
10676else
10677 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10678 have_gcc_for_target=no
10679fi
10680rm conftest.c
10681
10682
10683
10684
10685if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10688$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
10689 if test -x $with_build_time_tools/ar; then
10690 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10691 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10693$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
10694 else
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
10697 fi
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
10700 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10701 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
10702 fi
10703fi
10704if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10705 # Extract the first word of "ar", so it can be a program name with args.
10706set dummy ar; ac_word=$2
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
10709if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
10711else
10712 case $AR_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
10714 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10715 ;;
10716 *)
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $gcc_cv_tool_dirs
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10727 fi
10728done
10729 done
10730IFS=$as_save_IFS
10731
10732 ;;
10733esac
10734fi
10735AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10736if test -n "$AR_FOR_TARGET"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10738$as_echo "$AR_FOR_TARGET" >&6; }
10739else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
10742fi
10743
10744
10745fi
10746if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10747
10748
10749if test -n "$AR_FOR_TARGET"; then
10750 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10751elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10753fi
10754
10755if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10756 for ncn_progname in ar; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758set dummy ${ncn_progname}; ac_word=$2
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760$as_echo_n "checking for $ac_word... " >&6; }
10761if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
10763else
10764 if test -n "$AR_FOR_TARGET"; then
10765 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10766else
10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10774 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10776 break 2
10777 fi
10778done
10779 done
10780IFS=$as_save_IFS
10781
10782fi
10783fi
10784AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10785if test -n "$AR_FOR_TARGET"; then
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10787$as_echo "$AR_FOR_TARGET" >&6; }
10788else
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
10791fi
10792
10793
10794 done
10795fi
10796
10797if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
10798 for ncn_progname in ar; do
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804$as_echo "yes" >&6; }
10805 break
10806 else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
10809 fi
10810 done
10811fi
10812
10813if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10814 for ncn_progname in ar; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10817set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819$as_echo_n "checking for $ac_word... " >&6; }
10820if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822else
10823 if test -n "$AR_FOR_TARGET"; then
10824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10825else
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10833 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 break 2
10836 fi
10837done
10838 done
10839IFS=$as_save_IFS
10840
10841fi
10842fi
10843AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10844if test -n "$AR_FOR_TARGET"; then
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846$as_echo "$AR_FOR_TARGET" >&6; }
10847else
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
10850fi
10851
10852
10853 fi
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10856set dummy ${ncn_progname}; ac_word=$2
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858$as_echo_n "checking for $ac_word... " >&6; }
10859if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861else
10862 if test -n "$AR_FOR_TARGET"; then
10863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10864else
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877 done
10878IFS=$as_save_IFS
10879
10880fi
10881fi
10882AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10883if test -n "$AR_FOR_TARGET"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10885$as_echo "$AR_FOR_TARGET" >&6; }
10886else
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
10889fi
10890
10891
10892 fi
10893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10894 done
10895fi
10896
10897if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10898 set dummy ar
10899 if test $build = $target ; then
10900 AR_FOR_TARGET="$2"
10901 else
10902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
10903 fi
10904else
10905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
10906fi
10907
10908else
10909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
10910fi
10911
10912
10913
10914
10915if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10916 if test -n "$with_build_time_tools"; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10918$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
10919 if test -x $with_build_time_tools/as; then
10920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10923$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
10924 else
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926$as_echo "no" >&6; }
10927 fi
10928 elif test $build != $host && test $have_gcc_for_target = yes; then
10929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
10930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
10932 fi
10933fi
10934if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10935 # Extract the first word of "as", so it can be a program name with args.
10936set dummy as; ac_word=$2
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941else
10942 case $AS_FOR_TARGET in
10943 [\\/]* | ?:[\\/]*)
10944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10945 ;;
10946 *)
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $gcc_cv_tool_dirs
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 break 2
10957 fi
10958done
10959 done
10960IFS=$as_save_IFS
10961
10962 ;;
10963esac
10964fi
10965AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
10966if test -n "$AS_FOR_TARGET"; then
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10968$as_echo "$AS_FOR_TARGET" >&6; }
10969else
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
10972fi
10973
10974
10975fi
10976if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10977
10978
10979if test -n "$AS_FOR_TARGET"; then
10980 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10981elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10983fi
10984
10985if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10986 for ncn_progname in as; do
10987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10988set dummy ${ncn_progname}; ac_word=$2
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990$as_echo_n "checking for $ac_word... " >&6; }
10991if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
10993else
10994 if test -n "$AS_FOR_TARGET"; then
10995 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11007 fi
11008done
11009 done
11010IFS=$as_save_IFS
11011
11012fi
11013fi
11014AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11015if test -n "$AS_FOR_TARGET"; then
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11017$as_echo "$AS_FOR_TARGET" >&6; }
11018else
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
11021fi
11022
11023
11024 done
11025fi
11026
11027if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
11028 for ncn_progname in as; do
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11030$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11031 if test -x $with_build_time_tools/${ncn_progname}; then
11032 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034$as_echo "yes" >&6; }
11035 break
11036 else
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
11039 fi
11040 done
11041fi
11042
11043if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11044 for ncn_progname in as; do
11045 if test -n "$ncn_target_tool_prefix"; then
11046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11047set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049$as_echo_n "checking for $ac_word... " >&6; }
11050if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
11052else
11053 if test -n "$AS_FOR_TARGET"; then
11054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11055else
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11065 break 2
11066 fi
11067done
11068 done
11069IFS=$as_save_IFS
11070
11071fi
11072fi
11073AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11074if test -n "$AS_FOR_TARGET"; then
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076$as_echo "$AS_FOR_TARGET" >&6; }
11077else
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
11080fi
11081
11082
11083 fi
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11086set dummy ${ncn_progname}; ac_word=$2
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088$as_echo_n "checking for $ac_word... " >&6; }
11089if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
11091else
11092 if test -n "$AS_FOR_TARGET"; then
11093 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11094else
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11102 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11104 break 2
11105 fi
11106done
11107 done
11108IFS=$as_save_IFS
11109
11110fi
11111fi
11112AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11113if test -n "$AS_FOR_TARGET"; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11115$as_echo "$AS_FOR_TARGET" >&6; }
11116else
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
11119fi
11120
11121
11122 fi
11123 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11124 done
11125fi
11126
11127if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11128 set dummy as
11129 if test $build = $target ; then
11130 AS_FOR_TARGET="$2"
11131 else
11132 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11133 fi
11134else
11135 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
11136fi
11137
11138else
11139 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
11140fi
11141
11142
11143
11144
11145if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11146 if test -n "$with_build_time_tools"; then
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11148$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
11149 if test -x $with_build_time_tools/dlltool; then
11150 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11151 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11153$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
11154 else
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
11157 fi
11158 elif test $build != $host && test $have_gcc_for_target = yes; then
11159 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
11160 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11161 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11162 fi
11163fi
11164if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11165 # Extract the first word of "dlltool", so it can be a program name with args.
11166set dummy dlltool; ac_word=$2
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
11171else
11172 case $DLLTOOL_FOR_TARGET in
11173 [\\/]* | ?:[\\/]*)
11174 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11175 ;;
11176 *)
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $gcc_cv_tool_dirs
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11184 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11186 break 2
11187 fi
11188done
11189 done
11190IFS=$as_save_IFS
11191
11192 ;;
11193esac
11194fi
11195DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11196if test -n "$DLLTOOL_FOR_TARGET"; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11198$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11199else
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
11202fi
11203
11204
11205fi
11206if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11207
11208
11209if test -n "$DLLTOOL_FOR_TARGET"; then
11210 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11211elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11213fi
11214
11215if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11216 for ncn_progname in dlltool; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218set dummy ${ncn_progname}; ac_word=$2
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220$as_echo_n "checking for $ac_word... " >&6; }
11221if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223else
11224 if test -n "$DLLTOOL_FOR_TARGET"; then
11225 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11226else
11227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228for as_dir in $PATH
11229do
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11234 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11236 break 2
11237 fi
11238done
11239 done
11240IFS=$as_save_IFS
11241
11242fi
11243fi
11244DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11245if test -n "$DLLTOOL_FOR_TARGET"; then
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11247$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11248else
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
11251fi
11252
11253
11254 done
11255fi
11256
11257if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
11258 for ncn_progname in dlltool; do
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11260$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11261 if test -x $with_build_time_tools/${ncn_progname}; then
11262 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264$as_echo "yes" >&6; }
11265 break
11266 else
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268$as_echo "no" >&6; }
11269 fi
11270 done
11271fi
11272
11273if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11274 for ncn_progname in dlltool; do
11275 if test -n "$ncn_target_tool_prefix"; then
11276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279$as_echo_n "checking for $ac_word... " >&6; }
11280if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282else
11283 if test -n "$DLLTOOL_FOR_TARGET"; then
11284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11285else
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11295 break 2
11296 fi
11297done
11298 done
11299IFS=$as_save_IFS
11300
11301fi
11302fi
11303DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11304if test -n "$DLLTOOL_FOR_TARGET"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11307else
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
11310fi
11311
11312
11313 fi
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316set dummy ${ncn_progname}; ac_word=$2
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318$as_echo_n "checking for $ac_word... " >&6; }
11319if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11321else
11322 if test -n "$DLLTOOL_FOR_TARGET"; then
11323 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11324else
11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11332 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11334 break 2
11335 fi
11336done
11337 done
11338IFS=$as_save_IFS
11339
11340fi
11341fi
11342DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11343if test -n "$DLLTOOL_FOR_TARGET"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11345$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
11346else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
11349fi
11350
11351
11352 fi
11353 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11354 done
11355fi
11356
11357if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11358 set dummy dlltool
11359 if test $build = $target ; then
11360 DLLTOOL_FOR_TARGET="$2"
11361 else
11362 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11363 fi
11364else
11365 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
11366fi
11367
11368else
11369 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
11370fi
11371
11372
11373
11374
11375if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11376 if test -n "$with_build_time_tools"; then
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11378$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
11379 if test -x $with_build_time_tools/ld; then
11380 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11381 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11383$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
11387 fi
11388 elif test $build != $host && test $have_gcc_for_target = yes; then
11389 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
11390 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11391 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
11392 fi
11393fi
11394if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11395 # Extract the first word of "ld", so it can be a program name with args.
11396set dummy ld; ac_word=$2
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
11401else
11402 case $LD_FOR_TARGET in
11403 [\\/]* | ?:[\\/]*)
11404 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11405 ;;
11406 *)
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408for as_dir in $gcc_cv_tool_dirs
11409do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11414 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418done
11419 done
11420IFS=$as_save_IFS
11421
11422 ;;
11423esac
11424fi
11425LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11426if test -n "$LD_FOR_TARGET"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11428$as_echo "$LD_FOR_TARGET" >&6; }
11429else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
11432fi
11433
11434
11435fi
11436if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11437
11438
11439if test -n "$LD_FOR_TARGET"; then
11440 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11441elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11443fi
11444
11445if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11446 for ncn_progname in ld; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448set dummy ${ncn_progname}; ac_word=$2
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450$as_echo_n "checking for $ac_word... " >&6; }
11451if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
11453else
11454 if test -n "$LD_FOR_TARGET"; then
11455 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11456else
11457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11464 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 break 2
11467 fi
11468done
11469 done
11470IFS=$as_save_IFS
11471
11472fi
11473fi
11474LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11475if test -n "$LD_FOR_TARGET"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11477$as_echo "$LD_FOR_TARGET" >&6; }
11478else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
11481fi
11482
11483
11484 done
11485fi
11486
11487if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
11488 for ncn_progname in ld; do
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11490$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11491 if test -x $with_build_time_tools/${ncn_progname}; then
11492 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494$as_echo "yes" >&6; }
11495 break
11496 else
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
11499 fi
11500 done
11501fi
11502
11503if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11504 for ncn_progname in ld; do
11505 if test -n "$ncn_target_tool_prefix"; then
11506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11507set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509$as_echo_n "checking for $ac_word... " >&6; }
11510if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512else
11513 if test -n "$LD_FOR_TARGET"; then
11514 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11515else
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11526 fi
11527done
11528 done
11529IFS=$as_save_IFS
11530
11531fi
11532fi
11533LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11534if test -n "$LD_FOR_TARGET"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536$as_echo "$LD_FOR_TARGET" >&6; }
11537else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
11540fi
11541
11542
11543 fi
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11546set dummy ${ncn_progname}; ac_word=$2
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548$as_echo_n "checking for $ac_word... " >&6; }
11549if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551else
11552 if test -n "$LD_FOR_TARGET"; then
11553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11554else
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566done
11567 done
11568IFS=$as_save_IFS
11569
11570fi
11571fi
11572LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11573if test -n "$LD_FOR_TARGET"; then
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11575$as_echo "$LD_FOR_TARGET" >&6; }
11576else
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
11579fi
11580
11581
11582 fi
11583 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11584 done
11585fi
11586
11587if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11588 set dummy ld
11589 if test $build = $target ; then
11590 LD_FOR_TARGET="$2"
11591 else
11592 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11593 fi
11594else
11595 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
11596fi
11597
11598else
11599 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
11600fi
11601
11602
11603
11604
11605if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11606 if test -n "$with_build_time_tools"; then
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11608$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
11609 if test -x $with_build_time_tools/lipo; then
11610 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11611 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11613$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
11617 fi
11618 elif test $build != $host && test $have_gcc_for_target = yes; then
11619 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
11620 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11621 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11622 fi
11623fi
11624if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11625 # Extract the first word of "lipo", so it can be a program name with args.
11626set dummy lipo; ac_word=$2
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
11631else
11632 case $LIPO_FOR_TARGET in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11635 ;;
11636 *)
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $gcc_cv_tool_dirs
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11644 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646 break 2
11647 fi
11648done
11649 done
11650IFS=$as_save_IFS
11651
11652 ;;
11653esac
11654fi
11655LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11656if test -n "$LIPO_FOR_TARGET"; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11658$as_echo "$LIPO_FOR_TARGET" >&6; }
11659else
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
11662fi
11663
11664
11665fi
11666if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11667
11668
11669if test -n "$LIPO_FOR_TARGET"; then
11670 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11671elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11673fi
11674
11675if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11676 for ncn_progname in lipo; do
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678set dummy ${ncn_progname}; ac_word=$2
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680$as_echo_n "checking for $ac_word... " >&6; }
11681if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
11683else
11684 if test -n "$LIPO_FOR_TARGET"; then
11685 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11686else
11687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688for as_dir in $PATH
11689do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11694 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11697 fi
11698done
11699 done
11700IFS=$as_save_IFS
11701
11702fi
11703fi
11704LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11705if test -n "$LIPO_FOR_TARGET"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11707$as_echo "$LIPO_FOR_TARGET" >&6; }
11708else
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
11711fi
11712
11713
11714 done
11715fi
11716
11717if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
11718 for ncn_progname in lipo; do
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11720$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11721 if test -x $with_build_time_tools/${ncn_progname}; then
11722 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724$as_echo "yes" >&6; }
11725 break
11726 else
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
11729 fi
11730 done
11731fi
11732
11733if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11734 for ncn_progname in lipo; do
11735 if test -n "$ncn_target_tool_prefix"; then
11736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11737set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
11740if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
11742else
11743 if test -n "$LIPO_FOR_TARGET"; then
11744 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11745else
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11753 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11756 fi
11757done
11758 done
11759IFS=$as_save_IFS
11760
11761fi
11762fi
11763LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11764if test -n "$LIPO_FOR_TARGET"; then
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766$as_echo "$LIPO_FOR_TARGET" >&6; }
11767else
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
11770fi
11771
11772
11773 fi
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11776set dummy ${ncn_progname}; ac_word=$2
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
11779if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
11781else
11782 if test -n "$LIPO_FOR_TARGET"; then
11783 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11784else
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11792 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11794 break 2
11795 fi
11796done
11797 done
11798IFS=$as_save_IFS
11799
11800fi
11801fi
11802LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11803if test -n "$LIPO_FOR_TARGET"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11805$as_echo "$LIPO_FOR_TARGET" >&6; }
11806else
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
11809fi
11810
11811
11812 fi
11813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11814 done
11815fi
11816
11817if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11818 set dummy lipo
11819 if test $build = $target ; then
11820 LIPO_FOR_TARGET="$2"
11821 else
11822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11823 fi
11824else
11825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
11826fi
11827
11828else
11829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
11830fi
11831
11832
11833
11834
11835if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11836 if test -n "$with_build_time_tools"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11838$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
11839 if test -x $with_build_time_tools/nm; then
11840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11843$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
11844 else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
11847 fi
11848 elif test $build != $host && test $have_gcc_for_target = yes; then
11849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
11850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
11852 fi
11853fi
11854if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11855 # Extract the first word of "nm", so it can be a program name with args.
11856set dummy nm; ac_word=$2
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861else
11862 case $NM_FOR_TARGET in
11863 [\\/]* | ?:[\\/]*)
11864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11865 ;;
11866 *)
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $gcc_cv_tool_dirs
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11876 break 2
11877 fi
11878done
11879 done
11880IFS=$as_save_IFS
11881
11882 ;;
11883esac
11884fi
11885NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
11886if test -n "$NM_FOR_TARGET"; then
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11888$as_echo "$NM_FOR_TARGET" >&6; }
11889else
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
11892fi
11893
11894
11895fi
11896if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11897
11898
11899if test -n "$NM_FOR_TARGET"; then
11900 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11901elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11903fi
11904
11905if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11906 for ncn_progname in nm; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908set dummy ${ncn_progname}; ac_word=$2
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
11911if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
11913else
11914 if test -n "$NM_FOR_TARGET"; then
11915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11926 break 2
11927 fi
11928done
11929 done
11930IFS=$as_save_IFS
11931
11932fi
11933fi
11934NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11935if test -n "$NM_FOR_TARGET"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11937$as_echo "$NM_FOR_TARGET" >&6; }
11938else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
11941fi
11942
11943
11944 done
11945fi
11946
11947if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
11948 for ncn_progname in nm; do
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11950$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
11951 if test -x $with_build_time_tools/${ncn_progname}; then
11952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954$as_echo "yes" >&6; }
11955 break
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
11959 fi
11960 done
11961fi
11962
11963if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11964 for ncn_progname in nm; do
11965 if test -n "$ncn_target_tool_prefix"; then
11966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969$as_echo_n "checking for $ac_word... " >&6; }
11970if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
11972else
11973 if test -n "$NM_FOR_TARGET"; then
11974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11975else
11976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $PATH
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11985 break 2
11986 fi
11987done
11988 done
11989IFS=$as_save_IFS
11990
11991fi
11992fi
11993NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11994if test -n "$NM_FOR_TARGET"; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996$as_echo "$NM_FOR_TARGET" >&6; }
11997else
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
12000fi
12001
12002
12003 fi
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12006set dummy ${ncn_progname}; ac_word=$2
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
12009if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
12011else
12012 if test -n "$NM_FOR_TARGET"; then
12013 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12014else
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12022 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 break 2
12025 fi
12026done
12027 done
12028IFS=$as_save_IFS
12029
12030fi
12031fi
12032NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12033if test -n "$NM_FOR_TARGET"; then
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12035$as_echo "$NM_FOR_TARGET" >&6; }
12036else
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
12039fi
12040
12041
12042 fi
12043 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12044 done
12045fi
12046
12047if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12048 set dummy nm
12049 if test $build = $target ; then
12050 NM_FOR_TARGET="$2"
12051 else
12052 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
12053 fi
12054else
12055 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
12056fi
12057
12058else
12059 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
12060fi
12061
12062
12063
12064
12065if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12066 if test -n "$with_build_time_tools"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12068$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/objdump; then
12070 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12071 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12073$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
12077 fi
12078 elif test $build != $host && test $have_gcc_for_target = yes; then
12079 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
12080 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12081 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12082 fi
12083fi
12084if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12085 # Extract the first word of "objdump", so it can be a program name with args.
12086set dummy objdump; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091else
12092 case $OBJDUMP_FOR_TARGET in
12093 [\\/]* | ?:[\\/]*)
12094 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12095 ;;
12096 *)
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $gcc_cv_tool_dirs
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109 done
12110IFS=$as_save_IFS
12111
12112 ;;
12113esac
12114fi
12115OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12116if test -n "$OBJDUMP_FOR_TARGET"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12118$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12119else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
12122fi
12123
12124
12125fi
12126if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12127
12128
12129if test -n "$OBJDUMP_FOR_TARGET"; then
12130 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12131elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12133fi
12134
12135if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12136 for ncn_progname in objdump; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138set dummy ${ncn_progname}; ac_word=$2
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140$as_echo_n "checking for $ac_word... " >&6; }
12141if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143else
12144 if test -n "$OBJDUMP_FOR_TARGET"; then
12145 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158done
12159 done
12160IFS=$as_save_IFS
12161
12162fi
12163fi
12164OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12165if test -n "$OBJDUMP_FOR_TARGET"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12167$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12168else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170$as_echo "no" >&6; }
12171fi
12172
12173
12174 done
12175fi
12176
12177if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12178 for ncn_progname in objdump; do
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12180$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12181 if test -x $with_build_time_tools/${ncn_progname}; then
12182 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184$as_echo "yes" >&6; }
12185 break
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188$as_echo "no" >&6; }
12189 fi
12190 done
12191fi
12192
12193if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12194 for ncn_progname in objdump; do
12195 if test -n "$ncn_target_tool_prefix"; then
12196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202else
12203 if test -n "$OBJDUMP_FOR_TARGET"; then
12204 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12205else
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12216 fi
12217done
12218 done
12219IFS=$as_save_IFS
12220
12221fi
12222fi
12223OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12224if test -n "$OBJDUMP_FOR_TARGET"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12226$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12227else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230fi
12231
12232
12233 fi
12234 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236set dummy ${ncn_progname}; ac_word=$2
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
12239if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241else
12242 if test -n "$OBJDUMP_FOR_TARGET"; then
12243 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12244else
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12255 fi
12256done
12257 done
12258IFS=$as_save_IFS
12259
12260fi
12261fi
12262OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12263if test -n "$OBJDUMP_FOR_TARGET"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12265$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
12266else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
12269fi
12270
12271
12272 fi
12273 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12274 done
12275fi
12276
12277if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12278 set dummy objdump
12279 if test $build = $target ; then
12280 OBJDUMP_FOR_TARGET="$2"
12281 else
12282 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12283 fi
12284else
12285 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
12286fi
12287
12288else
12289 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
12290fi
12291
12292
12293
12294
12295if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12296 if test -n "$with_build_time_tools"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12298$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
12299 if test -x $with_build_time_tools/ranlib; then
12300 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12301 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12303$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
12304 else
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
12307 fi
12308 elif test $build != $host && test $have_gcc_for_target = yes; then
12309 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
12310 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12311 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12312 fi
12313fi
12314if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12315 # Extract the first word of "ranlib", so it can be a program name with args.
12316set dummy ranlib; ac_word=$2
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
12321else
12322 case $RANLIB_FOR_TARGET in
12323 [\\/]* | ?:[\\/]*)
12324 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12325 ;;
12326 *)
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $gcc_cv_tool_dirs
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12336 break 2
12337 fi
12338done
12339 done
12340IFS=$as_save_IFS
12341
12342 ;;
12343esac
12344fi
12345RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12346if test -n "$RANLIB_FOR_TARGET"; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12348$as_echo "$RANLIB_FOR_TARGET" >&6; }
12349else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
12352fi
12353
12354
12355fi
12356if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12357
12358
12359if test -n "$RANLIB_FOR_TARGET"; then
12360 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12361elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12363fi
12364
12365if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12366 for ncn_progname in ranlib; do
12367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12368set dummy ${ncn_progname}; ac_word=$2
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370$as_echo_n "checking for $ac_word... " >&6; }
12371if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373else
12374 if test -n "$RANLIB_FOR_TARGET"; then
12375 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12386 break 2
12387 fi
12388done
12389 done
12390IFS=$as_save_IFS
12391
12392fi
12393fi
12394RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12395if test -n "$RANLIB_FOR_TARGET"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12397$as_echo "$RANLIB_FOR_TARGET" >&6; }
12398else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
12401fi
12402
12403
12404 done
12405fi
12406
12407if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
12408 for ncn_progname in ranlib; do
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12410$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12411 if test -x $with_build_time_tools/${ncn_progname}; then
12412 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414$as_echo "yes" >&6; }
12415 break
12416 else
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
12419 fi
12420 done
12421fi
12422
12423if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12424 for ncn_progname in ranlib; do
12425 if test -n "$ncn_target_tool_prefix"; then
12426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429$as_echo_n "checking for $ac_word... " >&6; }
12430if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432else
12433 if test -n "$RANLIB_FOR_TARGET"; then
12434 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12435else
12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $PATH
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12446 fi
12447done
12448 done
12449IFS=$as_save_IFS
12450
12451fi
12452fi
12453RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12454if test -n "$RANLIB_FOR_TARGET"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12456$as_echo "$RANLIB_FOR_TARGET" >&6; }
12457else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
12460fi
12461
12462
12463 fi
12464 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12466set dummy ${ncn_progname}; ac_word=$2
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
12469if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
12471else
12472 if test -n "$RANLIB_FOR_TARGET"; then
12473 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12474else
12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12482 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12484 break 2
12485 fi
12486done
12487 done
12488IFS=$as_save_IFS
12489
12490fi
12491fi
12492RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12493if test -n "$RANLIB_FOR_TARGET"; then
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12495$as_echo "$RANLIB_FOR_TARGET" >&6; }
12496else
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
12499fi
12500
12501
12502 fi
12503 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12504 done
12505fi
12506
12507if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12508 set dummy ranlib
12509 if test $build = $target ; then
12510 RANLIB_FOR_TARGET="$2"
12511 else
12512 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
12513 fi
12514else
12515 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
12516fi
12517
12518else
12519 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
12520fi
12521
12522
12523
12524
12525if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12526 if test -n "$with_build_time_tools"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12528$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
12529 if test -x $with_build_time_tools/strip; then
12530 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12531 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12533$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
12534 else
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
12537 fi
12538 elif test $build != $host && test $have_gcc_for_target = yes; then
12539 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
12540 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12541 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12542 fi
12543fi
12544if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12545 # Extract the first word of "strip", so it can be a program name with args.
12546set dummy strip; ac_word=$2
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
12551else
12552 case $STRIP_FOR_TARGET in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12555 ;;
12556 *)
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $gcc_cv_tool_dirs
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568done
12569 done
12570IFS=$as_save_IFS
12571
12572 ;;
12573esac
12574fi
12575STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12576if test -n "$STRIP_FOR_TARGET"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12578$as_echo "$STRIP_FOR_TARGET" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585fi
12586if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12587
12588
12589if test -n "$STRIP_FOR_TARGET"; then
12590 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12591elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12593fi
12594
12595if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12596 for ncn_progname in strip; do
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598set dummy ${ncn_progname}; ac_word=$2
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600$as_echo_n "checking for $ac_word... " >&6; }
12601if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
12603else
12604 if test -n "$STRIP_FOR_TARGET"; then
12605 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12606else
12607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608for as_dir in $PATH
12609do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12617 fi
12618done
12619 done
12620IFS=$as_save_IFS
12621
12622fi
12623fi
12624STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12625if test -n "$STRIP_FOR_TARGET"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12627$as_echo "$STRIP_FOR_TARGET" >&6; }
12628else
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630$as_echo "no" >&6; }
12631fi
12632
12633
12634 done
12635fi
12636
12637if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
12638 for ncn_progname in strip; do
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12640$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12641 if test -x $with_build_time_tools/${ncn_progname}; then
12642 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644$as_echo "yes" >&6; }
12645 break
12646 else
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
12649 fi
12650 done
12651fi
12652
12653if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12654 for ncn_progname in strip; do
12655 if test -n "$ncn_target_tool_prefix"; then
12656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12657set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659$as_echo_n "checking for $ac_word... " >&6; }
12660if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
12662else
12663 if test -n "$STRIP_FOR_TARGET"; then
12664 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12665else
12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $PATH
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12673 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12675 break 2
12676 fi
12677done
12678 done
12679IFS=$as_save_IFS
12680
12681fi
12682fi
12683STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12684if test -n "$STRIP_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12686$as_echo "$STRIP_FOR_TARGET" >&6; }
12687else
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
12690fi
12691
12692
12693 fi
12694 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12696set dummy ${ncn_progname}; ac_word=$2
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
12699if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701else
12702 if test -n "$STRIP_FOR_TARGET"; then
12703 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12704else
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714 break 2
12715 fi
12716done
12717 done
12718IFS=$as_save_IFS
12719
12720fi
12721fi
12722STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12723if test -n "$STRIP_FOR_TARGET"; then
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12725$as_echo "$STRIP_FOR_TARGET" >&6; }
12726else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
12729fi
12730
12731
12732 fi
12733 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12734 done
12735fi
12736
12737if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12738 set dummy strip
12739 if test $build = $target ; then
12740 STRIP_FOR_TARGET="$2"
12741 else
12742 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12743 fi
12744else
12745 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
12746fi
12747
12748else
12749 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
12750fi
12751
12752
12753
12754
12755if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12756 if test -n "$with_build_time_tools"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12758$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/windres; then
12760 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12761 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12763$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
12767 fi
12768 elif test $build != $host && test $have_gcc_for_target = yes; then
12769 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
12770 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12771 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12772 fi
12773fi
12774if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12775 # Extract the first word of "windres", so it can be a program name with args.
12776set dummy windres; ac_word=$2
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781else
12782 case $WINDRES_FOR_TARGET in
12783 [\\/]* | ?:[\\/]*)
12784 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12785 ;;
12786 *)
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $gcc_cv_tool_dirs
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12794 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798done
12799 done
12800IFS=$as_save_IFS
12801
12802 ;;
12803esac
12804fi
12805WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12806if test -n "$WINDRES_FOR_TARGET"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12808$as_echo "$WINDRES_FOR_TARGET" >&6; }
12809else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812fi
12813
12814
12815fi
12816if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12817
12818
12819if test -n "$WINDRES_FOR_TARGET"; then
12820 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12821elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12823fi
12824
12825if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12826 for ncn_progname in windres; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828set dummy ${ncn_progname}; ac_word=$2
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
12831if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833else
12834 if test -n "$WINDRES_FOR_TARGET"; then
12835 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12844 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12847 fi
12848done
12849 done
12850IFS=$as_save_IFS
12851
12852fi
12853fi
12854WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12855if test -n "$WINDRES_FOR_TARGET"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12857$as_echo "$WINDRES_FOR_TARGET" >&6; }
12858else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
12861fi
12862
12863
12864 done
12865fi
12866
12867if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
12868 for ncn_progname in windres; do
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12870$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12871 if test -x $with_build_time_tools/${ncn_progname}; then
12872 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874$as_echo "yes" >&6; }
12875 break
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
12879 fi
12880 done
12881fi
12882
12883if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12884 for ncn_progname in windres; do
12885 if test -n "$ncn_target_tool_prefix"; then
12886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12887set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889$as_echo_n "checking for $ac_word... " >&6; }
12890if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892else
12893 if test -n "$WINDRES_FOR_TARGET"; then
12894 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12895else
12896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $PATH
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12906 fi
12907done
12908 done
12909IFS=$as_save_IFS
12910
12911fi
12912fi
12913WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12914if test -n "$WINDRES_FOR_TARGET"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12916$as_echo "$WINDRES_FOR_TARGET" >&6; }
12917else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
12920fi
12921
12922
12923 fi
12924 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12926set dummy ${ncn_progname}; ac_word=$2
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928$as_echo_n "checking for $ac_word... " >&6; }
12929if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931else
12932 if test -n "$WINDRES_FOR_TARGET"; then
12933 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12934else
12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936for as_dir in $PATH
12937do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 break 2
12945 fi
12946done
12947 done
12948IFS=$as_save_IFS
12949
12950fi
12951fi
12952WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12953if test -n "$WINDRES_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12955$as_echo "$WINDRES_FOR_TARGET" >&6; }
12956else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
12959fi
12960
12961
12962 fi
12963 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12964 done
12965fi
12966
12967if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12968 set dummy windres
12969 if test $build = $target ; then
12970 WINDRES_FOR_TARGET="$2"
12971 else
12972 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
12973 fi
12974else
12975 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
12976fi
12977
12978else
12979 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
12980fi
12981
12982
12983
12984
12985if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12986 if test -n "$with_build_time_tools"; then
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12988$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
12989 if test -x $with_build_time_tools/windmc; then
12990 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12991 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12993$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
12994 else
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
12997 fi
12998 elif test $build != $host && test $have_gcc_for_target = yes; then
12999 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13000 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13001 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13002 fi
13003fi
13004if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13005 # Extract the first word of "windmc", so it can be a program name with args.
13006set dummy windmc; ac_word=$2
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011else
13012 case $WINDMC_FOR_TARGET in
13013 [\\/]* | ?:[\\/]*)
13014 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13015 ;;
13016 *)
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $gcc_cv_tool_dirs
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13024 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13026 break 2
13027 fi
13028done
13029 done
13030IFS=$as_save_IFS
13031
13032 ;;
13033esac
13034fi
13035WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13036if test -n "$WINDMC_FOR_TARGET"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13038$as_echo "$WINDMC_FOR_TARGET" >&6; }
13039else
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
13042fi
13043
13044
13045fi
13046if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13047
13048
13049if test -n "$WINDMC_FOR_TARGET"; then
13050 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13051elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13053fi
13054
13055if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13056 for ncn_progname in windmc; do
13057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13058set dummy ${ncn_progname}; ac_word=$2
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060$as_echo_n "checking for $ac_word... " >&6; }
13061if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
13063else
13064 if test -n "$WINDMC_FOR_TARGET"; then
13065 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13066else
13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068for as_dir in $PATH
13069do
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13076 break 2
13077 fi
13078done
13079 done
13080IFS=$as_save_IFS
13081
13082fi
13083fi
13084WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13085if test -n "$WINDMC_FOR_TARGET"; then
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13087$as_echo "$WINDMC_FOR_TARGET" >&6; }
13088else
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
13091fi
13092
13093
13094 done
13095fi
13096
13097if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13098 for ncn_progname in windmc; do
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13100$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13101 if test -x $with_build_time_tools/${ncn_progname}; then
13102 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104$as_echo "yes" >&6; }
13105 break
13106 else
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
13109 fi
13110 done
13111fi
13112
13113if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13114 for ncn_progname in windmc; do
13115 if test -n "$ncn_target_tool_prefix"; then
13116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13117set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119$as_echo_n "checking for $ac_word... " >&6; }
13120if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
13122else
13123 if test -n "$WINDMC_FOR_TARGET"; then
13124 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13135 break 2
13136 fi
13137done
13138 done
13139IFS=$as_save_IFS
13140
13141fi
13142fi
13143WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13144if test -n "$WINDMC_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13146$as_echo "$WINDMC_FOR_TARGET" >&6; }
13147else
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
13150fi
13151
13152
13153 fi
13154 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13156set dummy ${ncn_progname}; ac_word=$2
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
13159if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
13161else
13162 if test -n "$WINDMC_FOR_TARGET"; then
13163 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13172 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13174 break 2
13175 fi
13176done
13177 done
13178IFS=$as_save_IFS
13179
13180fi
13181fi
13182WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13183if test -n "$WINDMC_FOR_TARGET"; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13185$as_echo "$WINDMC_FOR_TARGET" >&6; }
13186else
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
13189fi
13190
13191
13192 fi
13193 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13194 done
13195fi
13196
13197if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13198 set dummy windmc
13199 if test $build = $target ; then
13200 WINDMC_FOR_TARGET="$2"
13201 else
13202 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13203 fi
13204else
13205 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13206fi
13207
13208else
13209 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13210fi
13211
13212
13213RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13214
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13216$as_echo_n "checking where to find the target ar... " >&6; }
13217if test "x${build}" != "x${host}" ; then
13218 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13219 # We already found the complete path
13220 ac_dir=`dirname $AR_FOR_TARGET`
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13222$as_echo "pre-installed in $ac_dir" >&6; }
13223 else
13224 # Canadian cross, just use what we found
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13226$as_echo "pre-installed" >&6; }
13227 fi
13228else
13229 ok=yes
13230 case " ${configdirs} " in
13231 *" binutils "*) ;;
13232 *) ok=no ;;
13233 esac
13234
13235 if test $ok = yes; then
13236 # An in-tree tool is available and we can use it
13237 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13239$as_echo "just compiled" >&6; }
13240 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13241 # We already found the complete path
13242 ac_dir=`dirname $AR_FOR_TARGET`
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13244$as_echo "pre-installed in $ac_dir" >&6; }
13245 elif test "x$target" = "x$host"; then
13246 # We can use an host tool
13247 AR_FOR_TARGET='$(AR)'
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13249$as_echo "host tool" >&6; }
13250 else
13251 # We need a cross tool
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13253$as_echo "pre-installed" >&6; }
13254 fi
13255fi
13256
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13258$as_echo_n "checking where to find the target as... " >&6; }
13259if test "x${build}" != "x${host}" ; then
13260 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13261 # We already found the complete path
13262 ac_dir=`dirname $AS_FOR_TARGET`
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13264$as_echo "pre-installed in $ac_dir" >&6; }
13265 else
13266 # Canadian cross, just use what we found
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13268$as_echo "pre-installed" >&6; }
13269 fi
13270else
13271 ok=yes
13272 case " ${configdirs} " in
13273 *" gas "*) ;;
13274 *) ok=no ;;
13275 esac
13276
13277 if test $ok = yes; then
13278 # An in-tree tool is available and we can use it
13279 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13281$as_echo "just compiled" >&6; }
13282 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13283 # We already found the complete path
13284 ac_dir=`dirname $AS_FOR_TARGET`
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13286$as_echo "pre-installed in $ac_dir" >&6; }
13287 elif test "x$target" = "x$host"; then
13288 # We can use an host tool
13289 AS_FOR_TARGET='$(AS)'
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13291$as_echo "host tool" >&6; }
13292 else
13293 # We need a cross tool
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13295$as_echo "pre-installed" >&6; }
13296 fi
13297fi
13298
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13300$as_echo_n "checking where to find the target cc... " >&6; }
13301if test "x${build}" != "x${host}" ; then
13302 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13303 # We already found the complete path
13304 ac_dir=`dirname $CC_FOR_TARGET`
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13306$as_echo "pre-installed in $ac_dir" >&6; }
13307 else
13308 # Canadian cross, just use what we found
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13310$as_echo "pre-installed" >&6; }
13311 fi
13312else
13313 ok=yes
13314 case " ${configdirs} " in
13315 *" gcc "*) ;;
13316 *) ok=no ;;
13317 esac
13318
13319 if test $ok = yes; then
13320 # An in-tree tool is available and we can use it
13321 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13323$as_echo "just compiled" >&6; }
13324 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13325 # We already found the complete path
13326 ac_dir=`dirname $CC_FOR_TARGET`
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13328$as_echo "pre-installed in $ac_dir" >&6; }
13329 elif test "x$target" = "x$host"; then
13330 # We can use an host tool
13331 CC_FOR_TARGET='$(CC)'
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13333$as_echo "host tool" >&6; }
13334 else
13335 # We need a cross tool
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13337$as_echo "pre-installed" >&6; }
13338 fi
13339fi
13340
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13342$as_echo_n "checking where to find the target c++... " >&6; }
13343if test "x${build}" != "x${host}" ; then
13344 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13345 # We already found the complete path
13346 ac_dir=`dirname $CXX_FOR_TARGET`
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348$as_echo "pre-installed in $ac_dir" >&6; }
13349 else
13350 # Canadian cross, just use what we found
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352$as_echo "pre-installed" >&6; }
13353 fi
13354else
13355 ok=yes
13356 case " ${configdirs} " in
13357 *" gcc "*) ;;
13358 *) ok=no ;;
13359 esac
13360 case ,${enable_languages}, in
13361 *,c++,*) ;;
13362 *) ok=no ;;
13363 esac
13364 if test $ok = yes; then
13365 # An in-tree tool is available and we can use it
13366 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13368$as_echo "just compiled" >&6; }
13369 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13370 # We already found the complete path
13371 ac_dir=`dirname $CXX_FOR_TARGET`
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13373$as_echo "pre-installed in $ac_dir" >&6; }
13374 elif test "x$target" = "x$host"; then
13375 # We can use an host tool
13376 CXX_FOR_TARGET='$(CXX)'
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13378$as_echo "host tool" >&6; }
13379 else
13380 # We need a cross tool
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13382$as_echo "pre-installed" >&6; }
13383 fi
13384fi
13385
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13387$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
13388if test "x${build}" != "x${host}" ; then
13389 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13390 # We already found the complete path
13391 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13393$as_echo "pre-installed in $ac_dir" >&6; }
13394 else
13395 # Canadian cross, just use what we found
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13397$as_echo "pre-installed" >&6; }
13398 fi
13399else
13400 ok=yes
13401 case " ${configdirs} " in
13402 *" gcc "*) ;;
13403 *) ok=no ;;
13404 esac
13405 case ,${enable_languages}, in
13406 *,c++,*) ;;
13407 *) ok=no ;;
13408 esac
13409 if test $ok = yes; then
13410 # An in-tree tool is available and we can use it
13411 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'
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13413$as_echo "just compiled" >&6; }
13414 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13415 # We already found the complete path
13416 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13418$as_echo "pre-installed in $ac_dir" >&6; }
13419 elif test "x$target" = "x$host"; then
13420 # We can use an host tool
13421 RAW_CXX_FOR_TARGET='$(CXX)'
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13423$as_echo "host tool" >&6; }
13424 else
13425 # We need a cross tool
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13427$as_echo "pre-installed" >&6; }
13428 fi
13429fi
13430
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13432$as_echo_n "checking where to find the target dlltool... " >&6; }
13433if test "x${build}" != "x${host}" ; then
13434 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13435 # We already found the complete path
13436 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13438$as_echo "pre-installed in $ac_dir" >&6; }
13439 else
13440 # Canadian cross, just use what we found
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13442$as_echo "pre-installed" >&6; }
13443 fi
13444else
13445 ok=yes
13446 case " ${configdirs} " in
13447 *" binutils "*) ;;
13448 *) ok=no ;;
13449 esac
13450
13451 if test $ok = yes; then
13452 # An in-tree tool is available and we can use it
13453 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13455$as_echo "just compiled" >&6; }
13456 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
13458 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460$as_echo "pre-installed in $ac_dir" >&6; }
13461 elif test "x$target" = "x$host"; then
13462 # We can use an host tool
13463 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13465$as_echo "host tool" >&6; }
13466 else
13467 # We need a cross tool
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13469$as_echo "pre-installed" >&6; }
13470 fi
13471fi
13472
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13474$as_echo_n "checking where to find the target gcc... " >&6; }
13475if test "x${build}" != "x${host}" ; then
13476 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13477 # We already found the complete path
13478 ac_dir=`dirname $GCC_FOR_TARGET`
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13480$as_echo "pre-installed in $ac_dir" >&6; }
13481 else
13482 # Canadian cross, just use what we found
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13484$as_echo "pre-installed" >&6; }
13485 fi
13486else
13487 ok=yes
13488 case " ${configdirs} " in
13489 *" gcc "*) ;;
13490 *) ok=no ;;
13491 esac
13492
13493 if test $ok = yes; then
13494 # An in-tree tool is available and we can use it
13495 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13497$as_echo "just compiled" >&6; }
13498 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
13500 ac_dir=`dirname $GCC_FOR_TARGET`
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502$as_echo "pre-installed in $ac_dir" >&6; }
13503 elif test "x$target" = "x$host"; then
13504 # We can use an host tool
13505 GCC_FOR_TARGET='$()'
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13507$as_echo "host tool" >&6; }
13508 else
13509 # We need a cross tool
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13511$as_echo "pre-installed" >&6; }
13512 fi
13513fi
13514
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13516$as_echo_n "checking where to find the target gcj... " >&6; }
13517if test "x${build}" != "x${host}" ; then
13518 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13519 # We already found the complete path
13520 ac_dir=`dirname $GCJ_FOR_TARGET`
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13522$as_echo "pre-installed in $ac_dir" >&6; }
13523 else
13524 # Canadian cross, just use what we found
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526$as_echo "pre-installed" >&6; }
13527 fi
13528else
13529 ok=yes
13530 case " ${configdirs} " in
13531 *" gcc "*) ;;
13532 *) ok=no ;;
13533 esac
13534 case ,${enable_languages}, in
13535 *,java,*) ;;
13536 *) ok=no ;;
13537 esac
13538 if test $ok = yes; then
13539 # An in-tree tool is available and we can use it
13540 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13542$as_echo "just compiled" >&6; }
13543 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
13545 ac_dir=`dirname $GCJ_FOR_TARGET`
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547$as_echo "pre-installed in $ac_dir" >&6; }
13548 elif test "x$target" = "x$host"; then
13549 # We can use an host tool
13550 GCJ_FOR_TARGET='$(GCJ)'
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13552$as_echo "host tool" >&6; }
13553 else
13554 # We need a cross tool
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13556$as_echo "pre-installed" >&6; }
13557 fi
13558fi
13559
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13561$as_echo_n "checking where to find the target gfortran... " >&6; }
13562if test "x${build}" != "x${host}" ; then
13563 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
13565 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567$as_echo "pre-installed in $ac_dir" >&6; }
13568 else
13569 # Canadian cross, just use what we found
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
13572 fi
13573else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" gcc "*) ;;
13577 *) ok=no ;;
13578 esac
13579 case ,${enable_languages}, in
13580 *,fortran,*) ;;
13581 *) ok=no ;;
13582 esac
13583 if test $ok = yes; then
13584 # An in-tree tool is available and we can use it
13585 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13587$as_echo "just compiled" >&6; }
13588 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13589 # We already found the complete path
13590 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13592$as_echo "pre-installed in $ac_dir" >&6; }
13593 elif test "x$target" = "x$host"; then
13594 # We can use an host tool
13595 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13597$as_echo "host tool" >&6; }
13598 else
13599 # We need a cross tool
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601$as_echo "pre-installed" >&6; }
13602 fi
13603fi
13604
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13606$as_echo_n "checking where to find the target gccgo... " >&6; }
13607if test "x${build}" != "x${host}" ; then
13608 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13609 # We already found the complete path
13610 ac_dir=`dirname $GOC_FOR_TARGET`
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13612$as_echo "pre-installed in $ac_dir" >&6; }
13613 else
13614 # Canadian cross, just use what we found
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616$as_echo "pre-installed" >&6; }
13617 fi
13618else
13619 ok=yes
13620 case " ${configdirs} " in
13621 *" gcc "*) ;;
13622 *) ok=no ;;
13623 esac
13624 case ,${enable_languages}, in
13625 *,go,*) ;;
13626 *) ok=no ;;
13627 esac
13628 if test $ok = yes; then
13629 # An in-tree tool is available and we can use it
13630 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13632$as_echo "just compiled" >&6; }
13633 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13634 # We already found the complete path
13635 ac_dir=`dirname $GOC_FOR_TARGET`
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13637$as_echo "pre-installed in $ac_dir" >&6; }
13638 elif test "x$target" = "x$host"; then
13639 # We can use an host tool
13640 GOC_FOR_TARGET='$(GOC)'
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13642$as_echo "host tool" >&6; }
13643 else
13644 # We need a cross tool
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13646$as_echo "pre-installed" >&6; }
13647 fi
13648fi
13649
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13651$as_echo_n "checking where to find the target ld... " >&6; }
13652if test "x${build}" != "x${host}" ; then
13653 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13654 # We already found the complete path
13655 ac_dir=`dirname $LD_FOR_TARGET`
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657$as_echo "pre-installed in $ac_dir" >&6; }
13658 else
13659 # Canadian cross, just use what we found
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13661$as_echo "pre-installed" >&6; }
13662 fi
13663else
13664 ok=yes
13665 case " ${configdirs} " in
13666 *" ld "*) ;;
13667 *) ok=no ;;
13668 esac
13669
13670 if test $ok = yes; then
13671 # An in-tree tool is available and we can use it
13672 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13674$as_echo "just compiled" >&6; }
13675 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13676 # We already found the complete path
13677 ac_dir=`dirname $LD_FOR_TARGET`
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13679$as_echo "pre-installed in $ac_dir" >&6; }
13680 elif test "x$target" = "x$host"; then
13681 # We can use an host tool
13682 LD_FOR_TARGET='$(LD)'
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13684$as_echo "host tool" >&6; }
13685 else
13686 # We need a cross tool
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13688$as_echo "pre-installed" >&6; }
13689 fi
13690fi
13691
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13693$as_echo_n "checking where to find the target lipo... " >&6; }
13694if test "x${build}" != "x${host}" ; then
13695 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13696 # We already found the complete path
13697 ac_dir=`dirname $LIPO_FOR_TARGET`
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13699$as_echo "pre-installed in $ac_dir" >&6; }
13700 else
13701 # Canadian cross, just use what we found
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13703$as_echo "pre-installed" >&6; }
13704 fi
13705else
13706 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
13708 ac_dir=`dirname $LIPO_FOR_TARGET`
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710$as_echo "pre-installed in $ac_dir" >&6; }
13711 elif test "x$target" = "x$host"; then
13712 # We can use an host tool
13713 LIPO_FOR_TARGET='$(LIPO)'
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13715$as_echo "host tool" >&6; }
13716 else
13717 # We need a cross tool
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719$as_echo "pre-installed" >&6; }
13720 fi
13721fi
13722
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13724$as_echo_n "checking where to find the target nm... " >&6; }
13725if test "x${build}" != "x${host}" ; then
13726 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
13728 ac_dir=`dirname $NM_FOR_TARGET`
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730$as_echo "pre-installed in $ac_dir" >&6; }
13731 else
13732 # Canadian cross, just use what we found
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734$as_echo "pre-installed" >&6; }
13735 fi
13736else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" binutils "*) ;;
13740 *) ok=no ;;
13741 esac
13742
13743 if test $ok = yes; then
13744 # An in-tree tool is available and we can use it
13745 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13747$as_echo "just compiled" >&6; }
13748 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
13750 ac_dir=`dirname $NM_FOR_TARGET`
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752$as_echo "pre-installed in $ac_dir" >&6; }
13753 elif test "x$target" = "x$host"; then
13754 # We can use an host tool
13755 NM_FOR_TARGET='$(NM)'
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13757$as_echo "host tool" >&6; }
13758 else
13759 # We need a cross tool
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761$as_echo "pre-installed" >&6; }
13762 fi
13763fi
13764
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13766$as_echo_n "checking where to find the target objdump... " >&6; }
13767if test "x${build}" != "x${host}" ; then
13768 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
13770 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772$as_echo "pre-installed in $ac_dir" >&6; }
13773 else
13774 # Canadian cross, just use what we found
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13776$as_echo "pre-installed" >&6; }
13777 fi
13778else
13779 ok=yes
13780 case " ${configdirs} " in
13781 *" binutils "*) ;;
13782 *) ok=no ;;
13783 esac
13784
13785 if test $ok = yes; then
13786 # An in-tree tool is available and we can use it
13787 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13789$as_echo "just compiled" >&6; }
13790 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
13792 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794$as_echo "pre-installed in $ac_dir" >&6; }
13795 elif test "x$target" = "x$host"; then
13796 # We can use an host tool
13797 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13799$as_echo "host tool" >&6; }
13800 else
13801 # We need a cross tool
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13803$as_echo "pre-installed" >&6; }
13804 fi
13805fi
13806
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13808$as_echo_n "checking where to find the target ranlib... " >&6; }
13809if test "x${build}" != "x${host}" ; then
13810 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
13812 ac_dir=`dirname $RANLIB_FOR_TARGET`
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814$as_echo "pre-installed in $ac_dir" >&6; }
13815 else
13816 # Canadian cross, just use what we found
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818$as_echo "pre-installed" >&6; }
13819 fi
13820else
13821 ok=yes
13822 case " ${configdirs} " in
13823 *" binutils "*) ;;
13824 *) ok=no ;;
13825 esac
13826
13827 if test $ok = yes; then
13828 # An in-tree tool is available and we can use it
13829 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13831$as_echo "just compiled" >&6; }
13832 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
13834 ac_dir=`dirname $RANLIB_FOR_TARGET`
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836$as_echo "pre-installed in $ac_dir" >&6; }
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 RANLIB_FOR_TARGET='$(RANLIB)'
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841$as_echo "host tool" >&6; }
13842 else
13843 # We need a cross tool
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845$as_echo "pre-installed" >&6; }
13846 fi
13847fi
13848
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13850$as_echo_n "checking where to find the target strip... " >&6; }
13851if test "x${build}" != "x${host}" ; then
13852 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
13854 ac_dir=`dirname $STRIP_FOR_TARGET`
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856$as_echo "pre-installed in $ac_dir" >&6; }
13857 else
13858 # Canadian cross, just use what we found
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860$as_echo "pre-installed" >&6; }
13861 fi
13862else
13863 ok=yes
13864 case " ${configdirs} " in
13865 *" binutils "*) ;;
13866 *) ok=no ;;
13867 esac
13868
13869 if test $ok = yes; then
13870 # An in-tree tool is available and we can use it
13871 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13873$as_echo "just compiled" >&6; }
13874 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
13876 ac_dir=`dirname $STRIP_FOR_TARGET`
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878$as_echo "pre-installed in $ac_dir" >&6; }
13879 elif test "x$target" = "x$host"; then
13880 # We can use an host tool
13881 STRIP_FOR_TARGET='$(STRIP)'
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13883$as_echo "host tool" >&6; }
13884 else
13885 # We need a cross tool
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887$as_echo "pre-installed" >&6; }
13888 fi
13889fi
13890
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13892$as_echo_n "checking where to find the target windres... " >&6; }
13893if test "x${build}" != "x${host}" ; then
13894 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13895 # We already found the complete path
13896 ac_dir=`dirname $WINDRES_FOR_TARGET`
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13898$as_echo "pre-installed in $ac_dir" >&6; }
13899 else
13900 # Canadian cross, just use what we found
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902$as_echo "pre-installed" >&6; }
13903 fi
13904else
13905 ok=yes
13906 case " ${configdirs} " in
13907 *" binutils "*) ;;
13908 *) ok=no ;;
13909 esac
13910
13911 if test $ok = yes; then
13912 # An in-tree tool is available and we can use it
13913 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13915$as_echo "just compiled" >&6; }
13916 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
13918 ac_dir=`dirname $WINDRES_FOR_TARGET`
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920$as_echo "pre-installed in $ac_dir" >&6; }
13921 elif test "x$target" = "x$host"; then
13922 # We can use an host tool
13923 WINDRES_FOR_TARGET='$(WINDRES)'
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13925$as_echo "host tool" >&6; }
13926 else
13927 # We need a cross tool
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929$as_echo "pre-installed" >&6; }
13930 fi
13931fi
13932
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13934$as_echo_n "checking where to find the target windmc... " >&6; }
13935if test "x${build}" != "x${host}" ; then
13936 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $WINDMC_FOR_TARGET`
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940$as_echo "pre-installed in $ac_dir" >&6; }
13941 else
13942 # Canadian cross, just use what we found
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944$as_echo "pre-installed" >&6; }
13945 fi
13946else
13947 ok=yes
13948 case " ${configdirs} " in
13949 *" binutils "*) ;;
13950 *) ok=no ;;
13951 esac
13952
13953 if test $ok = yes; then
13954 # An in-tree tool is available and we can use it
13955 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13957$as_echo "just compiled" >&6; }
13958 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
13960 ac_dir=`dirname $WINDMC_FOR_TARGET`
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962$as_echo "pre-installed in $ac_dir" >&6; }
13963 elif test "x$target" = "x$host"; then
13964 # We can use an host tool
13965 WINDMC_FOR_TARGET='$(WINDMC)'
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13967$as_echo "host tool" >&6; }
13968 else
13969 # We need a cross tool
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971$as_echo "pre-installed" >&6; }
13972 fi
13973fi
13974
13975
13976
13977
13978
13979# Certain tools may need extra flags.
13980AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13981RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13982NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13983
13984# When building target libraries, except in a Canadian cross, we use
13985# the same toolchain as the compiler we just built.
13986COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13987COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13988COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13989if test $host = $build; then
13990 case " $configdirs " in
13991 *" gcc "*)
13992 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13993 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13994 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13995 ;;
13996 esac
13997fi
13998
13999
14000
14001
14002
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14004$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14005# Check whether --enable-maintainer-mode was given.
14006if test "${enable_maintainer_mode+set}" = set; then :
14007 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14008else
14009 USE_MAINTAINER_MODE=no
14010fi
14011
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14013$as_echo "$USE_MAINTAINER_MODE" >&6; }
14014
14015
14016if test "$USE_MAINTAINER_MODE" = yes; then
14017 MAINTAINER_MODE_TRUE=
14018 MAINTAINER_MODE_FALSE='#'
14019else
14020 MAINTAINER_MODE_TRUE='#'
14021 MAINTAINER_MODE_FALSE=
14022fi
14023MAINT=$MAINTAINER_MODE_TRUE
14024
14025# ---------------------
14026# GCC bootstrap support
14027# ---------------------
14028
14029# Stage specific cflags for build.
14030stage1_cflags="-g"
14031case $build in
14032 vax-*-*)
14033 case ${GCC} in
14034 yes) stage1_cflags="-g -Wa,-J" ;;
14035 *) stage1_cflags="-g -J" ;;
14036 esac ;;
14037esac
14038
14039# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
14040if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
14041 saved_CFLAGS="$CFLAGS"
14042
14043 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14044 CFLAGS="$CFLAGS -fkeep-inline-functions"
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14046$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048/* end confdefs.h. */
14049
14050#if (__GNUC__ < 3) \
14051 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14052 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14053#error http://gcc.gnu.org/PR29382
14054#endif
14055
14056int
14057main ()
14058{
14059
14060 ;
14061 return 0;
14062}
14063_ACEOF
14064if ac_fn_c_try_compile "$LINENO"; then :
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14066$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
14067else
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069$as_echo "no" >&6; }
14070fi
14071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14072
14073 CFLAGS="$saved_CFLAGS"
14074fi
14075
14076
14077
14078# Enable --enable-checking in stage1 of the compiler.
14079# Check whether --enable-stage1-checking was given.
14080if test "${enable_stage1_checking+set}" = set; then :
14081 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
14082else
14083 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
14084 stage1_checking=--enable-checking=yes,types
14085else
14086 stage1_checking=--enable-checking=$enable_checking,types
14087fi
14088fi
14089
14090
14091
14092# Enable -Werror in bootstrap stage2 and later.
14093# Check whether --enable-werror was given.
14094if test "${enable_werror+set}" = set; then :
14095 enableval=$enable_werror;
14096else
14097 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
14098 enable_werror=yes
14099else
14100 enable_werror=no
14101fi
14102fi
14103
14104case ${enable_werror} in
14105 yes) stage2_werror_flag="--enable-werror-always" ;;
14106 *) stage2_werror_flag="" ;;
14107esac
14108
14109
14110# Specify what files to not compare during bootstrap.
14111
14112compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14113case "$target" in
14114 hppa*64*-*-hpux*) ;;
14115 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14116esac
14117case " $configdirs " in
14118*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14119esac
14120
14121
14122ac_config_files="$ac_config_files Makefile"
14123
14124cat >confcache <<\_ACEOF
14125# This file is a shell script that caches the results of configure
14126# tests run on this system so they can be shared between configure
14127# scripts and configure runs, see configure's option --config-cache.
14128# It is not useful on other systems. If it contains results you don't
14129# want to keep, you may remove or edit it.
14130#
14131# config.status only pays attention to the cache file if you give it
14132# the --recheck option to rerun configure.
14133#
14134# `ac_cv_env_foo' variables (set or unset) will be overridden when
14135# loading this file, other *unset* `ac_cv_foo' will be assigned the
14136# following values.
14137
14138_ACEOF
14139
14140# The following way of writing the cache mishandles newlines in values,
14141# but we know of no workaround that is simple, portable, and efficient.
14142# So, we kill variables containing newlines.
14143# Ultrix sh set writes to stderr and can't be redirected directly,
14144# and sets the high bit in the cache file unless we assign to the vars.
14145(
14146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14147 eval ac_val=\$$ac_var
14148 case $ac_val in #(
14149 *${as_nl}*)
14150 case $ac_var in #(
14151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14153 esac
14154 case $ac_var in #(
14155 _ | IFS | as_nl) ;; #(
14156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14157 *) { eval $ac_var=; unset $ac_var;} ;;
14158 esac ;;
14159 esac
14160 done
14161
14162 (set) 2>&1 |
14163 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14164 *${as_nl}ac_space=\ *)
14165 # `set' does not quote correctly, so add quotes: double-quote
14166 # substitution turns \\\\ into \\, and sed turns \\ into \.
14167 sed -n \
14168 "s/'/'\\\\''/g;
14169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14170 ;; #(
14171 *)
14172 # `set' quotes correctly as required by POSIX, so do not add quotes.
14173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14174 ;;
14175 esac |
14176 sort
14177) |
14178 sed '
14179 /^ac_cv_env_/b end
14180 t clear
14181 :clear
14182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14183 t end
14184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14185 :end' >>confcache
14186if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14187 if test -w "$cache_file"; then
14188 test "x$cache_file" != "x/dev/null" &&
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14190$as_echo "$as_me: updating cache $cache_file" >&6;}
14191 cat confcache >$cache_file
14192 else
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14194$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14195 fi
14196fi
14197rm -f confcache
14198
14199test "x$prefix" = xNONE && prefix=$ac_default_prefix
14200# Let make expand exec_prefix.
14201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14202
14203# Transform confdefs.h into DEFS.
14204# Protect against shell expansion while executing Makefile rules.
14205# Protect against Makefile macro expansion.
14206#
14207# If the first sed substitution is executed (which looks for macros that
14208# take arguments), then branch to the quote section. Otherwise,
14209# look for a macro that doesn't take arguments.
14210ac_script='
14211:mline
14212/\\$/{
14213 N
14214 s,\\\n,,
14215 b mline
14216}
14217t clear
14218:clear
14219s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14220t quote
14221s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14222t quote
14223b any
14224:quote
14225s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14226s/\[/\\&/g
14227s/\]/\\&/g
14228s/\$/$$/g
14229H
14230:any
14231${
14232 g
14233 s/^\n//
14234 s/\n/ /g
14235 p
14236}
14237'
14238DEFS=`sed -n "$ac_script" confdefs.h`
14239
14240
14241ac_libobjs=
14242ac_ltlibobjs=
14243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14244 # 1. Remove the extension, and $U if already installed.
14245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14248 # will be set to the directory where LIBOBJS objects are built.
14249 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14250 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14251done
14252LIBOBJS=$ac_libobjs
14253
14254LTLIBOBJS=$ac_ltlibobjs
14255
14256
14257
14258: ${CONFIG_STATUS=./config.status}
14259ac_write_fail=0
14260ac_clean_files_save=$ac_clean_files
14261ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14263$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14264as_write_fail=0
14265cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14266#! $SHELL
14267# Generated by $as_me.
14268# Run this file to recreate the current configuration.
14269# Compiler output produced by configure, useful for debugging
14270# configure, is in config.log if it exists.
14271
14272debug=false
14273ac_cs_recheck=false
14274ac_cs_silent=false
14275
14276SHELL=\${CONFIG_SHELL-$SHELL}
14277export SHELL
14278_ASEOF
14279cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14280## -------------------- ##
14281## M4sh Initialization. ##
14282## -------------------- ##
14283
14284# Be more Bourne compatible
14285DUALCASE=1; export DUALCASE # for MKS sh
14286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14287 emulate sh
14288 NULLCMD=:
14289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14290 # is contrary to our usage. Disable this feature.
14291 alias -g '${1+"$@"}'='"$@"'
14292 setopt NO_GLOB_SUBST
14293else
14294 case `(set -o) 2>/dev/null` in #(
14295 *posix*) :
14296 set -o posix ;; #(
14297 *) :
14298 ;;
14299esac
14300fi
14301
14302
14303as_nl='
14304'
14305export as_nl
14306# Printing a long string crashes Solaris 7 /usr/bin/printf.
14307as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14308as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14310# Prefer a ksh shell builtin over an external printf program on Solaris,
14311# but without wasting forks for bash or zsh.
14312if test -z "$BASH_VERSION$ZSH_VERSION" \
14313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14314 as_echo='print -r --'
14315 as_echo_n='print -rn --'
14316elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14317 as_echo='printf %s\n'
14318 as_echo_n='printf %s'
14319else
14320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14322 as_echo_n='/usr/ucb/echo -n'
14323 else
14324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14325 as_echo_n_body='eval
14326 arg=$1;
14327 case $arg in #(
14328 *"$as_nl"*)
14329 expr "X$arg" : "X\\(.*\\)$as_nl";
14330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14331 esac;
14332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14333 '
14334 export as_echo_n_body
14335 as_echo_n='sh -c $as_echo_n_body as_echo'
14336 fi
14337 export as_echo_body
14338 as_echo='sh -c $as_echo_body as_echo'
14339fi
14340
14341# The user is always right.
14342if test "${PATH_SEPARATOR+set}" != set; then
14343 PATH_SEPARATOR=:
14344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14346 PATH_SEPARATOR=';'
14347 }
14348fi
14349
14350
14351# IFS
14352# We need space, tab and new line, in precisely that order. Quoting is
14353# there to prevent editors from complaining about space-tab.
14354# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14355# splitting by setting IFS to empty value.)
14356IFS=" "" $as_nl"
14357
14358# Find who we are. Look in the path if we contain no directory separator.
14359case $0 in #((
14360 *[\\/]* ) as_myself=$0 ;;
14361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362for as_dir in $PATH
14363do
14364 IFS=$as_save_IFS
14365 test -z "$as_dir" && as_dir=.
14366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14367 done
14368IFS=$as_save_IFS
14369
14370 ;;
14371esac
14372# We did not find ourselves, most probably we were run as `sh COMMAND'
14373# in which case we are not to be found in the path.
14374if test "x$as_myself" = x; then
14375 as_myself=$0
14376fi
14377if test ! -f "$as_myself"; then
14378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14379 exit 1
14380fi
14381
14382# Unset variables that we do not need and which cause bugs (e.g. in
14383# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14384# suppresses any "Segmentation fault" message there. '((' could
14385# trigger a bug in pdksh 5.2.14.
14386for as_var in BASH_ENV ENV MAIL MAILPATH
14387do eval test x\${$as_var+set} = xset \
14388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14389done
14390PS1='$ '
14391PS2='> '
14392PS4='+ '
14393
14394# NLS nuisances.
14395LC_ALL=C
14396export LC_ALL
14397LANGUAGE=C
14398export LANGUAGE
14399
14400# CDPATH.
14401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14402
14403
14404# as_fn_error ERROR [LINENO LOG_FD]
14405# ---------------------------------
14406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14408# script with status $?, using 1 if that was 0.
14409as_fn_error ()
14410{
14411 as_status=$?; test $as_status -eq 0 && as_status=1
14412 if test "$3"; then
14413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14415 fi
14416 $as_echo "$as_me: error: $1" >&2
14417 as_fn_exit $as_status
14418} # as_fn_error
14419
14420
14421# as_fn_set_status STATUS
14422# -----------------------
14423# Set $? to STATUS, without forking.
14424as_fn_set_status ()
14425{
14426 return $1
14427} # as_fn_set_status
14428
14429# as_fn_exit STATUS
14430# -----------------
14431# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14432as_fn_exit ()
14433{
14434 set +e
14435 as_fn_set_status $1
14436 exit $1
14437} # as_fn_exit
14438
14439# as_fn_unset VAR
14440# ---------------
14441# Portably unset VAR.
14442as_fn_unset ()
14443{
14444 { eval $1=; unset $1;}
14445}
14446as_unset=as_fn_unset
14447# as_fn_append VAR VALUE
14448# ----------------------
14449# Append the text in VALUE to the end of the definition contained in VAR. Take
14450# advantage of any shell optimizations that allow amortized linear growth over
14451# repeated appends, instead of the typical quadratic growth present in naive
14452# implementations.
14453if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14454 eval 'as_fn_append ()
14455 {
14456 eval $1+=\$2
14457 }'
14458else
14459 as_fn_append ()
14460 {
14461 eval $1=\$$1\$2
14462 }
14463fi # as_fn_append
14464
14465# as_fn_arith ARG...
14466# ------------------
14467# Perform arithmetic evaluation on the ARGs, and store the result in the
14468# global $as_val. Take advantage of shells that can avoid forks. The arguments
14469# must be portable across $(()) and expr.
14470if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14471 eval 'as_fn_arith ()
14472 {
14473 as_val=$(( $* ))
14474 }'
14475else
14476 as_fn_arith ()
14477 {
14478 as_val=`expr "$@" || test $? -eq 1`
14479 }
14480fi # as_fn_arith
14481
14482
14483if expr a : '\(a\)' >/dev/null 2>&1 &&
14484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14485 as_expr=expr
14486else
14487 as_expr=false
14488fi
14489
14490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14491 as_basename=basename
14492else
14493 as_basename=false
14494fi
14495
14496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14497 as_dirname=dirname
14498else
14499 as_dirname=false
14500fi
14501
14502as_me=`$as_basename -- "$0" ||
14503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14504 X"$0" : 'X\(//\)$' \| \
14505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14506$as_echo X/"$0" |
14507 sed '/^.*\/\([^/][^/]*\)\/*$/{
14508 s//\1/
14509 q
14510 }
14511 /^X\/\(\/\/\)$/{
14512 s//\1/
14513 q
14514 }
14515 /^X\/\(\/\).*/{
14516 s//\1/
14517 q
14518 }
14519 s/.*/./; q'`
14520
14521# Avoid depending upon Character Ranges.
14522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14525as_cr_digits='0123456789'
14526as_cr_alnum=$as_cr_Letters$as_cr_digits
14527
14528ECHO_C= ECHO_N= ECHO_T=
14529case `echo -n x` in #(((((
14530-n*)
14531 case `echo 'xy\c'` in
14532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14533 xy) ECHO_C='\c';;
14534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14535 ECHO_T=' ';;
14536 esac;;
14537*)
14538 ECHO_N='-n';;
14539esac
14540
14541rm -f conf$$ conf$$.exe conf$$.file
14542if test -d conf$$.dir; then
14543 rm -f conf$$.dir/conf$$.file
14544else
14545 rm -f conf$$.dir
14546 mkdir conf$$.dir 2>/dev/null
14547fi
14548if (echo >conf$$.file) 2>/dev/null; then
14549 if ln -s conf$$.file conf$$ 2>/dev/null; then
14550 as_ln_s='ln -s'
14551 # ... but there are two gotchas:
14552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14554 # In both cases, we have to default to `cp -p'.
14555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14556 as_ln_s='cp -p'
14557 elif ln conf$$.file conf$$ 2>/dev/null; then
14558 as_ln_s=ln
14559 else
14560 as_ln_s='cp -p'
14561 fi
14562else
14563 as_ln_s='cp -p'
14564fi
14565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14566rmdir conf$$.dir 2>/dev/null
14567
14568
14569# as_fn_mkdir_p
14570# -------------
14571# Create "$as_dir" as a directory, including parents if necessary.
14572as_fn_mkdir_p ()
14573{
14574
14575 case $as_dir in #(
14576 -*) as_dir=./$as_dir;;
14577 esac
14578 test -d "$as_dir" || eval $as_mkdir_p || {
14579 as_dirs=
14580 while :; do
14581 case $as_dir in #(
14582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14583 *) as_qdir=$as_dir;;
14584 esac
14585 as_dirs="'$as_qdir' $as_dirs"
14586 as_dir=`$as_dirname -- "$as_dir" ||
14587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588 X"$as_dir" : 'X\(//\)[^/]' \| \
14589 X"$as_dir" : 'X\(//\)$' \| \
14590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14591$as_echo X"$as_dir" |
14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14593 s//\1/
14594 q
14595 }
14596 /^X\(\/\/\)[^/].*/{
14597 s//\1/
14598 q
14599 }
14600 /^X\(\/\/\)$/{
14601 s//\1/
14602 q
14603 }
14604 /^X\(\/\).*/{
14605 s//\1/
14606 q
14607 }
14608 s/.*/./; q'`
14609 test -d "$as_dir" && break
14610 done
14611 test -z "$as_dirs" || eval "mkdir $as_dirs"
14612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14613
14614
14615} # as_fn_mkdir_p
14616if mkdir -p . 2>/dev/null; then
14617 as_mkdir_p='mkdir -p "$as_dir"'
14618else
14619 test -d ./-p && rmdir ./-p
14620 as_mkdir_p=false
14621fi
14622
14623if test -x / >/dev/null 2>&1; then
14624 as_test_x='test -x'
14625else
14626 if ls -dL / >/dev/null 2>&1; then
14627 as_ls_L_option=L
14628 else
14629 as_ls_L_option=
14630 fi
14631 as_test_x='
14632 eval sh -c '\''
14633 if test -d "$1"; then
14634 test -d "$1/.";
14635 else
14636 case $1 in #(
14637 -*)set "./$1";;
14638 esac;
14639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14640 ???[sx]*):;;*)false;;esac;fi
14641 '\'' sh
14642 '
14643fi
14644as_executable_p=$as_test_x
14645
14646# Sed expression to map a string onto a valid CPP name.
14647as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14648
14649# Sed expression to map a string onto a valid variable name.
14650as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14651
14652
14653exec 6>&1
14654## ----------------------------------- ##
14655## Main body of $CONFIG_STATUS script. ##
14656## ----------------------------------- ##
14657_ASEOF
14658test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14659
14660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14661# Save the log message, to keep $0 and so on meaningful, and to
14662# report actual input values of CONFIG_FILES etc. instead of their
14663# values after options handling.
14664ac_log="
14665This file was extended by $as_me, which was
14666generated by GNU Autoconf 2.64. Invocation command line was
14667
14668 CONFIG_FILES = $CONFIG_FILES
14669 CONFIG_HEADERS = $CONFIG_HEADERS
14670 CONFIG_LINKS = $CONFIG_LINKS
14671 CONFIG_COMMANDS = $CONFIG_COMMANDS
14672 $ $0 $@
14673
14674on `(hostname || uname -n) 2>/dev/null | sed 1q`
14675"
14676
14677_ACEOF
14678
14679case $ac_config_files in *"
14680"*) set x $ac_config_files; shift; ac_config_files=$*;;
14681esac
14682
14683
14684
14685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14686# Files that config.status was made for.
14687config_files="$ac_config_files"
14688
14689_ACEOF
14690
14691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14692ac_cs_usage="\
14693\`$as_me' instantiates files and other configuration actions
14694from templates according to the current configuration. Unless the files
14695and actions are specified as TAGs, all are instantiated by default.
14696
14697Usage: $0 [OPTION]... [TAG]...
14698
14699 -h, --help print this help, then exit
14700 -V, --version print version number and configuration settings, then exit
14701 -q, --quiet, --silent
14702 do not print progress messages
14703 -d, --debug don't remove temporary files
14704 --recheck update $as_me by reconfiguring in the same conditions
14705 --file=FILE[:TEMPLATE]
14706 instantiate the configuration file FILE
14707
14708Configuration files:
14709$config_files
14710
14711Report bugs to the package provider."
14712
14713_ACEOF
14714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14715ac_cs_version="\\
14716config.status
14717configured by $0, generated by GNU Autoconf 2.64,
14718 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14719
14720Copyright (C) 2009 Free Software Foundation, Inc.
14721This config.status script is free software; the Free Software Foundation
14722gives unlimited permission to copy, distribute and modify it."
14723
14724ac_pwd='$ac_pwd'
14725srcdir='$srcdir'
14726INSTALL='$INSTALL'
14727AWK='$AWK'
14728test -n "\$AWK" || AWK=awk
14729_ACEOF
14730
14731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14732# The default lists apply if the user does not specify any file.
14733ac_need_defaults=:
14734while test $# != 0
14735do
14736 case $1 in
14737 --*=*)
14738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14740 ac_shift=:
14741 ;;
14742 *)
14743 ac_option=$1
14744 ac_optarg=$2
14745 ac_shift=shift
14746 ;;
14747 esac
14748
14749 case $ac_option in
14750 # Handling of the options.
14751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14752 ac_cs_recheck=: ;;
14753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14754 $as_echo "$ac_cs_version"; exit ;;
14755 --debug | --debu | --deb | --de | --d | -d )
14756 debug=: ;;
14757 --file | --fil | --fi | --f )
14758 $ac_shift
14759 case $ac_optarg in
14760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14761 esac
14762 as_fn_append CONFIG_FILES " '$ac_optarg'"
14763 ac_need_defaults=false;;
14764 --he | --h | --help | --hel | -h )
14765 $as_echo "$ac_cs_usage"; exit ;;
14766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14768 ac_cs_silent=: ;;
14769
14770 # This is an error.
14771 -*) as_fn_error "unrecognized option: \`$1'
14772Try \`$0 --help' for more information." ;;
14773
14774 *) as_fn_append ac_config_targets " $1"
14775 ac_need_defaults=false ;;
14776
14777 esac
14778 shift
14779done
14780
14781ac_configure_extra_args=
14782
14783if $ac_cs_silent; then
14784 exec 6>/dev/null
14785 ac_configure_extra_args="$ac_configure_extra_args --silent"
14786fi
14787
14788_ACEOF
14789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14790if \$ac_cs_recheck; then
14791 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14792 shift
14793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14794 CONFIG_SHELL='$SHELL'
14795 export CONFIG_SHELL
14796 exec "\$@"
14797fi
14798
14799_ACEOF
14800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14801exec 5>>config.log
14802{
14803 echo
14804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14805## Running $as_me. ##
14806_ASBOX
14807 $as_echo "$ac_log"
14808} >&5
14809
14810_ACEOF
14811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14812#
14813# INIT-COMMANDS
14814#
14815extrasub_build="$extrasub_build"
14816 extrasub_host="$extrasub_host"
14817 extrasub_target="$extrasub_target"
14818
14819_ACEOF
14820
14821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14822
14823# Handling of arguments.
14824for ac_config_target in $ac_config_targets
14825do
14826 case $ac_config_target in
14827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14828
14829 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14830 esac
14831done
14832
14833
14834# If the user did not use the arguments to specify the items to instantiate,
14835# then the envvar interface is used. Set only those that are not.
14836# We use the long form for the default assignment because of an extremely
14837# bizarre bug on SunOS 4.1.3.
14838if $ac_need_defaults; then
14839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14840fi
14841
14842# Have a temporary directory for convenience. Make it in the build tree
14843# simply because there is no reason against having it here, and in addition,
14844# creating and moving files from /tmp can sometimes cause problems.
14845# Hook for its removal unless debugging.
14846# Note that there is a small window in which the directory will not be cleaned:
14847# after its creation but before its name has been assigned to `$tmp'.
14848$debug ||
14849{
14850 tmp=
14851 trap 'exit_status=$?
14852 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14853' 0
14854 trap 'as_fn_exit 1' 1 2 13 15
14855}
14856# Create a (secure) tmp directory for tmp files.
14857
14858{
14859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14860 test -n "$tmp" && test -d "$tmp"
14861} ||
14862{
14863 tmp=./conf$$-$RANDOM
14864 (umask 077 && mkdir "$tmp")
14865} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14866
14867# Set up the scripts for CONFIG_FILES section.
14868# No need to generate them if there are no CONFIG_FILES.
14869# This happens for instance with `./config.status config.h'.
14870if test -n "$CONFIG_FILES"; then
14871
14872if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14873 ac_cs_awk_getline=:
14874 ac_cs_awk_pipe_init=
14875 ac_cs_awk_read_file='
14876 while ((getline aline < (F[key])) > 0)
14877 print(aline)
14878 close(F[key])'
14879 ac_cs_awk_pipe_fini=
14880else
14881 ac_cs_awk_getline=false
14882 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14883 ac_cs_awk_read_file='
14884 print "|#_!!_#|"
14885 print "cat " F[key] " &&"
14886 '$ac_cs_awk_pipe_init
14887 # The final `:' finishes the AND list.
14888 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14889fi
14890ac_cr=`echo X | tr X '\015'`
14891# On cygwin, bash can eat \r inside `` if the user requested igncr.
14892# But we know of no other shell where ac_cr would be empty at this
14893# point, so we can use a bashism as a fallback.
14894if test "x$ac_cr" = x; then
14895 eval ac_cr=\$\'\\r\'
14896fi
14897ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14898if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14899 ac_cs_awk_cr='\r'
14900else
14901 ac_cs_awk_cr=$ac_cr
14902fi
14903
14904echo 'BEGIN {' >"$tmp/subs1.awk" &&
14905_ACEOF
14906
14907# Create commands to substitute file output variables.
14908{
14909 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14910 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14911 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14912 echo "_ACAWK" &&
14913 echo "_ACEOF"
14914} >conf$$files.sh &&
14915. ./conf$$files.sh ||
14916 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14917rm -f conf$$files.sh
14918
14919{
14920 echo "cat >conf$$subs.awk <<_ACEOF" &&
14921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14922 echo "_ACEOF"
14923} >conf$$subs.sh ||
14924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14925ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14926ac_delim='%!_!# '
14927for ac_last_try in false false false false false :; do
14928 . ./conf$$subs.sh ||
14929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14930
14931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14932 if test $ac_delim_n = $ac_delim_num; then
14933 break
14934 elif $ac_last_try; then
14935 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14936 else
14937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14938 fi
14939done
14940rm -f conf$$subs.sh
14941
14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14944_ACEOF
14945sed -n '
14946h
14947s/^/S["/; s/!.*/"]=/
14948p
14949g
14950s/^[^!]*!//
14951:repl
14952t repl
14953s/'"$ac_delim"'$//
14954t delim
14955:nl
14956h
14957s/\(.\{148\}\).*/\1/
14958t more1
14959s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14960p
14961n
14962b repl
14963:more1
14964s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14965p
14966g
14967s/.\{148\}//
14968t nl
14969:delim
14970h
14971s/\(.\{148\}\).*/\1/
14972t more2
14973s/["\\]/\\&/g; s/^/"/; s/$/"/
14974p
14975b
14976:more2
14977s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14978p
14979g
14980s/.\{148\}//
14981t delim
14982' <conf$$subs.awk | sed '
14983/^[^""]/{
14984 N
14985 s/\n//
14986}
14987' >>$CONFIG_STATUS || ac_write_fail=1
14988rm -f conf$$subs.awk
14989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14990_ACAWK
14991cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14992 for (key in S) S_is_set[key] = 1
14993 FS = "\a"
14994 \$ac_cs_awk_pipe_init
14995}
14996{
14997 line = $ 0
14998 nfields = split(line, field, "@")
14999 substed = 0
15000 len = length(field[1])
15001 for (i = 2; i < nfields; i++) {
15002 key = field[i]
15003 keylen = length(key)
15004 if (S_is_set[key]) {
15005 value = S[key]
15006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15007 len += length(value) + length(field[++i])
15008 substed = 1
15009 } else
15010 len += 1 + keylen
15011 }
15012 if (nfields == 3 && !substed) {
15013 key = field[2]
15014 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15015 \$ac_cs_awk_read_file
15016 next
15017 }
15018 }
15019 print line
15020}
15021\$ac_cs_awk_pipe_fini
15022_ACAWK
15023_ACEOF
15024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15027else
15028 cat
15029fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15030 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15031_ACEOF
15032
15033# VPATH may cause trouble with some makes, so we remove $(srcdir),
15034# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15035# trailing colons and then remove the whole line if VPATH becomes empty
15036# (actually we leave an empty line to preserve line numbers).
15037if test "x$srcdir" = x.; then
15038 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15039s/:*\$(srcdir):*/:/
15040s/:*\${srcdir}:*/:/
15041s/:*@srcdir@:*/:/
15042s/^\([^=]*=[ ]*\):*/\1/
15043s/:*$//
15044s/^[^=]*=[ ]*$//
15045}'
15046fi
15047
15048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049fi # test -n "$CONFIG_FILES"
15050
15051
15052eval set X " :F $CONFIG_FILES "
15053shift
15054for ac_tag
15055do
15056 case $ac_tag in
15057 :[FHLC]) ac_mode=$ac_tag; continue;;
15058 esac
15059 case $ac_mode$ac_tag in
15060 :[FHL]*:*);;
15061 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15062 :[FH]-) ac_tag=-:-;;
15063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15064 esac
15065 ac_save_IFS=$IFS
15066 IFS=:
15067 set x $ac_tag
15068 IFS=$ac_save_IFS
15069 shift
15070 ac_file=$1
15071 shift
15072
15073 case $ac_mode in
15074 :L) ac_source=$1;;
15075 :[FH])
15076 ac_file_inputs=
15077 for ac_f
15078 do
15079 case $ac_f in
15080 -) ac_f="$tmp/stdin";;
15081 *) # Look for the file first in the build tree, then in the source tree
15082 # (if the path is not absolute). The absolute path cannot be DOS-style,
15083 # because $ac_f cannot contain `:'.
15084 test -f "$ac_f" ||
15085 case $ac_f in
15086 [\\/$]*) false;;
15087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15088 esac ||
15089 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15090 esac
15091 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15092 as_fn_append ac_file_inputs " '$ac_f'"
15093 done
15094
15095 # Let's still pretend it is `configure' which instantiates (i.e., don't
15096 # use $as_me), people would be surprised to read:
15097 # /* config.h. Generated by config.status. */
15098 configure_input='Generated from '`
15099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15100 `' by configure.'
15101 if test x"$ac_file" != x-; then
15102 configure_input="$ac_file. $configure_input"
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15104$as_echo "$as_me: creating $ac_file" >&6;}
15105 fi
15106 # Neutralize special characters interpreted by sed in replacement strings.
15107 case $configure_input in #(
15108 *\&* | *\|* | *\\* )
15109 ac_sed_conf_input=`$as_echo "$configure_input" |
15110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15111 *) ac_sed_conf_input=$configure_input;;
15112 esac
15113
15114 case $ac_tag in
15115 *:-:* | *:-) cat >"$tmp/stdin" \
15116 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15117 esac
15118 ;;
15119 esac
15120
15121 ac_dir=`$as_dirname -- "$ac_file" ||
15122$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15123 X"$ac_file" : 'X\(//\)[^/]' \| \
15124 X"$ac_file" : 'X\(//\)$' \| \
15125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15126$as_echo X"$ac_file" |
15127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15128 s//\1/
15129 q
15130 }
15131 /^X\(\/\/\)[^/].*/{
15132 s//\1/
15133 q
15134 }
15135 /^X\(\/\/\)$/{
15136 s//\1/
15137 q
15138 }
15139 /^X\(\/\).*/{
15140 s//\1/
15141 q
15142 }
15143 s/.*/./; q'`
15144 as_dir="$ac_dir"; as_fn_mkdir_p
15145 ac_builddir=.
15146
15147case "$ac_dir" in
15148.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15149*)
15150 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15151 # A ".." for each directory in $ac_dir_suffix.
15152 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15153 case $ac_top_builddir_sub in
15154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15156 esac ;;
15157esac
15158ac_abs_top_builddir=$ac_pwd
15159ac_abs_builddir=$ac_pwd$ac_dir_suffix
15160# for backward compatibility:
15161ac_top_builddir=$ac_top_build_prefix
15162
15163case $srcdir in
15164 .) # We are building in place.
15165 ac_srcdir=.
15166 ac_top_srcdir=$ac_top_builddir_sub
15167 ac_abs_top_srcdir=$ac_pwd ;;
15168 [\\/]* | ?:[\\/]* ) # Absolute name.
15169 ac_srcdir=$srcdir$ac_dir_suffix;
15170 ac_top_srcdir=$srcdir
15171 ac_abs_top_srcdir=$srcdir ;;
15172 *) # Relative name.
15173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15174 ac_top_srcdir=$ac_top_build_prefix$srcdir
15175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15176esac
15177ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15178
15179
15180 case $ac_mode in
15181 :F)
15182 #
15183 # CONFIG_FILE
15184 #
15185
15186 case $INSTALL in
15187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15188 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15189 esac
15190_ACEOF
15191
15192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193# If the template does not know about datarootdir, expand it.
15194# FIXME: This hack should be removed a few years after 2.60.
15195ac_datarootdir_hack=; ac_datarootdir_seen=
15196ac_sed_dataroot='
15197/datarootdir/ {
15198 p
15199 q
15200}
15201/@datadir@/p
15202/@docdir@/p
15203/@infodir@/p
15204/@localedir@/p
15205/@mandir@/p'
15206case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15207*datarootdir*) ac_datarootdir_seen=yes;;
15208*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15210$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15211_ACEOF
15212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 ac_datarootdir_hack='
15214 s&@datadir@&$datadir&g
15215 s&@docdir@&$docdir&g
15216 s&@infodir@&$infodir&g
15217 s&@localedir@&$localedir&g
15218 s&@mandir@&$mandir&g
15219 s&\\\${datarootdir}&$datarootdir&g' ;;
15220esac
15221_ACEOF
15222
15223# Neutralize VPATH when `$srcdir' = `.'.
15224# Shell code in configure.ac might set extrasub.
15225# FIXME: do we really want to maintain this feature?
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227ac_sed_extra="$ac_vpsub
15228$extrasub
15229_ACEOF
15230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15231:t
15232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15233s|@configure_input@|$ac_sed_conf_input|;t t
15234s&@top_builddir@&$ac_top_builddir_sub&;t t
15235s&@top_build_prefix@&$ac_top_build_prefix&;t t
15236s&@srcdir@&$ac_srcdir&;t t
15237s&@abs_srcdir@&$ac_abs_srcdir&;t t
15238s&@top_srcdir@&$ac_top_srcdir&;t t
15239s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15240s&@builddir@&$ac_builddir&;t t
15241s&@abs_builddir@&$ac_abs_builddir&;t t
15242s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15243s&@INSTALL@&$ac_INSTALL&;t t
15244$ac_datarootdir_hack
15245"
15246eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15247if $ac_cs_awk_getline; then
15248 $AWK -f "$tmp/subs.awk"
15249else
15250 $AWK -f "$tmp/subs.awk" | $SHELL
15251fi >$tmp/out \
15252 || as_fn_error "could not create $ac_file" "$LINENO" 5
15253
15254test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15258which seems to be undefined. Please make sure it is defined." >&5
15259$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15260which seems to be undefined. Please make sure it is defined." >&2;}
15261
15262 rm -f "$tmp/stdin"
15263 case $ac_file in
15264 -) cat "$tmp/out" && rm -f "$tmp/out";;
15265 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15266 esac \
15267 || as_fn_error "could not create $ac_file" "$LINENO" 5
15268 ;;
15269
15270
15271
15272 esac
15273
15274
15275 case $ac_file$ac_mode in
15276 "Makefile":F) sed "$extrasub_build" Makefile |
15277 sed "$extrasub_host" |
15278 sed "$extrasub_target" > mf$$
15279 mv -f mf$$ Makefile ;;
15280
15281 esac
15282done # for ac_tag
15283
15284
15285as_fn_exit 0
15286_ACEOF
15287ac_clean_files=$ac_clean_files_save
15288
15289test $ac_write_fail = 0 ||
15290 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15291
15292
15293# configure is writing to config.log, and then calls config.status.
15294# config.status does its own redirection, appending to config.log.
15295# Unfortunately, on DOS this fails, as config.log is still kept open
15296# by configure, so config.status won't be able to write to it; its
15297# output is simply discarded. So we exec the FD to /dev/null,
15298# effectively closing config.log, so it can be properly (re)opened and
15299# appended to by config.status. When coming back to configure, we
15300# need to make the FD available again.
15301if test "$no_create" != yes; then
15302 ac_cs_success=:
15303 ac_config_status_args=
15304 test "$silent" = yes &&
15305 ac_config_status_args="$ac_config_status_args --quiet"
15306 exec 5>/dev/null
15307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15308 exec 5>>config.log
15309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15310 # would make configure fail if this is the last instruction.
15311 $ac_cs_success || as_fn_exit $?
15312fi
15313if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15315$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15316fi
15317
This page took 0.107471 seconds and 4 git commands to generate.