]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
libitm: de-ELF-ize x86/sjlj.S.
[thirdparty/gcc.git] / configure
CommitLineData
71ab34df 1#! /bin/sh
71ab34df 2# Guess values for system-dependent variables and create Makefiles.
cd9a469c 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.
71ab34df 8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
cd9a469c 11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b30fcfae 14
cd9a469c 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 :
b30fcfae 18 emulate sh
19 NULLCMD=:
cd9a469c 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
cd9a469c 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
b30fcfae 31fi
b30fcfae 32
cd9a469c 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 }
b30fcfae 79fi
80
81
cd9a469c 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
b30fcfae 121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
cd9a469c 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'\" &&
b181f265 171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
cd9a469c 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
b30fcfae 184do
cd9a469c 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."
b30fcfae 228 else
cd9a469c 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."
b30fcfae 233 fi
cd9a469c 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
b30fcfae 263
cd9a469c 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
b30fcfae 375 as_expr=expr
376else
377 as_expr=false
378fi
379
cd9a469c 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 381 as_basename=basename
382else
383 as_basename=false
384fi
385
cd9a469c 386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
b30fcfae 391
cd9a469c 392as_me=`$as_basename -- "$0" ||
b30fcfae 393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
cd9a469c 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'`
b30fcfae 410
5084f823 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
570af75a 417
b30fcfae 418
cd9a469c 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 |
b30fcfae 428 sed '
cd9a469c 429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
b30fcfae 433 N
cd9a469c 434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b30fcfae 436 t loop
cd9a469c 437 s/-\n.*//
b30fcfae 438 ' >$as_me.lineno &&
cd9a469c 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; }
b30fcfae 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
cd9a469c 444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
b30fcfae 446 # Exit status is that of the last command.
447 exit
448}
449
cd9a469c 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';;
b30fcfae 461esac
462
cd9a469c 463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
b30fcfae 466else
cd9a469c 467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
b30fcfae 469fi
cd9a469c 470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 472 as_ln_s='ln -s'
cd9a469c 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'
5084f823 483 fi
b30fcfae 484else
485 as_ln_s='cp -p'
486fi
cd9a469c 487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
b30fcfae 489
490if mkdir -p . 2>/dev/null; then
cd9a469c 491 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
cd9a469c 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
a83ffacf 519
b30fcfae 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
cd9a469c 527exec 7<&0 </dev/null 6>&1
b30fcfae 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
b30fcfae 534#
535# Initializations.
536#
71ab34df 537ac_default_prefix=/usr/local
cd9a469c 538ac_clean_files=
b30fcfae 539ac_config_libobj_dir=.
cd9a469c 540LIBOBJS=
b30fcfae 541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
5084f823 545
b30fcfae 546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
cd9a469c 552PACKAGE_URL=
b30fcfae 553
554ac_unique_file="move-if-change"
cd9a469c 555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
ef3c41c7 559POSTSTAGE1_CONFIGURE_FLAGS
cd9a469c 560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
5ff5b630 582GOC_FOR_TARGET
cd9a469c 583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
588OBJDUMP
589OBJCOPY
590WINDMC
591WINDRES
592STRIP
593RANLIB
594NM
595LIPO
596LD
597DLLTOOL
598AS
599AR
600RUNTEST
601EXPECT
602MAKEINFO
603FLEX
604LEX
605M4
606BISON
607YACC
cd9a469c 608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
5ff5b630 614GOC_FOR_BUILD
cd9a469c 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
1fda3360 624target_configdirs
cd9a469c 625configdirs
cd9a469c 626build_configdirs
cd9a469c 627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
372a3f1e 634target_configargs
635host_configargs
636build_configargs
719faf1c 637BUILD_CONFIG
ed9516f5 638LDFLAGS_FOR_TARGET
cd9a469c 639CXXFLAGS_FOR_TARGET
640CFLAGS_FOR_TARGET
641DEBUG_PREFIX_CFLAGS_FOR_TARGET
642SYSROOT_CFLAGS_FOR_TARGET
643stage1_languages
7bfefa9d 644extra_host_libiberty_configure_flags
cd9a469c 645clooginc
646clooglibs
647pplinc
648ppllibs
cd9a469c 649poststage1_ldflags
d6dfe18a 650poststage1_libs
cd9a469c 651stage1_libs
652stage1_ldflags
653extra_mpc_mpfr_configure_flags
654extra_mpc_gmp_configure_flags
655extra_mpfr_configure_flags
656gmpinc
657gmplibs
658do_compare
659GNATMAKE
660GNATBIND
661ac_ct_CXX
662CXXFLAGS
663CXX
664OBJEXT
665EXEEXT
666ac_ct_CC
667CPPFLAGS
668LDFLAGS
669CFLAGS
670CC
d7e52ac9 671EXTRA_CONFIGARGS_LIBJAVA
cd9a469c 672target_subdir
673host_subdir
674build_subdir
675build_libsubdir
b181f265 676AWK
677SED
cd9a469c 678LN_S
679LN
680INSTALL_DATA
681INSTALL_SCRIPT
682INSTALL_PROGRAM
683target_os
684target_vendor
685target_cpu
686target
687host_os
688host_vendor
689host_cpu
690host
691target_noncanonical
692host_noncanonical
693build_noncanonical
694build_os
695build_vendor
696build_cpu
697build
698TOPLEVEL_CONFIGURE_ARGUMENTS
699target_alias
700host_alias
701build_alias
702LIBS
703ECHO_T
704ECHO_N
705ECHO_C
706DEFS
707mandir
708localedir
709libdir
710psdir
711pdfdir
712dvidir
713htmldir
714infodir
715docdir
716oldincludedir
717includedir
718localstatedir
719sharedstatedir
720sysconfdir
721datadir
722datarootdir
723libexecdir
724sbindir
725bindir
726program_transform_name
727prefix
728exec_prefix
729PACKAGE_URL
730PACKAGE_BUGREPORT
731PACKAGE_STRING
732PACKAGE_VERSION
733PACKAGE_TARNAME
734PACKAGE_NAME
735PATH_SEPARATOR
736SHELL'
737ac_subst_files='serialization_dependencies
738host_makefile_frag
739target_makefile_frag
740alphaieee_frag
741ospace_frag'
742ac_user_opts='
743enable_option_checking
744with_build_libsubdir
745enable_gold
1e369e5f 746enable_ld
d9d975ae 747enable_libquadmath
748enable_libquadmath_support
cd9a469c 749enable_libada
750enable_libssp
d7e52ac9 751enable_static_libjava
6c59dfa4 752enable_bootstrap
cd9a469c 753enable_build_with_cxx
ef3c41c7 754enable_build_poststage1_with_cxx
cd9a469c 755with_mpc
756with_mpc_include
757with_mpc_lib
758with_mpfr_dir
759with_mpfr
760with_mpfr_include
761with_mpfr_lib
762with_gmp_dir
763with_gmp
764with_gmp_include
765with_gmp_lib
766with_host_libstdcxx
767with_stage1_ldflags
768with_stage1_libs
cd9a469c 769with_boot_libs
d6dfe18a 770with_boot_ldflags
cd9a469c 771with_ppl
772with_ppl_include
773with_ppl_lib
774enable_ppl_version_check
775with_cloog
776with_cloog_include
777with_cloog_lib
8a0fe290 778enable_cloog_backend
cd9a469c 779enable_cloog_version_check
7bfefa9d 780enable_lto
cd9a469c 781enable_stage1_languages
782enable_objc_gc
783with_build_sysroot
784with_debug_prefix_map
a2059f7a 785with_build_config
cd9a469c 786enable_serial_configure
787with_build_time_tools
788enable_maintainer_mode
789enable_stage1_checking
790enable_werror
cd9a469c 791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800CXX
801CXXFLAGS
802CCC
372a3f1e 803build_configargs
804host_configargs
805target_configargs
cd9a469c 806AR
807AS
808DLLTOOL
809LD
810LIPO
811NM
812RANLIB
813STRIP
814WINDRES
815WINDMC
816OBJCOPY
817OBJDUMP
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
5ff5b630 823GOC_FOR_TARGET
cd9a469c 824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
832STRIP_FOR_TARGET
833WINDRES_FOR_TARGET
834WINDMC_FOR_TARGET'
835
71ab34df 836
837# Initialize some variables set by options.
b30fcfae 838ac_init_help=
839ac_init_version=false
cd9a469c 840ac_unrecognized_opts=
841ac_unrecognized_sep=
71ab34df 842# The variables have the same names as the options, with
843# dashes changed to underlines.
b30fcfae 844cache_file=/dev/null
71ab34df 845exec_prefix=NONE
71ab34df 846no_create=
71ab34df 847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
71ab34df 855verbose=
856x_includes=NONE
857x_libraries=NONE
b30fcfae 858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
cd9a469c 864# (The list follows the same order as the GNU Coding Standards.)
71ab34df 865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
cd9a469c 868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
71ab34df 870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
71ab34df 873includedir='${prefix}/include'
874oldincludedir='/usr/include'
cd9a469c 875docdir='${datarootdir}/doc/${PACKAGE}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
a8298541 884
71ab34df 885ac_prev=
cd9a469c 886ac_dashdash=
71ab34df 887for ac_option
888do
71ab34df 889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
cd9a469c 891 eval $ac_prev=\$ac_option
71ab34df 892 ac_prev=
893 continue
894 fi
a8298541 895
cd9a469c 896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
71ab34df 900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
cd9a469c 903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
71ab34df 906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b30fcfae 910 bindir=$ac_optarg ;;
71ab34df 911
912 -build | --build | --buil | --bui | --bu)
b30fcfae 913 ac_prev=build_alias ;;
71ab34df 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b30fcfae 915 build_alias=$ac_optarg ;;
71ab34df 916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b30fcfae 922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
71ab34df 926
cd9a469c 927 -datadir | --datadir | --datadi | --datad)
71ab34df 928 ac_prev=datadir ;;
cd9a469c 929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b30fcfae 930 datadir=$ac_optarg ;;
71ab34df 931
cd9a469c 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
71ab34df 939 -disable-* | --disable-*)
cd9a469c 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
71ab34df 941 # Reject names that are not valid shell variable names.
cd9a469c 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
71ab34df 964
965 -enable-* | --enable-*)
cd9a469c 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
71ab34df 967 # Reject names that are not valid shell variable names.
cd9a469c 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
5084f823 978 esac
cd9a469c 979 eval enable_$ac_useropt=\$ac_optarg ;;
71ab34df 980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
b30fcfae 988 exec_prefix=$ac_optarg ;;
71ab34df 989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
b30fcfae 994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
71ab34df 1000
1001 -host | --host | --hos | --ho)
b30fcfae 1002 ac_prev=host_alias ;;
71ab34df 1003 -host=* | --host=* | --hos=* | --ho=*)
b30fcfae 1004 host_alias=$ac_optarg ;;
71ab34df 1005
cd9a469c 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
71ab34df 1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
b30fcfae 1017 includedir=$ac_optarg ;;
71ab34df 1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b30fcfae 1022 infodir=$ac_optarg ;;
71ab34df 1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b30fcfae 1027 libdir=$ac_optarg ;;
71ab34df 1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
b30fcfae 1034 libexecdir=$ac_optarg ;;
71ab34df 1035
cd9a469c 1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
71ab34df 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
cd9a469c 1042 | --localstate | --localstat | --localsta | --localst | --locals)
71ab34df 1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
cd9a469c 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b30fcfae 1046 localstatedir=$ac_optarg ;;
71ab34df 1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b30fcfae 1051 mandir=$ac_optarg ;;
71ab34df 1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b30fcfae 1058 | --no-cr | --no-c | -n)
71ab34df 1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b30fcfae 1072 oldincludedir=$ac_optarg ;;
71ab34df 1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b30fcfae 1077 prefix=$ac_optarg ;;
71ab34df 1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b30fcfae 1084 program_prefix=$ac_optarg ;;
71ab34df 1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b30fcfae 1091 program_suffix=$ac_optarg ;;
71ab34df 1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
b30fcfae 1108 program_transform_name=$ac_optarg ;;
71ab34df 1109
cd9a469c 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
71ab34df 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
b30fcfae 1128 sbindir=$ac_optarg ;;
71ab34df 1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
b30fcfae 1139 sharedstatedir=$ac_optarg ;;
71ab34df 1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
b30fcfae 1144 site=$ac_optarg ;;
71ab34df 1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b30fcfae 1149 srcdir=$ac_optarg ;;
71ab34df 1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b30fcfae 1156 sysconfdir=$ac_optarg ;;
71ab34df 1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
b30fcfae 1159 ac_prev=target_alias ;;
71ab34df 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b30fcfae 1161 target_alias=$ac_optarg ;;
71ab34df 1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
b30fcfae 1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
71ab34df 1168
1169 -with-* | --with-*)
cd9a469c 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
71ab34df 1171 # Reject names that are not valid shell variable names.
cd9a469c 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
5084f823 1182 esac
cd9a469c 1183 eval with_$ac_useropt=\$ac_optarg ;;
71ab34df 1184
1185 -without-* | --without-*)
cd9a469c 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
71ab34df 1187 # Reject names that are not valid shell variable names.
cd9a469c 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
71ab34df 1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b30fcfae 1210 x_includes=$ac_optarg ;;
71ab34df 1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b30fcfae 1217 x_libraries=$ac_optarg ;;
71ab34df 1218
cd9a469c 1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information."
71ab34df 1221 ;;
1222
b30fcfae 1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
cd9a469c 1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
b30fcfae 1231 export $ac_envvar ;;
1232
71ab34df 1233 *)
b30fcfae 1234 # FIXME: should be removed in autoconf 3.0.
cd9a469c 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b30fcfae 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
cd9a469c 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
b30fcfae 1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
71ab34df 1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
b30fcfae 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cd9a469c 1246 as_fn_error "missing argument to $ac_option"
ae48753c 1247fi
ae48753c 1248
cd9a469c 1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
5084f823 1254 esac
cd9a469c 1255fi
5084f823 1256
cd9a469c 1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
5084f823 1262do
cd9a469c 1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
5084f823 1271 case $ac_val in
cd9a469c 1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
71ab34df 1274 esac
cd9a469c 1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
71ab34df 1276done
1277
b30fcfae 1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
a83ffacf 1284
b30fcfae 1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
cd9a469c 1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
b30fcfae 1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
71ab34df 1300
71ab34df 1301
cd9a469c 1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1308
1309
71ab34df 1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
cd9a469c 1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
71ab34df 1337 srcdir=$ac_confdir
cd9a469c 1338 if test ! -r "$srcdir/$ac_unique_file"; then
71ab34df 1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
cd9a469c 1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
13d2f2b2 1362case $srcdir in
1363 *" "*)
1364 as_fn_error "path to source, $srcdir, contains spaces"
1365 ;;
1366esac
d2d2630b 1367ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1368
cd9a469c 1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
b30fcfae 1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383\`configure' configures this package to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
b30fcfae 1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
cd9a469c 1405 [$ac_default_prefix]
b30fcfae 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
cd9a469c 1407 [PREFIX]
b30fcfae 1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
cd9a469c 1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
b30fcfae 1436_ACEOF
1437
1438 cat <<\_ACEOF
1439
1440Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449_ACEOF
1450fi
1451
1452if test -n "$ac_init_help"; then
1453
1454 cat <<\_ACEOF
1455
1456Optional Features:
cd9a469c 1457 --disable-option-checking ignore unrecognized --enable/--with options
b30fcfae 1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1e369e5f 1460 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
8747a938 1461 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
d9d975ae 1462 --disable-libquadmath do not build libquadmath directory
1463 --disable-libquadmath-support
1464 disable libquadmath support for Fortran
09c2d953 1465 --enable-libada build libada directory
1466 --enable-libssp build libssp directory
d7e52ac9 1467 --enable-static-libjava[=ARG]
1468 build static libjava [default=no]
6c59dfa4 1469 --enable-bootstrap enable bootstrapping [yes if native build]
7ab76cec 1470 --enable-build-with-cxx build with C++ compiler instead of C compiler
ef3c41c7 1471 --enable-build-poststage1-with-cxx
1472 build stages 2 and 3 with C++, not C
8747a938 1473 --disable-ppl-version-check
1474 disable check for PPL version
8cc5f86b 1475 --enable-cloog-backend[=BACKEND]
1476 set the CLooG BACKEND used to either isl, ppl or
1477 ppl-legacy (default)
a3c81e03 1478 --disable-cloog-version-check
1479 disable check for CLooG version
7bfefa9d 1480 --enable-lto enable link time optimization support
8747a938 1481 --enable-stage1-languages[=all]
1482 choose additional languages to build during stage1.
1483 Mostly useful for compiler development
1484 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1485 Objective-C runtime
09c2d953 1486 --enable-serial-[{host,target,build}-]configure
8747a938 1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
b30fcfae 1496 --enable-werror enable -Werror in bootstrap stage2 and later
1497
1498Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-build-libsubdir=DIR Directory where to find libraries for build system
8747a938 1502 --with-mpc=PATH specify prefix directory for installed MPC package.
1503 Equivalent to --with-mpc-include=PATH/include plus
1504 --with-mpc-lib=PATH/lib
1505 --with-mpc-include=PATH specify directory for installed MPC include files
1506 --with-mpc-lib=PATH specify directory for the installed MPC library
09c2d953 1507 --with-mpfr-dir=PATH this option has been REMOVED
1508 --with-mpfr=PATH specify prefix directory for installed MPFR package.
8747a938 1509 Equivalent to --with-mpfr-include=PATH/include plus
1510 --with-mpfr-lib=PATH/lib
b30fcfae 1511 --with-mpfr-include=PATH
09c2d953 1512 specify directory for installed MPFR include files
1513 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1514 --with-gmp-dir=PATH this option has been REMOVED
8747a938 1515 --with-gmp=PATH specify prefix directory for the installed GMP
1516 package. Equivalent to
1517 --with-gmp-include=PATH/include plus
1518 --with-gmp-lib=PATH/lib
09c2d953 1519 --with-gmp-include=PATH specify directory for installed GMP include files
1520 --with-gmp-lib=PATH specify directory for the installed GMP library
8747a938 1521 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522 linking with PPL
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-stage1-libs=LIBS libraries for stage1
1526 --with-boot-libs=LIBS libraries for stage2 and later
1527 --with-boot-ldflags=FLAGS
1528 linker flags for stage2 and later
1529 --with-ppl=PATH specify prefix directory for the installed PPL
1530 package. Equivalent to
1531 --with-ppl-include=PATH/include plus
1532 --with-ppl-lib=PATH/lib
1533 --with-ppl-include=PATH specify directory for installed PPL include files
1534 --with-ppl-lib=PATH specify directory for the installed PPL library
a3c81e03 1535 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1536 package. Equivalent to
1537 --with-cloog-include=PATH/include plus
1538 --with-cloog-lib=PATH/lib
1539 --with-cloog-include=PATH
1540 Specify directory for installed CLooG include files
1541 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1542 library
09c2d953 1543 --with-build-sysroot=SYSROOT
b30fcfae 1544 use sysroot as the system root during the build
5f1f2de5 1545 --with-debug-prefix-map='A=B C=D ...'
8747a938 1546 map A to B, C to D ... in debug information
1547 --with-build-config='NAME NAME2...'
1548 use config/NAME.mk build configuration
09c2d953 1549 --with-build-time-tools=PATH
b30fcfae 1550 use given path to find target tools during the build
b30fcfae 1551
1552Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
cd9a469c 1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
eae5b2bc 1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
372a3f1e 1562 build_configargs
1563 additional configure arguments for build directories
1564 host_configargs
1565 additional configure arguments for host directories
1566 target_configargs
1567 additional configure arguments for target directories
95a05732 1568 AR AR for the host
1569 AS AS for the host
1570 DLLTOOL DLLTOOL for the host
1571 LD LD for the host
1572 LIPO LIPO for the host
1573 NM NM for the host
1574 RANLIB RANLIB for the host
1575 STRIP STRIP for the host
1576 WINDRES WINDRES for the host
75d6a0a9 1577 WINDMC WINDMC for the host
95a05732 1578 OBJCOPY OBJCOPY for the host
1579 OBJDUMP OBJDUMP for the host
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
5ff5b630 1590 GOC_FOR_TARGET
1591 GOC for the target
95a05732 1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
1608 STRIP_FOR_TARGET
1609 STRIP for the target
1610 WINDRES_FOR_TARGET
1611 WINDRES for the target
75d6a0a9 1612 WINDMC_FOR_TARGET
1613 WINDMC for the target
b30fcfae 1614
1615Use these variables to override the choices made by `configure' or to help
1616it to find libraries and programs with nonstandard names/locations.
1617
cd9a469c 1618Report bugs to the package provider.
b30fcfae 1619_ACEOF
cd9a469c 1620ac_status=$?
b30fcfae 1621fi
1622
1623if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
b30fcfae 1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
cd9a469c 1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 continue
b30fcfae 1629 ac_builddir=.
1630
cd9a469c 1631case "$ac_dir" in
1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633*)
1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641esac
1642ac_abs_top_builddir=$ac_pwd
1643ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644# for backward compatibility:
1645ac_top_builddir=$ac_top_build_prefix
b30fcfae 1646
1647case $srcdir in
cd9a469c 1648 .) # We are building in place.
b30fcfae 1649 ac_srcdir=.
cd9a469c 1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 1653 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5084f823 1660esac
cd9a469c 1661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
b30fcfae 1671 else
cd9a469c 1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
b30fcfae 1675 done
1676fi
1677
cd9a469c 1678test -n "$ac_init_help" && exit $ac_status
b30fcfae 1679if $ac_init_version; then
1680 cat <<\_ACEOF
cd9a469c 1681configure
1682generated by GNU Autoconf 2.64
b30fcfae 1683
cd9a469c 1684Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 1685This configure script is free software; the Free Software Foundation
1686gives unlimited permission to copy, distribute and modify it.
1687_ACEOF
cd9a469c 1688 exit
a83ffacf 1689fi
cd9a469c 1690
1691## ------------------------ ##
1692## Autoconf initialization. ##
1693## ------------------------ ##
1694
1695# ac_fn_c_try_compile LINENO
1696# --------------------------
1697# Try to compile conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1721 ac_retval=0
1722else
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727fi
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1730
1731} # ac_fn_c_try_compile
1732
1733# ac_fn_cxx_try_compile LINENO
1734# ----------------------------
1735# Try to compile conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_cxx_try_compile ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1741case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_cxx_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765fi
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1768
1769} # ac_fn_cxx_try_compile
1770
1771# ac_fn_c_try_link LINENO
1772# -----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_link ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest$ac_exeext && {
1797 test "$cross_compiling" = yes ||
1798 $as_test_x conftest$ac_exeext
1799 }; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806fi
1807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809 # interfere with the next link command; also delete a directory that is
1810 # left behind by Apple's compiler. We do this before executing the actions.
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 return $ac_retval
1814
1815} # ac_fn_c_try_link
1816cat >config.log <<_ACEOF
b30fcfae 1817This file contains any messages produced by compilers while
1818running configure, to aid debugging if configure makes a mistake.
1819
1820It was created by $as_me, which was
cd9a469c 1821generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 1822
1823 $ $0 $@
1824
1825_ACEOF
cd9a469c 1826exec 5>>config.log
b30fcfae 1827{
1828cat <<_ASUNAME
1829## --------- ##
1830## Platform. ##
1831## --------- ##
1832
1833hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838
1839/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841
1842/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1843/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1844/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
cd9a469c 1845/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
b30fcfae 1846/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1847/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1848/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1849
1850_ASUNAME
1851
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
cd9a469c 1857 $as_echo "PATH: $as_dir"
1858 done
1859IFS=$as_save_IFS
b30fcfae 1860
1861} >&5
1862
1863cat >&5 <<_ACEOF
1864
1865
1866## ----------- ##
1867## Core tests. ##
1868## ----------- ##
1869
1870_ACEOF
1871
1872
1873# Keep a trace of the command line.
1874# Strip out --no-create and --no-recursion so they do not pile up.
1875# Strip out --silent because we don't want to record it for future runs.
1876# Also quote any args containing shell meta-characters.
1877# Make two passes to allow for proper duplicate-argument suppression.
1878ac_configure_args=
1879ac_configure_args0=
1880ac_configure_args1=
b30fcfae 1881ac_must_keep_next=false
1882for ac_pass in 1 2
1883do
1884 for ac_arg
1885 do
1886 case $ac_arg in
1887 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1889 | -silent | --silent | --silen | --sile | --sil)
1890 continue ;;
cd9a469c 1891 *\'*)
1892 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 1893 esac
1894 case $ac_pass in
cd9a469c 1895 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b30fcfae 1896 2)
cd9a469c 1897 as_fn_append ac_configure_args1 " '$ac_arg'"
b30fcfae 1898 if test $ac_must_keep_next = true; then
1899 ac_must_keep_next=false # Got value, back to normal.
1900 else
1901 case $ac_arg in
1902 *=* | --config-cache | -C | -disable-* | --disable-* \
1903 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1904 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1905 | -with-* | --with-* | -without-* | --without-* | --x)
1906 case "$ac_configure_args0 " in
1907 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1908 esac
1909 ;;
1910 -* ) ac_must_keep_next=true ;;
1911 esac
1912 fi
cd9a469c 1913 as_fn_append ac_configure_args " '$ac_arg'"
b30fcfae 1914 ;;
1915 esac
1916 done
1917done
cd9a469c 1918{ ac_configure_args0=; unset ac_configure_args0;}
1919{ ac_configure_args1=; unset ac_configure_args1;}
b30fcfae 1920
1921# When interrupted or exit'd, cleanup temporary files, and complete
1922# config.log. We remove comments because anyway the quotes in there
1923# would cause problems or look ugly.
cd9a469c 1924# WARNING: Use '\'' to represent an apostrophe within the trap.
1925# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b30fcfae 1926trap 'exit_status=$?
1927 # Save into config.log some information that might help in debugging.
1928 {
1929 echo
1930
1931 cat <<\_ASBOX
1932## ---------------- ##
1933## Cache variables. ##
1934## ---------------- ##
1935_ASBOX
1936 echo
1937 # The following way of writing the cache mishandles newlines in values,
cd9a469c 1938(
1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in #(
1942 *${as_nl}*)
1943 case $ac_var in #(
1944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946 esac
1947 case $ac_var in #(
1948 _ | IFS | as_nl) ;; #(
1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950 *) { eval $ac_var=; unset $ac_var;} ;;
1951 esac ;;
1952 esac
1953 done
b30fcfae 1954 (set) 2>&1 |
cd9a469c 1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956 *${as_nl}ac_space=\ *)
b30fcfae 1957 sed -n \
cd9a469c 1958 "s/'\''/'\''\\\\'\'''\''/g;
1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960 ;; #(
b30fcfae 1961 *)
cd9a469c 1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 1963 ;;
cd9a469c 1964 esac |
1965 sort
1966)
b30fcfae 1967 echo
1968
1969 cat <<\_ASBOX
1970## ----------------- ##
1971## Output variables. ##
1972## ----------------- ##
1973_ASBOX
1974 echo
1975 for ac_var in $ac_subst_vars
1976 do
cd9a469c 1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 1982 done | sort
1983 echo
1984
1985 if test -n "$ac_subst_files"; then
1986 cat <<\_ASBOX
cd9a469c 1987## ------------------- ##
1988## File substitutions. ##
1989## ------------------- ##
b30fcfae 1990_ASBOX
1991 echo
1992 for ac_var in $ac_subst_files
1993 do
cd9a469c 1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 $as_echo "$ac_var='\''$ac_val'\''"
b30fcfae 1999 done | sort
2000 echo
2001 fi
2002
2003 if test -s confdefs.h; then
2004 cat <<\_ASBOX
2005## ----------- ##
2006## confdefs.h. ##
2007## ----------- ##
2008_ASBOX
2009 echo
cd9a469c 2010 cat confdefs.h
b30fcfae 2011 echo
2012 fi
2013 test "$ac_signal" != 0 &&
cd9a469c 2014 $as_echo "$as_me: caught signal $ac_signal"
2015 $as_echo "$as_me: exit $exit_status"
b30fcfae 2016 } >&5
cd9a469c 2017 rm -f core *.core core.conftest.* &&
2018 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b30fcfae 2019 exit $exit_status
cd9a469c 2020' 0
b30fcfae 2021for ac_signal in 1 2 13 15; do
cd9a469c 2022 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b30fcfae 2023done
2024ac_signal=0
2025
2026# confdefs.h avoids OS command line length limits that DEFS can exceed.
cd9a469c 2027rm -f -r conftest* confdefs.h
2028
2029$as_echo "/* confdefs.h */" > confdefs.h
b30fcfae 2030
2031# Predefined preprocessor variables.
2032
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_NAME "$PACKAGE_NAME"
2035_ACEOF
2036
b30fcfae 2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039_ACEOF
2040
b30fcfae 2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_VERSION "$PACKAGE_VERSION"
2043_ACEOF
a83ffacf 2044
b30fcfae 2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_STRING "$PACKAGE_STRING"
2047_ACEOF
2048
b30fcfae 2049cat >>confdefs.h <<_ACEOF
2050#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051_ACEOF
2052
cd9a469c 2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_URL "$PACKAGE_URL"
2055_ACEOF
2056
b30fcfae 2057
2058# Let the site file select an alternate cache file if it wants to.
cd9a469c 2059# Prefer an explicitly selected file to automatically selected ones.
2060ac_site_file1=NONE
2061ac_site_file2=NONE
2062if test -n "$CONFIG_SITE"; then
2063 ac_site_file1=$CONFIG_SITE
2064elif test "x$prefix" != xNONE; then
2065 ac_site_file1=$prefix/share/config.site
2066 ac_site_file2=$prefix/etc/config.site
2067else
2068 ac_site_file1=$ac_default_prefix/share/config.site
2069 ac_site_file2=$ac_default_prefix/etc/config.site
71ab34df 2070fi
cd9a469c 2071for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072do
2073 test "x$ac_site_file" = xNONE && continue
71ab34df 2074 if test -r "$ac_site_file"; then
cd9a469c 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b30fcfae 2077 sed 's/^/| /' "$ac_site_file" >&5
71ab34df 2078 . "$ac_site_file"
2079 fi
2080done
2081
2082if test -r "$cache_file"; then
b30fcfae 2083 # Some versions of bash will fail to source /dev/null (special
2084 # files actually), so we avoid doing that.
2085 if test -f "$cache_file"; then
cd9a469c 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087$as_echo "$as_me: loading cache $cache_file" >&6;}
b30fcfae 2088 case $cache_file in
cd9a469c 2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
b30fcfae 2091 esac
2092 fi
71ab34df 2093else
cd9a469c 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095$as_echo "$as_me: creating cache $cache_file" >&6;}
b30fcfae 2096 >$cache_file
2097fi
2098
2099# Check that the precious variables saved in the cache have kept the same
2100# value.
2101ac_cache_corrupted=false
cd9a469c 2102for ac_var in $ac_precious_vars; do
b30fcfae 2103 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104 eval ac_new_set=\$ac_env_${ac_var}_set
cd9a469c 2105 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106 eval ac_new_val=\$ac_env_${ac_var}_value
b30fcfae 2107 case $ac_old_set,$ac_new_set in
2108 set,)
cd9a469c 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b30fcfae 2111 ac_cache_corrupted=: ;;
2112 ,set)
cd9a469c 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2114$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b30fcfae 2115 ac_cache_corrupted=: ;;
2116 ,);;
2117 *)
2118 if test "x$ac_old_val" != "x$ac_new_val"; then
cd9a469c 2119 # differences in whitespace do not lead to failure.
2120 ac_old_val_w=`echo x $ac_old_val`
2121 ac_new_val_w=`echo x $ac_new_val`
2122 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2124$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125 ac_cache_corrupted=:
2126 else
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129 eval $ac_var=\$ac_old_val
2130 fi
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2132$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2134$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b30fcfae 2135 fi;;
2136 esac
2137 # Pass precious variables to config.status.
2138 if test "$ac_new_set" = set; then
2139 case $ac_new_val in
cd9a469c 2140 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b30fcfae 2141 *) ac_arg=$ac_var=$ac_new_val ;;
2142 esac
2143 case " $ac_configure_args " in
2144 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cd9a469c 2145 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b30fcfae 2146 esac
2147 fi
2148done
2149if $ac_cache_corrupted; then
cd9a469c 2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2153$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
71ab34df 2155fi
cd9a469c 2156## -------------------- ##
2157## Main body of script. ##
2158## -------------------- ##
71ab34df 2159
5084f823 2160ac_ext=c
2161ac_cpp='$CPP $CPPFLAGS'
2162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165
b30fcfae 2166
2167
2168
b30fcfae 2169
2170
cd2f3773 2171
b30fcfae 2172
4e8a889d 2173
2174progname=$0
2175# if PWD already has a value, it is probably wrong.
2176if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2177
2178# Export original configure arguments for use by sub-configures.
2179# Quote arguments with shell meta charatcers.
2180TOPLEVEL_CONFIGURE_ARGUMENTS=
2181set -- "$progname" "$@"
2182for ac_arg
2183do
2184 case "$ac_arg" in
2185 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2186 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2187 # if the argument is of the form -foo=baz, quote the baz part only
2188 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2189 *) ;;
2190 esac
2191 # Add the quoted argument to the list.
2192 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2193done
2194if test "$silent" = yes; then
2195 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2196fi
2197# Remove the initial space we just introduced and, as these will be
2198# expanded by make, quote '$'.
2199TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2200
b30fcfae 2201
2202# Find the build, host, and target systems.
71ab34df 2203ac_aux_dir=
cd9a469c 2204for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205 for ac_t in install-sh install.sh shtool; do
2206 if test -f "$ac_dir/$ac_t"; then
2207 ac_aux_dir=$ac_dir
2208 ac_install_sh="$ac_aux_dir/$ac_t -c"
2209 break 2
2210 fi
2211 done
71ab34df 2212done
2213if test -z "$ac_aux_dir"; then
cd9a469c 2214 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
71ab34df 2215fi
cd9a469c 2216
2217# These three variables are undocumented and unsupported,
2218# and are intended to be withdrawn in a future Autoconf release.
2219# They can cause serious problems if a builder's source tree is in a directory
2220# whose full name contains unusual characters.
2221ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2222ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2223ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224
71ab34df 2225
b30fcfae 2226# Make sure we can run config.sub.
cd9a469c 2227$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2228 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2229
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2231$as_echo_n "checking build system type... " >&6; }
2232if test "${ac_cv_build+set}" = set; then :
2233 $as_echo_n "(cached) " >&6
2234else
2235 ac_build_alias=$build_alias
2236test "x$ac_build_alias" = x &&
2237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2238test "x$ac_build_alias" = x &&
2239 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2240ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2241 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2242
2243fi
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2245$as_echo "$ac_cv_build" >&6; }
2246case $ac_cv_build in
2247*-*-*) ;;
2248*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2249esac
b30fcfae 2250build=$ac_cv_build
cd9a469c 2251ac_save_IFS=$IFS; IFS='-'
2252set x $ac_cv_build
2253shift
2254build_cpu=$1
2255build_vendor=$2
2256shift; shift
2257# Remember, the first character of IFS is used to create $*,
2258# except with old shells:
2259build_os=$*
2260IFS=$ac_save_IFS
2261case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
71ab34df 2262
71ab34df 2263
b30fcfae 2264 case ${build_alias} in
2265 "") build_noncanonical=${build} ;;
2266 *) build_noncanonical=${build_alias} ;;
ae48753c 2267esac
2268
2269
ae48753c 2270
b30fcfae 2271 case ${host_alias} in
2272 "") host_noncanonical=${build_noncanonical} ;;
2273 *) host_noncanonical=${host_alias} ;;
ae48753c 2274esac
2275
ae48753c 2276
b30fcfae 2277
2278 case ${target_alias} in
2279 "") target_noncanonical=${host_noncanonical} ;;
2280 *) target_noncanonical=${target_alias} ;;
ae48753c 2281esac
2282
ae48753c 2283
b30fcfae 2284
2285
2286test "$host_noncanonical" = "$target_noncanonical" &&
71ab34df 2287 test "$program_prefix$program_suffix$program_transform_name" = \
2288 NONENONEs,x,x, &&
b30fcfae 2289 program_transform_name=s,y,y,
ae48753c 2290
cd9a469c 2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292$as_echo_n "checking host system type... " >&6; }
2293if test "${ac_cv_host+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
ae48753c 2295else
cd9a469c 2296 if test "x$host_alias" = x; then
2297 ac_cv_host=$ac_cv_build
2298else
2299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2301fi
b30fcfae 2302
ae48753c 2303fi
cd9a469c 2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305$as_echo "$ac_cv_host" >&6; }
2306case $ac_cv_host in
2307*-*-*) ;;
2308*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309esac
b30fcfae 2310host=$ac_cv_host
cd9a469c 2311ac_save_IFS=$IFS; IFS='-'
2312set x $ac_cv_host
2313shift
2314host_cpu=$1
2315host_vendor=$2
2316shift; shift
2317# Remember, the first character of IFS is used to create $*,
2318# except with old shells:
2319host_os=$*
2320IFS=$ac_save_IFS
2321case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5084f823 2322
2323
cd9a469c 2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2325$as_echo_n "checking target system type... " >&6; }
2326if test "${ac_cv_target+set}" = set; then :
2327 $as_echo_n "(cached) " >&6
b30fcfae 2328else
cd9a469c 2329 if test "x$target_alias" = x; then
2330 ac_cv_target=$ac_cv_host
2331else
2332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2334fi
b30fcfae 2335
2336fi
cd9a469c 2337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2338$as_echo "$ac_cv_target" >&6; }
2339case $ac_cv_target in
2340*-*-*) ;;
2341*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2342esac
b30fcfae 2343target=$ac_cv_target
cd9a469c 2344ac_save_IFS=$IFS; IFS='-'
2345set x $ac_cv_target
2346shift
2347target_cpu=$1
2348target_vendor=$2
2349shift; shift
2350# Remember, the first character of IFS is used to create $*,
2351# except with old shells:
2352target_os=$*
2353IFS=$ac_save_IFS
2354case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
b30fcfae 2355
2356
2357# The aliases save the names the user supplied, while $host etc.
2358# will get canonicalized.
2359test -n "$target_alias" &&
2360 test "$program_prefix$program_suffix$program_transform_name" = \
2361 NONENONEs,x,x, &&
2362 program_prefix=${target_alias}-
cd9a469c 2363
71ab34df 2364test "$program_prefix" != NONE &&
cd9a469c 2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
71ab34df 2366# Use a double $ so make ignores it.
2367test "$program_suffix" != NONE &&
cd9a469c 2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369# Double any \ or $.
b30fcfae 2370# By default was `s,x,x', remove it if useless.
cd9a469c 2371ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
ae48753c 2373
71ab34df 2374
2375
450e6c84 2376# Get 'install' or 'install-sh' and its variants.
2377# Find a good install program. We prefer a C program (faster),
2378# so one script is as good as another. But avoid the broken or
2379# incompatible versions:
2380# SysV /etc/install, /usr/sbin/install
2381# SunOS /usr/etc/install
2382# IRIX /sbin/install
2383# AIX /bin/install
b30fcfae 2384# AmigaOS /C/install, which installs bootblocks on floppy discs
450e6c84 2385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
b30fcfae 2388# OS/2's system install, which has a completely different semantic
450e6c84 2389# ./install, which can be erroneously created by make from ./install.sh.
82eaf560 2390# Reject install programs that cannot install multiple files.
cd9a469c 2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392$as_echo_n "checking for a BSD-compatible install... " >&6; }
450e6c84 2393if test -z "$INSTALL"; then
cd9a469c 2394if test "${ac_cv_path_install+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
b30fcfae 2396else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
cd9a469c 2402 # Account for people who put trailing slashes in PATH elements.
2403case $as_dir/ in #((
2404 ./ | .// | /[cC]/* | \
b30fcfae 2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
cd9a469c 2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
b30fcfae 2407 /usr/ucb/* ) ;;
2408 *)
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
cd9a469c 2414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
450e6c84 2415 if test $ac_prog = install &&
b30fcfae 2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
450e6c84 2417 # AIX install. It has an incompatible calling convention.
2418 :
b30fcfae 2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2422 :
450e6c84 2423 else
82eaf560 2424 rm -rf conftest.one conftest.two conftest.dir
2425 echo one > conftest.one
2426 echo two > conftest.two
2427 mkdir conftest.dir
2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429 test -s conftest.one && test -s conftest.two &&
2430 test -s conftest.dir/conftest.one &&
2431 test -s conftest.dir/conftest.two
2432 then
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434 break 3
2435 fi
450e6c84 2436 fi
2437 fi
2438 done
b30fcfae 2439 done
2440 ;;
2441esac
cd9a469c 2442
2443 done
2444IFS=$as_save_IFS
b30fcfae 2445
82eaf560 2446rm -rf conftest.one conftest.two conftest.dir
450e6c84 2447
2448fi
2449 if test "${ac_cv_path_install+set}" = set; then
b30fcfae 2450 INSTALL=$ac_cv_path_install
450e6c84 2451 else
82eaf560 2452 # As a last resort, use the slow shell script. Don't cache a
2453 # value for INSTALL within a source directory, because that will
450e6c84 2454 # break other packages using the cache if that directory is
82eaf560 2455 # removed, or if the value is a relative name.
b30fcfae 2456 INSTALL=$ac_install_sh
450e6c84 2457 fi
2458fi
cd9a469c 2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460$as_echo "$INSTALL" >&6; }
450e6c84 2461
2462# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463# It thinks the first close brace ends the variable substitution.
2464test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
b30fcfae 2466test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
450e6c84 2467
2468test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
cd9a469c 2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2471$as_echo_n "checking whether ln works... " >&6; }
2472if test "${acx_cv_prog_LN+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
599a3eac 2474else
2475 rm -f conftestdata_t
2476echo >conftestdata_f
2477if ln conftestdata_f conftestdata_t 2>/dev/null
2478then
2479 acx_cv_prog_LN=ln
2480else
2481 acx_cv_prog_LN=no
2482fi
2483rm -f conftestdata_f conftestdata_t
2484
2485fi
2486if test $acx_cv_prog_LN = no; then
2487 LN="cp"
cd9a469c 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2489$as_echo "no, using $LN" >&6; }
599a3eac 2490else
2491 LN="$acx_cv_prog_LN"
cd9a469c 2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
599a3eac 2494fi
2495
cd9a469c 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2497$as_echo_n "checking whether ln -s works... " >&6; }
b30fcfae 2498LN_S=$as_ln_s
2499if test "$LN_S" = "ln -s"; then
cd9a469c 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2501$as_echo "yes" >&6; }
a4af6a58 2502else
cd9a469c 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2504$as_echo "no, using $LN_S" >&6; }
5965d276 2505fi
2506
b181f265 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2508$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2509if test "${ac_cv_path_SED+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511else
2512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2513 for ac_i in 1 2 3 4 5 6 7; do
2514 ac_script="$ac_script$as_nl$ac_script"
2515 done
2516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2517 { ac_script=; unset ac_script;}
2518 if test -z "$SED"; then
2519 ac_path_SED_found=false
2520 # Loop through the user's path and test for each of PROGNAME-LIST
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_prog in sed gsed; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2530# Check for GNU ac_path_SED and select it if it is found.
2531 # Check for GNU $ac_path_SED
2532case `"$ac_path_SED" --version 2>&1` in
2533*GNU*)
2534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2535*)
2536 ac_count=0
2537 $as_echo_n 0123456789 >"conftest.in"
2538 while :
2539 do
2540 cat "conftest.in" "conftest.in" >"conftest.tmp"
2541 mv "conftest.tmp" "conftest.in"
2542 cp "conftest.in" "conftest.nl"
2543 $as_echo '' >> "conftest.nl"
2544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2546 as_fn_arith $ac_count + 1 && ac_count=$as_val
2547 if test $ac_count -gt ${ac_path_SED_max-0}; then
2548 # Best one so far, save it but keep looking for a better one
2549 ac_cv_path_SED="$ac_path_SED"
2550 ac_path_SED_max=$ac_count
2551 fi
2552 # 10*(2^10) chars as input seems more than enough
2553 test $ac_count -gt 10 && break
2554 done
2555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2556esac
2557
2558 $ac_path_SED_found && break 3
2559 done
2560 done
2561 done
2562IFS=$as_save_IFS
2563 if test -z "$ac_cv_path_SED"; then
2564 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2565 fi
2566else
2567 ac_cv_path_SED=$SED
2568fi
2569
2570fi
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2572$as_echo "$ac_cv_path_SED" >&6; }
2573 SED="$ac_cv_path_SED"
2574 rm -f conftest.sed
2575
2576for ac_prog in gawk mawk nawk awk
2577do
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579set dummy $ac_prog; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if test "${ac_cv_prog_AWK+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584else
2585 if test -n "$AWK"; then
2586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_AWK="$ac_prog"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600 done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605AWK=$ac_cv_prog_AWK
2606if test -n "$AWK"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608$as_echo "$AWK" >&6; }
2609else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615 test -n "$AWK" && break
2616done
2617
450e6c84 2618
e8eddfdd 2619srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2620
2621# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2622# a relative path.
2623if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2624 INSTALL="${srcpwd}/install-sh -c"
2625fi
2626
71ab34df 2627# Set srcdir to "." if that's what it is.
2628# This is important for multilib support.
2629pwd=`${PWDCMD-pwd}`
71ab34df 2630if test "${pwd}" = "${srcpwd}" ; then
2631 srcdir=.
a8298541 2632fi
2633
71ab34df 2634topsrcdir=$srcpwd
ed37269d 2635
71ab34df 2636extra_host_args=
14ac9144 2637
71ab34df 2638### To add a new directory to the tree, first choose whether it is a target
2639### or a host dependent tool. Then put it into the appropriate list
2640### (library or tools, host or target), doing a dependency sort.
a8298541 2641
b30fcfae 2642# Subdirs will be configured in the order listed in build_configdirs,
71ab34df 2643# configdirs, or target_configdirs; see the serialization section below.
a8298541 2644
b30fcfae 2645# Dependency sorting is only needed when *configuration* must be done in
2646# a particular order. In all cases a dependency should be specified in
71ab34df 2647# the Makefile, whether or not it's implicitly specified here.
a8298541 2648
71ab34df 2649# Double entries in build_configdirs, configdirs, or target_configdirs may
2650# cause circular dependencies and break everything horribly.
a8298541 2651
2f8725b0 2652# these library is used by various programs built for the build
2653# environment
2654#
2655build_libs="build-libiberty"
2656
2657# these tools are built for the build environment
4fc99708 2658build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2f8725b0 2659
71ab34df 2660# these libraries are used by various programs built for the host environment
2661#
4fc99708 2662host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
71ab34df 2663
71ab34df 2664# these tools are built for the host environment
2665# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2666# know that we are building the simulator.
2667# binutils, gas and ld appear in that order because it makes sense to run
2668# "make check" in that particular order.
af7c5662 2669# If --enable-gold is used, "gold" may replace "ld".
4fc99708 2670host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
71ab34df 2671
2672# libgcj represents the runtime libraries only used by gcj.
2673libgcj="target-libffi \
71ab34df 2674 target-zlib \
71ab34df 2675 target-libjava"
2676
2677# these libraries are built for the target environment, and are built after
2678# the host libraries and the host tools (which may be a cross compiler)
5ab7e123 2679# Note that libiberty is not a target library.
27bfe7b7 2680target_libraries="target-libgcc \
71ab34df 2681 target-libgloss \
2682 target-newlib \
a0191bfe 2683 target-libgomp \
4c0315d0 2684 target-libitm \
54d7d5f2 2685 target-libstdc++-v3 \
4ee9c684 2686 target-libmudflap \
0d55f4d0 2687 target-libssp \
87969c8c 2688 target-libquadmath \
4ee9c684 2689 target-libgfortran \
dd6d3a67 2690 target-boehm-gc \
cdfc500e 2691 ${libgcj} \
93341878 2692 target-libobjc \
5ff5b630 2693 target-libada \
2694 target-libgo"
71ab34df 2695
328637e8 2696# these tools are built using the target libraries, and are intended to
2697# run only in the target environment
71ab34df 2698#
328637e8 2699# note: any program that *uses* libraries that are in the "target_libraries"
6c9785b4 2700# list belongs in this list.
71ab34df 2701#
4fc99708 2702target_tools="target-rda"
a8298541 2703
71ab34df 2704################################################################################
a8298541 2705
71ab34df 2706## All tools belong in one of the four categories, and are assigned above
2707## We assign ${configdirs} this way to remove all embedded newlines. This
2708## is important because configure will choke if they ever get through.
2709## ${configdirs} is directories we build using the host tools.
2710## ${target_configdirs} is directories we build using the target tools.
71ab34df 2711configdirs=`echo ${host_libs} ${host_tools}`
328637e8 2712target_configdirs=`echo ${target_libraries} ${target_tools}`
2b59cb05 2713build_configdirs=`echo ${build_libs} ${build_tools}`
6f4f34a7 2714
d2d2630b 2715
2716
71ab34df 2717################################################################################
a8298541 2718
71ab34df 2719srcname="gnu development package"
a8298541 2720
71ab34df 2721# This gets set non-empty for some net releases of packages.
2722appdirs=""
a8298541 2723
71ab34df 2724# Define is_cross_compiler to save on calls to 'test'.
2725is_cross_compiler=
2726if test x"${host}" = x"${target}" ; then
2727 is_cross_compiler=no
a8298541 2728else
71ab34df 2729 is_cross_compiler=yes
b30fcfae 2730fi
a8298541 2731
2f61b8ca 2732# Find the build and target subdir names.
6f4f34a7 2733
d3e7b04c 2734# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2735# have matching libraries, they should use host libraries: Makefile.tpl
2736# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2737# However, they still use the build modules, because the corresponding
2738# host modules (e.g. bison) are only built for the host when bootstrap
2739# finishes. So:
2740# - build_subdir is where we find build modules, and never changes.
2741# - build_libsubdir is where we find build libraries, and can be overridden.
2742
2743# Prefix 'build-' so this never conflicts with target_subdir.
6f4f34a7 2744build_subdir="build-${build_noncanonical}"
b30fcfae 2745
cd9a469c 2746# Check whether --with-build-libsubdir was given.
2747if test "${with_build_libsubdir+set}" = set; then :
2748 withval=$with_build_libsubdir; build_libsubdir="$withval"
d3e7b04c 2749else
2750 build_libsubdir="$build_subdir"
cd9a469c 2751fi
2752
c1eb9e31 2753# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2754if ( test $srcdir = . && test -d gcc ) \
2755 || test -d $srcdir/../host-${host_noncanonical}; then
2756 host_subdir="host-${host_noncanonical}"
2757else
2758 host_subdir=.
2759fi
6f4f34a7 2760# No prefix.
2761target_subdir=${target_noncanonical}
b30fcfae 2762
04a2e841 2763# Be sure to cover against remnants of an in-tree build.
2764if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2765 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2766Use a pristine source tree when building in a separate tree" "$LINENO" 5
2767fi
a8298541 2768
71ab34df 2769# Skipdirs are removed silently.
2770skipdirs=
2771# Noconfigdirs are removed loudly.
2772noconfigdirs=""
a8298541 2773
71ab34df 2774use_gnu_ld=
2775# Make sure we don't let GNU ld be added if we didn't want it.
2776if test x$with_gnu_ld = xno ; then
2777 use_gnu_ld=no
3d47fcf5 2778 noconfigdirs="$noconfigdirs ld gold"
a8298541 2779fi
2780
71ab34df 2781use_gnu_as=
2782# Make sure we don't let GNU as be added if we didn't want it.
2783if test x$with_gnu_as = xno ; then
2784 use_gnu_as=no
2785 noconfigdirs="$noconfigdirs gas"
a8298541 2786fi
2787
7bfefa9d 2788use_included_zlib=
2789# Make sure we don't let ZLIB be added if we didn't want it.
2790if test x$with_system_zlib = xyes ; then
2791 use_included_zlib=no
2792 noconfigdirs="$noconfigdirs zlib"
2793fi
2794
b30fcfae 2795# some tools are so dependent upon X11 that if we're not building with X,
71ab34df 2796# it's not even worth trying to configure, much less build, that tool.
a8298541 2797
71ab34df 2798case ${with_x} in
2799 yes | "") ;; # the default value for this tree is that X11 is available
2800 no)
f843f075 2801 skipdirs="${skipdirs} tk itcl libgui"
71ab34df 2802 # We won't be able to build gdbtk without X.
b30fcfae 2803 enable_gdbtk=no
71ab34df 2804 ;;
2805 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2806esac
a8298541 2807
6c9785b4 2808# Some are only suitable for cross toolchains.
71ab34df 2809# Remove these if host=target.
2810cross_only="target-libgloss target-newlib target-opcodes"
2811
2812case $is_cross_compiler in
2813 no) skipdirs="${skipdirs} ${cross_only}" ;;
71ab34df 2814esac
a8298541 2815
71ab34df 2816# If both --with-headers and --with-libs are specified, default to
2817# --without-newlib.
e8eddfdd 2818if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2819 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
71ab34df 2820 if test x"${with_newlib}" = x ; then
2821 with_newlib=no
2822 fi
a8298541 2823fi
2824
71ab34df 2825# Recognize --with-newlib/--without-newlib.
2826case ${with_newlib} in
2827 no) skipdirs="${skipdirs} target-newlib" ;;
2828 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2829esac
a8298541 2830
1e369e5f 2831# Handle --enable-gold, --enable-ld.
2832# --disable-gold [--enable-ld]
2833# Build only ld. Default option.
85516948 2834# --enable-gold [--enable-ld]
2835# Build both gold and ld. Install gold as "ld.gold", install ld
2836# as "ld.bfd" and "ld".
2837# --enable-gold=default [--enable-ld]
1e369e5f 2838# Build both gold and ld. Install gold as "ld.gold" and "ld",
2839# install ld as "ld.bfd".
2840# --enable-gold[=default] --disable-ld
2841# Build only gold, which is then installed as both "ld.gold" and "ld".
2842# --enable-gold --enable-ld=default
85516948 2843# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2844# and ld.bfd).
1e369e5f 2845# In other words, ld is default
2846# --enable-gold=default --enable-ld=default
2847# Error.
2848
2849default_ld=
cd9a469c 2850# Check whether --enable-gold was given.
2851if test "${enable_gold+set}" = set; then :
2852 enableval=$enable_gold; ENABLE_GOLD=$enableval
3d47fcf5 2853else
2854 ENABLE_GOLD=no
cd9a469c 2855fi
2856
1e369e5f 2857case "${ENABLE_GOLD}" in
2858 yes|default)
af7c5662 2859 # Check for ELF target.
2860 is_elf=no
2861 case "${target}" in
2862 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2863 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
e3a1fe08 2864 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2865 | *-*-solaris2* | *-*-nto*)
af7c5662 2866 case "${target}" in
2867 *-*-linux*aout* | *-*-linux*oldld*)
2868 ;;
2869 *)
2870 is_elf=yes
2871 ;;
2872 esac
2873 esac
2874
2875 if test "$is_elf" = "yes"; then
2876 # Check for target supported by gold.
3d47fcf5 2877 case "${target}" in
af7c5662 2878 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
1e369e5f 2879 configdirs="$configdirs gold"
2880 if test x${ENABLE_GOLD} = xdefault; then
2881 default_ld=gold
2882 fi
af7c5662 2883 ENABLE_GOLD=yes
3d47fcf5 2884 ;;
2885 esac
af7c5662 2886 fi
2887 ;;
2888 no)
2889 ;;
2890 *)
2891 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2892 ;;
1e369e5f 2893esac
2894
2895# Check whether --enable-ld was given.
2896if test "${enable_ld+set}" = set; then :
2897 enableval=$enable_ld; ENABLE_LD=$enableval
2898else
2899 ENABLE_LD=yes
2900fi
2901
2902
2903case "${ENABLE_LD}" in
2904 default)
85516948 2905 if test x${default_ld} != x; then
1e369e5f 2906 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2907 fi
2908 ;;
2909 yes)
2910 ;;
2911 no)
2912 if test x${ENABLE_GOLD} != xyes; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2914$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2915 fi
2916 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2917 ;;
2918 *)
2919 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2920 ;;
2921esac
3d47fcf5 2922
71ab34df 2923# Configure extra directories which are host specific
a8298541 2924
71ab34df 2925case "${host}" in
2926 *-cygwin*)
2927 configdirs="$configdirs libtermcap" ;;
2928esac
a8298541 2929
ff7dcf6a 2930# A target can indicate whether a language isn't supported for some reason.
2931# Only spaces may be used in this macro; not newlines or tabs.
2932unsupported_languages=
2933
b30fcfae 2934# Remove more programs from consideration, based on the host or
71ab34df 2935# target this usually means that a port of the program doesn't
2936# exist yet.
c7879c37 2937
71ab34df 2938case "${host}" in
b2240ff6 2939 i[3456789]86-*-msdosdjgpp*)
e3a5e6ff 2940 noconfigdirs="$noconfigdirs tcl tk itcl"
71ab34df 2941 ;;
71ab34df 2942esac
c7879c37 2943
4ee9c684 2944
d9d975ae 2945# Check whether --enable-libquadmath was given.
2946if test "${enable_libquadmath+set}" = set; then :
2947 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2948else
2949 ENABLE_LIBQUADMATH=yes
2950fi
2951
2952if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2953 noconfigdirs="$noconfigdirs target-libquadmath"
2954fi
2955
2956
2957# Check whether --enable-libquadmath-support was given.
2958if test "${enable_libquadmath_support+set}" = set; then :
2959 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2960else
2961 ENABLE_LIBQUADMATH_SUPPORT=yes
2962fi
2963
2964enable_libquadmath_support=
2965if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2966 enable_libquadmath_support=no
2967fi
2968
2969
cd9a469c 2970# Check whether --enable-libada was given.
2971if test "${enable_libada+set}" = set; then :
2972 enableval=$enable_libada; ENABLE_LIBADA=$enableval
93341878 2973else
2974 ENABLE_LIBADA=yes
cd9a469c 2975fi
2976
93341878 2977if test "${ENABLE_LIBADA}" != "yes" ; then
a136b23d 2978 noconfigdirs="$noconfigdirs gnattools"
93341878 2979fi
2980
cd9a469c 2981# Check whether --enable-libssp was given.
2982if test "${enable_libssp+set}" = set; then :
2983 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
07da5214 2984else
2985 ENABLE_LIBSSP=yes
cd9a469c 2986fi
2987
07da5214 2988
71ab34df 2989# Save it here so that, even in case of --enable-libgcj, if the Java
2990# front-end isn't enabled, we still get libgcj disabled.
2991libgcj_saved=$libgcj
2992case $enable_libgcj in
2993yes)
2994 # If we reset it here, it won't get added to noconfigdirs in the
2995 # target-specific build rules, so it will be forcibly enabled
2996 # (unless the Java language itself isn't enabled).
2997 libgcj=
2998 ;;
2999no)
3000 # Make sure we get it printed in the list of not supported target libs.
604a285a 3001 # Don't disable libffi, though, other languages use it.
3002 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
8593ce89 3003 # Clear libgcj_saved so that even if java is enabled libffi won't be
3004 # built.
3005 libgcj_saved=
71ab34df 3006 ;;
3007esac
c7879c37 3008
d7e52ac9 3009# Check whether --enable-static-libjava was given.
3010if test "${enable_static_libjava+set}" = set; then :
3011 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3012else
3013 ENABLE_STATIC_LIBJAVA=no
3014fi
3015
3016enable_static_libjava=
3017if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3018 enable_static_libjava=yes
3019fi
3020
3021if test x$enable_static_libjava != xyes ; then
3022 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3023fi
3024
4ee9c684 3025
50996fe5 3026# Disable libmudflap on some systems.
3027if test x$enable_libmudflap = x ; then
344b2784 3028 case "${target}" in
3bef4012 3029 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
cb8a7007 3030 # Enable libmudflap by default in GNU and friends.
344b2784 3031 ;;
122ae8c7 3032 *-*-freebsd*)
3033 # Enable libmudflap by default in FreeBSD.
3034 ;;
344b2784 3035 *)
3036 # Disable it by default everywhere else.
3037 noconfigdirs="$noconfigdirs target-libmudflap"
3038 ;;
3039 esac
50996fe5 3040fi
4ee9c684 3041
50996fe5 3042# Disable libgomp on non POSIX hosted systems.
3043if test x$enable_libgomp = x ; then
1e8e9920 3044 # Enable libgomp by default on hosted POSIX systems.
3045 case "${target}" in
3bef4012 3046 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
1e8e9920 3047 ;;
e3a1fe08 3048 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
1e8e9920 3049 ;;
93faf308 3050 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
1e8e9920 3051 ;;
634efbee 3052 *-*-darwin* | *-*-aix*)
1e8e9920 3053 ;;
3054 *)
3055 noconfigdirs="$noconfigdirs target-libgomp"
3056 ;;
3057 esac
50996fe5 3058fi
1e8e9920 3059
42b15c81 3060# Disable libitm on unsupported systems.
3061if test -d ${srcdir}/libitm; then
3062 if test x$enable_libitm = x; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
298c66d9 3064$as_echo_n "checking for libitm support... " >&6; }
42b15c81 3065 if (srcdir=${srcdir}/libitm; \
3066 . ${srcdir}/configure.tgt; \
3067 test -n "$UNSUPPORTED")
3068 then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
298c66d9 3070$as_echo "no" >&6; }
42b15c81 3071 noconfigdirs="$noconfigdirs target-libitm"
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
298c66d9 3074$as_echo "yes" >&6; }
42b15c81 3075 fi
3076 fi
4c0315d0 3077fi
3078
d5831552 3079# Disable libssp for some systems.
3080case "${target}" in
3081 avr-*-*)
76c19016 3082 # No hosted I/O support.
d5831552 3083 noconfigdirs="$noconfigdirs target-libssp"
3084 ;;
3085 powerpc-*-aix* | rs6000-*-aix*)
3086 noconfigdirs="$noconfigdirs target-libssp"
3087 ;;
d5831552 3088esac
3089
d5831552 3090# Disable libstdc++-v3 for some systems.
3091case "${target}" in
3092 *-*-vxworks*)
3093 # VxWorks uses the Dinkumware C++ library.
3094 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3095 ;;
3096 arm*-wince-pe*)
3097 # the C++ libraries don't build on top of CE's C libraries
3098 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3099 ;;
3100 avr-*-*)
3101 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3102 ;;
3103esac
3104
3105# Disable Fortran for some systems.
3106case "${target}" in
3107 mmix-*-*)
3108 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3109 unsupported_languages="$unsupported_languages fortran"
3110 ;;
3111esac
3112
91b5b6ec 3113# Disable Java if libffi is not supported.
f24be480 3114case "${target}" in
91b5b6ec 3115 alpha*-*-*)
3116 ;;
3117 arm*-*-*)
3118 ;;
3119 cris-*-*)
3120 ;;
3121 frv-*-*)
3122 ;;
3123 hppa*-*-linux*)
3124 ;;
3125 hppa*-*-hpux*)
3126 ;;
3127 i?86-*-*)
3128 ;;
3129 ia64*-*-*)
3130 ;;
3131 m32r*-*-*)
3132 ;;
3133 m68k-*-*)
3134 ;;
3135 mips-sgi-irix6.* | mips*-*-rtems*)
3136 ;;
3137 mips*-*-linux*)
3138 ;;
3139 powerpc*-*-linux*)
3140 ;;
3141 powerpc-*-darwin*)
3142 ;;
3143 powerpc-*-aix* | rs6000-*-aix*)
3144 ;;
3145 powerpc-*-freebsd*)
3146 ;;
3147 powerpc64-*-freebsd*)
3148 ;;
3149 powerpc*-*-rtems*)
f24be480 3150 ;;
91b5b6ec 3151 s390-*-* | s390x-*-*)
3152 ;;
3153 sh-*-* | sh[34]*-*-*)
3154 ;;
3155 sh64-*-* | sh5*-*-*)
3156 ;;
3157 sparc*-*-*)
3158 ;;
3159 x86_64-*-*)
3160 ;;
3161 *-*-*)
3162 unsupported_languages="$unsupported_languages java"
3163 ;;
3164esac
3165
3166# Disable Java, libgcj or related libraries for some systems.
3167case "${target}" in
f24be480 3168 powerpc-*-darwin*)
3169 ;;
3170 i[3456789]86-*-darwin*)
3171 ;;
3172 x86_64-*-darwin[912]*)
3173 ;;
3174 *-*-darwin*)
3175 noconfigdirs="$noconfigdirs ${libgcj}"
3176 ;;
f24be480 3177 *-*-netware*)
3178 noconfigdirs="$noconfigdirs ${libgcj}"
3179 ;;
3180 *-*-rtems*)
3181 noconfigdirs="$noconfigdirs ${libgcj}"
3182 ;;
3183 *-*-tpf*)
3184 noconfigdirs="$noconfigdirs ${libgcj}"
3185 ;;
3186 *-*-uclinux*)
3187 noconfigdirs="$noconfigdirs ${libgcj}"
3188 ;;
3189 *-*-vxworks*)
3190 noconfigdirs="$noconfigdirs ${libgcj}"
3191 ;;
f24be480 3192 alpha*-*-*vms*)
3193 noconfigdirs="$noconfigdirs ${libgcj}"
3194 ;;
91b5b6ec 3195 arm-wince-pe)
f24be480 3196 noconfigdirs="$noconfigdirs ${libgcj}"
3197 ;;
f24be480 3198 arm*-*-symbianelf*)
3199 noconfigdirs="$noconfigdirs ${libgcj}"
3200 ;;
f24be480 3201 bfin-*-*)
f24be480 3202 noconfigdirs="$noconfigdirs target-boehm-gc"
3203 ;;
f24be480 3204 cris-*-* | crisv32-*-*)
3205 unsupported_languages="$unsupported_languages java"
3206 case "${target}" in
3207 *-*-linux*)
3208 ;;
3209 *) # See PR46792 regarding target-libffi.
3210 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3211 esac
3212 ;;
f24be480 3213 hppa*64*-*-linux*)
3214 # In this case, it's because the hppa64-linux target is for
3215 # the kernel only at this point and has no libc, and thus no
3216 # headers, crt*.o, etc., all of which are needed by these.
a7e330e9 3217 unsupported_languages="$unsupported_languages java"
f24be480 3218 ;;
a7e330e9 3219 hppa*64*-*-hpux*)
f24be480 3220 noconfigdirs="$noconfigdirs ${libgcj}"
3221 ;;
3222 hppa*-hp-hpux11*)
3223 ;;
a7e330e9 3224 hppa*-*-hpux*)
f24be480 3225 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3226 # build on HP-UX 10.20.
3227 noconfigdirs="$noconfigdirs ${libgcj}"
3228 ;;
f24be480 3229 ia64*-*-*vms*)
3230 noconfigdirs="$noconfigdirs ${libgcj}"
3231 ;;
f24be480 3232 i[3456789]86-w64-mingw*)
3233 noconfigdirs="$noconfigdirs ${libgcj}"
3234 ;;
3235 i[3456789]86-*-mingw*)
3236 noconfigdirs="$noconfigdirs ${libgcj}"
3237 ;;
3238 x86_64-*-mingw*)
3239 noconfigdirs="$noconfigdirs ${libgcj}"
3240 ;;
f24be480 3241 mmix-*-*)
3242 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
f24be480 3243 ;;
3244 powerpc-*-aix*)
3245 # copied from rs6000-*-* entry
3246 noconfigdirs="$noconfigdirs ${libgcj}"
3247 ;;
f24be480 3248 rs6000-*-aix*)
3249 noconfigdirs="$noconfigdirs ${libgcj}"
3250 ;;
f24be480 3251 mips*-*-irix6*)
3252 # Linking libjava exceeds command-line length limits on at least
3253 # IRIX 6.2, but not on IRIX 6.5.
3254 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3255 # <oldham@codesourcery.com>
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3257 ;;
f24be480 3258 *-*-lynxos*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3260 ;;
f24be480 3261esac
3262
1c5767f1 3263# Default libgloss CPU subdirectory.
3264libgloss_dir="$target_cpu"
4ee9c684 3265
e0942c78 3266case "${target}" in
3267 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3268 libgloss_dir=wince
3269 ;;
3270 arm*-*-*)
3271 libgloss_dir=arm
3272 ;;
3273 cris-*-* | crisv32-*-*)
3274 libgloss_dir=cris
3275 ;;
3276 hppa*-*-*)
3277 libgloss_dir=pa
3278 ;;
3279 i[3456789]86-*-*)
3280 libgloss_dir=i386
3281 ;;
3282 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3283 libgloss_dir=m68hc11
3284 ;;
3285 m68*-*-* | fido-*-*)
3286 libgloss_dir=m68k
3287 ;;
3288 mips*-*-*)
3289 libgloss_dir=mips
3290 ;;
3291 powerpc*-*-*)
3292 libgloss_dir=rs6000
3293 ;;
3294 sparc*-*-*)
3295 libgloss_dir=sparc
3296 ;;
3297esac
3298
d556f192 3299# Disable newlib and libgloss for various target OSes.
71ab34df 3300case "${target}" in
d556f192 3301 alpha*-dec-osf*)
3302 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3303 ;;
3304 i[3456789]86-*-linux*)
3305 # This section makes it possible to build newlib natively on linux.
3306 # If we are using a cross compiler then don't configure newlib.
3307 if test x${is_cross_compiler} != xno ; then
3308 noconfigdirs="$noconfigdirs target-newlib"
3309 fi
3310 noconfigdirs="$noconfigdirs target-libgloss"
3311 # If we are not using a cross compiler, do configure newlib.
3312 # Note however, that newlib will only be configured in this situation
3313 # if the --with-newlib option has been given, because otherwise
3314 # 'target-newlib' will appear in skipdirs.
3315 ;;
3316 i[3456789]86-*-rdos*)
3317 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3318 ;;
3319 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3320 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3321 ;;
3322 sparc-*-sunos4*)
3323 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3324 ;;
3325 *-*-aix*)
3326 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3327 ;;
3328 *-*-beos*)
3329 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3330 ;;
71ab34df 3331 *-*-chorusos)
71559dce 3332 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3333 ;;
d556f192 3334 *-*-dragonfly*)
3335 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3336 ;;
3337 *-*-freebsd*)
3338 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3339 ;;
3340 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3341 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3342 ;;
3343 *-*-lynxos*)
3344 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3345 ;;
3346 *-*-mingw*)
3347 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3348 ;;
3349 *-*-netbsd*)
3350 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3351 ;;
3352 *-*-netware*)
3353 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354 ;;
3355 *-*-tpf*)
3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3357 ;;
3358 *-*-uclinux*)
3359 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3360 ;;
3361 *-*-vxworks*)
3362 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3363 ;;
3364esac
3365
3366case "${target}" in
3367 *-*-chorusos)
3368 ;;
40c500e1 3369 powerpc-*-darwin*)
dba2c8ea 3370 noconfigdirs="$noconfigdirs ld gas gdb gprof"
d28caca4 3371 noconfigdirs="$noconfigdirs sim target-rda"
0894307c 3372 ;;
ea864ded 3373 i[3456789]86-*-darwin*)
3374 noconfigdirs="$noconfigdirs ld gprof"
3375 noconfigdirs="$noconfigdirs sim target-rda"
3376 ;;
3377 x86_64-*-darwin[912]*)
d9f9f3af 3378 noconfigdirs="$noconfigdirs ld gas gprof"
3379 noconfigdirs="$noconfigdirs sim target-rda"
3380 ;;
fce068fd 3381 *-*-darwin*)
3382 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3383 noconfigdirs="$noconfigdirs sim target-rda"
fce068fd 3384 ;;
e3a1fe08 3385 *-*-dragonfly*)
e3a1fe08 3386 ;;
c01dd063 3387 *-*-freebsd*)
4ee9c684 3388 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3389 && test -f /usr/local/include/gmp.h; then
3390 with_gmp=/usr/local
3391 fi
4ee9c684 3392 ;;
336577be 3393 *-*-kaos*)
3394 # Remove unsupported stuff on all kaOS configurations.
336577be 3395 noconfigdirs="$noconfigdirs target-libgloss"
3396 ;;
71ab34df 3397 *-*-netbsd*)
71ab34df 3398 ;;
634f7a13 3399 *-*-netware*)
71ab34df 3400 ;;
3401 *-*-rtems*)
f24be480 3402 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3403 ;;
9f88bc9d 3404 # The tpf target doesn't support gdb yet.
3405 *-*-tpf*)
d556f192 3406 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
9f88bc9d 3407 ;;
688429c4 3408 *-*-uclinux*)
d556f192 3409 noconfigdirs="$noconfigdirs target-rda"
688429c4 3410 ;;
71ab34df 3411 *-*-vxworks*)
71ab34df 3412 ;;
3413 alpha*-dec-osf*)
3414 # ld works, but does not support shared libraries.
71ab34df 3415 # gas doesn't generate exception information.
d556f192 3416 noconfigdirs="$noconfigdirs gas ld"
71ab34df 3417 ;;
3418 alpha*-*-*vms*)
f24be480 3419 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
71ab34df 3420 ;;
71ab34df 3421 alpha*-*-*)
3422 # newlib is not 64 bit ready
f24be480 3423 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3424 ;;
71ab34df 3425 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
f843f075 3426 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
71ab34df 3427 ;;
3428 arc-*-*)
17b3d2a8 3429 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3430 ;;
71ab34df 3431 arm-*-pe*)
f24be480 3432 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3433 ;;
71ab34df 3434 arm-*-riscix*)
71559dce 3435 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3436 ;;
71ab34df 3437 c4x-*-* | tic4x-*-*)
71559dce 3438 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3439 ;;
71559dce 3440 tic54x-*-*)
3441 noconfigdirs="$noconfigdirs target-libgloss gdb"
71ab34df 3442 ;;
15f8eac8 3443 cr16-*-*)
f24be480 3444 noconfigdirs="$noconfigdirs gdb"
15f8eac8 3445 ;;
71ab34df 3446 d10v-*-*)
71559dce 3447 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3448 ;;
3449 d30v-*-*)
71559dce 3450 noconfigdirs="$noconfigdirs gdb"
71ab34df 3451 ;;
3452 fr30-*-elf*)
f24be480 3453 noconfigdirs="$noconfigdirs gdb"
71ab34df 3454 ;;
ca2751b6 3455 moxie-*-*)
ca2751b6 3456 noconfigdirs="$noconfigdirs gprof"
3457 ;;
71ab34df 3458 h8300*-*-*)
f24be480 3459 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3460 ;;
3461 h8500-*-*)
71559dce 3462 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3463 ;;
e8eddfdd 3464 hppa1.1-*-osf* | hppa1.1-*-bsd* )
e8eddfdd 3465 ;;
6bd59761 3466 hppa*64*-*-linux*)
71ab34df 3467 ;;
99684e84 3468 hppa*-*-linux*)
08261f02 3469 ;;
71ab34df 3470 hppa*-*-*elf* | \
71ab34df 3471 hppa*-*-lites* | \
3472 hppa*-*-openbsd* | \
3473 hppa*64*-*-*)
71ab34df 3474 ;;
75d59721 3475 hppa*-hp-hpux11*)
6c9785b4 3476 noconfigdirs="$noconfigdirs ld"
75d59721 3477 ;;
1c5767f1 3478 hppa*-*-pro*)
1c5767f1 3479 ;;
71ab34df 3480 hppa*-*-*)
f24be480 3481 noconfigdirs="$noconfigdirs ld"
71ab34df 3482 ;;
4a9237fb 3483 i960-*-*)
71559dce 3484 noconfigdirs="$noconfigdirs gdb"
4a9237fb 3485 ;;
71ab34df 3486 ia64*-*-elf*)
3487 # No gdb support yet.
6c9785b4 3488 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
71ab34df 3489 ;;
3490 ia64*-**-hpux*)
1aca86a6 3491 # No ld support yet.
f24be480 3492 noconfigdirs="$noconfigdirs libgui itcl ld"
71ab34df 3493 ;;
8408ca00 3494 ia64*-*-*vms*)
3495 # No gdb or ld support yet.
f24be480 3496 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
8408ca00 3497 ;;
ec2eb8fb 3498 i[3456789]86-w64-mingw*)
ec2eb8fb 3499 ;;
3500 i[3456789]86-*-mingw*)
d6d689df 3501 target_configdirs="$target_configdirs target-winsup"
b30fcfae 3502 ;;
71ab34df 3503 *-*-cygwin*)
3504 target_configdirs="$target_configdirs target-libtermcap target-winsup"
6c9785b4 3505 noconfigdirs="$noconfigdirs target-libgloss"
2c10944d 3506 # always build newlib if winsup directory is present.
d6d689df 3507 if test -d "$srcdir/winsup/cygwin"; then
2c10944d 3508 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
e8eddfdd 3509 elif test -d "$srcdir/newlib"; then
d6d689df 3510 echo "Warning: winsup/cygwin is missing so newlib can't be built."
2c10944d 3511 fi
b30fcfae 3512 ;;
f74ea578 3513 i[3456789]86-*-pe)
17b3d2a8 3514 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3515 ;;
f74ea578 3516 i[3456789]86-*-sco3.2v5*)
71ab34df 3517 # The linker does not yet know about weak symbols in COFF,
3518 # and is not configured to handle mixed ELF and COFF.
71559dce 3519 noconfigdirs="$noconfigdirs ld target-libgloss"
71ab34df 3520 ;;
f74ea578 3521 i[3456789]86-*-sco*)
71559dce 3522 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3523 ;;
14f27bc6 3524 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
71ab34df 3525 noconfigdirs="$noconfigdirs target-libgloss"
3526 ;;
f74ea578 3527 i[3456789]86-*-sysv4*)
71559dce 3528 noconfigdirs="$noconfigdirs target-libgloss"
71ab34df 3529 ;;
f74ea578 3530 i[3456789]86-*-beos*)
d556f192 3531 noconfigdirs="$noconfigdirs gdb"
602d002b 3532 ;;
ab0da556 3533 i[3456789]86-*-rdos*)
d556f192 3534 noconfigdirs="$noconfigdirs gdb"
1c5767f1 3535 ;;
71ab34df 3536 mmix-*-*)
f24be480 3537 noconfigdirs="$noconfigdirs gdb"
71ab34df 3538 ;;
957985d9 3539 mt-*-*)
f6fa11cb 3540 noconfigdirs="$noconfigdirs sim"
3541 ;;
71ab34df 3542 powerpc-*-aix*)
3543 # copied from rs6000-*-* entry
d556f192 3544 noconfigdirs="$noconfigdirs gprof"
71ab34df 3545 ;;
6bd59761 3546 powerpc*-*-winnt* | powerpc*-*-pe*)
71ab34df 3547 target_configdirs="$target_configdirs target-winsup"
71559dce 3548 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
71ab34df 3549 # always build newlib.
3550 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3551 ;;
3552 # This is temporary until we can link against shared libraries
3553 powerpcle-*-solaris*)
71559dce 3554 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
71ab34df 3555 ;;
3556 powerpc-*-beos*)
d556f192 3557 noconfigdirs="$noconfigdirs gdb"
71ab34df 3558 ;;
71ab34df 3559 rs6000-*-lynxos*)
d556f192 3560 noconfigdirs="$noconfigdirs gprof"
71ab34df 3561 ;;
3562 rs6000-*-aix*)
d556f192 3563 noconfigdirs="$noconfigdirs gprof"
71ab34df 3564 ;;
3565 rs6000-*-*)
f24be480 3566 noconfigdirs="$noconfigdirs gprof"
71ab34df 3567 ;;
3568 m68k-apollo-*)
71559dce 3569 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
71ab34df 3570 ;;
ba2b484f 3571 microblaze*)
f24be480 3572 noconfigdirs="$noconfigdirs gprof"
ba2b484f 3573 ;;
68c9bc25 3574 mips*-sde-elf*)
68c9bc25 3575 if test x$with_newlib = xyes; then
3576 noconfigdirs="$noconfigdirs gprof"
3577 fi
68c9bc25 3578 ;;
71ab34df 3579 mips*-*-irix5*)
71559dce 3580 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3581 ;;
3582 mips*-*-irix6*)
f24be480 3583 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3584 ;;
71ab34df 3585 mips*-*-bsd*)
71559dce 3586 noconfigdirs="$noconfigdirs gprof target-libgloss"
71ab34df 3587 ;;
71ab34df 3588 mips*-*-linux*)
71ab34df 3589 ;;
3590 mips*-*-*)
f24be480 3591 noconfigdirs="$noconfigdirs gprof"
71ab34df 3592 ;;
33974778 3593 sh-*-* | sh64-*-*)
39f6b116 3594 case "${target}" in
3595 sh*-*-elf)
f24be480 3596 ;;
39f6b116 3597 *)
f24be480 3598 noconfigdirs="$noconfigdirs target-libgloss" ;;
39f6b116 3599 esac
71ab34df 3600 ;;
71ab34df 3601 sparc-*-sunos4*)
d556f192 3602 if test x${is_cross_compiler} = xno ; then
71ab34df 3603 use_gnu_ld=no
3604 fi
3605 ;;
fa0a53e3 3606 tic6x-*-*)
ccdfa490 3607 noconfigdirs="$noconfigdirs sim"
fa0a53e3 3608 ;;
e5fa74b2 3609 tilepro-*-* | tilegx-*-*)
3610 noconfigdirs="$noconfigdirs sim"
3611 ;;
71ab34df 3612 v810-*-*)
71559dce 3613 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
71ab34df 3614 ;;
3615 vax-*-*)
f24be480 3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
71ab34df 3617 ;;
71ab34df 3618esac
a8298541 3619
71ab34df 3620# If we aren't building newlib, then don't build libgloss, since libgloss
3621# depends upon some newlib header files.
3622case "${noconfigdirs}" in
3623 *target-libgloss*) ;;
3624 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3625esac
3626
71ab34df 3627# Work in distributions that contain no compiler tools, like Autoconf.
71ab34df 3628host_makefile_frag=/dev/null
3629if test -d ${srcdir}/config ; then
3630case "${host}" in
f74ea578 3631 i[3456789]86-*-msdosdjgpp*)
71ab34df 3632 host_makefile_frag="config/mh-djgpp"
3633 ;;
3634 *-cygwin*)
45043b2b 3635
cd9a469c 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3637$as_echo_n "checking to see if cat works as expected... " >&6; }
45043b2b 3638echo a >cygwin-cat-check
82d97a59 3639if test `cat cygwin-cat-check` = a ; then
45043b2b 3640 rm cygwin-cat-check
cd9a469c 3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642$as_echo "yes" >&6; }
45043b2b 3643else
3644 rm cygwin-cat-check
cd9a469c 3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646$as_echo "no" >&6; }
3647 as_fn_error "The cat command does not ignore carriage return characters.
45043b2b 3648 Please either mount the build directory in binary mode or run the following
3649 commands before running any configure script:
3650set -o igncr
3651export SHELLOPTS
cd9a469c 3652 " "$LINENO" 5
45043b2b 3653fi
3654
71ab34df 3655 host_makefile_frag="config/mh-cygwin"
3656 ;;
5a92bcc2 3657 *-mingw*)
70d8e49e 3658 host_makefile_frag="config/mh-mingw"
a378fc89 3659 ;;
71ab34df 3660 *-interix*)
3661 host_makefile_frag="config/mh-interix"
3662 ;;
d2b94e36 3663 hppa*-hp-hpux10*)
d2b94e36 3664 host_makefile_frag="config/mh-pa-hpux10"
71ab34df 3665 ;;
b2240ff6 3666 hppa*-hp-hpux*)
d2b94e36 3667 host_makefile_frag="config/mh-pa"
3668 ;;
3669 hppa*-*)
3670 host_makefile_frag="config/mh-pa"
3671 ;;
16463c8d 3672 *-*-darwin*)
3673 host_makefile_frag="config/mh-darwin"
0222d984 3674 ;;
9d44a802 3675 powerpc-*-aix*)
3676 host_makefile_frag="config/mh-ppc-aix"
3677 ;;
3678 rs6000-*-aix*)
3679 host_makefile_frag="config/mh-ppc-aix"
3680 ;;
71ab34df 3681esac
3682fi
3683
8e1fea1a 3684if test "${build}" != "${host}" ; then
93c5e793 3685 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3686 AS_FOR_BUILD=${AS_FOR_BUILD-as}
8e1fea1a 3687 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
93c5e793 3688 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3689 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3690 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
5ff5b630 3691 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
93c5e793 3692 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3693 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3694 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3695 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3696 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3697 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3698else
3699 AR_FOR_BUILD="\$(AR)"
3700 AS_FOR_BUILD="\$(AS)"
a4af6a58 3701 CC_FOR_BUILD="\$(CC)"
93c5e793 3702 CXX_FOR_BUILD="\$(CXX)"
3703 GCJ_FOR_BUILD="\$(GCJ)"
3704 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
5ff5b630 3705 GOC_FOR_BUILD="\$(GOC)"
93c5e793 3706 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3707 LD_FOR_BUILD="\$(LD)"
3708 NM_FOR_BUILD="\$(NM)"
3709 RANLIB_FOR_BUILD="\$(RANLIB)"
3710 WINDRES_FOR_BUILD="\$(WINDRES)"
3711 WINDMC_FOR_BUILD="\$(WINDMC)"
eae5b2bc 3712fi
3713
3714ac_ext=c
b30fcfae 3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3721set dummy ${ac_tool_prefix}gcc; ac_word=$2
cd9a469c 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723$as_echo_n "checking for $ac_word... " >&6; }
3724if test "${ac_cv_prog_CC+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
b30fcfae 3726else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729else
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
cd9a469c 3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 3737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cd9a469c 3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 3739 break 2
3740 fi
3741done
cd9a469c 3742 done
3743IFS=$as_save_IFS
b30fcfae 3744
3745fi
3746fi
3747CC=$ac_cv_prog_CC
3748if test -n "$CC"; then
cd9a469c 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750$as_echo "$CC" >&6; }
b30fcfae 3751else
cd9a469c 3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753$as_echo "no" >&6; }
b30fcfae 3754fi
3755
cd9a469c 3756
b30fcfae 3757fi
3758if test -z "$ac_cv_prog_CC"; then
3759 ac_ct_CC=$CC
a4af6a58 3760 # Extract the first word of "gcc", so it can be a program name with args.
3761set dummy gcc; ac_word=$2
cd9a469c 3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
b30fcfae 3766else
3767 if test -n "$ac_ct_CC"; then
3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
cd9a469c 3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 3777 ac_cv_prog_ac_ct_CC="gcc"
cd9a469c 3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 3779 break 2
3780 fi
3781done
cd9a469c 3782 done
3783IFS=$as_save_IFS
b30fcfae 3784
3785fi
3786fi
3787ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788if test -n "$ac_ct_CC"; then
cd9a469c 3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790$as_echo "$ac_ct_CC" >&6; }
b30fcfae 3791else
cd9a469c 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793$as_echo "no" >&6; }
b30fcfae 3794fi
3795
cd9a469c 3796 if test "x$ac_ct_CC" = x; then
3797 CC=""
3798 else
3799 case $cross_compiling:$ac_tool_warned in
3800yes:)
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803ac_tool_warned=yes ;;
3804esac
3805 CC=$ac_ct_CC
3806 fi
b30fcfae 3807else
3808 CC="$ac_cv_prog_CC"
3809fi
3810
3811if test -z "$CC"; then
cd9a469c 3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
b30fcfae 3814set dummy ${ac_tool_prefix}cc; ac_word=$2
cd9a469c 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if test "${ac_cv_prog_CC+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
8e1fea1a 3819else
3820 if test -n "$CC"; then
3821 ac_cv_prog_CC="$CC" # Let the user override the test.
3822else
b30fcfae 3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
cd9a469c 3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 3830 ac_cv_prog_CC="${ac_tool_prefix}cc"
cd9a469c 3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 3832 break 2
3833 fi
3834done
cd9a469c 3835 done
3836IFS=$as_save_IFS
b30fcfae 3837
a83ffacf 3838fi
a83ffacf 3839fi
b30fcfae 3840CC=$ac_cv_prog_CC
ae48753c 3841if test -n "$CC"; then
cd9a469c 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843$as_echo "$CC" >&6; }
5084f823 3844else
cd9a469c 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
5084f823 3847fi
3848
5084f823 3849
cd9a469c 3850 fi
b30fcfae 3851fi
8e1fea1a 3852if test -z "$CC"; then
3853 # Extract the first word of "cc", so it can be a program name with args.
3854set dummy cc; ac_word=$2
cd9a469c 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if test "${ac_cv_prog_CC+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
8e1fea1a 3859else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862else
a83ffacf 3863 ac_prog_rejected=no
b30fcfae 3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
cd9a469c 3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 3871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3872 ac_prog_rejected=yes
3873 continue
3874 fi
3875 ac_cv_prog_CC="cc"
cd9a469c 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 3877 break 2
3878 fi
3879done
cd9a469c 3880 done
3881IFS=$as_save_IFS
b30fcfae 3882
8e1fea1a 3883if test $ac_prog_rejected = yes; then
3884 # We found a bogon in the path, so make sure we never use it.
3885 set dummy $ac_cv_prog_CC
3886 shift
b30fcfae 3887 if test $# != 0; then
8e1fea1a 3888 # We chose a different compiler from the bogus one.
3889 # However, it has the same basename, so the bogon will be chosen
3890 # first if we set CC to just the basename; use the full file name.
3891 shift
b30fcfae 3892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8e1fea1a 3893 fi
3894fi
3895fi
3896fi
b30fcfae 3897CC=$ac_cv_prog_CC
8e1fea1a 3898if test -n "$CC"; then
cd9a469c 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900$as_echo "$CC" >&6; }
8e1fea1a 3901else
cd9a469c 3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
8e1fea1a 3904fi
3905
cd9a469c 3906
b30fcfae 3907fi
3908if test -z "$CC"; then
3909 if test -n "$ac_tool_prefix"; then
cd9a469c 3910 for ac_prog in cl.exe
b30fcfae 3911 do
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915$as_echo_n "checking for $ac_word... " >&6; }
3916if test "${ac_cv_prog_CC+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
8e1fea1a 3918else
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3921else
b30fcfae 3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
cd9a469c 3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 3929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cd9a469c 3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 3931 break 2
3932 fi
3933done
cd9a469c 3934 done
3935IFS=$as_save_IFS
b30fcfae 3936
8e1fea1a 3937fi
3938fi
b30fcfae 3939CC=$ac_cv_prog_CC
8e1fea1a 3940if test -n "$CC"; then
cd9a469c 3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942$as_echo "$CC" >&6; }
b1660f25 3943else
cd9a469c 3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945$as_echo "no" >&6; }
a4af6a58 3946fi
ae48753c 3947
cd9a469c 3948
b30fcfae 3949 test -n "$CC" && break
3950 done
ae48753c 3951fi
b30fcfae 3952if test -z "$CC"; then
3953 ac_ct_CC=$CC
cd9a469c 3954 for ac_prog in cl.exe
b30fcfae 3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
cd9a469c 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
3960if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
a83ffacf 3962else
b30fcfae 3963 if test -n "$ac_ct_CC"; then
3964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
a83ffacf 3965else
b30fcfae 3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
cd9a469c 3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 3973 ac_cv_prog_ac_ct_CC="$ac_prog"
cd9a469c 3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 3975 break 2
3976 fi
3977done
cd9a469c 3978 done
3979IFS=$as_save_IFS
b30fcfae 3980
ae48753c 3981fi
3982fi
b30fcfae 3983ac_ct_CC=$ac_cv_prog_ac_ct_CC
3984if test -n "$ac_ct_CC"; then
cd9a469c 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3986$as_echo "$ac_ct_CC" >&6; }
a4af6a58 3987else
cd9a469c 3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989$as_echo "no" >&6; }
ae48753c 3990fi
a83ffacf 3991
cd9a469c 3992
b30fcfae 3993 test -n "$ac_ct_CC" && break
3994done
3995
cd9a469c 3996 if test "x$ac_ct_CC" = x; then
3997 CC=""
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000yes:)
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003ac_tool_warned=yes ;;
4004esac
4005 CC=$ac_ct_CC
4006 fi
b30fcfae 4007fi
4008
4009fi
4010
4011
cd9a469c 4012test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014as_fn_error "no acceptable C compiler found in \$PATH
4015See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4016
4017# Provide some information about the compiler.
cd9a469c 4018$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4019set X $ac_compile
4020ac_compiler=$2
4021for ac_option in --version -v -V -qversion; do
4022 { { ac_try="$ac_compiler $ac_option >&5"
4023case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026esac
4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028$as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b30fcfae 4030 ac_status=$?
cd9a469c 4031 if test -s conftest.err; then
4032 sed '10a\
4033... rest of stderr output deleted ...
4034 10q' conftest.err >conftest.er1
4035 cat conftest.er1 >&5
4036 rm -f conftest.er1 conftest.err
4037 fi
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040done
b30fcfae 4041
cd9a469c 4042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4043/* end confdefs.h. */
4044
4045int
4046main ()
4047{
4048
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053ac_clean_files_save=$ac_clean_files
cd9a469c 4054ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
b30fcfae 4055# Try to create an executable without -o first, disregard a.out.
4056# It will help us diagnose broken compilers, and finding out an intuition
4057# of exeext.
cd9a469c 4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4059$as_echo_n "checking for C compiler default output file name... " >&6; }
4060ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4061
4062# The possible output files:
4063ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4064
4065ac_rmfiles=
4066for ac_file in $ac_files
4067do
4068 case $ac_file in
4069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4070 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4071 esac
4072done
4073rm -f $ac_rmfiles
4074
4075if { { ac_try="$ac_link_default"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081$as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_link_default") 2>&5
b30fcfae 4083 ac_status=$?
cd9a469c 4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
4086 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4087# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4088# in a Makefile. We should not override ac_cv_exeext if it was cached,
4089# so that the user can short-circuit this test for compilers unknown to
4090# Autoconf.
4091for ac_file in $ac_files ''
b30fcfae 4092do
4093 test -f "$ac_file" || continue
4094 case $ac_file in
cd9a469c 4095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b30fcfae 4096 ;;
4097 [ab].out )
4098 # We found the default executable, but exeext='' is most
4099 # certainly right.
4100 break;;
4101 *.* )
cd9a469c 4102 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4103 then :; else
4104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4105 fi
4106 # We set ac_cv_exeext here because the later test for it is not
4107 # safe: cross compilers may not add the suffix if given an `-o'
4108 # argument, so we may need to know it at that point already.
4109 # Even if this section looks crufty: it has the advantage of
4110 # actually working.
b30fcfae 4111 break;;
4112 * )
4113 break;;
4114 esac
4115done
cd9a469c 4116test "$ac_cv_exeext" = no && ac_cv_exeext=
4117
b30fcfae 4118else
cd9a469c 4119 ac_file=''
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4122$as_echo "$ac_file" >&6; }
4123if test -z "$ac_file"; then :
4124 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4125sed 's/^/| /' conftest.$ac_ext >&5
4126
cd9a469c 4127{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129{ as_fn_set_status 77
4130as_fn_error "C compiler cannot create executables
4131See \`config.log' for more details." "$LINENO" 5; }; }
b30fcfae 4132fi
b30fcfae 4133ac_exeext=$ac_cv_exeext
b30fcfae 4134
cd9a469c 4135# Check that the compiler produces executables we can run. If not, either
b30fcfae 4136# the compiler is broken, or we cross compile.
cd9a469c 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4138$as_echo_n "checking whether the C compiler works... " >&6; }
b30fcfae 4139# If not cross compiling, check that we can run a simple program.
4140if test "$cross_compiling" != yes; then
4141 if { ac_try='./$ac_file'
cd9a469c 4142 { { case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147$as_echo "$ac_try_echo"; } >&5
4148 (eval "$ac_try") 2>&5
b30fcfae 4149 ac_status=$?
cd9a469c 4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }; }; then
b30fcfae 4152 cross_compiling=no
4153 else
4154 if test "$cross_compiling" = maybe; then
4155 cross_compiling=yes
4156 else
cd9a469c 4157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159as_fn_error "cannot run C compiled programs.
b30fcfae 4160If you meant to cross compile, use \`--host'.
cd9a469c 4161See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4162 fi
4163 fi
4164fi
cd9a469c 4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166$as_echo "yes" >&6; }
b30fcfae 4167
cd9a469c 4168rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
b30fcfae 4169ac_clean_files=$ac_clean_files_save
cd9a469c 4170# Check that the compiler produces executables we can run. If not, either
b30fcfae 4171# the compiler is broken, or we cross compile.
cd9a469c 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4173$as_echo_n "checking whether we are cross compiling... " >&6; }
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4175$as_echo "$cross_compiling" >&6; }
4176
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4178$as_echo_n "checking for suffix of executables... " >&6; }
4179if { { ac_try="$ac_link"
4180case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185$as_echo "$ac_try_echo"; } >&5
4186 (eval "$ac_link") 2>&5
b30fcfae 4187 ac_status=$?
cd9a469c 4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }; then :
b30fcfae 4190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4191# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4192# work properly (i.e., refer to `conftest.exe'), while it won't with
4193# `rm'.
4194for ac_file in conftest.exe conftest conftest.*; do
4195 test -f "$ac_file" || continue
4196 case $ac_file in
cd9a469c 4197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b30fcfae 4198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b30fcfae 4199 break;;
4200 * ) break;;
4201 esac
4202done
ae48753c 4203else
cd9a469c 4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206as_fn_error "cannot compute suffix of executables: cannot compile and link
4207See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4208fi
b30fcfae 4209rm -f conftest$ac_cv_exeext
cd9a469c 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4211$as_echo "$ac_cv_exeext" >&6; }
b30fcfae 4212
4213rm -f conftest.$ac_ext
4214EXEEXT=$ac_cv_exeext
4215ac_exeext=$EXEEXT
cd9a469c 4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4217$as_echo_n "checking for suffix of object files... " >&6; }
4218if test "${ac_cv_objext+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
b30fcfae 4220else
cd9a469c 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4222/* end confdefs.h. */
4223
4224int
4225main ()
4226{
4227
4228 ;
4229 return 0;
4230}
4231_ACEOF
4232rm -f conftest.o conftest.obj
cd9a469c 4233if { { ac_try="$ac_compile"
4234case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_compile") 2>&5
b30fcfae 4241 ac_status=$?
cd9a469c 4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }; then :
4244 for ac_file in conftest.o conftest.obj conftest.*; do
4245 test -f "$ac_file" || continue;
b30fcfae 4246 case $ac_file in
cd9a469c 4247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b30fcfae 4248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4249 break;;
4250 esac
4251done
4252else
cd9a469c 4253 $as_echo "$as_me: failed program was:" >&5
b30fcfae 4254sed 's/^/| /' conftest.$ac_ext >&5
4255
cd9a469c 4256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258as_fn_error "cannot compute suffix of object files: cannot compile
4259See \`config.log' for more details." "$LINENO" 5; }
b30fcfae 4260fi
b30fcfae 4261rm -f conftest.$ac_cv_objext conftest.$ac_ext
4262fi
cd9a469c 4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4264$as_echo "$ac_cv_objext" >&6; }
b30fcfae 4265OBJEXT=$ac_cv_objext
4266ac_objext=$OBJEXT
cd9a469c 4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4268$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4269if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
b30fcfae 4271else
cd9a469c 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4273/* end confdefs.h. */
4274
4275int
4276main ()
4277{
4278#ifndef __GNUC__
4279 choke me
4280#endif
4281
4282 ;
4283 return 0;
4284}
4285_ACEOF
cd9a469c 4286if ac_fn_c_try_compile "$LINENO"; then :
b30fcfae 4287 ac_compiler_gnu=yes
4288else
cd9a469c 4289 ac_compiler_gnu=no
b30fcfae 4290fi
cd9a469c 4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4292ac_cv_c_compiler_gnu=$ac_compiler_gnu
4293
4294fi
cd9a469c 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4296$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4297if test $ac_compiler_gnu = yes; then
4298 GCC=yes
4299else
4300 GCC=
4301fi
b30fcfae 4302ac_test_CFLAGS=${CFLAGS+set}
4303ac_save_CFLAGS=$CFLAGS
cd9a469c 4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4305$as_echo_n "checking whether $CC accepts -g... " >&6; }
4306if test "${ac_cv_prog_cc_g+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308else
4309 ac_save_c_werror_flag=$ac_c_werror_flag
4310 ac_c_werror_flag=yes
4311 ac_cv_prog_cc_g=no
4312 CFLAGS="-g"
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4314/* end confdefs.h. */
4315
4316int
4317main ()
4318{
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
cd9a469c 4324if ac_fn_c_try_compile "$LINENO"; then :
8e1fea1a 4325 ac_cv_prog_cc_g=yes
4326else
cd9a469c 4327 CFLAGS=""
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h. */
4330
4331int
4332main ()
4333{
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then :
4340
4341else
4342 ac_c_werror_flag=$ac_save_c_werror_flag
4343 CFLAGS="-g"
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h. */
ae48753c 4346
cd9a469c 4347int
4348main ()
4349{
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_prog_cc_g=yes
4357fi
4358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a83ffacf 4359fi
cd9a469c 4360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 4361fi
cd9a469c 4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_c_werror_flag=$ac_save_c_werror_flag
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4366$as_echo "$ac_cv_prog_cc_g" >&6; }
8e1fea1a 4367if test "$ac_test_CFLAGS" = set; then
b30fcfae 4368 CFLAGS=$ac_save_CFLAGS
8e1fea1a 4369elif test $ac_cv_prog_cc_g = yes; then
4370 if test "$GCC" = yes; then
4371 CFLAGS="-g -O2"
4372 else
4373 CFLAGS="-g"
4374 fi
4375else
4376 if test "$GCC" = yes; then
4377 CFLAGS="-O2"
4378 else
4379 CFLAGS=
4380 fi
4381fi
cd9a469c 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4383$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4384if test "${ac_cv_prog_cc_c89+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
b30fcfae 4386else
cd9a469c 4387 ac_cv_prog_cc_c89=no
b30fcfae 4388ac_save_CC=$CC
cd9a469c 4389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 4390/* end confdefs.h. */
4391#include <stdarg.h>
4392#include <stdio.h>
4393#include <sys/types.h>
4394#include <sys/stat.h>
4395/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4396struct buf { int x; };
4397FILE * (*rcsopen) (struct buf *, struct stat *, int);
4398static char *e (p, i)
4399 char **p;
4400 int i;
4401{
4402 return p[i];
4403}
4404static char *f (char * (*g) (char **, int), char **p, ...)
4405{
4406 char *s;
4407 va_list v;
4408 va_start (v,p);
4409 s = g (p, va_arg (v,int));
4410 va_end (v);
4411 return s;
4412}
4413
4414/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4415 function prototypes and stuff, but not '\xHH' hex character constants.
4416 These don't provoke an error unfortunately, instead are silently treated
cd9a469c 4417 as 'x'. The following induces an error, until -std is added to get
b30fcfae 4418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4419 array size at least. It's necessary to write '\x00'==0 to get something
cd9a469c 4420 that's true only with -std. */
b30fcfae 4421int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4422
cd9a469c 4423/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4424 inside strings and character constants. */
4425#define FOO(x) 'x'
4426int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4427
b30fcfae 4428int test (int i, double x);
4429struct s1 {int (*f) (int a);};
4430struct s2 {int (*f) (double a);};
4431int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4432int argc;
4433char **argv;
4434int
4435main ()
4436{
4437return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4438 ;
4439 return 0;
4440}
4441_ACEOF
cd9a469c 4442for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4443 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b30fcfae 4444do
4445 CC="$ac_save_CC $ac_arg"
cd9a469c 4446 if ac_fn_c_try_compile "$LINENO"; then :
4447 ac_cv_prog_cc_c89=$ac_arg
b30fcfae 4448fi
cd9a469c 4449rm -f core conftest.err conftest.$ac_objext
4450 test "x$ac_cv_prog_cc_c89" != "xno" && break
b30fcfae 4451done
cd9a469c 4452rm -f conftest.$ac_ext
b30fcfae 4453CC=$ac_save_CC
4454
4455fi
cd9a469c 4456# AC_CACHE_VAL
4457case "x$ac_cv_prog_cc_c89" in
4458 x)
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460$as_echo "none needed" >&6; } ;;
4461 xno)
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4463$as_echo "unsupported" >&6; } ;;
b30fcfae 4464 *)
cd9a469c 4465 CC="$CC $ac_cv_prog_cc_c89"
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4467$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b30fcfae 4468esac
cd9a469c 4469if test "x$ac_cv_prog_cc_c89" != xno; then :
b30fcfae 4470
5084f823 4471fi
4472
5084f823 4473ac_ext=c
4474ac_cpp='$CPP $CPPFLAGS'
4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
cd9a469c 4479ac_ext=cpp
5084f823 4480ac_cpp='$CXXCPP $CPPFLAGS'
4481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
cd9a469c 4484if test -z "$CXX"; then
4485 if test -n "$CCC"; then
4486 CXX=$CCC
4487 else
4488 if test -n "$ac_tool_prefix"; then
4489 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5084f823 4490 do
4491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cd9a469c 4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494$as_echo_n "checking for $ac_word... " >&6; }
4495if test "${ac_cv_prog_CXX+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
5084f823 4497else
4498 if test -n "$CXX"; then
4499 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
cd9a469c 4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084f823 4508 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cd9a469c 4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084f823 4510 break 2
4511 fi
4512done
cd9a469c 4513 done
4514IFS=$as_save_IFS
8e1fea1a 4515
eae5b2bc 4516fi
4517fi
4518CXX=$ac_cv_prog_CXX
4519if test -n "$CXX"; then
cd9a469c 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4521$as_echo "$CXX" >&6; }
eae5b2bc 4522else
cd9a469c 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
eae5b2bc 4525fi
4526
cd9a469c 4527
eae5b2bc 4528 test -n "$CXX" && break
4529 done
4530fi
4531if test -z "$CXX"; then
4532 ac_ct_CXX=$CXX
cd9a469c 4533 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
eae5b2bc 4534do
4535 # Extract the first word of "$ac_prog", so it can be a program name with args.
4536set dummy $ac_prog; ac_word=$2
cd9a469c 4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538$as_echo_n "checking for $ac_word... " >&6; }
4539if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
eae5b2bc 4541else
4542 if test -n "$ac_ct_CXX"; then
4543 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
cd9a469c 4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
eae5b2bc 4552 ac_cv_prog_ac_ct_CXX="$ac_prog"
cd9a469c 4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
eae5b2bc 4554 break 2
4555 fi
4556done
cd9a469c 4557 done
4558IFS=$as_save_IFS
eae5b2bc 4559
4560fi
4561fi
4562ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4563if test -n "$ac_ct_CXX"; then
cd9a469c 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4565$as_echo "$ac_ct_CXX" >&6; }
eae5b2bc 4566else
cd9a469c 4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568$as_echo "no" >&6; }
eae5b2bc 4569fi
4570
cd9a469c 4571
eae5b2bc 4572 test -n "$ac_ct_CXX" && break
4573done
eae5b2bc 4574
cd9a469c 4575 if test "x$ac_ct_CXX" = x; then
4576 CXX="g++"
4577 else
4578 case $cross_compiling:$ac_tool_warned in
4579yes:)
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582ac_tool_warned=yes ;;
4583esac
4584 CXX=$ac_ct_CXX
4585 fi
eae5b2bc 4586fi
4587
cd9a469c 4588 fi
4589fi
eae5b2bc 4590# Provide some information about the compiler.
cd9a469c 4591$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4592set X $ac_compile
4593ac_compiler=$2
4594for ac_option in --version -v -V -qversion; do
4595 { { ac_try="$ac_compiler $ac_option >&5"
4596case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
4600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601$as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
eae5b2bc 4603 ac_status=$?
cd9a469c 4604 if test -s conftest.err; then
4605 sed '10a\
4606... rest of stderr output deleted ...
4607 10q' conftest.err >conftest.er1
4608 cat conftest.er1 >&5
4609 rm -f conftest.er1 conftest.err
4610 fi
4611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612 test $ac_status = 0; }
4613done
eae5b2bc 4614
cd9a469c 4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4616$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4617if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
eae5b2bc 4619else
cd9a469c 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4621/* end confdefs.h. */
4622
4623int
4624main ()
4625{
4626#ifndef __GNUC__
4627 choke me
4628#endif
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
cd9a469c 4634if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4635 ac_compiler_gnu=yes
4636else
cd9a469c 4637 ac_compiler_gnu=no
eae5b2bc 4638fi
cd9a469c 4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eae5b2bc 4640ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4641
4642fi
cd9a469c 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4644$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4645if test $ac_compiler_gnu = yes; then
4646 GXX=yes
4647else
4648 GXX=
4649fi
eae5b2bc 4650ac_test_CXXFLAGS=${CXXFLAGS+set}
4651ac_save_CXXFLAGS=$CXXFLAGS
cd9a469c 4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4653$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4654if test "${ac_cv_prog_cxx_g+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656else
4657 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4658 ac_cxx_werror_flag=yes
4659 ac_cv_prog_cxx_g=no
4660 CXXFLAGS="-g"
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4662/* end confdefs.h. */
4663
4664int
4665main ()
4666{
4667
4668 ;
4669 return 0;
4670}
4671_ACEOF
cd9a469c 4672if ac_fn_cxx_try_compile "$LINENO"; then :
eae5b2bc 4673 ac_cv_prog_cxx_g=yes
4674else
cd9a469c 4675 CXXFLAGS=""
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4677/* end confdefs.h. */
cd9a469c 4678
eae5b2bc 4679int
4680main ()
4681{
cd9a469c 4682
eae5b2bc 4683 ;
4684 return 0;
4685}
4686_ACEOF
cd9a469c 4687if ac_fn_cxx_try_compile "$LINENO"; then :
2f8725b0 4688
cd9a469c 4689else
4690 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4691 CXXFLAGS="-g"
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eae5b2bc 4693/* end confdefs.h. */
cd9a469c 4694
eae5b2bc 4695int
4696main ()
4697{
cd9a469c 4698
eae5b2bc 4699 ;
4700 return 0;
4701}
4702_ACEOF
cd9a469c 4703if ac_fn_cxx_try_compile "$LINENO"; then :
4704 ac_cv_prog_cxx_g=yes
570af75a 4705fi
cd9a469c 4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4714$as_echo "$ac_cv_prog_cxx_g" >&6; }
4715if test "$ac_test_CXXFLAGS" = set; then
4716 CXXFLAGS=$ac_save_CXXFLAGS
4717elif test $ac_cv_prog_cxx_g = yes; then
4718 if test "$GXX" = yes; then
4719 CXXFLAGS="-g -O2"
4720 else
4721 CXXFLAGS="-g"
4722 fi
4723else
4724 if test "$GXX" = yes; then
4725 CXXFLAGS="-O2"
4726 else
4727 CXXFLAGS=
4728 fi
eae5b2bc 4729fi
eae5b2bc 4730ac_ext=c
4731ac_cpp='$CPP $CPPFLAGS'
4732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735
4736
4737# We must set the default linker to the linker used by gcc for the correct
4738# operation of libtool. If LD is not defined and we are using gcc, try to
4739# set the LD default to the ld used by gcc.
4740if test -z "$LD"; then
4741 if test "$GCC" = yes; then
4742 case $build in
4743 *-*-mingw*)
4744 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4745 *)
4746 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4747 esac
4748 case $gcc_prog_ld in
4749 # Accept absolute paths.
4750 [\\/]* | [A-Za-z]:[\\/]*)
4751 LD="$gcc_prog_ld" ;;
4752 esac
4753 fi
2f8725b0 4754fi
4755
2f8725b0 4756
4757
8e1fea1a 4758
b30fcfae 4759if test -n "$ac_tool_prefix"; then
4760 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
8e1fea1a 4761set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
cd9a469c 4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763$as_echo_n "checking for $ac_word... " >&6; }
4764if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
8e1fea1a 4766else
4767 if test -n "$GNATBIND"; then
4768 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4769else
b30fcfae 4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
cd9a469c 4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4777 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
cd9a469c 4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4779 break 2
4780 fi
4781done
cd9a469c 4782 done
4783IFS=$as_save_IFS
b30fcfae 4784
8e1fea1a 4785fi
4786fi
b30fcfae 4787GNATBIND=$ac_cv_prog_GNATBIND
8e1fea1a 4788if test -n "$GNATBIND"; then
cd9a469c 4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4790$as_echo "$GNATBIND" >&6; }
8e1fea1a 4791else
cd9a469c 4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793$as_echo "no" >&6; }
8e1fea1a 4794fi
4795
cd9a469c 4796
b30fcfae 4797fi
8e1fea1a 4798if test -z "$ac_cv_prog_GNATBIND"; then
b30fcfae 4799 ac_ct_GNATBIND=$GNATBIND
8e1fea1a 4800 # Extract the first word of "gnatbind", so it can be a program name with args.
4801set dummy gnatbind; ac_word=$2
cd9a469c 4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803$as_echo_n "checking for $ac_word... " >&6; }
4804if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
8e1fea1a 4806else
b30fcfae 4807 if test -n "$ac_ct_GNATBIND"; then
4808 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
8e1fea1a 4809else
b30fcfae 4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
cd9a469c 4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4817 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
cd9a469c 4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4819 break 2
4820 fi
4821done
cd9a469c 4822 done
4823IFS=$as_save_IFS
b30fcfae 4824
8e1fea1a 4825fi
4826fi
b30fcfae 4827ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4828if test -n "$ac_ct_GNATBIND"; then
cd9a469c 4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4830$as_echo "$ac_ct_GNATBIND" >&6; }
8e1fea1a 4831else
cd9a469c 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
8e1fea1a 4834fi
4835
cd9a469c 4836 if test "x$ac_ct_GNATBIND" = x; then
4837 GNATBIND="no"
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840yes:)
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843ac_tool_warned=yes ;;
4844esac
4845 GNATBIND=$ac_ct_GNATBIND
4846 fi
8e1fea1a 4847else
b30fcfae 4848 GNATBIND="$ac_cv_prog_GNATBIND"
8e1fea1a 4849fi
4850
b30fcfae 4851if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
a18b2c54 4853set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
cd9a469c 4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
a18b2c54 4858else
4859 if test -n "$GNATMAKE"; then
4860 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4861else
b30fcfae 4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
cd9a469c 4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4869 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
cd9a469c 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4871 break 2
4872 fi
4873done
cd9a469c 4874 done
4875IFS=$as_save_IFS
b30fcfae 4876
a18b2c54 4877fi
4878fi
b30fcfae 4879GNATMAKE=$ac_cv_prog_GNATMAKE
a18b2c54 4880if test -n "$GNATMAKE"; then
cd9a469c 4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4882$as_echo "$GNATMAKE" >&6; }
a18b2c54 4883else
cd9a469c 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
a18b2c54 4886fi
4887
cd9a469c 4888
b30fcfae 4889fi
a18b2c54 4890if test -z "$ac_cv_prog_GNATMAKE"; then
b30fcfae 4891 ac_ct_GNATMAKE=$GNATMAKE
a18b2c54 4892 # Extract the first word of "gnatmake", so it can be a program name with args.
4893set dummy gnatmake; ac_word=$2
cd9a469c 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
a18b2c54 4898else
b30fcfae 4899 if test -n "$ac_ct_GNATMAKE"; then
4900 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
a18b2c54 4901else
b30fcfae 4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
cd9a469c 4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 4909 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
cd9a469c 4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 4911 break 2
4912 fi
4913done
cd9a469c 4914 done
4915IFS=$as_save_IFS
b30fcfae 4916
a18b2c54 4917fi
4918fi
b30fcfae 4919ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4920if test -n "$ac_ct_GNATMAKE"; then
cd9a469c 4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4922$as_echo "$ac_ct_GNATMAKE" >&6; }
a18b2c54 4923else
cd9a469c 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
a18b2c54 4926fi
4927
cd9a469c 4928 if test "x$ac_ct_GNATMAKE" = x; then
4929 GNATMAKE="no"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937 GNATMAKE=$ac_ct_GNATMAKE
4938 fi
a18b2c54 4939else
b30fcfae 4940 GNATMAKE="$ac_cv_prog_GNATMAKE"
a18b2c54 4941fi
4942
cd9a469c 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4944$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4945if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
8e1fea1a 4947else
4948 cat >conftest.adb <<EOF
4949procedure conftest is begin null; end conftest;
4950EOF
4951acx_cv_cc_gcc_supports_ada=no
4952# There is a bug in old released versions of GCC which causes the
4953# driver to exit successfully when the appropriate language module
4954# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4955# Therefore we must check for the error message as well as an
4956# unsuccessful exit.
216de822 4957# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4958# given a .adb file, but produce no object file. So we must check
4959# if an object file was really produced to guard against this.
8e1fea1a 4960errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
216de822 4961if test x"$errors" = x && test -f conftest.$ac_objext; then
8e1fea1a 4962 acx_cv_cc_gcc_supports_ada=yes
8e1fea1a 4963fi
4964rm -f conftest.*
4965fi
cd9a469c 4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4967$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
8e1fea1a 4968
a18b2c54 4969if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
8e1fea1a 4970 have_gnat=yes
4971else
4972 have_gnat=no
4973fi
4974
cd9a469c 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4976$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4977if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
7bcc3b4a 4979else
4980 echo abfoo >t1
4981 echo cdfoo >t2
4982 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
697dfd2c 4983 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4984 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4985 :
4986 else
4987 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4988 fi
4989 fi
7bcc3b4a 4990 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4991 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
697dfd2c 4992 :
7bcc3b4a 4993 else
4994 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4995 fi
4996 fi
4997 rm t1 t2
4998
4999fi
cd9a469c 5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5001$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7bcc3b4a 5002do_compare="$gcc_cv_prog_cmp_skip"
5003
5004
8e1fea1a 5005
6c59dfa4 5006# Check whether --enable-bootstrap was given.
5007if test "${enable_bootstrap+set}" = set; then :
5008 enableval=$enable_bootstrap;
5009else
5010 enable_bootstrap=default
5011fi
5012
5013
5014# Issue errors and warnings for invalid/strange bootstrap combinations.
d7c9b4c1 5015if test -r $srcdir/gcc/configure; then
5016 have_compiler=yes
5017else
5018 have_compiler=no
5019fi
6c59dfa4 5020
5021case "$have_compiler:$host:$target:$enable_bootstrap" in
5022 *:*:*:no) ;;
5023
5024 # Default behavior. Enable bootstrap if we have a compiler
5025 # and we are in a native configuration.
5026 yes:$build:$build:default)
5027 enable_bootstrap=yes ;;
5028
5029 *:*:*:default)
5030 enable_bootstrap=no ;;
5031
5032 # We have a compiler and we are in a native configuration, bootstrap is ok
5033 yes:$build:$build:yes)
5034 ;;
5035
5036 # Other configurations, but we have a compiler. Assume the user knows
5037 # what he's doing.
5038 yes:*:*:yes)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5040$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5041 ;;
5042
5043 # No compiler: if they passed --enable-bootstrap explicitly, fail
5044 no:*:*:yes)
5045 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5046
5047 # Fail if wrong command line
5048 *)
5049 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5050 ;;
5051esac
5052
7ab76cec 5053# See if we are building gcc with C++.
cd9a469c 5054# Check whether --enable-build-with-cxx was given.
5055if test "${enable_build_with_cxx+set}" = set; then :
5056 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
7ab76cec 5057else
5058 ENABLE_BUILD_WITH_CXX=no
cd9a469c 5059fi
5060
7ab76cec 5061
ef3c41c7 5062# Build stage1 with C and build stages 2 and 3 with C++.
5063# Check whether --enable-build-poststage1-with-cxx was given.
5064if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5065 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5066else
5067 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5068fi
5069
5070
c3fc6a63 5071# Used for setting $lt_cv_objdir
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5073$as_echo_n "checking for objdir... " >&6; }
5074if test "${lt_cv_objdir+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5076else
5077 rm -f .libs 2>/dev/null
5078mkdir .libs 2>/dev/null
5079if test -d .libs; then
5080 lt_cv_objdir=.libs
5081else
5082 # MS-DOS does not allow filenames that begin with a dot.
5083 lt_cv_objdir=_libs
5084fi
5085rmdir .libs 2>/dev/null
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5088$as_echo "$lt_cv_objdir" >&6; }
5089objdir=$lt_cv_objdir
5090
5091
5092
5093
5094
5095cat >>confdefs.h <<_ACEOF
5096#define LT_OBJDIR "$lt_cv_objdir/"
5097_ACEOF
5098
5099
5100
7601a55c 5101# Check for GMP, MPFR and MPC
16de6a81 5102gmplibs="-lmpc -lmpfr -lgmp"
4ee9c684 5103gmpinc=
d45318b3 5104have_gmp=no
7601a55c 5105
5106# Specify a location for mpc
5107# check for this first so it ends up on the link line before mpfr.
5108
cd9a469c 5109# Check whether --with-mpc was given.
5110if test "${with_mpc+set}" = set; then :
5111 withval=$with_mpc;
5112fi
7601a55c 5113
7601a55c 5114
73f813e1 5115# Check whether --with-mpc-include was given.
cd9a469c 5116if test "${with_mpc_include+set}" = set; then :
5117 withval=$with_mpc_include;
5118fi
7601a55c 5119
7601a55c 5120
73f813e1 5121# Check whether --with-mpc-lib was given.
cd9a469c 5122if test "${with_mpc_lib+set}" = set; then :
5123 withval=$with_mpc_lib;
5124fi
7601a55c 5125
7601a55c 5126
5127if test "x$with_mpc" != x; then
16de6a81 5128 gmplibs="-L$with_mpc/lib $gmplibs"
5129 gmpinc="-I$with_mpc/include $gmpinc"
7601a55c 5130fi
5131if test "x$with_mpc_include" != x; then
16de6a81 5132 gmpinc="-I$with_mpc_include $gmpinc"
7601a55c 5133fi
5134if test "x$with_mpc_lib" != x; then
16de6a81 5135 gmplibs="-L$with_mpc_lib $gmplibs"
7601a55c 5136fi
5137if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
c3fc6a63 5138 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
16de6a81 5139 gmpinc='-I$$s/mpc/src '"$gmpinc"
7601a55c 5140 # Do not test the mpc version. Assume that it is sufficient, since
5141 # it is in the source tree, and the library has not been built yet
5142 # but it would be included on the link line in the version check below
5143 # hence making the test fail.
16de6a81 5144 have_gmp=yes
7601a55c 5145fi
d45318b3 5146
5ca838b8 5147# Specify a location for mpfr
5148# check for this first so it ends up on the link line before gmp.
b30fcfae 5149
cd9a469c 5150# Check whether --with-mpfr-dir was given.
5151if test "${with_mpfr_dir+set}" = set; then :
5152 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5153Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5154fi
5155
5ca838b8 5156
5157
cd9a469c 5158# Check whether --with-mpfr was given.
5159if test "${with_mpfr+set}" = set; then :
5160 withval=$with_mpfr;
5161fi
b30fcfae 5162
5ca838b8 5163
73f813e1 5164# Check whether --with-mpfr-include was given.
cd9a469c 5165if test "${with_mpfr_include+set}" = set; then :
5166 withval=$with_mpfr_include;
5167fi
b30fcfae 5168
a5144c1d 5169
73f813e1 5170# Check whether --with-mpfr-lib was given.
cd9a469c 5171if test "${with_mpfr_lib+set}" = set; then :
5172 withval=$with_mpfr_lib;
5173fi
a5144c1d 5174
5ca838b8 5175
5176if test "x$with_mpfr" != x; then
5177 gmplibs="-L$with_mpfr/lib $gmplibs"
16de6a81 5178 gmpinc="-I$with_mpfr/include $gmpinc"
5ca838b8 5179fi
a5144c1d 5180if test "x$with_mpfr_include" != x; then
16de6a81 5181 gmpinc="-I$with_mpfr_include $gmpinc"
a5144c1d 5182fi
5183if test "x$with_mpfr_lib" != x; then
5184 gmplibs="-L$with_mpfr_lib $gmplibs"
5185fi
d45318b3 5186if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
c3fc6a63 5187 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
d45318b3 5188 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
c3fc6a63 5189 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
d45318b3 5190 # Do not test the mpfr version. Assume that it is sufficient, since
5191 # it is in the source tree, and the library has not been built yet
5192 # but it would be included on the link line in the version check below
5193 # hence making the test fail.
5194 have_gmp=yes
5195fi
5ca838b8 5196
4ee9c684 5197# Specify a location for gmp
b30fcfae 5198
cd9a469c 5199# Check whether --with-gmp-dir was given.
5200if test "${with_gmp_dir+set}" = set; then :
5201 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5202Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5203fi
5204
4ee9c684 5205
4ee9c684 5206
cd9a469c 5207# Check whether --with-gmp was given.
5208if test "${with_gmp+set}" = set; then :
5209 withval=$with_gmp;
5210fi
b30fcfae 5211
4ee9c684 5212
73f813e1 5213# Check whether --with-gmp-include was given.
cd9a469c 5214if test "${with_gmp_include+set}" = set; then :
5215 withval=$with_gmp_include;
5216fi
b30fcfae 5217
a5144c1d 5218
73f813e1 5219# Check whether --with-gmp-lib was given.
cd9a469c 5220if test "${with_gmp_lib+set}" = set; then :
5221 withval=$with_gmp_lib;
5222fi
a5144c1d 5223
5224
4ee9c684 5225
5ca838b8 5226if test "x$with_gmp" != x; then
5227 gmplibs="-L$with_gmp/lib $gmplibs"
5228 gmpinc="-I$with_gmp/include $gmpinc"
4ee9c684 5229fi
a5144c1d 5230if test "x$with_gmp_include" != x; then
5231 gmpinc="-I$with_gmp_include $gmpinc"
5232fi
5233if test "x$with_gmp_lib" != x; then
5234 gmplibs="-L$with_gmp_lib $gmplibs"
5235fi
d45318b3 5236if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
c3fc6a63 5237 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
d45318b3 5238 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
b9a8e4c4 5239 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
c3fc6a63 5240 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d45318b3 5241 # Do not test the gmp version. Assume that it is sufficient, since
5242 # it is in the source tree, and the library has not been built yet
5243 # but it would be included on the link line in the version check below
5244 # hence making the test fail.
5245 have_gmp=yes
5246fi
4ee9c684 5247
16c9b2e3 5248if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
d45318b3 5249 have_gmp=yes
5250 saved_CFLAGS="$CFLAGS"
5251 CFLAGS="$CFLAGS $gmpinc"
17b6993a 5252 # Check for the recommended and required versions of GMP.
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5254$as_echo_n "checking for the correct version of gmp.h... " >&6; }
4fd35f21 5255
5256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17b6993a 5257/* end confdefs.h. */
5258#include "gmp.h"
5259int
5260main ()
5261{
5262
5263 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5264 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5265 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5266 choke me
5267 #endif
5268
5269 ;
5270 return 0;
5271}
5272_ACEOF
5273if ac_fn_c_try_compile "$LINENO"; then :
4fd35f21 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5275/* end confdefs.h. */
17b6993a 5276#include <gmp.h>
b30fcfae 5277int
5278main ()
5279{
4ee9c684 5280
17b6993a 5281 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5282 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5283 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
d45318b3 5284 choke me
5285 #endif
b30fcfae 5286
5287 ;
5288 return 0;
5289}
5290_ACEOF
cd9a469c 5291if ac_fn_c_try_compile "$LINENO"; then :
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293$as_echo "yes" >&6; }
17b6993a 5294else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5296$as_echo "buggy but acceptable" >&6; }
5297fi
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b30fcfae 5299else
cd9a469c 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5302fi
cd9a469c 5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4ee9c684 5304
7601a55c 5305 # If we have GMP, check the MPFR version.
d45318b3 5306 if test x"$have_gmp" = xyes; then
17b6993a 5307 # Check for the recommended and required versions of MPFR.
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5309$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
cd9a469c 5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5311/* end confdefs.h. */
6a086156 5312#include <gmp.h>
d45318b3 5313 #include <mpfr.h>
b30fcfae 5314int
5315main ()
5316{
112f3d57 5317
fec76ae9 5318 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
d45318b3 5319 choke me
5320 #endif
b30fcfae 5321
5322 ;
5323 return 0;
5324}
5325_ACEOF
cd9a469c 5326if ac_fn_c_try_compile "$LINENO"; then :
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 5328/* end confdefs.h. */
0157cc75 5329#include <gmp.h>
d45318b3 5330 #include <mpfr.h>
b30fcfae 5331int
5332main ()
5333{
0157cc75 5334
17b6993a 5335 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
d45318b3 5336 choke me
5337 #endif
7601a55c 5338
5339 ;
5340 return 0;
5341}
5342_ACEOF
cd9a469c 5343if ac_fn_c_try_compile "$LINENO"; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345$as_echo "yes" >&6; }
7601a55c 5346else
cd9a469c 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5348$as_echo "buggy but acceptable" >&6; }
7601a55c 5349fi
cd9a469c 5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5351else
cd9a469c 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }; have_gmp=no
7601a55c 5354fi
cd9a469c 5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5356 fi
5357
5358 # Check for the MPC header version.
16de6a81 5359 if test x"$have_gmp" = xyes ; then
17b6993a 5360 # Check for the recommended and required versions of MPC.
cd9a469c 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5362$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5364/* end confdefs.h. */
5365#include <mpc.h>
5366int
5367main ()
5368{
5369
17b6993a 5370 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5371 choke me
5372 #endif
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_compile "$LINENO"; then :
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h. */
5381#include <mpc.h>
5382int
5383main ()
5384{
5385
5386 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
7601a55c 5387 choke me
5388 #endif
5389
5390 ;
5391 return 0;
5392}
5393_ACEOF
cd9a469c 5394if ac_fn_c_try_compile "$LINENO"; then :
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16de6a81 5396$as_echo "yes" >&6; }
17b6993a 5397else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5399$as_echo "buggy but acceptable" >&6; }
5400fi
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5402else
cd9a469c 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16de6a81 5404$as_echo "no" >&6; }; have_gmp=no
7601a55c 5405fi
cd9a469c 5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7601a55c 5407 fi
5408
5409 # Now check the MPFR library.
5410 if test x"$have_gmp" = xyes; then
5411 saved_LIBS="$LIBS"
5412 LIBS="$LIBS $gmplibs"
16de6a81 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5414$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
cd9a469c 5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601a55c 5416/* end confdefs.h. */
16de6a81 5417#include <mpc.h>
7601a55c 5418int
5419main ()
5420{
5421
5422 mpfr_t n;
5423 mpfr_t x;
16de6a81 5424 mpc_t c;
7601a55c 5425 int t;
5426 mpfr_init (n);
5427 mpfr_init (x);
5428 mpfr_atan2 (n, n, x, GMP_RNDN);
5429 mpfr_erfc (n, x, GMP_RNDN);
5430 mpfr_subnormalize (x, t, GMP_RNDN);
16de6a81 5431 mpfr_clear(n);
5432 mpfr_clear(x);
5433 mpc_init2 (c, 53);
5434 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5435 mpc_cosh (c, c, MPC_RNDNN);
5436 mpc_pow (c, c, c, MPC_RNDNN);
5437 mpc_acosh (c, c, MPC_RNDNN);
5438 mpc_clear (c);
b30fcfae 5439
5440 ;
5441 return 0;
5442}
5443_ACEOF
cd9a469c 5444if ac_fn_c_try_link "$LINENO"; then :
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446$as_echo "yes" >&6; }
b30fcfae 5447else
cd9a469c 5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449$as_echo "no" >&6; }; have_gmp=no
b30fcfae 5450fi
cd9a469c 5451rm -f core conftest.err conftest.$ac_objext \
5452 conftest$ac_exeext conftest.$ac_ext
7601a55c 5453 LIBS="$saved_LIBS"
5454 fi
5455
d45318b3 5456 CFLAGS="$saved_CFLAGS"
4ee9c684 5457
17b6993a 5458# The library versions listed in the error message below should match
5459# the HARD-minimums enforced above.
d45318b3 5460 if test x$have_gmp != xyes; then
17b6993a 5461 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
16de6a81 5462Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5463their locations. Source code for these libraries can be found at
5464their respective hosting sites as well as at
5465ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5466http://gcc.gnu.org/install/prerequisites.html for additional info. If
5467you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5468make sure that you have installed both the libraries and the header
5469files. They may be located in separate packages." "$LINENO" 5
d45318b3 5470 fi
6a086156 5471fi
5472
7601a55c 5473# Flags needed for both GMP, MPFR and/or MPC.
5474
5475
4ee9c684 5476
5477
5478
bff7ea4a 5479
5bc96548 5480# Allow host libstdc++ to be specified for static linking with PPL.
5481
cd9a469c 5482# Check whether --with-host-libstdcxx was given.
5483if test "${with_host_libstdcxx+set}" = set; then :
5484 withval=$with_host_libstdcxx;
5485fi
5bc96548 5486
5bc96548 5487
5488case $with_host_libstdcxx in
5489 no|yes)
cd9a469c 5490 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
5bc96548 5491 ;;
5492esac
255b6be7 5493
7ab76cec 5494# Linker flags to use for stage1 or when not boostrapping.
5495
cd9a469c 5496# Check whether --with-stage1-ldflags was given.
5497if test "${with_stage1_ldflags+set}" = set; then :
5498 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
7ab76cec 5499 stage1_ldflags=
5500 else
5501 stage1_ldflags=$withval
5502 fi
5503else
5504 stage1_ldflags=
cd9a469c 5505fi
5506
7ab76cec 5507
5508
5509# Libraries to use for stage1 or when not bootstrapping.
5510
cd9a469c 5511# Check whether --with-stage1-libs was given.
5512if test "${with_stage1_libs+set}" = set; then :
5513 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
7ab76cec 5514 stage1_libs=
5515 else
5516 stage1_libs=$withval
5517 fi
5518else
5519 stage1_libs=$with_host_libstdcxx
cd9a469c 5520fi
5521
7ab76cec 5522
5523
7ab76cec 5524# Libraries to use for stage2 and later builds. This defaults to the
5525# argument passed to --with-host-libstdcxx.
5526
cd9a469c 5527# Check whether --with-boot-libs was given.
5528if test "${with_boot_libs+set}" = set; then :
5529 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5110389d 5530 poststage1_libs=
5531 else
5532 poststage1_libs=$withval
5533 fi
5534else
7ab76cec 5535 poststage1_libs=$with_host_libstdcxx
cd9a469c 5536fi
5537
7ab76cec 5538
5539
d6dfe18a 5540# Linker flags to use for stage2 and later builds.
5541
5542# Check whether --with-boot-ldflags was given.
5543if test "${with_boot_ldflags+set}" = set; then :
5544 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5545 poststage1_ldflags=
5546 else
5547 poststage1_ldflags=$withval
5548 fi
5549else
5550 poststage1_ldflags=
7deb2d70 5551 # In stages 2 and 3, default to linking libstdc++ and libgcc
5552 # statically. But if the user explicitly specified the libraries to
5553 # use, trust that they are doing what they want.
5554 if test "$poststage1_libs" = ""; then
d6dfe18a 5555 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5556 fi
5557fi
5558
5559
5560
255b6be7 5561# Check for PPL
062b4a94 5562ppllibs=
255b6be7 5563pplinc=
062b4a94 5564pwllib=
255b6be7 5565
5566
cd9a469c 5567# Check whether --with-ppl was given.
5568if test "${with_ppl+set}" = set; then :
5569 withval=$with_ppl;
cd9a469c 5570fi
255b6be7 5571
255b6be7 5572
73f813e1 5573# Check whether --with-ppl-include was given.
cd9a469c 5574if test "${with_ppl_include+set}" = set; then :
5575 withval=$with_ppl_include;
5576fi
5577
255b6be7 5578
73f813e1 5579# Check whether --with-ppl-lib was given.
cd9a469c 5580if test "${with_ppl_lib+set}" = set; then :
5581 withval=$with_ppl_lib;
5582fi
255b6be7 5583
255b6be7 5584
062b4a94 5585# Check whether --enable-ppl-version-check was given.
5586if test "${enable_ppl_version_check+set}" = set; then :
5587 enableval=$enable_ppl_version_check;
5588fi
5589
5590
4aa0552b 5591case $with_ppl in
062b4a94 5592 yes | no | "")
539c8c59 5593 ;;
4aa0552b 5594 *)
062b4a94 5595 ppllibs="-L$with_ppl/lib"
4aa0552b 5596 pplinc="-I$with_ppl/include $pplinc"
062b4a94 5597 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5598 with_ppl=yes
5599 else
5600 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5601 fi
4aa0552b 5602 ;;
5603esac
062b4a94 5604
5605if test x"$with_ppl_include" != x; then
255b6be7 5606 pplinc="-I$with_ppl_include $pplinc"
062b4a94 5607 with_ppl=yes
255b6be7 5608fi
062b4a94 5609
255b6be7 5610if test "x$with_ppl_lib" != x; then
062b4a94 5611 ppllibs="-L$with_ppl_lib"
5612 with_ppl=yes
255b6be7 5613fi
062b4a94 5614
5615if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5616 if test x"$enable_watchdog" = xyes; then
5617 pwllib="-lpwl"
5618 fi
5619 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
eea1ae23 5620 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5621 enable_ppl_version_check=no
062b4a94 5622 with_ppl=yes
255b6be7 5623fi
5624
7aa8604d 5625if test "x$with_ppl" != xno; then
062b4a94 5626 if test "x$pwllib" = x; then
55184b41 5627 saved_LIBS="$LIBS"
5628 LIBS="$LIBS $ppllibs -lstdc++ -lm"
062b4a94 5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5630$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5631if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 ac_check_lib_save_LIBS=$LIBS
5635LIBS="-lpwl $LIBS"
5636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h. */
5638
5639/* Override any GCC internal prototype to avoid an error.
5640 Use char because int might match the return type of a GCC
5641 builtin and then its argument prototype would still apply. */
5642#ifdef __cplusplus
5643extern "C"
5644#endif
5645char PWL_handle_timeout ();
5646int
5647main ()
5648{
5649return PWL_handle_timeout ();
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654if ac_fn_c_try_link "$LINENO"; then :
5655 ac_cv_lib_pwl_PWL_handle_timeout=yes
5362e323 5656else
062b4a94 5657 ac_cv_lib_pwl_PWL_handle_timeout=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext \
5660 conftest$ac_exeext conftest.$ac_ext
5661LIBS=$ac_check_lib_save_LIBS
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5664$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5665if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5666 pwllib="-lpwl"
cd9a469c 5667fi
5668
55184b41 5669 LIBS="$saved_LIBS"
062b4a94 5670 fi
255b6be7 5671
062b4a94 5672 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5673
5674 if test "$enable_ppl_version_check" != no; then
5675 saved_CFLAGS="$CFLAGS"
5676 CFLAGS="$CFLAGS $pplinc $gmpinc"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5678$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
255b6be7 5680/* end confdefs.h. */
5681#include "ppl_c.h"
5682int
5683main ()
5684{
5685
062b4a94 5686 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5687 choke me
5688 #endif
255b6be7 5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
cd9a469c 5694if ac_fn_c_try_compile "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
255b6be7 5697else
cd9a469c 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24d0cd27 5699$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
255b6be7 5700fi
cd9a469c 5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
062b4a94 5702 CFLAGS="$saved_CFLAGS"
5703 fi
5362e323 5704fi
5705
5706# Flags needed for PPL
5707
5708
255b6be7 5709
255b6be7 5710
5362e323 5711# Check for CLOOG
a3c81e03 5712
5362e323 5713
5714
cd9a469c 5715# Check whether --with-cloog was given.
5716if test "${with_cloog+set}" = set; then :
5717 withval=$with_cloog;
cd9a469c 5718fi
5719
5362e323 5720
73f813e1 5721# Check whether --with-cloog-include was given.
cd9a469c 5722if test "${with_cloog_include+set}" = set; then :
5723 withval=$with_cloog_include;
5724fi
5362e323 5725
5362e323 5726
73f813e1 5727# Check whether --with-cloog-lib was given.
cd9a469c 5728if test "${with_cloog_lib+set}" = set; then :
5729 withval=$with_cloog_lib;
5730fi
5362e323 5731
5362e323 5732
8a0fe290 5733 # Check whether --enable-cloog-backend was given.
5734if test "${enable_cloog_backend+set}" = set; then :
5735 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5736 cloog_backend=isl
5737 elif test "x${enableval}" = "xppl"; then
5738 cloog_backend=ppl
5739 else
5740 cloog_backend=ppl-legacy
5741 fi
5742else
5743 cloog_backend=ppl-legacy
5744fi
5745
a3c81e03 5746 # Check whether --enable-cloog-version-check was given.
5747if test "${enable_cloog_version_check+set}" = set; then :
5748 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5749else
5750 ENABLE_CLOOG_CHECK=yes
5751fi
5752
5753
5754 # Initialize clooglibs and clooginc.
5755 case $with_cloog in
5756 no)
5757 clooglibs=
5758 clooginc=
5759 ;;
5760 "" | yes)
5761 ;;
5762 *)
5763 clooglibs="-L$with_cloog/lib"
5764 clooginc="-I$with_cloog/include"
5765 ;;
5766 esac
5767 if test "x${with_cloog_include}" != x ; then
5768 clooginc="-I$with_cloog_include"
5769 fi
5770 if test "x${with_cloog_lib}" != x; then
5771 clooglibs="-L$with_cloog_lib"
5772 fi
5773
5774
5775
5776
5777
3a8cd7be 5778if test "x$with_ppl" = "xno"; then
822a8dd0 5779
5780
5781
f9c26062 5782 if test "x${with_cloog}" = xno; then
5783 graphite_requested=no
5784 elif test "x${with_cloog}" != x \
822a8dd0 5785 || test "x${with_cloog_include}" != x \
5786 || test "x${with_cloog_lib}" != x ; then
5787 graphite_requested=yes
5788 else
5789 graphite_requested=no
5790 fi
5791
5792
5793 if test "${graphite_requested}" = yes; then
9e9f1ccb 5794 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
822a8dd0 5795 fi
f9c26062 5796 with_cloog=no
539c8c59 5797fi
a3c81e03 5798if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5799 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5800 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5801 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5802fi
5803if test "x$with_cloog" != "xno"; then
539c8c59 5804
a3c81e03 5805
5806
5807 _cloog_saved_CFLAGS=$CFLAGS
5808 _cloog_saved_CPPFLAGS=$CPPFLAGS
5809 _cloog_saved_LDFLAGS=$LDFLAGS
5810 _cloog_saved_LIBS=$LIBS
5811
a3c81e03 5812 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5813
8a0fe290 5814 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
81b9d148 5815 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
8a0fe290 5816 LDFLAGS="${LDFLAGS} ${clooglibs}"
5817
5818 case $cloog_backend in
5819 "ppl-legacy")
5820 CFLAGS="${CFLAGS} ${pplinc}"
5821 LDFLAGS="${LDFLAGS} ${ppllibs}"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5823$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
a3c81e03 5824if test "${gcc_cv_cloog_type+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5826else
5827 LIBS="-lcloog ${_cloog_saved_LIBS}"
8a0fe290 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3c81e03 5829/* end confdefs.h. */
81b9d148 5830#include "cloog/cloog.h"
a3c81e03 5831int
5832main ()
5833{
81b9d148 5834#ifndef CLOOG_PPL_BACKEND
5835 choke me
5836 #endif
a3c81e03 5837 ;
5838 return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842 gcc_cv_cloog_type="PPL Legacy"
5843else
8a0fe290 5844 gcc_cv_cloog_type=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5850$as_echo "$gcc_cv_cloog_type" >&6; }
5851 ;;
5852 "isl")
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5854$as_echo_n "checking for installed CLooG ISL... " >&6; }
5855if test "${gcc_cv_cloog_type+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3c81e03 5860/* end confdefs.h. */
81b9d148 5861#include "cloog/cloog.h"
a3c81e03 5862int
5863main ()
5864{
5865cloog_version ()
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_link "$LINENO"; then :
8a0fe290 5871 gcc_cv_cloog_type="ISL"
5872else
5873 gcc_cv_cloog_type=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5879$as_echo "$gcc_cv_cloog_type" >&6; }
5880 ;;
5881 "ppl")
5882 CFLAGS="${CFLAGS} ${pplinc}"
5883 LDFLAGS="${LDFLAGS} ${ppllibs}"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5885$as_echo_n "checking for installed CLooG PPL... " >&6; }
5886if test "${gcc_cv_cloog_type+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
a3c81e03 5888else
5889 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
8a0fe290 5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a3c81e03 5891/* end confdefs.h. */
81b9d148 5892#include "cloog/cloog.h"
8a0fe290 5893 #include "cloog/ppl/cloog.h"
a3c81e03 5894int
5895main ()
5896{
5897cloog_version ()
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902if ac_fn_c_try_link "$LINENO"; then :
8a0fe290 5903 gcc_cv_cloog_type="PPL"
a3c81e03 5904else
5905 gcc_cv_cloog_type=no
5362e323 5906fi
a3c81e03 5907rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
5362e323 5909fi
a3c81e03 5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5911$as_echo "$gcc_cv_cloog_type" >&6; }
8a0fe290 5912 ;;
5913 *)
5914 gcc_cv_cloog_type=""
5915 esac
cd9a469c 5916
a3c81e03 5917 case $gcc_cv_cloog_type in
5918 "PPL Legacy")
81b9d148 5919 clooginc="${clooginc}"
a3c81e03 5920 clooglibs="${clooglibs} -lcloog"
5921 cloog_org=no
5922 ;;
5923 "ISL")
5924 clooginc="${clooginc} ${_cloogorginc}"
f9f211c9 5925 clooglibs="${clooglibs} -lcloog-isl -lisl"
a3c81e03 5926 cloog_org=yes
5927 ;;
5928 "PPL")
5929 clooginc="${clooginc} ${_cloogorginc}"
5930 clooglibs="${clooglibs} -lcloog-ppl"
5931 cloog_org=yes
5932 ;;
5933 *)
5934 clooglibs=
5935 clooginc=
5936 cloog_org=
5937 ;;
5938 esac
5362e323 5939
a3c81e03 5940 LIBS=$_cloog_saved_LIBS
5941 CFLAGS=$_cloog_saved_CFLAGS
5942 CPPFLAGS=$_cloog_saved_CPPFLAGS
5943 LDFLAGS=$_cloog_saved_LDFLAGS
5944
5945
5946
5947
5948
5949 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5950 _cloog_saved_CFLAGS=$CFLAGS
5951 _cloog_saved_LDFLAGS=$LDFLAGS
5952
5953 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
88e8cc3e 5954 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
a3c81e03 5955
5956 if test "${cloog_org}" = yes ; then
12072151 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5958$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
a3c81e03 5959if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5961else
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h. */
5964#include "cloog/cloog.h"
5965int
5966main ()
5967{
5968#if CLOOG_VERSION_MAJOR != 0 \
12072151 5969 || CLOOG_VERSION_MINOR != 16 \
5970 || CLOOG_VERSION_REVISION < 1
a3c81e03 5971 choke me
5972 #endif
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977if ac_fn_c_try_compile "$LINENO"; then :
5978 gcc_cv_cloog_ct_0_14_0=yes
5979else
5980 gcc_cv_cloog_ct_0_14_0=no
5981fi
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5985$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5986 elif test "${cloog_org}" = no ; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
cff3778c 5988$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
a3c81e03 5989if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991else
cd9a469c 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
255b6be7 5993/* end confdefs.h. */
5994#include "cloog/cloog.h"
5995int
5996main ()
5997{
a3c81e03 5998#if CLOOG_VERSION_MAJOR != 0 \
5999 || CLOOG_VERSION_MINOR != 15 \
6000 || CLOOG_VERSION_REVISION < 5
6001 choke me
6002 #endif
255b6be7 6003 ;
6004 return 0;
6005}
6006_ACEOF
1279b87b 6007if ac_fn_c_try_compile "$LINENO"; then :
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h. */
6010#include "cloog/cloog.h"
6011int
6012main ()
6013{
a3c81e03 6014#if CLOOG_VERSION_MAJOR != 0 \
6015 || CLOOG_VERSION_MINOR != 15 \
6016 || CLOOG_VERSION_REVISION < 9
6017 choke me
6018 #endif
1279b87b 6019 ;
6020 return 0;
6021}
6022_ACEOF
cd9a469c 6023if ac_fn_c_try_compile "$LINENO"; then :
a3c81e03 6024 gcc_cv_cloog_ct_0_15_5=yes
1279b87b 6025else
a3c81e03 6026 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
1279b87b 6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
255b6be7 6029else
a3c81e03 6030 gcc_cv_cloog_ct_0_15_5=no
255b6be7 6031fi
cd9a469c 6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362e323 6033fi
a3c81e03 6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6035$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6036 fi
6037
6038 CFLAGS=$_cloog_saved_CFLAGS
6039 LDFLAGS=$_cloog_saved_LDFLAGS
6040 fi
255b6be7 6041
255b6be7 6042
6043
6044
a3c81e03 6045
6046
6047
f9c26062 6048 if test "x${with_cloog}" = xno; then
6049 graphite_requested=no
6050 elif test "x${with_cloog}" != x \
a3c81e03 6051 || test "x${with_cloog_include}" != x \
6052 || test "x${with_cloog_lib}" != x ; then
6053 graphite_requested=yes
6054 else
6055 graphite_requested=no
6056 fi
6057
6058
6059
6060 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6061 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6062 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6063 clooglibs=
6064 clooginc=
6065 fi
6066
6067 if test "${graphite_requested}" = yes \
6068 && test "x${clooglibs}" = x \
6069 && test "x${clooginc}" = x ; then
6070
822a8dd0 6071 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
a3c81e03 6072 fi
6073
6074
6075fi
6076
7bfefa9d 6077# Check for LTO support.
6078# Check whether --enable-lto was given.
6079if test "${enable_lto+set}" = set; then :
6080 enableval=$enable_lto; enable_lto=$enableval
6081else
6082 enable_lto=yes; default_enable_lto=yes
6083fi
6084
6085
1a4f45ec 6086
9bdbb0bc 6087
6088
6089target_elf=no
6090case $target in
6091 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
4d72c922 6092 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9bdbb0bc 6093 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6094 target_elf=no
6095 ;;
6096 *)
6097 target_elf=yes
6098 ;;
6099esac
6100
6101if test $target_elf = yes; then :
25630dc7 6102 # ELF platforms build the lto-plugin always.
6103 build_lto_plugin=yes
9bdbb0bc 6104
9bdbb0bc 6105else
6106 if test x"$default_enable_lto" = x"yes" ; then
4ae8c98f 6107 case $target in
b990d06f 6108 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
25630dc7 6109 # On other non-ELF platforms, LTO has yet to be validated.
4ae8c98f 6110 *) enable_lto=no ;;
6111 esac
9bdbb0bc 6112 else
62932e4d 6113 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6114 # It would also be nice to check the binutils support, but we don't
9bdbb0bc 6115 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6116 # warn during gcc/ subconfigure; unless you're bootstrapping with
6117 # -flto it won't be needed until after installation anyway.
6118 case $target in
ca42e774 6119 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9bdbb0bc 6120 *) if test x"$enable_lto" = x"yes"; then
6121 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6122 fi
6123 ;;
6124 esac
6125 fi
ca42e774 6126 # Among non-ELF, only Windows platforms support the lto-plugin so far.
25630dc7 6127 # Build it unless LTO was explicitly disabled.
ca42e774 6128 case $target in
25630dc7 6129 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
ca42e774 6130 *) ;;
6131 esac
25630dc7 6132
9bdbb0bc 6133fi
6134
7bfefa9d 6135
255b6be7 6136
8e6391a6 6137# By default, C is the only stage 1 language.
9c3a0a29 6138stage1_languages=,c,
2d64c2fd 6139
7ab76cec 6140# Target libraries that we bootstrap.
5c96a839 6141bootstrap_target_libs=,target-libgcc,
7ab76cec 6142
8e1fea1a 6143# Figure out what language subdirectories are present.
6144# Look if the user specified --enable-languages="..."; if not, use
6145# the environment variable $LANGUAGES if defined. $LANGUAGES might
6146# go away some day.
6147# NB: embedded tabs in this IF block -- do not untabify
6148if test -d ${srcdir}/gcc; then
6149 if test x"${enable_languages+set}" != xset; then
6150 if test x"${LANGUAGES+set}" = xset; then
6151 enable_languages="${LANGUAGES}"
6152 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6153 else
6154 enable_languages=all
6155 fi
6156 else
6157 if test x"${enable_languages}" = x ||
6158 test x"${enable_languages}" = xyes;
6159 then
6160 echo configure.in: --enable-languages needs at least one language argument 1>&2
6161 exit 1
6162 fi
6163 fi
6164 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6165
2c718da0 6166 # 'f95' is the old name for the 'fortran' language. We issue a warning
6167 # and make the substitution.
6168 case ,${enable_languages}, in
6169 *,f95,*)
6170 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6171 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6172 ;;
6173 esac
6174
6c59dfa4 6175 # If bootstrapping, then using --enable-build-with-cxx or
6176 # --enable-build-poststage1-with-cxx requires enabling C++.
6177 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6178 *,c++,*:*:*) ;;
6179 *:*,yes,*:yes)
6180 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6181 enable_languages="${enable_languages},c++"
6182 else
6183 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6184 fi
6185 ;;
6186 esac
6187
8e1fea1a 6188 # First scan to see if an enabled language requires some other language.
6189 # We assume that a given config-lang.in will list all the language
6190 # front ends it requires, even if some are required indirectly.
6191 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6192 case ${lang_frag} in
6193 ..) ;;
6194 # The odd quoting in the next line works around
6195 # an apparent bug in bash 1.12 on linux.
6196 ${srcdir}/gcc/[*]/config-lang.in) ;;
6197 *)
101ddbe4 6198 # From the config-lang.in, get $language, $lang_requires, and
6199 # $lang_requires_boot_languages.
8e1fea1a 6200 language=
6201 lang_requires=
101ddbe4 6202 lang_requires_boot_languages=
8e1fea1a 6203 . ${lang_frag}
101ddbe4 6204 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8e1fea1a 6205 case ,${enable_languages}, in
6206 *,$other,*) ;;
6207 *,all,*) ;;
6208 *,$language,*)
6209 echo " \`$other' language required by \`$language'; enabling" 1>&2
6210 enable_languages="${enable_languages},${other}"
6211 ;;
6212 esac
6213 done
101ddbe4 6214 for other in ${lang_requires_boot_languages} ; do
6215 if test "$other" != "c"; then
6216 case ,${enable_stage1_languages}, in
6217 *,$other,*) ;;
6218 *,all,*) ;;
6219 *)
6220 case ,${enable_languages}, in
6221 *,$language,*)
6222 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6223 enable_stage1_languages="$enable_stage1_languages,${other}"
6224 ;;
6225 esac
6226 ;;
6227 esac
6228 fi
6229 done
8e1fea1a 6230 ;;
6231 esac
6232 done
6233
9c3a0a29 6234 new_enable_languages=,c,
7bfefa9d 6235
6236 # If LTO is enabled, add the LTO front end.
6237 extra_host_libiberty_configure_flags=
6238 if test "$enable_lto" = "yes" ; then
d6ef094a 6239 case ,${enable_languages}, in
6240 *,lto,*) ;;
6241 *) enable_languages="${enable_languages},lto" ;;
6242 esac
ca42e774 6243 if test "${build_lto_plugin}" = "yes" ; then
7bfefa9d 6244 configdirs="$configdirs lto-plugin"
6245 extra_host_libiberty_configure_flags=--enable-shared
6246 fi
6247 fi
6248
6249
8e1fea1a 6250 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9c3a0a29 6251 potential_languages=,c,
8e1fea1a 6252
604a285a 6253 enabled_target_libs=
6254 disabled_target_libs=
6255
8e1fea1a 6256 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6257 case ${lang_frag} in
6258 ..) ;;
6259 # The odd quoting in the next line works around
6260 # an apparent bug in bash 1.12 on linux.
6261 ${srcdir}/gcc/[*]/config-lang.in) ;;
6262 *)
b30fcfae 6263 # From the config-lang.in, get $language, $target_libs,
2d64c2fd 6264 # $lang_dirs, $boot_language, and $build_by_default
8e1fea1a 6265 language=
6266 target_libs=
6267 lang_dirs=
5dee13c2 6268 subdir_requires=
9c3a0a29 6269 boot_language=no
6270 build_by_default=yes
8e1fea1a 6271 . ${lang_frag}
9c3a0a29 6272 if test x${language} = x; then
6273 echo "${lang_frag} doesn't set \$language." 1>&2
6274 exit 1
6275 fi
6276
ef3c41c7 6277 if test "$language" = "c++"; then
6278 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6279 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6280 boot_language=yes
6281 fi
7ab76cec 6282 fi
6283
9c3a0a29 6284 case ,${enable_languages}, in
6285 *,${language},*)
8e1fea1a 6286 # Language was explicitly selected; include it.
6287 add_this_lang=yes
6288 ;;
9c3a0a29 6289 *,all,*)
6290 # 'all' was selected, select it if it is a default language
6291 add_this_lang=${build_by_default}
8e1fea1a 6292 ;;
6293 *)
6294 add_this_lang=no
6295 ;;
6296 esac
4ee9c684 6297
5dee13c2 6298 # Disable languages that need other directories if these aren't available.
9333ae0b 6299 for i in $subdir_requires; do
3891e7d9 6300 test -f "$srcdir/gcc/$i/config-lang.in" && continue
5dee13c2 6301 case ,${enable_languages}, in
6302 *,${language},*)
6303 # Specifically requested language; tell them.
cd9a469c 6304 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
5dee13c2 6305 ;;
6306 *)
6307 # Silently disable.
9c3a0a29 6308 add_this_lang=unsupported
5dee13c2 6309 ;;
6310 esac
6311 done
6312
9c3a0a29 6313 # Disable Ada if no preexisting GNAT is available.
6314 case ,${enable_languages},:${language}:${have_gnat} in
6315 *,${language},*:ada:no)
6316 # Specifically requested language; tell them.
cd9a469c 6317 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9c3a0a29 6318 ;;
6319 *:ada:no)
6320 # Silently disable.
6321 add_this_lang=unsupported
6322 ;;
6323 esac
6324
ff7dcf6a 6325 # Disable a language that is unsupported by the target.
6326 case " $unsupported_languages " in
6327 *" $language "*)
9c3a0a29 6328 add_this_lang=unsupported
ff7dcf6a 6329 ;;
6330 esac
6331
4ee9c684 6332 case $add_this_lang in
9c3a0a29 6333 unsupported)
8e1fea1a 6334 # Remove language-dependent dirs.
604a285a 6335 disabled_target_libs="$disabled_target_libs $target_libs"
6336 noconfigdirs="$noconfigdirs $lang_dirs"
2d64c2fd 6337 ;;
9c3a0a29 6338 no)
6339 # Remove language-dependent dirs; still show language as supported.
604a285a 6340 disabled_target_libs="$disabled_target_libs $target_libs"
6341 noconfigdirs="$noconfigdirs $lang_dirs"
9c3a0a29 6342 potential_languages="${potential_languages}${language},"
6343 ;;
6344 yes)
6345 new_enable_languages="${new_enable_languages}${language},"
6346 potential_languages="${potential_languages}${language},"
2d64c2fd 6347 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
604a285a 6348 enabled_target_libs="$enabled_target_libs $target_libs"
32027446 6349 case "${boot_language}:,$enable_stage1_languages," in
6350 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
aff6cf7b 6351 # Add to (comma-separated) list of stage 1 languages.
32027446 6352 case ",$stage1_languages," in
6353 *,$language,* | ,yes, | ,all,) ;;
6354 *) stage1_languages="${stage1_languages}${language}," ;;
6355 esac
7ab76cec 6356 # We need to bootstrap any supporting libraries.
6357 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2d64c2fd 6358 ;;
6359 esac
6360 ;;
8e1fea1a 6361 esac
6362 ;;
6363 esac
6364 done
6365
604a285a 6366 # Add target libraries which are only needed for disabled languages
6367 # to noconfigdirs.
6368 if test -n "$disabled_target_libs"; then
6369 for dir in $disabled_target_libs; do
6370 case " $enabled_target_libs " in
6371 *" ${dir} "*) ;;
6372 *) noconfigdirs="$noconfigdirs $dir" ;;
6373 esac
6374 done
6375 fi
6376
cd9a469c 6377 # Check whether --enable-stage1-languages was given.
6378if test "${enable_stage1_languages+set}" = set; then :
6379 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9c3a0a29 6380 ,no,|,,)
6381 # Set it to something that will have no effect in the loop below
6382 enable_stage1_languages=c ;;
6383 ,yes,)
6384 enable_stage1_languages=`echo $new_enable_languages | \
6385 sed -e "s/^,//" -e "s/,$//" ` ;;
6386 *,all,*)
6387 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6388 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6389 esac
6390
6391 # Add "good" languages from enable_stage1_languages to stage1_languages,
6392 # while "bad" languages go in missing_languages. Leave no duplicates.
6393 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6394 case $potential_languages in
6395 *,$i,*)
6396 case $stage1_languages in
6397 *,$i,*) ;;
6398 *) stage1_languages="$stage1_languages$i," ;;
6399 esac ;;
6400 *)
6401 case $missing_languages in
6402 *,$i,*) ;;
6403 *) missing_languages="$missing_languages$i," ;;
6404 esac ;;
6405 esac
6406 done
cd9a469c 6407fi
6408
9c3a0a29 6409
6410 # Remove leading/trailing commas that were added for simplicity
6411 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
989edd2f 6412 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9c3a0a29 6413 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6414 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6415
8e1fea1a 6416 if test "x$missing_languages" != x; then
cd9a469c 6417 as_fn_error "
e8bfe1fa 6418The following requested languages could not be built: ${missing_languages}
cd9a469c 6419Supported languages are: ${potential_languages}" "$LINENO" 5
8e1fea1a 6420 fi
8e1fea1a 6421 if test "x$new_enable_languages" != "x$enable_languages"; then
6422 echo The following languages will be built: ${new_enable_languages}
9c3a0a29 6423 enable_languages="$new_enable_languages"
8e1fea1a 6424 fi
9c3a0a29 6425
b30fcfae 6426
b0e9b581 6427 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8e1fea1a 6428fi
6429
50996fe5 6430# Handle --disable-<component> generically.
6431for dir in $configdirs $build_configdirs $target_configdirs ; do
6432 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
d2d2630b 6433 varname=`echo $dirname | sed -e s/+/_/g`
6434 if eval test x\${enable_${varname}} "=" xno ; then
50996fe5 6435 noconfigdirs="$noconfigdirs $dir"
6436 fi
6437done
6438
dd6d3a67 6439# Check for Boehm's garbage collector
cd9a469c 6440# Check whether --enable-objc-gc was given.
6441if test "${enable_objc_gc+set}" = set; then :
6442 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
dd6d3a67 6443 *,objc,*:*:yes:*target-boehm-gc*)
cd9a469c 6444 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
dd6d3a67 6445 ;;
6446esac
cd9a469c 6447fi
6448
dd6d3a67 6449
6450# Make sure we only build Boehm's garbage collector if required.
f1716c67 6451case ,${enable_languages},:${enable_objc_gc} in
6452 *,objc,*:yes)
dd6d3a67 6453 # Keep target-boehm-gc if requested for Objective-C.
6454 ;;
dd6d3a67 6455 *)
f1716c67 6456 # Otherwise remove target-boehm-gc depending on target-libjava.
6457 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6458 noconfigdirs="$noconfigdirs target-boehm-gc"
6459 fi
dd6d3a67 6460 ;;
6461esac
6462
e8eddfdd 6463# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464# $build_configdirs and $target_configdirs.
8e1fea1a 6465# If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467notsupp=""
6468for dir in . $skipdirs $noconfigdirs ; do
e8eddfdd 6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8e1fea1a 6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
e8eddfdd 6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
8e1fea1a 6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500done
6501
8e1fea1a 6502# Quietly strip out all directories which aren't configurable in this tree.
6503# This relies on all configurable subdirectories being autoconfiscated, which
6504# is now the case.
2f8725b0 6505build_configdirs_all="$build_configdirs"
6506build_configdirs=
6507for i in ${build_configdirs_all} ; do
b30fcfae 6508 j=`echo $i | sed -e s/build-//g`
2f8725b0 6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6511 fi
6512done
6513
8e1fea1a 6514configdirs_all="$configdirs"
6515configdirs=
6516for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6519 fi
6520done
2f8725b0 6521
8e1fea1a 6522target_configdirs_all="$target_configdirs"
6523target_configdirs=
6524for i in ${target_configdirs_all} ; do
b30fcfae 6525 j=`echo $i | sed -e s/target-//g`
8e1fea1a 6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6528 fi
6529done
6530
6531# Produce a warning message for the subdirs we can't configure.
6532# This isn't especially interesting in the Cygnus tree, but in the individual
6533# FSF releases, it's important to let people know when their machine isn't
6534# supported by the one or two programs in a package.
6535
6536if test -n "${notsupp}" && test -z "${norecursion}" ; then
6537 # If $appdirs is non-empty, at least one of those directories must still
6538 # be configured, or we error out. (E.g., if the gas release supports a
6539 # specified target in some subdirs but not the gas subdir, we shouldn't
6540 # pretend that all is well.)
6541 if test -n "$appdirs" ; then
6542 for dir in $appdirs ; do
6543 if test -r $dir/Makefile.in ; then
6544 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6545 appdirs=""
6546 break
6547 fi
2f8725b0 6548 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
8e1fea1a 6549 appdirs=""
6550 break
6551 fi
6552 fi
6553 done
6554 if test -n "$appdirs" ; then
6555 echo "*** This configuration is not supported by this package." 1>&2
6556 exit 1
6557 fi
6558 fi
6559 # Okay, some application will build, or we don't care to check. Still
6560 # notify of subdirs not getting built.
6561 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6562 echo " ${notsupp}" 1>&2
6563 echo " (Any other directories should still work fine.)" 1>&2
6564fi
6565
6566case "$host" in
6567 *msdosdjgpp*)
6568 enable_gdbtk=no ;;
6569esac
6570
eae5b2bc 6571# To find our prefix, in gcc_cv_tool_prefix.
6572
6573# The user is always right.
6574if test "${PATH_SEPARATOR+set}" != set; then
6575 echo "#! /bin/sh" >conf$$.sh
6576 echo "exit 0" >>conf$$.sh
6577 chmod +x conf$$.sh
6578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6579 PATH_SEPARATOR=';'
6580 else
6581 PATH_SEPARATOR=:
6582 fi
6583 rm -f conf$$.sh
6584fi
6585
6586
6587
6588if test "x$exec_prefix" = xNONE; then
6589 if test "x$prefix" = xNONE; then
6590 gcc_cv_tool_prefix=$ac_default_prefix
6591 else
6592 gcc_cv_tool_prefix=$prefix
6593 fi
6594else
6595 gcc_cv_tool_prefix=$exec_prefix
6596fi
6597
6598# If there is no compiler in the tree, use the PATH only. In any
6599# case, if there is no compiler in the tree nobody should use
6600# AS_FOR_TARGET and LD_FOR_TARGET.
6601if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6602 gcc_version=`cat $srcdir/gcc/BASE-VER`
6603 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6604 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6605 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6606 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6609else
6610 gcc_cv_tool_dirs=
6611fi
6612
6613if test x$build = x$target && test -n "$md_exec_prefix"; then
6614 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6615fi
6616
6617
6618
8e1fea1a 6619copy_dirs=
6620
b30fcfae 6621
cd9a469c 6622# Check whether --with-build-sysroot was given.
6623if test "${with_build_sysroot+set}" = set; then :
6624 withval=$with_build_sysroot; if test x"$withval" != x ; then
ffa8502d 6625 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6626 fi
6627else
6628 SYSROOT_CFLAGS_FOR_TARGET=
cd9a469c 6629fi
ffa8502d 6630
6631
5f1f2de5 6632
cd9a469c 6633
6634# Check whether --with-debug-prefix-map was given.
6635if test "${with_debug_prefix_map+set}" = set; then :
6636 withval=$with_debug_prefix_map; if test x"$withval" != x; then
5f1f2de5 6637 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6638 for debug_map in $withval; do
6639 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6640 done
6641 fi
6642else
6643 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
cd9a469c 6644fi
6645
5f1f2de5 6646
6647
c898f165 6648# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6649# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6650# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6651# We want to ensure that TARGET libraries (which we know are built with
6652# gcc) are built with "-O2 -g", so include those options when setting
6653# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6654if test "x$CFLAGS_FOR_TARGET" = x; then
6655 CFLAGS_FOR_TARGET=$CFLAGS
6656 case " $CFLAGS " in
6657 *" -O2 "*) ;;
6658 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6659 esac
6660 case " $CFLAGS " in
6661 *" -g "* | *" -g3 "*) ;;
6662 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6663 esac
6664fi
6665
6666
6667if test "x$CXXFLAGS_FOR_TARGET" = x; then
6668 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6669 case " $CXXFLAGS " in
6670 *" -O2 "*) ;;
6671 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6672 esac
6673 case " $CXXFLAGS " in
6674 *" -g "* | *" -g3 "*) ;;
6675 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6676 esac
6677fi
6678
6679
ed9516f5 6680
6681
8e1fea1a 6682# Handle --with-headers=XXX. If the value is not "yes", the contents of
6683# the named directory are copied to $(tooldir)/sys-include.
6684if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6685 if test x${is_cross_compiler} = xno ; then
6686 echo 1>&2 '***' --with-headers is only supported when cross compiling
6687 exit 1
6688 fi
6689 if test x"${with_headers}" != xyes ; then
eae5b2bc 6690 x=${gcc_cv_tool_prefix}
b30fcfae 6691 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
8e1fea1a 6692 fi
6693fi
6694
6695# Handle --with-libs=XXX. If the value is not "yes", the contents of
6696# the name directories are copied to $(tooldir)/lib. Multiple directories
6697# are permitted.
6698if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6699 if test x${is_cross_compiler} = xno ; then
6700 echo 1>&2 '***' --with-libs is only supported when cross compiling
6701 exit 1
6702 fi
6703 if test x"${with_libs}" != xyes ; then
6704 # Copy the libraries in reverse order, so that files in the first named
6705 # library override files in subsequent libraries.
eae5b2bc 6706 x=${gcc_cv_tool_prefix}
8e1fea1a 6707 for l in ${with_libs}; do
b30fcfae 6708 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
8e1fea1a 6709 done
6710 fi
6711fi
6712
7bfefa9d 6713# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
c47832b1 6714#
6715# This is done by determining whether or not the appropriate directory
6716# is available, and by checking whether or not specific configurations
6717# have requested that this magic not happen.
b30fcfae 6718#
6719# The command line options always override the explicit settings in
c47832b1 6720# configure.in, and the settings in configure.in override this magic.
6721#
b30fcfae 6722# If the default for a toolchain is to use GNU as and ld, and you don't
c47832b1 6723# want to do that, then you should use the --without-gnu-as and
7bfefa9d 6724# --without-gnu-ld options for the configure script. Similarly, if
6725# the default is to use the included zlib and you don't want to do that,
6726# you should use the --with-system-zlib option for the configure script.
c47832b1 6727
6728if test x${use_gnu_as} = x &&
6729 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6730 with_gnu_as=yes
6731 extra_host_args="$extra_host_args --with-gnu-as"
6732fi
6733
6734if test x${use_gnu_ld} = x &&
3d47fcf5 6735 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
c47832b1 6736 with_gnu_ld=yes
6737 extra_host_args="$extra_host_args --with-gnu-ld"
6738fi
6739
7bfefa9d 6740if test x${use_included_zlib} = x &&
6741 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6742 :
6743else
6744 with_system_zlib=yes
6745 extra_host_args="$extra_host_args --with-system-zlib"
6746fi
6747
c47832b1 6748# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6749# can detect this case.
6750
6751if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6752 with_newlib=yes
6753 extra_host_args="$extra_host_args --with-newlib"
6754fi
6755
8e1fea1a 6756# Handle ${copy_dirs}
6757set fnord ${copy_dirs}
6758shift
6759while test $# != 0 ; do
6760 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6761 :
6762 else
6763 echo Copying $1 to $2
6764
6765 # Use the install script to create the directory and all required
6766 # parent directories.
6767 if test -d $2 ; then
6768 :
6769 else
6770 echo >config.temp
6771 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6772 fi
6773
6774 # Copy the directory, assuming we have tar.
6775 # FIXME: Should we use B in the second tar? Not all systems support it.
6776 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6777
6778 # It is the responsibility of the user to correctly adjust all
6779 # symlinks. If somebody can figure out how to handle them correctly
6780 # here, feel free to add the code.
6781
6782 echo $1 > $2/COPIED
6783 fi
6784 shift; shift
6785done
6786
c47832b1 6787# Determine a target-dependent exec_prefix that the installed
6788# gcc will search in. Keep this list sorted by triplet, with
6789# the *-*-osname triplets last.
6790md_exec_prefix=
6791case "${target}" in
09c2d953 6792 i[34567]86-pc-msdosdjgpp*)
c47832b1 6793 md_exec_prefix=/dev/env/DJDIR/bin
6794 ;;
c47832b1 6795 *-*-hpux* | \
c47832b1 6796 *-*-nto-qnx* | \
93faf308 6797 *-*-solaris2*)
c47832b1 6798 md_exec_prefix=/usr/ccs/bin
6799 ;;
6800esac
6801
71ab34df 6802extra_arflags_for_target=
6803extra_nmflags_for_target=
6804extra_ranlibflags_for_target=
6805target_makefile_frag=/dev/null
6806case "${target}" in
57c7de11 6807 spu-*-*)
6808 target_makefile_frag="config/mt-spu"
6809 ;;
f8520ad7 6810 mips*-sde-elf*)
6811 target_makefile_frag="config/mt-sde"
6812 ;;
3013c2c7 6813 mipsisa*-*-elfoabi*)
6814 target_makefile_frag="config/mt-mips-elfoabi"
6815 ;;
559b0712 6816 mips*-*-*linux* | mips*-*-gnu*)
6817 target_makefile_frag="config/mt-mips-gnu"
6818 ;;
3bef4012 6819 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
cb8a7007 6820 target_makefile_frag="config/mt-gnu"
71ab34df 6821 ;;
6822 *-*-aix4.[3456789]* | *-*-aix[56789].*)
b30fcfae 6823 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
71ab34df 6824 # commands to handle both 32-bit and 64-bit objects. These flags are
6825 # harmless if we're using GNU nm or ar.
6826 extra_arflags_for_target=" -X32_64"
6827 extra_nmflags_for_target=" -B -X32_64"
6828 ;;
1384f0b0 6829 *-*-darwin[3-9]*)
6830 # ranlib before Darwin10 requires the -c flag to look at common symbols.
71ab34df 6831 extra_ranlibflags_for_target=" -c"
6832 ;;
71ab34df 6833esac
6834
6835alphaieee_frag=/dev/null
6836case $target in
6837 alpha*-*-*)
6838 # This just makes sure to use the -mieee option to build target libs.
6839 # This should probably be set individually by each library.
6840 alphaieee_frag="config/mt-alphaieee"
6841 ;;
6842esac
6843
6844# If --enable-target-optspace always use -Os instead of -O2 to build
6845# the target libraries, similarly if it is not specified, use -Os
6846# on selected platforms.
6847ospace_frag=/dev/null
6848case "${enable_target_optspace}:${target}" in
6849 yes:*)
6850 ospace_frag="config/mt-ospace"
6851 ;;
6852 :d30v-*)
6853 ospace_frag="config/mt-d30v"
6854 ;;
6855 :m32r-* | :d10v-* | :fr30-*)
6856 ospace_frag="config/mt-ospace"
6857 ;;
6858 no:* | :*)
6859 ;;
6860 *)
6861 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6862 ;;
6863esac
6864
71ab34df 6865# Default to using --with-stabs for certain targets.
6866if test x${with_stabs} = x ; then
6867 case "${target}" in
d74dd50d 6868 mips*-*-irix[56]*)
71ab34df 6869 ;;
6870 mips*-*-* | alpha*-*-osf*)
6871 with_stabs=yes;
6872 extra_host_args="${extra_host_args} --with-stabs"
6873 ;;
6874 esac
6875fi
6876
71ab34df 6877# Some systems (e.g., one of the i386-aix systems the gas testers are
6878# using) don't handle "\$" correctly, so don't use it here.
b30fcfae 6879tooldir='${exec_prefix}'/${target_noncanonical}
71ab34df 6880build_tooldir=${tooldir}
6881
71ab34df 6882# Create a .gdbinit file which runs the one in srcdir
6883# and tells GDB to look there for source files.
6884
6885if test -r ${srcdir}/.gdbinit ; then
6886 case ${srcdir} in
6887 .) ;;
6888 *) cat > ./.gdbinit <<EOF
6889# ${NO_EDIT}
6890dir ${srcdir}
6891dir .
6892source ${srcdir}/.gdbinit
6893EOF
6894 ;;
6895 esac
6896fi
6897
71ab34df 6898# Make sure that the compiler is able to generate an executable. If it
6899# can't, we are probably in trouble. We don't care whether we can run the
6900# executable--we might be using a cross compiler--we only care whether it
6901# can be created. At this point the main configure script has set CC.
6902we_are_ok=no
6903echo "int main () { return 0; }" > conftest.c
6904${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6905if test $? = 0 ; then
6906 if test -s conftest || test -s conftest.exe ; then
6907 we_are_ok=yes
6908 fi
b30fcfae 6909fi
71ab34df 6910case $we_are_ok in
6911 no)
6912 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6913 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6914 rm -f conftest*
6915 exit 1
6916 ;;
6917esac
6918rm -f conftest*
6919
7d804f04 6920# Decide which environment variable is used to find dynamic libraries.
71ab34df 6921case "${host}" in
6922 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
b2240ff6 6923 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
7d804f04 6924 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
71ab34df 6925 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6926esac
6927
7d804f04 6928# On systems where the dynamic library environment variable is PATH,
6929# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6930# built executables to PATH.
6931if test "$RPATH_ENVVAR" = PATH; then
6932 GCC_SHLIB_SUBDIR=/shlib
6933else
6934 GCC_SHLIB_SUBDIR=
6935fi
6936
71ab34df 6937# Record target_configdirs and the configure arguments for target and
6938# build configuration in Makefile.
6939target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
2f8725b0 6940build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
71ab34df 6941
5c96a839 6942# If we are building libgomp, bootstrap it.
6943if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6944 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6945fi
6946
71ab34df 6947# Determine whether gdb needs tk/tcl or not.
6948# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6949# and in that case we want gdb to be built without tk. Ugh!
6950# In fact I believe gdb is the *only* package directly dependent on tk,
6951# so we should be able to put the 'maybe's in unconditionally and
6952# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6953# 100% sure that that's safe though.
8fdaf281 6954
f843f075 6955gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
71ab34df 6956case "$enable_gdbtk" in
6957 no)
6958 GDB_TK="" ;;
8fdaf281 6959 yes)
6960 GDB_TK="${gdb_tk}" ;;
71ab34df 6961 *)
8fdaf281 6962 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6963 # distro. Eventually someone will fix this and move Insight, nee
6964 # gdbtk to a separate directory.
6965 if test -d ${srcdir}/gdb/gdbtk ; then
6966 GDB_TK="${gdb_tk}"
6967 else
6968 GDB_TK=""
6969 fi
6970 ;;
71ab34df 6971esac
415470be 6972CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6973INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
71ab34df 6974
01b41571 6975# Strip out unwanted targets.
6f4f34a7 6976
6977# While at that, we remove Makefiles if we were started for recursive
6978# configuration, so that the top-level Makefile reconfigures them,
6979# like we used to do when configure itself was recursive.
6f4f34a7 6980
8bb79148 6981# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6982# but now we're fixing up the Makefile ourselves with the additional
6983# commands passed to AC_CONFIG_FILES. Use separate variables
6984# extrasub-{build,host,target} not because there is any reason to split
6985# the substitutions up that way, but only to remain below the limit of
6986# 99 commands in a script, for HP-UX sed.
6987# Do not nest @if/@endif pairs, because configure will not warn you at all.
6f4f34a7 6988
7b5fee3e 6989case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6990 yes:yes:*\ gold\ *:*,c++,*) ;;
6991 yes:yes:*\ gold\ *:*)
6992 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6993 ;;
6994esac
6995
3c782584 6996# Adjust the toplevel makefile according to whether bootstrap was selected.
719faf1c 6997case $enable_bootstrap in
54f0538b 6998 yes)
719faf1c 6999 bootstrap_suffix=bootstrap
7000 BUILD_CONFIG=bootstrap-debug
7001 ;;
54f0538b 7002 no)
719faf1c 7003 bootstrap_suffix=no-bootstrap
7004 BUILD_CONFIG=
7005 ;;
54f0538b 7006esac
7007
719faf1c 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7009$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
a2059f7a 7010
7011
7012# Check whether --with-build-config was given.
7013if test "${with_build_config+set}" = set; then :
7014 withval=$with_build_config; case $with_build_config in
7015 yes) with_build_config= ;;
7016 no) with_build_config= BUILD_CONFIG= ;;
7017 esac
7018fi
7019
7020
719faf1c 7021if test "x${with_build_config}" != x; then
7022 BUILD_CONFIG=$with_build_config
7023else
7024 case $BUILD_CONFIG in
7025 bootstrap-debug)
7026 if echo "int f (void) { return 0; }" > conftest.c &&
7027 ${CC} -c conftest.c &&
7028 mv conftest.o conftest.o.g0 &&
7029 ${CC} -c -g conftest.c &&
7030 mv conftest.o conftest.o.g &&
affd1d61 7031 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
719faf1c 7032 :
7033 else
7034 BUILD_CONFIG=
7035 fi
7036 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7037 ;;
7038 esac
7039fi
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7041$as_echo "$BUILD_CONFIG" >&6; }
7042
7043
8bb79148 7044extrasub_build=
2f8725b0 7045for module in ${build_configdirs} ; do
93f93279 7046 if test -z "${no_recursion}" \
7047 && test -f ${build_subdir}/${module}/Makefile; then
7048 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7049 rm -f ${build_subdir}/${module}/Makefile
7050 fi
8bb79148 7051 extrasub_build="$extrasub_build
93f93279 7052/^@if build-$module\$/d
7053/^@endif build-$module\$/d
7054/^@if build-$module-$bootstrap_suffix\$/d
7055/^@endif build-$module-$bootstrap_suffix\$/d"
7056done
8bb79148 7057extrasub_host=
93f93279 7058for module in ${configdirs} ; do
9c19a746 7059 if test -z "${no_recursion}"; then
35d84d10 7060 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9c19a746 7061 if test -f ${file}; then
7062 echo 1>&2 "*** removing ${file} to force reconfigure"
7063 rm -f ${file}
7064 fi
7065 done
93f93279 7066 fi
8bb79148 7067 extrasub_host="$extrasub_host
93f93279 7068/^@if $module\$/d
7069/^@endif $module\$/d
7070/^@if $module-$bootstrap_suffix\$/d
7071/^@endif $module-$bootstrap_suffix\$/d"
7072done
8bb79148 7073extrasub_target=
93f93279 7074for module in ${target_configdirs} ; do
7075 if test -z "${no_recursion}" \
7076 && test -f ${target_subdir}/${module}/Makefile; then
7077 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7078 rm -f ${target_subdir}/${module}/Makefile
7079 fi
7ab76cec 7080
7081 # We only bootstrap target libraries listed in bootstrap_target_libs.
7082 case $bootstrap_target_libs in
7083 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7084 *) target_bootstrap_suffix=no-bootstrap ;;
7085 esac
7086
8bb79148 7087 extrasub_target="$extrasub_target
93f93279 7088/^@if target-$module\$/d
7089/^@endif target-$module\$/d
7ab76cec 7090/^@if target-$module-$target_bootstrap_suffix\$/d
7091/^@endif target-$module-$target_bootstrap_suffix\$/d"
93f93279 7092done
7093
8bb79148 7094# Do the final fixup along with target modules.
7095extrasub_target="$extrasub_target
01b41571 7096/^@if /,/^@endif /d"
71ab34df 7097
7098# Create the serialization dependencies. This uses a temporary file.
7099
cd9a469c 7100# Check whether --enable-serial-configure was given.
7101if test "${enable_serial_configure+set}" = set; then :
7102 enableval=$enable_serial_configure;
7103fi
11d8013a 7104
7105
622c1fa9 7106case ${enable_serial_configure} in
7107 yes)
7108 enable_serial_build_configure=yes
7109 enable_serial_host_configure=yes
7110 enable_serial_target_configure=yes
7111 ;;
7112esac
7113
71ab34df 7114# These force 'configure's to be done one at a time, to avoid problems
7115# with contention over a shared config.cache.
7116rm -f serdep.tmp
11d8013a 7117echo '# serdep.tmp' > serdep.tmp
71ab34df 7118olditem=
622c1fa9 7119test "x${enable_serial_build_configure}" = xyes &&
71ab34df 7120for item in ${build_configdirs} ; do
7121 case ${olditem} in
7122 "") ;;
11d8013a 7123 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
71ab34df 7124 esac
7125 olditem=${item}
7126done
7127olditem=
622c1fa9 7128test "x${enable_serial_host_configure}" = xyes &&
71ab34df 7129for item in ${configdirs} ; do
7130 case ${olditem} in
7131 "") ;;
11d8013a 7132 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
71ab34df 7133 esac
7134 olditem=${item}
7135done
7136olditem=
622c1fa9 7137test "x${enable_serial_target_configure}" = xyes &&
71ab34df 7138for item in ${target_configdirs} ; do
7139 case ${olditem} in
7140 "") ;;
11d8013a 7141 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
71ab34df 7142 esac
7143 olditem=${item}
7144done
7145serialization_dependencies=serdep.tmp
7146
7147
11d8013a 7148# Base args. Strip norecursion, cache-file, srcdir, host, build,
b30fcfae 7149# target, nonopt, and variable assignments. These are the ones we
412c2e81 7150# might not want to pass down to subconfigures. The exception being
7151# --cache-file=/dev/null, which is used to turn off the use of cache
7152# files altogether, and which should be passed on to subconfigures.
7153# Also strip program-prefix, program-suffix, and program-transform-name,
7154# so that we can pass down a consistent program-transform-name.
b30fcfae 7155baseargs=
0e4d1862 7156tbaseargs=
b30fcfae 7157keep_next=no
7158skip_next=no
7159eval "set -- $ac_configure_args"
4ff792a4 7160for ac_arg
7161do
b30fcfae 7162 if test X"$skip_next" = X"yes"; then
7163 skip_next=no
7164 continue
7165 fi
7166 if test X"$keep_next" = X"yes"; then
7167 case $ac_arg in
7168 *\'*)
7169 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7170 esac
7171 baseargs="$baseargs '$ac_arg'"
0e4d1862 7172 tbaseargs="$tbaseargs '$ac_arg'"
b30fcfae 7173 keep_next=no
7174 continue
7175 fi
7176
7177 # Handle separated arguments. Based on the logic generated by
7178 # autoconf 2.59.
7179 case $ac_arg in
7180 *=* | --config-cache | -C | -disable-* | --disable-* \
7181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7183 | -with-* | --with-* | -without-* | --without-* | --x)
7184 separate_arg=no
7185 ;;
7186 -*)
7187 separate_arg=yes
7188 ;;
7189 *)
7190 separate_arg=no
7191 ;;
7192 esac
7193
0e4d1862 7194 skip_targ=no
7195 case $ac_arg in
7196
7197 --with-* | --without-*)
7198 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7199
7200 case $libopt in
7201 *[-_]include)
7202 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7203 ;;
7204 *[-_]lib)
7205 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7206 ;;
7207 *)
7208 lib=$libopt
7209 ;;
7210 esac
7211
7212
7213 case $lib in
7214 mpc | mpfr | gmp | ppl | cloog)
7215 # If we're processing --with-$lib, --with-$lib-include or
7216 # --with-$lib-lib, for one of the libs above, and target is
7217 # different from host, don't pass the current argument to any
7218 # target library's configure.
7219 if test x$is_cross_compiler = xyes; then
7220 skip_targ=yes
7221 fi
7222 ;;
7223 esac
7224 ;;
7225 esac
7226
b30fcfae 7227 case "$ac_arg" in
412c2e81 7228 --cache-file=/dev/null | \
7229 -cache-file=/dev/null )
7230 # Handled here to avoid the test to skip args below.
7231 baseargs="$baseargs '$ac_arg'"
0e4d1862 7232 tbaseargs="$tbaseargs '$ac_arg'"
412c2e81 7233 # Assert: $separate_arg should always be no.
7234 keep_next=$separate_arg
7235 ;;
b30fcfae 7236 --no*)
7237 continue
7238 ;;
7239 --c* | \
7240 --sr* | \
7241 --ho* | \
7242 --bu* | \
7243 --t* | \
7244 --program-* | \
7245 -cache_file* | \
7246 -srcdir* | \
7247 -host* | \
7248 -build* | \
7249 -target* | \
7250 -program-prefix* | \
7251 -program-suffix* | \
7252 -program-transform-name* )
7253 skip_next=$separate_arg
7254 continue
7255 ;;
7256 -*)
7257 # An option. Add it.
7258 case $ac_arg in
7259 *\'*)
7260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7261 esac
7262 baseargs="$baseargs '$ac_arg'"
0e4d1862 7263 if test X"$skip_targ" = Xno; then
7264 tbaseargs="$tbaseargs '$ac_arg'"
7265 fi
b30fcfae 7266 keep_next=$separate_arg
7267 ;;
7268 *)
7269 # Either a variable assignment, or a nonopt (triplet). Don't
7270 # pass it down; let the Makefile handle this.
7271 continue
7272 ;;
7273 esac
7274done
7275# Remove the initial space we just introduced and, as these will be
7276# expanded by make, quote '$'.
7277baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
71ab34df 7278
fbfea1fa 7279# Add in --program-transform-name, after --program-prefix and
7280# --program-suffix have been applied to it. Autoconf has already
7281# doubled dollar signs and backslashes in program_transform_name; we want
7282# the backslashes un-doubled, and then the entire thing wrapped in single
b30fcfae 7283# quotes, because this will be expanded first by make and then by the shell.
fbfea1fa 7284# Also, because we want to override the logic in subdir configure scripts to
7285# choose program_transform_name, replace any s,x,x, with s,y,y,.
7286sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7287${program_transform_name}
7288EOF_SED
7289gcc_transform_name=`cat conftestsed.out`
7290rm -f conftestsed.out
7291baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
0e4d1862 7292tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
af7bb0c0 7293if test "$silent" = yes; then
7294 baseargs="$baseargs --silent"
0e4d1862 7295 tbaseargs="$tbaseargs --silent"
af7bb0c0 7296fi
cd2f3773 7297baseargs="$baseargs --disable-option-checking"
0e4d1862 7298tbaseargs="$tbaseargs --disable-option-checking"
fbfea1fa 7299
372a3f1e 7300# Record and document user additions to sub configure arguments.
7301
7302
7303
7304
71ab34df 7305# For the build-side libraries, we just need to pretend we're native,
7306# and not use the same cache file. Multilibs are neither needed nor
7307# desired.
372a3f1e 7308build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
71ab34df 7309
7310# For host modules, accept cache file option, or specification as blank.
7311case "${cache_file}" in
7312"") # empty
7313 cache_file_option="" ;;
7314/* | [A-Za-z]:[\\/]* ) # absolute path
7315 cache_file_option="--cache-file=${cache_file}" ;;
7316*) # relative path
7317 cache_file_option="--cache-file=../${cache_file}" ;;
7318esac
7319
ba1081ef 7320# Host dirs don't like to share a cache file either, horribly enough.
7321# This seems to be due to autoconf 2.5x stupidity.
372a3f1e 7322host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
71ab34df 7323
0e4d1862 7324target_configargs="$target_configargs ${tbaseargs}"
71ab34df 7325
7326# Passing a --with-cross-host argument lets the target libraries know
7327# whether they are being built with a cross-compiler or being built
7328# native. However, it would be better to use other mechanisms to make the
7329# sorts of decisions they want to make on this basis. Please consider
7330# this option to be deprecated. FIXME.
7331if test x${is_cross_compiler} = xyes ; then
b30fcfae 7332 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
71ab34df 7333fi
7334
59a40389 7335# Default to --enable-multilib.
7336if test x${enable_multilib} = x ; then
71ab34df 7337 target_configargs="--enable-multilib ${target_configargs}"
59a40389 7338fi
71ab34df 7339
7340# Pass --with-newlib if appropriate. Note that target_configdirs has
7341# changed from the earlier setting of with_newlib.
7342if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7343 target_configargs="--with-newlib ${target_configargs}"
7344fi
7345
74fef112 7346# Different target subdirs use different values of certain variables
7347# (notably CXX). Worse, multilibs use *lots* of different values.
7348# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7349# it doesn't automatically accept command-line overrides of them.
7350# This means it's not safe for target subdirs to share a cache file,
7351# which is disgusting, but there you have it. Hopefully this can be
7352# fixed in future. It's still worthwhile to use a cache file for each
7353# directory. I think.
7354
a8abbd9d 7355# Pass the appropriate --build, --host, --target and --cache-file arguments.
7356# We need to pass --target, as newer autoconf's requires consistency
7357# for target_alias and gcc doesn't manage it consistently.
d45318b3 7358target_configargs="--cache-file=./config.cache ${target_configargs}"
71ab34df 7359
71ab34df 7360FLAGS_FOR_TARGET=
7361case " $target_configdirs " in
7362 *" newlib "*)
7363 case " $target_configargs " in
7364 *" --with-newlib "*)
7365 case "$target" in
fe284774 7366 *-cygwin*)
7367 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'
7368 ;;
71ab34df 7369 esac
7370
7371 # If we're not building GCC, don't discard standard headers.
7372 if test -d ${srcdir}/gcc; then
7373 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7374
7375 if test "${build}" != "${host}"; then
7376 # On Canadian crosses, CC_FOR_TARGET will have already been set
7377 # by `configure', so we won't have an opportunity to add -Bgcc/
7378 # to it. This is right: we don't want to search that directory
7379 # for binaries, but we want the header files in there, so add
7380 # them explicitly.
e619f0a6 7381 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
71ab34df 7382
7383 # Someone might think of using the pre-installed headers on
7384 # Canadian crosses, in case the installed compiler is not fully
7385 # compatible with the compiler being built. In this case, it
7386 # would be better to flag an error than risking having
7387 # incompatible object files being constructed. We can't
7388 # guarantee that an error will be flagged, but let's hope the
7389 # compiler will do it, when presented with incompatible header
7390 # files.
7391 fi
7392 fi
7393
7394 case "${target}-${is_cross_compiler}" in
f74ea578 7395 i[3456789]86-*-linux*-no)
71ab34df 7396 # Here host == target, so we don't need to build gcc,
7397 # so we don't want to discard standard headers.
7398 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7399 ;;
7400 *)
7401 # If we're building newlib, use its generic headers last, but search
7402 # for any libc-related directories first (so make it the last -B
7403 # switch).
7404 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
1c5767f1 7405
7406 # If we're building libgloss, find the startup file, simulator library
7407 # and linker script.
7408 case " $target_configdirs " in
7409 *" libgloss "*)
7410 # Look for startup file, simulator library and maybe linker script.
7411 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7412 # Look for libnosys.a in case the target needs it.
7413 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7414 # Most targets have the linker script in the source directory.
7415 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7416 ;;
7417 esac
71ab34df 7418 ;;
7419 esac
7420 ;;
7421 esac
7422 ;;
7423esac
fe284774 7424
d6d689df 7425case "$target" in
fe284774 7426 x86_64-*mingw* | *-w64-mingw*)
7427 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7428 # however, use a symlink named 'mingw' in ${prefix} .
7429 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7430 ;;
7431 *-mingw*)
7432 # MinGW can't be handled as Cygwin above since it does not use newlib.
7433 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'
7434 ;;
d6d689df 7435esac
71ab34df 7436
d8e9ea04 7437# Allow the user to override the flags for
7438# our build compiler if desired.
823e8b8d 7439if test x"${build}" = x"${host}" ; then
7440 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7441 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7442 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7443fi
d8e9ea04 7444
71ab34df 7445# On Canadian crosses, we'll be searching the right directories for
7446# the previously-installed cross compiler, so don't bother to add
7447# flags for directories within the install tree of the compiler
7448# being built; programs in there won't even run.
7449if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7450 # Search for pre-installed headers if nothing else fits.
5750c7d4 7451 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
71ab34df 7452fi
7453
7454if test "x${use_gnu_ld}" = x &&
7455 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7456 # Arrange for us to find uninstalled linker scripts.
c1eb9e31 7457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
71ab34df 7458fi
7459
24714a39 7460# Search for other target-specific linker scripts and such.
7461case "${target}" in
38d7211b 7462 mep*)
7463 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7464 ;;
24714a39 7465esac
7466
71ab34df 7467# Makefile fragments.
03c65091 7468for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7469do
7470 eval fragval=\$$frag
7471 if test $fragval != /dev/null; then
7472 eval $frag=${srcdir}/$fragval
7473 fi
7474done
71ab34df 7475
7476
7477
7478
7479
7480# Miscellanea: directories, flags, etc.
7481
7482
7483
7484
7485
7486
7487
7d804f04 7488
2f8725b0 7489# Build module lists & subconfigure args.
71ab34df 7490
7491
7492
f5aebe3e 7493# Host module lists & subconfigure args.
7494
7495
7496
1fda3360 7497
f5aebe3e 7498# Target module lists & subconfigure args.
7499
7500
7501
7502# Build tools.
7503
7504
7505
93c5e793 7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
f5aebe3e 7520# Generate default definitions for YACC, M4, LEX and other programs that run
7521# on the build machine. These are used if the Makefile can't locate these
7522# programs in objdir.
7523MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7524
7525for ac_prog in 'bison -y' byacc yacc
7526do
b30fcfae 7527 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7528set dummy $ac_prog; ac_word=$2
cd9a469c 7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
7531if test "${ac_cv_prog_YACC+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
f5aebe3e 7533else
7534 if test -n "$YACC"; then
7535 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7536else
b30fcfae 7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
cd9a469c 7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7544 ac_cv_prog_YACC="$ac_prog"
cd9a469c 7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7546 break 2
7547 fi
7548done
cd9a469c 7549 done
7550IFS=$as_save_IFS
b30fcfae 7551
f5aebe3e 7552fi
7553fi
b30fcfae 7554YACC=$ac_cv_prog_YACC
f5aebe3e 7555if test -n "$YACC"; then
cd9a469c 7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7557$as_echo "$YACC" >&6; }
f5aebe3e 7558else
cd9a469c 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
f5aebe3e 7561fi
7562
cd9a469c 7563
b30fcfae 7564 test -n "$YACC" && break
f5aebe3e 7565done
7566test -n "$YACC" || YACC="$MISSING bison -y"
7567
7568case " $build_configdirs " in
7569 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
f5aebe3e 7570esac
7571
7572for ac_prog in bison
7573do
b30fcfae 7574 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7575set dummy $ac_prog; ac_word=$2
cd9a469c 7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if test "${ac_cv_prog_BISON+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
f5aebe3e 7580else
7581 if test -n "$BISON"; then
7582 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7583else
b30fcfae 7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
cd9a469c 7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7591 ac_cv_prog_BISON="$ac_prog"
cd9a469c 7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7593 break 2
7594 fi
7595done
cd9a469c 7596 done
7597IFS=$as_save_IFS
b30fcfae 7598
f5aebe3e 7599fi
7600fi
b30fcfae 7601BISON=$ac_cv_prog_BISON
f5aebe3e 7602if test -n "$BISON"; then
cd9a469c 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7604$as_echo "$BISON" >&6; }
f5aebe3e 7605else
cd9a469c 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
f5aebe3e 7608fi
7609
cd9a469c 7610
b30fcfae 7611 test -n "$BISON" && break
f5aebe3e 7612done
7613test -n "$BISON" || BISON="$MISSING bison"
7614
7615case " $build_configdirs " in
7616 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7617esac
7618
7619for ac_prog in gm4 gnum4 m4
7620do
b30fcfae 7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7622set dummy $ac_prog; ac_word=$2
cd9a469c 7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624$as_echo_n "checking for $ac_word... " >&6; }
7625if test "${ac_cv_prog_M4+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
f5aebe3e 7627else
7628 if test -n "$M4"; then
7629 ac_cv_prog_M4="$M4" # Let the user override the test.
7630else
b30fcfae 7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
cd9a469c 7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7638 ac_cv_prog_M4="$ac_prog"
cd9a469c 7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7640 break 2
7641 fi
7642done
cd9a469c 7643 done
7644IFS=$as_save_IFS
b30fcfae 7645
f5aebe3e 7646fi
7647fi
b30fcfae 7648M4=$ac_cv_prog_M4
f5aebe3e 7649if test -n "$M4"; then
cd9a469c 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7651$as_echo "$M4" >&6; }
f5aebe3e 7652else
cd9a469c 7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654$as_echo "no" >&6; }
f5aebe3e 7655fi
7656
cd9a469c 7657
b30fcfae 7658 test -n "$M4" && break
f5aebe3e 7659done
7660test -n "$M4" || M4="$MISSING m4"
7661
7662case " $build_configdirs " in
7663 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7664esac
7665
7666for ac_prog in flex lex
7667do
b30fcfae 7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7669set dummy $ac_prog; ac_word=$2
cd9a469c 7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if test "${ac_cv_prog_LEX+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
f5aebe3e 7674else
7675 if test -n "$LEX"; then
7676 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7677else
b30fcfae 7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
cd9a469c 7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7685 ac_cv_prog_LEX="$ac_prog"
cd9a469c 7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7687 break 2
7688 fi
7689done
cd9a469c 7690 done
7691IFS=$as_save_IFS
b30fcfae 7692
f5aebe3e 7693fi
7694fi
b30fcfae 7695LEX=$ac_cv_prog_LEX
f5aebe3e 7696if test -n "$LEX"; then
cd9a469c 7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7698$as_echo "$LEX" >&6; }
f5aebe3e 7699else
cd9a469c 7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
f5aebe3e 7702fi
7703
cd9a469c 7704
b30fcfae 7705 test -n "$LEX" && break
f5aebe3e 7706done
7707test -n "$LEX" || LEX="$MISSING flex"
7708
7709case " $build_configdirs " in
7710 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7711 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7712esac
7713
7714for ac_prog in flex
7715do
b30fcfae 7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7717set dummy $ac_prog; ac_word=$2
cd9a469c 7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719$as_echo_n "checking for $ac_word... " >&6; }
7720if test "${ac_cv_prog_FLEX+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
f5aebe3e 7722else
7723 if test -n "$FLEX"; then
7724 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7725else
b30fcfae 7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
cd9a469c 7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7733 ac_cv_prog_FLEX="$ac_prog"
cd9a469c 7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7735 break 2
7736 fi
7737done
cd9a469c 7738 done
7739IFS=$as_save_IFS
b30fcfae 7740
f5aebe3e 7741fi
7742fi
b30fcfae 7743FLEX=$ac_cv_prog_FLEX
f5aebe3e 7744if test -n "$FLEX"; then
cd9a469c 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7746$as_echo "$FLEX" >&6; }
f5aebe3e 7747else
cd9a469c 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
f5aebe3e 7750fi
7751
cd9a469c 7752
b30fcfae 7753 test -n "$FLEX" && break
f5aebe3e 7754done
7755test -n "$FLEX" || FLEX="$MISSING flex"
7756
7757case " $build_configdirs " in
7758 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7759esac
7760
7761for ac_prog in makeinfo
7762do
b30fcfae 7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7764set dummy $ac_prog; ac_word=$2
cd9a469c 7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
f5aebe3e 7769else
7770 if test -n "$MAKEINFO"; then
7771 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7772else
b30fcfae 7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
cd9a469c 7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7780 ac_cv_prog_MAKEINFO="$ac_prog"
cd9a469c 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7782 break 2
7783 fi
7784done
cd9a469c 7785 done
7786IFS=$as_save_IFS
b30fcfae 7787
f5aebe3e 7788fi
7789fi
b30fcfae 7790MAKEINFO=$ac_cv_prog_MAKEINFO
f5aebe3e 7791if test -n "$MAKEINFO"; then
cd9a469c 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7793$as_echo "$MAKEINFO" >&6; }
f5aebe3e 7794else
cd9a469c 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
f5aebe3e 7797fi
7798
cd9a469c 7799
b30fcfae 7800 test -n "$MAKEINFO" && break
f5aebe3e 7801done
7802test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7803
7804case " $build_configdirs " in
7805 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7806 *)
7807
03caadda 7808 # For an installed makeinfo, we require it to be from texinfo 4.7 or
f5aebe3e 7809 # higher, else we use the "missing" dummy.
7810 if ${MAKEINFO} --version \
03caadda 7811 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
f5aebe3e 7812 :
7813 else
7814 MAKEINFO="$MISSING makeinfo"
7815 fi
7816 ;;
7817
7818esac
71ab34df 7819
f5aebe3e 7820# FIXME: expect and dejagnu may become build tools?
71ab34df 7821
f5aebe3e 7822for ac_prog in expect
7823do
b30fcfae 7824 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7825set dummy $ac_prog; ac_word=$2
cd9a469c 7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if test "${ac_cv_prog_EXPECT+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
f5aebe3e 7830else
7831 if test -n "$EXPECT"; then
7832 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7833else
b30fcfae 7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
cd9a469c 7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7841 ac_cv_prog_EXPECT="$ac_prog"
cd9a469c 7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7843 break 2
7844 fi
7845done
cd9a469c 7846 done
7847IFS=$as_save_IFS
b30fcfae 7848
f5aebe3e 7849fi
7850fi
b30fcfae 7851EXPECT=$ac_cv_prog_EXPECT
f5aebe3e 7852if test -n "$EXPECT"; then
cd9a469c 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7854$as_echo "$EXPECT" >&6; }
f5aebe3e 7855else
cd9a469c 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
f5aebe3e 7858fi
71ab34df 7859
cd9a469c 7860
b30fcfae 7861 test -n "$EXPECT" && break
f5aebe3e 7862done
7863test -n "$EXPECT" || EXPECT="expect"
71ab34df 7864
f5aebe3e 7865case " $configdirs " in
7866 *" expect "*)
7867 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7868 ;;
7869esac
71ab34df 7870
f5aebe3e 7871for ac_prog in runtest
7872do
b30fcfae 7873 # Extract the first word of "$ac_prog", so it can be a program name with args.
f5aebe3e 7874set dummy $ac_prog; ac_word=$2
cd9a469c 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
7877if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
f5aebe3e 7879else
7880 if test -n "$RUNTEST"; then
7881 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
a4af6a58 7882else
b30fcfae 7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
cd9a469c 7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7890 ac_cv_prog_RUNTEST="$ac_prog"
cd9a469c 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7892 break 2
7893 fi
7894done
cd9a469c 7895 done
7896IFS=$as_save_IFS
b30fcfae 7897
f5aebe3e 7898fi
7899fi
b30fcfae 7900RUNTEST=$ac_cv_prog_RUNTEST
f5aebe3e 7901if test -n "$RUNTEST"; then
cd9a469c 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7903$as_echo "$RUNTEST" >&6; }
f5aebe3e 7904else
cd9a469c 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
f5aebe3e 7907fi
71ab34df 7908
cd9a469c 7909
b30fcfae 7910 test -n "$RUNTEST" && break
f5aebe3e 7911done
7912test -n "$RUNTEST" || RUNTEST="runtest"
71ab34df 7913
f5aebe3e 7914case " $configdirs " in
7915 *" dejagnu "*)
8d365775 7916 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
f5aebe3e 7917 ;;
7918esac
71ab34df 7919
7920
71ab34df 7921# Host tools.
bb612911 7922ncn_tool_prefix=
7923test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7924ncn_target_tool_prefix=
7925test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7926
95a05732 7927
7928
7929if test -n "$AR"; then
7930 ac_cv_prog_AR=$AR
7931elif test -n "$ac_cv_prog_AR"; then
7932 AR=$ac_cv_prog_AR
7933fi
7934
7935if test -n "$ac_cv_prog_AR"; then
7936 for ncn_progname in ar; do
7937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7938set dummy ${ncn_progname}; ac_word=$2
cd9a469c 7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
7941if test "${ac_cv_prog_AR+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
95a05732 7943else
7944 if test -n "$AR"; then
7945 ac_cv_prog_AR="$AR" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
cd9a469c 7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 7954 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 7956 break 2
7957 fi
7958done
cd9a469c 7959 done
7960IFS=$as_save_IFS
95a05732 7961
7962fi
7963fi
7964AR=$ac_cv_prog_AR
7965if test -n "$AR"; then
cd9a469c 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7967$as_echo "$AR" >&6; }
95a05732 7968else
cd9a469c 7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
95a05732 7971fi
7972
cd9a469c 7973
95a05732 7974 done
7975fi
7976
7977for ncn_progname in ar; do
768691b5 7978 if test -n "$ncn_tool_prefix"; then
7979 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7980set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
7983if test "${ac_cv_prog_AR+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
bb612911 7985else
7986 if test -n "$AR"; then
7987 ac_cv_prog_AR="$AR" # Let the user override the test.
7988else
b30fcfae 7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
cd9a469c 7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 7996 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 7998 break 2
7999 fi
8000done
cd9a469c 8001 done
8002IFS=$as_save_IFS
b30fcfae 8003
bb612911 8004fi
8005fi
b30fcfae 8006AR=$ac_cv_prog_AR
bb612911 8007if test -n "$AR"; then
cd9a469c 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009$as_echo "$AR" >&6; }
bb612911 8010else
cd9a469c 8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
bb612911 8013fi
8014
cd9a469c 8015
768691b5 8016 fi
8017 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8019set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021$as_echo_n "checking for $ac_word... " >&6; }
8022if test "${ac_cv_prog_AR+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
bb612911 8024else
768691b5 8025 if test -n "$AR"; then
ae48753c 8026 ac_cv_prog_AR="$AR" # Let the user override the test.
8027else
b30fcfae 8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
cd9a469c 8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8035 ac_cv_prog_AR="${ncn_progname}"
cd9a469c 8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8037 break 2
8038 fi
8039done
cd9a469c 8040 done
8041IFS=$as_save_IFS
b30fcfae 8042
bb612911 8043fi
8044fi
b30fcfae 8045AR=$ac_cv_prog_AR
768691b5 8046if test -n "$AR"; then
cd9a469c 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8048$as_echo "$AR" >&6; }
bb612911 8049else
cd9a469c 8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
bb612911 8052fi
b30fcfae 8053
cd9a469c 8054
768691b5 8055 fi
8056 test -n "$ac_cv_prog_AR" && break
8057done
8058
8059if test -z "$ac_cv_prog_AR" ; then
8060 set dummy ar
8061 if test $build = $host ; then
8062 AR="$2"
bb612911 8063 else
768691b5 8064 AR="${ncn_tool_prefix}$2"
bb612911 8065 fi
bb612911 8066fi
8067
95a05732 8068
8069
8070if test -n "$AS"; then
8071 ac_cv_prog_AS=$AS
8072elif test -n "$ac_cv_prog_AS"; then
8073 AS=$ac_cv_prog_AS
8074fi
8075
8076if test -n "$ac_cv_prog_AS"; then
8077 for ncn_progname in as; do
8078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8079set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081$as_echo_n "checking for $ac_word... " >&6; }
8082if test "${ac_cv_prog_AS+set}" = set; then :
8083 $as_echo_n "(cached) " >&6
95a05732 8084else
8085 if test -n "$AS"; then
8086 ac_cv_prog_AS="$AS" # Let the user override the test.
8087else
8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091 IFS=$as_save_IFS
8092 test -z "$as_dir" && as_dir=.
cd9a469c 8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8095 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8097 break 2
8098 fi
8099done
cd9a469c 8100 done
8101IFS=$as_save_IFS
95a05732 8102
8103fi
8104fi
8105AS=$ac_cv_prog_AS
8106if test -n "$AS"; then
cd9a469c 8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8108$as_echo "$AS" >&6; }
95a05732 8109else
cd9a469c 8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
95a05732 8112fi
8113
cd9a469c 8114
95a05732 8115 done
8116fi
8117
8118for ncn_progname in as; do
768691b5 8119 if test -n "$ncn_tool_prefix"; then
8120 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8121set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
8124if test "${ac_cv_prog_AS+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
bb612911 8126else
8127 if test -n "$AS"; then
8128 ac_cv_prog_AS="$AS" # Let the user override the test.
a83ffacf 8129else
b30fcfae 8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
cd9a469c 8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8137 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8139 break 2
8140 fi
8141done
cd9a469c 8142 done
8143IFS=$as_save_IFS
b30fcfae 8144
bb612911 8145fi
8146fi
b30fcfae 8147AS=$ac_cv_prog_AS
bb612911 8148if test -n "$AS"; then
cd9a469c 8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8150$as_echo "$AS" >&6; }
bb612911 8151else
cd9a469c 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
bb612911 8154fi
8155
cd9a469c 8156
768691b5 8157 fi
8158 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8160set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
8163if test "${ac_cv_prog_AS+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
bb612911 8165else
768691b5 8166 if test -n "$AS"; then
8167 ac_cv_prog_AS="$AS" # Let the user override the test.
bb612911 8168else
b30fcfae 8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
cd9a469c 8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8176 ac_cv_prog_AS="${ncn_progname}"
cd9a469c 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8178 break 2
8179 fi
8180done
cd9a469c 8181 done
8182IFS=$as_save_IFS
b30fcfae 8183
bb612911 8184fi
8185fi
b30fcfae 8186AS=$ac_cv_prog_AS
768691b5 8187if test -n "$AS"; then
cd9a469c 8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8189$as_echo "$AS" >&6; }
bb612911 8190else
cd9a469c 8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
bb612911 8193fi
b30fcfae 8194
cd9a469c 8195
768691b5 8196 fi
8197 test -n "$ac_cv_prog_AS" && break
8198done
8199
8200if test -z "$ac_cv_prog_AS" ; then
8201 set dummy as
8202 if test $build = $host ; then
8203 AS="$2"
bb612911 8204 else
768691b5 8205 AS="${ncn_tool_prefix}$2"
bb612911 8206 fi
bb612911 8207fi
8208
95a05732 8209
8210
8211if test -n "$DLLTOOL"; then
8212 ac_cv_prog_DLLTOOL=$DLLTOOL
8213elif test -n "$ac_cv_prog_DLLTOOL"; then
8214 DLLTOOL=$ac_cv_prog_DLLTOOL
8215fi
8216
8217if test -n "$ac_cv_prog_DLLTOOL"; then
8218 for ncn_progname in dlltool; do
8219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8220set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
8223if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
95a05732 8225else
8226 if test -n "$DLLTOOL"; then
8227 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
cd9a469c 8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8236 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8238 break 2
8239 fi
8240done
cd9a469c 8241 done
8242IFS=$as_save_IFS
95a05732 8243
8244fi
8245fi
8246DLLTOOL=$ac_cv_prog_DLLTOOL
8247if test -n "$DLLTOOL"; then
cd9a469c 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8249$as_echo "$DLLTOOL" >&6; }
95a05732 8250else
cd9a469c 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
95a05732 8253fi
8254
cd9a469c 8255
95a05732 8256 done
8257fi
8258
8259for ncn_progname in dlltool; do
768691b5 8260 if test -n "$ncn_tool_prefix"; then
8261 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8262set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
8265if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
bb612911 8267else
8268 if test -n "$DLLTOOL"; then
8269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8270else
b30fcfae 8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
cd9a469c 8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8278 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8280 break 2
8281 fi
8282done
cd9a469c 8283 done
8284IFS=$as_save_IFS
b30fcfae 8285
bb612911 8286fi
8287fi
b30fcfae 8288DLLTOOL=$ac_cv_prog_DLLTOOL
bb612911 8289if test -n "$DLLTOOL"; then
cd9a469c 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8291$as_echo "$DLLTOOL" >&6; }
bb612911 8292else
cd9a469c 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
bb612911 8295fi
8296
cd9a469c 8297
768691b5 8298 fi
8299 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8301set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303$as_echo_n "checking for $ac_word... " >&6; }
8304if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
bb612911 8306else
768691b5 8307 if test -n "$DLLTOOL"; then
8308 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
bb612911 8309else
b30fcfae 8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
cd9a469c 8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8317 ac_cv_prog_DLLTOOL="${ncn_progname}"
cd9a469c 8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8319 break 2
8320 fi
8321done
cd9a469c 8322 done
8323IFS=$as_save_IFS
b30fcfae 8324
bb612911 8325fi
8326fi
b30fcfae 8327DLLTOOL=$ac_cv_prog_DLLTOOL
768691b5 8328if test -n "$DLLTOOL"; then
cd9a469c 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8330$as_echo "$DLLTOOL" >&6; }
bb612911 8331else
cd9a469c 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
bb612911 8334fi
b30fcfae 8335
cd9a469c 8336
768691b5 8337 fi
8338 test -n "$ac_cv_prog_DLLTOOL" && break
8339done
8340
8341if test -z "$ac_cv_prog_DLLTOOL" ; then
8342 set dummy dlltool
8343 if test $build = $host ; then
8344 DLLTOOL="$2"
bb612911 8345 else
768691b5 8346 DLLTOOL="${ncn_tool_prefix}$2"
bb612911 8347 fi
bb612911 8348fi
8349
95a05732 8350
8351
8352if test -n "$LD"; then
8353 ac_cv_prog_LD=$LD
8354elif test -n "$ac_cv_prog_LD"; then
8355 LD=$ac_cv_prog_LD
8356fi
8357
8358if test -n "$ac_cv_prog_LD"; then
8359 for ncn_progname in ld; do
8360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8361set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363$as_echo_n "checking for $ac_word... " >&6; }
8364if test "${ac_cv_prog_LD+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
95a05732 8366else
8367 if test -n "$LD"; then
8368 ac_cv_prog_LD="$LD" # Let the user override the test.
8369else
8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
cd9a469c 8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8377 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8379 break 2
8380 fi
8381done
cd9a469c 8382 done
8383IFS=$as_save_IFS
95a05732 8384
8385fi
8386fi
8387LD=$ac_cv_prog_LD
8388if test -n "$LD"; then
cd9a469c 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8390$as_echo "$LD" >&6; }
95a05732 8391else
cd9a469c 8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393$as_echo "no" >&6; }
95a05732 8394fi
8395
cd9a469c 8396
95a05732 8397 done
8398fi
8399
8400for ncn_progname in ld; do
768691b5 8401 if test -n "$ncn_tool_prefix"; then
8402 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
8406if test "${ac_cv_prog_LD+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
bb612911 8408else
8409 if test -n "$LD"; then
8410 ac_cv_prog_LD="$LD" # Let the user override the test.
8411else
b30fcfae 8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
cd9a469c 8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8419 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8421 break 2
8422 fi
8423done
cd9a469c 8424 done
8425IFS=$as_save_IFS
b30fcfae 8426
bb612911 8427fi
8428fi
b30fcfae 8429LD=$ac_cv_prog_LD
bb612911 8430if test -n "$LD"; then
cd9a469c 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432$as_echo "$LD" >&6; }
bb612911 8433else
cd9a469c 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
bb612911 8436fi
8437
cd9a469c 8438
768691b5 8439 fi
8440 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8442set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444$as_echo_n "checking for $ac_word... " >&6; }
8445if test "${ac_cv_prog_LD+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
bb612911 8447else
768691b5 8448 if test -n "$LD"; then
8449 ac_cv_prog_LD="$LD" # Let the user override the test.
7172be51 8450else
b30fcfae 8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
cd9a469c 8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8458 ac_cv_prog_LD="${ncn_progname}"
cd9a469c 8459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8460 break 2
8461 fi
8462done
cd9a469c 8463 done
8464IFS=$as_save_IFS
b30fcfae 8465
bb612911 8466fi
8467fi
b30fcfae 8468LD=$ac_cv_prog_LD
768691b5 8469if test -n "$LD"; then
cd9a469c 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8471$as_echo "$LD" >&6; }
bb612911 8472else
cd9a469c 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474$as_echo "no" >&6; }
bb612911 8475fi
b30fcfae 8476
cd9a469c 8477
768691b5 8478 fi
8479 test -n "$ac_cv_prog_LD" && break
8480done
8481
8482if test -z "$ac_cv_prog_LD" ; then
8483 set dummy ld
8484 if test $build = $host ; then
8485 LD="$2"
bb612911 8486 else
768691b5 8487 LD="${ncn_tool_prefix}$2"
bb612911 8488 fi
bb612911 8489fi
8490
95a05732 8491
8492
8493if test -n "$LIPO"; then
8494 ac_cv_prog_LIPO=$LIPO
8495elif test -n "$ac_cv_prog_LIPO"; then
8496 LIPO=$ac_cv_prog_LIPO
8497fi
8498
8499if test -n "$ac_cv_prog_LIPO"; then
8500 for ncn_progname in lipo; do
8501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8502set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504$as_echo_n "checking for $ac_word... " >&6; }
8505if test "${ac_cv_prog_LIPO+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
95a05732 8507else
8508 if test -n "$LIPO"; then
8509 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8510else
8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514 IFS=$as_save_IFS
8515 test -z "$as_dir" && as_dir=.
cd9a469c 8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8518 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8520 break 2
8521 fi
8522done
cd9a469c 8523 done
8524IFS=$as_save_IFS
95a05732 8525
8526fi
8527fi
8528LIPO=$ac_cv_prog_LIPO
8529if test -n "$LIPO"; then
cd9a469c 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8531$as_echo "$LIPO" >&6; }
95a05732 8532else
cd9a469c 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534$as_echo "no" >&6; }
95a05732 8535fi
8536
cd9a469c 8537
95a05732 8538 done
8539fi
8540
8541for ncn_progname in lipo; do
f5aebe3e 8542 if test -n "$ncn_tool_prefix"; then
8543 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8544set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
8547if test "${ac_cv_prog_LIPO+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
f5aebe3e 8549else
8550 if test -n "$LIPO"; then
8551 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8552else
b30fcfae 8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
cd9a469c 8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8560 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8562 break 2
8563 fi
8564done
cd9a469c 8565 done
8566IFS=$as_save_IFS
b30fcfae 8567
f5aebe3e 8568fi
8569fi
b30fcfae 8570LIPO=$ac_cv_prog_LIPO
f5aebe3e 8571if test -n "$LIPO"; then
cd9a469c 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8573$as_echo "$LIPO" >&6; }
f5aebe3e 8574else
cd9a469c 8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
f5aebe3e 8577fi
8578
cd9a469c 8579
f5aebe3e 8580 fi
8581 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8583set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585$as_echo_n "checking for $ac_word... " >&6; }
8586if test "${ac_cv_prog_LIPO+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
f5aebe3e 8588else
8589 if test -n "$LIPO"; then
8590 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8591else
b30fcfae 8592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593for as_dir in $PATH
8594do
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
cd9a469c 8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8599 ac_cv_prog_LIPO="${ncn_progname}"
cd9a469c 8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8601 break 2
8602 fi
8603done
cd9a469c 8604 done
8605IFS=$as_save_IFS
b30fcfae 8606
f5aebe3e 8607fi
8608fi
b30fcfae 8609LIPO=$ac_cv_prog_LIPO
f5aebe3e 8610if test -n "$LIPO"; then
cd9a469c 8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8612$as_echo "$LIPO" >&6; }
f5aebe3e 8613else
cd9a469c 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615$as_echo "no" >&6; }
f5aebe3e 8616fi
b30fcfae 8617
cd9a469c 8618
f5aebe3e 8619 fi
8620 test -n "$ac_cv_prog_LIPO" && break
8621done
8622
8623if test -z "$ac_cv_prog_LIPO" ; then
8624 set dummy lipo
8625 if test $build = $host ; then
8626 LIPO="$2"
8627 else
8628 LIPO="${ncn_tool_prefix}$2"
8629 fi
8630fi
8631
95a05732 8632
8633
8634if test -n "$NM"; then
8635 ac_cv_prog_NM=$NM
8636elif test -n "$ac_cv_prog_NM"; then
8637 NM=$ac_cv_prog_NM
8638fi
8639
8640if test -n "$ac_cv_prog_NM"; then
8641 for ncn_progname in nm; do
8642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8643set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if test "${ac_cv_prog_NM+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
bb612911 8648else
8649 if test -n "$NM"; then
8650 ac_cv_prog_NM="$NM" # Let the user override the test.
8651else
b30fcfae 8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
cd9a469c 8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8659 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8661 break 2
8662 fi
8663done
cd9a469c 8664 done
8665IFS=$as_save_IFS
b30fcfae 8666
bb612911 8667fi
8668fi
b30fcfae 8669NM=$ac_cv_prog_NM
bb612911 8670if test -n "$NM"; then
cd9a469c 8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8672$as_echo "$NM" >&6; }
bb612911 8673else
cd9a469c 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
bb612911 8676fi
8677
cd9a469c 8678
95a05732 8679 done
8680fi
8681
8682for ncn_progname in nm; do
8683 if test -n "$ncn_tool_prefix"; then
8684 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8685set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
8688if test "${ac_cv_prog_NM+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
bb612911 8690else
768691b5 8691 if test -n "$NM"; then
8692 ac_cv_prog_NM="$NM" # Let the user override the test.
bb612911 8693else
b30fcfae 8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
cd9a469c 8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8701 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8703 break 2
8704 fi
8705done
cd9a469c 8706 done
8707IFS=$as_save_IFS
b30fcfae 8708
bb612911 8709fi
8710fi
b30fcfae 8711NM=$ac_cv_prog_NM
768691b5 8712if test -n "$NM"; then
cd9a469c 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8714$as_echo "$NM" >&6; }
bb612911 8715else
cd9a469c 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
bb612911 8718fi
b30fcfae 8719
cd9a469c 8720
768691b5 8721 fi
95a05732 8722 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8724set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726$as_echo_n "checking for $ac_word... " >&6; }
8727if test "${ac_cv_prog_NM+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
95a05732 8729else
8730 if test -n "$NM"; then
8731 ac_cv_prog_NM="$NM" # Let the user override the test.
8732else
8733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734for as_dir in $PATH
8735do
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
cd9a469c 8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8740 ac_cv_prog_NM="${ncn_progname}"
cd9a469c 8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8742 break 2
8743 fi
8744done
cd9a469c 8745 done
8746IFS=$as_save_IFS
95a05732 8747
8748fi
8749fi
8750NM=$ac_cv_prog_NM
8751if test -n "$NM"; then
cd9a469c 8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8753$as_echo "$NM" >&6; }
95a05732 8754else
cd9a469c 8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756$as_echo "no" >&6; }
95a05732 8757fi
8758
cd9a469c 8759
95a05732 8760 fi
8761 test -n "$ac_cv_prog_NM" && break
8762done
8763
8764if test -z "$ac_cv_prog_NM" ; then
8765 set dummy nm
8766 if test $build = $host ; then
8767 NM="$2"
8768 else
8769 NM="${ncn_tool_prefix}$2"
8770 fi
8771fi
8772
8773
8774
8775if test -n "$RANLIB"; then
8776 ac_cv_prog_RANLIB=$RANLIB
8777elif test -n "$ac_cv_prog_RANLIB"; then
8778 RANLIB=$ac_cv_prog_RANLIB
8779fi
8780
8781if test -n "$ac_cv_prog_RANLIB"; then
8782 for ncn_progname in ranlib; do
8783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8784set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786$as_echo_n "checking for $ac_word... " >&6; }
8787if test "${ac_cv_prog_RANLIB+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
95a05732 8789else
8790 if test -n "$RANLIB"; then
8791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8792else
8793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
cd9a469c 8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8800 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8802 break 2
8803 fi
8804done
cd9a469c 8805 done
8806IFS=$as_save_IFS
95a05732 8807
8808fi
8809fi
8810RANLIB=$ac_cv_prog_RANLIB
8811if test -n "$RANLIB"; then
cd9a469c 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8813$as_echo "$RANLIB" >&6; }
95a05732 8814else
cd9a469c 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816$as_echo "no" >&6; }
95a05732 8817fi
8818
cd9a469c 8819
95a05732 8820 done
8821fi
bb612911 8822
95a05732 8823for ncn_progname in ranlib; do
768691b5 8824 if test -n "$ncn_tool_prefix"; then
8825 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8826set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if test "${ac_cv_prog_RANLIB+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
bb612911 8831else
8832 if test -n "$RANLIB"; then
8833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834else
b30fcfae 8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
cd9a469c 8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8842 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8844 break 2
8845 fi
8846done
cd9a469c 8847 done
8848IFS=$as_save_IFS
b30fcfae 8849
bb612911 8850fi
8851fi
b30fcfae 8852RANLIB=$ac_cv_prog_RANLIB
bb612911 8853if test -n "$RANLIB"; then
cd9a469c 8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8855$as_echo "$RANLIB" >&6; }
bb612911 8856else
cd9a469c 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
bb612911 8859fi
8860
cd9a469c 8861
768691b5 8862 fi
8863 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8865set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867$as_echo_n "checking for $ac_word... " >&6; }
8868if test "${ac_cv_prog_RANLIB+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
bb612911 8870else
768691b5 8871 if test -n "$RANLIB"; then
8872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
bb612911 8873else
b30fcfae 8874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877 IFS=$as_save_IFS
8878 test -z "$as_dir" && as_dir=.
cd9a469c 8879 for ac_exec_ext in '' $ac_executable_extensions; do
8880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8881 ac_cv_prog_RANLIB="${ncn_progname}"
cd9a469c 8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8883 break 2
8884 fi
8885done
cd9a469c 8886 done
8887IFS=$as_save_IFS
b30fcfae 8888
bb612911 8889fi
8890fi
b30fcfae 8891RANLIB=$ac_cv_prog_RANLIB
768691b5 8892if test -n "$RANLIB"; then
cd9a469c 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8894$as_echo "$RANLIB" >&6; }
bb612911 8895else
cd9a469c 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
bb612911 8898fi
b30fcfae 8899
cd9a469c 8900
bb612911 8901 fi
768691b5 8902 test -n "$ac_cv_prog_RANLIB" && break
8903done
8904
8905if test -z "$ac_cv_prog_RANLIB" ; then
68645a6b 8906 RANLIB="true"
bb612911 8907fi
8908
95a05732 8909
8910
8911if test -n "$STRIP"; then
8912 ac_cv_prog_STRIP=$STRIP
8913elif test -n "$ac_cv_prog_STRIP"; then
8914 STRIP=$ac_cv_prog_STRIP
8915fi
8916
8917if test -n "$ac_cv_prog_STRIP"; then
8918 for ncn_progname in strip; do
8919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8920set dummy ${ncn_progname}; ac_word=$2
cd9a469c 8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
8923if test "${ac_cv_prog_STRIP+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
95a05732 8925else
8926 if test -n "$STRIP"; then
8927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8928else
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
cd9a469c 8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 8936 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 8938 break 2
8939 fi
8940done
cd9a469c 8941 done
8942IFS=$as_save_IFS
95a05732 8943
8944fi
8945fi
8946STRIP=$ac_cv_prog_STRIP
8947if test -n "$STRIP"; then
cd9a469c 8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8949$as_echo "$STRIP" >&6; }
95a05732 8950else
cd9a469c 8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
95a05732 8953fi
8954
cd9a469c 8955
95a05732 8956 done
8957fi
8958
8959for ncn_progname in strip; do
f5aebe3e 8960 if test -n "$ncn_tool_prefix"; then
8961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8962set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964$as_echo_n "checking for $ac_word... " >&6; }
8965if test "${ac_cv_prog_STRIP+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
f5aebe3e 8967else
8968 if test -n "$STRIP"; then
8969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8970else
b30fcfae 8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
cd9a469c 8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 8978 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 8980 break 2
8981 fi
8982done
cd9a469c 8983 done
8984IFS=$as_save_IFS
b30fcfae 8985
f5aebe3e 8986fi
8987fi
b30fcfae 8988STRIP=$ac_cv_prog_STRIP
f5aebe3e 8989if test -n "$STRIP"; then
cd9a469c 8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8991$as_echo "$STRIP" >&6; }
f5aebe3e 8992else
cd9a469c 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
f5aebe3e 8995fi
8996
cd9a469c 8997
f5aebe3e 8998 fi
8999 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003$as_echo_n "checking for $ac_word... " >&6; }
9004if test "${ac_cv_prog_STRIP+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
f5aebe3e 9006else
9007 if test -n "$STRIP"; then
9008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9009else
b30fcfae 9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
cd9a469c 9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9017 ac_cv_prog_STRIP="${ncn_progname}"
cd9a469c 9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9019 break 2
9020 fi
9021done
cd9a469c 9022 done
9023IFS=$as_save_IFS
b30fcfae 9024
f5aebe3e 9025fi
9026fi
b30fcfae 9027STRIP=$ac_cv_prog_STRIP
f5aebe3e 9028if test -n "$STRIP"; then
cd9a469c 9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9030$as_echo "$STRIP" >&6; }
f5aebe3e 9031else
cd9a469c 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
f5aebe3e 9034fi
b30fcfae 9035
cd9a469c 9036
f5aebe3e 9037 fi
9038 test -n "$ac_cv_prog_STRIP" && break
9039done
9040
9041if test -z "$ac_cv_prog_STRIP" ; then
68645a6b 9042 STRIP="true"
f5aebe3e 9043fi
9044
95a05732 9045
9046
9047if test -n "$WINDRES"; then
9048 ac_cv_prog_WINDRES=$WINDRES
9049elif test -n "$ac_cv_prog_WINDRES"; then
9050 WINDRES=$ac_cv_prog_WINDRES
9051fi
9052
9053if test -n "$ac_cv_prog_WINDRES"; then
9054 for ncn_progname in windres; do
9055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9056set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058$as_echo_n "checking for $ac_word... " >&6; }
9059if test "${ac_cv_prog_WINDRES+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
95a05732 9061else
9062 if test -n "$WINDRES"; then
9063 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
cd9a469c 9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9072 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9074 break 2
9075 fi
9076done
cd9a469c 9077 done
9078IFS=$as_save_IFS
95a05732 9079
9080fi
9081fi
9082WINDRES=$ac_cv_prog_WINDRES
9083if test -n "$WINDRES"; then
cd9a469c 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9085$as_echo "$WINDRES" >&6; }
95a05732 9086else
cd9a469c 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088$as_echo "no" >&6; }
95a05732 9089fi
9090
cd9a469c 9091
95a05732 9092 done
9093fi
9094
9095for ncn_progname in windres; do
768691b5 9096 if test -n "$ncn_tool_prefix"; then
9097 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9098set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100$as_echo_n "checking for $ac_word... " >&6; }
9101if test "${ac_cv_prog_WINDRES+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
bb612911 9103else
9104 if test -n "$WINDRES"; then
9105 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9106else
b30fcfae 9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
cd9a469c 9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9114 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9116 break 2
9117 fi
9118done
cd9a469c 9119 done
9120IFS=$as_save_IFS
b30fcfae 9121
bb612911 9122fi
9123fi
b30fcfae 9124WINDRES=$ac_cv_prog_WINDRES
bb612911 9125if test -n "$WINDRES"; then
cd9a469c 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9127$as_echo "$WINDRES" >&6; }
bb612911 9128else
cd9a469c 9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130$as_echo "no" >&6; }
bb612911 9131fi
9132
cd9a469c 9133
768691b5 9134 fi
9135 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139$as_echo_n "checking for $ac_word... " >&6; }
9140if test "${ac_cv_prog_WINDRES+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
bb612911 9142else
768691b5 9143 if test -n "$WINDRES"; then
9144 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
bb612911 9145else
b30fcfae 9146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147for as_dir in $PATH
9148do
9149 IFS=$as_save_IFS
9150 test -z "$as_dir" && as_dir=.
cd9a469c 9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9153 ac_cv_prog_WINDRES="${ncn_progname}"
cd9a469c 9154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9155 break 2
9156 fi
9157done
cd9a469c 9158 done
9159IFS=$as_save_IFS
b30fcfae 9160
bb612911 9161fi
9162fi
b30fcfae 9163WINDRES=$ac_cv_prog_WINDRES
768691b5 9164if test -n "$WINDRES"; then
cd9a469c 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9166$as_echo "$WINDRES" >&6; }
bb612911 9167else
cd9a469c 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169$as_echo "no" >&6; }
bb612911 9170fi
b30fcfae 9171
cd9a469c 9172
768691b5 9173 fi
9174 test -n "$ac_cv_prog_WINDRES" && break
9175done
9176
9177if test -z "$ac_cv_prog_WINDRES" ; then
9178 set dummy windres
9179 if test $build = $host ; then
9180 WINDRES="$2"
bb612911 9181 else
768691b5 9182 WINDRES="${ncn_tool_prefix}$2"
bb612911 9183 fi
bb612911 9184fi
9185
95a05732 9186
9187
75d6a0a9 9188if test -n "$WINDMC"; then
9189 ac_cv_prog_WINDMC=$WINDMC
9190elif test -n "$ac_cv_prog_WINDMC"; then
9191 WINDMC=$ac_cv_prog_WINDMC
9192fi
9193
9194if test -n "$ac_cv_prog_WINDMC"; then
9195 for ncn_progname in windmc; do
9196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9197set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199$as_echo_n "checking for $ac_word... " >&6; }
9200if test "${ac_cv_prog_WINDMC+set}" = set; then :
9201 $as_echo_n "(cached) " >&6
75d6a0a9 9202else
9203 if test -n "$WINDMC"; then
9204 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9205else
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
cd9a469c 9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9213 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9215 break 2
9216 fi
9217done
cd9a469c 9218 done
9219IFS=$as_save_IFS
75d6a0a9 9220
9221fi
9222fi
9223WINDMC=$ac_cv_prog_WINDMC
9224if test -n "$WINDMC"; then
cd9a469c 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9226$as_echo "$WINDMC" >&6; }
75d6a0a9 9227else
cd9a469c 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229$as_echo "no" >&6; }
75d6a0a9 9230fi
9231
cd9a469c 9232
75d6a0a9 9233 done
9234fi
9235
9236for ncn_progname in windmc; do
9237 if test -n "$ncn_tool_prefix"; then
9238 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241$as_echo_n "checking for $ac_word... " >&6; }
9242if test "${ac_cv_prog_WINDMC+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
75d6a0a9 9244else
9245 if test -n "$WINDMC"; then
9246 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
cd9a469c 9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9255 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9257 break 2
9258 fi
9259done
cd9a469c 9260 done
9261IFS=$as_save_IFS
75d6a0a9 9262
9263fi
9264fi
9265WINDMC=$ac_cv_prog_WINDMC
9266if test -n "$WINDMC"; then
cd9a469c 9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9268$as_echo "$WINDMC" >&6; }
75d6a0a9 9269else
cd9a469c 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271$as_echo "no" >&6; }
75d6a0a9 9272fi
9273
cd9a469c 9274
75d6a0a9 9275 fi
9276 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9278set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280$as_echo_n "checking for $ac_word... " >&6; }
9281if test "${ac_cv_prog_WINDMC+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
75d6a0a9 9283else
9284 if test -n "$WINDMC"; then
9285 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9286else
9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288for as_dir in $PATH
9289do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
cd9a469c 9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 9294 ac_cv_prog_WINDMC="${ncn_progname}"
cd9a469c 9295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 9296 break 2
9297 fi
9298done
cd9a469c 9299 done
9300IFS=$as_save_IFS
75d6a0a9 9301
9302fi
9303fi
9304WINDMC=$ac_cv_prog_WINDMC
9305if test -n "$WINDMC"; then
cd9a469c 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9307$as_echo "$WINDMC" >&6; }
75d6a0a9 9308else
cd9a469c 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310$as_echo "no" >&6; }
75d6a0a9 9311fi
9312
cd9a469c 9313
75d6a0a9 9314 fi
9315 test -n "$ac_cv_prog_WINDMC" && break
9316done
9317
9318if test -z "$ac_cv_prog_WINDMC" ; then
9319 set dummy windmc
9320 if test $build = $host ; then
9321 WINDMC="$2"
9322 else
9323 WINDMC="${ncn_tool_prefix}$2"
9324 fi
9325fi
9326
9327
9328
95a05732 9329if test -n "$OBJCOPY"; then
9330 ac_cv_prog_OBJCOPY=$OBJCOPY
9331elif test -n "$ac_cv_prog_OBJCOPY"; then
9332 OBJCOPY=$ac_cv_prog_OBJCOPY
9333fi
9334
9335if test -n "$ac_cv_prog_OBJCOPY"; then
9336 for ncn_progname in objcopy; do
9337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9338set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9340$as_echo_n "checking for $ac_word... " >&6; }
9341if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
95a05732 9343else
9344 if test -n "$OBJCOPY"; then
9345 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9346else
9347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348for as_dir in $PATH
9349do
9350 IFS=$as_save_IFS
9351 test -z "$as_dir" && as_dir=.
cd9a469c 9352 for ac_exec_ext in '' $ac_executable_extensions; do
9353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9354 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9356 break 2
9357 fi
9358done
cd9a469c 9359 done
9360IFS=$as_save_IFS
95a05732 9361
9362fi
9363fi
9364OBJCOPY=$ac_cv_prog_OBJCOPY
9365if test -n "$OBJCOPY"; then
cd9a469c 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9367$as_echo "$OBJCOPY" >&6; }
95a05732 9368else
cd9a469c 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370$as_echo "no" >&6; }
95a05732 9371fi
9372
cd9a469c 9373
95a05732 9374 done
9375fi
9376
9377for ncn_progname in objcopy; do
768691b5 9378 if test -n "$ncn_tool_prefix"; then
9379 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382$as_echo_n "checking for $ac_word... " >&6; }
9383if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
bb612911 9385else
9386 if test -n "$OBJCOPY"; then
9387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9388else
b30fcfae 9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
cd9a469c 9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9396 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9398 break 2
9399 fi
9400done
cd9a469c 9401 done
9402IFS=$as_save_IFS
b30fcfae 9403
bb612911 9404fi
9405fi
b30fcfae 9406OBJCOPY=$ac_cv_prog_OBJCOPY
bb612911 9407if test -n "$OBJCOPY"; then
cd9a469c 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9409$as_echo "$OBJCOPY" >&6; }
bb612911 9410else
cd9a469c 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412$as_echo "no" >&6; }
bb612911 9413fi
9414
cd9a469c 9415
768691b5 9416 fi
9417 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9419set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
9422if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
bb612911 9424else
768691b5 9425 if test -n "$OBJCOPY"; then
9426 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
bb612911 9427else
b30fcfae 9428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429for as_dir in $PATH
9430do
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
cd9a469c 9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9435 ac_cv_prog_OBJCOPY="${ncn_progname}"
cd9a469c 9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9437 break 2
9438 fi
9439done
cd9a469c 9440 done
9441IFS=$as_save_IFS
b30fcfae 9442
bb612911 9443fi
9444fi
b30fcfae 9445OBJCOPY=$ac_cv_prog_OBJCOPY
768691b5 9446if test -n "$OBJCOPY"; then
cd9a469c 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9448$as_echo "$OBJCOPY" >&6; }
bb612911 9449else
cd9a469c 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451$as_echo "no" >&6; }
bb612911 9452fi
b30fcfae 9453
cd9a469c 9454
768691b5 9455 fi
9456 test -n "$ac_cv_prog_OBJCOPY" && break
9457done
9458
9459if test -z "$ac_cv_prog_OBJCOPY" ; then
9460 set dummy objcopy
9461 if test $build = $host ; then
9462 OBJCOPY="$2"
bb612911 9463 else
768691b5 9464 OBJCOPY="${ncn_tool_prefix}$2"
bb612911 9465 fi
bb612911 9466fi
9467
95a05732 9468
9469
9470if test -n "$OBJDUMP"; then
9471 ac_cv_prog_OBJDUMP=$OBJDUMP
9472elif test -n "$ac_cv_prog_OBJDUMP"; then
9473 OBJDUMP=$ac_cv_prog_OBJDUMP
9474fi
9475
9476if test -n "$ac_cv_prog_OBJDUMP"; then
9477 for ncn_progname in objdump; do
9478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9479set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481$as_echo_n "checking for $ac_word... " >&6; }
9482if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9483 $as_echo_n "(cached) " >&6
95a05732 9484else
9485 if test -n "$OBJDUMP"; then
9486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9487else
9488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489for as_dir in $PATH
9490do
9491 IFS=$as_save_IFS
9492 test -z "$as_dir" && as_dir=.
cd9a469c 9493 for ac_exec_ext in '' $ac_executable_extensions; do
9494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9495 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9497 break 2
9498 fi
9499done
cd9a469c 9500 done
9501IFS=$as_save_IFS
95a05732 9502
9503fi
9504fi
9505OBJDUMP=$ac_cv_prog_OBJDUMP
9506if test -n "$OBJDUMP"; then
cd9a469c 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9508$as_echo "$OBJDUMP" >&6; }
95a05732 9509else
cd9a469c 9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511$as_echo "no" >&6; }
95a05732 9512fi
9513
cd9a469c 9514
95a05732 9515 done
9516fi
9517
9518for ncn_progname in objdump; do
768691b5 9519 if test -n "$ncn_tool_prefix"; then
9520 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
9524if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
bb612911 9526else
9527 if test -n "$OBJDUMP"; then
9528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9529else
b30fcfae 9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
cd9a469c 9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9537 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
cd9a469c 9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9539 break 2
9540 fi
9541done
cd9a469c 9542 done
9543IFS=$as_save_IFS
b30fcfae 9544
bb612911 9545fi
9546fi
b30fcfae 9547OBJDUMP=$ac_cv_prog_OBJDUMP
bb612911 9548if test -n "$OBJDUMP"; then
cd9a469c 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9550$as_echo "$OBJDUMP" >&6; }
bb612911 9551else
cd9a469c 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
bb612911 9554fi
9555
cd9a469c 9556
768691b5 9557 fi
9558 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9560set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562$as_echo_n "checking for $ac_word... " >&6; }
9563if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
bb612911 9565else
768691b5 9566 if test -n "$OBJDUMP"; then
9567 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
bb612911 9568else
b30fcfae 9569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570for as_dir in $PATH
9571do
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
cd9a469c 9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9576 ac_cv_prog_OBJDUMP="${ncn_progname}"
cd9a469c 9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9578 break 2
9579 fi
9580done
cd9a469c 9581 done
9582IFS=$as_save_IFS
b30fcfae 9583
bb612911 9584fi
9585fi
b30fcfae 9586OBJDUMP=$ac_cv_prog_OBJDUMP
768691b5 9587if test -n "$OBJDUMP"; then
cd9a469c 9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9589$as_echo "$OBJDUMP" >&6; }
bb612911 9590else
cd9a469c 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592$as_echo "no" >&6; }
bb612911 9593fi
b30fcfae 9594
cd9a469c 9595
768691b5 9596 fi
9597 test -n "$ac_cv_prog_OBJDUMP" && break
9598done
9599
9600if test -z "$ac_cv_prog_OBJDUMP" ; then
9601 set dummy objdump
9602 if test $build = $host ; then
9603 OBJDUMP="$2"
bb612911 9604 else
768691b5 9605 OBJDUMP="${ncn_tool_prefix}$2"
bb612911 9606 fi
bb612911 9607fi
9608
71ab34df 9609
9610
9611
9612
9613
f5aebe3e 9614# Target tools.
b30fcfae 9615
cd9a469c 9616# Check whether --with-build-time-tools was given.
9617if test "${with_build_time_tools+set}" = set; then :
9618 withval=$with_build_time_tools; case x"$withval" in
c47832b1 9619 x/*) ;;
9620 *)
9621 with_build_time_tools=
cd9a469c 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9623$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
c47832b1 9624 ;;
9625 esac
bb612911 9626else
c47832b1 9627 with_build_time_tools=
cd9a469c 9628fi
9629
bb612911 9630
95a05732 9631
9632
9633if test -n "$CC_FOR_TARGET"; then
9634 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9635elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9636 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9637fi
9638
9639if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9640 for ncn_progname in cc gcc; do
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644$as_echo_n "checking for $ac_word... " >&6; }
9645if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
95a05732 9647else
9648 if test -n "$CC_FOR_TARGET"; then
9649 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9650else
9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652for as_dir in $PATH
9653do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
cd9a469c 9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9658 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9660 break 2
9661 fi
9662done
cd9a469c 9663 done
9664IFS=$as_save_IFS
95a05732 9665
9666fi
9667fi
9668CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9669if test -n "$CC_FOR_TARGET"; then
cd9a469c 9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9671$as_echo "$CC_FOR_TARGET" >&6; }
95a05732 9672else
cd9a469c 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674$as_echo "no" >&6; }
95a05732 9675fi
9676
cd9a469c 9677
95a05732 9678 done
9679fi
9680
9681if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9682 for ncn_progname in cc gcc; do
cd9a469c 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9684$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 9685 if test -x $with_build_time_tools/${ncn_progname}; then
9686 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688$as_echo "yes" >&6; }
9886f3d1 9689 break
c47832b1 9690 else
cd9a469c 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
9886f3d1 9693 fi
9694 done
ef8184c7 9695fi
9696
c47832b1 9697if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9698 for ncn_progname in cc gcc; do
9699 if test -n "$ncn_target_tool_prefix"; then
9700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9701set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703$as_echo_n "checking for $ac_word... " >&6; }
9704if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
ef8184c7 9706else
9707 if test -n "$CC_FOR_TARGET"; then
9708 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9709else
b30fcfae 9710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711for as_dir in $PATH
9712do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
cd9a469c 9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9717 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9719 break 2
9720 fi
9721done
cd9a469c 9722 done
9723IFS=$as_save_IFS
b30fcfae 9724
ef8184c7 9725fi
9726fi
b30fcfae 9727CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
ef8184c7 9728if test -n "$CC_FOR_TARGET"; then
cd9a469c 9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9730$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 9731else
cd9a469c 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733$as_echo "no" >&6; }
ef8184c7 9734fi
9735
cd9a469c 9736
c47832b1 9737 fi
9738 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9740set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742$as_echo_n "checking for $ac_word... " >&6; }
9743if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
ef8184c7 9745else
768691b5 9746 if test -n "$CC_FOR_TARGET"; then
9747 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
ef8184c7 9748else
b30fcfae 9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750for as_dir in $PATH
9751do
9752 IFS=$as_save_IFS
9753 test -z "$as_dir" && as_dir=.
cd9a469c 9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9756 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
cd9a469c 9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9758 break 2
9759 fi
9760done
cd9a469c 9761 done
9762IFS=$as_save_IFS
b30fcfae 9763
ef8184c7 9764fi
9765fi
b30fcfae 9766CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
768691b5 9767if test -n "$CC_FOR_TARGET"; then
cd9a469c 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9769$as_echo "$CC_FOR_TARGET" >&6; }
ef8184c7 9770else
cd9a469c 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772$as_echo "no" >&6; }
ef8184c7 9773fi
b30fcfae 9774
cd9a469c 9775
c47832b1 9776 fi
9777 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9778 done
9779fi
b30fcfae 9780
768691b5 9781if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9782 set dummy cc gcc
9783 if test $build = $target ; then
9784 CC_FOR_TARGET="$2"
ef8184c7 9785 else
768691b5 9786 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9787 fi
b7ef8464 9788else
9789 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
ef8184c7 9790fi
9791
95a05732 9792
9793
9794if test -n "$CXX_FOR_TARGET"; then
9795 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9796elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9797 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9798fi
9799
9800if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9801 for ncn_progname in c++ g++ cxx gxx; do
9802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9803set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805$as_echo_n "checking for $ac_word... " >&6; }
9806if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
95a05732 9808else
9809 if test -n "$CXX_FOR_TARGET"; then
9810 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9811else
9812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in $PATH
9814do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
cd9a469c 9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9819 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9821 break 2
9822 fi
9823done
cd9a469c 9824 done
9825IFS=$as_save_IFS
95a05732 9826
9827fi
9828fi
9829CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9830if test -n "$CXX_FOR_TARGET"; then
cd9a469c 9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9832$as_echo "$CXX_FOR_TARGET" >&6; }
95a05732 9833else
cd9a469c 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835$as_echo "no" >&6; }
95a05732 9836fi
9837
cd9a469c 9838
95a05732 9839 done
9840fi
9841
9842if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 9843 for ncn_progname in c++ g++ cxx gxx; do
cd9a469c 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9845$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 9846 if test -x $with_build_time_tools/${ncn_progname}; then
9847 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9849$as_echo "yes" >&6; }
c47832b1 9850 break
9851 else
cd9a469c 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853$as_echo "no" >&6; }
c47832b1 9854 fi
9855 done
9856fi
9857
9858if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9859 for ncn_progname in c++ g++ cxx gxx; do
9860 if test -n "$ncn_target_tool_prefix"; then
9861 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 9862set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
ef8184c7 9867else
9868 if test -n "$CXX_FOR_TARGET"; then
9869 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9870else
b30fcfae 9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
cd9a469c 9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9878 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9880 break 2
9881 fi
9882done
cd9a469c 9883 done
9884IFS=$as_save_IFS
b30fcfae 9885
ef8184c7 9886fi
9887fi
b30fcfae 9888CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
ef8184c7 9889if test -n "$CXX_FOR_TARGET"; then
cd9a469c 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9891$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 9892else
cd9a469c 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
ef8184c7 9895fi
9896
cd9a469c 9897
c47832b1 9898 fi
9899 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 9901set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903$as_echo_n "checking for $ac_word... " >&6; }
9904if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
ef8184c7 9906else
768691b5 9907 if test -n "$CXX_FOR_TARGET"; then
9908 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
ef8184c7 9909else
b30fcfae 9910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911for as_dir in $PATH
9912do
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
cd9a469c 9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 9917 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
cd9a469c 9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 9919 break 2
9920 fi
9921done
cd9a469c 9922 done
9923IFS=$as_save_IFS
b30fcfae 9924
ef8184c7 9925fi
9926fi
b30fcfae 9927CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
768691b5 9928if test -n "$CXX_FOR_TARGET"; then
cd9a469c 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9930$as_echo "$CXX_FOR_TARGET" >&6; }
ef8184c7 9931else
cd9a469c 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
ef8184c7 9934fi
b30fcfae 9935
cd9a469c 9936
c47832b1 9937 fi
9938 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9939 done
9940fi
b30fcfae 9941
768691b5 9942if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9943 set dummy c++ g++ cxx gxx
9944 if test $build = $target ; then
9945 CXX_FOR_TARGET="$2"
ef8184c7 9946 else
768691b5 9947 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 9948 fi
b7ef8464 9949else
9950 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
bb612911 9951fi
9952
95a05732 9953
9954
9955if test -n "$GCC_FOR_TARGET"; then
9956 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9957elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9958 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9959fi
9960
9961if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9962 for ncn_progname in gcc; do
9963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9964set dummy ${ncn_progname}; ac_word=$2
cd9a469c 9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966$as_echo_n "checking for $ac_word... " >&6; }
9967if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
95a05732 9969else
9970 if test -n "$GCC_FOR_TARGET"; then
9971 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9972else
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
cd9a469c 9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 9980 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 9982 break 2
9983 fi
9984done
cd9a469c 9985 done
9986IFS=$as_save_IFS
95a05732 9987
9988fi
9989fi
9990GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9991if test -n "$GCC_FOR_TARGET"; then
cd9a469c 9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9993$as_echo "$GCC_FOR_TARGET" >&6; }
95a05732 9994else
cd9a469c 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996$as_echo "no" >&6; }
95a05732 9997fi
9998
cd9a469c 9999
95a05732 10000 done
10001fi
10002
10003if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10004 for ncn_progname in gcc; do
cd9a469c 10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10006$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10007 if test -x $with_build_time_tools/${ncn_progname}; then
10008 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010$as_echo "yes" >&6; }
c47832b1 10011 break
10012 else
cd9a469c 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014$as_echo "no" >&6; }
c47832b1 10015 fi
10016 done
10017fi
10018
10019if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10020 for ncn_progname in gcc; do
10021 if test -n "$ncn_target_tool_prefix"; then
10022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025$as_echo_n "checking for $ac_word... " >&6; }
10026if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
bb612911 10028else
c47832b1 10029 if test -n "$GCC_FOR_TARGET"; then
10030 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10031else
b30fcfae 10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
cd9a469c 10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10039 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10041 break 2
10042 fi
10043done
cd9a469c 10044 done
10045IFS=$as_save_IFS
b30fcfae 10046
bb612911 10047fi
10048fi
b30fcfae 10049GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10050if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10052$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10053else
cd9a469c 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
bb612911 10056fi
10057
cd9a469c 10058
c47832b1 10059 fi
10060 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 10062set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064$as_echo_n "checking for $ac_word... " >&6; }
10065if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
bb612911 10067else
c47832b1 10068 if test -n "$GCC_FOR_TARGET"; then
10069 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
bb612911 10070else
b30fcfae 10071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072for as_dir in $PATH
10073do
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
cd9a469c 10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10078 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
cd9a469c 10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10080 break 2
10081 fi
10082done
cd9a469c 10083 done
10084IFS=$as_save_IFS
b30fcfae 10085
bb612911 10086fi
10087fi
b30fcfae 10088GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
c47832b1 10089if test -n "$GCC_FOR_TARGET"; then
cd9a469c 10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10091$as_echo "$GCC_FOR_TARGET" >&6; }
bb612911 10092else
cd9a469c 10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
bb612911 10095fi
b30fcfae 10096
cd9a469c 10097
c47832b1 10098 fi
10099 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10100 done
10101fi
b30fcfae 10102
c47832b1 10103if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10104 GCC_FOR_TARGET="${CC_FOR_TARGET}"
b7ef8464 10105else
10106 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
c47832b1 10107fi
10108
95a05732 10109
10110
10111if test -n "$GCJ_FOR_TARGET"; then
10112 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10113elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10114 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10115fi
10116
10117if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10118 for ncn_progname in gcj; do
10119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10120set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
95a05732 10125else
10126 if test -n "$GCJ_FOR_TARGET"; then
10127 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
cd9a469c 10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10136 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
cd9a469c 10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10138 break 2
10139 fi
10140done
cd9a469c 10141 done
10142IFS=$as_save_IFS
95a05732 10143
10144fi
10145fi
10146GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10147if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10149$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10150else
cd9a469c 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
95a05732 10153fi
10154
cd9a469c 10155
95a05732 10156 done
10157fi
10158
10159if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10160 for ncn_progname in gcj; do
cd9a469c 10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10162$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10163 if test -x $with_build_time_tools/${ncn_progname}; then
10164 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10166$as_echo "yes" >&6; }
c47832b1 10167 break
10168 else
cd9a469c 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
c47832b1 10171 fi
10172 done
10173fi
10174
10175if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10176 for ncn_progname in gcj; do
10177 if test -n "$ncn_target_tool_prefix"; then
10178 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10179set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181$as_echo_n "checking for $ac_word... " >&6; }
10182if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
c47832b1 10184else
a4af6a58 10185 if test -n "$GCJ_FOR_TARGET"; then
10186 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10187else
b30fcfae 10188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in $PATH
10190do
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
cd9a469c 10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10195 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10197 break 2
10198 fi
10199done
cd9a469c 10200 done
10201IFS=$as_save_IFS
b30fcfae 10202
c47832b1 10203fi
10204fi
95a05732 10205GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10206if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10208$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10209else
cd9a469c 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211$as_echo "no" >&6; }
95a05732 10212fi
10213
cd9a469c 10214
95a05732 10215 fi
10216 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10218set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220$as_echo_n "checking for $ac_word... " >&6; }
10221if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10222 $as_echo_n "(cached) " >&6
95a05732 10223else
10224 if test -n "$GCJ_FOR_TARGET"; then
10225 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10226else
10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
cd9a469c 10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10234 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
cd9a469c 10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10236 break 2
10237 fi
10238done
cd9a469c 10239 done
10240IFS=$as_save_IFS
95a05732 10241
10242fi
10243fi
10244GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10245if test -n "$GCJ_FOR_TARGET"; then
cd9a469c 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10247$as_echo "$GCJ_FOR_TARGET" >&6; }
95a05732 10248else
cd9a469c 10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250$as_echo "no" >&6; }
95a05732 10251fi
10252
cd9a469c 10253
95a05732 10254 fi
10255 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10256 done
10257fi
10258
10259if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10260 set dummy gcj
10261 if test $build = $target ; then
10262 GCJ_FOR_TARGET="$2"
10263 else
10264 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10265 fi
b7ef8464 10266else
10267 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
95a05732 10268fi
10269
10270
10271
10272if test -n "$GFORTRAN_FOR_TARGET"; then
10273 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10274elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10275 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10276fi
10277
95a05732 10278if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10279 for ncn_progname in gfortran; do
10280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
c47832b1 10281set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283$as_echo_n "checking for $ac_word... " >&6; }
10284if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
c47832b1 10286else
95a05732 10287 if test -n "$GFORTRAN_FOR_TARGET"; then
10288 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
c47832b1 10289else
b30fcfae 10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
cd9a469c 10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10297 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10299 break 2
10300 fi
10301done
cd9a469c 10302 done
10303IFS=$as_save_IFS
b30fcfae 10304
c47832b1 10305fi
10306fi
95a05732 10307GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10308if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10310$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10311else
cd9a469c 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313$as_echo "no" >&6; }
c47832b1 10314fi
b30fcfae 10315
cd9a469c 10316
c47832b1 10317 done
10318fi
b30fcfae 10319
95a05732 10320if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10321 for ncn_progname in gfortran; do
cd9a469c 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10323$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10324 if test -x $with_build_time_tools/${ncn_progname}; then
10325 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10327$as_echo "yes" >&6; }
c47832b1 10328 break
10329 else
cd9a469c 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331$as_echo "no" >&6; }
c47832b1 10332 fi
10333 done
10334fi
10335
10336if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10337 for ncn_progname in gfortran; do
10338 if test -n "$ncn_target_tool_prefix"; then
10339 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10340set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342$as_echo_n "checking for $ac_word... " >&6; }
10343if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
c47832b1 10345else
10346 if test -n "$GFORTRAN_FOR_TARGET"; then
b30fcfae 10347 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
cd9a469c 10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10356 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10358 break 2
10359 fi
10360done
cd9a469c 10361 done
10362IFS=$as_save_IFS
b30fcfae 10363
c47832b1 10364fi
10365fi
b30fcfae 10366GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10367if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10369$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10370else
cd9a469c 10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372$as_echo "no" >&6; }
c47832b1 10373fi
10374
cd9a469c 10375
c47832b1 10376 fi
10377 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10379set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381$as_echo_n "checking for $ac_word... " >&6; }
10382if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
c47832b1 10384else
10385 if test -n "$GFORTRAN_FOR_TARGET"; then
10386 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10387else
b30fcfae 10388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389for as_dir in $PATH
10390do
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
cd9a469c 10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10395 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
cd9a469c 10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10397 break 2
10398 fi
10399done
cd9a469c 10400 done
10401IFS=$as_save_IFS
b30fcfae 10402
c47832b1 10403fi
10404fi
b30fcfae 10405GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
c47832b1 10406if test -n "$GFORTRAN_FOR_TARGET"; then
cd9a469c 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10408$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
c47832b1 10409else
cd9a469c 10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
c47832b1 10412fi
b30fcfae 10413
cd9a469c 10414
c47832b1 10415 fi
10416 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10417 done
10418fi
b30fcfae 10419
c47832b1 10420if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10421 set dummy gfortran
768691b5 10422 if test $build = $target ; then
c47832b1 10423 GFORTRAN_FOR_TARGET="$2"
bb612911 10424 else
c47832b1 10425 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10426 fi
b7ef8464 10427else
10428 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
c47832b1 10429fi
10430
10431
10432
5ff5b630 10433if test -n "$GOC_FOR_TARGET"; then
10434 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10435elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10436 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10437fi
10438
10439if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10440 for ncn_progname in gccgo; do
10441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10442set dummy ${ncn_progname}; ac_word=$2
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444$as_echo_n "checking for $ac_word... " >&6; }
10445if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447else
10448 if test -n "$GOC_FOR_TARGET"; then
10449 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462done
10463 done
10464IFS=$as_save_IFS
10465
10466fi
10467fi
10468GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10469if test -n "$GOC_FOR_TARGET"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10471$as_echo "$GOC_FOR_TARGET" >&6; }
10472else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474$as_echo "no" >&6; }
10475fi
10476
10477
10478 done
10479fi
10480
10481if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10482 for ncn_progname in gccgo; do
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10484$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10485 if test -x $with_build_time_tools/${ncn_progname}; then
10486 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488$as_echo "yes" >&6; }
10489 break
10490 else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
10493 fi
10494 done
10495fi
10496
10497if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10498 for ncn_progname in gccgo; do
10499 if test -n "$ncn_target_tool_prefix"; then
10500 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10501set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503$as_echo_n "checking for $ac_word... " >&6; }
10504if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
10506else
10507 if test -n "$GOC_FOR_TARGET"; then
10508 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10509else
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10520 fi
10521done
10522 done
10523IFS=$as_save_IFS
10524
10525fi
10526fi
10527GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10528if test -n "$GOC_FOR_TARGET"; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10530$as_echo "$GOC_FOR_TARGET" >&6; }
10531else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533$as_echo "no" >&6; }
10534fi
10535
10536
10537 fi
10538 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10540set dummy ${ncn_progname}; ac_word=$2
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542$as_echo_n "checking for $ac_word... " >&6; }
10543if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545else
10546 if test -n "$GOC_FOR_TARGET"; then
10547 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10548else
10549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550for as_dir in $PATH
10551do
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
10555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10556 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558 break 2
10559 fi
10560done
10561 done
10562IFS=$as_save_IFS
10563
10564fi
10565fi
10566GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10567if test -n "$GOC_FOR_TARGET"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10569$as_echo "$GOC_FOR_TARGET" >&6; }
10570else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573fi
10574
10575
10576 fi
10577 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10578 done
10579fi
10580
10581if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10582 set dummy gccgo
10583 if test $build = $target ; then
10584 GOC_FOR_TARGET="$2"
10585 else
10586 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10587 fi
10588else
10589 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10590fi
10591
10592
10593
c47832b1 10594cat > conftest.c << \EOF
10595#ifdef __GNUC__
10596 gcc_yay;
10597#endif
10598EOF
10599if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10600 have_gcc_for_target=yes
10601else
10602 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10603 have_gcc_for_target=no
10604fi
10605rm conftest.c
10606
10607
10608
10609
10610if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10611 if test -n "$with_build_time_tools"; then
cd9a469c 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10613$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
ab0da556 10614 if test -x $with_build_time_tools/ar; then
10615 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10616 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
cd9a469c 10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10618$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
ab0da556 10619 else
cd9a469c 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621$as_echo "no" >&6; }
ab0da556 10622 fi
c47832b1 10623 elif test $build != $host && test $have_gcc_for_target = yes; then
10624 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
b7ef8464 10625 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10626 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
c47832b1 10627 fi
10628fi
38d7211b 10629if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10630 # Extract the first word of "ar", so it can be a program name with args.
10631set dummy ar; ac_word=$2
cd9a469c 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633$as_echo_n "checking for $ac_word... " >&6; }
10634if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
c47832b1 10636else
b30fcfae 10637 case $AR_FOR_TARGET in
10638 [\\/]* | ?:[\\/]*)
c47832b1 10639 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10640 ;;
c47832b1 10641 *)
b30fcfae 10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $gcc_cv_tool_dirs
10644do
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
cd9a469c 10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10649 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10651 break 2
10652 fi
10653done
cd9a469c 10654 done
10655IFS=$as_save_IFS
b30fcfae 10656
c47832b1 10657 ;;
10658esac
10659fi
b30fcfae 10660AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 10661if test -n "$AR_FOR_TARGET"; then
cd9a469c 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10663$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 10664else
cd9a469c 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; }
ef8184c7 10667fi
10668
cd9a469c 10669
c47832b1 10670fi
10671if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
95a05732 10672
10673
10674if test -n "$AR_FOR_TARGET"; then
10675 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10676elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10677 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10678fi
10679
10680if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10681 for ncn_progname in ar; do
10682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10683set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685$as_echo_n "checking for $ac_word... " >&6; }
10686if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10687 $as_echo_n "(cached) " >&6
95a05732 10688else
10689 if test -n "$AR_FOR_TARGET"; then
10690 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10691else
10692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
cd9a469c 10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10699 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10701 break 2
10702 fi
10703done
cd9a469c 10704 done
10705IFS=$as_save_IFS
95a05732 10706
10707fi
10708fi
10709AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10710if test -n "$AR_FOR_TARGET"; then
cd9a469c 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10712$as_echo "$AR_FOR_TARGET" >&6; }
95a05732 10713else
cd9a469c 10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715$as_echo "no" >&6; }
95a05732 10716fi
10717
cd9a469c 10718
95a05732 10719 done
10720fi
10721
10722if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10723 for ncn_progname in ar; do
cd9a469c 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10725$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10726 if test -x $with_build_time_tools/${ncn_progname}; then
10727 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729$as_echo "yes" >&6; }
c47832b1 10730 break
10731 else
cd9a469c 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733$as_echo "no" >&6; }
c47832b1 10734 fi
10735 done
10736fi
10737
10738if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10739 for ncn_progname in ar; do
10740 if test -n "$ncn_target_tool_prefix"; then
10741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 10742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744$as_echo_n "checking for $ac_word... " >&6; }
10745if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
ef8184c7 10747else
c47832b1 10748 if test -n "$AR_FOR_TARGET"; then
10749 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
ef8184c7 10750else
b30fcfae 10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
cd9a469c 10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10758 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10760 break 2
10761 fi
10762done
cd9a469c 10763 done
10764IFS=$as_save_IFS
b30fcfae 10765
ef8184c7 10766fi
10767fi
b30fcfae 10768AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 10769if test -n "$AR_FOR_TARGET"; then
cd9a469c 10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10771$as_echo "$AR_FOR_TARGET" >&6; }
ef8184c7 10772else
cd9a469c 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774$as_echo "no" >&6; }
ef8184c7 10775fi
10776
cd9a469c 10777
c47832b1 10778 fi
10779 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10781set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783$as_echo_n "checking for $ac_word... " >&6; }
10784if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
c47832b1 10786else
10787 if test -n "$AR_FOR_TARGET"; then
10788 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10789else
b30fcfae 10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
cd9a469c 10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10797 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
cd9a469c 10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10799 break 2
10800 fi
10801done
cd9a469c 10802 done
10803IFS=$as_save_IFS
b30fcfae 10804
c47832b1 10805fi
10806fi
b30fcfae 10807AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
c47832b1 10808if test -n "$AR_FOR_TARGET"; then
cd9a469c 10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10810$as_echo "$AR_FOR_TARGET" >&6; }
c47832b1 10811else
cd9a469c 10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
c47832b1 10814fi
b30fcfae 10815
cd9a469c 10816
c47832b1 10817 fi
10818 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10819 done
10820fi
b30fcfae 10821
c47832b1 10822if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10823 set dummy ar
10824 if test $build = $target ; then
10825 AR_FOR_TARGET="$2"
10826 else
10827 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
768691b5 10828 fi
b7ef8464 10829else
10830 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
c47832b1 10831fi
10832
ab0da556 10833else
10834 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
c47832b1 10835fi
10836
10837
10838
10839
10840if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10841 if test -n "$with_build_time_tools"; then
cd9a469c 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10843$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
ab0da556 10844 if test -x $with_build_time_tools/as; then
10845 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10846 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
cd9a469c 10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10848$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
ab0da556 10849 else
cd9a469c 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
ab0da556 10852 fi
c47832b1 10853 elif test $build != $host && test $have_gcc_for_target = yes; then
10854 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
b7ef8464 10855 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10856 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
c47832b1 10857 fi
10858fi
38d7211b 10859if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 10860 # Extract the first word of "as", so it can be a program name with args.
10861set dummy as; ac_word=$2
cd9a469c 10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
10864if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
c47832b1 10866else
b30fcfae 10867 case $AS_FOR_TARGET in
10868 [\\/]* | ?:[\\/]*)
c47832b1 10869 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10870 ;;
c47832b1 10871 *)
b30fcfae 10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873for as_dir in $gcc_cv_tool_dirs
10874do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
cd9a469c 10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10879 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10881 break 2
10882 fi
10883done
cd9a469c 10884 done
10885IFS=$as_save_IFS
b30fcfae 10886
c47832b1 10887 ;;
10888esac
10889fi
b30fcfae 10890AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
c47832b1 10891if test -n "$AS_FOR_TARGET"; then
cd9a469c 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10893$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 10894else
cd9a469c 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896$as_echo "no" >&6; }
c47832b1 10897fi
10898
cd9a469c 10899
c47832b1 10900fi
10901if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
95a05732 10902
10903
10904if test -n "$AS_FOR_TARGET"; then
10905 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10906elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10907 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10908fi
10909
10910if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10911 for ncn_progname in as; do
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913set dummy ${ncn_progname}; ac_word=$2
cd9a469c 10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915$as_echo_n "checking for $ac_word... " >&6; }
10916if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
95a05732 10918else
10919 if test -n "$AS_FOR_TARGET"; then
10920 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10921else
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
cd9a469c 10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 10929 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 10931 break 2
10932 fi
10933done
cd9a469c 10934 done
10935IFS=$as_save_IFS
95a05732 10936
10937fi
10938fi
10939AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10940if test -n "$AS_FOR_TARGET"; then
cd9a469c 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10942$as_echo "$AS_FOR_TARGET" >&6; }
95a05732 10943else
cd9a469c 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
95a05732 10946fi
10947
cd9a469c 10948
95a05732 10949 done
10950fi
10951
10952if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 10953 for ncn_progname in as; do
cd9a469c 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10955$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 10956 if test -x $with_build_time_tools/${ncn_progname}; then
10957 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10959$as_echo "yes" >&6; }
c47832b1 10960 break
10961 else
cd9a469c 10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963$as_echo "no" >&6; }
c47832b1 10964 fi
10965 done
10966fi
10967
10968if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10969 for ncn_progname in as; do
10970 if test -n "$ncn_target_tool_prefix"; then
10971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
10975if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
c47832b1 10977else
10978 if test -n "$AS_FOR_TARGET"; then
10979 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10980else
b30fcfae 10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
cd9a469c 10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 10988 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 10990 break 2
10991 fi
10992done
cd9a469c 10993 done
10994IFS=$as_save_IFS
b30fcfae 10995
c47832b1 10996fi
10997fi
b30fcfae 10998AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 10999if test -n "$AS_FOR_TARGET"; then
cd9a469c 11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11001$as_echo "$AS_FOR_TARGET" >&6; }
c47832b1 11002else
cd9a469c 11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
c47832b1 11005fi
11006
cd9a469c 11007
c47832b1 11008 fi
11009 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11011set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013$as_echo_n "checking for $ac_word... " >&6; }
11014if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
ef8184c7 11016else
c47832b1 11017 if test -n "$AS_FOR_TARGET"; then
11018 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
ef8184c7 11019else
b30fcfae 11020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021for as_dir in $PATH
11022do
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
cd9a469c 11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11027 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
cd9a469c 11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11029 break 2
11030 fi
11031done
cd9a469c 11032 done
11033IFS=$as_save_IFS
b30fcfae 11034
ef8184c7 11035fi
11036fi
b30fcfae 11037AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
c47832b1 11038if test -n "$AS_FOR_TARGET"; then
cd9a469c 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11040$as_echo "$AS_FOR_TARGET" >&6; }
ef8184c7 11041else
cd9a469c 11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
ef8184c7 11044fi
b30fcfae 11045
cd9a469c 11046
c47832b1 11047 fi
11048 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11049 done
11050fi
b30fcfae 11051
c47832b1 11052if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11053 set dummy as
11054 if test $build = $target ; then
11055 AS_FOR_TARGET="$2"
11056 else
11057 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
ef8184c7 11058 fi
b7ef8464 11059else
11060 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
c47832b1 11061fi
768691b5 11062
ab0da556 11063else
11064 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
ef8184c7 11065fi
11066
c47832b1 11067
11068
11069
11070if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11071 if test -n "$with_build_time_tools"; then
cd9a469c 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11073$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
ab0da556 11074 if test -x $with_build_time_tools/dlltool; then
11075 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11076 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
cd9a469c 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11078$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
ab0da556 11079 else
cd9a469c 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081$as_echo "no" >&6; }
ab0da556 11082 fi
c47832b1 11083 elif test $build != $host && test $have_gcc_for_target = yes; then
11084 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
b7ef8464 11085 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11086 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
c47832b1 11087 fi
11088fi
38d7211b 11089if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11090 # Extract the first word of "dlltool", so it can be a program name with args.
11091set dummy dlltool; ac_word=$2
cd9a469c 11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
ef8184c7 11096else
b30fcfae 11097 case $DLLTOOL_FOR_TARGET in
11098 [\\/]* | ?:[\\/]*)
c47832b1 11099 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11100 ;;
c47832b1 11101 *)
b30fcfae 11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $gcc_cv_tool_dirs
11104do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
cd9a469c 11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11109 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11111 break 2
11112 fi
11113done
cd9a469c 11114 done
11115IFS=$as_save_IFS
b30fcfae 11116
c47832b1 11117 ;;
11118esac
ef8184c7 11119fi
b30fcfae 11120DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11121if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11123$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11124else
cd9a469c 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126$as_echo "no" >&6; }
ef8184c7 11127fi
11128
cd9a469c 11129
c47832b1 11130fi
11131if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
95a05732 11132
11133
11134if test -n "$DLLTOOL_FOR_TARGET"; then
11135 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11136elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11137 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11138fi
11139
11140if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11141 for ncn_progname in dlltool; do
11142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11143set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145$as_echo_n "checking for $ac_word... " >&6; }
11146if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
95a05732 11148else
11149 if test -n "$DLLTOOL_FOR_TARGET"; then
11150 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11151else
11152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $PATH
11154do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
cd9a469c 11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11159 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11161 break 2
11162 fi
11163done
cd9a469c 11164 done
11165IFS=$as_save_IFS
95a05732 11166
11167fi
11168fi
11169DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11170if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11172$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
95a05732 11173else
cd9a469c 11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175$as_echo "no" >&6; }
95a05732 11176fi
11177
cd9a469c 11178
95a05732 11179 done
11180fi
11181
11182if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11183 for ncn_progname in dlltool; do
cd9a469c 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11185$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11186 if test -x $with_build_time_tools/${ncn_progname}; then
11187 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11189$as_echo "yes" >&6; }
c47832b1 11190 break
11191 else
cd9a469c 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193$as_echo "no" >&6; }
c47832b1 11194 fi
11195 done
11196fi
11197
11198if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11199 for ncn_progname in dlltool; do
11200 if test -n "$ncn_target_tool_prefix"; then
11201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11202set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204$as_echo_n "checking for $ac_word... " >&6; }
11205if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
ef8184c7 11207else
c47832b1 11208 if test -n "$DLLTOOL_FOR_TARGET"; then
11209 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11210else
b30fcfae 11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212for as_dir in $PATH
11213do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
cd9a469c 11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11218 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11220 break 2
11221 fi
11222done
cd9a469c 11223 done
11224IFS=$as_save_IFS
b30fcfae 11225
ef8184c7 11226fi
11227fi
b30fcfae 11228DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11229if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11231$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11232else
cd9a469c 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
ef8184c7 11235fi
ef8184c7 11236
cd9a469c 11237
c47832b1 11238 fi
11239 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11241set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243$as_echo_n "checking for $ac_word... " >&6; }
11244if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
ef8184c7 11246else
c47832b1 11247 if test -n "$DLLTOOL_FOR_TARGET"; then
11248 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
ef8184c7 11249else
b30fcfae 11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $PATH
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
cd9a469c 11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11257 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
cd9a469c 11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11259 break 2
11260 fi
11261done
cd9a469c 11262 done
11263IFS=$as_save_IFS
b30fcfae 11264
ef8184c7 11265fi
11266fi
b30fcfae 11267DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
c47832b1 11268if test -n "$DLLTOOL_FOR_TARGET"; then
cd9a469c 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11270$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
ef8184c7 11271else
cd9a469c 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
ef8184c7 11274fi
b30fcfae 11275
cd9a469c 11276
c47832b1 11277 fi
11278 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11279 done
11280fi
b30fcfae 11281
c47832b1 11282if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11283 set dummy dlltool
11284 if test $build = $target ; then
11285 DLLTOOL_FOR_TARGET="$2"
11286 else
11287 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11288 fi
b7ef8464 11289else
11290 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
c47832b1 11291fi
11292
ab0da556 11293else
11294 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
c47832b1 11295fi
11296
ef8184c7 11297
c47832b1 11298
11299
11300if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11301 if test -n "$with_build_time_tools"; then
cd9a469c 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11303$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
ab0da556 11304 if test -x $with_build_time_tools/ld; then
11305 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11306 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
cd9a469c 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11308$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
ab0da556 11309 else
cd9a469c 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311$as_echo "no" >&6; }
ab0da556 11312 fi
c47832b1 11313 elif test $build != $host && test $have_gcc_for_target = yes; then
11314 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
b7ef8464 11315 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11316 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
768691b5 11317 fi
c47832b1 11318fi
38d7211b 11319if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11320 # Extract the first word of "ld", so it can be a program name with args.
11321set dummy ld; ac_word=$2
cd9a469c 11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
ef8184c7 11326else
b30fcfae 11327 case $LD_FOR_TARGET in
11328 [\\/]* | ?:[\\/]*)
c47832b1 11329 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11330 ;;
c47832b1 11331 *)
b30fcfae 11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333for as_dir in $gcc_cv_tool_dirs
11334do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
cd9a469c 11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11339 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11341 break 2
11342 fi
11343done
cd9a469c 11344 done
11345IFS=$as_save_IFS
b30fcfae 11346
c47832b1 11347 ;;
11348esac
ef8184c7 11349fi
b30fcfae 11350LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11351if test -n "$LD_FOR_TARGET"; then
cd9a469c 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11353$as_echo "$LD_FOR_TARGET" >&6; }
ef8184c7 11354else
cd9a469c 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356$as_echo "no" >&6; }
ef8184c7 11357fi
768691b5 11358
cd9a469c 11359
c47832b1 11360fi
11361if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
95a05732 11362
11363
11364if test -n "$LD_FOR_TARGET"; then
11365 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11366elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11367 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11368fi
11369
11370if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11371 for ncn_progname in ld; do
11372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11373set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375$as_echo_n "checking for $ac_word... " >&6; }
11376if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
95a05732 11378else
11379 if test -n "$LD_FOR_TARGET"; then
11380 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11381else
11382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $PATH
11384do
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
cd9a469c 11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11389 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11391 break 2
11392 fi
11393done
cd9a469c 11394 done
11395IFS=$as_save_IFS
95a05732 11396
11397fi
11398fi
11399LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11400if test -n "$LD_FOR_TARGET"; then
cd9a469c 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11402$as_echo "$LD_FOR_TARGET" >&6; }
95a05732 11403else
cd9a469c 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405$as_echo "no" >&6; }
95a05732 11406fi
11407
cd9a469c 11408
95a05732 11409 done
11410fi
11411
11412if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11413 for ncn_progname in ld; do
cd9a469c 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11416 if test -x $with_build_time_tools/${ncn_progname}; then
11417 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11419$as_echo "yes" >&6; }
c47832b1 11420 break
11421 else
cd9a469c 11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423$as_echo "no" >&6; }
c47832b1 11424 fi
11425 done
bb612911 11426fi
11427
c47832b1 11428if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11429 for ncn_progname in ld; do
11430 if test -n "$ncn_target_tool_prefix"; then
11431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
11435if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
bb612911 11437else
ef8184c7 11438 if test -n "$LD_FOR_TARGET"; then
11439 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11440else
b30fcfae 11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
cd9a469c 11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11448 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11450 break 2
11451 fi
11452done
cd9a469c 11453 done
11454IFS=$as_save_IFS
b30fcfae 11455
bb612911 11456fi
11457fi
b30fcfae 11458LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
ef8184c7 11459if test -n "$LD_FOR_TARGET"; then
cd9a469c 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11461$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11462else
cd9a469c 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
bb612911 11465fi
11466
cd9a469c 11467
c47832b1 11468 fi
11469 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11471set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473$as_echo_n "checking for $ac_word... " >&6; }
11474if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
bb612911 11476else
768691b5 11477 if test -n "$LD_FOR_TARGET"; then
11478 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
bb612911 11479else
b30fcfae 11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
cd9a469c 11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11487 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
cd9a469c 11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11489 break 2
11490 fi
11491done
cd9a469c 11492 done
11493IFS=$as_save_IFS
b30fcfae 11494
bb612911 11495fi
11496fi
b30fcfae 11497LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
768691b5 11498if test -n "$LD_FOR_TARGET"; then
cd9a469c 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11500$as_echo "$LD_FOR_TARGET" >&6; }
bb612911 11501else
cd9a469c 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
bb612911 11504fi
b30fcfae 11505
cd9a469c 11506
c47832b1 11507 fi
11508 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11509 done
11510fi
b30fcfae 11511
768691b5 11512if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11513 set dummy ld
11514 if test $build = $target ; then
11515 LD_FOR_TARGET="$2"
bb612911 11516 else
768691b5 11517 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 11518 fi
b7ef8464 11519else
11520 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
bb612911 11521fi
11522
ab0da556 11523else
11524 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
c47832b1 11525fi
11526
11527
11528
11529
11530if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11531 if test -n "$with_build_time_tools"; then
cd9a469c 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11533$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
ab0da556 11534 if test -x $with_build_time_tools/lipo; then
11535 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11536 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
cd9a469c 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11538$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
ab0da556 11539 else
cd9a469c 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541$as_echo "no" >&6; }
ab0da556 11542 fi
c47832b1 11543 elif test $build != $host && test $have_gcc_for_target = yes; then
11544 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
b7ef8464 11545 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11546 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
c47832b1 11547 fi
11548fi
95a05732 11549if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11550 # Extract the first word of "lipo", so it can be a program name with args.
11551set dummy lipo; ac_word=$2
cd9a469c 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
95a05732 11556else
11557 case $LIPO_FOR_TARGET in
11558 [\\/]* | ?:[\\/]*)
11559 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11560 ;;
11561 *)
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $gcc_cv_tool_dirs
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
cd9a469c 11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11569 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11571 break 2
11572 fi
11573done
cd9a469c 11574 done
11575IFS=$as_save_IFS
95a05732 11576
11577 ;;
11578esac
11579fi
11580LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
95a05732 11581if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11583$as_echo "$LIPO_FOR_TARGET" >&6; }
95a05732 11584else
cd9a469c 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
95a05732 11587fi
11588
cd9a469c 11589
95a05732 11590fi
11591if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11592
11593
11594if test -n "$LIPO_FOR_TARGET"; then
11595 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11596elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11597 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11598fi
11599
11600if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11601 for ncn_progname in lipo; do
11602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11603set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605$as_echo_n "checking for $ac_word... " >&6; }
11606if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
c47832b1 11608else
95a05732 11609 if test -n "$LIPO_FOR_TARGET"; then
11610 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
b30fcfae 11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
cd9a469c 11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11619 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11621 break 2
11622 fi
11623done
cd9a469c 11624 done
11625IFS=$as_save_IFS
b30fcfae 11626
c47832b1 11627fi
95a05732 11628fi
11629LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
c47832b1 11630if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11632$as_echo "$LIPO_FOR_TARGET" >&6; }
c47832b1 11633else
cd9a469c 11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
c47832b1 11636fi
11637
cd9a469c 11638
95a05732 11639 done
c47832b1 11640fi
95a05732 11641
11642if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11643 for ncn_progname in lipo; do
cd9a469c 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11645$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11646 if test -x $with_build_time_tools/${ncn_progname}; then
11647 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649$as_echo "yes" >&6; }
c47832b1 11650 break
11651 else
cd9a469c 11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653$as_echo "no" >&6; }
c47832b1 11654 fi
11655 done
11656fi
11657
11658if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11659 for ncn_progname in lipo; do
11660 if test -n "$ncn_target_tool_prefix"; then
11661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 11662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
9fec3fa8 11667else
11668 if test -n "$LIPO_FOR_TARGET"; then
11669 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11670else
b30fcfae 11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
cd9a469c 11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11678 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11680 break 2
11681 fi
11682done
cd9a469c 11683 done
11684IFS=$as_save_IFS
b30fcfae 11685
9fec3fa8 11686fi
11687fi
b30fcfae 11688LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 11689if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11691$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 11692else
cd9a469c 11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694$as_echo "no" >&6; }
9fec3fa8 11695fi
11696
cd9a469c 11697
c47832b1 11698 fi
11699 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 11701set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703$as_echo_n "checking for $ac_word... " >&6; }
11704if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
9fec3fa8 11706else
11707 if test -n "$LIPO_FOR_TARGET"; then
9886f3d1 11708 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11709else
b30fcfae 11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
cd9a469c 11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11717 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
cd9a469c 11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11719 break 2
11720 fi
11721done
cd9a469c 11722 done
11723IFS=$as_save_IFS
b30fcfae 11724
9fec3fa8 11725fi
11726fi
b30fcfae 11727LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
9fec3fa8 11728if test -n "$LIPO_FOR_TARGET"; then
cd9a469c 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11730$as_echo "$LIPO_FOR_TARGET" >&6; }
9fec3fa8 11731else
cd9a469c 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
9fec3fa8 11734fi
b30fcfae 11735
cd9a469c 11736
c47832b1 11737 fi
11738 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11739 done
11740fi
b30fcfae 11741
9fec3fa8 11742if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11743 set dummy lipo
11744 if test $build = $target ; then
11745 LIPO_FOR_TARGET="$2"
11746 else
11747 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11748 fi
b7ef8464 11749else
11750 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
9fec3fa8 11751fi
11752
ab0da556 11753else
11754 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
c47832b1 11755fi
11756
11757
11758
11759
11760if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11761 if test -n "$with_build_time_tools"; then
cd9a469c 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11763$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
ab0da556 11764 if test -x $with_build_time_tools/nm; then
11765 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11766 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
cd9a469c 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11768$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
ab0da556 11769 else
cd9a469c 11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771$as_echo "no" >&6; }
ab0da556 11772 fi
c47832b1 11773 elif test $build != $host && test $have_gcc_for_target = yes; then
11774 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
b7ef8464 11775 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11776 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
c47832b1 11777 fi
11778fi
38d7211b 11779if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 11780 # Extract the first word of "nm", so it can be a program name with args.
11781set dummy nm; ac_word=$2
cd9a469c 11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
11784if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
c47832b1 11786else
b30fcfae 11787 case $NM_FOR_TARGET in
11788 [\\/]* | ?:[\\/]*)
c47832b1 11789 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11790 ;;
c47832b1 11791 *)
b30fcfae 11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793for as_dir in $gcc_cv_tool_dirs
11794do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
cd9a469c 11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11799 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11801 break 2
11802 fi
11803done
cd9a469c 11804 done
11805IFS=$as_save_IFS
b30fcfae 11806
c47832b1 11807 ;;
11808esac
11809fi
b30fcfae 11810NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 11811if test -n "$NM_FOR_TARGET"; then
cd9a469c 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11813$as_echo "$NM_FOR_TARGET" >&6; }
c47832b1 11814else
cd9a469c 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
c47832b1 11817fi
11818
cd9a469c 11819
c47832b1 11820fi
11821if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
95a05732 11822
11823
11824if test -n "$NM_FOR_TARGET"; then
11825 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11826elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11827 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11828fi
11829
11830if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11831 for ncn_progname in nm; do
11832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11833set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835$as_echo_n "checking for $ac_word... " >&6; }
11836if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11837 $as_echo_n "(cached) " >&6
95a05732 11838else
11839 if test -n "$NM_FOR_TARGET"; then
11840 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11841else
11842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $PATH
11844do
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
cd9a469c 11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 11849 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 11851 break 2
11852 fi
11853done
cd9a469c 11854 done
11855IFS=$as_save_IFS
95a05732 11856
11857fi
11858fi
11859NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11860if test -n "$NM_FOR_TARGET"; then
cd9a469c 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11862$as_echo "$NM_FOR_TARGET" >&6; }
95a05732 11863else
cd9a469c 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865$as_echo "no" >&6; }
95a05732 11866fi
11867
cd9a469c 11868
95a05732 11869 done
11870fi
11871
11872if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 11873 for ncn_progname in nm; do
cd9a469c 11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11875$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 11876 if test -x $with_build_time_tools/${ncn_progname}; then
11877 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879$as_echo "yes" >&6; }
c47832b1 11880 break
11881 else
cd9a469c 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
c47832b1 11884 fi
11885 done
11886fi
11887
11888if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11889 for ncn_progname in nm; do
11890 if test -n "$ncn_target_tool_prefix"; then
11891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 11892set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894$as_echo_n "checking for $ac_word... " >&6; }
11895if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
bb612911 11897else
ef8184c7 11898 if test -n "$NM_FOR_TARGET"; then
11899 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 11900else
b30fcfae 11901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902for as_dir in $PATH
11903do
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
cd9a469c 11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11908 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11910 break 2
11911 fi
11912done
cd9a469c 11913 done
11914IFS=$as_save_IFS
b30fcfae 11915
bb612911 11916fi
11917fi
b30fcfae 11918NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
ef8184c7 11919if test -n "$NM_FOR_TARGET"; then
cd9a469c 11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11921$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 11922else
cd9a469c 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924$as_echo "no" >&6; }
bb612911 11925fi
11926
cd9a469c 11927
c47832b1 11928 fi
11929 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 11931set dummy ${ncn_progname}; ac_word=$2
cd9a469c 11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933$as_echo_n "checking for $ac_word... " >&6; }
11934if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
bb612911 11936else
768691b5 11937 if test -n "$NM_FOR_TARGET"; then
11938 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
bb612911 11939else
b30fcfae 11940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $PATH
11942do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
cd9a469c 11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 11947 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
cd9a469c 11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 11949 break 2
11950 fi
11951done
cd9a469c 11952 done
11953IFS=$as_save_IFS
b30fcfae 11954
bb612911 11955fi
11956fi
b30fcfae 11957NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
768691b5 11958if test -n "$NM_FOR_TARGET"; then
cd9a469c 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11960$as_echo "$NM_FOR_TARGET" >&6; }
bb612911 11961else
cd9a469c 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
bb612911 11964fi
b30fcfae 11965
cd9a469c 11966
c47832b1 11967 fi
11968 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11969 done
11970fi
b30fcfae 11971
768691b5 11972if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11973 set dummy nm
11974 if test $build = $target ; then
11975 NM_FOR_TARGET="$2"
bb612911 11976 else
768691b5 11977 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 11978 fi
b7ef8464 11979else
11980 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
bb612911 11981fi
11982
ab0da556 11983else
11984 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
c47832b1 11985fi
11986
11987
11988
11989
11990if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11991 if test -n "$with_build_time_tools"; then
cd9a469c 11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11993$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
ab0da556 11994 if test -x $with_build_time_tools/objdump; then
11995 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11996 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
cd9a469c 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11998$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
ab0da556 11999 else
cd9a469c 12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001$as_echo "no" >&6; }
ab0da556 12002 fi
c47832b1 12003 elif test $build != $host && test $have_gcc_for_target = yes; then
12004 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
b7ef8464 12005 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12006 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
c47832b1 12007 fi
12008fi
38d7211b 12009if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12010 # Extract the first word of "objdump", so it can be a program name with args.
12011set dummy objdump; ac_word=$2
cd9a469c 12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
c47832b1 12016else
b30fcfae 12017 case $OBJDUMP_FOR_TARGET in
12018 [\\/]* | ?:[\\/]*)
c47832b1 12019 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12020 ;;
c47832b1 12021 *)
b30fcfae 12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $gcc_cv_tool_dirs
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
cd9a469c 12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12029 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12031 break 2
12032 fi
12033done
cd9a469c 12034 done
12035IFS=$as_save_IFS
b30fcfae 12036
c47832b1 12037 ;;
12038esac
12039fi
b30fcfae 12040OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12041if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12043$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
c47832b1 12044else
cd9a469c 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
c47832b1 12047fi
12048
cd9a469c 12049
c47832b1 12050fi
12051if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
95a05732 12052
12053
12054if test -n "$OBJDUMP_FOR_TARGET"; then
12055 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12056elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12057 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12058fi
12059
12060if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12061 for ncn_progname in objdump; do
12062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12063set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065$as_echo_n "checking for $ac_word... " >&6; }
12066if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
95a05732 12068else
12069 if test -n "$OBJDUMP_FOR_TARGET"; then
12070 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12071else
12072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
cd9a469c 12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12079 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12081 break 2
12082 fi
12083done
cd9a469c 12084 done
12085IFS=$as_save_IFS
95a05732 12086
12087fi
12088fi
12089OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12090if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12092$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
95a05732 12093else
cd9a469c 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095$as_echo "no" >&6; }
95a05732 12096fi
12097
cd9a469c 12098
95a05732 12099 done
12100fi
12101
12102if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12103 for ncn_progname in objdump; do
cd9a469c 12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12105$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12106 if test -x $with_build_time_tools/${ncn_progname}; then
12107 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12109$as_echo "yes" >&6; }
c47832b1 12110 break
12111 else
cd9a469c 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113$as_echo "no" >&6; }
c47832b1 12114 fi
12115 done
12116fi
12117
12118if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12119 for ncn_progname in objdump; do
12120 if test -n "$ncn_target_tool_prefix"; then
12121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124$as_echo_n "checking for $ac_word... " >&6; }
12125if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
ae74ffb7 12127else
12128 if test -n "$OBJDUMP_FOR_TARGET"; then
12129 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12130else
b30fcfae 12131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132for as_dir in $PATH
12133do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
cd9a469c 12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12138 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12140 break 2
12141 fi
12142done
cd9a469c 12143 done
12144IFS=$as_save_IFS
b30fcfae 12145
ae74ffb7 12146fi
12147fi
b30fcfae 12148OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12149if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12151$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12152else
cd9a469c 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154$as_echo "no" >&6; }
ae74ffb7 12155fi
12156
cd9a469c 12157
c47832b1 12158 fi
12159 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
ae74ffb7 12161set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163$as_echo_n "checking for $ac_word... " >&6; }
12164if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12165 $as_echo_n "(cached) " >&6
ae74ffb7 12166else
12167 if test -n "$OBJDUMP_FOR_TARGET"; then
12168 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12169else
b30fcfae 12170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171for as_dir in $PATH
12172do
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
cd9a469c 12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12177 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
cd9a469c 12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12179 break 2
12180 fi
12181done
cd9a469c 12182 done
12183IFS=$as_save_IFS
b30fcfae 12184
ae74ffb7 12185fi
12186fi
b30fcfae 12187OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
ae74ffb7 12188if test -n "$OBJDUMP_FOR_TARGET"; then
cd9a469c 12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12190$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
ae74ffb7 12191else
cd9a469c 12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
ae74ffb7 12194fi
b30fcfae 12195
cd9a469c 12196
c47832b1 12197 fi
12198 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12199 done
12200fi
b30fcfae 12201
ae74ffb7 12202if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12203 set dummy objdump
12204 if test $build = $target ; then
12205 OBJDUMP_FOR_TARGET="$2"
12206 else
12207 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12208 fi
b7ef8464 12209else
12210 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
ae74ffb7 12211fi
12212
ab0da556 12213else
12214 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
c47832b1 12215fi
12216
12217
12218
12219
12220if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12221 if test -n "$with_build_time_tools"; then
cd9a469c 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12223$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
ab0da556 12224 if test -x $with_build_time_tools/ranlib; then
12225 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12226 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
cd9a469c 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12228$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
ab0da556 12229 else
cd9a469c 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231$as_echo "no" >&6; }
ab0da556 12232 fi
c47832b1 12233 elif test $build != $host && test $have_gcc_for_target = yes; then
12234 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
b7ef8464 12235 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12236 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
c47832b1 12237 fi
12238fi
38d7211b 12239if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12240 # Extract the first word of "ranlib", so it can be a program name with args.
12241set dummy ranlib; ac_word=$2
cd9a469c 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
c47832b1 12246else
b30fcfae 12247 case $RANLIB_FOR_TARGET in
12248 [\\/]* | ?:[\\/]*)
c47832b1 12249 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12250 ;;
c47832b1 12251 *)
b30fcfae 12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $gcc_cv_tool_dirs
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
cd9a469c 12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12259 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12261 break 2
12262 fi
12263done
cd9a469c 12264 done
12265IFS=$as_save_IFS
b30fcfae 12266
c47832b1 12267 ;;
12268esac
12269fi
b30fcfae 12270RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
c47832b1 12271if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12273$as_echo "$RANLIB_FOR_TARGET" >&6; }
c47832b1 12274else
cd9a469c 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
c47832b1 12277fi
12278
cd9a469c 12279
c47832b1 12280fi
12281if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
95a05732 12282
12283
12284if test -n "$RANLIB_FOR_TARGET"; then
12285 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12286elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12287 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12288fi
12289
12290if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12291 for ncn_progname in ranlib; do
12292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12293set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295$as_echo_n "checking for $ac_word... " >&6; }
12296if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
95a05732 12298else
12299 if test -n "$RANLIB_FOR_TARGET"; then
12300 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12301else
12302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $PATH
12304do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
cd9a469c 12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12309 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12311 break 2
12312 fi
12313done
cd9a469c 12314 done
12315IFS=$as_save_IFS
95a05732 12316
12317fi
12318fi
12319RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12320if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12322$as_echo "$RANLIB_FOR_TARGET" >&6; }
95a05732 12323else
cd9a469c 12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325$as_echo "no" >&6; }
95a05732 12326fi
12327
cd9a469c 12328
95a05732 12329 done
12330fi
12331
12332if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12333 for ncn_progname in ranlib; do
cd9a469c 12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12335$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12336 if test -x $with_build_time_tools/${ncn_progname}; then
12337 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12339$as_echo "yes" >&6; }
c47832b1 12340 break
12341 else
cd9a469c 12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
c47832b1 12344 fi
12345 done
12346fi
12347
12348if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12349 for ncn_progname in ranlib; do
12350 if test -n "$ncn_target_tool_prefix"; then
12351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
ae74ffb7 12352set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354$as_echo_n "checking for $ac_word... " >&6; }
12355if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
bb612911 12357else
ef8184c7 12358 if test -n "$RANLIB_FOR_TARGET"; then
12359 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12360else
b30fcfae 12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
cd9a469c 12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12368 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12370 break 2
12371 fi
12372done
cd9a469c 12373 done
12374IFS=$as_save_IFS
b30fcfae 12375
bb612911 12376fi
12377fi
b30fcfae 12378RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
ef8184c7 12379if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12381$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12382else
cd9a469c 12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
bb612911 12385fi
12386
cd9a469c 12387
c47832b1 12388 fi
12389 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12391set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393$as_echo_n "checking for $ac_word... " >&6; }
12394if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
bb612911 12396else
768691b5 12397 if test -n "$RANLIB_FOR_TARGET"; then
12398 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
bb612911 12399else
b30fcfae 12400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $PATH
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
cd9a469c 12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12407 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
cd9a469c 12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12409 break 2
12410 fi
12411done
cd9a469c 12412 done
12413IFS=$as_save_IFS
b30fcfae 12414
bb612911 12415fi
12416fi
b30fcfae 12417RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
768691b5 12418if test -n "$RANLIB_FOR_TARGET"; then
cd9a469c 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12420$as_echo "$RANLIB_FOR_TARGET" >&6; }
bb612911 12421else
cd9a469c 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
bb612911 12424fi
b30fcfae 12425
cd9a469c 12426
c47832b1 12427 fi
12428 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12429 done
12430fi
b30fcfae 12431
c47832b1 12432if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12433 set dummy ranlib
12434 if test $build = $target ; then
12435 RANLIB_FOR_TARGET="$2"
12436 else
12437 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12438 fi
b7ef8464 12439else
12440 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
c47832b1 12441fi
768691b5 12442
ab0da556 12443else
12444 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
bb612911 12445fi
12446
c47832b1 12447
12448
12449
12450if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12451 if test -n "$with_build_time_tools"; then
cd9a469c 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12453$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
ab0da556 12454 if test -x $with_build_time_tools/strip; then
12455 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12456 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
cd9a469c 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12458$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
ab0da556 12459 else
cd9a469c 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461$as_echo "no" >&6; }
ab0da556 12462 fi
c47832b1 12463 elif test $build != $host && test $have_gcc_for_target = yes; then
12464 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
b7ef8464 12465 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12466 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
c47832b1 12467 fi
12468fi
38d7211b 12469if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12470 # Extract the first word of "strip", so it can be a program name with args.
12471set dummy strip; ac_word=$2
cd9a469c 12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
c47832b1 12476else
b30fcfae 12477 case $STRIP_FOR_TARGET in
12478 [\\/]* | ?:[\\/]*)
c47832b1 12479 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12480 ;;
c47832b1 12481 *)
b30fcfae 12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483for as_dir in $gcc_cv_tool_dirs
12484do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
cd9a469c 12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12489 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12491 break 2
12492 fi
12493done
cd9a469c 12494 done
12495IFS=$as_save_IFS
b30fcfae 12496
c47832b1 12497 ;;
12498esac
12499fi
b30fcfae 12500STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 12501if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12503$as_echo "$STRIP_FOR_TARGET" >&6; }
c47832b1 12504else
cd9a469c 12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506$as_echo "no" >&6; }
c47832b1 12507fi
12508
cd9a469c 12509
c47832b1 12510fi
12511if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
95a05732 12512
12513
12514if test -n "$STRIP_FOR_TARGET"; then
12515 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12516elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12517 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12518fi
12519
12520if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12521 for ncn_progname in strip; do
12522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12523set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525$as_echo_n "checking for $ac_word... " >&6; }
12526if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12527 $as_echo_n "(cached) " >&6
95a05732 12528else
12529 if test -n "$STRIP_FOR_TARGET"; then
12530 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12531else
12532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $PATH
12534do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
cd9a469c 12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12539 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12541 break 2
12542 fi
12543done
cd9a469c 12544 done
12545IFS=$as_save_IFS
95a05732 12546
12547fi
12548fi
12549STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12550if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12552$as_echo "$STRIP_FOR_TARGET" >&6; }
95a05732 12553else
cd9a469c 12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555$as_echo "no" >&6; }
95a05732 12556fi
12557
cd9a469c 12558
95a05732 12559 done
12560fi
12561
12562if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12563 for ncn_progname in strip; do
cd9a469c 12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12565$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12566 if test -x $with_build_time_tools/${ncn_progname}; then
12567 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12569$as_echo "yes" >&6; }
c47832b1 12570 break
12571 else
cd9a469c 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573$as_echo "no" >&6; }
c47832b1 12574 fi
12575 done
12576fi
12577
12578if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12579 for ncn_progname in strip; do
12580 if test -n "$ncn_target_tool_prefix"; then
12581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
9fec3fa8 12582set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
ae48753c 12587else
12588 if test -n "$STRIP_FOR_TARGET"; then
b30fcfae 12589 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12590else
12591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592for as_dir in $PATH
12593do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
cd9a469c 12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12598 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12600 break 2
12601 fi
12602done
cd9a469c 12603 done
12604IFS=$as_save_IFS
b30fcfae 12605
9fec3fa8 12606fi
12607fi
b30fcfae 12608STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 12609if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12611$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 12612else
cd9a469c 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
9fec3fa8 12615fi
12616
cd9a469c 12617
c47832b1 12618 fi
12619 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9fec3fa8 12621set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623$as_echo_n "checking for $ac_word... " >&6; }
12624if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
9fec3fa8 12626else
12627 if test -n "$STRIP_FOR_TARGET"; then
12628 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12629else
b30fcfae 12630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $PATH
12632do
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
cd9a469c 12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12637 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
cd9a469c 12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12639 break 2
12640 fi
12641done
cd9a469c 12642 done
12643IFS=$as_save_IFS
b30fcfae 12644
9fec3fa8 12645fi
12646fi
b30fcfae 12647STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
9fec3fa8 12648if test -n "$STRIP_FOR_TARGET"; then
cd9a469c 12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12650$as_echo "$STRIP_FOR_TARGET" >&6; }
9fec3fa8 12651else
cd9a469c 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
9fec3fa8 12654fi
b30fcfae 12655
cd9a469c 12656
c47832b1 12657 fi
12658 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12659 done
12660fi
b30fcfae 12661
9fec3fa8 12662if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12663 set dummy strip
12664 if test $build = $target ; then
12665 STRIP_FOR_TARGET="$2"
12666 else
12667 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12668 fi
b7ef8464 12669else
12670 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
9fec3fa8 12671fi
12672
ab0da556 12673else
12674 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
c47832b1 12675fi
12676
12677
12678
12679
12680if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12681 if test -n "$with_build_time_tools"; then
cd9a469c 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12683$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
ab0da556 12684 if test -x $with_build_time_tools/windres; then
12685 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12686 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
cd9a469c 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12688$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
ab0da556 12689 else
cd9a469c 12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691$as_echo "no" >&6; }
ab0da556 12692 fi
c47832b1 12693 elif test $build != $host && test $have_gcc_for_target = yes; then
12694 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
b7ef8464 12695 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12696 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
c47832b1 12697 fi
12698fi
38d7211b 12699if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
c47832b1 12700 # Extract the first word of "windres", so it can be a program name with args.
12701set dummy windres; ac_word=$2
cd9a469c 12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
c47832b1 12706else
b30fcfae 12707 case $WINDRES_FOR_TARGET in
12708 [\\/]* | ?:[\\/]*)
c47832b1 12709 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12710 ;;
c47832b1 12711 *)
b30fcfae 12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713for as_dir in $gcc_cv_tool_dirs
12714do
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
cd9a469c 12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12719 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12721 break 2
12722 fi
12723done
cd9a469c 12724 done
12725IFS=$as_save_IFS
b30fcfae 12726
c47832b1 12727 ;;
12728esac
12729fi
b30fcfae 12730WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 12731if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12733$as_echo "$WINDRES_FOR_TARGET" >&6; }
c47832b1 12734else
cd9a469c 12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
c47832b1 12737fi
12738
cd9a469c 12739
c47832b1 12740fi
12741if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
95a05732 12742
12743
12744if test -n "$WINDRES_FOR_TARGET"; then
12745 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12746elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12747 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12748fi
12749
12750if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12751 for ncn_progname in windres; do
12752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12753set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755$as_echo_n "checking for $ac_word... " >&6; }
12756if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
95a05732 12758else
12759 if test -n "$WINDRES_FOR_TARGET"; then
12760 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12761else
12762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763for as_dir in $PATH
12764do
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
cd9a469c 12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
95a05732 12769 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
95a05732 12771 break 2
12772 fi
12773done
cd9a469c 12774 done
12775IFS=$as_save_IFS
95a05732 12776
12777fi
12778fi
12779WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12780if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12782$as_echo "$WINDRES_FOR_TARGET" >&6; }
95a05732 12783else
cd9a469c 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785$as_echo "no" >&6; }
95a05732 12786fi
12787
cd9a469c 12788
95a05732 12789 done
12790fi
12791
12792if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
c47832b1 12793 for ncn_progname in windres; do
cd9a469c 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12795$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
ab0da556 12796 if test -x $with_build_time_tools/${ncn_progname}; then
12797 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799$as_echo "yes" >&6; }
c47832b1 12800 break
12801 else
cd9a469c 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
c47832b1 12804 fi
12805 done
12806fi
12807
12808if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12809 for ncn_progname in windres; do
12810 if test -n "$ncn_target_tool_prefix"; then
12811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
768691b5 12812set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
bb612911 12817else
ef8184c7 12818 if test -n "$WINDRES_FOR_TARGET"; then
12819 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 12820else
b30fcfae 12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
cd9a469c 12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12828 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12830 break 2
12831 fi
12832done
cd9a469c 12833 done
12834IFS=$as_save_IFS
b30fcfae 12835
bb612911 12836fi
12837fi
b30fcfae 12838WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
ef8184c7 12839if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12841$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 12842else
cd9a469c 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
bb612911 12845fi
12846
cd9a469c 12847
c47832b1 12848 fi
12849 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
768691b5 12851set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
12854if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
bb612911 12856else
768691b5 12857 if test -n "$WINDRES_FOR_TARGET"; then
12858 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
bb612911 12859else
b30fcfae 12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
cd9a469c 12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
b30fcfae 12867 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
cd9a469c 12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b30fcfae 12869 break 2
12870 fi
12871done
cd9a469c 12872 done
12873IFS=$as_save_IFS
b30fcfae 12874
bb612911 12875fi
12876fi
b30fcfae 12877WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
768691b5 12878if test -n "$WINDRES_FOR_TARGET"; then
cd9a469c 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12880$as_echo "$WINDRES_FOR_TARGET" >&6; }
bb612911 12881else
cd9a469c 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
bb612911 12884fi
b30fcfae 12885
cd9a469c 12886
c47832b1 12887 fi
12888 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12889 done
12890fi
b30fcfae 12891
768691b5 12892if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12893 set dummy windres
12894 if test $build = $target ; then
12895 WINDRES_FOR_TARGET="$2"
bb612911 12896 else
768691b5 12897 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
bb612911 12898 fi
b7ef8464 12899else
12900 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
bb612911 12901fi
12902
ab0da556 12903else
12904 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
c47832b1 12905fi
12906
805e22b2 12907
75d6a0a9 12908
12909
12910if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12911 if test -n "$with_build_time_tools"; then
cd9a469c 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12913$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
75d6a0a9 12914 if test -x $with_build_time_tools/windmc; then
12915 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12916 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
cd9a469c 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12918$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
75d6a0a9 12919 else
cd9a469c 12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
75d6a0a9 12922 fi
12923 elif test $build != $host && test $have_gcc_for_target = yes; then
12924 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
b7ef8464 12925 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12926 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
75d6a0a9 12927 fi
12928fi
12929if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12930 # Extract the first word of "windmc", so it can be a program name with args.
12931set dummy windmc; ac_word=$2
cd9a469c 12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
75d6a0a9 12936else
12937 case $WINDMC_FOR_TARGET in
12938 [\\/]* | ?:[\\/]*)
12939 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12940 ;;
12941 *)
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943for as_dir in $gcc_cv_tool_dirs
12944do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
cd9a469c 12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 12949 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
cd9a469c 12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 12951 break 2
12952 fi
12953done
cd9a469c 12954 done
12955IFS=$as_save_IFS
75d6a0a9 12956
12957 ;;
12958esac
12959fi
12960WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
75d6a0a9 12961if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12963$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 12964else
cd9a469c 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966$as_echo "no" >&6; }
75d6a0a9 12967fi
12968
cd9a469c 12969
75d6a0a9 12970fi
12971if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12972
12973
12974if test -n "$WINDMC_FOR_TARGET"; then
12975 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12976elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12977 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12978fi
12979
12980if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12981 for ncn_progname in windmc; do
12982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12983set dummy ${ncn_progname}; ac_word=$2
cd9a469c 12984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985$as_echo_n "checking for $ac_word... " >&6; }
12986if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12987 $as_echo_n "(cached) " >&6
75d6a0a9 12988else
12989 if test -n "$WINDMC_FOR_TARGET"; then
12990 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12991else
12992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
cd9a469c 12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 12999 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13001 break 2
13002 fi
13003done
cd9a469c 13004 done
13005IFS=$as_save_IFS
75d6a0a9 13006
13007fi
13008fi
13009WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13010if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13012$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13013else
cd9a469c 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015$as_echo "no" >&6; }
75d6a0a9 13016fi
13017
cd9a469c 13018
75d6a0a9 13019 done
13020fi
13021
13022if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13023 for ncn_progname in windmc; do
cd9a469c 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13025$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
75d6a0a9 13026 if test -x $with_build_time_tools/${ncn_progname}; then
13027 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
cd9a469c 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13029$as_echo "yes" >&6; }
75d6a0a9 13030 break
13031 else
cd9a469c 13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033$as_echo "no" >&6; }
75d6a0a9 13034 fi
13035 done
13036fi
13037
13038if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13039 for ncn_progname in windmc; do
13040 if test -n "$ncn_target_tool_prefix"; then
13041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13042set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
cd9a469c 13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
13045if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
75d6a0a9 13047else
13048 if test -n "$WINDMC_FOR_TARGET"; then
13049 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13050else
13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052for as_dir in $PATH
13053do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
cd9a469c 13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13058 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
cd9a469c 13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13060 break 2
13061 fi
13062done
cd9a469c 13063 done
13064IFS=$as_save_IFS
75d6a0a9 13065
13066fi
13067fi
13068WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13069if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13071$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13072else
cd9a469c 13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
75d6a0a9 13075fi
13076
cd9a469c 13077
75d6a0a9 13078 fi
13079 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13081set dummy ${ncn_progname}; ac_word=$2
cd9a469c 13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083$as_echo_n "checking for $ac_word... " >&6; }
13084if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
75d6a0a9 13086else
13087 if test -n "$WINDMC_FOR_TARGET"; then
13088 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13089else
13090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091for as_dir in $PATH
13092do
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
cd9a469c 13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
75d6a0a9 13097 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
cd9a469c 13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
75d6a0a9 13099 break 2
13100 fi
13101done
cd9a469c 13102 done
13103IFS=$as_save_IFS
75d6a0a9 13104
13105fi
13106fi
13107WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13108if test -n "$WINDMC_FOR_TARGET"; then
cd9a469c 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13110$as_echo "$WINDMC_FOR_TARGET" >&6; }
75d6a0a9 13111else
cd9a469c 13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
75d6a0a9 13114fi
13115
cd9a469c 13116
75d6a0a9 13117 fi
13118 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13119 done
13120fi
13121
13122if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13123 set dummy windmc
13124 if test $build = $target ; then
13125 WINDMC_FOR_TARGET="$2"
13126 else
13127 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13128 fi
b7ef8464 13129else
13130 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
75d6a0a9 13131fi
13132
13133else
13134 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13135fi
13136
13137
f5aebe3e 13138RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13139
cd9a469c 13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13141$as_echo_n "checking where to find the target ar... " >&6; }
f5aebe3e 13142if test "x${build}" != "x${host}" ; then
c47832b1 13143 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13144 # We already found the complete path
a6c599b5 13145 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13147$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13148 else
13149 # Canadian cross, just use what we found
cd9a469c 13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13151$as_echo "pre-installed" >&6; }
c47832b1 13152 fi
f5aebe3e 13153else
13154 ok=yes
13155 case " ${configdirs} " in
13156 *" binutils "*) ;;
13157 *) ok=no ;;
13158 esac
b30fcfae 13159
f5aebe3e 13160 if test $ok = yes; then
13161 # An in-tree tool is available and we can use it
13162 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
cd9a469c 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13164$as_echo "just compiled" >&6; }
c47832b1 13165 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13166 # We already found the complete path
a6c599b5 13167 ac_dir=`dirname $AR_FOR_TARGET`
cd9a469c 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13169$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13170 elif test "x$target" = "x$host"; then
13171 # We can use an host tool
13172 AR_FOR_TARGET='$(AR)'
cd9a469c 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13174$as_echo "host tool" >&6; }
f5aebe3e 13175 else
13176 # We need a cross tool
cd9a469c 13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13178$as_echo "pre-installed" >&6; }
f5aebe3e 13179 fi
13180fi
a83ffacf 13181
cd9a469c 13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13183$as_echo_n "checking where to find the target as... " >&6; }
f5aebe3e 13184if test "x${build}" != "x${host}" ; then
c47832b1 13185 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13186 # We already found the complete path
a6c599b5 13187 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13189$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13190 else
13191 # Canadian cross, just use what we found
cd9a469c 13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13193$as_echo "pre-installed" >&6; }
c47832b1 13194 fi
f5aebe3e 13195else
13196 ok=yes
13197 case " ${configdirs} " in
13198 *" gas "*) ;;
13199 *) ok=no ;;
13200 esac
b30fcfae 13201
f5aebe3e 13202 if test $ok = yes; then
13203 # An in-tree tool is available and we can use it
13204 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
cd9a469c 13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13206$as_echo "just compiled" >&6; }
c47832b1 13207 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13208 # We already found the complete path
a6c599b5 13209 ac_dir=`dirname $AS_FOR_TARGET`
cd9a469c 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13211$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13212 elif test "x$target" = "x$host"; then
13213 # We can use an host tool
13214 AS_FOR_TARGET='$(AS)'
cd9a469c 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13216$as_echo "host tool" >&6; }
f5aebe3e 13217 else
13218 # We need a cross tool
cd9a469c 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13220$as_echo "pre-installed" >&6; }
f5aebe3e 13221 fi
13222fi
a83ffacf 13223
cd9a469c 13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13225$as_echo_n "checking where to find the target cc... " >&6; }
f5aebe3e 13226if test "x${build}" != "x${host}" ; then
c47832b1 13227 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13228 # We already found the complete path
a6c599b5 13229 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13231$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13232 else
13233 # Canadian cross, just use what we found
cd9a469c 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13235$as_echo "pre-installed" >&6; }
c47832b1 13236 fi
f5aebe3e 13237else
13238 ok=yes
13239 case " ${configdirs} " in
13240 *" gcc "*) ;;
13241 *) ok=no ;;
13242 esac
b30fcfae 13243
f5aebe3e 13244 if test $ok = yes; then
13245 # An in-tree tool is available and we can use it
13246 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13248$as_echo "just compiled" >&6; }
c47832b1 13249 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13250 # We already found the complete path
a6c599b5 13251 ac_dir=`dirname $CC_FOR_TARGET`
cd9a469c 13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13253$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13254 elif test "x$target" = "x$host"; then
13255 # We can use an host tool
13256 CC_FOR_TARGET='$(CC)'
cd9a469c 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13258$as_echo "host tool" >&6; }
f5aebe3e 13259 else
13260 # We need a cross tool
cd9a469c 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13262$as_echo "pre-installed" >&6; }
f5aebe3e 13263 fi
13264fi
a83ffacf 13265
cd9a469c 13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13267$as_echo_n "checking where to find the target c++... " >&6; }
f5aebe3e 13268if test "x${build}" != "x${host}" ; then
c47832b1 13269 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13270 # We already found the complete path
a6c599b5 13271 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13273$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13274 else
13275 # Canadian cross, just use what we found
cd9a469c 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13277$as_echo "pre-installed" >&6; }
c47832b1 13278 fi
f5aebe3e 13279else
13280 ok=yes
13281 case " ${configdirs} " in
13282 *" gcc "*) ;;
13283 *) ok=no ;;
13284 esac
13285 case ,${enable_languages}, in
13286 *,c++,*) ;;
13287 *) ok=no ;;
13288 esac
13289 if test $ok = yes; then
13290 # An in-tree tool is available and we can use it
174d231c 13291 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'
cd9a469c 13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13293$as_echo "just compiled" >&6; }
c47832b1 13294 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13295 # We already found the complete path
a6c599b5 13296 ac_dir=`dirname $CXX_FOR_TARGET`
cd9a469c 13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13298$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13299 elif test "x$target" = "x$host"; then
13300 # We can use an host tool
13301 CXX_FOR_TARGET='$(CXX)'
cd9a469c 13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13303$as_echo "host tool" >&6; }
f5aebe3e 13304 else
13305 # We need a cross tool
cd9a469c 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13307$as_echo "pre-installed" >&6; }
f5aebe3e 13308 fi
13309fi
a83ffacf 13310
cd9a469c 13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13312$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
f5aebe3e 13313if test "x${build}" != "x${host}" ; then
c47832b1 13314 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13315 # We already found the complete path
a6c599b5 13316 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13318$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13319 else
13320 # Canadian cross, just use what we found
cd9a469c 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13322$as_echo "pre-installed" >&6; }
c47832b1 13323 fi
f5aebe3e 13324else
13325 ok=yes
13326 case " ${configdirs} " in
13327 *" gcc "*) ;;
13328 *) ok=no ;;
13329 esac
13330 case ,${enable_languages}, in
13331 *,c++,*) ;;
13332 *) ok=no ;;
13333 esac
13334 if test $ok = yes; then
13335 # An in-tree tool is available and we can use it
13336 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'
cd9a469c 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13338$as_echo "just compiled" >&6; }
c47832b1 13339 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13340 # We already found the complete path
a6c599b5 13341 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
cd9a469c 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13343$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13344 elif test "x$target" = "x$host"; then
13345 # We can use an host tool
13346 RAW_CXX_FOR_TARGET='$(CXX)'
cd9a469c 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13348$as_echo "host tool" >&6; }
f5aebe3e 13349 else
13350 # We need a cross tool
cd9a469c 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352$as_echo "pre-installed" >&6; }
f5aebe3e 13353 fi
13354fi
a83ffacf 13355
cd9a469c 13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13357$as_echo_n "checking where to find the target dlltool... " >&6; }
f5aebe3e 13358if test "x${build}" != "x${host}" ; then
c47832b1 13359 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
a6c599b5 13361 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13364 else
13365 # Canadian cross, just use what we found
cd9a469c 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13367$as_echo "pre-installed" >&6; }
c47832b1 13368 fi
f5aebe3e 13369else
13370 ok=yes
13371 case " ${configdirs} " in
13372 *" binutils "*) ;;
13373 *) ok=no ;;
13374 esac
b30fcfae 13375
f5aebe3e 13376 if test $ok = yes; then
13377 # An in-tree tool is available and we can use it
13378 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
cd9a469c 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13380$as_echo "just compiled" >&6; }
c47832b1 13381 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13382 # We already found the complete path
a6c599b5 13383 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
cd9a469c 13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13385$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13386 elif test "x$target" = "x$host"; then
13387 # We can use an host tool
13388 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
cd9a469c 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13390$as_echo "host tool" >&6; }
f5aebe3e 13391 else
13392 # We need a cross tool
cd9a469c 13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13394$as_echo "pre-installed" >&6; }
f5aebe3e 13395 fi
13396fi
a83ffacf 13397
cd9a469c 13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13399$as_echo_n "checking where to find the target gcc... " >&6; }
f5aebe3e 13400if test "x${build}" != "x${host}" ; then
c47832b1 13401 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
a6c599b5 13403 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13406 else
13407 # Canadian cross, just use what we found
cd9a469c 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13409$as_echo "pre-installed" >&6; }
c47832b1 13410 fi
f5aebe3e 13411else
13412 ok=yes
13413 case " ${configdirs} " in
13414 *" gcc "*) ;;
13415 *) ok=no ;;
13416 esac
b30fcfae 13417
f5aebe3e 13418 if test $ok = yes; then
13419 # An in-tree tool is available and we can use it
13420 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13422$as_echo "just compiled" >&6; }
c47832b1 13423 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13424 # We already found the complete path
a6c599b5 13425 ac_dir=`dirname $GCC_FOR_TARGET`
cd9a469c 13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13427$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13428 elif test "x$target" = "x$host"; then
13429 # We can use an host tool
13430 GCC_FOR_TARGET='$()'
cd9a469c 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13432$as_echo "host tool" >&6; }
f5aebe3e 13433 else
13434 # We need a cross tool
cd9a469c 13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13436$as_echo "pre-installed" >&6; }
f5aebe3e 13437 fi
13438fi
a83ffacf 13439
cd9a469c 13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13441$as_echo_n "checking where to find the target gcj... " >&6; }
f5aebe3e 13442if test "x${build}" != "x${host}" ; then
c47832b1 13443 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
a6c599b5 13445 ac_dir=`dirname $GCJ_FOR_TARGET`
cd9a469c 13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13448 else
13449 # Canadian cross, just use what we found
cd9a469c 13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13451$as_echo "pre-installed" >&6; }
c47832b1 13452 fi
f5aebe3e 13453else
13454 ok=yes
13455 case " ${configdirs} " in
13456 *" gcc "*) ;;
13457 *) ok=no ;;
13458 esac
13459 case ,${enable_languages}, in
13460 *,java,*) ;;
13461 *) ok=no ;;
13462 esac
13463 if test $ok = yes; then
13464 # An in-tree tool is available and we can use it
13465 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13467$as_echo "just compiled" >&6; }
c47832b1 13468 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13469 # We already found the complete path
a6c599b5 13470 ac_dir=`dirname $GCJ_FOR_TARGET`
cd9a469c 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13472$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13473 elif test "x$target" = "x$host"; then
13474 # We can use an host tool
13475 GCJ_FOR_TARGET='$(GCJ)'
cd9a469c 13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13477$as_echo "host tool" >&6; }
f5aebe3e 13478 else
13479 # We need a cross tool
cd9a469c 13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13481$as_echo "pre-installed" >&6; }
f5aebe3e 13482 fi
13483fi
a83ffacf 13484
cd9a469c 13485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13486$as_echo_n "checking where to find the target gfortran... " >&6; }
f5aebe3e 13487if test "x${build}" != "x${host}" ; then
c47832b1 13488 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13489 # We already found the complete path
a6c599b5 13490 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13492$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13493 else
13494 # Canadian cross, just use what we found
cd9a469c 13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13496$as_echo "pre-installed" >&6; }
c47832b1 13497 fi
f5aebe3e 13498else
13499 ok=yes
13500 case " ${configdirs} " in
13501 *" gcc "*) ;;
13502 *) ok=no ;;
13503 esac
13504 case ,${enable_languages}, in
13505 *,fortran,*) ;;
13506 *) ok=no ;;
13507 esac
13508 if test $ok = yes; then
13509 # An in-tree tool is available and we can use it
13510 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
cd9a469c 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13512$as_echo "just compiled" >&6; }
c47832b1 13513 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13514 # We already found the complete path
a6c599b5 13515 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
cd9a469c 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13517$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13518 elif test "x$target" = "x$host"; then
13519 # We can use an host tool
13520 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
cd9a469c 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13522$as_echo "host tool" >&6; }
f5aebe3e 13523 else
13524 # We need a cross tool
cd9a469c 13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526$as_echo "pre-installed" >&6; }
f5aebe3e 13527 fi
13528fi
a83ffacf 13529
5ff5b630 13530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13531$as_echo_n "checking where to find the target gccgo... " >&6; }
13532if test "x${build}" != "x${host}" ; then
13533 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13534 # We already found the complete path
13535 ac_dir=`dirname $GOC_FOR_TARGET`
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537$as_echo "pre-installed in $ac_dir" >&6; }
13538 else
13539 # Canadian cross, just use what we found
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13541$as_echo "pre-installed" >&6; }
13542 fi
13543else
13544 ok=yes
13545 case " ${configdirs} " in
13546 *" gcc "*) ;;
13547 *) ok=no ;;
13548 esac
13549 case ,${enable_languages}, in
13550 *,go,*) ;;
13551 *) ok=no ;;
13552 esac
13553 if test $ok = yes; then
13554 # An in-tree tool is available and we can use it
13555 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13557$as_echo "just compiled" >&6; }
13558 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13559 # We already found the complete path
13560 ac_dir=`dirname $GOC_FOR_TARGET`
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13562$as_echo "pre-installed in $ac_dir" >&6; }
13563 elif test "x$target" = "x$host"; then
13564 # We can use an host tool
13565 GOC_FOR_TARGET='$(GOC)'
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13567$as_echo "host tool" >&6; }
13568 else
13569 # We need a cross tool
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
13572 fi
13573fi
13574
cd9a469c 13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13576$as_echo_n "checking where to find the target ld... " >&6; }
f5aebe3e 13577if test "x${build}" != "x${host}" ; then
c47832b1 13578 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
a6c599b5 13580 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13583 else
13584 # Canadian cross, just use what we found
cd9a469c 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13586$as_echo "pre-installed" >&6; }
c47832b1 13587 fi
f5aebe3e 13588else
13589 ok=yes
13590 case " ${configdirs} " in
13591 *" ld "*) ;;
13592 *) ok=no ;;
13593 esac
b30fcfae 13594
f5aebe3e 13595 if test $ok = yes; then
13596 # An in-tree tool is available and we can use it
13597 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
cd9a469c 13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13599$as_echo "just compiled" >&6; }
c47832b1 13600 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13601 # We already found the complete path
a6c599b5 13602 ac_dir=`dirname $LD_FOR_TARGET`
cd9a469c 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13604$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13605 elif test "x$target" = "x$host"; then
13606 # We can use an host tool
13607 LD_FOR_TARGET='$(LD)'
cd9a469c 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13609$as_echo "host tool" >&6; }
f5aebe3e 13610 else
13611 # We need a cross tool
cd9a469c 13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613$as_echo "pre-installed" >&6; }
f5aebe3e 13614 fi
13615fi
a83ffacf 13616
cd9a469c 13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13618$as_echo_n "checking where to find the target lipo... " >&6; }
f5aebe3e 13619if test "x${build}" != "x${host}" ; then
c47832b1 13620 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13621 # We already found the complete path
a6c599b5 13622 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13625 else
13626 # Canadian cross, just use what we found
cd9a469c 13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13628$as_echo "pre-installed" >&6; }
c47832b1 13629 fi
f5aebe3e 13630else
c47832b1 13631 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13632 # We already found the complete path
a6c599b5 13633 ac_dir=`dirname $LIPO_FOR_TARGET`
cd9a469c 13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13635$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13636 elif test "x$target" = "x$host"; then
f5aebe3e 13637 # We can use an host tool
13638 LIPO_FOR_TARGET='$(LIPO)'
cd9a469c 13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13640$as_echo "host tool" >&6; }
f5aebe3e 13641 else
13642 # We need a cross tool
cd9a469c 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13644$as_echo "pre-installed" >&6; }
f5aebe3e 13645 fi
13646fi
a83ffacf 13647
cd9a469c 13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13649$as_echo_n "checking where to find the target nm... " >&6; }
f5aebe3e 13650if test "x${build}" != "x${host}" ; then
c47832b1 13651 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13652 # We already found the complete path
a6c599b5 13653 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13655$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13656 else
13657 # Canadian cross, just use what we found
cd9a469c 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659$as_echo "pre-installed" >&6; }
c47832b1 13660 fi
f5aebe3e 13661else
13662 ok=yes
13663 case " ${configdirs} " in
13664 *" binutils "*) ;;
13665 *) ok=no ;;
13666 esac
b30fcfae 13667
f5aebe3e 13668 if test $ok = yes; then
13669 # An in-tree tool is available and we can use it
13670 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
cd9a469c 13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13672$as_echo "just compiled" >&6; }
c47832b1 13673 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13674 # We already found the complete path
a6c599b5 13675 ac_dir=`dirname $NM_FOR_TARGET`
cd9a469c 13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13677$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13678 elif test "x$target" = "x$host"; then
13679 # We can use an host tool
13680 NM_FOR_TARGET='$(NM)'
cd9a469c 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13682$as_echo "host tool" >&6; }
f5aebe3e 13683 else
13684 # We need a cross tool
cd9a469c 13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13686$as_echo "pre-installed" >&6; }
f5aebe3e 13687 fi
13688fi
a83ffacf 13689
cd9a469c 13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13691$as_echo_n "checking where to find the target objdump... " >&6; }
f5aebe3e 13692if test "x${build}" != "x${host}" ; then
c47832b1 13693 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13694 # We already found the complete path
a6c599b5 13695 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13697$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13698 else
13699 # Canadian cross, just use what we found
cd9a469c 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701$as_echo "pre-installed" >&6; }
c47832b1 13702 fi
f5aebe3e 13703else
13704 ok=yes
13705 case " ${configdirs} " in
13706 *" binutils "*) ;;
13707 *) ok=no ;;
13708 esac
b30fcfae 13709
f5aebe3e 13710 if test $ok = yes; then
13711 # An in-tree tool is available and we can use it
13712 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
cd9a469c 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13714$as_echo "just compiled" >&6; }
c47832b1 13715 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13716 # We already found the complete path
a6c599b5 13717 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
cd9a469c 13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13719$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13720 elif test "x$target" = "x$host"; then
13721 # We can use an host tool
13722 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
cd9a469c 13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13724$as_echo "host tool" >&6; }
f5aebe3e 13725 else
13726 # We need a cross tool
cd9a469c 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13728$as_echo "pre-installed" >&6; }
f5aebe3e 13729 fi
13730fi
a83ffacf 13731
cd9a469c 13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13733$as_echo_n "checking where to find the target ranlib... " >&6; }
f5aebe3e 13734if test "x${build}" != "x${host}" ; then
c47832b1 13735 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13736 # We already found the complete path
a6c599b5 13737 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13739$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13740 else
13741 # Canadian cross, just use what we found
cd9a469c 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13743$as_echo "pre-installed" >&6; }
c47832b1 13744 fi
f5aebe3e 13745else
13746 ok=yes
13747 case " ${configdirs} " in
13748 *" binutils "*) ;;
13749 *) ok=no ;;
13750 esac
b30fcfae 13751
f5aebe3e 13752 if test $ok = yes; then
13753 # An in-tree tool is available and we can use it
13754 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
cd9a469c 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13756$as_echo "just compiled" >&6; }
c47832b1 13757 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13758 # We already found the complete path
a6c599b5 13759 ac_dir=`dirname $RANLIB_FOR_TARGET`
cd9a469c 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13761$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13762 elif test "x$target" = "x$host"; then
13763 # We can use an host tool
13764 RANLIB_FOR_TARGET='$(RANLIB)'
cd9a469c 13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13766$as_echo "host tool" >&6; }
f5aebe3e 13767 else
13768 # We need a cross tool
cd9a469c 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770$as_echo "pre-installed" >&6; }
f5aebe3e 13771 fi
13772fi
a83ffacf 13773
cd9a469c 13774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13775$as_echo_n "checking where to find the target strip... " >&6; }
f5aebe3e 13776if test "x${build}" != "x${host}" ; then
c47832b1 13777 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13778 # We already found the complete path
a6c599b5 13779 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13781$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13782 else
13783 # Canadian cross, just use what we found
cd9a469c 13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13785$as_echo "pre-installed" >&6; }
c47832b1 13786 fi
f5aebe3e 13787else
13788 ok=yes
13789 case " ${configdirs} " in
13790 *" binutils "*) ;;
13791 *) ok=no ;;
13792 esac
b30fcfae 13793
f5aebe3e 13794 if test $ok = yes; then
13795 # An in-tree tool is available and we can use it
2b7a4d59 13796 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
cd9a469c 13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13798$as_echo "just compiled" >&6; }
c47832b1 13799 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13800 # We already found the complete path
a6c599b5 13801 ac_dir=`dirname $STRIP_FOR_TARGET`
cd9a469c 13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13803$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13804 elif test "x$target" = "x$host"; then
13805 # We can use an host tool
13806 STRIP_FOR_TARGET='$(STRIP)'
cd9a469c 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13808$as_echo "host tool" >&6; }
f5aebe3e 13809 else
13810 # We need a cross tool
cd9a469c 13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812$as_echo "pre-installed" >&6; }
f5aebe3e 13813 fi
13814fi
a83ffacf 13815
cd9a469c 13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13817$as_echo_n "checking where to find the target windres... " >&6; }
f5aebe3e 13818if test "x${build}" != "x${host}" ; then
c47832b1 13819 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
a6c599b5 13821 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823$as_echo "pre-installed in $ac_dir" >&6; }
c47832b1 13824 else
13825 # Canadian cross, just use what we found
cd9a469c 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13827$as_echo "pre-installed" >&6; }
c47832b1 13828 fi
f5aebe3e 13829else
13830 ok=yes
13831 case " ${configdirs} " in
13832 *" binutils "*) ;;
13833 *) ok=no ;;
13834 esac
b30fcfae 13835
f5aebe3e 13836 if test $ok = yes; then
13837 # An in-tree tool is available and we can use it
13838 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
cd9a469c 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13840$as_echo "just compiled" >&6; }
c47832b1 13841 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13842 # We already found the complete path
a6c599b5 13843 ac_dir=`dirname $WINDRES_FOR_TARGET`
cd9a469c 13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13845$as_echo "pre-installed in $ac_dir" >&6; }
f5aebe3e 13846 elif test "x$target" = "x$host"; then
13847 # We can use an host tool
13848 WINDRES_FOR_TARGET='$(WINDRES)'
cd9a469c 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13850$as_echo "host tool" >&6; }
f5aebe3e 13851 else
13852 # We need a cross tool
cd9a469c 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13854$as_echo "pre-installed" >&6; }
f5aebe3e 13855 fi
71ab34df 13856fi
49aae208 13857
cd9a469c 13858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13859$as_echo_n "checking where to find the target windmc... " >&6; }
75d6a0a9 13860if test "x${build}" != "x${host}" ; then
13861 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
13863 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 13866 else
13867 # Canadian cross, just use what we found
cd9a469c 13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869$as_echo "pre-installed" >&6; }
75d6a0a9 13870 fi
13871else
13872 ok=yes
13873 case " ${configdirs} " in
13874 *" binutils "*) ;;
13875 *) ok=no ;;
13876 esac
13877
13878 if test $ok = yes; then
13879 # An in-tree tool is available and we can use it
13880 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
cd9a469c 13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13882$as_echo "just compiled" >&6; }
75d6a0a9 13883 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13884 # We already found the complete path
13885 ac_dir=`dirname $WINDMC_FOR_TARGET`
cd9a469c 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13887$as_echo "pre-installed in $ac_dir" >&6; }
75d6a0a9 13888 elif test "x$target" = "x$host"; then
13889 # We can use an host tool
13890 WINDMC_FOR_TARGET='$(WINDMC)'
cd9a469c 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13892$as_echo "host tool" >&6; }
75d6a0a9 13893 else
13894 # We need a cross tool
cd9a469c 13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13896$as_echo "pre-installed" >&6; }
75d6a0a9 13897 fi
13898fi
13899
49aae208 13900
13901
f5aebe3e 13902
a83ffacf 13903
71ab34df 13904# Certain tools may need extra flags.
13905AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13906RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13907NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13908
f5aebe3e 13909# When building target libraries, except in a Canadian cross, we use
13910# the same toolchain as the compiler we just built.
13911COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13912COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13913COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13914if test $host = $build; then
13915 case " $configdirs " in
13916 *" gcc "*)
13917 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13918 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13919 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13920 ;;
13921 esac
13922fi
13923
13924
13925
13926
13927
cd9a469c 13928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13929$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13930# Check whether --enable-maintainer-mode was given.
13931if test "${enable_maintainer_mode+set}" = set; then :
13932 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3290c0cf 13933else
13934 USE_MAINTAINER_MODE=no
cd9a469c 13935fi
13936
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13938$as_echo "$USE_MAINTAINER_MODE" >&6; }
3290c0cf 13939
13940
13941if test "$USE_MAINTAINER_MODE" = yes; then
13942 MAINTAINER_MODE_TRUE=
13943 MAINTAINER_MODE_FALSE='#'
13944else
13945 MAINTAINER_MODE_TRUE='#'
13946 MAINTAINER_MODE_FALSE=
b30fcfae 13947fi
3290c0cf 13948MAINT=$MAINTAINER_MODE_TRUE
13949
2d64c2fd 13950# ---------------------
13951# GCC bootstrap support
13952# ---------------------
13953
13954# Stage specific cflags for build.
13955stage1_cflags="-g"
13956case $build in
13957 vax-*-*)
13958 case ${GCC} in
13959 yes) stage1_cflags="-g -Wa,-J" ;;
13960 *) stage1_cflags="-g -J" ;;
13961 esac ;;
2d64c2fd 13962esac
13963
f508ba97 13964# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
7ab76cec 13965if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
f508ba97 13966 saved_CFLAGS="$CFLAGS"
13967
13968 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13969 CFLAGS="$CFLAGS -fkeep-inline-functions"
cd9a469c 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13971$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b30fcfae 13973/* end confdefs.h. */
13974
505abe0c 13975#if (__GNUC__ < 3) \
13976 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13977 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13978#error http://gcc.gnu.org/PR29382
13979#endif
13980
b30fcfae 13981int
13982main ()
13983{
13984
13985 ;
13986 return 0;
13987}
13988_ACEOF
cd9a469c 13989if ac_fn_c_try_compile "$LINENO"; then :
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
b30fcfae 13992else
cd9a469c 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994$as_echo "no" >&6; }
b30fcfae 13995fi
cd9a469c 13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f508ba97 13997
13998 CFLAGS="$saved_CFLAGS"
13999fi
14000
14001
2d64c2fd 14002
39f34cfc 14003# Enable --enable-checking in stage1 of the compiler.
cd9a469c 14004# Check whether --enable-stage1-checking was given.
14005if test "${enable_stage1_checking+set}" = set; then :
14006 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
39f34cfc 14007else
f6be6a96 14008 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
f03e0ae4 14009 stage1_checking=--enable-checking=yes,types
39f34cfc 14010else
f6be6a96 14011 stage1_checking=--enable-checking=$enable_checking,types
39f34cfc 14012fi
cd9a469c 14013fi
39f34cfc 14014
14015
5084f823 14016
cd9a469c 14017# Enable -Werror in bootstrap stage2 and later.
14018# Check whether --enable-werror was given.
14019if test "${enable_werror+set}" = set; then :
14020 enableval=$enable_werror;
2d64c2fd 14021else
dd979235 14022 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2d64c2fd 14023 enable_werror=yes
dc914c6d 14024else
14025 enable_werror=no
14026fi
cd9a469c 14027fi
14028
c0c5068d 14029case ${enable_werror} in
14030 yes) stage2_werror_flag="--enable-werror-always" ;;
14031 *) stage2_werror_flag="" ;;
2d64c2fd 14032esac
14033
14034
ef3c41c7 14035# If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14036# --enable-build-with-cxx after stage1.
14037if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14038 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14039else
14040 POSTSTAGE1_CONFIGURE_FLAGS=
14041fi
14042
14043
6fe86052 14044# Specify what files to not compare during bootstrap.
14045
14046compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14047case "$target" in
14048 hppa*64*-*-hpux*) ;;
14049 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14050esac
eea1ae23 14051case " $configdirs " in
14052*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14053esac
6fe86052 14054
14055
cd9a469c 14056ac_config_files="$ac_config_files Makefile"
14057
b30fcfae 14058cat >confcache <<\_ACEOF
71ab34df 14059# This file is a shell script that caches the results of configure
14060# tests run on this system so they can be shared between configure
b30fcfae 14061# scripts and configure runs, see configure's option --config-cache.
14062# It is not useful on other systems. If it contains results you don't
14063# want to keep, you may remove or edit it.
71ab34df 14064#
b30fcfae 14065# config.status only pays attention to the cache file if you give it
14066# the --recheck option to rerun configure.
71ab34df 14067#
b30fcfae 14068# `ac_cv_env_foo' variables (set or unset) will be overridden when
14069# loading this file, other *unset* `ac_cv_foo' will be assigned the
14070# following values.
14071
14072_ACEOF
14073
71ab34df 14074# The following way of writing the cache mishandles newlines in values,
14075# but we know of no workaround that is simple, portable, and efficient.
cd9a469c 14076# So, we kill variables containing newlines.
71ab34df 14077# Ultrix sh set writes to stderr and can't be redirected directly,
14078# and sets the high bit in the cache file unless we assign to the vars.
cd9a469c 14079(
14080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14081 eval ac_val=\$$ac_var
14082 case $ac_val in #(
14083 *${as_nl}*)
14084 case $ac_var in #(
14085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14087 esac
14088 case $ac_var in #(
14089 _ | IFS | as_nl) ;; #(
14090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14091 *) { eval $ac_var=; unset $ac_var;} ;;
14092 esac ;;
14093 esac
14094 done
14095
b30fcfae 14096 (set) 2>&1 |
cd9a469c 14097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14098 *${as_nl}ac_space=\ *)
14099 # `set' does not quote correctly, so add quotes: double-quote
14100 # substitution turns \\\\ into \\, and sed turns \\ into \.
b30fcfae 14101 sed -n \
14102 "s/'/'\\\\''/g;
14103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
cd9a469c 14104 ;; #(
b30fcfae 14105 *)
14106 # `set' quotes correctly as required by POSIX, so do not add quotes.
cd9a469c 14107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b30fcfae 14108 ;;
cd9a469c 14109 esac |
14110 sort
14111) |
b30fcfae 14112 sed '
cd9a469c 14113 /^ac_cv_env_/b end
b30fcfae 14114 t clear
cd9a469c 14115 :clear
b30fcfae 14116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14117 t end
cd9a469c 14118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14119 :end' >>confcache
14120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14121 if test -w "$cache_file"; then
14122 test "x$cache_file" != "x/dev/null" &&
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14124$as_echo "$as_me: updating cache $cache_file" >&6;}
b30fcfae 14125 cat confcache >$cache_file
71ab34df 14126 else
cd9a469c 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14128$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
71ab34df 14129 fi
805e22b2 14130fi
71ab34df 14131rm -f confcache
a8298541 14132
71ab34df 14133test "x$prefix" = xNONE && prefix=$ac_default_prefix
14134# Let make expand exec_prefix.
14135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
92424a17 14136
71ab34df 14137# Transform confdefs.h into DEFS.
14138# Protect against shell expansion while executing Makefile rules.
14139# Protect against Makefile macro expansion.
b30fcfae 14140#
14141# If the first sed substitution is executed (which looks for macros that
cd9a469c 14142# take arguments), then branch to the quote section. Otherwise,
b30fcfae 14143# look for a macro that doesn't take arguments.
cd9a469c 14144ac_script='
14145:mline
14146/\\$/{
14147 N
14148 s,\\\n,,
14149 b mline
14150}
b30fcfae 14151t clear
cd9a469c 14152:clear
14153s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 14154t quote
cd9a469c 14155s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
b30fcfae 14156t quote
cd9a469c 14157b any
14158:quote
14159s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14160s/\[/\\&/g
14161s/\]/\\&/g
14162s/\$/$$/g
14163H
14164:any
14165${
14166 g
14167 s/^\n//
14168 s/\n/ /g
14169 p
14170}
14171'
14172DEFS=`sed -n "$ac_script" confdefs.h`
b30fcfae 14173
14174
14175ac_libobjs=
14176ac_ltlibobjs=
14177for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14178 # 1. Remove the extension, and $U if already installed.
cd9a469c 14179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14180 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14182 # will be set to the directory where LIBOBJS objects are built.
14183 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14184 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b30fcfae 14185done
14186LIBOBJS=$ac_libobjs
a4af6a58 14187
b30fcfae 14188LTLIBOBJS=$ac_ltlibobjs
a83ffacf 14189
ae48753c 14190
b30fcfae 14191
14192: ${CONFIG_STATUS=./config.status}
cd9a469c 14193ac_write_fail=0
b30fcfae 14194ac_clean_files_save=$ac_clean_files
14195ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cd9a469c 14196{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14197$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14198as_write_fail=0
14199cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b30fcfae 14200#! $SHELL
14201# Generated by $as_me.
71ab34df 14202# Run this file to recreate the current configuration.
71ab34df 14203# Compiler output produced by configure, useful for debugging
b30fcfae 14204# configure, is in config.log if it exists.
a83ffacf 14205
b30fcfae 14206debug=false
14207ac_cs_recheck=false
14208ac_cs_silent=false
b30fcfae 14209
cd9a469c 14210SHELL=\${CONFIG_SHELL-$SHELL}
14211export SHELL
14212_ASEOF
14213cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14214## -------------------- ##
14215## M4sh Initialization. ##
14216## -------------------- ##
14217
14218# Be more Bourne compatible
14219DUALCASE=1; export DUALCASE # for MKS sh
14220if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b30fcfae 14221 emulate sh
14222 NULLCMD=:
cd9a469c 14223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b30fcfae 14224 # is contrary to our usage. Disable this feature.
14225 alias -g '${1+"$@"}'='"$@"'
cd9a469c 14226 setopt NO_GLOB_SUBST
14227else
14228 case `(set -o) 2>/dev/null` in #(
14229 *posix*) :
14230 set -o posix ;; #(
14231 *) :
14232 ;;
14233esac
b30fcfae 14234fi
b30fcfae 14235
cd9a469c 14236
14237as_nl='
14238'
14239export as_nl
14240# Printing a long string crashes Solaris 7 /usr/bin/printf.
14241as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14244# Prefer a ksh shell builtin over an external printf program on Solaris,
14245# but without wasting forks for bash or zsh.
14246if test -z "$BASH_VERSION$ZSH_VERSION" \
14247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14248 as_echo='print -r --'
14249 as_echo_n='print -rn --'
14250elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14251 as_echo='printf %s\n'
14252 as_echo_n='printf %s'
14253else
14254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14255 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14256 as_echo_n='/usr/ucb/echo -n'
14257 else
14258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14259 as_echo_n_body='eval
14260 arg=$1;
14261 case $arg in #(
14262 *"$as_nl"*)
14263 expr "X$arg" : "X\\(.*\\)$as_nl";
14264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14265 esac;
14266 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14267 '
14268 export as_echo_n_body
14269 as_echo_n='sh -c $as_echo_n_body as_echo'
14270 fi
14271 export as_echo_body
14272 as_echo='sh -c $as_echo_body as_echo'
b30fcfae 14273fi
14274
cd9a469c 14275# The user is always right.
14276if test "${PATH_SEPARATOR+set}" != set; then
14277 PATH_SEPARATOR=:
14278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14280 PATH_SEPARATOR=';'
14281 }
14282fi
14283
14284
14285# IFS
14286# We need space, tab and new line, in precisely that order. Quoting is
14287# there to prevent editors from complaining about space-tab.
14288# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14289# splitting by setting IFS to empty value.)
14290IFS=" "" $as_nl"
14291
14292# Find who we are. Look in the path if we contain no directory separator.
14293case $0 in #((
14294 *[\\/]* ) as_myself=$0 ;;
14295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296for as_dir in $PATH
14297do
14298 IFS=$as_save_IFS
14299 test -z "$as_dir" && as_dir=.
14300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14301 done
14302IFS=$as_save_IFS
14303
14304 ;;
14305esac
14306# We did not find ourselves, most probably we were run as `sh COMMAND'
14307# in which case we are not to be found in the path.
14308if test "x$as_myself" = x; then
14309 as_myself=$0
14310fi
14311if test ! -f "$as_myself"; then
14312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14313 exit 1
14314fi
b30fcfae 14315
cd9a469c 14316# Unset variables that we do not need and which cause bugs (e.g. in
14317# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14318# suppresses any "Segmentation fault" message there. '((' could
14319# trigger a bug in pdksh 5.2.14.
14320for as_var in BASH_ENV ENV MAIL MAILPATH
14321do eval test x\${$as_var+set} = xset \
14322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14323done
b30fcfae 14324PS1='$ '
14325PS2='> '
14326PS4='+ '
14327
14328# NLS nuisances.
cd9a469c 14329LC_ALL=C
14330export LC_ALL
14331LANGUAGE=C
14332export LANGUAGE
14333
14334# CDPATH.
14335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14336
14337
14338# as_fn_error ERROR [LINENO LOG_FD]
14339# ---------------------------------
14340# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14341# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14342# script with status $?, using 1 if that was 0.
14343as_fn_error ()
14344{
14345 as_status=$?; test $as_status -eq 0 && as_status=1
14346 if test "$3"; then
14347 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
b30fcfae 14349 fi
cd9a469c 14350 $as_echo "$as_me: error: $1" >&2
14351 as_fn_exit $as_status
14352} # as_fn_error
14353
14354
14355# as_fn_set_status STATUS
14356# -----------------------
14357# Set $? to STATUS, without forking.
14358as_fn_set_status ()
14359{
14360 return $1
14361} # as_fn_set_status
14362
14363# as_fn_exit STATUS
14364# -----------------
14365# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14366as_fn_exit ()
14367{
14368 set +e
14369 as_fn_set_status $1
14370 exit $1
14371} # as_fn_exit
14372
14373# as_fn_unset VAR
14374# ---------------
14375# Portably unset VAR.
14376as_fn_unset ()
14377{
14378 { eval $1=; unset $1;}
14379}
14380as_unset=as_fn_unset
14381# as_fn_append VAR VALUE
14382# ----------------------
14383# Append the text in VALUE to the end of the definition contained in VAR. Take
14384# advantage of any shell optimizations that allow amortized linear growth over
14385# repeated appends, instead of the typical quadratic growth present in naive
14386# implementations.
14387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14388 eval 'as_fn_append ()
14389 {
14390 eval $1+=\$2
14391 }'
14392else
14393 as_fn_append ()
14394 {
14395 eval $1=\$$1\$2
14396 }
14397fi # as_fn_append
14398
14399# as_fn_arith ARG...
14400# ------------------
14401# Perform arithmetic evaluation on the ARGs, and store the result in the
14402# global $as_val. Take advantage of shells that can avoid forks. The arguments
14403# must be portable across $(()) and expr.
14404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14405 eval 'as_fn_arith ()
14406 {
14407 as_val=$(( $* ))
14408 }'
14409else
14410 as_fn_arith ()
14411 {
14412 as_val=`expr "$@" || test $? -eq 1`
14413 }
14414fi # as_fn_arith
14415
b30fcfae 14416
cd9a469c 14417if expr a : '\(a\)' >/dev/null 2>&1 &&
14418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b30fcfae 14419 as_expr=expr
14420else
14421 as_expr=false
14422fi
14423
cd9a469c 14424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b30fcfae 14425 as_basename=basename
14426else
14427 as_basename=false
14428fi
14429
cd9a469c 14430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14431 as_dirname=dirname
14432else
14433 as_dirname=false
14434fi
b30fcfae 14435
cd9a469c 14436as_me=`$as_basename -- "$0" ||
b30fcfae 14437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14438 X"$0" : 'X\(//\)$' \| \
cd9a469c 14439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14440$as_echo X/"$0" |
14441 sed '/^.*\/\([^/][^/]*\)\/*$/{
14442 s//\1/
14443 q
14444 }
14445 /^X\/\(\/\/\)$/{
14446 s//\1/
14447 q
14448 }
14449 /^X\/\(\/\).*/{
14450 s//\1/
14451 q
14452 }
14453 s/.*/./; q'`
5084f823 14454
5084f823 14455# Avoid depending upon Character Ranges.
14456as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14458as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14459as_cr_digits='0123456789'
14460as_cr_alnum=$as_cr_Letters$as_cr_digits
14461
cd9a469c 14462ECHO_C= ECHO_N= ECHO_T=
14463case `echo -n x` in #(((((
14464-n*)
14465 case `echo 'xy\c'` in
14466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14467 xy) ECHO_C='\c';;
14468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14469 ECHO_T=' ';;
14470 esac;;
14471*)
14472 ECHO_N='-n';;
b30fcfae 14473esac
14474
cd9a469c 14475rm -f conf$$ conf$$.exe conf$$.file
14476if test -d conf$$.dir; then
14477 rm -f conf$$.dir/conf$$.file
b30fcfae 14478else
cd9a469c 14479 rm -f conf$$.dir
14480 mkdir conf$$.dir 2>/dev/null
b30fcfae 14481fi
cd9a469c 14482if (echo >conf$$.file) 2>/dev/null; then
14483 if ln -s conf$$.file conf$$ 2>/dev/null; then
5084f823 14484 as_ln_s='ln -s'
cd9a469c 14485 # ... but there are two gotchas:
14486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14488 # In both cases, we have to default to `cp -p'.
14489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14490 as_ln_s='cp -p'
14491 elif ln conf$$.file conf$$ 2>/dev/null; then
14492 as_ln_s=ln
14493 else
14494 as_ln_s='cp -p'
5084f823 14495 fi
b30fcfae 14496else
14497 as_ln_s='cp -p'
14498fi
cd9a469c 14499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14500rmdir conf$$.dir 2>/dev/null
14501
14502
14503# as_fn_mkdir_p
14504# -------------
14505# Create "$as_dir" as a directory, including parents if necessary.
14506as_fn_mkdir_p ()
14507{
14508
14509 case $as_dir in #(
14510 -*) as_dir=./$as_dir;;
14511 esac
14512 test -d "$as_dir" || eval $as_mkdir_p || {
14513 as_dirs=
14514 while :; do
14515 case $as_dir in #(
14516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14517 *) as_qdir=$as_dir;;
14518 esac
14519 as_dirs="'$as_qdir' $as_dirs"
14520 as_dir=`$as_dirname -- "$as_dir" ||
14521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522 X"$as_dir" : 'X\(//\)[^/]' \| \
14523 X"$as_dir" : 'X\(//\)$' \| \
14524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14525$as_echo X"$as_dir" |
14526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\/\)[^/].*/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\/\)$/{
14535 s//\1/
14536 q
14537 }
14538 /^X\(\/\).*/{
14539 s//\1/
14540 q
14541 }
14542 s/.*/./; q'`
14543 test -d "$as_dir" && break
14544 done
14545 test -z "$as_dirs" || eval "mkdir $as_dirs"
14546 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14547
b30fcfae 14548
cd9a469c 14549} # as_fn_mkdir_p
b30fcfae 14550if mkdir -p . 2>/dev/null; then
cd9a469c 14551 as_mkdir_p='mkdir -p "$as_dir"'
b30fcfae 14552else
14553 test -d ./-p && rmdir ./-p
14554 as_mkdir_p=false
14555fi
14556
cd9a469c 14557if test -x / >/dev/null 2>&1; then
14558 as_test_x='test -x'
14559else
14560 if ls -dL / >/dev/null 2>&1; then
14561 as_ls_L_option=L
14562 else
14563 as_ls_L_option=
14564 fi
14565 as_test_x='
14566 eval sh -c '\''
14567 if test -d "$1"; then
14568 test -d "$1/.";
14569 else
14570 case $1 in #(
14571 -*)set "./$1";;
14572 esac;
14573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14574 ???[sx]*):;;*)false;;esac;fi
14575 '\'' sh
14576 '
14577fi
14578as_executable_p=$as_test_x
b30fcfae 14579
14580# Sed expression to map a string onto a valid CPP name.
14581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14582
14583# Sed expression to map a string onto a valid variable name.
14584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14585
14586
b30fcfae 14587exec 6>&1
cd9a469c 14588## ----------------------------------- ##
14589## Main body of $CONFIG_STATUS script. ##
14590## ----------------------------------- ##
14591_ASEOF
14592test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14593
14594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14595# Save the log message, to keep $0 and so on meaningful, and to
b30fcfae 14596# report actual input values of CONFIG_FILES etc. instead of their
cd9a469c 14597# values after options handling.
14598ac_log="
b30fcfae 14599This file was extended by $as_me, which was
cd9a469c 14600generated by GNU Autoconf 2.64. Invocation command line was
b30fcfae 14601
14602 CONFIG_FILES = $CONFIG_FILES
14603 CONFIG_HEADERS = $CONFIG_HEADERS
14604 CONFIG_LINKS = $CONFIG_LINKS
14605 CONFIG_COMMANDS = $CONFIG_COMMANDS
14606 $ $0 $@
14607
cd9a469c 14608on `(hostname || uname -n) 2>/dev/null | sed 1q`
14609"
14610
b30fcfae 14611_ACEOF
14612
cd9a469c 14613case $ac_config_files in *"
14614"*) set x $ac_config_files; shift; ac_config_files=$*;;
14615esac
b30fcfae 14616
5084f823 14617
5084f823 14618
cd9a469c 14619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620# Files that config.status was made for.
14621config_files="$ac_config_files"
b30fcfae 14622
cd9a469c 14623_ACEOF
5084f823 14624
cd9a469c 14625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 14626ac_cs_usage="\
cd9a469c 14627\`$as_me' instantiates files and other configuration actions
14628from templates according to the current configuration. Unless the files
14629and actions are specified as TAGs, all are instantiated by default.
b30fcfae 14630
cd9a469c 14631Usage: $0 [OPTION]... [TAG]...
b30fcfae 14632
14633 -h, --help print this help, then exit
cd9a469c 14634 -V, --version print version number and configuration settings, then exit
14635 -q, --quiet, --silent
14636 do not print progress messages
b30fcfae 14637 -d, --debug don't remove temporary files
14638 --recheck update $as_me by reconfiguring in the same conditions
cd9a469c 14639 --file=FILE[:TEMPLATE]
14640 instantiate the configuration file FILE
b30fcfae 14641
14642Configuration files:
14643$config_files
14644
cd9a469c 14645Report bugs to the package provider."
5084f823 14646
cd9a469c 14647_ACEOF
14648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 14649ac_cs_version="\\
14650config.status
cd9a469c 14651configured by $0, generated by GNU Autoconf 2.64,
14652 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
b30fcfae 14653
cd9a469c 14654Copyright (C) 2009 Free Software Foundation, Inc.
b30fcfae 14655This config.status script is free software; the Free Software Foundation
14656gives unlimited permission to copy, distribute and modify it."
cd9a469c 14657
14658ac_pwd='$ac_pwd'
14659srcdir='$srcdir'
14660INSTALL='$INSTALL'
b181f265 14661AWK='$AWK'
cd9a469c 14662test -n "\$AWK" || AWK=awk
b30fcfae 14663_ACEOF
14664
cd9a469c 14665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14666# The default lists apply if the user does not specify any file.
b30fcfae 14667ac_need_defaults=:
14668while test $# != 0
b1660f25 14669do
b30fcfae 14670 case $1 in
14671 --*=*)
cd9a469c 14672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b30fcfae 14674 ac_shift=:
14675 ;;
cd9a469c 14676 *)
b30fcfae 14677 ac_option=$1
14678 ac_optarg=$2
14679 ac_shift=shift
14680 ;;
b30fcfae 14681 esac
14682
14683 case $ac_option in
14684 # Handling of the options.
71ab34df 14685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b30fcfae 14686 ac_cs_recheck=: ;;
cd9a469c 14687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14688 $as_echo "$ac_cs_version"; exit ;;
14689 --debug | --debu | --deb | --de | --d | -d )
b30fcfae 14690 debug=: ;;
14691 --file | --fil | --fi | --f )
14692 $ac_shift
cd9a469c 14693 case $ac_optarg in
14694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14695 esac
14696 as_fn_append CONFIG_FILES " '$ac_optarg'"
5084f823 14697 ac_need_defaults=false;;
cd9a469c 14698 --he | --h | --help | --hel | -h )
14699 $as_echo "$ac_cs_usage"; exit ;;
b30fcfae 14700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14702 ac_cs_silent=: ;;
14703
14704 # This is an error.
cd9a469c 14705 -*) as_fn_error "unrecognized option: \`$1'
14706Try \`$0 --help' for more information." ;;
b30fcfae 14707
cd9a469c 14708 *) as_fn_append ac_config_targets " $1"
14709 ac_need_defaults=false ;;
b30fcfae 14710
a83ffacf 14711 esac
b30fcfae 14712 shift
a83ffacf 14713done
14714
b30fcfae 14715ac_configure_extra_args=
a83ffacf 14716
b30fcfae 14717if $ac_cs_silent; then
14718 exec 6>/dev/null
14719 ac_configure_extra_args="$ac_configure_extra_args --silent"
14720fi
a83ffacf 14721
b30fcfae 14722_ACEOF
cd9a469c 14723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b30fcfae 14724if \$ac_cs_recheck; then
cd9a469c 14725 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14726 shift
14727 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14728 CONFIG_SHELL='$SHELL'
14729 export CONFIG_SHELL
14730 exec "\$@"
b30fcfae 14731fi
14732
14733_ACEOF
cd9a469c 14734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735exec 5>>config.log
14736{
14737 echo
14738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14739## Running $as_me. ##
14740_ASBOX
14741 $as_echo "$ac_log"
14742} >&5
b30fcfae 14743
cd9a469c 14744_ACEOF
14745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8bb79148 14746#
14747# INIT-COMMANDS
14748#
14749extrasub_build="$extrasub_build"
14750 extrasub_host="$extrasub_host"
14751 extrasub_target="$extrasub_target"
14752
cd9a469c 14753_ACEOF
b30fcfae 14754
cd9a469c 14755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
570af75a 14756
cd9a469c 14757# Handling of arguments.
b30fcfae 14758for ac_config_target in $ac_config_targets
14759do
cd9a469c 14760 case $ac_config_target in
14761 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14762
14763 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b30fcfae 14764 esac
14765done
14766
cd9a469c 14767
b30fcfae 14768# If the user did not use the arguments to specify the items to instantiate,
14769# then the envvar interface is used. Set only those that are not.
14770# We use the long form for the default assignment because of an extremely
14771# bizarre bug on SunOS 4.1.3.
14772if $ac_need_defaults; then
14773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14774fi
14775
14776# Have a temporary directory for convenience. Make it in the build tree
cd9a469c 14777# simply because there is no reason against having it here, and in addition,
b30fcfae 14778# creating and moving files from /tmp can sometimes cause problems.
cd9a469c 14779# Hook for its removal unless debugging.
14780# Note that there is a small window in which the directory will not be cleaned:
14781# after its creation but before its name has been assigned to `$tmp'.
b30fcfae 14782$debug ||
14783{
cd9a469c 14784 tmp=
14785 trap 'exit_status=$?
14786 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14787' 0
14788 trap 'as_fn_exit 1' 1 2 13 15
b30fcfae 14789}
b30fcfae 14790# Create a (secure) tmp directory for tmp files.
14791
14792{
cd9a469c 14793 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
b30fcfae 14794 test -n "$tmp" && test -d "$tmp"
14795} ||
14796{
cd9a469c 14797 tmp=./conf$$-$RANDOM
14798 (umask 077 && mkdir "$tmp")
14799} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14800
14801# Set up the scripts for CONFIG_FILES section.
14802# No need to generate them if there are no CONFIG_FILES.
14803# This happens for instance with `./config.status config.h'.
14804if test -n "$CONFIG_FILES"; then
14805
14806if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14807 ac_cs_awk_getline=:
14808 ac_cs_awk_pipe_init=
14809 ac_cs_awk_read_file='
14810 while ((getline aline < (F[key])) > 0)
14811 print(aline)
14812 close(F[key])'
14813 ac_cs_awk_pipe_fini=
14814else
14815 ac_cs_awk_getline=false
14816 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14817 ac_cs_awk_read_file='
14818 print "|#_!!_#|"
14819 print "cat " F[key] " &&"
14820 '$ac_cs_awk_pipe_init
14821 # The final `:' finishes the AND list.
14822 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14823fi
14824ac_cr=`echo X | tr X '\015'`
14825# On cygwin, bash can eat \r inside `` if the user requested igncr.
14826# But we know of no other shell where ac_cr would be empty at this
14827# point, so we can use a bashism as a fallback.
14828if test "x$ac_cr" = x; then
14829 eval ac_cr=\$\'\\r\'
14830fi
14831ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14832if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14833 ac_cs_awk_cr='\r'
14834else
14835 ac_cs_awk_cr=$ac_cr
14836fi
14837
14838echo 'BEGIN {' >"$tmp/subs1.awk" &&
14839_ACEOF
14840
14841# Create commands to substitute file output variables.
b30fcfae 14842{
cd9a469c 14843 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14844 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14845 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14846 echo "_ACAWK" &&
14847 echo "_ACEOF"
14848} >conf$$files.sh &&
14849. ./conf$$files.sh ||
14850 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14851rm -f conf$$files.sh
b30fcfae 14852
cd9a469c 14853{
14854 echo "cat >conf$$subs.awk <<_ACEOF" &&
14855 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14856 echo "_ACEOF"
14857} >conf$$subs.sh ||
14858 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14859ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14860ac_delim='%!_!# '
14861for ac_last_try in false false false false false :; do
14862 . ./conf$$subs.sh ||
14863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14864
14865 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14866 if test $ac_delim_n = $ac_delim_num; then
14867 break
14868 elif $ac_last_try; then
14869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870 else
14871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14872 fi
14873done
14874rm -f conf$$subs.sh
14875
14876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14877cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5084f823 14878_ACEOF
cd9a469c 14879sed -n '
14880h
14881s/^/S["/; s/!.*/"]=/
14882p
14883g
14884s/^[^!]*!//
14885:repl
14886t repl
14887s/'"$ac_delim"'$//
14888t delim
14889:nl
14890h
14891s/\(.\{148\}\).*/\1/
14892t more1
14893s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14894p
14895n
14896b repl
14897:more1
14898s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14899p
14900g
14901s/.\{148\}//
14902t nl
14903:delim
14904h
14905s/\(.\{148\}\).*/\1/
14906t more2
14907s/["\\]/\\&/g; s/^/"/; s/$/"/
14908p
14909b
14910:more2
14911s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14912p
14913g
14914s/.\{148\}//
14915t delim
14916' <conf$$subs.awk | sed '
14917/^[^""]/{
14918 N
14919 s/\n//
14920}
14921' >>$CONFIG_STATUS || ac_write_fail=1
14922rm -f conf$$subs.awk
14923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14924_ACAWK
14925cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14926 for (key in S) S_is_set[key] = 1
14927 FS = "\a"
14928 \$ac_cs_awk_pipe_init
14929}
14930{
14931 line = $ 0
14932 nfields = split(line, field, "@")
14933 substed = 0
14934 len = length(field[1])
14935 for (i = 2; i < nfields; i++) {
14936 key = field[i]
14937 keylen = length(key)
14938 if (S_is_set[key]) {
14939 value = S[key]
14940 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14941 len += length(value) + length(field[++i])
14942 substed = 1
14943 } else
14944 len += 1 + keylen
14945 }
14946 if (nfields == 3 && !substed) {
14947 key = field[2]
14948 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14949 \$ac_cs_awk_read_file
14950 next
14951 }
14952 }
14953 print line
14954}
14955\$ac_cs_awk_pipe_fini
14956_ACAWK
14957_ACEOF
14958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14961else
14962 cat
14963fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14964 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14965_ACEOF
14966
14967# VPATH may cause trouble with some makes, so we remove $(srcdir),
14968# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14969# trailing colons and then remove the whole line if VPATH becomes empty
14970# (actually we leave an empty line to preserve line numbers).
14971if test "x$srcdir" = x.; then
14972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14973s/:*\$(srcdir):*/:/
14974s/:*\${srcdir}:*/:/
14975s/:*@srcdir@:*/:/
14976s/^\([^=]*=[ ]*\):*/\1/
14977s/:*$//
14978s/^[^=]*=[ ]*$//
14979}'
14980fi
5084f823 14981
cd9a469c 14982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14983fi # test -n "$CONFIG_FILES"
5084f823 14984
b30fcfae 14985
cd9a469c 14986eval set X " :F $CONFIG_FILES "
14987shift
14988for ac_tag
14989do
14990 case $ac_tag in
14991 :[FHLC]) ac_mode=$ac_tag; continue;;
14992 esac
14993 case $ac_mode$ac_tag in
14994 :[FHL]*:*);;
14995 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14996 :[FH]-) ac_tag=-:-;;
14997 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14998 esac
14999 ac_save_IFS=$IFS
15000 IFS=:
15001 set x $ac_tag
15002 IFS=$ac_save_IFS
15003 shift
15004 ac_file=$1
15005 shift
a8298541 15006
cd9a469c 15007 case $ac_mode in
15008 :L) ac_source=$1;;
15009 :[FH])
15010 ac_file_inputs=
15011 for ac_f
15012 do
15013 case $ac_f in
15014 -) ac_f="$tmp/stdin";;
15015 *) # Look for the file first in the build tree, then in the source tree
15016 # (if the path is not absolute). The absolute path cannot be DOS-style,
15017 # because $ac_f cannot contain `:'.
15018 test -f "$ac_f" ||
15019 case $ac_f in
15020 [\\/$]*) false;;
15021 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15022 esac ||
15023 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15024 esac
15025 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15026 as_fn_append ac_file_inputs " '$ac_f'"
15027 done
b30fcfae 15028
cd9a469c 15029 # Let's still pretend it is `configure' which instantiates (i.e., don't
15030 # use $as_me), people would be surprised to read:
15031 # /* config.h. Generated by config.status. */
15032 configure_input='Generated from '`
15033 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15034 `' by configure.'
15035 if test x"$ac_file" != x-; then
15036 configure_input="$ac_file. $configure_input"
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15038$as_echo "$as_me: creating $ac_file" >&6;}
5084f823 15039 fi
cd9a469c 15040 # Neutralize special characters interpreted by sed in replacement strings.
15041 case $configure_input in #(
15042 *\&* | *\|* | *\\* )
15043 ac_sed_conf_input=`$as_echo "$configure_input" |
15044 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15045 *) ac_sed_conf_input=$configure_input;;
15046 esac
570af75a 15047
cd9a469c 15048 case $ac_tag in
15049 *:-:* | *:-) cat >"$tmp/stdin" \
15050 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15051 esac
15052 ;;
570af75a 15053 esac
15054
cd9a469c 15055 ac_dir=`$as_dirname -- "$ac_file" ||
b30fcfae 15056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15057 X"$ac_file" : 'X\(//\)[^/]' \| \
15058 X"$ac_file" : 'X\(//\)$' \| \
cd9a469c 15059 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15060$as_echo X"$ac_file" |
15061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15062 s//\1/
15063 q
15064 }
15065 /^X\(\/\/\)[^/].*/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\/\)$/{
15070 s//\1/
15071 q
15072 }
15073 /^X\(\/\).*/{
15074 s//\1/
15075 q
15076 }
15077 s/.*/./; q'`
15078 as_dir="$ac_dir"; as_fn_mkdir_p
b30fcfae 15079 ac_builddir=.
a83ffacf 15080
cd9a469c 15081case "$ac_dir" in
15082.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15083*)
15084 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15085 # A ".." for each directory in $ac_dir_suffix.
15086 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15087 case $ac_top_builddir_sub in
15088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15090 esac ;;
15091esac
15092ac_abs_top_builddir=$ac_pwd
15093ac_abs_builddir=$ac_pwd$ac_dir_suffix
15094# for backward compatibility:
15095ac_top_builddir=$ac_top_build_prefix
b30fcfae 15096
15097case $srcdir in
cd9a469c 15098 .) # We are building in place.
b30fcfae 15099 ac_srcdir=.
cd9a469c 15100 ac_top_srcdir=$ac_top_builddir_sub
15101 ac_abs_top_srcdir=$ac_pwd ;;
15102 [\\/]* | ?:[\\/]* ) # Absolute name.
b30fcfae 15103 ac_srcdir=$srcdir$ac_dir_suffix;
cd9a469c 15104 ac_top_srcdir=$srcdir
15105 ac_abs_top_srcdir=$srcdir ;;
15106 *) # Relative name.
15107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15108 ac_top_srcdir=$ac_top_build_prefix$srcdir
15109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b30fcfae 15110esac
cd9a469c 15111ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b1660f25 15112
a83ffacf 15113
cd9a469c 15114 case $ac_mode in
15115 :F)
15116 #
15117 # CONFIG_FILE
15118 #
b30fcfae 15119
15120 case $INSTALL in
15121 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
cd9a469c 15122 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
71ab34df 15123 esac
cd9a469c 15124_ACEOF
570af75a 15125
cd9a469c 15126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127# If the template does not know about datarootdir, expand it.
15128# FIXME: This hack should be removed a few years after 2.60.
15129ac_datarootdir_hack=; ac_datarootdir_seen=
15130ac_sed_dataroot='
15131/datarootdir/ {
15132 p
15133 q
15134}
15135/@datadir@/p
15136/@docdir@/p
15137/@infodir@/p
15138/@localedir@/p
15139/@mandir@/p'
15140case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141*datarootdir*) ac_datarootdir_seen=yes;;
15142*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
570af75a 15145_ACEOF
cd9a469c 15146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147 ac_datarootdir_hack='
15148 s&@datadir@&$datadir&g
15149 s&@docdir@&$docdir&g
15150 s&@infodir@&$infodir&g
15151 s&@localedir@&$localedir&g
15152 s&@mandir@&$mandir&g
15153 s&\\\${datarootdir}&$datarootdir&g' ;;
15154esac
15155_ACEOF
15156
15157# Neutralize VPATH when `$srcdir' = `.'.
15158# Shell code in configure.ac might set extrasub.
15159# FIXME: do we really want to maintain this feature?
15160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161ac_sed_extra="$ac_vpsub
b30fcfae 15162$extrasub
15163_ACEOF
cd9a469c 15164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b30fcfae 15165:t
15166/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
cd9a469c 15167s|@configure_input@|$ac_sed_conf_input|;t t
15168s&@top_builddir@&$ac_top_builddir_sub&;t t
15169s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170s&@srcdir@&$ac_srcdir&;t t
15171s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172s&@top_srcdir@&$ac_top_srcdir&;t t
15173s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174s&@builddir@&$ac_builddir&;t t
15175s&@abs_builddir@&$ac_abs_builddir&;t t
15176s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177s&@INSTALL@&$ac_INSTALL&;t t
15178$ac_datarootdir_hack
15179"
15180eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15181if $ac_cs_awk_getline; then
15182 $AWK -f "$tmp/subs.awk"
15183else
15184 $AWK -f "$tmp/subs.awk" | $SHELL
15185fi >$tmp/out \
15186 || as_fn_error "could not create $ac_file" "$LINENO" 5
15187
15188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192which seems to be undefined. Please make sure it is defined." >&5
15193$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194which seems to be undefined. Please make sure it is defined." >&2;}
15195
15196 rm -f "$tmp/stdin"
15197 case $ac_file in
15198 -) cat "$tmp/out" && rm -f "$tmp/out";;
15199 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15200 esac \
15201 || as_fn_error "could not create $ac_file" "$LINENO" 5
15202 ;;
570af75a 15203
570af75a 15204
a8298541 15205
cd9a469c 15206 esac
15207
8bb79148 15208
15209 case $ac_file$ac_mode in
15210 "Makefile":F) sed "$extrasub_build" Makefile |
15211 sed "$extrasub_host" |
15212 sed "$extrasub_target" > mf$$
15213 mv -f mf$$ Makefile ;;
15214
15215 esac
cd9a469c 15216done # for ac_tag
15217
15218
15219as_fn_exit 0
b30fcfae 15220_ACEOF
b30fcfae 15221ac_clean_files=$ac_clean_files_save
15222
cd9a469c 15223test $ac_write_fail = 0 ||
15224 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15225
b30fcfae 15226
15227# configure is writing to config.log, and then calls config.status.
15228# config.status does its own redirection, appending to config.log.
15229# Unfortunately, on DOS this fails, as config.log is still kept open
15230# by configure, so config.status won't be able to write to it; its
15231# output is simply discarded. So we exec the FD to /dev/null,
15232# effectively closing config.log, so it can be properly (re)opened and
15233# appended to by config.status. When coming back to configure, we
15234# need to make the FD available again.
15235if test "$no_create" != yes; then
15236 ac_cs_success=:
15237 ac_config_status_args=
15238 test "$silent" = yes &&
15239 ac_config_status_args="$ac_config_status_args --quiet"
15240 exec 5>/dev/null
15241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15242 exec 5>>config.log
15243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15244 # would make configure fail if this is the last instruction.
cd9a469c 15245 $ac_cs_success || as_fn_exit $?
15246fi
15247if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15249$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b30fcfae 15250fi
a8298541 15251