gdb:
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
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.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
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
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
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'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
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
c6b750e1 184do
81ecdfbb
RW
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."
c6b750e1 228 else
81ecdfbb
RW
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."
c6b750e1 233 fi
81ecdfbb
RW
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
c6b750e1 263
81ecdfbb
RW
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
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
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'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
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 |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
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; }
c6b750e1
DJ
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
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';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
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'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
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
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
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
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb 555enable_option_checking=no
700d40ca
ILT
556# Factoring default headers for most tests.
557ac_includes_default="\
558#include <stdio.h>
559#ifdef HAVE_SYS_TYPES_H
560# include <sys/types.h>
561#endif
562#ifdef HAVE_SYS_STAT_H
563# include <sys/stat.h>
564#endif
565#ifdef STDC_HEADERS
566# include <stdlib.h>
567# include <stddef.h>
568#else
569# ifdef HAVE_STDLIB_H
570# include <stdlib.h>
571# endif
572#endif
573#ifdef HAVE_STRING_H
574# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
575# include <memory.h>
576# endif
577# include <string.h>
578#endif
579#ifdef HAVE_STRINGS_H
580# include <strings.h>
581#endif
582#ifdef HAVE_INTTYPES_H
583# include <inttypes.h>
584#endif
585#ifdef HAVE_STDINT_H
586# include <stdint.h>
587#endif
588#ifdef HAVE_UNISTD_H
589# include <unistd.h>
590#endif"
591
81ecdfbb
RW
592ac_subst_vars='LTLIBOBJS
593LIBOBJS
594compare_exclusions
595stage2_werror_flag
596stage1_checking
597stage1_cflags
598MAINT
599MAINTAINER_MODE_FALSE
600MAINTAINER_MODE_TRUE
601COMPILER_NM_FOR_TARGET
602COMPILER_LD_FOR_TARGET
603COMPILER_AS_FOR_TARGET
604FLAGS_FOR_TARGET
605RAW_CXX_FOR_TARGET
606WINDMC_FOR_TARGET
607WINDRES_FOR_TARGET
608STRIP_FOR_TARGET
609RANLIB_FOR_TARGET
610OBJDUMP_FOR_TARGET
611NM_FOR_TARGET
612LIPO_FOR_TARGET
613LD_FOR_TARGET
614DLLTOOL_FOR_TARGET
615AS_FOR_TARGET
616AR_FOR_TARGET
617GFORTRAN_FOR_TARGET
618GCJ_FOR_TARGET
619GCC_FOR_TARGET
620CXX_FOR_TARGET
621CC_FOR_TARGET
622OBJDUMP
623OBJCOPY
624WINDMC
625WINDRES
626STRIP
627RANLIB
628NM
629LIPO
630LD
631DLLTOOL
632AS
633AR
634RUNTEST
635EXPECT
636MAKEINFO
637FLEX
638LEX
639M4
640BISON
641YACC
642config_shell
643WINDRES_FOR_BUILD
644WINDMC_FOR_BUILD
645RANLIB_FOR_BUILD
646NM_FOR_BUILD
647LD_FOR_BUILD
648LDFLAGS_FOR_BUILD
649GFORTRAN_FOR_BUILD
650GCJ_FOR_BUILD
651DLLTOOL_FOR_BUILD
652CXX_FOR_BUILD
653CXXFLAGS_FOR_BUILD
654CFLAGS_FOR_BUILD
655CC_FOR_BUILD
656AS_FOR_BUILD
657AR_FOR_BUILD
911e63d0 658target_configdirs
81ecdfbb 659configdirs
81ecdfbb 660build_configdirs
81ecdfbb
RW
661INSTALL_GDB_TK
662GDB_TK
663CONFIGURE_GDB_TK
664build_tooldir
665tooldir
666GCC_SHLIB_SUBDIR
667RPATH_ENVVAR
4074d5f2
RW
668target_configargs
669host_configargs
670build_configargs
96655cc4 671BUILD_CONFIG
81ecdfbb
RW
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
676stage1_languages
700d40ca
ILT
677extra_host_libiberty_configure_flags
678libelfinc
679libelflibs
680EGREP
681GREP
682CPP
81ecdfbb
RW
683clooginc
684clooglibs
685pplinc
686ppllibs
81ecdfbb 687poststage1_ldflags
143754cd 688poststage1_libs
81ecdfbb
RW
689stage1_libs
690stage1_ldflags
691extra_mpc_mpfr_configure_flags
692extra_mpc_gmp_configure_flags
693extra_mpfr_configure_flags
694gmpinc
695gmplibs
696do_compare
697GNATMAKE
698GNATBIND
699ac_ct_CXX
700CXXFLAGS
701CXX
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709target_subdir
710host_subdir
711build_subdir
712build_libsubdir
8e957354
PB
713AWK
714SED
81ecdfbb
RW
715LN_S
716LN
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728target_noncanonical
729host_noncanonical
730build_noncanonical
731build_os
732build_vendor
733build_cpu
734build
735TOPLEVEL_CONFIGURE_ARGUMENTS
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files='serialization_dependencies
775host_makefile_frag
776target_makefile_frag
777alphaieee_frag
778ospace_frag'
779ac_user_opts='
780enable_option_checking
781with_build_libsubdir
782enable_gold
783enable_libada
784enable_libssp
785enable_build_with_cxx
786with_mpc
787with_mpc_include
788with_mpc_lib
789with_mpfr_dir
790with_mpfr
791with_mpfr_include
792with_mpfr_lib
793with_gmp_dir
794with_gmp
795with_gmp_include
796with_gmp_lib
797with_host_libstdcxx
798with_stage1_ldflags
799with_stage1_libs
81ecdfbb 800with_boot_libs
143754cd 801with_boot_ldflags
81ecdfbb
RW
802with_ppl
803with_ppl_include
804with_ppl_lib
805enable_ppl_version_check
806with_cloog
807with_cloog_include
808with_cloog_lib
809enable_cloog_version_check
700d40ca
ILT
810enable_lto
811with_libelf
812with_libelf_include
813with_libelf_lib
81ecdfbb
RW
814enable_stage1_languages
815enable_objc_gc
816with_build_sysroot
817with_debug_prefix_map
818enable_bootstrap
96655cc4 819with_build_config
81ecdfbb
RW
820enable_serial_configure
821with_build_time_tools
822enable_maintainer_mode
823enable_stage1_checking
824enable_werror
81ecdfbb
RW
825'
826 ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CXX
835CXXFLAGS
836CCC
700d40ca 837CPP
4074d5f2
RW
838build_configargs
839host_configargs
840target_configargs
81ecdfbb
RW
841AR
842AS
843DLLTOOL
844LD
845LIPO
846NM
847RANLIB
848STRIP
849WINDRES
850WINDMC
851OBJCOPY
852OBJDUMP
853CC_FOR_TARGET
854CXX_FOR_TARGET
855GCC_FOR_TARGET
856GCJ_FOR_TARGET
857GFORTRAN_FOR_TARGET
858AR_FOR_TARGET
859AS_FOR_TARGET
860DLLTOOL_FOR_TARGET
861LD_FOR_TARGET
862LIPO_FOR_TARGET
863NM_FOR_TARGET
864OBJDUMP_FOR_TARGET
865RANLIB_FOR_TARGET
866STRIP_FOR_TARGET
867WINDRES_FOR_TARGET
868WINDMC_FOR_TARGET'
869
a0da8069
NN
870
871# Initialize some variables set by options.
c6b750e1
DJ
872ac_init_help=
873ac_init_version=false
81ecdfbb
RW
874ac_unrecognized_opts=
875ac_unrecognized_sep=
a0da8069
NN
876# The variables have the same names as the options, with
877# dashes changed to underlines.
c6b750e1 878cache_file=/dev/null
a0da8069 879exec_prefix=NONE
a0da8069 880no_create=
a0da8069
NN
881no_recursion=
882prefix=NONE
883program_prefix=NONE
884program_suffix=NONE
885program_transform_name=s,x,x,
886silent=
887site=
888srcdir=
a0da8069
NN
889verbose=
890x_includes=NONE
891x_libraries=NONE
c6b750e1
DJ
892
893# Installation directory options.
894# These are left unexpanded so users can "make install exec_prefix=/foo"
895# and all the variables that are supposed to be based on exec_prefix
896# by default will actually change.
897# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 898# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
899bindir='${exec_prefix}/bin'
900sbindir='${exec_prefix}/sbin'
901libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
902datarootdir='${prefix}/share'
903datadir='${datarootdir}'
a0da8069
NN
904sysconfdir='${prefix}/etc'
905sharedstatedir='${prefix}/com'
906localstatedir='${prefix}/var'
a0da8069
NN
907includedir='${prefix}/include'
908oldincludedir='/usr/include'
81ecdfbb
RW
909docdir='${datarootdir}/doc/${PACKAGE}'
910infodir='${datarootdir}/info'
911htmldir='${docdir}'
912dvidir='${docdir}'
913pdfdir='${docdir}'
914psdir='${docdir}'
915libdir='${exec_prefix}/lib'
916localedir='${datarootdir}/locale'
917mandir='${datarootdir}/man'
252b5132 918
a0da8069 919ac_prev=
81ecdfbb 920ac_dashdash=
a0da8069
NN
921for ac_option
922do
a0da8069
NN
923 # If the previous option needs an argument, assign it.
924 if test -n "$ac_prev"; then
81ecdfbb 925 eval $ac_prev=\$ac_option
a0da8069
NN
926 ac_prev=
927 continue
928 fi
252b5132 929
81ecdfbb
RW
930 case $ac_option in
931 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
932 *) ac_optarg=yes ;;
933 esac
a0da8069
NN
934
935 # Accept the important Cygnus configure options, so we can diagnose typos.
936
81ecdfbb
RW
937 case $ac_dashdash$ac_option in
938 --)
939 ac_dashdash=yes ;;
a0da8069
NN
940
941 -bindir | --bindir | --bindi | --bind | --bin | --bi)
942 ac_prev=bindir ;;
943 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 944 bindir=$ac_optarg ;;
a0da8069
NN
945
946 -build | --build | --buil | --bui | --bu)
c6b750e1 947 ac_prev=build_alias ;;
a0da8069 948 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 949 build_alias=$ac_optarg ;;
a0da8069
NN
950
951 -cache-file | --cache-file | --cache-fil | --cache-fi \
952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953 ac_prev=cache_file ;;
954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
956 cache_file=$ac_optarg ;;
957
958 --config-cache | -C)
959 cache_file=config.cache ;;
a0da8069 960
81ecdfbb 961 -datadir | --datadir | --datadi | --datad)
a0da8069 962 ac_prev=datadir ;;
81ecdfbb 963 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 964 datadir=$ac_optarg ;;
a0da8069 965
81ecdfbb
RW
966 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967 | --dataroo | --dataro | --datar)
968 ac_prev=datarootdir ;;
969 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971 datarootdir=$ac_optarg ;;
972
a0da8069 973 -disable-* | --disable-*)
81ecdfbb 974 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 975 # Reject names that are not valid shell variable names.
81ecdfbb
RW
976 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977 as_fn_error "invalid feature name: $ac_useropt"
978 ac_useropt_orig=$ac_useropt
979 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980 case $ac_user_opts in
981 *"
982"enable_$ac_useropt"
983"*) ;;
984 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985 ac_unrecognized_sep=', ';;
986 esac
987 eval enable_$ac_useropt=no ;;
988
989 -docdir | --docdir | --docdi | --doc | --do)
990 ac_prev=docdir ;;
991 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 docdir=$ac_optarg ;;
993
994 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995 ac_prev=dvidir ;;
996 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 dvidir=$ac_optarg ;;
a0da8069
NN
998
999 -enable-* | --enable-*)
81ecdfbb 1000 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 1001 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1002 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003 as_fn_error "invalid feature name: $ac_useropt"
1004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"enable_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
a0da8069 1012 esac
81ecdfbb 1013 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1014
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
c6b750e1 1022 exec_prefix=$ac_optarg ;;
a0da8069
NN
1023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
c6b750e1
DJ
1028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
a0da8069
NN
1034
1035 -host | --host | --hos | --ho)
c6b750e1 1036 ac_prev=host_alias ;;
a0da8069 1037 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1038 host_alias=$ac_optarg ;;
a0da8069 1039
81ecdfbb
RW
1040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045
a0da8069
NN
1046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1051 includedir=$ac_optarg ;;
a0da8069
NN
1052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1056 infodir=$ac_optarg ;;
a0da8069
NN
1057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1061 libdir=$ac_optarg ;;
a0da8069
NN
1062
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1068 libexecdir=$ac_optarg ;;
a0da8069 1069
81ecdfbb
RW
1070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
a0da8069 1075 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1076 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1080 localstatedir=$ac_optarg ;;
a0da8069
NN
1081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1085 mandir=$ac_optarg ;;
a0da8069
NN
1086
1087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1092 | --no-cr | --no-c | -n)
a0da8069
NN
1093 no_create=yes ;;
1094
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098
1099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1106 oldincludedir=$ac_optarg ;;
a0da8069
NN
1107
1108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1111 prefix=$ac_optarg ;;
a0da8069
NN
1112
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1118 program_prefix=$ac_optarg ;;
a0da8069
NN
1119
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1125 program_suffix=$ac_optarg ;;
a0da8069
NN
1126
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1142 program_transform_name=$ac_optarg ;;
a0da8069 1143
81ecdfbb
RW
1144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153
a0da8069
NN
1154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157
1158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
c6b750e1 1162 sbindir=$ac_optarg ;;
a0da8069
NN
1163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
c6b750e1 1173 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1174
1175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
c6b750e1 1178 site=$ac_optarg ;;
a0da8069
NN
1179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1183 srcdir=$ac_optarg ;;
a0da8069
NN
1184
1185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1190 sysconfdir=$ac_optarg ;;
a0da8069
NN
1191
1192 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1193 ac_prev=target_alias ;;
a0da8069 1194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1195 target_alias=$ac_optarg ;;
a0da8069
NN
1196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
c6b750e1
DJ
1200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
a0da8069
NN
1202
1203 -with-* | --with-*)
81ecdfbb 1204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1205 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 as_fn_error "invalid package name: $ac_useropt"
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1211 *"
1212"with_$ac_useropt"
1213"*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
a0da8069 1216 esac
81ecdfbb 1217 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1218
1219 -without-* | --without-*)
81ecdfbb 1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1221 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid package name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
a0da8069
NN
1234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1244 x_includes=$ac_optarg ;;
a0da8069
NN
1245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1251 x_libraries=$ac_optarg ;;
a0da8069 1252
81ecdfbb
RW
1253 -*) as_fn_error "unrecognized option: \`$ac_option'
1254Try \`$0 --help' for more information."
a0da8069
NN
1255 ;;
1256
c6b750e1
DJ
1257 *=*)
1258 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1260 case $ac_envvar in #(
1261 '' | [0-9]* | *[!_$as_cr_alnum]* )
1262 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1263 esac
1264 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1265 export $ac_envvar ;;
1266
a0da8069 1267 *)
c6b750e1 1268 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
c6b750e1 1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1280 as_fn_error "missing argument to $ac_option"
a0da8069 1281fi
a0da8069 1282
81ecdfbb
RW
1283if test -n "$ac_unrecognized_opts"; then
1284 case $enable_option_checking in
1285 no) ;;
1286 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1287 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1288 esac
81ecdfbb 1289fi
a0da8069 1290
81ecdfbb
RW
1291# Check all directory arguments for consistency.
1292for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
a0da8069 1296do
81ecdfbb
RW
1297 eval ac_val=\$$ac_var
1298 # Remove trailing slashes.
1299 case $ac_val in
1300 */ )
1301 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302 eval $ac_var=\$ac_val;;
1303 esac
1304 # Be sure to have absolute directory names.
c6b750e1 1305 case $ac_val in
81ecdfbb
RW
1306 [\\/$]* | ?:[\\/]* ) continue;;
1307 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1308 esac
81ecdfbb 1309 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1310done
1311
c6b750e1
DJ
1312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
376a0e54 1318
c6b750e1
DJ
1319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
81ecdfbb 1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
a0da8069 1334
a0da8069 1335
81ecdfbb
RW
1336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 as_fn_error "working directory cannot be determined"
1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341 as_fn_error "pwd does not report name of working directory"
1342
1343
a0da8069
NN
1344# Find the source files, if location was not specified.
1345if test -z "$srcdir"; then
1346 ac_srcdir_defaulted=yes
81ecdfbb
RW
1347 # Try the directory containing this script, then the parent directory.
1348 ac_confdir=`$as_dirname -- "$as_myself" ||
1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350 X"$as_myself" : 'X\(//\)[^/]' \| \
1351 X"$as_myself" : 'X\(//\)$' \| \
1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353$as_echo X"$as_myself" |
1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)[^/].*/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)$/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\).*/{
1367 s//\1/
1368 q
1369 }
1370 s/.*/./; q'`
a0da8069 1371 srcdir=$ac_confdir
81ecdfbb 1372 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1373 srcdir=..
1374 fi
1375else
1376 ac_srcdir_defaulted=no
1377fi
81ecdfbb
RW
1378if test ! -r "$srcdir/$ac_unique_file"; then
1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1385 pwd)`
1386# When building in place, set srcdir=.
1387if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389fi
1390# Remove unnecessary trailing slashes from srcdir.
1391# Double slashes in file names in object file debugging info
1392# mess up M-x gdb in Emacs.
1393case $srcdir in
1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395esac
6d0cd39e
AM
1396case $srcdir in
1397 *" "*)
1398 as_fn_error "path to source, $srcdir, contains spaces"
1399 ;;
1400esac
9cc8ae67
PB
1401ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1402
81ecdfbb
RW
1403for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408done
c6b750e1
DJ
1409
1410#
1411# Report the --help message.
1412#
1413if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417\`configure' configures this package to adapt to many kinds of systems.
1418
1419Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
1425
1426Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
c6b750e1
DJ
1437Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1439 [$ac_default_prefix]
c6b750e1 1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1441 [PREFIX]
c6b750e1
DJ
1442
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
1447
1448For better control, use the options below.
1449
1450Fine tuning of the installation directories:
81ecdfbb
RW
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1470_ACEOF
1471
1472 cat <<\_ACEOF
1473
1474Program names:
1475 --program-prefix=PREFIX prepend PREFIX to installed program names
1476 --program-suffix=SUFFIX append SUFFIX to installed program names
1477 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1478
1479System types:
1480 --build=BUILD configure for building on BUILD [guessed]
1481 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1482 --target=TARGET configure for building compilers for TARGET [HOST]
1483_ACEOF
a0da8069 1484fi
a0da8069 1485
c6b750e1
DJ
1486if test -n "$ac_init_help"; then
1487
1488 cat <<\_ACEOF
1489
1490Optional Features:
81ecdfbb 1491 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
e6de499b 1494 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
521ec477
DD
1495 --enable-libada build libada directory
1496 --enable-libssp build libssp directory
e8a5fa9c 1497 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f
JM
1498 --disable-ppl-version-check disable check for PPL version
1499 --disable-cloog-version-check disable check for CLooG version
700d40ca 1500 --enable-lto enable link time optimization support
521ec477 1501 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1502 stage1. Mostly useful for compiler development.
521ec477
DD
1503 --enable-objc-gc enable use of Boehm's garbage collector with the
1504 GNU Objective-C runtime
1505 --enable-bootstrap enable bootstrapping [yes if native build]
1506 --enable-serial-[{host,target,build}-]configure
1507 force sequential configuration of
c6b750e1 1508 sub-packages for the host, target or build
521ec477 1509 machine, or all sub-packages
c6b750e1
DJ
1510 --enable-maintainer-mode enable make rules and dependencies not useful
1511 (and sometimes confusing) to the casual installer
521ec477
DD
1512 --enable-stage1-checking[=all] choose additional checking for stage1
1513 of the compiler
c6b750e1
DJ
1514 --enable-werror enable -Werror in bootstrap stage2 and later
1515
1516Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1520 --with-mpc=PATH specify prefix directory for installed MPC package.
1521 Equivalent to --with-mpc-include=PATH/include
1522 plus --with-mpc-lib=PATH/lib
1523 --with-mpc-include=PATH
1524 specify directory for installed MPC include files
1525 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1526 --with-mpfr-dir=PATH this option has been REMOVED
1527 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1528 Equivalent to --with-mpfr-include=PATH/include
1529 plus --with-mpfr-lib=PATH/lib
1530 --with-mpfr-include=PATH
521ec477
DD
1531 specify directory for installed MPFR include files
1532 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1533 --with-gmp-dir=PATH this option has been REMOVED
1534 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1535 Equivalent to --with-gmp-include=PATH/include
1536 plus --with-gmp-lib=PATH/lib
521ec477
DD
1537 --with-gmp-include=PATH specify directory for installed GMP include files
1538 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1539 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1540 when linking with PPL
e8a5fa9c
RW
1541 --with-stage1-ldflags=FLAGS Linker flags for stage1
1542 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1543 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1544 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
1545 --with-ppl=PATH Specify prefix directory for the installed PPL package
1546 Equivalent to --with-ppl-include=PATH/include
1547 plus --with-ppl-lib=PATH/lib
1548 --with-ppl-include=PATH Specify directory for installed PPL include files
1549 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1550 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1551 Equivalent to --with-cloog-include=PATH/include
1552 plus --with-cloog-lib=PATH/lib
1553 --with-cloog-include=PATH Specify directory for installed CLooG include files
1554 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
700d40ca
ILT
1555 --with-libelf=PATH Specify prefix directory for the installed libelf package
1556 Equivalent to --with-libelf-include=PATH/include
1557 plus --with-libelf-lib=PATH/lib
1558 --with-libelf-include=PATH Specify directory for installed libelf include files
1559 --with-libelf-lib=PATH Specify the directory for the installed libelf library
521ec477 1560 --with-build-sysroot=SYSROOT
c6b750e1 1561 use sysroot as the system root during the build
8a6ee3ab
JM
1562 --with-debug-prefix-map='A=B C=D ...'
1563 map A to B, C to D ... in debug information
96655cc4
AO
1564--with-build-config='NAME NAME2...'
1565 Use config/NAME.mk build configuration
521ec477 1566 --with-build-time-tools=PATH
c6b750e1 1567 use given path to find target tools during the build
c6b750e1
DJ
1568
1569Some influential environment variables:
1570 CC C compiler command
1571 CFLAGS C compiler flags
1572 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1573 nonstandard directory <lib dir>
81ecdfbb
RW
1574 LIBS libraries to pass to the linker, e.g. -l<library>
1575 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1576 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1577 CXX C++ compiler command
1578 CXXFLAGS C++ compiler flags
700d40ca 1579 CPP C preprocessor
4074d5f2
RW
1580 build_configargs
1581 additional configure arguments for build directories
1582 host_configargs
1583 additional configure arguments for host directories
1584 target_configargs
1585 additional configure arguments for target directories
9a819804
AO
1586 AR AR for the host
1587 AS AS for the host
1588 DLLTOOL DLLTOOL for the host
1589 LD LD for the host
1590 LIPO LIPO for the host
1591 NM NM for the host
1592 RANLIB RANLIB for the host
1593 STRIP STRIP for the host
1594 WINDRES WINDRES for the host
0c24b341 1595 WINDMC WINDMC for the host
9a819804
AO
1596 OBJCOPY OBJCOPY for the host
1597 OBJDUMP OBJDUMP for the host
1598 CC_FOR_TARGET
1599 CC for the target
1600 CXX_FOR_TARGET
1601 CXX for the target
1602 GCC_FOR_TARGET
1603 GCC for the target
1604 GCJ_FOR_TARGET
1605 GCJ for the target
1606 GFORTRAN_FOR_TARGET
1607 GFORTRAN for the target
1608 AR_FOR_TARGET
1609 AR for the target
1610 AS_FOR_TARGET
1611 AS for the target
1612 DLLTOOL_FOR_TARGET
1613 DLLTOOL for the target
1614 LD_FOR_TARGET
1615 LD for the target
1616 LIPO_FOR_TARGET
1617 LIPO for the target
1618 NM_FOR_TARGET
1619 NM for the target
1620 OBJDUMP_FOR_TARGET
1621 OBJDUMP for the target
1622 RANLIB_FOR_TARGET
1623 RANLIB for the target
1624 STRIP_FOR_TARGET
1625 STRIP for the target
1626 WINDRES_FOR_TARGET
1627 WINDRES for the target
0c24b341
NC
1628 WINDMC_FOR_TARGET
1629 WINDMC for the target
c6b750e1
DJ
1630
1631Use these variables to override the choices made by `configure' or to help
1632it to find libraries and programs with nonstandard names/locations.
1633
81ecdfbb 1634Report bugs to the package provider.
c6b750e1 1635_ACEOF
81ecdfbb 1636ac_status=$?
c6b750e1
DJ
1637fi
1638
1639if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
c6b750e1 1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1644 continue
c6b750e1
DJ
1645 ac_builddir=.
1646
81ecdfbb
RW
1647case "$ac_dir" in
1648.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649*)
1650 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1656 esac ;;
1657esac
1658ac_abs_top_builddir=$ac_pwd
1659ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660# for backward compatibility:
1661ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1662
1663case $srcdir in
81ecdfbb 1664 .) # We are building in place.
c6b750e1 1665 ac_srcdir=.
81ecdfbb
RW
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1669 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1672 *) # Relative name.
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1676esac
81ecdfbb
RW
1677ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1678
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1682 echo &&
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1685 echo &&
1686 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1687 else
81ecdfbb
RW
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1689 fi || ac_status=$?
1690 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1691 done
1692fi
1693
81ecdfbb 1694test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1695if $ac_init_version; then
1696 cat <<\_ACEOF
81ecdfbb
RW
1697configure
1698generated by GNU Autoconf 2.64
c6b750e1 1699
81ecdfbb 1700Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1701This configure script is free software; the Free Software Foundation
1702gives unlimited permission to copy, distribute and modify it.
1703_ACEOF
81ecdfbb 1704 exit
c6b750e1 1705fi
81ecdfbb
RW
1706
1707## ------------------------ ##
1708## Autoconf initialization. ##
1709## ------------------------ ##
1710
1711# ac_fn_c_try_compile LINENO
1712# --------------------------
1713# Try to compile conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_compile ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.$ac_objext; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: failed program was:" >&5
1740sed 's/^/| /' conftest.$ac_ext >&5
1741
1742 ac_retval=1
1743fi
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1745 return $ac_retval
1746
1747} # ac_fn_c_try_compile
1748
1749# ac_fn_cxx_try_compile LINENO
1750# ----------------------------
1751# Try to compile conftest.$ac_ext, and return whether this succeeded.
1752ac_fn_cxx_try_compile ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 rm -f conftest.$ac_objext
1756 if { { ac_try="$ac_compile"
1757case "(($ac_try" in
1758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1760esac
1761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762$as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_compile") 2>conftest.err
1764 ac_status=$?
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1769 fi
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_cxx_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest.$ac_objext; then :
1775 ac_retval=0
1776else
1777 $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1
1781fi
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 return $ac_retval
1784
1785} # ac_fn_cxx_try_compile
1786
1787# ac_fn_c_try_link LINENO
1788# -----------------------
1789# Try to link conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_link ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1795case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798esac
1799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800$as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1802 ac_status=$?
1803 if test -s conftest.err; then
1804 grep -v '^ *+' conftest.err >conftest.er1
1805 cat conftest.er1 >&5
1806 mv -f conftest.er1 conftest.err
1807 fi
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest$ac_exeext
1815 }; then :
1816 ac_retval=0
1817else
1818 $as_echo "$as_me: failed program was:" >&5
1819sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822fi
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829 return $ac_retval
1830
1831} # ac_fn_c_try_link
700d40ca
ILT
1832
1833# ac_fn_c_try_cpp LINENO
1834# ----------------------
1835# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1836ac_fn_c_try_cpp ()
1837{
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 if { { ac_try="$ac_cpp conftest.$ac_ext"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } >/dev/null && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 }; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 return $ac_retval
1867
1868} # ac_fn_c_try_cpp
1869
1870# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871# -------------------------------------------------------
1872# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873# the include files in INCLUDES and setting the cache variable VAR
1874# accordingly.
1875ac_fn_c_check_header_mongrel ()
1876{
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880$as_echo_n "checking for $2... " >&6; }
1881if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 $as_echo_n "(cached) " >&6
1883fi
1884eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886$as_echo "$ac_res" >&6; }
1887else
1888 # Is the header compilable?
1889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890$as_echo_n "checking $2 usability... " >&6; }
1891cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892/* end confdefs.h. */
1893$4
1894#include <$2>
1895_ACEOF
1896if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_header_compiler=yes
1898else
1899 ac_header_compiler=no
1900fi
1901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903$as_echo "$ac_header_compiler" >&6; }
1904
1905# Is the header present?
1906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907$as_echo_n "checking $2 presence... " >&6; }
1908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910#include <$2>
1911_ACEOF
1912if ac_fn_c_try_cpp "$LINENO"; then :
1913 ac_header_preproc=yes
1914else
1915 ac_header_preproc=no
1916fi
1917rm -f conftest.err conftest.$ac_ext
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919$as_echo "$ac_header_preproc" >&6; }
1920
1921# So? What about this header?
1922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1923 yes:no: )
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 ;;
1929 no:yes:* )
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1933$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1937$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ;;
1941esac
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943$as_echo_n "checking for $2... " >&6; }
1944if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1945 $as_echo_n "(cached) " >&6
1946else
1947 eval "$3=\$ac_header_compiler"
1948fi
1949eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951$as_echo "$ac_res" >&6; }
1952fi
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954
1955} # ac_fn_c_check_header_mongrel
1956
1957# ac_fn_c_try_run LINENO
1958# ----------------------
1959# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1960# that executables *can* be run.
1961ac_fn_c_try_run ()
1962{
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 if { { ac_try="$ac_link"
1965case "(($ac_try" in
1966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1967 *) ac_try_echo=$ac_try;;
1968esac
1969eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1970$as_echo "$ac_try_echo"; } >&5
1971 (eval "$ac_link") 2>&5
1972 ac_status=$?
1973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1974 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1975 { { case "(($ac_try" in
1976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1977 *) ac_try_echo=$ac_try;;
1978esac
1979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1980$as_echo "$ac_try_echo"; } >&5
1981 (eval "$ac_try") 2>&5
1982 ac_status=$?
1983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1984 test $ac_status = 0; }; }; then :
1985 ac_retval=0
1986else
1987 $as_echo "$as_me: program exited with status $ac_status" >&5
1988 $as_echo "$as_me: failed program was:" >&5
1989sed 's/^/| /' conftest.$ac_ext >&5
1990
1991 ac_retval=$ac_status
1992fi
1993 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1994 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1995 return $ac_retval
1996
1997} # ac_fn_c_try_run
1998
1999# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2000# -------------------------------------------------------
2001# Tests whether HEADER exists and can be compiled using the include files in
2002# INCLUDES, setting the cache variable VAR accordingly.
2003ac_fn_c_check_header_compile ()
2004{
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009 $as_echo_n "(cached) " >&6
2010else
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$4
2014#include <$2>
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017 eval "$3=yes"
2018else
2019 eval "$3=no"
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022fi
2023eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025$as_echo "$ac_res" >&6; }
2026 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2027
2028} # ac_fn_c_check_header_compile
81ecdfbb 2029cat >config.log <<_ACEOF
c6b750e1
DJ
2030This file contains any messages produced by compilers while
2031running configure, to aid debugging if configure makes a mistake.
2032
2033It was created by $as_me, which was
81ecdfbb 2034generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
2035
2036 $ $0 $@
2037
2038_ACEOF
81ecdfbb 2039exec 5>>config.log
c6b750e1
DJ
2040{
2041cat <<_ASUNAME
2042## --------- ##
2043## Platform. ##
2044## --------- ##
2045
2046hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051
2052/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2054
2055/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2056/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2057/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2058/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
2059/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2060/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2061/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2062
2063_ASUNAME
2064
2065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066for as_dir in $PATH
2067do
2068 IFS=$as_save_IFS
2069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2070 $as_echo "PATH: $as_dir"
2071 done
2072IFS=$as_save_IFS
c6b750e1
DJ
2073
2074} >&5
2075
2076cat >&5 <<_ACEOF
2077
2078
2079## ----------- ##
2080## Core tests. ##
2081## ----------- ##
2082
2083_ACEOF
2084
2085
2086# Keep a trace of the command line.
2087# Strip out --no-create and --no-recursion so they do not pile up.
2088# Strip out --silent because we don't want to record it for future runs.
2089# Also quote any args containing shell meta-characters.
2090# Make two passes to allow for proper duplicate-argument suppression.
2091ac_configure_args=
2092ac_configure_args0=
2093ac_configure_args1=
c6b750e1
DJ
2094ac_must_keep_next=false
2095for ac_pass in 1 2
2096do
2097 for ac_arg
2098 do
2099 case $ac_arg in
2100 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102 | -silent | --silent | --silen | --sile | --sil)
2103 continue ;;
81ecdfbb
RW
2104 *\'*)
2105 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2106 esac
2107 case $ac_pass in
81ecdfbb 2108 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 2109 2)
81ecdfbb 2110 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
2111 if test $ac_must_keep_next = true; then
2112 ac_must_keep_next=false # Got value, back to normal.
2113 else
2114 case $ac_arg in
2115 *=* | --config-cache | -C | -disable-* | --disable-* \
2116 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118 | -with-* | --with-* | -without-* | --without-* | --x)
2119 case "$ac_configure_args0 " in
2120 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121 esac
2122 ;;
2123 -* ) ac_must_keep_next=true ;;
2124 esac
2125 fi
81ecdfbb 2126 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2127 ;;
2128 esac
2129 done
2130done
81ecdfbb
RW
2131{ ac_configure_args0=; unset ac_configure_args0;}
2132{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2133
2134# When interrupted or exit'd, cleanup temporary files, and complete
2135# config.log. We remove comments because anyway the quotes in there
2136# would cause problems or look ugly.
81ecdfbb
RW
2137# WARNING: Use '\'' to represent an apostrophe within the trap.
2138# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2139trap 'exit_status=$?
2140 # Save into config.log some information that might help in debugging.
2141 {
2142 echo
2143
2144 cat <<\_ASBOX
2145## ---------------- ##
2146## Cache variables. ##
2147## ---------------- ##
2148_ASBOX
2149 echo
2150 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2151(
2152 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153 eval ac_val=\$$ac_var
2154 case $ac_val in #(
2155 *${as_nl}*)
2156 case $ac_var in #(
2157 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2158$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2159 esac
2160 case $ac_var in #(
2161 _ | IFS | as_nl) ;; #(
2162 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2163 *) { eval $ac_var=; unset $ac_var;} ;;
2164 esac ;;
2165 esac
2166 done
c6b750e1 2167 (set) 2>&1 |
81ecdfbb
RW
2168 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2169 *${as_nl}ac_space=\ *)
c6b750e1 2170 sed -n \
81ecdfbb
RW
2171 "s/'\''/'\''\\\\'\'''\''/g;
2172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2173 ;; #(
c6b750e1 2174 *)
81ecdfbb 2175 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2176 ;;
81ecdfbb
RW
2177 esac |
2178 sort
2179)
c6b750e1
DJ
2180 echo
2181
2182 cat <<\_ASBOX
2183## ----------------- ##
2184## Output variables. ##
2185## ----------------- ##
2186_ASBOX
2187 echo
2188 for ac_var in $ac_subst_vars
2189 do
81ecdfbb
RW
2190 eval ac_val=\$$ac_var
2191 case $ac_val in
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 esac
2194 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2195 done | sort
2196 echo
2197
2198 if test -n "$ac_subst_files"; then
2199 cat <<\_ASBOX
81ecdfbb
RW
2200## ------------------- ##
2201## File substitutions. ##
2202## ------------------- ##
c6b750e1
DJ
2203_ASBOX
2204 echo
2205 for ac_var in $ac_subst_files
2206 do
81ecdfbb
RW
2207 eval ac_val=\$$ac_var
2208 case $ac_val in
2209 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2210 esac
2211 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2212 done | sort
2213 echo
2214 fi
2215
2216 if test -s confdefs.h; then
2217 cat <<\_ASBOX
2218## ----------- ##
2219## confdefs.h. ##
2220## ----------- ##
2221_ASBOX
2222 echo
81ecdfbb 2223 cat confdefs.h
c6b750e1
DJ
2224 echo
2225 fi
2226 test "$ac_signal" != 0 &&
81ecdfbb
RW
2227 $as_echo "$as_me: caught signal $ac_signal"
2228 $as_echo "$as_me: exit $exit_status"
c6b750e1 2229 } >&5
81ecdfbb
RW
2230 rm -f core *.core core.conftest.* &&
2231 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2232 exit $exit_status
81ecdfbb 2233' 0
c6b750e1 2234for ac_signal in 1 2 13 15; do
81ecdfbb 2235 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2236done
2237ac_signal=0
2238
2239# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2240rm -f -r conftest* confdefs.h
2241
2242$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2243
2244# Predefined preprocessor variables.
2245
2246cat >>confdefs.h <<_ACEOF
2247#define PACKAGE_NAME "$PACKAGE_NAME"
2248_ACEOF
2249
c6b750e1
DJ
2250cat >>confdefs.h <<_ACEOF
2251#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252_ACEOF
2253
c6b750e1
DJ
2254cat >>confdefs.h <<_ACEOF
2255#define PACKAGE_VERSION "$PACKAGE_VERSION"
2256_ACEOF
2257
c6b750e1
DJ
2258cat >>confdefs.h <<_ACEOF
2259#define PACKAGE_STRING "$PACKAGE_STRING"
2260_ACEOF
2261
c6b750e1
DJ
2262cat >>confdefs.h <<_ACEOF
2263#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264_ACEOF
2265
81ecdfbb
RW
2266cat >>confdefs.h <<_ACEOF
2267#define PACKAGE_URL "$PACKAGE_URL"
2268_ACEOF
2269
c6b750e1
DJ
2270
2271# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2272# Prefer an explicitly selected file to automatically selected ones.
2273ac_site_file1=NONE
2274ac_site_file2=NONE
2275if test -n "$CONFIG_SITE"; then
2276 ac_site_file1=$CONFIG_SITE
2277elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2280else
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2283fi
81ecdfbb
RW
2284for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2285do
2286 test "x$ac_site_file" = xNONE && continue
a0da8069 2287 if test -r "$ac_site_file"; then
81ecdfbb
RW
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2290 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2291 . "$ac_site_file"
2292 fi
2293done
2294
2295if test -r "$cache_file"; then
c6b750e1
DJ
2296 # Some versions of bash will fail to source /dev/null (special
2297 # files actually), so we avoid doing that.
2298 if test -f "$cache_file"; then
81ecdfbb
RW
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2300$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2301 case $cache_file in
81ecdfbb
RW
2302 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2303 *) . "./$cache_file";;
c6b750e1
DJ
2304 esac
2305 fi
a0da8069 2306else
81ecdfbb
RW
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2308$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2309 >$cache_file
2310fi
2311
2312# Check that the precious variables saved in the cache have kept the same
2313# value.
2314ac_cache_corrupted=false
81ecdfbb 2315for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2316 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2317 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2318 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2319 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2320 case $ac_old_set,$ac_new_set in
2321 set,)
81ecdfbb
RW
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2323$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2324 ac_cache_corrupted=: ;;
2325 ,set)
81ecdfbb
RW
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2327$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2328 ac_cache_corrupted=: ;;
2329 ,);;
2330 *)
2331 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2332 # differences in whitespace do not lead to failure.
2333 ac_old_val_w=`echo x $ac_old_val`
2334 ac_new_val_w=`echo x $ac_new_val`
2335 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2337$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2338 ac_cache_corrupted=:
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2341$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2342 eval $ac_var=\$ac_old_val
2343 fi
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2345$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2347$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2348 fi;;
2349 esac
2350 # Pass precious variables to config.status.
2351 if test "$ac_new_set" = set; then
2352 case $ac_new_val in
81ecdfbb 2353 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2354 *) ac_arg=$ac_var=$ac_new_val ;;
2355 esac
2356 case " $ac_configure_args " in
2357 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2358 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2359 esac
2360 fi
2361done
2362if $ac_cache_corrupted; then
81ecdfbb
RW
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2366$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2367 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2368fi
81ecdfbb
RW
2369## -------------------- ##
2370## Main body of script. ##
2371## -------------------- ##
a0da8069
NN
2372
2373ac_ext=c
a0da8069 2374ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2377ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378
2379
2380
2381
c6b750e1
DJ
2382
2383
34a0f3cf 2384
c6b750e1 2385
5b553f7e
RW
2386
2387progname=$0
2388# if PWD already has a value, it is probably wrong.
2389if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2390
2391# Export original configure arguments for use by sub-configures.
2392# Quote arguments with shell meta charatcers.
2393TOPLEVEL_CONFIGURE_ARGUMENTS=
2394set -- "$progname" "$@"
2395for ac_arg
2396do
2397 case "$ac_arg" in
2398 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2399 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2400 # if the argument is of the form -foo=baz, quote the baz part only
2401 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2402 *) ;;
2403 esac
2404 # Add the quoted argument to the list.
2405 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2406done
2407if test "$silent" = yes; then
2408 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2409fi
2410# Remove the initial space we just introduced and, as these will be
2411# expanded by make, quote '$'.
2412TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2413
c6b750e1
DJ
2414
2415# Find the build, host, and target systems.
a0da8069 2416ac_aux_dir=
81ecdfbb
RW
2417for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2418 for ac_t in install-sh install.sh shtool; do
2419 if test -f "$ac_dir/$ac_t"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/$ac_t -c"
2422 break 2
2423 fi
2424 done
a0da8069
NN
2425done
2426if test -z "$ac_aux_dir"; then
81ecdfbb 2427 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2428fi
81ecdfbb
RW
2429
2430# These three variables are undocumented and unsupported,
2431# and are intended to be withdrawn in a future Autoconf release.
2432# They can cause serious problems if a builder's source tree is in a directory
2433# whose full name contains unusual characters.
2434ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2435ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2436ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2437
a0da8069 2438
c6b750e1 2439# Make sure we can run config.sub.
81ecdfbb
RW
2440$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2441 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2442
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2444$as_echo_n "checking build system type... " >&6; }
2445if test "${ac_cv_build+set}" = set; then :
2446 $as_echo_n "(cached) " >&6
2447else
2448 ac_build_alias=$build_alias
2449test "x$ac_build_alias" = x &&
2450 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2451test "x$ac_build_alias" = x &&
2452 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2453ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2454 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2455
2456fi
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2458$as_echo "$ac_cv_build" >&6; }
2459case $ac_cv_build in
2460*-*-*) ;;
2461*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2462esac
c6b750e1 2463build=$ac_cv_build
81ecdfbb
RW
2464ac_save_IFS=$IFS; IFS='-'
2465set x $ac_cv_build
2466shift
2467build_cpu=$1
2468build_vendor=$2
2469shift; shift
2470# Remember, the first character of IFS is used to create $*,
2471# except with old shells:
2472build_os=$*
2473IFS=$ac_save_IFS
2474case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2475
a0da8069 2476
c6b750e1
DJ
2477 case ${build_alias} in
2478 "") build_noncanonical=${build} ;;
2479 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2480esac
2481
2482
cac3d6c4 2483
c6b750e1
DJ
2484 case ${host_alias} in
2485 "") host_noncanonical=${build_noncanonical} ;;
2486 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2487esac
2488
cac3d6c4 2489
c6b750e1
DJ
2490
2491 case ${target_alias} in
2492 "") target_noncanonical=${host_noncanonical} ;;
2493 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2494esac
2495
cac3d6c4 2496
c6b750e1
DJ
2497
2498
2499test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2500 test "$program_prefix$program_suffix$program_transform_name" = \
2501 NONENONEs,x,x, &&
c6b750e1 2502 program_transform_name=s,y,y,
cac3d6c4 2503
81ecdfbb
RW
2504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2505$as_echo_n "checking host system type... " >&6; }
2506if test "${ac_cv_host+set}" = set; then :
2507 $as_echo_n "(cached) " >&6
cac3d6c4 2508else
81ecdfbb
RW
2509 if test "x$host_alias" = x; then
2510 ac_cv_host=$ac_cv_build
2511else
2512 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2513 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2514fi
c6b750e1
DJ
2515
2516fi
81ecdfbb
RW
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2518$as_echo "$ac_cv_host" >&6; }
2519case $ac_cv_host in
2520*-*-*) ;;
2521*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2522esac
c6b750e1 2523host=$ac_cv_host
81ecdfbb
RW
2524ac_save_IFS=$IFS; IFS='-'
2525set x $ac_cv_host
2526shift
2527host_cpu=$1
2528host_vendor=$2
2529shift; shift
2530# Remember, the first character of IFS is used to create $*,
2531# except with old shells:
2532host_os=$*
2533IFS=$ac_save_IFS
2534case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2535
2536
81ecdfbb
RW
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2538$as_echo_n "checking target system type... " >&6; }
2539if test "${ac_cv_target+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
c6b750e1 2541else
81ecdfbb
RW
2542 if test "x$target_alias" = x; then
2543 ac_cv_target=$ac_cv_host
2544else
2545 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2546 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2547fi
c6b750e1 2548
cac3d6c4 2549fi
81ecdfbb
RW
2550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2551$as_echo "$ac_cv_target" >&6; }
2552case $ac_cv_target in
2553*-*-*) ;;
2554*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2555esac
c6b750e1 2556target=$ac_cv_target
81ecdfbb
RW
2557ac_save_IFS=$IFS; IFS='-'
2558set x $ac_cv_target
2559shift
2560target_cpu=$1
2561target_vendor=$2
2562shift; shift
2563# Remember, the first character of IFS is used to create $*,
2564# except with old shells:
2565target_os=$*
2566IFS=$ac_save_IFS
2567case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2568
2569
2570# The aliases save the names the user supplied, while $host etc.
2571# will get canonicalized.
2572test -n "$target_alias" &&
2573 test "$program_prefix$program_suffix$program_transform_name" = \
2574 NONENONEs,x,x, &&
2575 program_prefix=${target_alias}-
81ecdfbb 2576
a0da8069 2577test "$program_prefix" != NONE &&
81ecdfbb 2578 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2579# Use a double $ so make ignores it.
2580test "$program_suffix" != NONE &&
81ecdfbb
RW
2581 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2582# Double any \ or $.
c6b750e1 2583# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2584ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2585program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2586
a0da8069
NN
2587
2588
e5c3f801
NN
2589# Get 'install' or 'install-sh' and its variants.
2590# Find a good install program. We prefer a C program (faster),
2591# so one script is as good as another. But avoid the broken or
2592# incompatible versions:
2593# SysV /etc/install, /usr/sbin/install
2594# SunOS /usr/etc/install
2595# IRIX /sbin/install
2596# AIX /bin/install
c6b750e1 2597# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2598# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2599# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2600# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2601# OS/2's system install, which has a completely different semantic
e5c3f801 2602# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2603# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2605$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2606if test -z "$INSTALL"; then
81ecdfbb
RW
2607if test "${ac_cv_path_install+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2609else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2615 # Account for people who put trailing slashes in PATH elements.
2616case $as_dir/ in #((
2617 ./ | .// | /[cC]/* | \
c6b750e1 2618 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2619 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2620 /usr/ucb/* ) ;;
2621 *)
2622 # OSF1 and SCO ODT 3.0 have their own names for install.
2623 # Don't use installbsd from OSF since it installs stuff as root
2624 # by default.
2625 for ac_prog in ginstall scoinst install; do
2626 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2627 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2628 if test $ac_prog = install &&
c6b750e1 2629 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2630 # AIX install. It has an incompatible calling convention.
2631 :
c6b750e1
DJ
2632 elif test $ac_prog = install &&
2633 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2634 # program-specific install script used by HP pwplus--don't use.
2635 :
e5c3f801 2636 else
58c85be7
RW
2637 rm -rf conftest.one conftest.two conftest.dir
2638 echo one > conftest.one
2639 echo two > conftest.two
2640 mkdir conftest.dir
2641 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2642 test -s conftest.one && test -s conftest.two &&
2643 test -s conftest.dir/conftest.one &&
2644 test -s conftest.dir/conftest.two
2645 then
2646 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2647 break 3
2648 fi
e5c3f801
NN
2649 fi
2650 fi
2651 done
c6b750e1
DJ
2652 done
2653 ;;
2654esac
81ecdfbb
RW
2655
2656 done
2657IFS=$as_save_IFS
c6b750e1 2658
58c85be7 2659rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2660
2661fi
2662 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2663 INSTALL=$ac_cv_path_install
e5c3f801 2664 else
58c85be7
RW
2665 # As a last resort, use the slow shell script. Don't cache a
2666 # value for INSTALL within a source directory, because that will
e5c3f801 2667 # break other packages using the cache if that directory is
58c85be7 2668 # removed, or if the value is a relative name.
c6b750e1 2669 INSTALL=$ac_install_sh
e5c3f801
NN
2670 fi
2671fi
81ecdfbb
RW
2672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2673$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2674
2675# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2676# It thinks the first close brace ends the variable substitution.
2677test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2678
c6b750e1 2679test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2680
2681test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2682
81ecdfbb
RW
2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2684$as_echo_n "checking whether ln works... " >&6; }
2685if test "${acx_cv_prog_LN+set}" = set; then :
2686 $as_echo_n "(cached) " >&6
656fdd47
PB
2687else
2688 rm -f conftestdata_t
2689echo >conftestdata_f
2690if ln conftestdata_f conftestdata_t 2>/dev/null
2691then
2692 acx_cv_prog_LN=ln
2693else
2694 acx_cv_prog_LN=no
2695fi
2696rm -f conftestdata_f conftestdata_t
2697
2698fi
2699if test $acx_cv_prog_LN = no; then
2700 LN="cp"
81ecdfbb
RW
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2702$as_echo "no, using $LN" >&6; }
656fdd47
PB
2703else
2704 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2706$as_echo "yes" >&6; }
656fdd47
PB
2707fi
2708
81ecdfbb
RW
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2710$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2711LN_S=$as_ln_s
2712if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2714$as_echo "yes" >&6; }
cac3d6c4 2715else
81ecdfbb
RW
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2717$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2718fi
2719
8e957354
PB
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2721$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2722if test "${ac_cv_path_SED+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2724else
2725 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2726 for ac_i in 1 2 3 4 5 6 7; do
2727 ac_script="$ac_script$as_nl$ac_script"
2728 done
2729 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2730 { ac_script=; unset ac_script;}
2731 if test -z "$SED"; then
2732 ac_path_SED_found=false
2733 # Loop through the user's path and test for each of PROGNAME-LIST
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_prog in sed gsed; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2742 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2743# Check for GNU ac_path_SED and select it if it is found.
2744 # Check for GNU $ac_path_SED
2745case `"$ac_path_SED" --version 2>&1` in
2746*GNU*)
2747 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2748*)
2749 ac_count=0
2750 $as_echo_n 0123456789 >"conftest.in"
2751 while :
2752 do
2753 cat "conftest.in" "conftest.in" >"conftest.tmp"
2754 mv "conftest.tmp" "conftest.in"
2755 cp "conftest.in" "conftest.nl"
2756 $as_echo '' >> "conftest.nl"
2757 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2759 as_fn_arith $ac_count + 1 && ac_count=$as_val
2760 if test $ac_count -gt ${ac_path_SED_max-0}; then
2761 # Best one so far, save it but keep looking for a better one
2762 ac_cv_path_SED="$ac_path_SED"
2763 ac_path_SED_max=$ac_count
2764 fi
2765 # 10*(2^10) chars as input seems more than enough
2766 test $ac_count -gt 10 && break
2767 done
2768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2769esac
2770
2771 $ac_path_SED_found && break 3
2772 done
2773 done
2774 done
2775IFS=$as_save_IFS
2776 if test -z "$ac_cv_path_SED"; then
2777 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2778 fi
2779else
2780 ac_cv_path_SED=$SED
2781fi
2782
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2785$as_echo "$ac_cv_path_SED" >&6; }
2786 SED="$ac_cv_path_SED"
2787 rm -f conftest.sed
2788
2789for ac_prog in gawk mawk nawk awk
2790do
2791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2792set dummy $ac_prog; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if test "${ac_cv_prog_AWK+set}" = set; then :
2796 $as_echo_n "(cached) " >&6
2797else
2798 if test -n "$AWK"; then
2799 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804 IFS=$as_save_IFS
2805 test -z "$as_dir" && as_dir=.
2806 for ac_exec_ext in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_AWK="$ac_prog"
2809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 break 2
2811 fi
2812done
2813 done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818AWK=$ac_cv_prog_AWK
2819if test -n "$AWK"; then
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2821$as_echo "$AWK" >&6; }
2822else
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827
2828 test -n "$AWK" && break
2829done
2830
e5c3f801 2831
252b5132 2832### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2833### If we are on Windows, search for the shell. This will permit people
2834### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2835### without also having to set CONFIG_SHELL. This code will work when
2836### using bash, which sets OSTYPE.
2837case "${OSTYPE}" in
2838*win32*)
a0da8069
NN
2839 if test x${CONFIG_SHELL} = x ; then
2840 if test ! -f /bin/sh ; then
2841 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2842 CONFIG_SHELL=${SHELL}
2843 export CONFIG_SHELL
2844 else
2845 for prog in sh sh.exe bash bash.exe; do
2846 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2847 for dir in $PATH; do
2848 test -z "$dir" && dir=.
2849 if test -f $dir/$prog; then
2850 CONFIG_SHELL=$dir/$prog
2851 export CONFIG_SHELL
2852 break
2853 fi
2854 done
2855 IFS="$save_ifs"
2856 test -n "${CONFIG_SHELL}" && break
2857 done
2858 fi
2859 fi
2860 fi
2861 ;;
2862esac
2863
2864config_shell=${CONFIG_SHELL-/bin/sh}
2865
a0da8069 2866moveifchange=${srcdir}/move-if-change
252b5132 2867
0fdbe983
DJ
2868srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2869
2870# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2871# a relative path.
2872if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2873 INSTALL="${srcpwd}/install-sh -c"
2874fi
2875
a0da8069
NN
2876# Set srcdir to "." if that's what it is.
2877# This is important for multilib support.
2878pwd=`${PWDCMD-pwd}`
a0da8069
NN
2879if test "${pwd}" = "${srcpwd}" ; then
2880 srcdir=.
252b5132
RH
2881fi
2882
a0da8069 2883topsrcdir=$srcpwd
252b5132 2884
a0da8069 2885extra_host_args=
afefada0 2886
a0da8069
NN
2887### To add a new directory to the tree, first choose whether it is a target
2888### or a host dependent tool. Then put it into the appropriate list
2889### (library or tools, host or target), doing a dependency sort.
252b5132 2890
c6b750e1 2891# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2892# configdirs, or target_configdirs; see the serialization section below.
252b5132 2893
c6b750e1
DJ
2894# Dependency sorting is only needed when *configuration* must be done in
2895# a particular order. In all cases a dependency should be specified in
a0da8069 2896# the Makefile, whether or not it's implicitly specified here.
252b5132 2897
a0da8069
NN
2898# Double entries in build_configdirs, configdirs, or target_configdirs may
2899# cause circular dependencies and break everything horribly.
252b5132 2900
6a9cf61e
PB
2901# these library is used by various programs built for the build
2902# environment
2903#
2904build_libs="build-libiberty"
2905
2906# these tools are built for the build environment
ee025550 2907build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2908
a0da8069
NN
2909# these libraries are used by various programs built for the host environment
2910#
1f53ca9a 2911host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2912
a0da8069
NN
2913# these tools are built for the host environment
2914# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2915# know that we are building the simulator.
2916# binutils, gas and ld appear in that order because it makes sense to run
2917# "make check" in that particular order.
e6de499b 2918# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2919host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
2920
2921# libgcj represents the runtime libraries only used by gcj.
2922libgcj="target-libffi \
a0da8069
NN
2923 target-zlib \
2924 target-qthreads \
2925 target-libjava"
2926
2927# these libraries are built for the target environment, and are built after
2928# the host libraries and the host tools (which may be a cross compiler)
2929#
b1299c4e
DJ
2930target_libraries="target-libgcc \
2931 target-libiberty \
a0da8069
NN
2932 target-libgloss \
2933 target-newlib \
cff87f51 2934 target-libgomp \
b9459e83 2935 target-libstdc++-v3 \
4b1cb4fe 2936 target-libmudflap \
bb780410 2937 target-libssp \
4b1cb4fe 2938 target-libgfortran \
4f0ef2d8 2939 target-boehm-gc \
83326456 2940 ${libgcj} \
a2592b1b 2941 target-libobjc \
cff87f51 2942 target-libada"
a0da8069 2943
9c14acb8
NN
2944# these tools are built using the target libraries, and are intended to
2945# run only in the target environment
a0da8069 2946#
9c14acb8 2947# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2948# list belongs in this list. those programs are also very likely
2949# candidates for the "native_only" list which follows
2950#
a3dd767d 2951target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2952
a0da8069 2953################################################################################
252b5132 2954
a0da8069
NN
2955## All tools belong in one of the four categories, and are assigned above
2956## We assign ${configdirs} this way to remove all embedded newlines. This
2957## is important because configure will choke if they ever get through.
2958## ${configdirs} is directories we build using the host tools.
2959## ${target_configdirs} is directories we build using the target tools.
a0da8069 2960configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2961target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2962build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2963
9cc8ae67
PB
2964
2965
a0da8069 2966################################################################################
252b5132 2967
a0da8069 2968srcname="gnu development package"
252b5132 2969
a0da8069
NN
2970# This gets set non-empty for some net releases of packages.
2971appdirs=""
252b5132 2972
a0da8069
NN
2973# Define is_cross_compiler to save on calls to 'test'.
2974is_cross_compiler=
2975if test x"${host}" = x"${target}" ; then
2976 is_cross_compiler=no
252b5132 2977else
a0da8069 2978 is_cross_compiler=yes
c6b750e1 2979fi
252b5132 2980
9175bfc0 2981# Find the build and target subdir names.
dd12c3a8 2982
66a79c16
DJ
2983# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2984# have matching libraries, they should use host libraries: Makefile.tpl
2985# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2986# However, they still use the build modules, because the corresponding
2987# host modules (e.g. bison) are only built for the host when bootstrap
2988# finishes. So:
2989# - build_subdir is where we find build modules, and never changes.
2990# - build_libsubdir is where we find build libraries, and can be overridden.
2991
2992# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2993build_subdir="build-${build_noncanonical}"
c6b750e1 2994
81ecdfbb
RW
2995# Check whether --with-build-libsubdir was given.
2996if test "${with_build_libsubdir+set}" = set; then :
2997 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2998else
2999 build_libsubdir="$build_subdir"
81ecdfbb
RW
3000fi
3001
b00612cc
PB
3002# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3003if ( test $srcdir = . && test -d gcc ) \
3004 || test -d $srcdir/../host-${host_noncanonical}; then
3005 host_subdir="host-${host_noncanonical}"
3006else
3007 host_subdir=.
3008fi
dd12c3a8
NN
3009# No prefix.
3010target_subdir=${target_noncanonical}
c6b750e1 3011
2fd0b40b
RW
3012# Be sure to cover against remnants of an in-tree build.
3013if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
3014 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3015Use a pristine source tree when building in a separate tree" "$LINENO" 5
3016fi
252b5132 3017
a0da8069
NN
3018# Skipdirs are removed silently.
3019skipdirs=
3020# Noconfigdirs are removed loudly.
3021noconfigdirs=""
252b5132 3022
a0da8069
NN
3023use_gnu_ld=
3024# Make sure we don't let GNU ld be added if we didn't want it.
3025if test x$with_gnu_ld = xno ; then
3026 use_gnu_ld=no
93f9b408 3027 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
3028fi
3029
a0da8069
NN
3030use_gnu_as=
3031# Make sure we don't let GNU as be added if we didn't want it.
3032if test x$with_gnu_as = xno ; then
3033 use_gnu_as=no
3034 noconfigdirs="$noconfigdirs gas"
252b5132
RH
3035fi
3036
700d40ca
ILT
3037use_included_zlib=
3038# Make sure we don't let ZLIB be added if we didn't want it.
3039if test x$with_system_zlib = xyes ; then
3040 use_included_zlib=no
3041 noconfigdirs="$noconfigdirs zlib"
3042fi
3043
c6b750e1 3044# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 3045# it's not even worth trying to configure, much less build, that tool.
252b5132 3046
a0da8069
NN
3047case ${with_x} in
3048 yes | "") ;; # the default value for this tree is that X11 is available
3049 no)
675c6968 3050 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 3051 # We won't be able to build gdbtk without X.
c6b750e1 3052 enable_gdbtk=no
a0da8069
NN
3053 ;;
3054 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3055esac
252b5132 3056
a0da8069 3057# Some tools are only suitable for building in a "native" situation.
c6b750e1 3058# Remove these if host!=target.
701628f5 3059native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 3060
a0da8069
NN
3061# Similarly, some are only suitable for cross toolchains.
3062# Remove these if host=target.
3063cross_only="target-libgloss target-newlib target-opcodes"
3064
3065case $is_cross_compiler in
3066 no) skipdirs="${skipdirs} ${cross_only}" ;;
3067 yes) skipdirs="${skipdirs} ${native_only}" ;;
3068esac
252b5132 3069
a0da8069
NN
3070# If both --with-headers and --with-libs are specified, default to
3071# --without-newlib.
32be62b5
RS
3072if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3073 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
3074 if test x"${with_newlib}" = x ; then
3075 with_newlib=no
3076 fi
252b5132
RH
3077fi
3078
a0da8069
NN
3079# Recognize --with-newlib/--without-newlib.
3080case ${with_newlib} in
3081 no) skipdirs="${skipdirs} target-newlib" ;;
3082 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3083esac
252b5132 3084
93f9b408 3085# Handle --enable-gold.
e6de499b
NC
3086# --enable-gold Build only gold
3087# --disable-gold [default] Build only ld
3088# --enable-gold=both Build both gold and ld, ld is default
3089# --enable-gold=both/ld Same
3090# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
93f9b408 3091
81ecdfbb
RW
3092# Check whether --enable-gold was given.
3093if test "${enable_gold+set}" = set; then :
3094 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
3095else
3096 ENABLE_GOLD=no
81ecdfbb
RW
3097fi
3098
e6de499b
NC
3099 case "${ENABLE_GOLD}" in
3100 yes|both|both/gold|both/ld)
3101 # Check for ELF target.
3102 is_elf=no
3103 case "${target}" in
3104 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3105 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3106 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
3107 case "${target}" in
3108 *-*-linux*aout* | *-*-linux*oldld*)
3109 ;;
3110 *)
3111 is_elf=yes
3112 ;;
3113 esac
3114 esac
3115
3116 if test "$is_elf" = "yes"; then
3117 # Check for target supported by gold.
93f9b408 3118 case "${target}" in
e6de499b
NC
3119 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
3120 case "${ENABLE_GOLD}" in
3121 both*)
3122 configdirs="$configdirs gold"
3123 ;;
3124 *)
3cac54d2 3125 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
e6de499b
NC
3126 ;;
3127 esac
3128 ENABLE_GOLD=yes
93f9b408
ILT
3129 ;;
3130 esac
e6de499b
NC
3131 fi
3132 ;;
3133 no)
3134 ;;
3135 *)
3136 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
3137 ;;
93f9b408
ILT
3138 esac
3139
a0da8069 3140# Configure extra directories which are host specific
252b5132 3141
a0da8069
NN
3142case "${host}" in
3143 *-cygwin*)
3144 configdirs="$configdirs libtermcap" ;;
3145esac
252b5132 3146
59f7ec45
HPN
3147# A target can indicate whether a language isn't supported for some reason.
3148# Only spaces may be used in this macro; not newlines or tabs.
3149unsupported_languages=
3150
c6b750e1 3151# Remove more programs from consideration, based on the host or
a0da8069
NN
3152# target this usually means that a port of the program doesn't
3153# exist yet.
252b5132 3154
a0da8069
NN
3155case "${host}" in
3156 hppa*64*-*-*)
3157 noconfigdirs="$noconfigdirs byacc"
3158 ;;
ec11bdc6 3159 i[3456789]86-*-vsta)
675c6968 3160 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 3161 ;;
ec11bdc6 3162 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 3163 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 3164 ;;
2d1e8239
NC
3165 x86_64-*-mingw*)
3166 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3167 ;;
ec11bdc6 3168 i[3456789]86-*-mingw32*)
675c6968 3169 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 3170 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 3171 ;;
ec11bdc6 3172 i[3456789]86-*-beos*)
675c6968 3173 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 3174 ;;
a0da8069 3175 *-*-cygwin*)
a92834c8 3176 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
3177 ;;
3178 *-*-netbsd*)
a92834c8 3179 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
3180 ;;
3181 ppc*-*-pe)
675c6968 3182 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
3183 ;;
3184 powerpc-*-beos*)
675c6968 3185 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 3186 ;;
a0da8069 3187esac
252b5132 3188
4b1cb4fe 3189
81ecdfbb
RW
3190# Check whether --enable-libada was given.
3191if test "${enable_libada+set}" = set; then :
3192 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3193else
3194 ENABLE_LIBADA=yes
81ecdfbb
RW
3195fi
3196
a2592b1b 3197if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3198 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3199fi
3200
81ecdfbb
RW
3201# Check whether --enable-libssp was given.
3202if test "${enable_libssp+set}" = set; then :
3203 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3204else
3205 ENABLE_LIBSSP=yes
81ecdfbb
RW
3206fi
3207
5f128533 3208
a0da8069
NN
3209# Save it here so that, even in case of --enable-libgcj, if the Java
3210# front-end isn't enabled, we still get libgcj disabled.
3211libgcj_saved=$libgcj
3212case $enable_libgcj in
3213yes)
3214 # If we reset it here, it won't get added to noconfigdirs in the
3215 # target-specific build rules, so it will be forcibly enabled
3216 # (unless the Java language itself isn't enabled).
3217 libgcj=
3218 ;;
3219no)
3220 # Make sure we get it printed in the list of not supported target libs.
3221 noconfigdirs="$noconfigdirs ${libgcj}"
3222 ;;
3223esac
252b5132 3224
4b1cb4fe 3225
a6df5a19
PB
3226# Disable libmudflap on some systems.
3227if test x$enable_libmudflap = x ; then
3e707e94 3228 case "${target}" in
29383458 3229 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3230 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3231 ;;
3232 *-*-freebsd*)
3233 # Enable libmudflap by default in FreeBSD.
3234 ;;
3235 *)
3236 # Disable it by default everywhere else.
3237 noconfigdirs="$noconfigdirs target-libmudflap"
3238 ;;
3239 esac
a6df5a19 3240fi
4b1cb4fe 3241
a6df5a19
PB
3242# Disable libgomp on non POSIX hosted systems.
3243if test x$enable_libgomp = x ; then
b3ded179
PB
3244 # Enable libgomp by default on hosted POSIX systems.
3245 case "${target}" in
29383458 3246 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3247 ;;
3248 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3249 ;;
64ce424c 3250 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3251 ;;
3252 *-*-darwin* | *-*-aix*)
3253 ;;
3254 *)
3255 noconfigdirs="$noconfigdirs target-libgomp"
3256 ;;
3257 esac
a6df5a19 3258fi
b3ded179 3259
691bb5a1
DD
3260# Default libgloss CPU subdirectory.
3261libgloss_dir="$target_cpu"
4b1cb4fe 3262
a0da8069
NN
3263case "${target}" in
3264 *-*-chorusos)
54d1c879 3265 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3266 ;;
24741ab2 3267 powerpc-*-darwin*)
9d39db92 3268 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3269 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3270 ;;
85bd1942
TG
3271 i[3456789]86-*-darwin*)
3272 noconfigdirs="$noconfigdirs ld gprof"
3273 noconfigdirs="$noconfigdirs sim target-rda"
3274 ;;
e8a5fa9c 3275 x86_64-*-darwin[912]*)
652dec25
TG
3276 noconfigdirs="$noconfigdirs ld gas gprof"
3277 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3278 ;;
04d1ab34 3279 *-*-darwin*)
d320aacb 3280 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3281 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3282 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3283 ;;
a0da8069 3284 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3285 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3286 ;;
de0b4a87 3287 *-*-freebsd*)
4b1cb4fe
DD
3288 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3289 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3290 && test -f /usr/local/include/gmp.h; then
3291 with_gmp=/usr/local
3292 fi
3293
3294 # Skip some stuff that's unsupported on some FreeBSD configurations.
3295 case "${target}" in
3296 i*86-*-*) ;;
3297 alpha*-*-*) ;;
143754cd 3298 x86_64-*-*) ;;
4b1cb4fe 3299 *)
54d1c879 3300 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3301 ;;
3302 esac
3303 ;;
f8a495c8
NC
3304 *-*-kaos*)
3305 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3306 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3307 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3308 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3309 noconfigdirs="$noconfigdirs target-libgloss"
3310 ;;
a0da8069
NN
3311 *-*-netbsd*)
3312 # Skip some stuff on all NetBSD configurations.
3313 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3314
3315 # Skip some stuff that's unsupported on some NetBSD configurations.
3316 case "${target}" in
3317 i*86-*-netbsdelf*) ;;
5b474aa8 3318 arm*-*-netbsdelf*) ;;
a0da8069 3319 *)
54d1c879 3320 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3321 ;;
3322 esac
3323 ;;
2a3124ca 3324 *-*-netware*)
54d1c879 3325 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3326 ;;
3327 *-*-rtems*)
a009f2e7 3328 skipdirs="${skipdirs} target-libiberty"
54d1c879 3329 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3330 ;;
1587117a
EC
3331 # The tpf target doesn't support gdb yet.
3332 *-*-tpf*)
54d1c879 3333 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3334 ;;
c1968181 3335 *-*-uclinux*)
54d1c879 3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3337 ;;
a0da8069 3338 *-*-vxworks*)
54d1c879 3339 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3340 ;;
3341 alpha*-dec-osf*)
3342 # ld works, but does not support shared libraries.
3343 # newlib is not 64 bit ready. I'm not sure about fileutils.
3344 # gas doesn't generate exception information.
3345 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3346 ;;
3347 alpha*-*-*vms*)
d594eacc 3348 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3349 ;;
3350 alpha*-*-linux*)
3351 # newlib is not 64 bit ready
3352 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3353 ;;
a0da8069
NN
3354 alpha*-*-*)
3355 # newlib is not 64 bit ready
54d1c879 3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3357 ;;
4a18bd6b 3358 am33_2.0-*-linux*)
54d1c879 3359 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3360 ;;
a0da8069 3361 sh-*-linux*)
54d1c879 3362 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3363 ;;
a0da8069 3364 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3365 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3366 noconfigdirs="$noconfigdirs target-examples"
3367 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3368 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3369 noconfigdirs="$noconfigdirs expect dejagnu"
3370 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3371 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3372 noconfigdirs="$noconfigdirs target-newlib"
3373 case "${host}" in
3374 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3375 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3376 ;;
3377 esac
691bb5a1 3378 libgloss_dir=wince
a0da8069
NN
3379 ;;
3380 arc-*-*)
54d1c879 3381 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3382 ;;
caeba88f 3383 arm-semi-aof )
caeba88f 3384 ;;
a0da8069 3385 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3386 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3387 libgloss_dir=arm
a0da8069 3388 ;;
11b04d1f 3389 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3390 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3391 libgloss_dir=arm
a0da8069 3392 ;;
bd70a46f 3393 arm*-*-linux-gnueabi)
6d18b86b 3394 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3395 case ${with_newlib} in
3396 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3397 esac
691bb5a1 3398 libgloss_dir=arm
bd70a46f 3399 ;;
df4a6958 3400 arm*-*-symbianelf*)
54d1c879 3401 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3402 libgloss_dir=arm
df4a6958 3403 ;;
a0da8069 3404 arm-*-pe*)
54d1c879 3405 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3406 ;;
a0da8069 3407 thumb-*-coff)
54d1c879 3408 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3409 ;;
3410 thumb-*-elf)
54d1c879 3411 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3412 ;;
a0da8069 3413 thumb-*-pe)
54d1c879 3414 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3415 ;;
3416 arm-*-riscix*)
54d1c879 3417 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3418 ;;
3419 avr-*-*)
266df637 3420 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3421 ;;
376a0e54 3422 bfin-*-*)
df51e4e1
JZ
3423 unsupported_languages="$unsupported_languages java"
3424 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3425 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3426 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3427 fi
3428 ;;
a0da8069 3429 c4x-*-* | tic4x-*-*)
54d1c879 3430 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3431 ;;
3432 c54x*-*-* | tic54x-*-*)
54d1c879 3433 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3434 ;;
52310858
NC
3435 cr16-*-*)
3436 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3437 ;;
c7e66c6d 3438 cris-*-* | crisv32-*-*)
59f7ec45 3439 unsupported_languages="$unsupported_languages java"
c7e66c6d 3440 case "${target}" in
2faa2958 3441 *-*-aout)
096f7d00 3442 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3443 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3444 *-*-elf)
5e818318 3445 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3446 *-*-linux*)
5e818318 3447 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3448 *)
096f7d00 3449 unsupported_languages="$unsupported_languages fortran"
54d1c879 3450 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3451 esac
691bb5a1 3452 libgloss_dir=cris
a0da8069 3453 ;;
3e707e94 3454 crx-*-*)
54d1c879 3455 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3456 ;;
a0da8069 3457 d10v-*-*)
54d1c879 3458 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3459 ;;
3460 d30v-*-*)
54d1c879 3461 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3462 ;;
691bb5a1
DD
3463 ep9312-*-elf | ep9312-*-coff)
3464 libgloss_dir=arm
3465 ;;
a0da8069 3466 fr30-*-elf*)
54d1c879 3467 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3468 ;;
3469 frv-*-*)
54d1c879 3470 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3471 ;;
20135e4c
NC
3472 moxie-*-*)
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 noconfigdirs="$noconfigdirs gprof"
3475 ;;
a0da8069 3476 h8300*-*-*)
54d1c879 3477 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3478 ;;
3479 h8500-*-*)
54d1c879 3480 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3481 ;;
caeba88f 3482 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3483 ;;
a0da8069
NN
3484 hppa*64*-*-linux* | parisc*64*-*-linux*)
3485 # In this case, it's because the hppa64-linux target is for
3486 # the kernel only at this point and has no libc, and thus no
3487 # headers, crt*.o, etc., all of which are needed by these.
3488 noconfigdirs="$noconfigdirs target-zlib"
3489 ;;
5dcac624
DA
3490 parisc*-*-linux* | hppa*-*-linux*)
3491 ;;
a0da8069 3492 hppa*-*-*elf* | \
a0da8069
NN
3493 hppa*-*-lites* | \
3494 hppa*-*-openbsd* | \
3495 hppa*64*-*-*)
54d1c879 3496 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3497 ;;
3498 hppa*-hp-hpux11*)
3499 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3500 ;;
691bb5a1
DD
3501 hppa*-*-pro*)
3502 libgloss_dir=pa
3503 ;;
a0da8069
NN
3504 hppa*-*-*)
3505 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3506 # build on HP-UX 10.20.
54d1c879 3507 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3508 ;;
b07c2aad 3509 i960-*-*)
54d1c879 3510 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3511 ;;
a0da8069
NN
3512 ia64*-*-elf*)
3513 # No gdb support yet.
675c6968 3514 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3515 ;;
3516 ia64*-**-hpux*)
3517 # No gdb or ld support yet.
54d1c879 3518 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3519 ;;
19e99079
NC
3520 ia64*-*-*vms*)
3521 # No gdb or ld support yet.
3522 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3523 ;;
caeba88f 3524 i370-*-opened*)
caeba88f 3525 ;;
ec11bdc6 3526 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3527 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3528 libgloss_dir=i386
a0da8069 3529 ;;
ec11bdc6 3530 i[3456789]86-*-linux*)
a0da8069
NN
3531 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3532 # not build java stuff by default.
3533 case "${target}" in
3534 *-*-*libc1*)
54d1c879 3535 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3536 esac
3537
3538 # This section makes it possible to build newlib natively on linux.
3539 # If we are using a cross compiler then don't configure newlib.
3540 if test x${is_cross_compiler} != xno ; then
bba45b8b 3541 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3542 fi
3543 noconfigdirs="$noconfigdirs target-libgloss"
3544 # If we are not using a cross compiler, do configure newlib.
3545 # Note however, that newlib will only be configured in this situation
3546 # if the --with-newlib option has been given, because otherwise
3547 # 'target-newlib' will appear in skipdirs.
3548 ;;
1f53ca9a
AO
3549 i[3456789]86-w64-mingw*)
3550 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3551 ;;
3552 i[3456789]86-*-mingw*)
45055374
CV
3553 target_configdirs="$target_configdirs target-winsup"
3554 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3555 ;;
2d1e8239 3556 x86_64-*-mingw*)
2d1e8239 3557 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3558 ;;
a0da8069
NN
3559 *-*-cygwin*)
3560 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3561 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3562 # always build newlib if winsup directory is present.
45055374 3563 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3564 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3565 elif test -d "$srcdir/newlib"; then
45055374 3566 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3567 fi
c6b750e1 3568 ;;
caeba88f
AL
3569 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3570 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3571 ;;
ec11bdc6 3572 i[3456789]86-*-pe)
54d1c879 3573 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3574 ;;
ec11bdc6 3575 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3576 # The linker does not yet know about weak symbols in COFF,
3577 # and is not configured to handle mixed ELF and COFF.
54d1c879 3578 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3579 ;;
ec11bdc6 3580 i[3456789]86-*-sco*)
54d1c879 3581 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3582 ;;
ec11bdc6 3583 i[3456789]86-*-solaris2*)
a0da8069
NN
3584 noconfigdirs="$noconfigdirs target-libgloss"
3585 ;;
ec11bdc6 3586 i[3456789]86-*-sysv4*)
54d1c879 3587 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3588 ;;
ec11bdc6 3589 i[3456789]86-*-beos*)
54d1c879 3590 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3591 ;;
b59bea8a 3592 i[3456789]86-*-rdos*)
2429c060
PB
3593 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3594 ;;
b07c2aad 3595 m32r-*-*)
54d1c879 3596 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3597 ;;
a0da8069 3598 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3599 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3600 libgloss_dir=m68hc11
a0da8069
NN
3601 ;;
3602 m68k-*-elf*)
54d1c879 3603 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3604 ;;
3605 m68k-*-coff*)
54d1c879 3606 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3607 ;;
691bb5a1
DD
3608 m68*-*-* | fido-*-*)
3609 libgloss_dir=m68k
3610 ;;
a0da8069
NN
3611 mcore-*-pe*)
3612 # The EPOC C++ environment does not support exceptions or rtti,
3613 # and so building libstdc++-v3 tends not to always work.
3614 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3615 ;;
3616 mmix-*-*)
59f7ec45 3617 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3618 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3619 ;;
3620 mn10200-*-*)
54d1c879 3621 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3622 ;;
3623 mn10300-*-*)
54d1c879 3624 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3625 ;;
4970f871 3626 mt-*-*)
cdb9b172
AH
3627 noconfigdirs="$noconfigdirs sim"
3628 ;;
a0da8069
NN
3629 powerpc-*-aix*)
3630 # copied from rs6000-*-* entry
e8a5fa9c 3631 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3632 ;;
3633 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3634 target_configdirs="$target_configdirs target-winsup"
54d1c879 3635 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3636 # always build newlib.
3637 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3638 ;;
3639 # This is temporary until we can link against shared libraries
3640 powerpcle-*-solaris*)
54d1c879 3641 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3642 libgloss_dir=rs6000
a0da8069
NN
3643 ;;
3644 powerpc-*-beos*)
54d1c879 3645 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3646 ;;
a0da8069 3647 powerpc-*-eabi)
54d1c879 3648 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3649 libgloss_dir=rs6000
caeba88f
AL
3650 ;;
3651 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3652 libgloss_dir=rs6000
a0da8069 3653 ;;
a0da8069 3654 rs6000-*-lynxos*)
54d1c879 3655 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3656 ;;
3657 rs6000-*-aix*)
e8a5fa9c 3658 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3659 ;;
3660 rs6000-*-*)
54d1c879 3661 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3662 ;;
3663 m68k-apollo-*)
54d1c879 3664 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3665 ;;
25a07265 3666 microblaze*)
29821356 3667 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3668 ;;
5bd8be13
RS
3669 mips*-sde-elf*)
3670 skipdirs="$skipdirs target-libiberty"
3671 noconfigdirs="$noconfigdirs ${libgcj}"
3672 if test x$with_newlib = xyes; then
3673 noconfigdirs="$noconfigdirs gprof"
3674 fi
3675 libgloss_dir=mips
3676 ;;
a0da8069 3677 mips*-*-irix5*)
54d1c879 3678 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3679 ;;
3680 mips*-*-irix6*)
a0da8069
NN
3681 # Linking libjava exceeds command-line length limits on at least
3682 # IRIX 6.2, but not on IRIX 6.5.
3683 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3684 # <oldham@codesourcery.com>
54d1c879 3685 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3686 ;;
a0da8069 3687 mips*-*-bsd*)
54d1c879 3688 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3689 ;;
a0da8069
NN
3690 mips*-*-linux*)
3691 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3692 ;;
3693 mips*-*-*)
54d1c879 3694 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3695 libgloss_dir=mips
a0da8069
NN
3696 ;;
3697 romp-*-*)
54d1c879 3698 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3699 ;;
dbf85af7 3700 sh-*-* | sh64-*-*)
a0da8069 3701 case "${host}" in
ec11bdc6
DD
3702 i[3456789]86-*-vsta) ;; # don't add gprof back in
3703 i[3456789]86-*-go32*) ;; # don't add gprof back in
3704 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3705 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3706 esac
e8a5fa9c
RW
3707 case "${target}" in
3708 sh*-*-elf)
3709 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3710 *)
3711 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3712 esac
a0da8069 3713 ;;
691bb5a1
DD
3714 sparclet-*-aout* | sparc86x-*-*)
3715 libgloss_dir=sparc
3716 ;;
a0da8069 3717 sparc-*-elf*)
54d1c879 3718 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3719 ;;
3720 sparc64-*-elf*)
54d1c879 3721 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3722 libgloss_dir=sparc
a0da8069
NN
3723 ;;
3724 sparclite-*-*)
54d1c879 3725 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3726 libgloss_dir=sparc
a0da8069
NN
3727 ;;
3728 sparc-*-sunos4*)
54d1c879 3729 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3730 if test x${is_cross_compiler} != xno ; then
3731 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3732 else
3733 use_gnu_ld=no
3734 fi
3735 ;;
e3c770b1 3736 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3737 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3738 ;;
a0da8069
NN
3739 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3740 ;;
619a3713
JM
3741 tic6x-*-*)
3742 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3743 ;;
a0da8069 3744 v810-*-*)
54d1c879 3745 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3746 ;;
1cd986c5
NC
3747 v850*-*-*)
3748 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3749 ;;
3750 vax-*-vms)
54d1c879 3751 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3752 ;;
3753 vax-*-*)
54d1c879 3754 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3755 ;;
8b66833e 3756 xtensa*-*-*)
54d1c879 3757 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3758 ;;
a0da8069 3759 ip2k-*-*)
54d1c879 3760 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3761 ;;
29383458 3762 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3763 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3764 ;;
3765 *-*-lynxos*)
54d1c879 3766 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3767 ;;
a0da8069 3768 *-*-*)
54d1c879 3769 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3770 ;;
3771esac
252b5132 3772
a0da8069
NN
3773# If we aren't building newlib, then don't build libgloss, since libgloss
3774# depends upon some newlib header files.
3775case "${noconfigdirs}" in
3776 *target-libgloss*) ;;
3777 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3778esac
3779
a0da8069
NN
3780# Work in distributions that contain no compiler tools, like Autoconf.
3781tentative_cc=""
3782host_makefile_frag=/dev/null
3783if test -d ${srcdir}/config ; then
3784case "${host}" in
3785 m68k-hp-hpux*)
3786 # Avoid "too much defining" errors from HPUX compiler.
3787 tentative_cc="cc -Wp,-H256000"
3788 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3789 # If it's HP/UX ar, this should be harmless.
3790 RANLIB="ar ts"
3791 ;;
3792 m68k-apollo-sysv*)
3793 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3794 ;;
3795 m68k-apollo-bsd*)
3796 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3797 # chokes on bfd, the compiler won't let you assign integers to enums, and
3798 # other problems. Defining CC to gcc is a questionable way to say "don't use
3799 # the apollo compiler" (the preferred version of GCC could be called cc,
3800 # or whatever), but I'm not sure leaving CC as cc is any better...
3801 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3802 # Used to have BISON=yacc.
3803 tentative_cc=gcc
3804 ;;
3805 m88k-dg-dgux*)
3806 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3807 ;;
3808 m88k-harris-cxux*)
3809 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3810 tentative_cc="cc -Xa"
3811 host_makefile_frag="config/mh-cxux"
3812 ;;
3813 m88k-motorola-sysv*)
3814 ;;
3815 mips*-dec-ultrix*)
3816 tentative_cc="cc -Wf,-XNg1000"
3817 host_makefile_frag="config/mh-decstation"
3818 ;;
3819 mips*-nec-sysv4*)
3820 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3821 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3822 host_makefile_frag="config/mh-necv4"
3823 ;;
3824 mips*-sgi-irix4*)
3825 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3826 # environment. Also bump switch table size so that cp-parse will
3827 # compile. Bump string length limit so linker builds.
3828 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3829 ;;
3830 mips*-*-sysv4*)
3831 host_makefile_frag="config/mh-sysv4"
3832 ;;
3833 mips*-*-sysv*)
3834 # This is for a MIPS running RISC/os 4.52C.
3835
3836 # This is needed for GDB, but needs to be in the top-level make because
3837 # if a library is compiled with the bsd headers and gets linked with the
3838 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3839 # a different size).
3840 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3841 # known except to select the sysv environment. Could we use /proc instead?
3842 # These "sysv environments" and "bsd environments" often end up being a pain.
3843 #
3844 # This is not part of CFLAGS because perhaps not all C compilers have this
3845 # option.
3846 tentative_cc="cc -systype sysv"
3847 ;;
3848 i370-ibm-opened*)
3849 tentative_cc="c89"
3850 ;;
ec11bdc6 3851 i[3456789]86-*-sysv5*)
a0da8069
NN
3852 host_makefile_frag="config/mh-sysv5"
3853 ;;
ec11bdc6 3854 i[3456789]86-*-dgux*)
a0da8069
NN
3855 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3856 host_makefile_frag="config/mh-dgux386"
3857 ;;
ec11bdc6 3858 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3859 # The MetaWare compiler will generate a copyright message unless you
3860 # turn it off by adding the -Hnocopyr flag.
3861 tentative_cc="cc -Hnocopyr"
3862 ;;
ec11bdc6 3863 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3864 # for an NCR 3000 (i486/SVR4) system.
3865 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3866 # This compiler not only emits obnoxious copyright messages every time
3867 # you run it, but it chokes and dies on a whole bunch of GNU source
3868 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3869 tentative_cc="/usr/ccs/ATT/cc"
3870 host_makefile_frag="config/mh-ncr3000"
3871 ;;
ec11bdc6 3872 i[3456789]86-*-sco3.2v5*)
a0da8069 3873 ;;
ec11bdc6 3874 i[3456789]86-*-sco*)
a0da8069
NN
3875 # The native C compiler botches some simple uses of const. Unfortunately,
3876 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3877 tentative_cc="cc -Dconst="
3878 host_makefile_frag="config/mh-sco"
3879 ;;
ec11bdc6 3880 i[3456789]86-*-udk*)
a0da8069
NN
3881 host_makefile_frag="config/mh-sysv5"
3882 ;;
ec11bdc6 3883 i[3456789]86-*-solaris2*)
a0da8069
NN
3884 host_makefile_frag="config/mh-sysv4"
3885 ;;
ec11bdc6 3886 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3887 host_makefile_frag="config/mh-djgpp"
3888 ;;
3889 *-cygwin*)
e33b51a6 3890
81ecdfbb
RW
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3892$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3893echo a >cygwin-cat-check
1f53ca9a 3894if test `cat cygwin-cat-check` = a ; then
8ade07e9 3895 rm cygwin-cat-check
81ecdfbb
RW
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3897$as_echo "yes" >&6; }
e33b51a6 3898else
8ade07e9 3899 rm cygwin-cat-check
81ecdfbb
RW
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3901$as_echo "no" >&6; }
3902 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3903 Please either mount the build directory in binary mode or run the following
3904 commands before running any configure script:
3905set -o igncr
3906export SHELLOPTS
81ecdfbb 3907 " "$LINENO" 5
e33b51a6 3908fi
e33b51a6 3909
a0da8069
NN
3910 host_makefile_frag="config/mh-cygwin"
3911 ;;
8a1599ab 3912 *-mingw*)
84e7906e 3913 host_makefile_frag="config/mh-mingw"
2d1e8239 3914 ;;
a0da8069
NN
3915 *-interix*)
3916 host_makefile_frag="config/mh-interix"
3917 ;;
3918 vax-*-ultrix2*)
3919 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3920 tentative_cc=gcc
3921 ;;
3922 *-*-solaris2*)
3923 host_makefile_frag="config/mh-solaris"
3924 ;;
3925 m68k-sun-sunos*)
3926 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3927 # without overflowing the jump tables (-J says to use a 32 bit table)
3928 tentative_cc="cc -J"
3929 ;;
da888c87 3930 hppa*-hp-hpux10*)
a0da8069 3931 tentative_cc="cc -Wp,-H256000"
da888c87 3932 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3933 ;;
da888c87
PB
3934 hppa*-hp-hpux* | hppa*-*-hiux*)
3935 tentative_cc="cc -Wp,-H256000"
3936 host_makefile_frag="config/mh-pa"
3937 ;;
3938 hppa*-*)
3939 host_makefile_frag="config/mh-pa"
3940 ;;
3941 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3942 tentative_cc="cc -Wp,-H256000"
3943 ;;
3944 rs6000-*-lynxos*)
3945 # /bin/cc is less than useful for our purposes. Always use GCC
3946 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3947 host_makefile_frag="config/mh-lynxrs6k"
3948 ;;
0df3d27f
PB
3949 powerpc-*-darwin*)
3950 host_makefile_frag="config/mh-ppc-darwin"
3951 ;;
f6d183c0
PB
3952 powerpc-*-aix*)
3953 host_makefile_frag="config/mh-ppc-aix"
3954 ;;
3955 rs6000-*-aix*)
3956 host_makefile_frag="config/mh-ppc-aix"
3957 ;;
a0da8069
NN
3958 *-*-lynxos*)
3959 # /bin/cc is less than useful for our purposes. Always use GCC
3960 tentative_cc="/bin/gcc"
3961 ;;
3962 *-*-sysv4*)
3963 host_makefile_frag="config/mh-sysv4"
3964 ;;
fe69863c
DD
3965 # This is placed last to prevent interfering with the cases above.
3966 i[3456789]86-*-*)
3967 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3968 host_makefile_frag="config/mh-x86omitfp"
3969 ;;
a0da8069
NN
3970esac
3971fi
3972
9e07f89d
NN
3973# If we aren't going to be using gcc, see if we can extract a definition
3974# of CC from the fragment.
3975# Actually, use the 'pre-extracted' version above.
3976if test -z "${CC}" && test "${build}" = "${host}" ; then
3977 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3978 found=
3979 for dir in $PATH; do
3980 test -z "$dir" && dir=.
3981 if test -f $dir/gcc; then
3982 found=yes
3983 break
3984 fi
3985 done
3986 IFS="$save_ifs"
3987 if test -z "${found}" && test -n "${tentative_cc}" ; then
3988 CC=$tentative_cc
3989 fi
3990fi
3991
3992if test "${build}" != "${host}" ; then
1576798e
PB
3993 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3994 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3995 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3996 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3997 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3998 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3999 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4000 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4001 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4002 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4003 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4004 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4005else
4006 AR_FOR_BUILD="\$(AR)"
4007 AS_FOR_BUILD="\$(AS)"
512b7dfb 4008 CC_FOR_BUILD="\$(CC)"
1576798e
PB
4009 CXX_FOR_BUILD="\$(CXX)"
4010 GCJ_FOR_BUILD="\$(GCJ)"
4011 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4012 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4013 LD_FOR_BUILD="\$(LD)"
4014 NM_FOR_BUILD="\$(NM)"
4015 RANLIB_FOR_BUILD="\$(RANLIB)"
4016 WINDRES_FOR_BUILD="\$(WINDRES)"
4017 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
4018fi
4019
4020ac_ext=c
c6b750e1
DJ
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025if test -n "$ac_tool_prefix"; then
4026 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4027set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4032else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035else
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4043 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4045 break 2
4046 fi
4047done
81ecdfbb
RW
4048 done
4049IFS=$as_save_IFS
c6b750e1
DJ
4050
4051fi
4052fi
4053CC=$ac_cv_prog_CC
4054if test -n "$CC"; then
81ecdfbb
RW
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056$as_echo "$CC" >&6; }
c6b750e1 4057else
81ecdfbb
RW
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
c6b750e1
DJ
4060fi
4061
81ecdfbb 4062
c6b750e1
DJ
4063fi
4064if test -z "$ac_cv_prog_CC"; then
4065 ac_ct_CC=$CC
6a9cf61e 4066 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4067set dummy gcc; ac_word=$2
81ecdfbb
RW
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
4070if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4072else
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4075else
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4083 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4085 break 2
4086 fi
4087done
81ecdfbb
RW
4088 done
4089IFS=$as_save_IFS
c6b750e1
DJ
4090
4091fi
4092fi
4093ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4097else
81ecdfbb
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099$as_echo "no" >&6; }
c6b750e1
DJ
4100fi
4101
81ecdfbb
RW
4102 if test "x$ac_ct_CC" = x; then
4103 CC=""
4104 else
4105 case $cross_compiling:$ac_tool_warned in
4106yes:)
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4109ac_tool_warned=yes ;;
4110esac
4111 CC=$ac_ct_CC
4112 fi
c6b750e1
DJ
4113else
4114 CC="$ac_cv_prog_CC"
4115fi
4116
4117if test -z "$CC"; then
81ecdfbb
RW
4118 if test -n "$ac_tool_prefix"; then
4119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4120set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122$as_echo_n "checking for $ac_word... " >&6; }
4123if test "${ac_cv_prog_CC+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
9e07f89d
NN
4125else
4126 if test -n "$CC"; then
4127 ac_cv_prog_CC="$CC" # Let the user override the test.
4128else
c6b750e1
DJ
4129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130for as_dir in $PATH
4131do
4132 IFS=$as_save_IFS
4133 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4136 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4138 break 2
4139 fi
4140done
81ecdfbb
RW
4141 done
4142IFS=$as_save_IFS
c6b750e1 4143
9e07f89d
NN
4144fi
4145fi
c6b750e1 4146CC=$ac_cv_prog_CC
9e07f89d 4147if test -n "$CC"; then
81ecdfbb
RW
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4149$as_echo "$CC" >&6; }
c6b750e1 4150else
81ecdfbb
RW
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4152$as_echo "no" >&6; }
c6b750e1
DJ
4153fi
4154
c6b750e1 4155
81ecdfbb 4156 fi
c6b750e1 4157fi
9e07f89d
NN
4158if test -z "$CC"; then
4159 # Extract the first word of "cc", so it can be a program name with args.
4160set dummy cc; ac_word=$2
81ecdfbb
RW
4161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162$as_echo_n "checking for $ac_word... " >&6; }
4163if test "${ac_cv_prog_CC+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
9e07f89d
NN
4165else
4166 if test -n "$CC"; then
4167 ac_cv_prog_CC="$CC" # Let the user override the test.
4168else
9e07f89d 4169 ac_prog_rejected=no
c6b750e1
DJ
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4178 ac_prog_rejected=yes
4179 continue
4180 fi
4181 ac_cv_prog_CC="cc"
81ecdfbb 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4183 break 2
4184 fi
4185done
81ecdfbb
RW
4186 done
4187IFS=$as_save_IFS
c6b750e1 4188
9e07f89d
NN
4189if test $ac_prog_rejected = yes; then
4190 # We found a bogon in the path, so make sure we never use it.
4191 set dummy $ac_cv_prog_CC
4192 shift
c6b750e1 4193 if test $# != 0; then
9e07f89d
NN
4194 # We chose a different compiler from the bogus one.
4195 # However, it has the same basename, so the bogon will be chosen
4196 # first if we set CC to just the basename; use the full file name.
4197 shift
c6b750e1 4198 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4199 fi
4200fi
4201fi
4202fi
c6b750e1 4203CC=$ac_cv_prog_CC
9e07f89d 4204if test -n "$CC"; then
81ecdfbb
RW
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4206$as_echo "$CC" >&6; }
9e07f89d 4207else
81ecdfbb
RW
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209$as_echo "no" >&6; }
9e07f89d
NN
4210fi
4211
81ecdfbb 4212
c6b750e1
DJ
4213fi
4214if test -z "$CC"; then
4215 if test -n "$ac_tool_prefix"; then
81ecdfbb 4216 for ac_prog in cl.exe
c6b750e1
DJ
4217 do
4218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221$as_echo_n "checking for $ac_word... " >&6; }
4222if test "${ac_cv_prog_CC+set}" = set; then :
4223 $as_echo_n "(cached) " >&6
9e07f89d
NN
4224else
4225 if test -n "$CC"; then
4226 ac_cv_prog_CC="$CC" # Let the user override the test.
4227else
c6b750e1
DJ
4228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229for as_dir in $PATH
4230do
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4237 break 2
376a0e54 4238 fi
c6b750e1 4239done
81ecdfbb
RW
4240 done
4241IFS=$as_save_IFS
cac3d6c4 4242
c6b750e1
DJ
4243fi
4244fi
4245CC=$ac_cv_prog_CC
4246if test -n "$CC"; then
81ecdfbb
RW
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4248$as_echo "$CC" >&6; }
cac3d6c4 4249else
81ecdfbb
RW
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251$as_echo "no" >&6; }
9e07f89d 4252fi
cac3d6c4 4253
81ecdfbb 4254
c6b750e1
DJ
4255 test -n "$CC" && break
4256 done
cac3d6c4 4257fi
c6b750e1
DJ
4258if test -z "$CC"; then
4259 ac_ct_CC=$CC
81ecdfbb 4260 for ac_prog in cl.exe
c6b750e1
DJ
4261do
4262 # Extract the first word of "$ac_prog", so it can be a program name with args.
4263set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4265$as_echo_n "checking for $ac_word... " >&6; }
4266if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4267 $as_echo_n "(cached) " >&6
cac3d6c4 4268else
c6b750e1
DJ
4269 if test -n "$ac_ct_CC"; then
4270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4271else
c6b750e1
DJ
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4279 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4281 break 2
4282 fi
4283done
81ecdfbb
RW
4284 done
4285IFS=$as_save_IFS
c6b750e1 4286
cac3d6c4
CM
4287fi
4288fi
c6b750e1
DJ
4289ac_ct_CC=$ac_cv_prog_ac_ct_CC
4290if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4292$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4293else
81ecdfbb
RW
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295$as_echo "no" >&6; }
cac3d6c4 4296fi
376a0e54 4297
81ecdfbb 4298
c6b750e1
DJ
4299 test -n "$ac_ct_CC" && break
4300done
4301
81ecdfbb
RW
4302 if test "x$ac_ct_CC" = x; then
4303 CC=""
4304 else
4305 case $cross_compiling:$ac_tool_warned in
4306yes:)
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4309ac_tool_warned=yes ;;
4310esac
4311 CC=$ac_ct_CC
4312 fi
c6b750e1
DJ
4313fi
4314
4315fi
4316
4317
81ecdfbb
RW
4318test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320as_fn_error "no acceptable C compiler found in \$PATH
4321See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4322
4323# Provide some information about the compiler.
81ecdfbb
RW
4324$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4325set X $ac_compile
4326ac_compiler=$2
4327for ac_option in --version -v -V -qversion; do
4328 { { ac_try="$ac_compiler $ac_option >&5"
4329case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332esac
4333eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334$as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4336 ac_status=$?
81ecdfbb
RW
4337 if test -s conftest.err; then
4338 sed '10a\
4339... rest of stderr output deleted ...
4340 10q' conftest.err >conftest.er1
4341 cat conftest.er1 >&5
4342 rm -f conftest.er1 conftest.err
4343 fi
4344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345 test $ac_status = 0; }
4346done
c6b750e1 4347
81ecdfbb 4348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4349/* end confdefs.h. */
4350
4351int
4352main ()
4353{
4354
4355 ;
4356 return 0;
4357}
4358_ACEOF
4359ac_clean_files_save=$ac_clean_files
81ecdfbb 4360ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4361# Try to create an executable without -o first, disregard a.out.
4362# It will help us diagnose broken compilers, and finding out an intuition
4363# of exeext.
81ecdfbb
RW
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4365$as_echo_n "checking for C compiler default output file name... " >&6; }
4366ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4367
4368# The possible output files:
4369ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4370
4371ac_rmfiles=
4372for ac_file in $ac_files
4373do
4374 case $ac_file in
4375 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4376 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4377 esac
4378done
4379rm -f $ac_rmfiles
4380
4381if { { ac_try="$ac_link_default"
4382case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
4386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387$as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_link_default") 2>&5
c6b750e1 4389 ac_status=$?
81ecdfbb
RW
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; then :
4392 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4393# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4394# in a Makefile. We should not override ac_cv_exeext if it was cached,
4395# so that the user can short-circuit this test for compilers unknown to
4396# Autoconf.
4397for ac_file in $ac_files ''
c6b750e1
DJ
4398do
4399 test -f "$ac_file" || continue
4400 case $ac_file in
81ecdfbb 4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4402 ;;
4403 [ab].out )
4404 # We found the default executable, but exeext='' is most
4405 # certainly right.
4406 break;;
4407 *.* )
81ecdfbb
RW
4408 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4409 then :; else
4410 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4411 fi
4412 # We set ac_cv_exeext here because the later test for it is not
4413 # safe: cross compilers may not add the suffix if given an `-o'
4414 # argument, so we may need to know it at that point already.
4415 # Even if this section looks crufty: it has the advantage of
4416 # actually working.
c6b750e1
DJ
4417 break;;
4418 * )
4419 break;;
4420 esac
4421done
81ecdfbb
RW
4422test "$ac_cv_exeext" = no && ac_cv_exeext=
4423
c6b750e1 4424else
81ecdfbb
RW
4425 ac_file=''
4426fi
4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4428$as_echo "$ac_file" >&6; }
4429if test -z "$ac_file"; then :
4430 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
81ecdfbb
RW
4433{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435{ as_fn_set_status 77
4436as_fn_error "C compiler cannot create executables
4437See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4438fi
c6b750e1 4439ac_exeext=$ac_cv_exeext
c6b750e1 4440
81ecdfbb 4441# Check that the compiler produces executables we can run. If not, either
c6b750e1 4442# the compiler is broken, or we cross compile.
81ecdfbb
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4444$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4445# If not cross compiling, check that we can run a simple program.
4446if test "$cross_compiling" != yes; then
4447 if { ac_try='./$ac_file'
81ecdfbb
RW
4448 { { case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453$as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_try") 2>&5
c6b750e1 4455 ac_status=$?
81ecdfbb
RW
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; }; then
c6b750e1
DJ
4458 cross_compiling=no
4459 else
4460 if test "$cross_compiling" = maybe; then
4461 cross_compiling=yes
4462 else
81ecdfbb
RW
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465as_fn_error "cannot run C compiled programs.
c6b750e1 4466If you meant to cross compile, use \`--host'.
81ecdfbb 4467See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4468 fi
4469 fi
4470fi
81ecdfbb
RW
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472$as_echo "yes" >&6; }
c6b750e1 4473
81ecdfbb 4474rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4475ac_clean_files=$ac_clean_files_save
81ecdfbb 4476# Check that the compiler produces executables we can run. If not, either
c6b750e1 4477# the compiler is broken, or we cross compile.
81ecdfbb
RW
4478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4479$as_echo_n "checking whether we are cross compiling... " >&6; }
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4481$as_echo "$cross_compiling" >&6; }
4482
4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4484$as_echo_n "checking for suffix of executables... " >&6; }
4485if { { ac_try="$ac_link"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491$as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_link") 2>&5
c6b750e1 4493 ac_status=$?
81ecdfbb
RW
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
c6b750e1
DJ
4496 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4497# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4498# work properly (i.e., refer to `conftest.exe'), while it won't with
4499# `rm'.
4500for ac_file in conftest.exe conftest conftest.*; do
4501 test -f "$ac_file" || continue
4502 case $ac_file in
81ecdfbb 4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4504 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4505 break;;
4506 * ) break;;
4507 esac
4508done
4509else
81ecdfbb
RW
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512as_fn_error "cannot compute suffix of executables: cannot compile and link
4513See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4514fi
c6b750e1 4515rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4517$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4518
4519rm -f conftest.$ac_ext
4520EXEEXT=$ac_cv_exeext
4521ac_exeext=$EXEEXT
81ecdfbb
RW
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4523$as_echo_n "checking for suffix of object files... " >&6; }
4524if test "${ac_cv_objext+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
c6b750e1 4526else
81ecdfbb 4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4528/* end confdefs.h. */
4529
4530int
4531main ()
4532{
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
4538rm -f conftest.o conftest.obj
81ecdfbb
RW
4539if { { ac_try="$ac_compile"
4540case "(($ac_try" in
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4543esac
4544eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545$as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_compile") 2>&5
c6b750e1 4547 ac_status=$?
81ecdfbb
RW
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then :
4550 for ac_file in conftest.o conftest.obj conftest.*; do
4551 test -f "$ac_file" || continue;
c6b750e1 4552 case $ac_file in
81ecdfbb 4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4555 break;;
4556 esac
4557done
cac3d6c4 4558else
81ecdfbb 4559 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4560sed 's/^/| /' conftest.$ac_ext >&5
4561
81ecdfbb
RW
4562{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564as_fn_error "cannot compute suffix of object files: cannot compile
4565See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4566fi
c6b750e1
DJ
4567rm -f conftest.$ac_cv_objext conftest.$ac_ext
4568fi
81ecdfbb
RW
4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4570$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4571OBJEXT=$ac_cv_objext
4572ac_objext=$OBJEXT
81ecdfbb
RW
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4574$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4575if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4576 $as_echo_n "(cached) " >&6
c6b750e1 4577else
81ecdfbb 4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4579/* end confdefs.h. */
4580
4581int
4582main ()
4583{
4584#ifndef __GNUC__
4585 choke me
4586#endif
4587
4588 ;
4589 return 0;
4590}
4591_ACEOF
81ecdfbb 4592if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4593 ac_compiler_gnu=yes
4594else
81ecdfbb 4595 ac_compiler_gnu=no
c6b750e1 4596fi
81ecdfbb 4597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4598ac_cv_c_compiler_gnu=$ac_compiler_gnu
4599
4600fi
81ecdfbb
RW
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4602$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4603if test $ac_compiler_gnu = yes; then
4604 GCC=yes
4605else
4606 GCC=
4607fi
c6b750e1
DJ
4608ac_test_CFLAGS=${CFLAGS+set}
4609ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4611$as_echo_n "checking whether $CC accepts -g... " >&6; }
4612if test "${ac_cv_prog_cc_g+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614else
4615 ac_save_c_werror_flag=$ac_c_werror_flag
4616 ac_c_werror_flag=yes
4617 ac_cv_prog_cc_g=no
4618 CFLAGS="-g"
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4620/* end confdefs.h. */
4621
4622int
4623main ()
4624{
4625
4626 ;
4627 return 0;
4628}
4629_ACEOF
81ecdfbb 4630if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4631 ac_cv_prog_cc_g=yes
4632else
81ecdfbb
RW
4633 CFLAGS=""
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635/* end confdefs.h. */
4636
4637int
4638main ()
4639{
4640
4641 ;
4642 return 0;
4643}
4644_ACEOF
4645if ac_fn_c_try_compile "$LINENO"; then :
4646
4647else
4648 ac_c_werror_flag=$ac_save_c_werror_flag
4649 CFLAGS="-g"
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651/* end confdefs.h. */
cac3d6c4 4652
81ecdfbb
RW
4653int
4654main ()
4655{
4656
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_compile "$LINENO"; then :
4662 ac_cv_prog_cc_g=yes
4663fi
4664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4665fi
81ecdfbb 4666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4667fi
81ecdfbb
RW
4668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_c_werror_flag=$ac_save_c_werror_flag
4670fi
4671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4672$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4673if test "$ac_test_CFLAGS" = set; then
c6b750e1 4674 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4675elif test $ac_cv_prog_cc_g = yes; then
4676 if test "$GCC" = yes; then
4677 CFLAGS="-g -O2"
4678 else
4679 CFLAGS="-g"
4680 fi
4681else
4682 if test "$GCC" = yes; then
4683 CFLAGS="-O2"
4684 else
4685 CFLAGS=
4686 fi
4687fi
81ecdfbb
RW
4688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4689$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4690if test "${ac_cv_prog_cc_c89+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
c6b750e1 4692else
81ecdfbb 4693 ac_cv_prog_cc_c89=no
c6b750e1 4694ac_save_CC=$CC
81ecdfbb 4695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4696/* end confdefs.h. */
4697#include <stdarg.h>
4698#include <stdio.h>
4699#include <sys/types.h>
4700#include <sys/stat.h>
4701/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4702struct buf { int x; };
4703FILE * (*rcsopen) (struct buf *, struct stat *, int);
4704static char *e (p, i)
4705 char **p;
4706 int i;
4707{
4708 return p[i];
4709}
4710static char *f (char * (*g) (char **, int), char **p, ...)
4711{
4712 char *s;
4713 va_list v;
4714 va_start (v,p);
4715 s = g (p, va_arg (v,int));
4716 va_end (v);
4717 return s;
4718}
4719
4720/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4721 function prototypes and stuff, but not '\xHH' hex character constants.
4722 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4723 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4725 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4726 that's true only with -std. */
c6b750e1
DJ
4727int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4728
81ecdfbb
RW
4729/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4730 inside strings and character constants. */
4731#define FOO(x) 'x'
4732int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4733
c6b750e1
DJ
4734int test (int i, double x);
4735struct s1 {int (*f) (int a);};
4736struct s2 {int (*f) (double a);};
4737int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4738int argc;
4739char **argv;
4740int
4741main ()
4742{
4743return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4744 ;
4745 return 0;
4746}
4747_ACEOF
81ecdfbb
RW
4748for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4750do
4751 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4754fi
81ecdfbb
RW
4755rm -f core conftest.err conftest.$ac_objext
4756 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4757done
81ecdfbb 4758rm -f conftest.$ac_ext
c6b750e1
DJ
4759CC=$ac_save_CC
4760
4761fi
81ecdfbb
RW
4762# AC_CACHE_VAL
4763case "x$ac_cv_prog_cc_c89" in
4764 x)
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4766$as_echo "none needed" >&6; } ;;
4767 xno)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4769$as_echo "unsupported" >&6; } ;;
c6b750e1 4770 *)
81ecdfbb
RW
4771 CC="$CC $ac_cv_prog_cc_c89"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4773$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4774esac
81ecdfbb 4775if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4776
c6b750e1
DJ
4777fi
4778
c6b750e1
DJ
4779ac_ext=c
4780ac_cpp='$CPP $CPPFLAGS'
4781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4784
81ecdfbb 4785ac_ext=cpp
18f6b6ee
PB
4786ac_cpp='$CXXCPP $CPPFLAGS'
4787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4790if test -z "$CXX"; then
4791 if test -n "$CCC"; then
4792 CXX=$CCC
4793 else
4794 if test -n "$ac_tool_prefix"; then
4795 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4796 do
4797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if test "${ac_cv_prog_CXX+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4803else
4804 if test -n "$CXX"; then
4805 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4814 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4816 break 2
4817 fi
4818done
81ecdfbb
RW
4819 done
4820IFS=$as_save_IFS
512b7dfb 4821
18f6b6ee
PB
4822fi
4823fi
4824CXX=$ac_cv_prog_CXX
4825if test -n "$CXX"; then
81ecdfbb
RW
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827$as_echo "$CXX" >&6; }
18f6b6ee 4828else
81ecdfbb
RW
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
18f6b6ee
PB
4831fi
4832
81ecdfbb 4833
18f6b6ee
PB
4834 test -n "$CXX" && break
4835 done
4836fi
4837if test -z "$CXX"; then
4838 ac_ct_CXX=$CXX
81ecdfbb 4839 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4840do
4841 # Extract the first word of "$ac_prog", so it can be a program name with args.
4842set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844$as_echo_n "checking for $ac_word... " >&6; }
4845if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4847else
4848 if test -n "$ac_ct_CXX"; then
4849 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4850else
4851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852for as_dir in $PATH
4853do
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4858 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4860 break 2
512b7dfb 4861 fi
18f6b6ee 4862done
81ecdfbb
RW
4863 done
4864IFS=$as_save_IFS
512b7dfb 4865
18f6b6ee
PB
4866fi
4867fi
4868ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4869if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4871$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4872else
81ecdfbb
RW
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874$as_echo "no" >&6; }
18f6b6ee
PB
4875fi
4876
81ecdfbb 4877
18f6b6ee
PB
4878 test -n "$ac_ct_CXX" && break
4879done
18f6b6ee 4880
81ecdfbb
RW
4881 if test "x$ac_ct_CXX" = x; then
4882 CXX="g++"
4883 else
4884 case $cross_compiling:$ac_tool_warned in
4885yes:)
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4888ac_tool_warned=yes ;;
4889esac
4890 CXX=$ac_ct_CXX
4891 fi
18f6b6ee
PB
4892fi
4893
81ecdfbb
RW
4894 fi
4895fi
18f6b6ee 4896# Provide some information about the compiler.
81ecdfbb
RW
4897$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4898set X $ac_compile
4899ac_compiler=$2
4900for ac_option in --version -v -V -qversion; do
4901 { { ac_try="$ac_compiler $ac_option >&5"
4902case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905esac
4906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4907$as_echo "$ac_try_echo"; } >&5
4908 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4909 ac_status=$?
81ecdfbb
RW
4910 if test -s conftest.err; then
4911 sed '10a\
4912... rest of stderr output deleted ...
4913 10q' conftest.err >conftest.er1
4914 cat conftest.er1 >&5
4915 rm -f conftest.er1 conftest.err
4916 fi
4917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4918 test $ac_status = 0; }
4919done
18f6b6ee 4920
81ecdfbb
RW
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4922$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4923if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4924 $as_echo_n "(cached) " >&6
18f6b6ee 4925else
81ecdfbb 4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4927/* end confdefs.h. */
4928
4929int
4930main ()
4931{
4932#ifndef __GNUC__
4933 choke me
4934#endif
4935
4936 ;
4937 return 0;
4938}
4939_ACEOF
81ecdfbb 4940if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4941 ac_compiler_gnu=yes
4942else
81ecdfbb 4943 ac_compiler_gnu=no
18f6b6ee 4944fi
81ecdfbb 4945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4946ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4947
4948fi
81ecdfbb
RW
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4950$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4951if test $ac_compiler_gnu = yes; then
4952 GXX=yes
4953else
4954 GXX=
4955fi
18f6b6ee
PB
4956ac_test_CXXFLAGS=${CXXFLAGS+set}
4957ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4959$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4960if test "${ac_cv_prog_cxx_g+set}" = set; then :
4961 $as_echo_n "(cached) " >&6
4962else
4963 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4964 ac_cxx_werror_flag=yes
4965 ac_cv_prog_cxx_g=no
4966 CXXFLAGS="-g"
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4968/* end confdefs.h. */
4969
4970int
4971main ()
4972{
4973
4974 ;
4975 return 0;
4976}
4977_ACEOF
81ecdfbb 4978if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4979 ac_cv_prog_cxx_g=yes
4980else
81ecdfbb
RW
4981 CXXFLAGS=""
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4983/* end confdefs.h. */
81ecdfbb 4984
18f6b6ee
PB
4985int
4986main ()
4987{
81ecdfbb 4988
18f6b6ee
PB
4989 ;
4990 return 0;
4991}
4992_ACEOF
81ecdfbb 4993if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4994
81ecdfbb
RW
4995else
4996 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4997 CXXFLAGS="-g"
4998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4999/* end confdefs.h. */
81ecdfbb 5000
18f6b6ee
PB
5001int
5002main ()
5003{
81ecdfbb 5004
18f6b6ee
PB
5005 ;
5006 return 0;
5007}
5008_ACEOF
81ecdfbb
RW
5009if ac_fn_cxx_try_compile "$LINENO"; then :
5010 ac_cv_prog_cxx_g=yes
18f6b6ee 5011fi
81ecdfbb
RW
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013fi
5014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015fi
5016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5020$as_echo "$ac_cv_prog_cxx_g" >&6; }
5021if test "$ac_test_CXXFLAGS" = set; then
5022 CXXFLAGS=$ac_save_CXXFLAGS
5023elif test $ac_cv_prog_cxx_g = yes; then
5024 if test "$GXX" = yes; then
5025 CXXFLAGS="-g -O2"
5026 else
5027 CXXFLAGS="-g"
5028 fi
5029else
5030 if test "$GXX" = yes; then
5031 CXXFLAGS="-O2"
5032 else
5033 CXXFLAGS=
5034 fi
18f6b6ee 5035fi
18f6b6ee
PB
5036ac_ext=c
5037ac_cpp='$CPP $CPPFLAGS'
5038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042
5043# We must set the default linker to the linker used by gcc for the correct
5044# operation of libtool. If LD is not defined and we are using gcc, try to
5045# set the LD default to the ld used by gcc.
5046if test -z "$LD"; then
5047 if test "$GCC" = yes; then
5048 case $build in
5049 *-*-mingw*)
5050 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5051 *)
5052 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5053 esac
5054 case $gcc_prog_ld in
5055 # Accept absolute paths.
5056 [\\/]* | [A-Za-z]:[\\/]*)
5057 LD="$gcc_prog_ld" ;;
5058 esac
5059 fi
512b7dfb
PB
5060fi
5061
5062
5063
5064
c6b750e1 5065if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5066 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5067set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069$as_echo_n "checking for $ac_word... " >&6; }
5070if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5071 $as_echo_n "(cached) " >&6
9e07f89d 5072else
512b7dfb
PB
5073 if test -n "$GNATBIND"; then
5074 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5075else
c6b750e1
DJ
5076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077for as_dir in $PATH
5078do
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5083 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5085 break 2
5086 fi
5087done
81ecdfbb
RW
5088 done
5089IFS=$as_save_IFS
c6b750e1 5090
9e07f89d
NN
5091fi
5092fi
512b7dfb
PB
5093GNATBIND=$ac_cv_prog_GNATBIND
5094if test -n "$GNATBIND"; then
81ecdfbb
RW
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5096$as_echo "$GNATBIND" >&6; }
9e07f89d 5097else
81ecdfbb
RW
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099$as_echo "no" >&6; }
9e07f89d
NN
5100fi
5101
81ecdfbb 5102
c6b750e1 5103fi
512b7dfb
PB
5104if test -z "$ac_cv_prog_GNATBIND"; then
5105 ac_ct_GNATBIND=$GNATBIND
5106 # Extract the first word of "gnatbind", so it can be a program name with args.
5107set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
9e07f89d 5112else
512b7dfb
PB
5113 if test -n "$ac_ct_GNATBIND"; then
5114 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5115else
c6b750e1
DJ
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5123 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5125 break 2
5126 fi
5127done
81ecdfbb
RW
5128 done
5129IFS=$as_save_IFS
c6b750e1 5130
9e07f89d
NN
5131fi
5132fi
512b7dfb
PB
5133ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5134if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5136$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5137else
81ecdfbb
RW
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
9e07f89d
NN
5140fi
5141
81ecdfbb
RW
5142 if test "x$ac_ct_GNATBIND" = x; then
5143 GNATBIND="no"
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146yes:)
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149ac_tool_warned=yes ;;
5150esac
5151 GNATBIND=$ac_ct_GNATBIND
5152 fi
24ff9987 5153else
512b7dfb 5154 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5155fi
5156
7df2cd5d 5157if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5158 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5159set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
7df2cd5d 5164else
512b7dfb
PB
5165 if test -n "$GNATMAKE"; then
5166 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5167else
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5175 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5177 break 2
5178 fi
5179done
81ecdfbb
RW
5180 done
5181IFS=$as_save_IFS
7df2cd5d
PB
5182
5183fi
5184fi
512b7dfb
PB
5185GNATMAKE=$ac_cv_prog_GNATMAKE
5186if test -n "$GNATMAKE"; then
81ecdfbb
RW
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5188$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5189else
81ecdfbb
RW
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
7df2cd5d
PB
5192fi
5193
81ecdfbb 5194
7df2cd5d 5195fi
512b7dfb
PB
5196if test -z "$ac_cv_prog_GNATMAKE"; then
5197 ac_ct_GNATMAKE=$GNATMAKE
5198 # Extract the first word of "gnatmake", so it can be a program name with args.
5199set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
7df2cd5d 5204else
512b7dfb
PB
5205 if test -n "$ac_ct_GNATMAKE"; then
5206 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5207else
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5215 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5217 break 2
5218 fi
5219done
81ecdfbb
RW
5220 done
5221IFS=$as_save_IFS
7df2cd5d 5222
7df2cd5d
PB
5223fi
5224fi
512b7dfb
PB
5225ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5226if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5228$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5229else
81ecdfbb
RW
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
7df2cd5d
PB
5232fi
5233
81ecdfbb
RW
5234 if test "x$ac_ct_GNATMAKE" = x; then
5235 GNATMAKE="no"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238yes:)
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241ac_tool_warned=yes ;;
5242esac
5243 GNATMAKE=$ac_ct_GNATMAKE
5244 fi
7df2cd5d 5245else
512b7dfb 5246 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5247fi
5248
81ecdfbb
RW
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5250$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5251if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5252 $as_echo_n "(cached) " >&6
9e07f89d
NN
5253else
5254 cat >conftest.adb <<EOF
5255procedure conftest is begin null; end conftest;
5256EOF
5257acx_cv_cc_gcc_supports_ada=no
5258# There is a bug in old released versions of GCC which causes the
5259# driver to exit successfully when the appropriate language module
5260# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5261# Therefore we must check for the error message as well as an
5262# unsuccessful exit.
b8908782
DD
5263# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5264# given a .adb file, but produce no object file. So we must check
5265# if an object file was really produced to guard against this.
9e07f89d 5266errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5267if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5268 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5269fi
5270rm -f conftest.*
5271fi
81ecdfbb
RW
5272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5273$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5274
512b7dfb 5275if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5276 have_gnat=yes
5277else
5278 have_gnat=no
5279fi
5280
81ecdfbb
RW
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5282$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5283if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5284 $as_echo_n "(cached) " >&6
b8908782
DD
5285else
5286 echo abfoo >t1
5287 echo cdfoo >t2
5288 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5289 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5290 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5291 :
5292 else
5293 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5294 fi
5295 fi
b8908782
DD
5296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5298 :
b8908782
DD
5299 else
5300 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5301 fi
5302 fi
5303 rm t1 t2
5304
5305fi
81ecdfbb
RW
5306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5307$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5308do_compare="$gcc_cv_prog_cmp_skip"
5309
5310
9e07f89d 5311
e8a5fa9c 5312# See if we are building gcc with C++.
81ecdfbb
RW
5313# Check whether --enable-build-with-cxx was given.
5314if test "${enable_build_with_cxx+set}" = set; then :
5315 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5316else
5317 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5318fi
5319
e8a5fa9c 5320
d5f2ee2e
KG
5321# Used for setting $lt_cv_objdir
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5323$as_echo_n "checking for objdir... " >&6; }
5324if test "${lt_cv_objdir+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5326else
5327 rm -f .libs 2>/dev/null
5328mkdir .libs 2>/dev/null
5329if test -d .libs; then
5330 lt_cv_objdir=.libs
5331else
5332 # MS-DOS does not allow filenames that begin with a dot.
5333 lt_cv_objdir=_libs
5334fi
5335rmdir .libs 2>/dev/null
5336fi
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5338$as_echo "$lt_cv_objdir" >&6; }
5339objdir=$lt_cv_objdir
5340
5341
5342
5343
5344
5345cat >>confdefs.h <<_ACEOF
5346#define LT_OBJDIR "$lt_cv_objdir/"
5347_ACEOF
5348
5349
5350
e8a5fa9c 5351# Check for GMP, MPFR and MPC
d9b76ff9 5352gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5353gmpinc=
4b900473 5354have_gmp=no
e8a5fa9c
RW
5355
5356# Specify a location for mpc
5357# check for this first so it ends up on the link line before mpfr.
5358
81ecdfbb
RW
5359# Check whether --with-mpc was given.
5360if test "${with_mpc+set}" = set; then :
5361 withval=$with_mpc;
5362fi
e8a5fa9c 5363
e8a5fa9c 5364
81ecdfbb
RW
5365# Check whether --with-mpc_include was given.
5366if test "${with_mpc_include+set}" = set; then :
5367 withval=$with_mpc_include;
5368fi
e8a5fa9c 5369
e8a5fa9c 5370
81ecdfbb
RW
5371# Check whether --with-mpc_lib was given.
5372if test "${with_mpc_lib+set}" = set; then :
5373 withval=$with_mpc_lib;
5374fi
e8a5fa9c 5375
e8a5fa9c
RW
5376
5377if test "x$with_mpc" != x; then
d9b76ff9
KG
5378 gmplibs="-L$with_mpc/lib $gmplibs"
5379 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5380fi
5381if test "x$with_mpc_include" != x; then
d9b76ff9 5382 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5383fi
5384if test "x$with_mpc_lib" != x; then
d9b76ff9 5385 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5386fi
5387if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5388 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5389 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5390 # Do not test the mpc version. Assume that it is sufficient, since
5391 # it is in the source tree, and the library has not been built yet
5392 # but it would be included on the link line in the version check below
5393 # hence making the test fail.
d9b76ff9 5394 have_gmp=yes
e8a5fa9c 5395fi
4b900473 5396
11b04d1f
DD
5397# Specify a location for mpfr
5398# check for this first so it ends up on the link line before gmp.
c6b750e1 5399
81ecdfbb
RW
5400# Check whether --with-mpfr-dir was given.
5401if test "${with_mpfr_dir+set}" = set; then :
5402 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5403Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5404fi
5405
11b04d1f
DD
5406
5407
81ecdfbb
RW
5408# Check whether --with-mpfr was given.
5409if test "${with_mpfr+set}" = set; then :
5410 withval=$with_mpfr;
5411fi
c6b750e1 5412
11b04d1f 5413
81ecdfbb
RW
5414# Check whether --with-mpfr_include was given.
5415if test "${with_mpfr_include+set}" = set; then :
5416 withval=$with_mpfr_include;
5417fi
c6b750e1 5418
8a0d8a5c 5419
81ecdfbb
RW
5420# Check whether --with-mpfr_lib was given.
5421if test "${with_mpfr_lib+set}" = set; then :
5422 withval=$with_mpfr_lib;
5423fi
8a0d8a5c 5424
11b04d1f
DD
5425
5426if test "x$with_mpfr" != x; then
5427 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5428 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5429fi
8a0d8a5c 5430if test "x$with_mpfr_include" != x; then
d9b76ff9 5431 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5432fi
5433if test "x$with_mpfr_lib" != x; then
5434 gmplibs="-L$with_mpfr_lib $gmplibs"
5435fi
4b900473 5436if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5437 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5438 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5439 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5440 # Do not test the mpfr version. Assume that it is sufficient, since
5441 # it is in the source tree, and the library has not been built yet
5442 # but it would be included on the link line in the version check below
5443 # hence making the test fail.
5444 have_gmp=yes
5445fi
11b04d1f 5446
4b1cb4fe 5447# Specify a location for gmp
c6b750e1 5448
81ecdfbb
RW
5449# Check whether --with-gmp-dir was given.
5450if test "${with_gmp_dir+set}" = set; then :
5451 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5452Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5453fi
5454
4b1cb4fe
DD
5455
5456
81ecdfbb
RW
5457# Check whether --with-gmp was given.
5458if test "${with_gmp+set}" = set; then :
5459 withval=$with_gmp;
5460fi
c6b750e1 5461
4b1cb4fe 5462
81ecdfbb
RW
5463# Check whether --with-gmp_include was given.
5464if test "${with_gmp_include+set}" = set; then :
5465 withval=$with_gmp_include;
5466fi
c6b750e1 5467
8a0d8a5c 5468
81ecdfbb
RW
5469# Check whether --with-gmp_lib was given.
5470if test "${with_gmp_lib+set}" = set; then :
5471 withval=$with_gmp_lib;
5472fi
8a0d8a5c
PB
5473
5474
4b1cb4fe 5475
11b04d1f
DD
5476if test "x$with_gmp" != x; then
5477 gmplibs="-L$with_gmp/lib $gmplibs"
5478 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5479fi
8a0d8a5c
PB
5480if test "x$with_gmp_include" != x; then
5481 gmpinc="-I$with_gmp_include $gmpinc"
5482fi
5483if test "x$with_gmp_lib" != x; then
5484 gmplibs="-L$with_gmp_lib $gmplibs"
5485fi
4b900473 5486if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5487 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5488 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5489 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5490 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5491 # Do not test the gmp version. Assume that it is sufficient, since
5492 # it is in the source tree, and the library has not been built yet
5493 # but it would be included on the link line in the version check below
5494 # hence making the test fail.
5495 have_gmp=yes
5496fi
4b1cb4fe 5497
ceb92e78 5498if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5499 have_gmp=yes
5500 saved_CFLAGS="$CFLAGS"
5501 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5502 # Check for the recommended and required versions of GMP.
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5504$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5505
5506cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5507/* end confdefs.h. */
5508#include "gmp.h"
5509int
5510main ()
5511{
5512
5513 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5514 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5515 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5516 choke me
5517 #endif
5518
5519 ;
5520 return 0;
5521}
5522_ACEOF
5523if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5525/* end confdefs.h. */
a6b5846e 5526#include <gmp.h>
c6b750e1
DJ
5527int
5528main ()
5529{
4b1cb4fe 5530
a6b5846e
KG
5531 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5532 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5533 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5534 choke me
5535 #endif
c6b750e1
DJ
5536
5537 ;
5538 return 0;
5539}
5540_ACEOF
81ecdfbb
RW
5541if ac_fn_c_try_compile "$LINENO"; then :
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5543$as_echo "yes" >&6; }
a6b5846e
KG
5544else
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5546$as_echo "buggy but acceptable" >&6; }
5547fi
5548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5549else
81ecdfbb
RW
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5552fi
81ecdfbb 5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5554
e8a5fa9c 5555 # If we have GMP, check the MPFR version.
4b900473 5556 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5557 # Check for the recommended and required versions of MPFR.
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5559$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5561/* end confdefs.h. */
9b134994 5562#include <gmp.h>
4b900473 5563 #include <mpfr.h>
c6b750e1
DJ
5564int
5565main ()
5566{
9b134994 5567
ef699244 5568 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5569 choke me
5570 #endif
c6b750e1
DJ
5571
5572 ;
5573 return 0;
5574}
5575_ACEOF
81ecdfbb
RW
5576if ac_fn_c_try_compile "$LINENO"; then :
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5578/* end confdefs.h. */
4b1cb4fe 5579#include <gmp.h>
4b900473 5580 #include <mpfr.h>
c6b750e1
DJ
5581int
5582main ()
5583{
9dbaa842 5584
a6b5846e 5585 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5586 choke me
5587 #endif
e8a5fa9c
RW
5588
5589 ;
5590 return 0;
5591}
5592_ACEOF
81ecdfbb
RW
5593if ac_fn_c_try_compile "$LINENO"; then :
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5595$as_echo "yes" >&6; }
e8a5fa9c 5596else
81ecdfbb
RW
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5598$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5599fi
81ecdfbb 5600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5601else
81ecdfbb
RW
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5604fi
81ecdfbb 5605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5606 fi
5607
5608 # Check for the MPC header version.
d9b76ff9 5609 if test x"$have_gmp" = xyes ; then
a6b5846e 5610 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5612$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5614/* end confdefs.h. */
5615#include <mpc.h>
5616int
5617main ()
5618{
5619
a6b5846e
KG
5620 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5621 choke me
5622 #endif
5623
5624 ;
5625 return 0;
5626}
5627_ACEOF
5628if ac_fn_c_try_compile "$LINENO"; then :
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631#include <mpc.h>
5632int
5633main ()
5634{
5635
5636 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5637 choke me
5638 #endif
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
81ecdfbb
RW
5644if ac_fn_c_try_compile "$LINENO"; then :
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5646$as_echo "yes" >&6; }
a6b5846e
KG
5647else
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5649$as_echo "buggy but acceptable" >&6; }
5650fi
5651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5652else
81ecdfbb 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5654$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5655fi
81ecdfbb 5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5657 fi
5658
5659 # Now check the MPFR library.
5660 if test x"$have_gmp" = xyes; then
5661 saved_LIBS="$LIBS"
5662 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5664$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5666/* end confdefs.h. */
d9b76ff9 5667#include <mpc.h>
e8a5fa9c
RW
5668int
5669main ()
5670{
5671
5672 mpfr_t n;
5673 mpfr_t x;
d9b76ff9 5674 mpc_t c;
e8a5fa9c
RW
5675 int t;
5676 mpfr_init (n);
5677 mpfr_init (x);
5678 mpfr_atan2 (n, n, x, GMP_RNDN);
5679 mpfr_erfc (n, x, GMP_RNDN);
5680 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5681 mpfr_clear(n);
5682 mpfr_clear(x);
5683 mpc_init2 (c, 53);
5684 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5685 mpc_cosh (c, c, MPC_RNDNN);
5686 mpc_pow (c, c, c, MPC_RNDNN);
5687 mpc_acosh (c, c, MPC_RNDNN);
5688 mpc_clear (c);
c6b750e1
DJ
5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
81ecdfbb
RW
5694if ac_fn_c_try_link "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
c6b750e1 5697else
81ecdfbb
RW
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5700fi
81ecdfbb
RW
5701rm -f core conftest.err conftest.$ac_objext \
5702 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5703 LIBS="$saved_LIBS"
5704 fi
5705
4b900473 5706 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5707
a6b5846e
KG
5708# The library versions listed in the error message below should match
5709# the HARD-minimums enforced above.
4b900473 5710 if test x$have_gmp != xyes; then
a6b5846e 5711 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5712Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5713their locations. Source code for these libraries can be found at
5714their respective hosting sites as well as at
5715ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5716http://gcc.gnu.org/install/prerequisites.html for additional info. If
5717you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5718make sure that you have installed both the libraries and the header
5719files. They may be located in separate packages." "$LINENO" 5
4b900473 5720 fi
9dbaa842
DD
5721fi
5722
e8a5fa9c
RW
5723# Flags needed for both GMP, MPFR and/or MPC.
5724
5725
5726
4b1cb4fe
DD
5727
5728
5729
29383458
JM
5730# Allow host libstdc++ to be specified for static linking with PPL.
5731
81ecdfbb
RW
5732# Check whether --with-host-libstdcxx was given.
5733if test "${with_host_libstdcxx+set}" = set; then :
5734 withval=$with_host_libstdcxx;
5735fi
29383458 5736
29383458
JM
5737
5738case $with_host_libstdcxx in
5739 no|yes)
81ecdfbb 5740 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5741 ;;
5742esac
e28c595f 5743
e8a5fa9c
RW
5744# Linker flags to use for stage1 or when not boostrapping.
5745
81ecdfbb
RW
5746# Check whether --with-stage1-ldflags was given.
5747if test "${with_stage1_ldflags+set}" = set; then :
5748 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5749 stage1_ldflags=
5750 else
5751 stage1_ldflags=$withval
5752 fi
5753else
5754 stage1_ldflags=
81ecdfbb
RW
5755fi
5756
e8a5fa9c
RW
5757
5758
5759# Libraries to use for stage1 or when not bootstrapping.
5760
81ecdfbb
RW
5761# Check whether --with-stage1-libs was given.
5762if test "${with_stage1_libs+set}" = set; then :
5763 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5764 stage1_libs=
5765 else
5766 stage1_libs=$withval
5767 fi
5768else
5769 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5770fi
5771
e8a5fa9c
RW
5772
5773
e8a5fa9c
RW
5774# Libraries to use for stage2 and later builds. This defaults to the
5775# argument passed to --with-host-libstdcxx.
5776
81ecdfbb
RW
5777# Check whether --with-boot-libs was given.
5778if test "${with_boot_libs+set}" = set; then :
5779 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5780 poststage1_libs=
5781 else
5782 poststage1_libs=$withval
5783 fi
5784else
5785 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5786fi
5787
e8a5fa9c
RW
5788
5789
143754cd
NC
5790# Linker flags to use for stage2 and later builds.
5791
5792# Check whether --with-boot-ldflags was given.
5793if test "${with_boot_ldflags+set}" = set; then :
5794 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5795 poststage1_ldflags=
5796 else
5797 poststage1_ldflags=$withval
5798 fi
5799else
5800 poststage1_ldflags=
5801 # With --enable-build-with-cxx, default to linking libstdc++ and
5802 # libgcc statically. But if the user explicitly specified the
5803 # libraries to use, trust that they are doing what they want.
5804 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5805 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5806 fi
5807fi
5808
5809
5810
e28c595f 5811# Check for PPL
e8a5fa9c 5812ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5813pplinc=
5814
5815
81ecdfbb
RW
5816# Check whether --with-ppl was given.
5817if test "${with_ppl+set}" = set; then :
5818 withval=$with_ppl;
81ecdfbb 5819fi
e28c595f 5820
e28c595f 5821
81ecdfbb
RW
5822# Check whether --with-ppl_include was given.
5823if test "${with_ppl_include+set}" = set; then :
5824 withval=$with_ppl_include;
5825fi
5826
e28c595f 5827
81ecdfbb
RW
5828# Check whether --with-ppl_lib was given.
5829if test "${with_ppl_lib+set}" = set; then :
5830 withval=$with_ppl_lib;
5831fi
e28c595f 5832
e28c595f 5833
29383458
JM
5834case $with_ppl in
5835 no)
5836 ppllibs=
5837 ;;
1f53ca9a
AO
5838 "" | yes)
5839 ;;
29383458 5840 *)
e8a5fa9c 5841 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5842 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5843 ;;
5844esac
e28c595f
JM
5845if test "x$with_ppl_include" != x; then
5846 pplinc="-I$with_ppl_include $pplinc"
5847fi
5848if test "x$with_ppl_lib" != x; then
e8a5fa9c 5849 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5850fi
5851if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5852 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
1f53ca9a
AO
5853 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5854 enable_ppl_version_check=no
e28c595f
JM
5855fi
5856
81ecdfbb
RW
5857# Check whether --enable-ppl-version-check was given.
5858if test "${enable_ppl_version_check+set}" = set; then :
5859 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5860else
5861 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5862fi
5863
e28c595f 5864
1f53ca9a 5865if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5866 saved_CFLAGS="$CFLAGS"
5867 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5869$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5871/* end confdefs.h. */
5872#include "ppl_c.h"
5873int
5874main ()
5875{
5876
a009f2e7 5877 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5878 choke me
5879 #endif
5880
5881 ;
5882 return 0;
5883}
5884_ACEOF
81ecdfbb
RW
5885if ac_fn_c_try_compile "$LINENO"; then :
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5887$as_echo "yes" >&6; }
e28c595f 5888else
81ecdfbb 5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5890$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5891fi
81ecdfbb 5892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5893 CFLAGS="$saved_CFLAGS"
5894fi
5895
5896# Flags needed for PPL
5897
5898
5899
5900
5901# Check for CLOOG
5902clooglibs=" -lcloog "
5903clooginc=" -DCLOOG_PPL_BACKEND "
5904
5905
81ecdfbb
RW
5906# Check whether --with-cloog was given.
5907if test "${with_cloog+set}" = set; then :
5908 withval=$with_cloog;
81ecdfbb
RW
5909fi
5910
e28c595f 5911
81ecdfbb
RW
5912# Check whether --with-cloog_include was given.
5913if test "${with_cloog_include+set}" = set; then :
5914 withval=$with_cloog_include;
5915fi
e28c595f 5916
e28c595f 5917
81ecdfbb
RW
5918# Check whether --with-cloog_lib was given.
5919if test "${with_cloog_lib+set}" = set; then :
5920 withval=$with_cloog_lib;
5921fi
e28c595f 5922
e28c595f 5923
1f53ca9a
AO
5924if test "x$with_ppl" = "xno"; then
5925 with_cloog=no
5926fi
5927
29383458
JM
5928case $with_cloog in
5929 no)
5930 clooglibs=
5931 clooginc=
5932 ;;
1f53ca9a
AO
5933 "" | yes)
5934 ;;
29383458
JM
5935 *)
5936 clooglibs="-L$with_cloog/lib -lcloog"
5937 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
29383458
JM
5938 ;;
5939esac
e28c595f
JM
5940if test "x$with_cloog_include" != x; then
5941 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5942fi
5943if test "x$with_cloog_lib" != x; then
5944 clooglibs="-L$with_cloog_lib -lcloog"
e28c595f
JM
5945fi
5946if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
d5f2ee2e 5947 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
e28c595f 5948 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
1f53ca9a 5949 enable_cloog_version_check=no
e28c595f
JM
5950fi
5951
81ecdfbb
RW
5952# Check whether --enable-cloog-version-check was given.
5953if test "${enable_cloog_version_check+set}" = set; then :
5954 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
e28c595f
JM
5955else
5956 ENABLE_CLOOG_CHECK=yes
81ecdfbb
RW
5957fi
5958
e28c595f 5959
1f53ca9a 5960if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
e28c595f
JM
5961 saved_CFLAGS="$CFLAGS"
5962 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
143754cd
NC
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5964$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
81ecdfbb 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5966/* end confdefs.h. */
5967#include "cloog/cloog.h"
5968int
5969main ()
5970{
5971
143754cd 5972 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
e28c595f
JM
5973 choke me
5974 #endif
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
a009f2e7
RW
5980if ac_fn_c_try_compile "$LINENO"; then :
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982/* end confdefs.h. */
5983#include "cloog/cloog.h"
5984int
5985main ()
5986{
5987
5988 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5989 choke me
5990 #endif
5991
5992 ;
5993 return 0;
5994}
5995_ACEOF
81ecdfbb
RW
5996if ac_fn_c_try_compile "$LINENO"; then :
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5998$as_echo "yes" >&6; }
a009f2e7
RW
5999else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
6001$as_echo "buggy but acceptable" >&6; }
6002fi
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6004else
81ecdfbb
RW
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006$as_echo "no" >&6; }; clooglibs= ; clooginc=
e28c595f 6007fi
81ecdfbb 6008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
6009 CFLAGS="$saved_CFLAGS"
6010fi
6011
6012# Flags needed for CLOOG
6013
6014
6015
700d40ca
ILT
6016# Check for LTO support.
6017# Check whether --enable-lto was given.
6018if test "${enable_lto+set}" = set; then :
6019 enableval=$enable_lto; enable_lto=$enableval
6020else
6021 enable_lto=yes; default_enable_lto=yes
6022fi
6023
6024
143754cd 6025
e49e5c92 6026ac_ext=c
700d40ca
ILT
6027ac_cpp='$CPP $CPPFLAGS'
6028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6030ac_compiler_gnu=$ac_cv_c_compiler_gnu
6031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6032$as_echo_n "checking how to run the C preprocessor... " >&6; }
6033# On Suns, sometimes $CPP names a directory.
6034if test -n "$CPP" && test -d "$CPP"; then
6035 CPP=
6036fi
6037if test -z "$CPP"; then
6038 if test "${ac_cv_prog_CPP+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6040else
6041 # Double quotes because CPP needs to be expanded
6042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6043 do
6044 ac_preproc_ok=false
6045for ac_c_preproc_warn_flag in '' yes
6046do
6047 # Use a header file that comes with gcc, so configuring glibc
6048 # with a fresh cross-compiler works.
6049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6050 # <limits.h> exists even on freestanding compilers.
6051 # On the NeXT, cc -E runs the code through the compiler's parser,
6052 # not just through cpp. "Syntax error" is here to catch this case.
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054/* end confdefs.h. */
6055#ifdef __STDC__
6056# include <limits.h>
6057#else
6058# include <assert.h>
6059#endif
6060 Syntax error
6061_ACEOF
6062if ac_fn_c_try_cpp "$LINENO"; then :
6063
6064else
6065 # Broken: fails on valid input.
6066continue
6067fi
6068rm -f conftest.err conftest.$ac_ext
6069
6070 # OK, works on sane cases. Now check whether nonexistent headers
6071 # can be detected and how.
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h. */
6074#include <ac_nonexistent.h>
6075_ACEOF
6076if ac_fn_c_try_cpp "$LINENO"; then :
6077 # Broken: success on invalid input.
6078continue
6079else
6080 # Passes both tests.
6081ac_preproc_ok=:
6082break
6083fi
6084rm -f conftest.err conftest.$ac_ext
6085
6086done
6087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088rm -f conftest.err conftest.$ac_ext
6089if $ac_preproc_ok; then :
6090 break
6091fi
6092
6093 done
6094 ac_cv_prog_CPP=$CPP
6095
6096fi
6097 CPP=$ac_cv_prog_CPP
6098else
6099 ac_cv_prog_CPP=$CPP
6100fi
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6102$as_echo "$CPP" >&6; }
6103ac_preproc_ok=false
6104for ac_c_preproc_warn_flag in '' yes
6105do
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6113/* end confdefs.h. */
6114#ifdef __STDC__
6115# include <limits.h>
6116#else
6117# include <assert.h>
6118#endif
6119 Syntax error
6120_ACEOF
6121if ac_fn_c_try_cpp "$LINENO"; then :
6122
6123else
6124 # Broken: fails on valid input.
6125continue
6126fi
6127rm -f conftest.err conftest.$ac_ext
6128
6129 # OK, works on sane cases. Now check whether nonexistent headers
6130 # can be detected and how.
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132/* end confdefs.h. */
6133#include <ac_nonexistent.h>
6134_ACEOF
6135if ac_fn_c_try_cpp "$LINENO"; then :
6136 # Broken: success on invalid input.
6137continue
6138else
6139 # Passes both tests.
6140ac_preproc_ok=:
6141break
6142fi
6143rm -f conftest.err conftest.$ac_ext
6144
6145done
6146# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6147rm -f conftest.err conftest.$ac_ext
6148if $ac_preproc_ok; then :
6149
6150else
6151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6153as_fn_error "C preprocessor \"$CPP\" fails sanity check
6154See \`config.log' for more details." "$LINENO" 5; }
6155fi
6156
6157ac_ext=c
6158ac_cpp='$CPP $CPPFLAGS'
6159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161ac_compiler_gnu=$ac_cv_c_compiler_gnu
6162
6163
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6165$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6166if test "${ac_cv_path_GREP+set}" = set; then :
6167 $as_echo_n "(cached) " >&6
6168else
6169 if test -z "$GREP"; then
6170 ac_path_GREP_found=false
6171 # Loop through the user's path and test for each of PROGNAME-LIST
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6174do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_prog in grep ggrep; do
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6180 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6181# Check for GNU ac_path_GREP and select it if it is found.
6182 # Check for GNU $ac_path_GREP
6183case `"$ac_path_GREP" --version 2>&1` in
6184*GNU*)
6185 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6186*)
6187 ac_count=0
6188 $as_echo_n 0123456789 >"conftest.in"
6189 while :
6190 do
6191 cat "conftest.in" "conftest.in" >"conftest.tmp"
6192 mv "conftest.tmp" "conftest.in"
6193 cp "conftest.in" "conftest.nl"
6194 $as_echo 'GREP' >> "conftest.nl"
6195 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6196 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6197 as_fn_arith $ac_count + 1 && ac_count=$as_val
6198 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6199 # Best one so far, save it but keep looking for a better one
6200 ac_cv_path_GREP="$ac_path_GREP"
6201 ac_path_GREP_max=$ac_count
6202 fi
6203 # 10*(2^10) chars as input seems more than enough
6204 test $ac_count -gt 10 && break
6205 done
6206 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6207esac
6208
6209 $ac_path_GREP_found && break 3
6210 done
6211 done
6212 done
6213IFS=$as_save_IFS
6214 if test -z "$ac_cv_path_GREP"; then
6215 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6216 fi
6217else
6218 ac_cv_path_GREP=$GREP
6219fi
6220
6221fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6223$as_echo "$ac_cv_path_GREP" >&6; }
6224 GREP="$ac_cv_path_GREP"
6225
6226
6227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6228$as_echo_n "checking for egrep... " >&6; }
6229if test "${ac_cv_path_EGREP+set}" = set; then :
6230 $as_echo_n "(cached) " >&6
6231else
6232 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6233 then ac_cv_path_EGREP="$GREP -E"
6234 else
6235 if test -z "$EGREP"; then
6236 ac_path_EGREP_found=false
6237 # Loop through the user's path and test for each of PROGNAME-LIST
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6240do
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_prog in egrep; do
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6246 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6247# Check for GNU ac_path_EGREP and select it if it is found.
6248 # Check for GNU $ac_path_EGREP
6249case `"$ac_path_EGREP" --version 2>&1` in
6250*GNU*)
6251 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6252*)
6253 ac_count=0
6254 $as_echo_n 0123456789 >"conftest.in"
6255 while :
6256 do
6257 cat "conftest.in" "conftest.in" >"conftest.tmp"
6258 mv "conftest.tmp" "conftest.in"
6259 cp "conftest.in" "conftest.nl"
6260 $as_echo 'EGREP' >> "conftest.nl"
6261 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6262 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6263 as_fn_arith $ac_count + 1 && ac_count=$as_val
6264 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6265 # Best one so far, save it but keep looking for a better one
6266 ac_cv_path_EGREP="$ac_path_EGREP"
6267 ac_path_EGREP_max=$ac_count
6268 fi
6269 # 10*(2^10) chars as input seems more than enough
6270 test $ac_count -gt 10 && break
6271 done
6272 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6273esac
6274
6275 $ac_path_EGREP_found && break 3
6276 done
6277 done
6278 done
6279IFS=$as_save_IFS
6280 if test -z "$ac_cv_path_EGREP"; then
6281 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6282 fi
6283else
6284 ac_cv_path_EGREP=$EGREP
6285fi
6286
6287 fi
6288fi
6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6290$as_echo "$ac_cv_path_EGREP" >&6; }
6291 EGREP="$ac_cv_path_EGREP"
6292
6293
6294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6295$as_echo_n "checking for ANSI C header files... " >&6; }
6296if test "${ac_cv_header_stdc+set}" = set; then :
6297 $as_echo_n "(cached) " >&6
6298else
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300/* end confdefs.h. */
6301#include <stdlib.h>
6302#include <stdarg.h>
6303#include <string.h>
6304#include <float.h>
6305
6306int
6307main ()
6308{
6309
6310 ;
6311 return 0;
6312}
6313_ACEOF
6314if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_cv_header_stdc=yes
6316else
6317 ac_cv_header_stdc=no
6318fi
6319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6320
6321if test $ac_cv_header_stdc = yes; then
6322 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324/* end confdefs.h. */
6325#include <string.h>
6326
6327_ACEOF
6328if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "memchr" >/dev/null 2>&1; then :
6330
6331else
6332 ac_cv_header_stdc=no
6333fi
6334rm -f conftest*
6335
6336fi
6337
6338if test $ac_cv_header_stdc = yes; then
6339 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h. */
6342#include <stdlib.h>
6343
6344_ACEOF
6345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6346 $EGREP "free" >/dev/null 2>&1; then :
6347
6348else
6349 ac_cv_header_stdc=no
6350fi
6351rm -f conftest*
6352
6353fi
6354
6355if test $ac_cv_header_stdc = yes; then
6356 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6357 if test "$cross_compiling" = yes; then :
6358 :
6359else
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361/* end confdefs.h. */
6362#include <ctype.h>
6363#include <stdlib.h>
6364#if ((' ' & 0x0FF) == 0x020)
6365# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6366# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6367#else
6368# define ISLOWER(c) \
6369 (('a' <= (c) && (c) <= 'i') \
6370 || ('j' <= (c) && (c) <= 'r') \
6371 || ('s' <= (c) && (c) <= 'z'))
6372# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6373#endif
6374
6375#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6376int
6377main ()
6378{
6379 int i;
6380 for (i = 0; i < 256; i++)
6381 if (XOR (islower (i), ISLOWER (i))
6382 || toupper (i) != TOUPPER (i))
6383 return 2;
6384 return 0;
6385}
6386_ACEOF
6387if ac_fn_c_try_run "$LINENO"; then :
6388
6389else
6390 ac_cv_header_stdc=no
6391fi
6392rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6393 conftest.$ac_objext conftest.beam conftest.$ac_ext
6394fi
6395
6396fi
6397fi
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6399$as_echo "$ac_cv_header_stdc" >&6; }
6400if test $ac_cv_header_stdc = yes; then
6401
6402$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6403
6404fi
6405
6406# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6408 inttypes.h stdint.h unistd.h
6409do :
6410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6412"
6413eval as_val=\$$as_ac_Header
6414 if test "x$as_val" = x""yes; then :
6415 cat >>confdefs.h <<_ACEOF
6416#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6417_ACEOF
6418
6419fi
6420
6421done
6422
6423
e49e5c92
DK
6424
6425
6426
6427target_elf=no
6428case $target in
6429 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6430 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6431 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6432 target_elf=no
6433 ;;
6434 *)
6435 target_elf=yes
6436 ;;
6437esac
6438
6439if test $target_elf = yes; then :
6440 if test x"$enable_lto" = x"yes" ; then
6441 # Make sure that libelf.h and gelf.h are available.
6442
6443# Check whether --with-libelf was given.
6444if test "${with_libelf+set}" = set; then :
6445 withval=$with_libelf;
6446fi
6447
6448
6449
6450# Check whether --with-libelf_include was given.
6451if test "${with_libelf_include+set}" = set; then :
6452 withval=$with_libelf_include;
6453fi
6454
6455
6456
6457# Check whether --with-libelf_lib was given.
6458if test "${with_libelf_lib+set}" = set; then :
6459 withval=$with_libelf_lib;
6460fi
6461
6462
6463 saved_CFLAGS="$CFLAGS"
6464 saved_CPPFLAGS="$CPPFLAGS"
6465 saved_LIBS="$LIBS"
6466
6467 case $with_libelf in
6468 "")
6469 libelflibs="-lelf"
6470 libelfinc="-I/usr/include/libelf"
6471 ;;
6472 *)
6473 libelflibs="-L$with_libelf/lib -lelf"
6474 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6475 LIBS="$libelflibs $LIBS"
6476 ;;
6477 esac
6478
6479 if test "x$with_libelf_include" != x; then
6480 libelfinc="-I$with_libelf_include"
6481 fi
6482
6483 if test "x$with_libelf_lib" != x; then
6484 libelflibs="-L$with_libelf_lib -lelf"
6485 LIBS="$libelflibs $LIBS"
6486 fi
6487
6488 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6489 && test -d ${srcdir}/libelf; then
6490 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6491 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6492 LIBS="$libelflibs $LIBS"
6493
6494 else
6495
6496 CFLAGS="$CFLAGS $libelfinc"
6497 CPPFLAGS="$CPPFLAGS $libelfinc"
6498 LIBS="$LIBS $libelflibs"
6499
6500 for ac_header in libelf.h
700d40ca
ILT
6501do :
6502 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6503if test "x$ac_cv_header_libelf_h" = x""yes; then :
6504 cat >>confdefs.h <<_ACEOF
6505#define HAVE_LIBELF_H 1
6506_ACEOF
6507 have_libelf_h=yes
6508fi
6509
6510done
6511
6512 for ac_header in gelf.h
6513do :
6514 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6515if test "x$ac_cv_header_gelf_h" = x""yes; then :
6516 cat >>confdefs.h <<_ACEOF
6517#define HAVE_GELF_H 1
6518_ACEOF
6519 have_gelf_h=yes
6520fi
6521
6522done
6523
6524
6525 for ac_header in libelf/libelf.h
6526do :
6527 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6528if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6529 cat >>confdefs.h <<_ACEOF
6530#define HAVE_LIBELF_LIBELF_H 1
6531_ACEOF
6532 have_libelf_libelf_h=yes
6533fi
6534
6535done
6536
6537 for ac_header in libelf/gelf.h
6538do :
6539 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6540if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6541 cat >>confdefs.h <<_ACEOF
6542#define HAVE_LIBELF_GELF_H 1
6543_ACEOF
6544 have_libelf_gelf_h=yes
6545fi
6546
6547done
6548
6549
6550 # If we couldn't find libelf.h and the user forced it, emit an error.
6551 if test x"$have_libelf_h" != x"yes" \
6552 && test x"$have_libelf_libelf_h" != x"yes" ; then
6553 if test x"$default_enable_lto" != x"yes" ; then
6554 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6555 else
6556 enable_lto=no
6557 libelflibs=
6558 libelfinc=
6559 fi
6560 fi
6561
6562 # If we couldn't find gelf.h and the user forced it, emit an error.
6563 if test x"$have_gelf_h" != x"yes" \
6564 && test x"$have_libelf_gelf_h" != x"yes" ; then
6565 if test x"$default_enable_lto" != x"yes" ; then
6566 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6567 else
6568 enable_lto=no
6569 libelflibs=
6570 libelfinc=
6571 fi
6572 fi
6573
6574 # Check that the detected libelf has the functions we need. We cannot
6575 # rely on just detecting the headers since they do not include
6576 # versioning information. Add functions, if needed.
6577 if test x"$enable_lto" = x"yes" ; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6579$as_echo_n "checking for the correct version of libelf... " >&6; }
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h. */
6582#include <libelf.h>
6583int
6584main ()
6585{
6586
6587 elf_errmsg (0);
6588 elf_getscn (0, 0);
6589 elf_nextscn (0, 0);
6590 elf_strptr (0, 0, 0);
6591 elf_getident (0, 0);
700d40ca
ILT
6592 elf_begin (0, 0, 0);
6593 elf_ndxscn (0);
6594 elf_end (0);
6595
6596 ;
6597 return 0;
6598}
6599_ACEOF
6600if ac_fn_c_try_link "$LINENO"; then :
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6602$as_echo "yes" >&6; };
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6606
6607fi
6608rm -f core conftest.err conftest.$ac_objext \
6609 conftest$ac_exeext conftest.$ac_ext
6610
a009f2e7
RW
6611 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
6612 # is determined in gcc/configure.ac.
6613 if test x"$enable_lto" = x"yes" ; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6615$as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617/* end confdefs.h. */
6618#include <libelf.h>
6619int
6620main ()
6621{
6622
6623 elf_getshdrstrndx (0, 0);
6624
6625 ;
6626 return 0;
6627}
6628_ACEOF
6629if ac_fn_c_try_link "$LINENO"; then :
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6631$as_echo "yes" >&6; };
6632else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634$as_echo "no" >&6; };
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6636$as_echo_n "checking for elf_getshstrndx... " >&6; }
6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6638/* end confdefs.h. */
6639#include <libelf.h>
6640int
6641main ()
6642{
6643
6644 elf_getshstrndx (0, 0);
6645
6646 ;
6647 return 0;
6648}
6649_ACEOF
6650if ac_fn_c_try_link "$LINENO"; then :
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6652$as_echo "yes" >&6; };
6653else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6656
6657fi
6658rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
6660
6661fi
6662rm -f core conftest.err conftest.$ac_objext \
6663 conftest$ac_exeext conftest.$ac_ext
6664 fi
6665
700d40ca
ILT
6666 # If we couldn't enable LTO and the user forced it, emit an error.
6667 if test x"$enable_lto" = x"no" \
6668 && test x"$default_enable_lto" != x"yes" ; then
6669 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6670Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6671to specify its location." "$LINENO" 5
6672 fi
6673 fi
6674
6675 CFLAGS="$saved_CFLAGS"
6676 CPPFLAGS="$saved_CPPFLAGS"
6677 LIBS="$saved_LIBS"
6678
1f53ca9a
AO
6679 fi
6680
700d40ca
ILT
6681 # Flags needed for libelf.
6682
6683
a8eb3f0a
DK
6684 # ELF platforms build the lto-plugin when GOLD is in use.
6685 build_lto_plugin=${ENABLE_GOLD}
700d40ca 6686fi
e49e5c92
DK
6687else
6688 if test x"$default_enable_lto" = x"yes" ; then
29821356 6689 case $target in
a8eb3f0a 6690 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
29821356
RW
6691 # On other non-ELF platforms, LTO must be explicitly enabled.
6692 *) enable_lto=no ;;
6693 esac
e49e5c92 6694 else
29821356
RW
6695 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6696 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6697 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6698 # warn during gcc/ subconfigure; unless you're bootstrapping with
6699 # -flto it won't be needed until after installation anyway.
6700 case $target in
a8eb3f0a 6701 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6702 *) if test x"$enable_lto" = x"yes"; then
6703 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6704 fi
6705 ;;
6706 esac
6707 fi
a8eb3f0a
DK
6708 # Among non-ELF, only Windows platforms support the lto-plugin so far.
6709 case $target in
6710 *-cygwin* | *-mingw*) build_lto_plugin=yes ;;
6711 *) ;;
6712 esac
e49e5c92
DK
6713 default_enable_lto=no
6714fi
6715
700d40ca 6716
e28c595f 6717
947f426e 6718# By default, C is the only stage 1 language.
9b134994 6719stage1_languages=,c,
1d39f329 6720
e8a5fa9c 6721# Target libraries that we bootstrap.
2aa2364a 6722bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6723
9e07f89d
NN
6724# Figure out what language subdirectories are present.
6725# Look if the user specified --enable-languages="..."; if not, use
6726# the environment variable $LANGUAGES if defined. $LANGUAGES might
6727# go away some day.
6728# NB: embedded tabs in this IF block -- do not untabify
6729if test -d ${srcdir}/gcc; then
6730 if test x"${enable_languages+set}" != xset; then
6731 if test x"${LANGUAGES+set}" = xset; then
6732 enable_languages="${LANGUAGES}"
6733 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6734 else
6735 enable_languages=all
6736 fi
6737 else
6738 if test x"${enable_languages}" = x ||
6739 test x"${enable_languages}" = xyes;
6740 then
6741 echo configure.in: --enable-languages needs at least one language argument 1>&2
6742 exit 1
6743 fi
6744 fi
6745 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6746
096f7d00
DE
6747 # 'f95' is the old name for the 'fortran' language. We issue a warning
6748 # and make the substitution.
6749 case ,${enable_languages}, in
6750 *,f95,*)
6751 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6752 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6753 ;;
6754 esac
6755
9e07f89d
NN
6756 # First scan to see if an enabled language requires some other language.
6757 # We assume that a given config-lang.in will list all the language
6758 # front ends it requires, even if some are required indirectly.
6759 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6760 case ${lang_frag} in
6761 ..) ;;
6762 # The odd quoting in the next line works around
6763 # an apparent bug in bash 1.12 on linux.
6764 ${srcdir}/gcc/[*]/config-lang.in) ;;
6765 *)
6766 # From the config-lang.in, get $language, $lang_requires
6767 language=
6768 lang_requires=
6769 . ${lang_frag}
6770 for other in ${lang_requires} ; do
6771 case ,${enable_languages}, in
6772 *,$other,*) ;;
6773 *,all,*) ;;
6774 *,$language,*)
6775 echo " \`$other' language required by \`$language'; enabling" 1>&2
6776 enable_languages="${enable_languages},${other}"
6777 ;;
6778 esac
6779 done
6780 ;;
6781 esac
6782 done
6783
9b134994 6784 new_enable_languages=,c,
700d40ca
ILT
6785
6786 # If LTO is enabled, add the LTO front end.
6787 extra_host_libiberty_configure_flags=
6788 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6789 case ,${enable_languages}, in
6790 *,lto,*) ;;
6791 *) enable_languages="${enable_languages},lto" ;;
6792 esac
a8eb3f0a 6793 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6794 configdirs="$configdirs lto-plugin"
6795 extra_host_libiberty_configure_flags=--enable-shared
6796 fi
6797 fi
6798
6799
9e07f89d 6800 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6801 potential_languages=,c,
9e07f89d
NN
6802
6803 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6804 case ${lang_frag} in
6805 ..) ;;
6806 # The odd quoting in the next line works around
6807 # an apparent bug in bash 1.12 on linux.
6808 ${srcdir}/gcc/[*]/config-lang.in) ;;
6809 *)
c6b750e1 6810 # From the config-lang.in, get $language, $target_libs,
1d39f329 6811 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6812 language=
6813 target_libs=
6814 lang_dirs=
64ce424c 6815 subdir_requires=
9b134994
PB
6816 boot_language=no
6817 build_by_default=yes
9e07f89d 6818 . ${lang_frag}
9b134994
PB
6819 if test x${language} = x; then
6820 echo "${lang_frag} doesn't set \$language." 1>&2
6821 exit 1
6822 fi
6823
1f53ca9a
AO
6824 if test "$language" = "c++" \
6825 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6826 boot_language=yes
6827 fi
6828
9b134994
PB
6829 case ,${enable_languages}, in
6830 *,${language},*)
9e07f89d
NN
6831 # Language was explicitly selected; include it.
6832 add_this_lang=yes
6833 ;;
9b134994
PB
6834 *,all,*)
6835 # 'all' was selected, select it if it is a default language
6836 add_this_lang=${build_by_default}
9e07f89d
NN
6837 ;;
6838 *)
6839 add_this_lang=no
6840 ;;
6841 esac
4b1cb4fe 6842
64ce424c 6843 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6844 for i in $subdir_requires; do
3d3adb43 6845 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6846 case ,${enable_languages}, in
6847 *,${language},*)
6848 # Specifically requested language; tell them.
81ecdfbb 6849 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6850 ;;
6851 *)
6852 # Silently disable.
9b134994 6853 add_this_lang=unsupported
64ce424c
PB
6854 ;;
6855 esac
6856 done
6857
9b134994
PB
6858 # Disable Ada if no preexisting GNAT is available.
6859 case ,${enable_languages},:${language}:${have_gnat} in
6860 *,${language},*:ada:no)
6861 # Specifically requested language; tell them.
81ecdfbb 6862 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6863 ;;
6864 *:ada:no)
6865 # Silently disable.
6866 add_this_lang=unsupported
6867 ;;
6868 esac
6869
59f7ec45
HPN
6870 # Disable a language that is unsupported by the target.
6871 case " $unsupported_languages " in
6872 *" $language "*)
9b134994 6873 add_this_lang=unsupported
59f7ec45
HPN
6874 ;;
6875 esac
6876
4b1cb4fe 6877 case $add_this_lang in
9b134994 6878 unsupported)
9e07f89d 6879 # Remove language-dependent dirs.
1d39f329
NN
6880 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6881 ;;
9b134994
PB
6882 no)
6883 # Remove language-dependent dirs; still show language as supported.
6884 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6885 potential_languages="${potential_languages}${language},"
6886 ;;
6887 yes)
6888 new_enable_languages="${new_enable_languages}${language},"
6889 potential_languages="${potential_languages}${language},"
1d39f329 6890 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
f8dc745f
RW
6891 case "${boot_language}:,$enable_stage1_languages," in
6892 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6893 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6894 case ",$stage1_languages," in
6895 *,$language,* | ,yes, | ,all,) ;;
6896 *) stage1_languages="${stage1_languages}${language}," ;;
6897 esac
e8a5fa9c
RW
6898 # We need to bootstrap any supporting libraries.
6899 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6900 ;;
6901 esac
6902 ;;
9e07f89d
NN
6903 esac
6904 ;;
6905 esac
6906 done
6907
81ecdfbb
RW
6908 # Check whether --enable-stage1-languages was given.
6909if test "${enable_stage1_languages+set}" = set; then :
6910 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6911 ,no,|,,)
6912 # Set it to something that will have no effect in the loop below
6913 enable_stage1_languages=c ;;
6914 ,yes,)
6915 enable_stage1_languages=`echo $new_enable_languages | \
6916 sed -e "s/^,//" -e "s/,$//" ` ;;
6917 *,all,*)
6918 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6919 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6920 esac
6921
6922 # Add "good" languages from enable_stage1_languages to stage1_languages,
6923 # while "bad" languages go in missing_languages. Leave no duplicates.
6924 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6925 case $potential_languages in
6926 *,$i,*)
6927 case $stage1_languages in
6928 *,$i,*) ;;
6929 *) stage1_languages="$stage1_languages$i," ;;
6930 esac ;;
6931 *)
6932 case $missing_languages in
6933 *,$i,*) ;;
6934 *) missing_languages="$missing_languages$i," ;;
6935 esac ;;
6936 esac
6937 done
81ecdfbb
RW
6938fi
6939
9b134994
PB
6940
6941 # Remove leading/trailing commas that were added for simplicity
6942 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6943 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6944 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6945 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6946
9e07f89d 6947 if test "x$missing_languages" != x; then
81ecdfbb 6948 as_fn_error "
27258dd4 6949The following requested languages could not be built: ${missing_languages}
81ecdfbb 6950Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6951 fi
9e07f89d
NN
6952 if test "x$new_enable_languages" != "x$enable_languages"; then
6953 echo The following languages will be built: ${new_enable_languages}
9b134994 6954 enable_languages="$new_enable_languages"
9e07f89d 6955 fi
9b134994 6956
c6b750e1 6957
81ec575a 6958 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6959fi
6960
a6df5a19
PB
6961# Handle --disable-<component> generically.
6962for dir in $configdirs $build_configdirs $target_configdirs ; do
6963 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6964 varname=`echo $dirname | sed -e s/+/_/g`
6965 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6966 noconfigdirs="$noconfigdirs $dir"
6967 fi
6968done
6969
4f0ef2d8 6970# Check for Boehm's garbage collector
81ecdfbb
RW
6971# Check whether --enable-objc-gc was given.
6972if test "${enable_objc_gc+set}" = set; then :
6973 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6974 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6975 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6976 ;;
6977esac
81ecdfbb
RW
6978fi
6979
4f0ef2d8
CD
6980
6981# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6982case ,${enable_languages},:${enable_objc_gc} in
6983 *,objc,*:yes)
4f0ef2d8
CD
6984 # Keep target-boehm-gc if requested for Objective-C.
6985 ;;
4f0ef2d8 6986 *)
d42c4017
DA
6987 # Otherwise remove target-boehm-gc depending on target-libjava.
6988 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6989 noconfigdirs="$noconfigdirs target-boehm-gc"
6990 fi
4f0ef2d8
CD
6991 ;;
6992esac
6993
caeba88f
AL
6994# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6995# $build_configdirs and $target_configdirs.
9e07f89d
NN
6996# If we have the source for $noconfigdirs entries, add them to $notsupp.
6997
6998notsupp=""
6999for dir in . $skipdirs $noconfigdirs ; do
caeba88f 7000 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
7001 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7002 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
7003 if test -r $srcdir/$dirname/configure ; then
7004 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7005 true
7006 else
7007 notsupp="$notsupp $dir"
7008 fi
7009 fi
7010 fi
caeba88f
AL
7011 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7012 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
7013 if test -r $srcdir/$dirname/configure ; then
7014 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7015 true
7016 else
7017 notsupp="$notsupp $dir"
7018 fi
7019 fi
7020 fi
9e07f89d
NN
7021 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7022 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
7023 if test -r $srcdir/$dirname/configure ; then
7024 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7025 true
7026 else
7027 notsupp="$notsupp $dir"
7028 fi
7029 fi
7030 fi
7031done
7032
7033# Sometimes the tools are distributed with libiberty but with no other
7034# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 7035# Don't let libgcc imply libiberty either.
9e07f89d 7036if test -n "${target_configdirs}" ; then
f86e35b8 7037 libgcc=
9e07f89d
NN
7038 others=
7039 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
7040 if test "$i" = "libgcc"; then
7041 libgcc=target-libgcc
7042 elif test "$i" != "libiberty" ; then
9e07f89d
NN
7043 if test -r $srcdir/$i/configure ; then
7044 others=yes;
7045 break;
7046 fi
7047 fi
7048 done
7049 if test -z "${others}" ; then
f86e35b8 7050 target_configdirs=$libgcc
9e07f89d
NN
7051 fi
7052fi
7053
7054# Quietly strip out all directories which aren't configurable in this tree.
7055# This relies on all configurable subdirectories being autoconfiscated, which
7056# is now the case.
6a9cf61e
PB
7057build_configdirs_all="$build_configdirs"
7058build_configdirs=
7059for i in ${build_configdirs_all} ; do
c6b750e1 7060 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
7061 if test -f ${srcdir}/$j/configure ; then
7062 build_configdirs="${build_configdirs} $i"
7063 fi
7064done
7065
9e07f89d
NN
7066configdirs_all="$configdirs"
7067configdirs=
7068for i in ${configdirs_all} ; do
7069 if test -f ${srcdir}/$i/configure ; then
7070 configdirs="${configdirs} $i"
7071 fi
7072done
6a9cf61e 7073
9e07f89d
NN
7074target_configdirs_all="$target_configdirs"
7075target_configdirs=
7076for i in ${target_configdirs_all} ; do
c6b750e1 7077 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
7078 if test -f ${srcdir}/$j/configure ; then
7079 target_configdirs="${target_configdirs} $i"
7080 fi
7081done
7082
7083# Produce a warning message for the subdirs we can't configure.
7084# This isn't especially interesting in the Cygnus tree, but in the individual
7085# FSF releases, it's important to let people know when their machine isn't
7086# supported by the one or two programs in a package.
7087
7088if test -n "${notsupp}" && test -z "${norecursion}" ; then
7089 # If $appdirs is non-empty, at least one of those directories must still
7090 # be configured, or we error out. (E.g., if the gas release supports a
7091 # specified target in some subdirs but not the gas subdir, we shouldn't
7092 # pretend that all is well.)
7093 if test -n "$appdirs" ; then
7094 for dir in $appdirs ; do
7095 if test -r $dir/Makefile.in ; then
7096 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7097 appdirs=""
7098 break
7099 fi
6a9cf61e 7100 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
7101 appdirs=""
7102 break
7103 fi
7104 fi
7105 done
7106 if test -n "$appdirs" ; then
7107 echo "*** This configuration is not supported by this package." 1>&2
7108 exit 1
7109 fi
7110 fi
7111 # Okay, some application will build, or we don't care to check. Still
7112 # notify of subdirs not getting built.
7113 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7114 echo " ${notsupp}" 1>&2
7115 echo " (Any other directories should still work fine.)" 1>&2
7116fi
7117
7118case "$host" in
7119 *msdosdjgpp*)
7120 enable_gdbtk=no ;;
7121esac
7122
18f6b6ee
PB
7123# To find our prefix, in gcc_cv_tool_prefix.
7124
7125# The user is always right.
7126if test "${PATH_SEPARATOR+set}" != set; then
7127 echo "#! /bin/sh" >conf$$.sh
7128 echo "exit 0" >>conf$$.sh
7129 chmod +x conf$$.sh
7130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7131 PATH_SEPARATOR=';'
7132 else
7133 PATH_SEPARATOR=:
7134 fi
7135 rm -f conf$$.sh
7136fi
7137
7138
7139
7140if test "x$exec_prefix" = xNONE; then
7141 if test "x$prefix" = xNONE; then
7142 gcc_cv_tool_prefix=$ac_default_prefix
7143 else
7144 gcc_cv_tool_prefix=$prefix
7145 fi
7146else
7147 gcc_cv_tool_prefix=$exec_prefix
7148fi
7149
7150# If there is no compiler in the tree, use the PATH only. In any
7151# case, if there is no compiler in the tree nobody should use
7152# AS_FOR_TARGET and LD_FOR_TARGET.
7153if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7154 gcc_version=`cat $srcdir/gcc/BASE-VER`
7155 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7156 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7157 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7158 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7159 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7160 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7161else
7162 gcc_cv_tool_dirs=
7163fi
7164
7165if test x$build = x$target && test -n "$md_exec_prefix"; then
7166 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7167fi
7168
7169
7170
9e07f89d
NN
7171copy_dirs=
7172
c6b750e1 7173
81ecdfbb
RW
7174# Check whether --with-build-sysroot was given.
7175if test "${with_build_sysroot+set}" = set; then :
7176 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
7177 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7178 fi
7179else
7180 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 7181fi
a19b6204
MM
7182
7183
8a6ee3ab 7184
81ecdfbb
RW
7185
7186# Check whether --with-debug-prefix-map was given.
7187if test "${with_debug_prefix_map+set}" = set; then :
7188 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
7189 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7190 for debug_map in $withval; do
7191 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7192 done
7193 fi
7194else
7195 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
7196fi
7197
8a6ee3ab
JM
7198
7199
7f6ef0c0
PB
7200# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7201# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7202# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7203# We want to ensure that TARGET libraries (which we know are built with
7204# gcc) are built with "-O2 -g", so include those options when setting
7205# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7206if test "x$CFLAGS_FOR_TARGET" = x; then
7207 CFLAGS_FOR_TARGET=$CFLAGS
7208 case " $CFLAGS " in
7209 *" -O2 "*) ;;
7210 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7211 esac
7212 case " $CFLAGS " in
7213 *" -g "* | *" -g3 "*) ;;
7214 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7215 esac
7216fi
7217
7218
7219if test "x$CXXFLAGS_FOR_TARGET" = x; then
7220 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7221 case " $CXXFLAGS " in
7222 *" -O2 "*) ;;
7223 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7224 esac
7225 case " $CXXFLAGS " in
7226 *" -g "* | *" -g3 "*) ;;
7227 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7228 esac
7229fi
7230
7231
9e07f89d
NN
7232# Handle --with-headers=XXX. If the value is not "yes", the contents of
7233# the named directory are copied to $(tooldir)/sys-include.
7234if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7235 if test x${is_cross_compiler} = xno ; then
7236 echo 1>&2 '***' --with-headers is only supported when cross compiling
7237 exit 1
7238 fi
7239 if test x"${with_headers}" != xyes ; then
18f6b6ee 7240 x=${gcc_cv_tool_prefix}
c6b750e1 7241 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
7242 fi
7243fi
7244
7245# Handle --with-libs=XXX. If the value is not "yes", the contents of
7246# the name directories are copied to $(tooldir)/lib. Multiple directories
7247# are permitted.
7248if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7249 if test x${is_cross_compiler} = xno ; then
7250 echo 1>&2 '***' --with-libs is only supported when cross compiling
7251 exit 1
7252 fi
7253 if test x"${with_libs}" != xyes ; then
7254 # Copy the libraries in reverse order, so that files in the first named
7255 # library override files in subsequent libraries.
18f6b6ee 7256 x=${gcc_cv_tool_prefix}
9e07f89d 7257 for l in ${with_libs}; do
c6b750e1 7258 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
7259 done
7260 fi
7261fi
7262
700d40ca 7263# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
7264#
7265# This is done by determining whether or not the appropriate directory
7266# is available, and by checking whether or not specific configurations
7267# have requested that this magic not happen.
c6b750e1
DJ
7268#
7269# The command line options always override the explicit settings in
2429c060
PB
7270# configure.in, and the settings in configure.in override this magic.
7271#
c6b750e1 7272# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 7273# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
7274# --without-gnu-ld options for the configure script. Similarly, if
7275# the default is to use the included zlib and you don't want to do that,
7276# you should use the --with-system-zlib option for the configure script.
2429c060
PB
7277
7278if test x${use_gnu_as} = x &&
7279 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7280 with_gnu_as=yes
7281 extra_host_args="$extra_host_args --with-gnu-as"
7282fi
7283
7284if test x${use_gnu_ld} = x &&
93f9b408 7285 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
7286 with_gnu_ld=yes
7287 extra_host_args="$extra_host_args --with-gnu-ld"
7288fi
7289
700d40ca
ILT
7290if test x${use_included_zlib} = x &&
7291 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7292 :
7293else
7294 with_system_zlib=yes
7295 extra_host_args="$extra_host_args --with-system-zlib"
7296fi
7297
2429c060
PB
7298# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7299# can detect this case.
7300
7301if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7302 with_newlib=yes
7303 extra_host_args="$extra_host_args --with-newlib"
7304fi
7305
9e07f89d
NN
7306# Handle ${copy_dirs}
7307set fnord ${copy_dirs}
7308shift
7309while test $# != 0 ; do
7310 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7311 :
7312 else
7313 echo Copying $1 to $2
7314
7315 # Use the install script to create the directory and all required
7316 # parent directories.
7317 if test -d $2 ; then
7318 :
7319 else
7320 echo >config.temp
7321 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7322 fi
7323
7324 # Copy the directory, assuming we have tar.
7325 # FIXME: Should we use B in the second tar? Not all systems support it.
7326 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7327
7328 # It is the responsibility of the user to correctly adjust all
7329 # symlinks. If somebody can figure out how to handle them correctly
7330 # here, feel free to add the code.
7331
7332 echo $1 > $2/COPIED
7333 fi
7334 shift; shift
7335done
7336
2429c060
PB
7337# Determine a target-dependent exec_prefix that the installed
7338# gcc will search in. Keep this list sorted by triplet, with
7339# the *-*-osname triplets last.
7340md_exec_prefix=
7341case "${target}" in
7342 alpha*-*-*vms*)
7343 md_exec_prefix=/gnu/lib/gcc-lib
7344 ;;
521ec477 7345 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
7346 md_exec_prefix=/dev/env/DJDIR/bin
7347 ;;
521ec477 7348 i[34567]86-*-sco3.2v5*)
2429c060
PB
7349 if test $with_gnu_as = yes; then
7350 md_exec_prefix=/usr/gnu/bin
7351 else
7352 md_exec_prefix=/usr/ccs/bin/elf
7353 fi
7354 ;;
7355
7356 mn10300-*-* | \
7357 powerpc-*-chorusos* | \
7358 powerpc*-*-eabi* | \
7359 powerpc*-*-sysv* | \
7360 powerpc*-*-kaos* | \
7361 s390x-ibm-tpf*)
7362 md_exec_prefix=/usr/ccs/bin
7363 ;;
7364 sparc64-*-elf*)
7365 ;;
7366 v850*-*-*)
7367 md_exec_prefix=/usr/ccs/bin
7368 ;;
8b66833e 7369 xtensa*-*-elf*)
2429c060
PB
7370 ;;
7371
7372 *-*-beos* | \
7373 *-*-elf* | \
7374 *-*-hpux* | \
7375 *-*-netware* | \
7376 *-*-nto-qnx* | \
7377 *-*-rtems* | \
7378 *-*-solaris2* | \
521ec477 7379 *-*-sysv[45]* | \
2429c060
PB
7380 *-*-vxworks* | \
7381 *-wrs-windiss)
7382 md_exec_prefix=/usr/ccs/bin
7383 ;;
7384esac
7385
a0da8069
NN
7386extra_arflags_for_target=
7387extra_nmflags_for_target=
7388extra_ranlibflags_for_target=
7389target_makefile_frag=/dev/null
7390case "${target}" in
4e206d7e
DB
7391 mep*-*-*)
7392 target_makefile_frag="config/mt-mep"
7393 ;;
77d7106f
AM
7394 spu-*-*)
7395 target_makefile_frag="config/mt-spu"
7396 ;;
429acdec
RS
7397 mips*-sde-elf*)
7398 target_makefile_frag="config/mt-sde"
7399 ;;
f3b1e08e
RS
7400 mipsisa*-*-elfoabi*)
7401 target_makefile_frag="config/mt-mips-elfoabi"
7402 ;;
e7c8859c
RS
7403 mips*-*-*linux* | mips*-*-gnu*)
7404 target_makefile_frag="config/mt-mips-gnu"
7405 ;;
2a3124ca 7406 *-*-netware*)
a0da8069
NN
7407 target_makefile_frag="config/mt-netware"
7408 ;;
29383458 7409 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 7410 target_makefile_frag="config/mt-gnu"
a0da8069
NN
7411 ;;
7412 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 7413 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
7414 # commands to handle both 32-bit and 64-bit objects. These flags are
7415 # harmless if we're using GNU nm or ar.
7416 extra_arflags_for_target=" -X32_64"
7417 extra_nmflags_for_target=" -B -X32_64"
7418 ;;
92f4e989
JM
7419 *-*-darwin[3-9]*)
7420 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
7421 extra_ranlibflags_for_target=" -c"
7422 ;;
7423 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7424 target_makefile_frag="config/mt-wince"
7425 ;;
7426esac
7427
7428alphaieee_frag=/dev/null
7429case $target in
7430 alpha*-*-*)
7431 # This just makes sure to use the -mieee option to build target libs.
7432 # This should probably be set individually by each library.
7433 alphaieee_frag="config/mt-alphaieee"
7434 ;;
7435esac
7436
7437# If --enable-target-optspace always use -Os instead of -O2 to build
7438# the target libraries, similarly if it is not specified, use -Os
7439# on selected platforms.
7440ospace_frag=/dev/null
7441case "${enable_target_optspace}:${target}" in
7442 yes:*)
7443 ospace_frag="config/mt-ospace"
7444 ;;
7445 :d30v-*)
7446 ospace_frag="config/mt-d30v"
7447 ;;
7448 :m32r-* | :d10v-* | :fr30-*)
7449 ospace_frag="config/mt-ospace"
7450 ;;
7451 no:* | :*)
7452 ;;
7453 *)
7454 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7455 ;;
7456esac
7457
a0da8069
NN
7458# Default to using --with-stabs for certain targets.
7459if test x${with_stabs} = x ; then
7460 case "${target}" in
e31d1ea3 7461 mips*-*-irix[56]*)
a0da8069
NN
7462 ;;
7463 mips*-*-* | alpha*-*-osf*)
7464 with_stabs=yes;
7465 extra_host_args="${extra_host_args} --with-stabs"
7466 ;;
7467 esac
7468fi
7469
7470# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7471# them automatically.
7472case "${host}" in
c6b750e1 7473 hppa*64*-*-hpux11*)
a0da8069
NN
7474 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7475 ;;
7476esac
7477
a0da8069
NN
7478# Some systems (e.g., one of the i386-aix systems the gas testers are
7479# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7480tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7481build_tooldir=${tooldir}
7482
a0da8069
NN
7483# Create a .gdbinit file which runs the one in srcdir
7484# and tells GDB to look there for source files.
7485
7486if test -r ${srcdir}/.gdbinit ; then
7487 case ${srcdir} in
7488 .) ;;
7489 *) cat > ./.gdbinit <<EOF
7490# ${NO_EDIT}
7491dir ${srcdir}
7492dir .
7493source ${srcdir}/.gdbinit
7494EOF
7495 ;;
7496 esac
7497fi
7498
a0da8069
NN
7499# Make sure that the compiler is able to generate an executable. If it
7500# can't, we are probably in trouble. We don't care whether we can run the
7501# executable--we might be using a cross compiler--we only care whether it
7502# can be created. At this point the main configure script has set CC.
7503we_are_ok=no
7504echo "int main () { return 0; }" > conftest.c
7505${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7506if test $? = 0 ; then
7507 if test -s conftest || test -s conftest.exe ; then
7508 we_are_ok=yes
7509 fi
c6b750e1 7510fi
a0da8069
NN
7511case $we_are_ok in
7512 no)
7513 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7514 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7515 rm -f conftest*
7516 exit 1
7517 ;;
7518esac
7519rm -f conftest*
7520
7521# The Solaris /usr/ucb/cc compiler does not appear to work.
7522case "${host}" in
7523 sparc-sun-solaris2*)
7524 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7525 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7526 could_use=
7527 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7528 if test -d /opt/cygnus/bin ; then
7529 if test "$could_use" = "" ; then
7530 could_use="/opt/cygnus/bin"
7531 else
7532 could_use="$could_use or /opt/cygnus/bin"
7533 fi
7534 fi
7535 if test "$could_use" = "" ; then
7536 echo "Warning: compilation may fail because you're using"
7537 echo "/usr/ucb/cc. You should change your PATH or CC "
7538 echo "variable and rerun configure."
7539 else
7540 echo "Warning: compilation may fail because you're using"
7541 echo "/usr/ucb/cc, when you should use the C compiler from"
7542 echo "$could_use. You should change your"
7543 echo "PATH or CC variable and rerun configure."
7544 fi
7545 fi
7546 ;;
7547esac
7548
3bbd2f8f 7549# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7550case "${host}" in
7551 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 7552 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7553 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7554 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7555esac
7556
3bbd2f8f 7557# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7558# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7559# built executables to PATH.
3bbd2f8f
AL
7560if test "$RPATH_ENVVAR" = PATH; then
7561 GCC_SHLIB_SUBDIR=/shlib
7562else
7563 GCC_SHLIB_SUBDIR=
7564fi
7565
a0da8069
NN
7566# Record target_configdirs and the configure arguments for target and
7567# build configuration in Makefile.
7568target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7569build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7570
2aa2364a
JR
7571# If we are building libgomp, bootstrap it.
7572if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7573 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7574fi
7575
a0da8069
NN
7576# Determine whether gdb needs tk/tcl or not.
7577# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7578# and in that case we want gdb to be built without tk. Ugh!
7579# In fact I believe gdb is the *only* package directly dependent on tk,
7580# so we should be able to put the 'maybe's in unconditionally and
7581# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7582# 100% sure that that's safe though.
c180f501 7583
675c6968 7584gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7585case "$enable_gdbtk" in
7586 no)
7587 GDB_TK="" ;;
c180f501
AC
7588 yes)
7589 GDB_TK="${gdb_tk}" ;;
a0da8069 7590 *)
c180f501
AC
7591 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7592 # distro. Eventually someone will fix this and move Insight, nee
7593 # gdbtk to a separate directory.
7594 if test -d ${srcdir}/gdb/gdbtk ; then
7595 GDB_TK="${gdb_tk}"
7596 else
7597 GDB_TK=""
7598 fi
7599 ;;
a0da8069 7600esac
907be67c
DJ
7601CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7602INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7603
6bd3dfaa 7604# Strip out unwanted targets.
dd12c3a8
NN
7605
7606# While at that, we remove Makefiles if we were started for recursive
7607# configuration, so that the top-level Makefile reconfigures them,
7608# like we used to do when configure itself was recursive.
dd12c3a8 7609
06a51eac
RW
7610# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7611# but now we're fixing up the Makefile ourselves with the additional
7612# commands passed to AC_CONFIG_FILES. Use separate variables
7613# extrasub-{build,host,target} not because there is any reason to split
7614# the substitutions up that way, but only to remain below the limit of
7615# 99 commands in a script, for HP-UX sed.
7616# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7617
81ecdfbb
RW
7618# Check whether --enable-bootstrap was given.
7619if test "${enable_bootstrap+set}" = set; then :
7620 enableval=$enable_bootstrap;
319cab08 7621else
9cb3fa6f 7622 enable_bootstrap=default
81ecdfbb
RW
7623fi
7624
319cab08 7625
9cb3fa6f
PB
7626# Issue errors and warnings for invalid/strange bootstrap combinations.
7627case "$configdirs" in
7628 *gcc*) have_compiler=yes ;;
7629 *) have_compiler=no ;;
7630esac
7631
7632case "$have_compiler:$host:$target:$enable_bootstrap" in
7633 *:*:*:no) ;;
7634
0aed8855 7635 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7636 # and we are in a native configuration.
7637 yes:$build:$build:default)
0aed8855 7638 enable_bootstrap=yes ;;
9cb3fa6f
PB
7639
7640 *:*:*:default)
7641 enable_bootstrap=no ;;
7642
7643 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7644 yes:$build:$build:yes)
9cb3fa6f
PB
7645 ;;
7646
7647 # Other configurations, but we have a compiler. Assume the user knows
7648 # what he's doing.
80911fe1 7649 yes:*:*:yes)
81ecdfbb
RW
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7651$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7652 ;;
7653
7654 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7655 no:*:*:yes)
81ecdfbb 7656 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7657
7658 # Fail if wrong command line
7659 *)
81ecdfbb 7660 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7661 ;;
7662esac
7663
4385ad3c
RW
7664case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7665 *,c++,*:yes:yes) ;;
7666 *:yes:yes)
7667 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7668 ;;
7669esac
7670
16b1ad29
RW
7671case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7672 yes:yes:*\ gold\ *:*,c++,*) ;;
7673 yes:yes:*\ gold\ *:*)
7674 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7675 ;;
7676esac
7677
9cb3fa6f 7678# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7679case $enable_bootstrap in
319cab08 7680 yes)
96655cc4
AO
7681 bootstrap_suffix=bootstrap
7682 BUILD_CONFIG=bootstrap-debug
7683 ;;
319cab08 7684 no)
96655cc4
AO
7685 bootstrap_suffix=no-bootstrap
7686 BUILD_CONFIG=
7687 ;;
319cab08
PB
7688esac
7689
96655cc4
AO
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7691$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7692
7693
7694# Check whether --with-build-config was given.
7695if test "${with_build_config+set}" = set; then :
7696 withval=$with_build_config; case $with_build_config in
7697 yes) with_build_config= ;;
7698 no) with_build_config= BUILD_CONFIG= ;;
7699 esac
7700fi
7701
7702
7703if test "x${with_build_config}" != x; then
7704 BUILD_CONFIG=$with_build_config
7705else
7706 case $BUILD_CONFIG in
7707 bootstrap-debug)
7708 if echo "int f (void) { return 0; }" > conftest.c &&
7709 ${CC} -c conftest.c &&
7710 mv conftest.o conftest.o.g0 &&
7711 ${CC} -c -g conftest.c &&
7712 mv conftest.o conftest.o.g &&
a009f2e7 7713 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7714 :
7715 else
7716 BUILD_CONFIG=
7717 fi
7718 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7719 ;;
7720 esac
7721fi
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7723$as_echo "$BUILD_CONFIG" >&6; }
7724
7725
06a51eac 7726extrasub_build=
6a9cf61e 7727for module in ${build_configdirs} ; do
498d4a71
CF
7728 if test -z "${no_recursion}" \
7729 && test -f ${build_subdir}/${module}/Makefile; then
7730 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7731 rm -f ${build_subdir}/${module}/Makefile
7732 fi
06a51eac 7733 extrasub_build="$extrasub_build
498d4a71
CF
7734/^@if build-$module\$/d
7735/^@endif build-$module\$/d
7736/^@if build-$module-$bootstrap_suffix\$/d
7737/^@endif build-$module-$bootstrap_suffix\$/d"
7738done
06a51eac 7739extrasub_host=
498d4a71 7740for module in ${configdirs} ; do
80911fe1 7741 if test -z "${no_recursion}"; then
8cf39b1b 7742 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7743 if test -f ${file}; then
7744 echo 1>&2 "*** removing ${file} to force reconfigure"
7745 rm -f ${file}
7746 fi
7747 done
498d4a71 7748 fi
06a51eac 7749 extrasub_host="$extrasub_host
498d4a71
CF
7750/^@if $module\$/d
7751/^@endif $module\$/d
7752/^@if $module-$bootstrap_suffix\$/d
7753/^@endif $module-$bootstrap_suffix\$/d"
7754done
06a51eac 7755extrasub_target=
498d4a71
CF
7756for module in ${target_configdirs} ; do
7757 if test -z "${no_recursion}" \
7758 && test -f ${target_subdir}/${module}/Makefile; then
7759 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7760 rm -f ${target_subdir}/${module}/Makefile
7761 fi
e8a5fa9c
RW
7762
7763 # We only bootstrap target libraries listed in bootstrap_target_libs.
7764 case $bootstrap_target_libs in
7765 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7766 *) target_bootstrap_suffix=no-bootstrap ;;
7767 esac
7768
06a51eac 7769 extrasub_target="$extrasub_target
498d4a71
CF
7770/^@if target-$module\$/d
7771/^@endif target-$module\$/d
e8a5fa9c
RW
7772/^@if target-$module-$target_bootstrap_suffix\$/d
7773/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7774done
7775
06a51eac
RW
7776# Do the final fixup along with target modules.
7777extrasub_target="$extrasub_target
6bd3dfaa 7778/^@if /,/^@endif /d"
a0da8069
NN
7779
7780# Create the serialization dependencies. This uses a temporary file.
7781
81ecdfbb
RW
7782# Check whether --enable-serial-configure was given.
7783if test "${enable_serial_configure+set}" = set; then :
7784 enableval=$enable_serial_configure;
7785fi
e6bfb94a
AO
7786
7787
1047cb91
DD
7788case ${enable_serial_configure} in
7789 yes)
7790 enable_serial_build_configure=yes
7791 enable_serial_host_configure=yes
7792 enable_serial_target_configure=yes
7793 ;;
7794esac
7795
a0da8069
NN
7796# These force 'configure's to be done one at a time, to avoid problems
7797# with contention over a shared config.cache.
7798rm -f serdep.tmp
e6bfb94a 7799echo '# serdep.tmp' > serdep.tmp
a0da8069 7800olditem=
1047cb91 7801test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7802for item in ${build_configdirs} ; do
7803 case ${olditem} in
7804 "") ;;
e6bfb94a 7805 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7806 esac
7807 olditem=${item}
7808done
7809olditem=
1047cb91 7810test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7811for item in ${configdirs} ; do
7812 case ${olditem} in
7813 "") ;;
e6bfb94a 7814 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7815 esac
7816 olditem=${item}
7817done
7818olditem=
1047cb91 7819test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7820for item in ${target_configdirs} ; do
7821 case ${olditem} in
7822 "") ;;
e6bfb94a 7823 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7824 esac
7825 olditem=${item}
7826done
7827serialization_dependencies=serdep.tmp
7828
7829
e6bfb94a 7830# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7831# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7832# might not want to pass down to subconfigures. The exception being
7833# --cache-file=/dev/null, which is used to turn off the use of cache
7834# files altogether, and which should be passed on to subconfigures.
7835# Also strip program-prefix, program-suffix, and program-transform-name,
7836# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7837baseargs=
7838keep_next=no
7839skip_next=no
7840eval "set -- $ac_configure_args"
18f6b6ee
PB
7841for ac_arg
7842do
c6b750e1
DJ
7843 if test X"$skip_next" = X"yes"; then
7844 skip_next=no
7845 continue
7846 fi
7847 if test X"$keep_next" = X"yes"; then
7848 case $ac_arg in
7849 *\'*)
7850 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7851 esac
7852 baseargs="$baseargs '$ac_arg'"
7853 keep_next=no
7854 continue
7855 fi
7856
7857 # Handle separated arguments. Based on the logic generated by
7858 # autoconf 2.59.
7859 case $ac_arg in
7860 *=* | --config-cache | -C | -disable-* | --disable-* \
7861 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7862 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7863 | -with-* | --with-* | -without-* | --without-* | --x)
7864 separate_arg=no
7865 ;;
7866 -*)
7867 separate_arg=yes
7868 ;;
7869 *)
7870 separate_arg=no
7871 ;;
7872 esac
7873
7874 case "$ac_arg" in
30167e0a
NC
7875 --cache-file=/dev/null | \
7876 -cache-file=/dev/null )
7877 # Handled here to avoid the test to skip args below.
7878 baseargs="$baseargs '$ac_arg'"
7879 # Assert: $separate_arg should always be no.
7880 keep_next=$separate_arg
7881 ;;
c6b750e1
DJ
7882 --no*)
7883 continue
7884 ;;
7885 --c* | \
7886 --sr* | \
7887 --ho* | \
7888 --bu* | \
7889 --t* | \
7890 --program-* | \
7891 -cache_file* | \
7892 -srcdir* | \
7893 -host* | \
7894 -build* | \
7895 -target* | \
7896 -program-prefix* | \
7897 -program-suffix* | \
7898 -program-transform-name* )
7899 skip_next=$separate_arg
7900 continue
7901 ;;
7902 -*)
7903 # An option. Add it.
7904 case $ac_arg in
7905 *\'*)
7906 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7907 esac
7908 baseargs="$baseargs '$ac_arg'"
7909 keep_next=$separate_arg
7910 ;;
7911 *)
7912 # Either a variable assignment, or a nonopt (triplet). Don't
7913 # pass it down; let the Makefile handle this.
7914 continue
7915 ;;
7916 esac
7917done
7918# Remove the initial space we just introduced and, as these will be
7919# expanded by make, quote '$'.
7920baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7921
f27d4f92
DJ
7922# Add in --program-transform-name, after --program-prefix and
7923# --program-suffix have been applied to it. Autoconf has already
7924# doubled dollar signs and backslashes in program_transform_name; we want
7925# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7926# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7927# Also, because we want to override the logic in subdir configure scripts to
7928# choose program_transform_name, replace any s,x,x, with s,y,y,.
7929sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7930${program_transform_name}
7931EOF_SED
7932gcc_transform_name=`cat conftestsed.out`
7933rm -f conftestsed.out
7934baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7935if test "$silent" = yes; then
7936 baseargs="$baseargs --silent"
7937fi
34a0f3cf 7938baseargs="$baseargs --disable-option-checking"
f27d4f92 7939
4074d5f2
RW
7940# Record and document user additions to sub configure arguments.
7941
7942
7943
7944
a0da8069
NN
7945# For the build-side libraries, we just need to pretend we're native,
7946# and not use the same cache file. Multilibs are neither needed nor
7947# desired.
4074d5f2 7948build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7949
7950# For host modules, accept cache file option, or specification as blank.
7951case "${cache_file}" in
7952"") # empty
7953 cache_file_option="" ;;
7954/* | [A-Za-z]:[\\/]* ) # absolute path
7955 cache_file_option="--cache-file=${cache_file}" ;;
7956*) # relative path
7957 cache_file_option="--cache-file=../${cache_file}" ;;
7958esac
7959
82252c06
NN
7960# Host dirs don't like to share a cache file either, horribly enough.
7961# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7962host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7963
4074d5f2 7964target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7965
7966# Passing a --with-cross-host argument lets the target libraries know
7967# whether they are being built with a cross-compiler or being built
7968# native. However, it would be better to use other mechanisms to make the
7969# sorts of decisions they want to make on this basis. Please consider
7970# this option to be deprecated. FIXME.
7971if test x${is_cross_compiler} = xyes ; then
c6b750e1 7972 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7973fi
7974
938d2b74
RW
7975# Default to --enable-multilib.
7976if test x${enable_multilib} = x ; then
a0da8069 7977 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7978fi
a0da8069
NN
7979
7980# Pass --with-newlib if appropriate. Note that target_configdirs has
7981# changed from the earlier setting of with_newlib.
7982if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7983 target_configargs="--with-newlib ${target_configargs}"
7984fi
7985
95036d20
NN
7986# Different target subdirs use different values of certain variables
7987# (notably CXX). Worse, multilibs use *lots* of different values.
7988# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7989# it doesn't automatically accept command-line overrides of them.
7990# This means it's not safe for target subdirs to share a cache file,
7991# which is disgusting, but there you have it. Hopefully this can be
7992# fixed in future. It's still worthwhile to use a cache file for each
7993# directory. I think.
7994
ae380b45
MS
7995# Pass the appropriate --build, --host, --target and --cache-file arguments.
7996# We need to pass --target, as newer autoconf's requires consistency
7997# for target_alias and gcc doesn't manage it consistently.
4b900473 7998target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7999
a0da8069
NN
8000FLAGS_FOR_TARGET=
8001case " $target_configdirs " in
8002 *" newlib "*)
8003 case " $target_configargs " in
8004 *" --with-newlib "*)
8005 case "$target" in
1f53ca9a
AO
8006 *-cygwin*)
8007 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
8008 ;;
a0da8069
NN
8009 esac
8010
8011 # If we're not building GCC, don't discard standard headers.
8012 if test -d ${srcdir}/gcc; then
8013 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
8014
8015 if test "${build}" != "${host}"; then
8016 # On Canadian crosses, CC_FOR_TARGET will have already been set
8017 # by `configure', so we won't have an opportunity to add -Bgcc/
8018 # to it. This is right: we don't want to search that directory
8019 # for binaries, but we want the header files in there, so add
8020 # them explicitly.
b00612cc 8021 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
8022
8023 # Someone might think of using the pre-installed headers on
8024 # Canadian crosses, in case the installed compiler is not fully
8025 # compatible with the compiler being built. In this case, it
8026 # would be better to flag an error than risking having
8027 # incompatible object files being constructed. We can't
8028 # guarantee that an error will be flagged, but let's hope the
8029 # compiler will do it, when presented with incompatible header
8030 # files.
8031 fi
8032 fi
8033
8034 case "${target}-${is_cross_compiler}" in
ec11bdc6 8035 i[3456789]86-*-linux*-no)
a0da8069
NN
8036 # Here host == target, so we don't need to build gcc,
8037 # so we don't want to discard standard headers.
8038 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
8039 ;;
8040 *)
8041 # If we're building newlib, use its generic headers last, but search
8042 # for any libc-related directories first (so make it the last -B
8043 # switch).
8044 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
8045
8046 # If we're building libgloss, find the startup file, simulator library
8047 # and linker script.
8048 case " $target_configdirs " in
8049 *" libgloss "*)
8050 # Look for startup file, simulator library and maybe linker script.
8051 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8052 # Look for libnosys.a in case the target needs it.
8053 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8054 # Most targets have the linker script in the source directory.
8055 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8056 ;;
8057 esac
a0da8069
NN
8058 ;;
8059 esac
8060 ;;
8061 esac
8062 ;;
8063esac
1f53ca9a 8064
45055374 8065case "$target" in
1f53ca9a
AO
8066 x86_64-*mingw* | *-w64-mingw*)
8067 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8068 # however, use a symlink named 'mingw' in ${prefix} .
8069 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8070 ;;
8071 *-mingw*)
8072 # MinGW can't be handled as Cygwin above since it does not use newlib.
8073 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/mingw -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/mingw/include -isystem $$s/winsup/w32api/include'
8074 ;;
45055374 8075esac
a0da8069 8076
5fbad20a
DD
8077# Allow the user to override the flags for
8078# our build compiler if desired.
c66487f8
NC
8079if test x"${build}" = x"${host}" ; then
8080 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8081 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8082 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8083fi
5fbad20a 8084
a0da8069
NN
8085# On Canadian crosses, we'll be searching the right directories for
8086# the previously-installed cross compiler, so don't bother to add
8087# flags for directories within the install tree of the compiler
8088# being built; programs in there won't even run.
8089if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8090 # Search for pre-installed headers if nothing else fits.
bba45b8b 8091 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
8092fi
8093
8094if test "x${use_gnu_ld}" = x &&
8095 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8096 # Arrange for us to find uninstalled linker scripts.
b00612cc 8097 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
8098fi
8099
a481dbb7
DD
8100# Search for other target-specific linker scripts and such.
8101case "${target}" in
4e206d7e
DB
8102 mep*)
8103 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8104 ;;
8105esac
8106
a0da8069 8107# Makefile fragments.
3e707e94
PB
8108for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8109do
8110 eval fragval=\$$frag
8111 if test $fragval != /dev/null; then
8112 eval $frag=${srcdir}/$fragval
8113 fi
8114done
a0da8069
NN
8115
8116
8117
8118
8119
8120# Miscellanea: directories, flags, etc.
8121
8122
8123
8124
8125
8126
8127
3bbd2f8f 8128
6a9cf61e 8129# Build module lists & subconfigure args.
a0da8069
NN
8130
8131
8132
be01d343
PB
8133# Host module lists & subconfigure args.
8134
8135
8136
911e63d0 8137
be01d343
PB
8138# Target module lists & subconfigure args.
8139
8140
8141
8142# Build tools.
8143
8144
8145
1576798e
PB
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
be01d343
PB
8160# Generate default definitions for YACC, M4, LEX and other programs that run
8161# on the build machine. These are used if the Makefile can't locate these
8162# programs in objdir.
8163MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8164
8165for ac_prog in 'bison -y' byacc yacc
8166do
c6b750e1 8167 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8168set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170$as_echo_n "checking for $ac_word... " >&6; }
8171if test "${ac_cv_prog_YACC+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
be01d343
PB
8173else
8174 if test -n "$YACC"; then
8175 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8176else
c6b750e1
DJ
8177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178for as_dir in $PATH
8179do
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8184 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8186 break 2
8187 fi
8188done
81ecdfbb
RW
8189 done
8190IFS=$as_save_IFS
c6b750e1 8191
be01d343
PB
8192fi
8193fi
c6b750e1 8194YACC=$ac_cv_prog_YACC
be01d343 8195if test -n "$YACC"; then
81ecdfbb
RW
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8197$as_echo "$YACC" >&6; }
be01d343 8198else
81ecdfbb
RW
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200$as_echo "no" >&6; }
be01d343
PB
8201fi
8202
81ecdfbb 8203
c6b750e1 8204 test -n "$YACC" && break
be01d343
PB
8205done
8206test -n "$YACC" || YACC="$MISSING bison -y"
8207
8208case " $build_configdirs " in
8209 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8210 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8211esac
8212
8213for ac_prog in bison
8214do
c6b750e1 8215 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8216set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if test "${ac_cv_prog_BISON+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
be01d343
PB
8221else
8222 if test -n "$BISON"; then
8223 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8224else
c6b750e1
DJ
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8232 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8234 break 2
8235 fi
8236done
81ecdfbb
RW
8237 done
8238IFS=$as_save_IFS
c6b750e1 8239
be01d343
PB
8240fi
8241fi
c6b750e1 8242BISON=$ac_cv_prog_BISON
be01d343 8243if test -n "$BISON"; then
81ecdfbb
RW
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8245$as_echo "$BISON" >&6; }
be01d343 8246else
81ecdfbb
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
be01d343
PB
8249fi
8250
81ecdfbb 8251
c6b750e1 8252 test -n "$BISON" && break
be01d343
PB
8253done
8254test -n "$BISON" || BISON="$MISSING bison"
8255
8256case " $build_configdirs " in
8257 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8258esac
8259
8260for ac_prog in gm4 gnum4 m4
8261do
c6b750e1 8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8263set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265$as_echo_n "checking for $ac_word... " >&6; }
8266if test "${ac_cv_prog_M4+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
be01d343
PB
8268else
8269 if test -n "$M4"; then
8270 ac_cv_prog_M4="$M4" # Let the user override the test.
8271else
c6b750e1
DJ
8272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273for as_dir in $PATH
8274do
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8279 ac_cv_prog_M4="$ac_prog"
81ecdfbb 8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8281 break 2
8282 fi
8283done
81ecdfbb
RW
8284 done
8285IFS=$as_save_IFS
c6b750e1 8286
be01d343
PB
8287fi
8288fi
c6b750e1 8289M4=$ac_cv_prog_M4
be01d343 8290if test -n "$M4"; then
81ecdfbb
RW
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8292$as_echo "$M4" >&6; }
be01d343 8293else
81ecdfbb
RW
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295$as_echo "no" >&6; }
be01d343
PB
8296fi
8297
81ecdfbb 8298
c6b750e1 8299 test -n "$M4" && break
be01d343
PB
8300done
8301test -n "$M4" || M4="$MISSING m4"
8302
8303case " $build_configdirs " in
8304 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8305esac
8306
8307for ac_prog in flex lex
8308do
c6b750e1 8309 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8310set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312$as_echo_n "checking for $ac_word... " >&6; }
8313if test "${ac_cv_prog_LEX+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
be01d343
PB
8315else
8316 if test -n "$LEX"; then
8317 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8318else
c6b750e1
DJ
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8326 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8328 break 2
8329 fi
8330done
81ecdfbb
RW
8331 done
8332IFS=$as_save_IFS
c6b750e1 8333
be01d343
PB
8334fi
8335fi
c6b750e1 8336LEX=$ac_cv_prog_LEX
be01d343 8337if test -n "$LEX"; then
81ecdfbb
RW
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8339$as_echo "$LEX" >&6; }
be01d343 8340else
81ecdfbb
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
be01d343
PB
8343fi
8344
81ecdfbb 8345
c6b750e1 8346 test -n "$LEX" && break
be01d343
PB
8347done
8348test -n "$LEX" || LEX="$MISSING flex"
8349
8350case " $build_configdirs " in
8351 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8352 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8353esac
8354
8355for ac_prog in flex
8356do
c6b750e1 8357 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8358set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8360$as_echo_n "checking for $ac_word... " >&6; }
8361if test "${ac_cv_prog_FLEX+set}" = set; then :
8362 $as_echo_n "(cached) " >&6
be01d343
PB
8363else
8364 if test -n "$FLEX"; then
8365 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8366else
c6b750e1
DJ
8367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368for as_dir in $PATH
8369do
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8374 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8376 break 2
8377 fi
8378done
81ecdfbb
RW
8379 done
8380IFS=$as_save_IFS
c6b750e1 8381
be01d343
PB
8382fi
8383fi
c6b750e1 8384FLEX=$ac_cv_prog_FLEX
be01d343 8385if test -n "$FLEX"; then
81ecdfbb
RW
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8387$as_echo "$FLEX" >&6; }
be01d343 8388else
81ecdfbb
RW
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390$as_echo "no" >&6; }
be01d343
PB
8391fi
8392
81ecdfbb 8393
c6b750e1 8394 test -n "$FLEX" && break
be01d343
PB
8395done
8396test -n "$FLEX" || FLEX="$MISSING flex"
8397
8398case " $build_configdirs " in
8399 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8400esac
8401
8402for ac_prog in makeinfo
8403do
c6b750e1 8404 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8405set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407$as_echo_n "checking for $ac_word... " >&6; }
8408if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8409 $as_echo_n "(cached) " >&6
be01d343
PB
8410else
8411 if test -n "$MAKEINFO"; then
8412 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8413else
c6b750e1
DJ
8414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415for as_dir in $PATH
8416do
8417 IFS=$as_save_IFS
8418 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8419 for ac_exec_ext in '' $ac_executable_extensions; do
8420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8421 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 8422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8423 break 2
8424 fi
8425done
81ecdfbb
RW
8426 done
8427IFS=$as_save_IFS
c6b750e1 8428
be01d343
PB
8429fi
8430fi
c6b750e1 8431MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 8432if test -n "$MAKEINFO"; then
81ecdfbb
RW
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8434$as_echo "$MAKEINFO" >&6; }
be01d343 8435else
81ecdfbb
RW
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437$as_echo "no" >&6; }
be01d343
PB
8438fi
8439
81ecdfbb 8440
c6b750e1 8441 test -n "$MAKEINFO" && break
be01d343
PB
8442done
8443test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8444
8445case " $build_configdirs " in
8446 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8447 *)
8448
10ad8ef3 8449 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8450 # higher, else we use the "missing" dummy.
8451 if ${MAKEINFO} --version \
10ad8ef3 8452 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8453 :
8454 else
8455 MAKEINFO="$MISSING makeinfo"
8456 fi
8457 ;;
8458
8459esac
a0da8069 8460
be01d343 8461# FIXME: expect and dejagnu may become build tools?
a0da8069 8462
be01d343
PB
8463for ac_prog in expect
8464do
c6b750e1 8465 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8466set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
8469if test "${ac_cv_prog_EXPECT+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
be01d343
PB
8471else
8472 if test -n "$EXPECT"; then
8473 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8474else
c6b750e1
DJ
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8482 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8484 break 2
8485 fi
8486done
81ecdfbb
RW
8487 done
8488IFS=$as_save_IFS
c6b750e1 8489
be01d343
PB
8490fi
8491fi
c6b750e1 8492EXPECT=$ac_cv_prog_EXPECT
be01d343 8493if test -n "$EXPECT"; then
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8495$as_echo "$EXPECT" >&6; }
be01d343 8496else
81ecdfbb
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
be01d343 8499fi
a0da8069 8500
81ecdfbb 8501
c6b750e1 8502 test -n "$EXPECT" && break
be01d343
PB
8503done
8504test -n "$EXPECT" || EXPECT="expect"
a0da8069 8505
be01d343
PB
8506case " $configdirs " in
8507 *" expect "*)
8508 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8509 ;;
8510esac
a0da8069 8511
be01d343
PB
8512for ac_prog in runtest
8513do
c6b750e1 8514 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8515set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517$as_echo_n "checking for $ac_word... " >&6; }
8518if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
be01d343
PB
8520else
8521 if test -n "$RUNTEST"; then
8522 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8523else
c6b750e1
DJ
8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8531 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8533 break 2
8534 fi
8535done
81ecdfbb
RW
8536 done
8537IFS=$as_save_IFS
c6b750e1 8538
be01d343
PB
8539fi
8540fi
c6b750e1 8541RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8542if test -n "$RUNTEST"; then
81ecdfbb
RW
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8544$as_echo "$RUNTEST" >&6; }
be01d343 8545else
81ecdfbb
RW
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
be01d343 8548fi
a0da8069 8549
81ecdfbb 8550
c6b750e1 8551 test -n "$RUNTEST" && break
be01d343
PB
8552done
8553test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8554
be01d343
PB
8555case " $configdirs " in
8556 *" dejagnu "*)
6b89cc21 8557 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8558 ;;
8559esac
a0da8069
NN
8560
8561
a0da8069 8562# Host tools.
859789af
AC
8563ncn_tool_prefix=
8564test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8565ncn_target_tool_prefix=
8566test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8567
9a819804
AO
8568
8569
8570if test -n "$AR"; then
8571 ac_cv_prog_AR=$AR
8572elif test -n "$ac_cv_prog_AR"; then
8573 AR=$ac_cv_prog_AR
8574fi
8575
8576if test -n "$ac_cv_prog_AR"; then
8577 for ncn_progname in ar; do
8578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8579set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8581$as_echo_n "checking for $ac_word... " >&6; }
8582if test "${ac_cv_prog_AR+set}" = set; then :
8583 $as_echo_n "(cached) " >&6
9a819804
AO
8584else
8585 if test -n "$AR"; then
8586 ac_cv_prog_AR="$AR" # Let the user override the test.
8587else
8588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589for as_dir in $PATH
8590do
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8595 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8597 break 2
8598 fi
8599done
81ecdfbb
RW
8600 done
8601IFS=$as_save_IFS
9a819804
AO
8602
8603fi
8604fi
8605AR=$ac_cv_prog_AR
8606if test -n "$AR"; then
81ecdfbb
RW
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8608$as_echo "$AR" >&6; }
9a819804 8609else
81ecdfbb
RW
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611$as_echo "no" >&6; }
9a819804
AO
8612fi
8613
81ecdfbb 8614
9a819804
AO
8615 done
8616fi
8617
8618for ncn_progname in ar; do
05cbd757
PB
8619 if test -n "$ncn_tool_prefix"; then
8620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8621set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623$as_echo_n "checking for $ac_word... " >&6; }
8624if test "${ac_cv_prog_AR+set}" = set; then :
8625 $as_echo_n "(cached) " >&6
859789af
AC
8626else
8627 if test -n "$AR"; then
8628 ac_cv_prog_AR="$AR" # Let the user override the test.
8629else
c6b750e1
DJ
8630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631for as_dir in $PATH
8632do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8635 for ac_exec_ext in '' $ac_executable_extensions; do
8636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8637 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8639 break 2
8640 fi
8641done
81ecdfbb
RW
8642 done
8643IFS=$as_save_IFS
c6b750e1 8644
859789af
AC
8645fi
8646fi
c6b750e1 8647AR=$ac_cv_prog_AR
859789af 8648if test -n "$AR"; then
81ecdfbb
RW
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8650$as_echo "$AR" >&6; }
859789af 8651else
81ecdfbb
RW
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653$as_echo "no" >&6; }
859789af
AC
8654fi
8655
81ecdfbb 8656
05cbd757
PB
8657 fi
8658 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8660set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8662$as_echo_n "checking for $ac_word... " >&6; }
8663if test "${ac_cv_prog_AR+set}" = set; then :
8664 $as_echo_n "(cached) " >&6
859789af 8665else
05cbd757
PB
8666 if test -n "$AR"; then
8667 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8668else
c6b750e1
DJ
8669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8670for as_dir in $PATH
8671do
8672 IFS=$as_save_IFS
8673 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8676 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8678 break 2
8679 fi
8680done
81ecdfbb
RW
8681 done
8682IFS=$as_save_IFS
c6b750e1 8683
859789af
AC
8684fi
8685fi
c6b750e1 8686AR=$ac_cv_prog_AR
05cbd757 8687if test -n "$AR"; then
81ecdfbb
RW
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8689$as_echo "$AR" >&6; }
859789af 8690else
81ecdfbb
RW
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692$as_echo "no" >&6; }
859789af 8693fi
c6b750e1 8694
81ecdfbb 8695
05cbd757
PB
8696 fi
8697 test -n "$ac_cv_prog_AR" && break
8698done
8699
8700if test -z "$ac_cv_prog_AR" ; then
8701 set dummy ar
8702 if test $build = $host ; then
8703 AR="$2"
859789af 8704 else
05cbd757 8705 AR="${ncn_tool_prefix}$2"
859789af 8706 fi
859789af
AC
8707fi
8708
9a819804
AO
8709
8710
8711if test -n "$AS"; then
8712 ac_cv_prog_AS=$AS
8713elif test -n "$ac_cv_prog_AS"; then
8714 AS=$ac_cv_prog_AS
8715fi
8716
8717if test -n "$ac_cv_prog_AS"; then
8718 for ncn_progname in as; do
8719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8720set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8722$as_echo_n "checking for $ac_word... " >&6; }
8723if test "${ac_cv_prog_AS+set}" = set; then :
8724 $as_echo_n "(cached) " >&6
9a819804
AO
8725else
8726 if test -n "$AS"; then
8727 ac_cv_prog_AS="$AS" # Let the user override the test.
8728else
8729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730for as_dir in $PATH
8731do
8732 IFS=$as_save_IFS
8733 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8734 for ac_exec_ext in '' $ac_executable_extensions; do
8735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8736 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8738 break 2
8739 fi
8740done
81ecdfbb
RW
8741 done
8742IFS=$as_save_IFS
9a819804
AO
8743
8744fi
8745fi
8746AS=$ac_cv_prog_AS
8747if test -n "$AS"; then
81ecdfbb
RW
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8749$as_echo "$AS" >&6; }
9a819804 8750else
81ecdfbb
RW
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8752$as_echo "no" >&6; }
9a819804
AO
8753fi
8754
81ecdfbb 8755
9a819804
AO
8756 done
8757fi
8758
8759for ncn_progname in as; do
05cbd757
PB
8760 if test -n "$ncn_tool_prefix"; then
8761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8762set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764$as_echo_n "checking for $ac_word... " >&6; }
8765if test "${ac_cv_prog_AS+set}" = set; then :
8766 $as_echo_n "(cached) " >&6
859789af
AC
8767else
8768 if test -n "$AS"; then
8769 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8770else
8771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772for as_dir in $PATH
8773do
8774 IFS=$as_save_IFS
8775 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8776 for ac_exec_ext in '' $ac_executable_extensions; do
8777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8778 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8780 break 2
8781 fi
8782done
81ecdfbb
RW
8783 done
8784IFS=$as_save_IFS
c6b750e1 8785
859789af
AC
8786fi
8787fi
c6b750e1 8788AS=$ac_cv_prog_AS
859789af 8789if test -n "$AS"; then
81ecdfbb
RW
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8791$as_echo "$AS" >&6; }
859789af 8792else
81ecdfbb
RW
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794$as_echo "no" >&6; }
859789af
AC
8795fi
8796
81ecdfbb 8797
05cbd757
PB
8798 fi
8799 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8801set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8803$as_echo_n "checking for $ac_word... " >&6; }
8804if test "${ac_cv_prog_AS+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
859789af 8806else
05cbd757
PB
8807 if test -n "$AS"; then
8808 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8809else
c6b750e1
DJ
8810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811for as_dir in $PATH
8812do
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8817 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8819 break 2
8820 fi
8821done
81ecdfbb
RW
8822 done
8823IFS=$as_save_IFS
c6b750e1 8824
859789af
AC
8825fi
8826fi
c6b750e1 8827AS=$ac_cv_prog_AS
05cbd757 8828if test -n "$AS"; then
81ecdfbb
RW
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8830$as_echo "$AS" >&6; }
859789af 8831else
81ecdfbb
RW
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8833$as_echo "no" >&6; }
859789af 8834fi
c6b750e1 8835
81ecdfbb 8836
05cbd757
PB
8837 fi
8838 test -n "$ac_cv_prog_AS" && break
8839done
8840
8841if test -z "$ac_cv_prog_AS" ; then
8842 set dummy as
8843 if test $build = $host ; then
8844 AS="$2"
859789af 8845 else
05cbd757 8846 AS="${ncn_tool_prefix}$2"
859789af 8847 fi
859789af
AC
8848fi
8849
9a819804
AO
8850
8851
8852if test -n "$DLLTOOL"; then
8853 ac_cv_prog_DLLTOOL=$DLLTOOL
8854elif test -n "$ac_cv_prog_DLLTOOL"; then
8855 DLLTOOL=$ac_cv_prog_DLLTOOL
8856fi
8857
8858if test -n "$ac_cv_prog_DLLTOOL"; then
8859 for ncn_progname in dlltool; do
8860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8861set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863$as_echo_n "checking for $ac_word... " >&6; }
8864if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
9a819804
AO
8866else
8867 if test -n "$DLLTOOL"; then
8868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8869else
8870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871for as_dir in $PATH
8872do
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8877 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8879 break 2
8880 fi
8881done
81ecdfbb
RW
8882 done
8883IFS=$as_save_IFS
9a819804
AO
8884
8885fi
8886fi
8887DLLTOOL=$ac_cv_prog_DLLTOOL
8888if test -n "$DLLTOOL"; then
81ecdfbb
RW
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8890$as_echo "$DLLTOOL" >&6; }
9a819804 8891else
81ecdfbb
RW
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893$as_echo "no" >&6; }
9a819804
AO
8894fi
8895
81ecdfbb 8896
9a819804
AO
8897 done
8898fi
8899
8900for ncn_progname in dlltool; do
05cbd757
PB
8901 if test -n "$ncn_tool_prefix"; then
8902 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8903set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905$as_echo_n "checking for $ac_word... " >&6; }
8906if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
859789af
AC
8908else
8909 if test -n "$DLLTOOL"; then
8910 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8911else
c6b750e1
DJ
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8919 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8921 break 2
8922 fi
8923done
81ecdfbb
RW
8924 done
8925IFS=$as_save_IFS
c6b750e1 8926
859789af
AC
8927fi
8928fi
c6b750e1 8929DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8930if test -n "$DLLTOOL"; then
81ecdfbb
RW
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8932$as_echo "$DLLTOOL" >&6; }
859789af 8933else
81ecdfbb
RW
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935$as_echo "no" >&6; }
859789af
AC
8936fi
8937
81ecdfbb 8938
05cbd757
PB
8939 fi
8940 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8942set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944$as_echo_n "checking for $ac_word... " >&6; }
8945if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8946 $as_echo_n "(cached) " >&6
859789af 8947else
05cbd757
PB
8948 if test -n "$DLLTOOL"; then
8949 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8950else
c6b750e1
DJ
8951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952for as_dir in $PATH
8953do
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8958 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8960 break 2
8961 fi
8962done
81ecdfbb
RW
8963 done
8964IFS=$as_save_IFS
c6b750e1 8965
859789af
AC
8966fi
8967fi
c6b750e1 8968DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8969if test -n "$DLLTOOL"; then
81ecdfbb
RW
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8971$as_echo "$DLLTOOL" >&6; }
859789af 8972else
81ecdfbb
RW
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974$as_echo "no" >&6; }
859789af 8975fi
c6b750e1 8976
81ecdfbb 8977
05cbd757
PB
8978 fi
8979 test -n "$ac_cv_prog_DLLTOOL" && break
8980done
8981
8982if test -z "$ac_cv_prog_DLLTOOL" ; then
8983 set dummy dlltool
8984 if test $build = $host ; then
8985 DLLTOOL="$2"
859789af 8986 else
05cbd757 8987 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8988 fi
859789af
AC
8989fi
8990
9a819804
AO
8991
8992
8993if test -n "$LD"; then
8994 ac_cv_prog_LD=$LD
8995elif test -n "$ac_cv_prog_LD"; then
8996 LD=$ac_cv_prog_LD
8997fi
8998
8999if test -n "$ac_cv_prog_LD"; then
9000 for ncn_progname in ld; do
9001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9002set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9004$as_echo_n "checking for $ac_word... " >&6; }
9005if test "${ac_cv_prog_LD+set}" = set; then :
9006 $as_echo_n "(cached) " >&6
9a819804
AO
9007else
9008 if test -n "$LD"; then
9009 ac_cv_prog_LD="$LD" # Let the user override the test.
9010else
9011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9012for as_dir in $PATH
9013do
9014 IFS=$as_save_IFS
9015 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9016 for ac_exec_ext in '' $ac_executable_extensions; do
9017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9018 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 9019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9020 break 2
9021 fi
9022done
81ecdfbb
RW
9023 done
9024IFS=$as_save_IFS
9a819804
AO
9025
9026fi
9027fi
9028LD=$ac_cv_prog_LD
9029if test -n "$LD"; then
81ecdfbb
RW
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9031$as_echo "$LD" >&6; }
9a819804 9032else
81ecdfbb
RW
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034$as_echo "no" >&6; }
9a819804
AO
9035fi
9036
81ecdfbb 9037
9a819804
AO
9038 done
9039fi
9040
9041for ncn_progname in ld; do
05cbd757
PB
9042 if test -n "$ncn_tool_prefix"; then
9043 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9044set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046$as_echo_n "checking for $ac_word... " >&6; }
9047if test "${ac_cv_prog_LD+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
859789af
AC
9049else
9050 if test -n "$LD"; then
9051 ac_cv_prog_LD="$LD" # Let the user override the test.
9052else
c6b750e1
DJ
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9060 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9062 break 2
9063 fi
9064done
81ecdfbb
RW
9065 done
9066IFS=$as_save_IFS
c6b750e1 9067
859789af
AC
9068fi
9069fi
c6b750e1 9070LD=$ac_cv_prog_LD
859789af 9071if test -n "$LD"; then
81ecdfbb
RW
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9073$as_echo "$LD" >&6; }
859789af 9074else
81ecdfbb
RW
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
859789af
AC
9077fi
9078
81ecdfbb 9079
05cbd757
PB
9080 fi
9081 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9083set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9085$as_echo_n "checking for $ac_word... " >&6; }
9086if test "${ac_cv_prog_LD+set}" = set; then :
9087 $as_echo_n "(cached) " >&6
859789af 9088else
05cbd757
PB
9089 if test -n "$LD"; then
9090 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 9091else
c6b750e1
DJ
9092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093for as_dir in $PATH
9094do
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9099 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9101 break 2
9102 fi
9103done
81ecdfbb
RW
9104 done
9105IFS=$as_save_IFS
c6b750e1 9106
859789af
AC
9107fi
9108fi
c6b750e1 9109LD=$ac_cv_prog_LD
05cbd757 9110if test -n "$LD"; then
81ecdfbb
RW
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9112$as_echo "$LD" >&6; }
859789af 9113else
81ecdfbb
RW
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9115$as_echo "no" >&6; }
859789af 9116fi
c6b750e1 9117
81ecdfbb 9118
05cbd757
PB
9119 fi
9120 test -n "$ac_cv_prog_LD" && break
9121done
9122
9123if test -z "$ac_cv_prog_LD" ; then
9124 set dummy ld
9125 if test $build = $host ; then
9126 LD="$2"
859789af 9127 else
05cbd757 9128 LD="${ncn_tool_prefix}$2"
859789af 9129 fi
859789af
AC
9130fi
9131
9a819804
AO
9132
9133
9134if test -n "$LIPO"; then
9135 ac_cv_prog_LIPO=$LIPO
9136elif test -n "$ac_cv_prog_LIPO"; then
9137 LIPO=$ac_cv_prog_LIPO
9138fi
9139
9140if test -n "$ac_cv_prog_LIPO"; then
9141 for ncn_progname in lipo; do
9142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9143set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9145$as_echo_n "checking for $ac_word... " >&6; }
9146if test "${ac_cv_prog_LIPO+set}" = set; then :
9147 $as_echo_n "(cached) " >&6
9a819804
AO
9148else
9149 if test -n "$LIPO"; then
9150 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9151else
9152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153for as_dir in $PATH
9154do
9155 IFS=$as_save_IFS
9156 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9157 for ac_exec_ext in '' $ac_executable_extensions; do
9158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9159 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9161 break 2
9162 fi
9163done
81ecdfbb
RW
9164 done
9165IFS=$as_save_IFS
9a819804
AO
9166
9167fi
9168fi
9169LIPO=$ac_cv_prog_LIPO
9170if test -n "$LIPO"; then
81ecdfbb
RW
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9172$as_echo "$LIPO" >&6; }
9a819804 9173else
81ecdfbb
RW
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175$as_echo "no" >&6; }
9a819804
AO
9176fi
9177
81ecdfbb 9178
9a819804
AO
9179 done
9180fi
9181
9182for ncn_progname in lipo; do
be01d343
PB
9183 if test -n "$ncn_tool_prefix"; then
9184 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9185set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187$as_echo_n "checking for $ac_word... " >&6; }
9188if test "${ac_cv_prog_LIPO+set}" = set; then :
9189 $as_echo_n "(cached) " >&6
be01d343
PB
9190else
9191 if test -n "$LIPO"; then
9192 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9193else
c6b750e1
DJ
9194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195for as_dir in $PATH
9196do
9197 IFS=$as_save_IFS
9198 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9199 for ac_exec_ext in '' $ac_executable_extensions; do
9200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9201 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9203 break 2
9204 fi
9205done
81ecdfbb
RW
9206 done
9207IFS=$as_save_IFS
c6b750e1 9208
be01d343
PB
9209fi
9210fi
c6b750e1 9211LIPO=$ac_cv_prog_LIPO
be01d343 9212if test -n "$LIPO"; then
81ecdfbb
RW
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9214$as_echo "$LIPO" >&6; }
be01d343 9215else
81ecdfbb
RW
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217$as_echo "no" >&6; }
be01d343
PB
9218fi
9219
81ecdfbb 9220
be01d343
PB
9221 fi
9222 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9223 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9224set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9226$as_echo_n "checking for $ac_word... " >&6; }
9227if test "${ac_cv_prog_LIPO+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
be01d343
PB
9229else
9230 if test -n "$LIPO"; then
9231 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9232else
c6b750e1
DJ
9233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234for as_dir in $PATH
9235do
9236 IFS=$as_save_IFS
9237 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9238 for ac_exec_ext in '' $ac_executable_extensions; do
9239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9240 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9242 break 2
9243 fi
9244done
81ecdfbb
RW
9245 done
9246IFS=$as_save_IFS
c6b750e1 9247
be01d343
PB
9248fi
9249fi
c6b750e1 9250LIPO=$ac_cv_prog_LIPO
be01d343 9251if test -n "$LIPO"; then
81ecdfbb
RW
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9253$as_echo "$LIPO" >&6; }
be01d343 9254else
81ecdfbb
RW
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256$as_echo "no" >&6; }
be01d343 9257fi
c6b750e1 9258
81ecdfbb 9259
be01d343
PB
9260 fi
9261 test -n "$ac_cv_prog_LIPO" && break
9262done
9263
9264if test -z "$ac_cv_prog_LIPO" ; then
9265 set dummy lipo
9266 if test $build = $host ; then
9267 LIPO="$2"
9268 else
9269 LIPO="${ncn_tool_prefix}$2"
9270 fi
9271fi
9272
9a819804
AO
9273
9274
9275if test -n "$NM"; then
9276 ac_cv_prog_NM=$NM
9277elif test -n "$ac_cv_prog_NM"; then
9278 NM=$ac_cv_prog_NM
9279fi
9280
9281if test -n "$ac_cv_prog_NM"; then
9282 for ncn_progname in nm; do
9283 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9284set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286$as_echo_n "checking for $ac_word... " >&6; }
9287if test "${ac_cv_prog_NM+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
859789af
AC
9289else
9290 if test -n "$NM"; then
9291 ac_cv_prog_NM="$NM" # Let the user override the test.
9292else
c6b750e1
DJ
9293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294for as_dir in $PATH
9295do
9296 IFS=$as_save_IFS
9297 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9298 for ac_exec_ext in '' $ac_executable_extensions; do
9299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9300 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9302 break 2
9303 fi
9304done
81ecdfbb
RW
9305 done
9306IFS=$as_save_IFS
c6b750e1 9307
859789af
AC
9308fi
9309fi
c6b750e1 9310NM=$ac_cv_prog_NM
859789af 9311if test -n "$NM"; then
81ecdfbb
RW
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9313$as_echo "$NM" >&6; }
859789af 9314else
81ecdfbb
RW
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316$as_echo "no" >&6; }
859789af
AC
9317fi
9318
81ecdfbb 9319
9a819804
AO
9320 done
9321fi
9322
9323for ncn_progname in nm; do
9324 if test -n "$ncn_tool_prefix"; then
9325 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9326set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328$as_echo_n "checking for $ac_word... " >&6; }
9329if test "${ac_cv_prog_NM+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
859789af 9331else
05cbd757
PB
9332 if test -n "$NM"; then
9333 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 9334else
c6b750e1
DJ
9335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336for as_dir in $PATH
9337do
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9342 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9344 break 2
9345 fi
9346done
81ecdfbb
RW
9347 done
9348IFS=$as_save_IFS
c6b750e1 9349
859789af
AC
9350fi
9351fi
c6b750e1 9352NM=$ac_cv_prog_NM
05cbd757 9353if test -n "$NM"; then
81ecdfbb
RW
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9355$as_echo "$NM" >&6; }
859789af 9356else
81ecdfbb
RW
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358$as_echo "no" >&6; }
859789af 9359fi
c6b750e1 9360
81ecdfbb 9361
05cbd757 9362 fi
9a819804
AO
9363 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9364 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9365set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367$as_echo_n "checking for $ac_word... " >&6; }
9368if test "${ac_cv_prog_NM+set}" = set; then :
9369 $as_echo_n "(cached) " >&6
9a819804
AO
9370else
9371 if test -n "$NM"; then
9372 ac_cv_prog_NM="$NM" # Let the user override the test.
9373else
9374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9375for as_dir in $PATH
9376do
9377 IFS=$as_save_IFS
9378 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9379 for ac_exec_ext in '' $ac_executable_extensions; do
9380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9381 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9383 break 2
9384 fi
9385done
81ecdfbb
RW
9386 done
9387IFS=$as_save_IFS
9a819804
AO
9388
9389fi
9390fi
9391NM=$ac_cv_prog_NM
9392if test -n "$NM"; then
81ecdfbb
RW
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9394$as_echo "$NM" >&6; }
9a819804 9395else
81ecdfbb
RW
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397$as_echo "no" >&6; }
9a819804
AO
9398fi
9399
81ecdfbb 9400
9a819804
AO
9401 fi
9402 test -n "$ac_cv_prog_NM" && break
9403done
9404
9405if test -z "$ac_cv_prog_NM" ; then
9406 set dummy nm
9407 if test $build = $host ; then
9408 NM="$2"
9409 else
9410 NM="${ncn_tool_prefix}$2"
9411 fi
9412fi
9413
9414
9415
9416if test -n "$RANLIB"; then
9417 ac_cv_prog_RANLIB=$RANLIB
9418elif test -n "$ac_cv_prog_RANLIB"; then
9419 RANLIB=$ac_cv_prog_RANLIB
9420fi
9421
9422if test -n "$ac_cv_prog_RANLIB"; then
9423 for ncn_progname in ranlib; do
9424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9425set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427$as_echo_n "checking for $ac_word... " >&6; }
9428if test "${ac_cv_prog_RANLIB+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
9a819804
AO
9430else
9431 if test -n "$RANLIB"; then
9432 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9433else
9434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435for as_dir in $PATH
9436do
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9441 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9443 break 2
9444 fi
9445done
81ecdfbb
RW
9446 done
9447IFS=$as_save_IFS
9a819804
AO
9448
9449fi
9450fi
9451RANLIB=$ac_cv_prog_RANLIB
9452if test -n "$RANLIB"; then
81ecdfbb
RW
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9454$as_echo "$RANLIB" >&6; }
9a819804 9455else
81ecdfbb
RW
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457$as_echo "no" >&6; }
9a819804
AO
9458fi
9459
81ecdfbb 9460
9a819804
AO
9461 done
9462fi
859789af 9463
9a819804 9464for ncn_progname in ranlib; do
05cbd757
PB
9465 if test -n "$ncn_tool_prefix"; then
9466 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9467set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469$as_echo_n "checking for $ac_word... " >&6; }
9470if test "${ac_cv_prog_RANLIB+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
859789af
AC
9472else
9473 if test -n "$RANLIB"; then
9474 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9475else
c6b750e1
DJ
9476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477for as_dir in $PATH
9478do
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9483 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9485 break 2
9486 fi
9487done
81ecdfbb
RW
9488 done
9489IFS=$as_save_IFS
c6b750e1 9490
859789af
AC
9491fi
9492fi
c6b750e1 9493RANLIB=$ac_cv_prog_RANLIB
859789af 9494if test -n "$RANLIB"; then
81ecdfbb
RW
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9496$as_echo "$RANLIB" >&6; }
859789af 9497else
81ecdfbb
RW
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499$as_echo "no" >&6; }
859789af
AC
9500fi
9501
81ecdfbb 9502
05cbd757
PB
9503 fi
9504 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9505 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9506set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9508$as_echo_n "checking for $ac_word... " >&6; }
9509if test "${ac_cv_prog_RANLIB+set}" = set; then :
9510 $as_echo_n "(cached) " >&6
859789af 9511else
05cbd757
PB
9512 if test -n "$RANLIB"; then
9513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9514else
c6b750e1
DJ
9515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516for as_dir in $PATH
9517do
9518 IFS=$as_save_IFS
9519 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9520 for ac_exec_ext in '' $ac_executable_extensions; do
9521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9522 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9524 break 2
9525 fi
9526done
81ecdfbb
RW
9527 done
9528IFS=$as_save_IFS
c6b750e1 9529
859789af
AC
9530fi
9531fi
c6b750e1 9532RANLIB=$ac_cv_prog_RANLIB
05cbd757 9533if test -n "$RANLIB"; then
81ecdfbb
RW
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9535$as_echo "$RANLIB" >&6; }
859789af 9536else
81ecdfbb
RW
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538$as_echo "no" >&6; }
859789af 9539fi
c6b750e1 9540
81ecdfbb 9541
859789af 9542 fi
05cbd757
PB
9543 test -n "$ac_cv_prog_RANLIB" && break
9544done
9545
9546if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9547 RANLIB="true"
859789af
AC
9548fi
9549
9a819804
AO
9550
9551
9552if test -n "$STRIP"; then
9553 ac_cv_prog_STRIP=$STRIP
9554elif test -n "$ac_cv_prog_STRIP"; then
9555 STRIP=$ac_cv_prog_STRIP
9556fi
9557
9558if test -n "$ac_cv_prog_STRIP"; then
9559 for ncn_progname in strip; do
9560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9561set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9563$as_echo_n "checking for $ac_word... " >&6; }
9564if test "${ac_cv_prog_STRIP+set}" = set; then :
9565 $as_echo_n "(cached) " >&6
9a819804
AO
9566else
9567 if test -n "$STRIP"; then
9568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9569else
9570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9571for as_dir in $PATH
9572do
9573 IFS=$as_save_IFS
9574 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9575 for ac_exec_ext in '' $ac_executable_extensions; do
9576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9577 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9579 break 2
9580 fi
9581done
81ecdfbb
RW
9582 done
9583IFS=$as_save_IFS
9a819804
AO
9584
9585fi
9586fi
9587STRIP=$ac_cv_prog_STRIP
9588if test -n "$STRIP"; then
81ecdfbb
RW
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9590$as_echo "$STRIP" >&6; }
9a819804 9591else
81ecdfbb
RW
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9593$as_echo "no" >&6; }
9a819804
AO
9594fi
9595
81ecdfbb 9596
9a819804
AO
9597 done
9598fi
9599
9600for ncn_progname in strip; do
be01d343
PB
9601 if test -n "$ncn_tool_prefix"; then
9602 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9603set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9605$as_echo_n "checking for $ac_word... " >&6; }
9606if test "${ac_cv_prog_STRIP+set}" = set; then :
9607 $as_echo_n "(cached) " >&6
be01d343
PB
9608else
9609 if test -n "$STRIP"; then
9610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9611else
c6b750e1
DJ
9612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9613for as_dir in $PATH
9614do
9615 IFS=$as_save_IFS
9616 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9619 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9621 break 2
9622 fi
9623done
81ecdfbb
RW
9624 done
9625IFS=$as_save_IFS
c6b750e1 9626
be01d343
PB
9627fi
9628fi
c6b750e1 9629STRIP=$ac_cv_prog_STRIP
be01d343 9630if test -n "$STRIP"; then
81ecdfbb
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9632$as_echo "$STRIP" >&6; }
be01d343 9633else
81ecdfbb
RW
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9635$as_echo "no" >&6; }
be01d343
PB
9636fi
9637
81ecdfbb 9638
be01d343
PB
9639 fi
9640 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
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_STRIP+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
be01d343
PB
9647else
9648 if test -n "$STRIP"; then
9649 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9650else
c6b750e1
DJ
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=.
81ecdfbb
RW
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
c6b750e1 9658 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9660 break 2
9661 fi
9662done
81ecdfbb
RW
9663 done
9664IFS=$as_save_IFS
c6b750e1 9665
be01d343
PB
9666fi
9667fi
c6b750e1 9668STRIP=$ac_cv_prog_STRIP
be01d343 9669if test -n "$STRIP"; then
81ecdfbb
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9671$as_echo "$STRIP" >&6; }
be01d343 9672else
81ecdfbb
RW
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674$as_echo "no" >&6; }
be01d343 9675fi
c6b750e1 9676
81ecdfbb 9677
be01d343
PB
9678 fi
9679 test -n "$ac_cv_prog_STRIP" && break
9680done
9681
9682if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9683 STRIP="true"
be01d343
PB
9684fi
9685
9a819804
AO
9686
9687
9688if test -n "$WINDRES"; then
9689 ac_cv_prog_WINDRES=$WINDRES
9690elif test -n "$ac_cv_prog_WINDRES"; then
9691 WINDRES=$ac_cv_prog_WINDRES
9692fi
9693
9694if test -n "$ac_cv_prog_WINDRES"; then
9695 for ncn_progname in windres; do
9696 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9697set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699$as_echo_n "checking for $ac_word... " >&6; }
9700if test "${ac_cv_prog_WINDRES+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
9a819804
AO
9702else
9703 if test -n "$WINDRES"; then
9704 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9705else
9706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707for as_dir in $PATH
9708do
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9713 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9715 break 2
9716 fi
9717done
81ecdfbb
RW
9718 done
9719IFS=$as_save_IFS
9a819804
AO
9720
9721fi
9722fi
9723WINDRES=$ac_cv_prog_WINDRES
9724if test -n "$WINDRES"; then
81ecdfbb
RW
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9726$as_echo "$WINDRES" >&6; }
9a819804 9727else
81ecdfbb
RW
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9729$as_echo "no" >&6; }
9a819804
AO
9730fi
9731
81ecdfbb 9732
9a819804
AO
9733 done
9734fi
9735
9736for ncn_progname in windres; do
05cbd757
PB
9737 if test -n "$ncn_tool_prefix"; then
9738 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9739set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9741$as_echo_n "checking for $ac_word... " >&6; }
9742if test "${ac_cv_prog_WINDRES+set}" = set; then :
9743 $as_echo_n "(cached) " >&6
859789af
AC
9744else
9745 if test -n "$WINDRES"; then
9746 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9747else
c6b750e1
DJ
9748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9749for as_dir in $PATH
9750do
9751 IFS=$as_save_IFS
9752 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9753 for ac_exec_ext in '' $ac_executable_extensions; do
9754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9755 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9757 break 2
9758 fi
9759done
81ecdfbb
RW
9760 done
9761IFS=$as_save_IFS
c6b750e1 9762
859789af
AC
9763fi
9764fi
c6b750e1 9765WINDRES=$ac_cv_prog_WINDRES
859789af 9766if test -n "$WINDRES"; then
81ecdfbb
RW
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9768$as_echo "$WINDRES" >&6; }
859789af 9769else
81ecdfbb
RW
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9771$as_echo "no" >&6; }
859789af
AC
9772fi
9773
81ecdfbb 9774
05cbd757
PB
9775 fi
9776 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9777 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9778set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9780$as_echo_n "checking for $ac_word... " >&6; }
9781if test "${ac_cv_prog_WINDRES+set}" = set; then :
9782 $as_echo_n "(cached) " >&6
859789af 9783else
05cbd757
PB
9784 if test -n "$WINDRES"; then
9785 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9786else
c6b750e1
DJ
9787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9788for as_dir in $PATH
9789do
9790 IFS=$as_save_IFS
9791 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9792 for ac_exec_ext in '' $ac_executable_extensions; do
9793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9794 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9796 break 2
9797 fi
9798done
81ecdfbb
RW
9799 done
9800IFS=$as_save_IFS
c6b750e1 9801
859789af
AC
9802fi
9803fi
c6b750e1 9804WINDRES=$ac_cv_prog_WINDRES
05cbd757 9805if test -n "$WINDRES"; then
81ecdfbb
RW
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9807$as_echo "$WINDRES" >&6; }
859789af 9808else
81ecdfbb
RW
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9810$as_echo "no" >&6; }
859789af 9811fi
c6b750e1 9812
81ecdfbb 9813
05cbd757
PB
9814 fi
9815 test -n "$ac_cv_prog_WINDRES" && break
9816done
9817
9818if test -z "$ac_cv_prog_WINDRES" ; then
9819 set dummy windres
9820 if test $build = $host ; then
9821 WINDRES="$2"
859789af 9822 else
05cbd757 9823 WINDRES="${ncn_tool_prefix}$2"
859789af 9824 fi
859789af
AC
9825fi
9826
9a819804
AO
9827
9828
0c24b341
NC
9829if test -n "$WINDMC"; then
9830 ac_cv_prog_WINDMC=$WINDMC
9831elif test -n "$ac_cv_prog_WINDMC"; then
9832 WINDMC=$ac_cv_prog_WINDMC
9833fi
9834
9835if test -n "$ac_cv_prog_WINDMC"; then
9836 for ncn_progname in windmc; do
9837 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9838set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9840$as_echo_n "checking for $ac_word... " >&6; }
9841if test "${ac_cv_prog_WINDMC+set}" = set; then :
9842 $as_echo_n "(cached) " >&6
0c24b341
NC
9843else
9844 if test -n "$WINDMC"; then
9845 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9846else
9847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9848for as_dir in $PATH
9849do
9850 IFS=$as_save_IFS
9851 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9852 for ac_exec_ext in '' $ac_executable_extensions; do
9853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9854 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9856 break 2
9857 fi
9858done
81ecdfbb
RW
9859 done
9860IFS=$as_save_IFS
0c24b341
NC
9861
9862fi
9863fi
9864WINDMC=$ac_cv_prog_WINDMC
9865if test -n "$WINDMC"; then
81ecdfbb
RW
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9867$as_echo "$WINDMC" >&6; }
0c24b341 9868else
81ecdfbb
RW
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870$as_echo "no" >&6; }
0c24b341
NC
9871fi
9872
81ecdfbb 9873
0c24b341
NC
9874 done
9875fi
9876
9877for ncn_progname in windmc; do
9878 if test -n "$ncn_tool_prefix"; then
9879 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9880set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9882$as_echo_n "checking for $ac_word... " >&6; }
9883if test "${ac_cv_prog_WINDMC+set}" = set; then :
9884 $as_echo_n "(cached) " >&6
0c24b341
NC
9885else
9886 if test -n "$WINDMC"; then
9887 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9888else
9889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890for as_dir in $PATH
9891do
9892 IFS=$as_save_IFS
9893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9894 for ac_exec_ext in '' $ac_executable_extensions; do
9895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9896 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9898 break 2
9899 fi
9900done
81ecdfbb
RW
9901 done
9902IFS=$as_save_IFS
0c24b341
NC
9903
9904fi
9905fi
9906WINDMC=$ac_cv_prog_WINDMC
9907if test -n "$WINDMC"; then
81ecdfbb
RW
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9909$as_echo "$WINDMC" >&6; }
0c24b341 9910else
81ecdfbb
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9912$as_echo "no" >&6; }
0c24b341
NC
9913fi
9914
81ecdfbb 9915
0c24b341
NC
9916 fi
9917 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9919set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921$as_echo_n "checking for $ac_word... " >&6; }
9922if test "${ac_cv_prog_WINDMC+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
0c24b341
NC
9924else
9925 if test -n "$WINDMC"; then
9926 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9927else
9928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929for as_dir in $PATH
9930do
9931 IFS=$as_save_IFS
9932 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9935 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9937 break 2
9938 fi
9939done
81ecdfbb
RW
9940 done
9941IFS=$as_save_IFS
0c24b341
NC
9942
9943fi
9944fi
9945WINDMC=$ac_cv_prog_WINDMC
9946if test -n "$WINDMC"; then
81ecdfbb
RW
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9948$as_echo "$WINDMC" >&6; }
0c24b341 9949else
81ecdfbb
RW
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951$as_echo "no" >&6; }
0c24b341
NC
9952fi
9953
81ecdfbb 9954
0c24b341
NC
9955 fi
9956 test -n "$ac_cv_prog_WINDMC" && break
9957done
9958
9959if test -z "$ac_cv_prog_WINDMC" ; then
9960 set dummy windmc
9961 if test $build = $host ; then
9962 WINDMC="$2"
9963 else
9964 WINDMC="${ncn_tool_prefix}$2"
9965 fi
9966fi
9967
9968
9969
9a819804
AO
9970if test -n "$OBJCOPY"; then
9971 ac_cv_prog_OBJCOPY=$OBJCOPY
9972elif test -n "$ac_cv_prog_OBJCOPY"; then
9973 OBJCOPY=$ac_cv_prog_OBJCOPY
9974fi
9975
9976if test -n "$ac_cv_prog_OBJCOPY"; then
9977 for ncn_progname in objcopy; do
9978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9979set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981$as_echo_n "checking for $ac_word... " >&6; }
9982if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
9a819804
AO
9984else
9985 if test -n "$OBJCOPY"; then
9986 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9987else
9988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9995 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9997 break 2
9998 fi
9999done
81ecdfbb
RW
10000 done
10001IFS=$as_save_IFS
9a819804
AO
10002
10003fi
10004fi
10005OBJCOPY=$ac_cv_prog_OBJCOPY
10006if test -n "$OBJCOPY"; then
81ecdfbb
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10008$as_echo "$OBJCOPY" >&6; }
9a819804 10009else
81ecdfbb
RW
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
9a819804
AO
10012fi
10013
81ecdfbb 10014
9a819804
AO
10015 done
10016fi
10017
10018for ncn_progname in objcopy; do
05cbd757
PB
10019 if test -n "$ncn_tool_prefix"; then
10020 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10021set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10023$as_echo_n "checking for $ac_word... " >&6; }
10024if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10025 $as_echo_n "(cached) " >&6
859789af
AC
10026else
10027 if test -n "$OBJCOPY"; then
10028 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
10029else
c6b750e1
DJ
10030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10037 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10039 break 2
10040 fi
10041done
81ecdfbb
RW
10042 done
10043IFS=$as_save_IFS
c6b750e1 10044
859789af
AC
10045fi
10046fi
c6b750e1 10047OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 10048if test -n "$OBJCOPY"; then
81ecdfbb
RW
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10050$as_echo "$OBJCOPY" >&6; }
859789af 10051else
81ecdfbb
RW
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053$as_echo "no" >&6; }
859789af
AC
10054fi
10055
81ecdfbb 10056
05cbd757
PB
10057 fi
10058 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10060set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10062$as_echo_n "checking for $ac_word... " >&6; }
10063if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
859789af 10065else
05cbd757
PB
10066 if test -n "$OBJCOPY"; then
10067 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 10068else
c6b750e1
DJ
10069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10070for as_dir in $PATH
10071do
10072 IFS=$as_save_IFS
10073 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10074 for ac_exec_ext in '' $ac_executable_extensions; do
10075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10076 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 10077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10078 break 2
10079 fi
10080done
81ecdfbb
RW
10081 done
10082IFS=$as_save_IFS
c6b750e1 10083
859789af
AC
10084fi
10085fi
c6b750e1 10086OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 10087if test -n "$OBJCOPY"; then
81ecdfbb
RW
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10089$as_echo "$OBJCOPY" >&6; }
859789af 10090else
81ecdfbb
RW
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092$as_echo "no" >&6; }
859789af 10093fi
c6b750e1 10094
81ecdfbb 10095
05cbd757
PB
10096 fi
10097 test -n "$ac_cv_prog_OBJCOPY" && break
10098done
10099
10100if test -z "$ac_cv_prog_OBJCOPY" ; then
10101 set dummy objcopy
10102 if test $build = $host ; then
10103 OBJCOPY="$2"
859789af 10104 else
05cbd757 10105 OBJCOPY="${ncn_tool_prefix}$2"
859789af 10106 fi
859789af
AC
10107fi
10108
9a819804
AO
10109
10110
10111if test -n "$OBJDUMP"; then
10112 ac_cv_prog_OBJDUMP=$OBJDUMP
10113elif test -n "$ac_cv_prog_OBJDUMP"; then
10114 OBJDUMP=$ac_cv_prog_OBJDUMP
10115fi
10116
10117if test -n "$ac_cv_prog_OBJDUMP"; then
10118 for ncn_progname in objdump; do
10119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10120set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
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_OBJDUMP+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
9a819804
AO
10125else
10126 if test -n "$OBJDUMP"; then
10127 ac_cv_prog_OBJDUMP="$OBJDUMP" # 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=.
81ecdfbb
RW
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
9a819804 10136 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10138 break 2
10139 fi
10140done
81ecdfbb
RW
10141 done
10142IFS=$as_save_IFS
9a819804
AO
10143
10144fi
10145fi
10146OBJDUMP=$ac_cv_prog_OBJDUMP
10147if test -n "$OBJDUMP"; then
81ecdfbb
RW
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10149$as_echo "$OBJDUMP" >&6; }
9a819804 10150else
81ecdfbb
RW
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
9a819804
AO
10153fi
10154
81ecdfbb 10155
9a819804
AO
10156 done
10157fi
10158
10159for ncn_progname in objdump; do
05cbd757
PB
10160 if test -n "$ncn_tool_prefix"; then
10161 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10162set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164$as_echo_n "checking for $ac_word... " >&6; }
10165if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10166 $as_echo_n "(cached) " >&6
859789af
AC
10167else
10168 if test -n "$OBJDUMP"; then
10169 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10170else
c6b750e1
DJ
10171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10172for as_dir in $PATH
10173do
10174 IFS=$as_save_IFS
10175 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10176 for ac_exec_ext in '' $ac_executable_extensions; do
10177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10178 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 10179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10180 break 2
10181 fi
10182done
81ecdfbb
RW
10183 done
10184IFS=$as_save_IFS
c6b750e1 10185
859789af
AC
10186fi
10187fi
c6b750e1 10188OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 10189if test -n "$OBJDUMP"; then
81ecdfbb
RW
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10191$as_echo "$OBJDUMP" >&6; }
859789af 10192else
81ecdfbb
RW
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194$as_echo "no" >&6; }
859789af
AC
10195fi
10196
81ecdfbb 10197
05cbd757
PB
10198 fi
10199 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10201set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10203$as_echo_n "checking for $ac_word... " >&6; }
10204if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10205 $as_echo_n "(cached) " >&6
859789af 10206else
05cbd757
PB
10207 if test -n "$OBJDUMP"; then
10208 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 10209else
c6b750e1
DJ
10210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211for as_dir in $PATH
10212do
10213 IFS=$as_save_IFS
10214 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10215 for ac_exec_ext in '' $ac_executable_extensions; do
10216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10217 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 10218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10219 break 2
10220 fi
10221done
81ecdfbb
RW
10222 done
10223IFS=$as_save_IFS
c6b750e1 10224
859789af
AC
10225fi
10226fi
c6b750e1 10227OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 10228if test -n "$OBJDUMP"; then
81ecdfbb
RW
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10230$as_echo "$OBJDUMP" >&6; }
859789af 10231else
81ecdfbb
RW
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10233$as_echo "no" >&6; }
859789af 10234fi
c6b750e1 10235
81ecdfbb 10236
05cbd757
PB
10237 fi
10238 test -n "$ac_cv_prog_OBJDUMP" && break
10239done
10240
10241if test -z "$ac_cv_prog_OBJDUMP" ; then
10242 set dummy objdump
10243 if test $build = $host ; then
10244 OBJDUMP="$2"
859789af 10245 else
05cbd757 10246 OBJDUMP="${ncn_tool_prefix}$2"
859789af 10247 fi
859789af
AC
10248fi
10249
a0da8069
NN
10250
10251
10252
10253
10254
be01d343 10255# Target tools.
c6b750e1 10256
81ecdfbb
RW
10257# Check whether --with-build-time-tools was given.
10258if test "${with_build_time_tools+set}" = set; then :
10259 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
10260 x/*) ;;
10261 *)
10262 with_build_time_tools=
81ecdfbb
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10264$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
10265 ;;
10266 esac
859789af 10267else
2429c060 10268 with_build_time_tools=
81ecdfbb
RW
10269fi
10270
859789af 10271
9a819804
AO
10272
10273
10274if test -n "$CC_FOR_TARGET"; then
10275 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10276elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10277 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10278fi
10279
10280if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10281 for ncn_progname in cc gcc; do
10282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10283set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285$as_echo_n "checking for $ac_word... " >&6; }
10286if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
9a819804
AO
10288else
10289 if test -n "$CC_FOR_TARGET"; then
10290 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10291else
10292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293for as_dir in $PATH
10294do
10295 IFS=$as_save_IFS
10296 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10299 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10301 break 2
10302 fi
10303done
81ecdfbb
RW
10304 done
10305IFS=$as_save_IFS
9a819804
AO
10306
10307fi
10308fi
10309CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10310if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10312$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 10313else
81ecdfbb
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315$as_echo "no" >&6; }
9a819804
AO
10316fi
10317
81ecdfbb 10318
9a819804
AO
10319 done
10320fi
10321
10322if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10323 for ncn_progname in cc gcc; do
81ecdfbb
RW
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10325$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10326 if test -x $with_build_time_tools/${ncn_progname}; then
10327 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10329$as_echo "yes" >&6; }
cac3d6c4 10330 break
2429c060 10331 else
81ecdfbb
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333$as_echo "no" >&6; }
cac3d6c4
CM
10334 fi
10335 done
55db4b87
PB
10336fi
10337
2429c060
PB
10338if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10339 for ncn_progname in cc gcc; do
10340 if test -n "$ncn_target_tool_prefix"; then
10341 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10342set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344$as_echo_n "checking for $ac_word... " >&6; }
10345if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
55db4b87
PB
10347else
10348 if test -n "$CC_FOR_TARGET"; then
10349 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10350else
c6b750e1
DJ
10351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352for as_dir in $PATH
10353do
10354 IFS=$as_save_IFS
10355 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10358 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10360 break 2
10361 fi
10362done
81ecdfbb
RW
10363 done
10364IFS=$as_save_IFS
c6b750e1 10365
55db4b87
PB
10366fi
10367fi
c6b750e1 10368CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10369if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10371$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10372else
81ecdfbb
RW
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374$as_echo "no" >&6; }
55db4b87
PB
10375fi
10376
81ecdfbb 10377
2429c060
PB
10378 fi
10379 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10381set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10383$as_echo_n "checking for $ac_word... " >&6; }
10384if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
55db4b87 10386else
05cbd757
PB
10387 if test -n "$CC_FOR_TARGET"; then
10388 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10389else
c6b750e1
DJ
10390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10391for as_dir in $PATH
10392do
10393 IFS=$as_save_IFS
10394 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10395 for ac_exec_ext in '' $ac_executable_extensions; do
10396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10397 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10399 break 2
10400 fi
10401done
81ecdfbb
RW
10402 done
10403IFS=$as_save_IFS
c6b750e1 10404
55db4b87
PB
10405fi
10406fi
c6b750e1 10407CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10408if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10410$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10411else
81ecdfbb
RW
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10413$as_echo "no" >&6; }
55db4b87 10414fi
c6b750e1 10415
81ecdfbb 10416
2429c060
PB
10417 fi
10418 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10419 done
10420fi
c6b750e1 10421
05cbd757
PB
10422if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10423 set dummy cc gcc
10424 if test $build = $target ; then
10425 CC_FOR_TARGET="$2"
55db4b87 10426 else
05cbd757 10427 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10428 fi
d3f5afc4
MS
10429else
10430 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10431fi
10432
9a819804
AO
10433
10434
10435if test -n "$CXX_FOR_TARGET"; then
10436 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10437elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10438 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10439fi
10440
10441if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10442 for ncn_progname in c++ g++ cxx gxx; do
10443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10444set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10446$as_echo_n "checking for $ac_word... " >&6; }
10447if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10448 $as_echo_n "(cached) " >&6
9a819804
AO
10449else
10450 if test -n "$CXX_FOR_TARGET"; then
10451 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10460 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10462 break 2
10463 fi
10464done
81ecdfbb
RW
10465 done
10466IFS=$as_save_IFS
9a819804
AO
10467
10468fi
10469fi
10470CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10471if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10473$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10474else
81ecdfbb
RW
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10476$as_echo "no" >&6; }
9a819804
AO
10477fi
10478
81ecdfbb 10479
9a819804
AO
10480 done
10481fi
10482
10483if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10484 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10486$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10487 if test -x $with_build_time_tools/${ncn_progname}; then
10488 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490$as_echo "yes" >&6; }
2429c060
PB
10491 break
10492 else
81ecdfbb
RW
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494$as_echo "no" >&6; }
2429c060
PB
10495 fi
10496 done
10497fi
10498
10499if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10500 for ncn_progname in c++ g++ cxx gxx; do
10501 if test -n "$ncn_target_tool_prefix"; then
10502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10503set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505$as_echo_n "checking for $ac_word... " >&6; }
10506if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
55db4b87
PB
10508else
10509 if test -n "$CXX_FOR_TARGET"; then
10510 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10511else
c6b750e1
DJ
10512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10519 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10521 break 2
10522 fi
10523done
81ecdfbb
RW
10524 done
10525IFS=$as_save_IFS
c6b750e1 10526
55db4b87
PB
10527fi
10528fi
c6b750e1 10529CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10530if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10532$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10533else
81ecdfbb
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535$as_echo "no" >&6; }
55db4b87
PB
10536fi
10537
81ecdfbb 10538
2429c060
PB
10539 fi
10540 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10542set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10544$as_echo_n "checking for $ac_word... " >&6; }
10545if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10546 $as_echo_n "(cached) " >&6
55db4b87 10547else
05cbd757
PB
10548 if test -n "$CXX_FOR_TARGET"; then
10549 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10550else
c6b750e1
DJ
10551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552for as_dir in $PATH
10553do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10558 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10560 break 2
10561 fi
10562done
81ecdfbb
RW
10563 done
10564IFS=$as_save_IFS
c6b750e1 10565
55db4b87
PB
10566fi
10567fi
c6b750e1 10568CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10569if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10571$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10572else
81ecdfbb
RW
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10574$as_echo "no" >&6; }
55db4b87 10575fi
c6b750e1 10576
81ecdfbb 10577
2429c060
PB
10578 fi
10579 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10580 done
10581fi
c6b750e1 10582
05cbd757
PB
10583if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10584 set dummy c++ g++ cxx gxx
10585 if test $build = $target ; then
10586 CXX_FOR_TARGET="$2"
55db4b87 10587 else
05cbd757 10588 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10589 fi
d3f5afc4
MS
10590else
10591 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10592fi
10593
9a819804
AO
10594
10595
10596if test -n "$GCC_FOR_TARGET"; then
10597 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10598elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10599 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10600fi
10601
10602if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10603 for ncn_progname in gcc; do
10604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10605set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10607$as_echo_n "checking for $ac_word... " >&6; }
10608if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10609 $as_echo_n "(cached) " >&6
9a819804
AO
10610else
10611 if test -n "$GCC_FOR_TARGET"; then
10612 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10613else
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10621 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10623 break 2
10624 fi
10625done
81ecdfbb
RW
10626 done
10627IFS=$as_save_IFS
9a819804
AO
10628
10629fi
10630fi
10631GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10632if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10634$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10635else
81ecdfbb
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10637$as_echo "no" >&6; }
9a819804
AO
10638fi
10639
81ecdfbb 10640
9a819804
AO
10641 done
10642fi
10643
10644if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10645 for ncn_progname in gcc; do
81ecdfbb
RW
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10647$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10648 if test -x $with_build_time_tools/${ncn_progname}; then
10649 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10651$as_echo "yes" >&6; }
2429c060
PB
10652 break
10653 else
81ecdfbb
RW
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655$as_echo "no" >&6; }
2429c060
PB
10656 fi
10657 done
10658fi
10659
10660if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10661 for ncn_progname in gcc; do
10662 if test -n "$ncn_target_tool_prefix"; then
10663 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10664set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10666$as_echo_n "checking for $ac_word... " >&6; }
10667if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
859789af 10669else
2429c060
PB
10670 if test -n "$GCC_FOR_TARGET"; then
10671 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10672else
c6b750e1
DJ
10673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674for as_dir in $PATH
10675do
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10680 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10682 break 2
10683 fi
10684done
81ecdfbb
RW
10685 done
10686IFS=$as_save_IFS
c6b750e1 10687
55db4b87
PB
10688fi
10689fi
c6b750e1 10690GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10691if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10693$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10694else
81ecdfbb
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
55db4b87
PB
10697fi
10698
81ecdfbb 10699
2429c060
PB
10700 fi
10701 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10703set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10705$as_echo_n "checking for $ac_word... " >&6; }
10706if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
55db4b87 10708else
05cbd757
PB
10709 if test -n "$GCC_FOR_TARGET"; then
10710 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10711else
c6b750e1
DJ
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10719 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10721 break 2
10722 fi
10723done
81ecdfbb
RW
10724 done
10725IFS=$as_save_IFS
c6b750e1 10726
55db4b87
PB
10727fi
10728fi
c6b750e1 10729GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10730if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10732$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10733else
81ecdfbb
RW
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10735$as_echo "no" >&6; }
55db4b87 10736fi
c6b750e1 10737
81ecdfbb 10738
2429c060
PB
10739 fi
10740 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10741 done
10742fi
c6b750e1 10743
05cbd757
PB
10744if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10745 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10746else
10747 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10748fi
10749
9a819804
AO
10750
10751
10752if test -n "$GCJ_FOR_TARGET"; then
10753 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10754elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10755 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10756fi
10757
10758if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10759 for ncn_progname in gcj; do
10760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10761set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763$as_echo_n "checking for $ac_word... " >&6; }
10764if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
9a819804
AO
10766else
10767 if test -n "$GCJ_FOR_TARGET"; then
10768 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10769else
10770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $PATH
10772do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10777 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10779 break 2
10780 fi
10781done
81ecdfbb
RW
10782 done
10783IFS=$as_save_IFS
9a819804
AO
10784
10785fi
10786fi
10787GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10788if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10790$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10791else
81ecdfbb
RW
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; }
9a819804
AO
10794fi
10795
81ecdfbb 10796
9a819804
AO
10797 done
10798fi
10799
10800if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10801 for ncn_progname in gcj; do
81ecdfbb
RW
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10803$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10804 if test -x $with_build_time_tools/${ncn_progname}; then
10805 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10807$as_echo "yes" >&6; }
2429c060
PB
10808 break
10809 else
81ecdfbb
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
2429c060
PB
10812 fi
10813 done
10814fi
10815
10816if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10817 for ncn_progname in gcj; do
10818 if test -n "$ncn_target_tool_prefix"; then
10819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10820set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822$as_echo_n "checking for $ac_word... " >&6; }
10823if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
55db4b87
PB
10825else
10826 if test -n "$GCJ_FOR_TARGET"; then
10827 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10828else
c6b750e1
DJ
10829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830for as_dir in $PATH
10831do
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10836 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10838 break 2
10839 fi
10840done
81ecdfbb
RW
10841 done
10842IFS=$as_save_IFS
c6b750e1 10843
55db4b87
PB
10844fi
10845fi
9a819804
AO
10846GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10847if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10849$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10850else
81ecdfbb
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852$as_echo "no" >&6; }
9a819804
AO
10853fi
10854
81ecdfbb 10855
9a819804
AO
10856 fi
10857 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10859set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861$as_echo_n "checking for $ac_word... " >&6; }
10862if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
9a819804
AO
10864else
10865 if test -n "$GCJ_FOR_TARGET"; then
10866 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10867else
10868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $PATH
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10875 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10877 break 2
10878 fi
10879done
81ecdfbb
RW
10880 done
10881IFS=$as_save_IFS
9a819804
AO
10882
10883fi
10884fi
10885GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10886if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10888$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10889else
81ecdfbb
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891$as_echo "no" >&6; }
9a819804
AO
10892fi
10893
81ecdfbb 10894
9a819804
AO
10895 fi
10896 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10897 done
10898fi
10899
10900if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10901 set dummy gcj
10902 if test $build = $target ; then
10903 GCJ_FOR_TARGET="$2"
10904 else
10905 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10906 fi
d3f5afc4
MS
10907else
10908 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10909fi
10910
10911
10912
10913if test -n "$GFORTRAN_FOR_TARGET"; then
10914 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10915elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10916 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10917fi
10918
9a819804
AO
10919if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10920 for ncn_progname in gfortran; do
10921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10922set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924$as_echo_n "checking for $ac_word... " >&6; }
10925if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
55db4b87 10927else
9a819804
AO
10928 if test -n "$GFORTRAN_FOR_TARGET"; then
10929 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10930else
c6b750e1
DJ
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10938 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10940 break 2
10941 fi
10942done
81ecdfbb
RW
10943 done
10944IFS=$as_save_IFS
c6b750e1 10945
55db4b87
PB
10946fi
10947fi
9a819804
AO
10948GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10949if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10951$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10952else
81ecdfbb
RW
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954$as_echo "no" >&6; }
55db4b87 10955fi
c6b750e1 10956
81ecdfbb 10957
2429c060
PB
10958 done
10959fi
c6b750e1 10960
9a819804 10961if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10962 for ncn_progname in gfortran; do
81ecdfbb
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10964$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10965 if test -x $with_build_time_tools/${ncn_progname}; then
10966 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968$as_echo "yes" >&6; }
2429c060
PB
10969 break
10970 else
81ecdfbb
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972$as_echo "no" >&6; }
2429c060
PB
10973 fi
10974 done
10975fi
10976
10977if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10978 for ncn_progname in gfortran; do
10979 if test -n "$ncn_target_tool_prefix"; then
10980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10981set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
10984if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
55db4b87
PB
10986else
10987 if test -n "$GFORTRAN_FOR_TARGET"; then
10988 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10989else
c6b750e1
DJ
10990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10997 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10999 break 2
11000 fi
11001done
81ecdfbb
RW
11002 done
11003IFS=$as_save_IFS
c6b750e1 11004
55db4b87
PB
11005fi
11006fi
c6b750e1 11007GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 11008if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11010$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11011else
81ecdfbb
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
55db4b87
PB
11014fi
11015
81ecdfbb 11016
2429c060
PB
11017 fi
11018 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
11019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11020set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022$as_echo_n "checking for $ac_word... " >&6; }
11023if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
55db4b87 11025else
05cbd757 11026 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
11027 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
11028else
11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $PATH
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11036 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11038 break 2
11039 fi
11040done
81ecdfbb
RW
11041 done
11042IFS=$as_save_IFS
c6b750e1 11043
55db4b87
PB
11044fi
11045fi
c6b750e1 11046GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 11047if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11049$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 11050else
81ecdfbb
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
55db4b87 11053fi
c6b750e1 11054
81ecdfbb 11055
2429c060
PB
11056 fi
11057 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11058 done
11059fi
c6b750e1 11060
05cbd757
PB
11061if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11062 set dummy gfortran
11063 if test $build = $target ; then
11064 GFORTRAN_FOR_TARGET="$2"
55db4b87 11065 else
05cbd757 11066 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 11067 fi
d3f5afc4
MS
11068else
11069 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
11070fi
11071
2429c060
PB
11072
11073
2429c060
PB
11074cat > conftest.c << \EOF
11075#ifdef __GNUC__
11076 gcc_yay;
11077#endif
11078EOF
11079if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11080 have_gcc_for_target=yes
859789af 11081else
2429c060
PB
11082 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11083 have_gcc_for_target=no
859789af 11084fi
2429c060
PB
11085rm conftest.c
11086
11087
11088
859789af 11089
2429c060
PB
11090if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11091 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11093$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11094 if test -x $with_build_time_tools/ar; then
11095 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11096 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11098$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 11099 else
81ecdfbb
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101$as_echo "no" >&6; }
3a35eeb3 11102 fi
2429c060
PB
11103 elif test $build != $host && test $have_gcc_for_target = yes; then
11104 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
11105 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11106 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 11107 fi
2429c060 11108fi
c6b750e1 11109if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11110 # Extract the first word of "ar", so it can be a program name with args.
11111set dummy ar; ac_word=$2
81ecdfbb
RW
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113$as_echo_n "checking for $ac_word... " >&6; }
11114if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
859789af 11116else
c6b750e1
DJ
11117 case $AR_FOR_TARGET in
11118 [\\/]* | ?:[\\/]*)
2429c060
PB
11119 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11120 ;;
2429c060 11121 *)
c6b750e1
DJ
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123for as_dir in $gcc_cv_tool_dirs
11124do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11129 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11131 break 2
11132 fi
11133done
81ecdfbb
RW
11134 done
11135IFS=$as_save_IFS
c6b750e1 11136
2429c060
PB
11137 ;;
11138esac
859789af 11139fi
c6b750e1 11140AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 11141if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11143$as_echo "$AR_FOR_TARGET" >&6; }
859789af 11144else
81ecdfbb
RW
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146$as_echo "no" >&6; }
859789af 11147fi
05cbd757 11148
81ecdfbb 11149
2429c060
PB
11150fi
11151if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
11152
11153
11154if test -n "$AR_FOR_TARGET"; then
11155 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11156elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11157 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11158fi
11159
11160if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11161 for ncn_progname in ar; do
11162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11163set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165$as_echo_n "checking for $ac_word... " >&6; }
11166if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
9a819804
AO
11168else
11169 if test -n "$AR_FOR_TARGET"; then
11170 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11171else
11172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11173for as_dir in $PATH
11174do
11175 IFS=$as_save_IFS
11176 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11177 for ac_exec_ext in '' $ac_executable_extensions; do
11178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11179 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11181 break 2
11182 fi
11183done
81ecdfbb
RW
11184 done
11185IFS=$as_save_IFS
9a819804
AO
11186
11187fi
11188fi
11189AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11190if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11192$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11193else
81ecdfbb
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11195$as_echo "no" >&6; }
9a819804
AO
11196fi
11197
81ecdfbb 11198
9a819804
AO
11199 done
11200fi
11201
11202if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11203 for ncn_progname in ar; do
81ecdfbb
RW
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11205$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11206 if test -x $with_build_time_tools/${ncn_progname}; then
11207 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11209$as_echo "yes" >&6; }
2429c060
PB
11210 break
11211 else
81ecdfbb
RW
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213$as_echo "no" >&6; }
2429c060
PB
11214 fi
11215 done
859789af
AC
11216fi
11217
2429c060
PB
11218if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11219 for ncn_progname in ar; do
11220 if test -n "$ncn_target_tool_prefix"; then
11221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11222set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224$as_echo_n "checking for $ac_word... " >&6; }
11225if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
7e0f7140 11227else
2429c060
PB
11228 if test -n "$AR_FOR_TARGET"; then
11229 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11230else
c6b750e1
DJ
11231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232for as_dir in $PATH
11233do
11234 IFS=$as_save_IFS
11235 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11238 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11240 break 2
11241 fi
11242done
81ecdfbb
RW
11243 done
11244IFS=$as_save_IFS
c6b750e1 11245
7e0f7140
GK
11246fi
11247fi
c6b750e1 11248AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11249if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11251$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11252else
81ecdfbb
RW
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254$as_echo "no" >&6; }
7e0f7140
GK
11255fi
11256
81ecdfbb 11257
2429c060
PB
11258 fi
11259 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11261set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263$as_echo_n "checking for $ac_word... " >&6; }
11264if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
7e0f7140 11266else
2429c060
PB
11267 if test -n "$AR_FOR_TARGET"; then
11268 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11269else
c6b750e1
DJ
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11277 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11279 break 2
11280 fi
11281done
81ecdfbb
RW
11282 done
11283IFS=$as_save_IFS
c6b750e1 11284
7e0f7140
GK
11285fi
11286fi
c6b750e1 11287AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11288if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11290$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11291else
81ecdfbb
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
7e0f7140 11294fi
c6b750e1 11295
81ecdfbb 11296
2429c060
PB
11297 fi
11298 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11299 done
11300fi
c6b750e1 11301
2429c060
PB
11302if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11303 set dummy ar
7e0f7140 11304 if test $build = $target ; then
2429c060 11305 AR_FOR_TARGET="$2"
7e0f7140 11306 else
2429c060 11307 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11308 fi
d3f5afc4
MS
11309else
11310 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11311fi
11312
3a35eeb3
PB
11313else
11314 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11315fi
11316
11317
11318
11319
11320if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11321 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11323$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11324 if test -x $with_build_time_tools/as; then
11325 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11326 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11328$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11329 else
81ecdfbb
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331$as_echo "no" >&6; }
3a35eeb3 11332 fi
2429c060
PB
11333 elif test $build != $host && test $have_gcc_for_target = yes; then
11334 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11335 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11336 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11337 fi
11338fi
c6b750e1 11339if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11340 # Extract the first word of "as", so it can be a program name with args.
11341set dummy as; ac_word=$2
81ecdfbb
RW
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343$as_echo_n "checking for $ac_word... " >&6; }
11344if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
2429c060 11346else
c6b750e1
DJ
11347 case $AS_FOR_TARGET in
11348 [\\/]* | ?:[\\/]*)
2429c060
PB
11349 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11350 ;;
2429c060 11351 *)
c6b750e1
DJ
11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $gcc_cv_tool_dirs
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11359 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11361 break 2
11362 fi
11363done
81ecdfbb
RW
11364 done
11365IFS=$as_save_IFS
c6b750e1 11366
2429c060
PB
11367 ;;
11368esac
11369fi
c6b750e1 11370AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11371if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11373$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11374else
81ecdfbb
RW
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11376$as_echo "no" >&6; }
2429c060
PB
11377fi
11378
81ecdfbb 11379
2429c060
PB
11380fi
11381if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11382
11383
11384if test -n "$AS_FOR_TARGET"; then
11385 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11386elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11387 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11388fi
11389
11390if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11391 for ncn_progname in as; do
11392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11393set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11395$as_echo_n "checking for $ac_word... " >&6; }
11396if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
9a819804
AO
11398else
11399 if test -n "$AS_FOR_TARGET"; then
11400 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11401else
11402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403for as_dir in $PATH
11404do
11405 IFS=$as_save_IFS
11406 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11407 for ac_exec_ext in '' $ac_executable_extensions; do
11408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11409 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11411 break 2
11412 fi
11413done
81ecdfbb
RW
11414 done
11415IFS=$as_save_IFS
9a819804
AO
11416
11417fi
11418fi
11419AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11420if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11422$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11423else
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425$as_echo "no" >&6; }
9a819804
AO
11426fi
11427
81ecdfbb 11428
9a819804
AO
11429 done
11430fi
11431
11432if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11433 for ncn_progname in as; do
81ecdfbb
RW
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11435$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11436 if test -x $with_build_time_tools/${ncn_progname}; then
11437 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11439$as_echo "yes" >&6; }
2429c060
PB
11440 break
11441 else
81ecdfbb
RW
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443$as_echo "no" >&6; }
2429c060
PB
11444 fi
11445 done
11446fi
11447
11448if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11449 for ncn_progname in as; do
11450 if test -n "$ncn_target_tool_prefix"; then
11451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11452set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454$as_echo_n "checking for $ac_word... " >&6; }
11455if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
2429c060
PB
11457else
11458 if test -n "$AS_FOR_TARGET"; then
11459 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11460else
c6b750e1
DJ
11461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462for as_dir in $PATH
11463do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11468 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11470 break 2
11471 fi
11472done
81ecdfbb
RW
11473 done
11474IFS=$as_save_IFS
c6b750e1 11475
2429c060
PB
11476fi
11477fi
c6b750e1 11478AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11479if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11481$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11482else
81ecdfbb
RW
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484$as_echo "no" >&6; }
2429c060
PB
11485fi
11486
81ecdfbb 11487
2429c060
PB
11488 fi
11489 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11491set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493$as_echo_n "checking for $ac_word... " >&6; }
11494if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
2429c060
PB
11496else
11497 if test -n "$AS_FOR_TARGET"; then
11498 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11499else
c6b750e1
DJ
11500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $PATH
11502do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11507 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11509 break 2
11510 fi
11511done
81ecdfbb
RW
11512 done
11513IFS=$as_save_IFS
c6b750e1 11514
2429c060
PB
11515fi
11516fi
c6b750e1 11517AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11518if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11520$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11521else
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
2429c060 11524fi
c6b750e1 11525
81ecdfbb 11526
2429c060
PB
11527 fi
11528 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11529 done
11530fi
c6b750e1 11531
2429c060
PB
11532if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11533 set dummy as
11534 if test $build = $target ; then
11535 AS_FOR_TARGET="$2"
11536 else
11537 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11538 fi
d3f5afc4
MS
11539else
11540 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11541fi
11542
3a35eeb3
PB
11543else
11544 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11545fi
11546
11547
11548
11549
11550if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11551 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11553$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11554 if test -x $with_build_time_tools/dlltool; then
11555 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11556 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11558$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11559 else
81ecdfbb
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
3a35eeb3 11562 fi
2429c060
PB
11563 elif test $build != $host && test $have_gcc_for_target = yes; then
11564 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11565 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11566 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11567 fi
11568fi
c6b750e1 11569if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11570 # Extract the first word of "dlltool", so it can be a program name with args.
11571set dummy dlltool; ac_word=$2
81ecdfbb
RW
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573$as_echo_n "checking for $ac_word... " >&6; }
11574if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
2429c060 11576else
c6b750e1
DJ
11577 case $DLLTOOL_FOR_TARGET in
11578 [\\/]* | ?:[\\/]*)
2429c060
PB
11579 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11580 ;;
2429c060 11581 *)
c6b750e1
DJ
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $gcc_cv_tool_dirs
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11589 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11591 break 2
11592 fi
11593done
81ecdfbb
RW
11594 done
11595IFS=$as_save_IFS
c6b750e1 11596
2429c060
PB
11597 ;;
11598esac
11599fi
c6b750e1 11600DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11601if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11603$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11604else
81ecdfbb
RW
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606$as_echo "no" >&6; }
2429c060
PB
11607fi
11608
81ecdfbb 11609
2429c060
PB
11610fi
11611if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11612
11613
11614if test -n "$DLLTOOL_FOR_TARGET"; then
11615 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11616elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11617 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11618fi
11619
11620if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11621 for ncn_progname in dlltool; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11625$as_echo_n "checking for $ac_word... " >&6; }
11626if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11627 $as_echo_n "(cached) " >&6
9a819804
AO
11628else
11629 if test -n "$DLLTOOL_FOR_TARGET"; then
11630 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11631else
11632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633for as_dir in $PATH
11634do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11639 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11641 break 2
11642 fi
11643done
81ecdfbb
RW
11644 done
11645IFS=$as_save_IFS
9a819804
AO
11646
11647fi
11648fi
11649DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11650if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11652$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11653else
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11655$as_echo "no" >&6; }
9a819804
AO
11656fi
11657
81ecdfbb 11658
9a819804
AO
11659 done
11660fi
11661
11662if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11663 for ncn_progname in dlltool; do
81ecdfbb
RW
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11665$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11666 if test -x $with_build_time_tools/${ncn_progname}; then
11667 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11669$as_echo "yes" >&6; }
2429c060
PB
11670 break
11671 else
81ecdfbb
RW
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673$as_echo "no" >&6; }
2429c060
PB
11674 fi
11675 done
11676fi
11677
11678if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11679 for ncn_progname in dlltool; do
11680 if test -n "$ncn_target_tool_prefix"; then
11681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11682set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11684$as_echo_n "checking for $ac_word... " >&6; }
11685if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
2429c060
PB
11687else
11688 if test -n "$DLLTOOL_FOR_TARGET"; then
11689 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11690else
c6b750e1
DJ
11691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692for as_dir in $PATH
11693do
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11698 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11700 break 2
11701 fi
11702done
81ecdfbb
RW
11703 done
11704IFS=$as_save_IFS
c6b750e1 11705
2429c060
PB
11706fi
11707fi
c6b750e1 11708DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11709if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11711$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11712else
81ecdfbb
RW
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714$as_echo "no" >&6; }
2429c060
PB
11715fi
11716
81ecdfbb 11717
2429c060
PB
11718 fi
11719 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11721set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723$as_echo_n "checking for $ac_word... " >&6; }
11724if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
2429c060
PB
11726else
11727 if test -n "$DLLTOOL_FOR_TARGET"; then
11728 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11729else
c6b750e1
DJ
11730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731for as_dir in $PATH
11732do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11737 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11739 break 2
11740 fi
11741done
81ecdfbb
RW
11742 done
11743IFS=$as_save_IFS
c6b750e1 11744
2429c060
PB
11745fi
11746fi
c6b750e1 11747DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11748if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11750$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11751else
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
2429c060 11754fi
c6b750e1 11755
81ecdfbb 11756
2429c060
PB
11757 fi
11758 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11759 done
11760fi
c6b750e1 11761
2429c060
PB
11762if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11763 set dummy dlltool
11764 if test $build = $target ; then
11765 DLLTOOL_FOR_TARGET="$2"
11766 else
11767 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11768 fi
d3f5afc4
MS
11769else
11770 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11771fi
11772
3a35eeb3
PB
11773else
11774 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11775fi
11776
11777
11778
11779
11780if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11781 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11783$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11784 if test -x $with_build_time_tools/ld; then
11785 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11786 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11788$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11789 else
81ecdfbb
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
3a35eeb3 11792 fi
2429c060
PB
11793 elif test $build != $host && test $have_gcc_for_target = yes; then
11794 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11795 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11796 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11797 fi
11798fi
c6b750e1 11799if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11800 # Extract the first word of "ld", so it can be a program name with args.
11801set dummy ld; ac_word=$2
81ecdfbb
RW
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803$as_echo_n "checking for $ac_word... " >&6; }
11804if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
2429c060 11806else
c6b750e1
DJ
11807 case $LD_FOR_TARGET in
11808 [\\/]* | ?:[\\/]*)
2429c060
PB
11809 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11810 ;;
2429c060 11811 *)
c6b750e1
DJ
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $gcc_cv_tool_dirs
11814do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11819 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11821 break 2
11822 fi
11823done
81ecdfbb
RW
11824 done
11825IFS=$as_save_IFS
c6b750e1 11826
2429c060
PB
11827 ;;
11828esac
11829fi
c6b750e1 11830LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11831if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11833$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11834else
81ecdfbb
RW
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11836$as_echo "no" >&6; }
2429c060
PB
11837fi
11838
81ecdfbb 11839
2429c060
PB
11840fi
11841if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11842
11843
11844if test -n "$LD_FOR_TARGET"; then
11845 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11846elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11847 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11848fi
11849
11850if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11851 for ncn_progname in ld; do
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855$as_echo_n "checking for $ac_word... " >&6; }
11856if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11857 $as_echo_n "(cached) " >&6
9a819804
AO
11858else
11859 if test -n "$LD_FOR_TARGET"; then
11860 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11861else
11862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11869 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11871 break 2
11872 fi
11873done
81ecdfbb
RW
11874 done
11875IFS=$as_save_IFS
9a819804
AO
11876
11877fi
11878fi
11879LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11880if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11882$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11883else
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885$as_echo "no" >&6; }
9a819804
AO
11886fi
11887
81ecdfbb 11888
9a819804
AO
11889 done
11890fi
11891
11892if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11893 for ncn_progname in ld; do
81ecdfbb
RW
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11895$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11896 if test -x $with_build_time_tools/${ncn_progname}; then
11897 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11899$as_echo "yes" >&6; }
2429c060
PB
11900 break
11901 else
81ecdfbb
RW
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
2429c060
PB
11904 fi
11905 done
11906fi
11907
11908if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11909 for ncn_progname in ld; do
11910 if test -n "$ncn_target_tool_prefix"; then
11911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11912set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11914$as_echo_n "checking for $ac_word... " >&6; }
11915if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11916 $as_echo_n "(cached) " >&6
2429c060
PB
11917else
11918 if test -n "$LD_FOR_TARGET"; then
11919 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11920else
c6b750e1
DJ
11921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11928 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11930 break 2
11931 fi
11932done
81ecdfbb
RW
11933 done
11934IFS=$as_save_IFS
c6b750e1 11935
2429c060
PB
11936fi
11937fi
c6b750e1 11938LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11939if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11941$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11942else
81ecdfbb
RW
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944$as_echo "no" >&6; }
2429c060
PB
11945fi
11946
81ecdfbb 11947
2429c060
PB
11948 fi
11949 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11951set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
11954if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
2429c060
PB
11956else
11957 if test -n "$LD_FOR_TARGET"; then
11958 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11959else
c6b750e1
DJ
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11967 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11969 break 2
11970 fi
11971done
81ecdfbb
RW
11972 done
11973IFS=$as_save_IFS
c6b750e1 11974
2429c060
PB
11975fi
11976fi
c6b750e1 11977LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11978if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11980$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11981else
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
2429c060 11984fi
c6b750e1 11985
81ecdfbb 11986
2429c060
PB
11987 fi
11988 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11989 done
11990fi
c6b750e1 11991
2429c060
PB
11992if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11993 set dummy ld
11994 if test $build = $target ; then
11995 LD_FOR_TARGET="$2"
11996 else
11997 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11998 fi
d3f5afc4
MS
11999else
12000 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
12001fi
12002
3a35eeb3
PB
12003else
12004 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
12005fi
12006
12007
12008
12009
12010if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12011 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
12013$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12014 if test -x $with_build_time_tools/lipo; then
12015 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
12016 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
12018$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 12019 else
81ecdfbb
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021$as_echo "no" >&6; }
3a35eeb3 12022 fi
2429c060
PB
12023 elif test $build != $host && test $have_gcc_for_target = yes; then
12024 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
12025 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
12026 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
12027 fi
12028fi
9a819804
AO
12029if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12030 # Extract the first word of "lipo", so it can be a program name with args.
12031set dummy lipo; ac_word=$2
81ecdfbb
RW
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
12034if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
9a819804
AO
12036else
12037 case $LIPO_FOR_TARGET in
12038 [\\/]* | ?:[\\/]*)
12039 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
12040 ;;
12041 *)
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $gcc_cv_tool_dirs
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12049 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12051 break 2
12052 fi
12053done
81ecdfbb
RW
12054 done
12055IFS=$as_save_IFS
9a819804
AO
12056
12057 ;;
12058esac
12059fi
12060LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 12061if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12063$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 12064else
81ecdfbb
RW
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12066$as_echo "no" >&6; }
9a819804
AO
12067fi
12068
81ecdfbb 12069
9a819804
AO
12070fi
12071if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12072
12073
12074if test -n "$LIPO_FOR_TARGET"; then
12075 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12076elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12077 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12078fi
12079
12080if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12081 for ncn_progname in lipo; do
12082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12083set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12085$as_echo_n "checking for $ac_word... " >&6; }
12086if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
2429c060 12088else
9a819804
AO
12089 if test -n "$LIPO_FOR_TARGET"; then
12090 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12091else
12092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093for as_dir in $PATH
c6b750e1
DJ
12094do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12099 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12101 break 2
12102 fi
12103done
81ecdfbb
RW
12104 done
12105IFS=$as_save_IFS
c6b750e1 12106
2429c060 12107fi
9a819804
AO
12108fi
12109LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12110if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12112$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12113else
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115$as_echo "no" >&6; }
2429c060
PB
12116fi
12117
81ecdfbb 12118
9a819804 12119 done
2429c060 12120fi
9a819804
AO
12121
12122if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12123 for ncn_progname in lipo; do
81ecdfbb
RW
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12125$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12126 if test -x $with_build_time_tools/${ncn_progname}; then
12127 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129$as_echo "yes" >&6; }
2429c060
PB
12130 break
12131 else
81ecdfbb
RW
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
2429c060
PB
12134 fi
12135 done
12136fi
12137
12138if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12139 for ncn_progname in lipo; do
12140 if test -n "$ncn_target_tool_prefix"; then
12141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12142set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12144$as_echo_n "checking for $ac_word... " >&6; }
12145if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12146 $as_echo_n "(cached) " >&6
2429c060
PB
12147else
12148 if test -n "$LIPO_FOR_TARGET"; then
12149 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12150else
c6b750e1
DJ
12151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12152for as_dir in $PATH
12153do
12154 IFS=$as_save_IFS
12155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12156 for ac_exec_ext in '' $ac_executable_extensions; do
12157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12158 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12160 break 2
12161 fi
12162done
81ecdfbb
RW
12163 done
12164IFS=$as_save_IFS
c6b750e1 12165
2429c060
PB
12166fi
12167fi
c6b750e1 12168LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12169if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12171$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12172else
81ecdfbb
RW
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12174$as_echo "no" >&6; }
2429c060
PB
12175fi
12176
81ecdfbb 12177
2429c060
PB
12178 fi
12179 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12181set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
12184if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
2429c060
PB
12186else
12187 if test -n "$LIPO_FOR_TARGET"; then
12188 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12189else
c6b750e1
DJ
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12197 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12199 break 2
12200 fi
12201done
81ecdfbb
RW
12202 done
12203IFS=$as_save_IFS
c6b750e1 12204
2429c060
PB
12205fi
12206fi
c6b750e1 12207LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12208if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12210$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12211else
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
2429c060 12214fi
c6b750e1 12215
81ecdfbb 12216
2429c060
PB
12217 fi
12218 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12219 done
12220fi
c6b750e1 12221
2429c060
PB
12222if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12223 set dummy lipo
12224 if test $build = $target ; then
12225 LIPO_FOR_TARGET="$2"
12226 else
12227 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12228 fi
d3f5afc4
MS
12229else
12230 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12231fi
12232
3a35eeb3
PB
12233else
12234 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12235fi
12236
12237
12238
12239
12240if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12241 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12243$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12244 if test -x $with_build_time_tools/nm; then
12245 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12246 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12248$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12249 else
81ecdfbb
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
3a35eeb3 12252 fi
2429c060
PB
12253 elif test $build != $host && test $have_gcc_for_target = yes; then
12254 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12255 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12256 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12257 fi
12258fi
c6b750e1 12259if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12260 # Extract the first word of "nm", so it can be a program name with args.
12261set dummy nm; ac_word=$2
81ecdfbb
RW
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
12264if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
2429c060 12266else
c6b750e1
DJ
12267 case $NM_FOR_TARGET in
12268 [\\/]* | ?:[\\/]*)
2429c060
PB
12269 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12270 ;;
2429c060 12271 *)
c6b750e1
DJ
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $gcc_cv_tool_dirs
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12279 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12281 break 2
12282 fi
12283done
81ecdfbb
RW
12284 done
12285IFS=$as_save_IFS
c6b750e1 12286
2429c060
PB
12287 ;;
12288esac
12289fi
c6b750e1 12290NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12291if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12293$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12294else
81ecdfbb
RW
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12296$as_echo "no" >&6; }
2429c060
PB
12297fi
12298
81ecdfbb 12299
2429c060
PB
12300fi
12301if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12302
12303
12304if test -n "$NM_FOR_TARGET"; then
12305 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12306elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12307 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12308fi
12309
12310if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12311 for ncn_progname in nm; do
12312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12313set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12315$as_echo_n "checking for $ac_word... " >&6; }
12316if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
9a819804
AO
12318else
12319 if test -n "$NM_FOR_TARGET"; then
12320 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12321else
12322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12323for as_dir in $PATH
12324do
12325 IFS=$as_save_IFS
12326 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12327 for ac_exec_ext in '' $ac_executable_extensions; do
12328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12329 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12331 break 2
12332 fi
12333done
81ecdfbb
RW
12334 done
12335IFS=$as_save_IFS
9a819804
AO
12336
12337fi
12338fi
12339NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12340if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12342$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12343else
81ecdfbb
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12345$as_echo "no" >&6; }
9a819804
AO
12346fi
12347
81ecdfbb 12348
9a819804
AO
12349 done
12350fi
12351
12352if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12353 for ncn_progname in nm; do
81ecdfbb
RW
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12355$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12356 if test -x $with_build_time_tools/${ncn_progname}; then
12357 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359$as_echo "yes" >&6; }
2429c060
PB
12360 break
12361 else
81ecdfbb
RW
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363$as_echo "no" >&6; }
2429c060
PB
12364 fi
12365 done
12366fi
12367
12368if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12369 for ncn_progname in nm; do
12370 if test -n "$ncn_target_tool_prefix"; then
12371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12372set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374$as_echo_n "checking for $ac_word... " >&6; }
12375if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12376 $as_echo_n "(cached) " >&6
859789af 12377else
55db4b87
PB
12378 if test -n "$NM_FOR_TARGET"; then
12379 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12380else
c6b750e1
DJ
12381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in $PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12388 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12390 break 2
12391 fi
12392done
81ecdfbb
RW
12393 done
12394IFS=$as_save_IFS
c6b750e1 12395
859789af
AC
12396fi
12397fi
c6b750e1 12398NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12399if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12401$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12402else
81ecdfbb
RW
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404$as_echo "no" >&6; }
859789af
AC
12405fi
12406
81ecdfbb 12407
2429c060
PB
12408 fi
12409 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12411set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
12414if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
859789af 12416else
05cbd757
PB
12417 if test -n "$NM_FOR_TARGET"; then
12418 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12419else
c6b750e1
DJ
12420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421for as_dir in $PATH
12422do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12427 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12429 break 2
12430 fi
12431done
81ecdfbb
RW
12432 done
12433IFS=$as_save_IFS
c6b750e1 12434
859789af
AC
12435fi
12436fi
c6b750e1 12437NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12438if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12440$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12441else
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
859789af 12444fi
c6b750e1 12445
81ecdfbb 12446
2429c060
PB
12447 fi
12448 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12449 done
12450fi
c6b750e1 12451
05cbd757
PB
12452if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12453 set dummy nm
12454 if test $build = $target ; then
12455 NM_FOR_TARGET="$2"
859789af 12456 else
05cbd757 12457 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12458 fi
d3f5afc4
MS
12459else
12460 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12461fi
12462
3a35eeb3
PB
12463else
12464 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12465fi
12466
12467
12468
12469
12470if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12471 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12473$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12474 if test -x $with_build_time_tools/objdump; then
12475 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12476 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12478$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12479 else
81ecdfbb
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481$as_echo "no" >&6; }
3a35eeb3 12482 fi
2429c060
PB
12483 elif test $build != $host && test $have_gcc_for_target = yes; then
12484 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12485 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12486 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12487 fi
12488fi
c6b750e1 12489if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12490 # Extract the first word of "objdump", so it can be a program name with args.
12491set dummy objdump; ac_word=$2
81ecdfbb
RW
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493$as_echo_n "checking for $ac_word... " >&6; }
12494if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
2429c060 12496else
c6b750e1
DJ
12497 case $OBJDUMP_FOR_TARGET in
12498 [\\/]* | ?:[\\/]*)
2429c060
PB
12499 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12500 ;;
2429c060 12501 *)
c6b750e1
DJ
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503for as_dir in $gcc_cv_tool_dirs
12504do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12509 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12511 break 2
12512 fi
12513done
81ecdfbb
RW
12514 done
12515IFS=$as_save_IFS
c6b750e1 12516
2429c060
PB
12517 ;;
12518esac
12519fi
c6b750e1 12520OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12521if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12523$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12524else
81ecdfbb
RW
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526$as_echo "no" >&6; }
2429c060
PB
12527fi
12528
81ecdfbb 12529
2429c060
PB
12530fi
12531if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12532
12533
12534if test -n "$OBJDUMP_FOR_TARGET"; then
12535 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12536elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12537 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12538fi
12539
12540if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12541 for ncn_progname in objdump; do
12542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12543set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12545$as_echo_n "checking for $ac_word... " >&6; }
12546if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12547 $as_echo_n "(cached) " >&6
9a819804
AO
12548else
12549 if test -n "$OBJDUMP_FOR_TARGET"; then
12550 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12551else
12552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12553for as_dir in $PATH
12554do
12555 IFS=$as_save_IFS
12556 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12557 for ac_exec_ext in '' $ac_executable_extensions; do
12558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12559 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12561 break 2
12562 fi
12563done
81ecdfbb
RW
12564 done
12565IFS=$as_save_IFS
9a819804
AO
12566
12567fi
12568fi
12569OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12570if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12572$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12573else
81ecdfbb
RW
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575$as_echo "no" >&6; }
9a819804
AO
12576fi
12577
81ecdfbb 12578
9a819804
AO
12579 done
12580fi
12581
12582if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12583 for ncn_progname in objdump; do
81ecdfbb
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12585$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12586 if test -x $with_build_time_tools/${ncn_progname}; then
12587 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12589$as_echo "yes" >&6; }
2429c060
PB
12590 break
12591 else
81ecdfbb
RW
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593$as_echo "no" >&6; }
2429c060
PB
12594 fi
12595 done
12596fi
12597
12598if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12599 for ncn_progname in objdump; do
12600 if test -n "$ncn_target_tool_prefix"; then
12601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12602set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12604$as_echo_n "checking for $ac_word... " >&6; }
12605if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12606 $as_echo_n "(cached) " >&6
5ae72758
DJ
12607else
12608 if test -n "$OBJDUMP_FOR_TARGET"; then
12609 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12610else
c6b750e1
DJ
12611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12612for as_dir in $PATH
12613do
12614 IFS=$as_save_IFS
12615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12618 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12620 break 2
12621 fi
12622done
81ecdfbb
RW
12623 done
12624IFS=$as_save_IFS
c6b750e1 12625
5ae72758
DJ
12626fi
12627fi
c6b750e1 12628OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12629if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12631$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12632else
81ecdfbb
RW
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634$as_echo "no" >&6; }
5ae72758
DJ
12635fi
12636
81ecdfbb 12637
2429c060
PB
12638 fi
12639 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12641set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
12644if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
5ae72758
DJ
12646else
12647 if test -n "$OBJDUMP_FOR_TARGET"; then
12648 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12649else
c6b750e1
DJ
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12657 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12659 break 2
12660 fi
12661done
81ecdfbb
RW
12662 done
12663IFS=$as_save_IFS
c6b750e1 12664
5ae72758
DJ
12665fi
12666fi
c6b750e1 12667OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12668if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12670$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12671else
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
5ae72758 12674fi
c6b750e1 12675
81ecdfbb 12676
2429c060
PB
12677 fi
12678 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12679 done
12680fi
c6b750e1 12681
5ae72758
DJ
12682if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12683 set dummy objdump
12684 if test $build = $target ; then
12685 OBJDUMP_FOR_TARGET="$2"
12686 else
12687 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12688 fi
d3f5afc4
MS
12689else
12690 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12691fi
12692
3a35eeb3
PB
12693else
12694 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12695fi
12696
12697
12698
12699
12700if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12701 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12703$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12704 if test -x $with_build_time_tools/ranlib; then
12705 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12706 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12708$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12709 else
81ecdfbb
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
3a35eeb3 12712 fi
2429c060
PB
12713 elif test $build != $host && test $have_gcc_for_target = yes; then
12714 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12715 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12716 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12717 fi
12718fi
c6b750e1 12719if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12720 # Extract the first word of "ranlib", so it can be a program name with args.
12721set dummy ranlib; ac_word=$2
81ecdfbb
RW
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723$as_echo_n "checking for $ac_word... " >&6; }
12724if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
2429c060 12726else
c6b750e1
DJ
12727 case $RANLIB_FOR_TARGET in
12728 [\\/]* | ?:[\\/]*)
2429c060
PB
12729 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12730 ;;
2429c060 12731 *)
c6b750e1
DJ
12732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $gcc_cv_tool_dirs
12734do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12739 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12741 break 2
12742 fi
12743done
81ecdfbb
RW
12744 done
12745IFS=$as_save_IFS
c6b750e1 12746
2429c060
PB
12747 ;;
12748esac
12749fi
c6b750e1 12750RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12751if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12753$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12754else
81ecdfbb
RW
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756$as_echo "no" >&6; }
2429c060
PB
12757fi
12758
81ecdfbb 12759
2429c060
PB
12760fi
12761if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12762
12763
12764if test -n "$RANLIB_FOR_TARGET"; then
12765 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12766elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12767 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12768fi
12769
12770if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12771 for ncn_progname in ranlib; do
12772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12773set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775$as_echo_n "checking for $ac_word... " >&6; }
12776if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12777 $as_echo_n "(cached) " >&6
9a819804
AO
12778else
12779 if test -n "$RANLIB_FOR_TARGET"; then
12780 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12781else
12782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12783for as_dir in $PATH
12784do
12785 IFS=$as_save_IFS
12786 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12787 for ac_exec_ext in '' $ac_executable_extensions; do
12788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12789 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12791 break 2
12792 fi
12793done
81ecdfbb
RW
12794 done
12795IFS=$as_save_IFS
9a819804
AO
12796
12797fi
12798fi
12799RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12800if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12802$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12803else
81ecdfbb
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805$as_echo "no" >&6; }
9a819804
AO
12806fi
12807
81ecdfbb 12808
9a819804
AO
12809 done
12810fi
12811
12812if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12813 for ncn_progname in ranlib; do
81ecdfbb
RW
12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12815$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12816 if test -x $with_build_time_tools/${ncn_progname}; then
12817 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819$as_echo "yes" >&6; }
2429c060
PB
12820 break
12821 else
81ecdfbb
RW
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
2429c060
PB
12824 fi
12825 done
12826fi
12827
12828if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12829 for ncn_progname in ranlib; do
12830 if test -n "$ncn_target_tool_prefix"; then
12831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12832set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834$as_echo_n "checking for $ac_word... " >&6; }
12835if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12836 $as_echo_n "(cached) " >&6
859789af 12837else
55db4b87
PB
12838 if test -n "$RANLIB_FOR_TARGET"; then
12839 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12840else
c6b750e1
DJ
12841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842for as_dir in $PATH
12843do
12844 IFS=$as_save_IFS
12845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12848 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12850 break 2
12851 fi
12852done
81ecdfbb
RW
12853 done
12854IFS=$as_save_IFS
c6b750e1 12855
859789af
AC
12856fi
12857fi
c6b750e1 12858RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12859if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12861$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12862else
81ecdfbb
RW
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12864$as_echo "no" >&6; }
859789af
AC
12865fi
12866
81ecdfbb 12867
2429c060
PB
12868 fi
12869 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12871set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
12874if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
859789af 12876else
05cbd757
PB
12877 if test -n "$RANLIB_FOR_TARGET"; then
12878 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12879else
c6b750e1
DJ
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12887 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12889 break 2
12890 fi
12891done
81ecdfbb
RW
12892 done
12893IFS=$as_save_IFS
c6b750e1 12894
859789af
AC
12895fi
12896fi
c6b750e1 12897RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12898if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12900$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12901else
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
859789af 12904fi
c6b750e1 12905
81ecdfbb 12906
2429c060
PB
12907 fi
12908 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12909 done
12910fi
c6b750e1 12911
2429c060
PB
12912if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12913 set dummy ranlib
12914 if test $build = $target ; then
12915 RANLIB_FOR_TARGET="$2"
12916 else
12917 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12918 fi
d3f5afc4
MS
12919else
12920 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12921fi
05cbd757 12922
3a35eeb3
PB
12923else
12924 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12925fi
12926
2429c060
PB
12927
12928
12929
12930if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12931 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12933$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12934 if test -x $with_build_time_tools/strip; then
12935 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12936 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12938$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12939 else
81ecdfbb
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941$as_echo "no" >&6; }
3a35eeb3 12942 fi
2429c060
PB
12943 elif test $build != $host && test $have_gcc_for_target = yes; then
12944 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12945 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12946 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12947 fi
12948fi
c6b750e1 12949if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12950 # Extract the first word of "strip", so it can be a program name with args.
12951set dummy strip; ac_word=$2
81ecdfbb
RW
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953$as_echo_n "checking for $ac_word... " >&6; }
12954if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
2429c060 12956else
c6b750e1
DJ
12957 case $STRIP_FOR_TARGET in
12958 [\\/]* | ?:[\\/]*)
2429c060
PB
12959 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12960 ;;
2429c060 12961 *)
c6b750e1
DJ
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $gcc_cv_tool_dirs
12964do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12969 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12971 break 2
12972 fi
12973done
81ecdfbb
RW
12974 done
12975IFS=$as_save_IFS
c6b750e1 12976
2429c060
PB
12977 ;;
12978esac
12979fi
c6b750e1 12980STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12981if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12983$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12984else
81ecdfbb
RW
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986$as_echo "no" >&6; }
2429c060
PB
12987fi
12988
81ecdfbb 12989
2429c060
PB
12990fi
12991if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12992
12993
12994if test -n "$STRIP_FOR_TARGET"; then
12995 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12996elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12997 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12998fi
12999
13000if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13001 for ncn_progname in strip; do
13002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13003set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005$as_echo_n "checking for $ac_word... " >&6; }
13006if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
9a819804
AO
13008else
13009 if test -n "$STRIP_FOR_TARGET"; then
13010 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13011else
13012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013for as_dir in $PATH
13014do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13019 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13021 break 2
13022 fi
13023done
81ecdfbb
RW
13024 done
13025IFS=$as_save_IFS
9a819804
AO
13026
13027fi
13028fi
13029STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13030if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13032$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13033else
81ecdfbb
RW
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035$as_echo "no" >&6; }
9a819804
AO
13036fi
13037
81ecdfbb 13038
9a819804
AO
13039 done
13040fi
13041
13042if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13043 for ncn_progname in strip; do
81ecdfbb
RW
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13045$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13046 if test -x $with_build_time_tools/${ncn_progname}; then
13047 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13049$as_echo "yes" >&6; }
2429c060
PB
13050 break
13051 else
81ecdfbb
RW
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
2429c060
PB
13054 fi
13055 done
13056fi
13057
13058if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13059 for ncn_progname in strip; do
13060 if test -n "$ncn_target_tool_prefix"; then
13061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13062set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13064$as_echo_n "checking for $ac_word... " >&6; }
13065if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13066 $as_echo_n "(cached) " >&6
7e0f7140
GK
13067else
13068 if test -n "$STRIP_FOR_TARGET"; then
13069 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13070else
13071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072for as_dir in $PATH
13073do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13078 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13080 break 2
13081 fi
13082done
81ecdfbb
RW
13083 done
13084IFS=$as_save_IFS
c6b750e1 13085
7e0f7140
GK
13086fi
13087fi
c6b750e1 13088STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13089if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13091$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13092else
81ecdfbb
RW
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13094$as_echo "no" >&6; }
7e0f7140
GK
13095fi
13096
81ecdfbb 13097
2429c060
PB
13098 fi
13099 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13101set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103$as_echo_n "checking for $ac_word... " >&6; }
13104if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
7e0f7140
GK
13106else
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13109else
c6b750e1
DJ
13110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111for as_dir in $PATH
13112do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13117 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13119 break 2
13120 fi
13121done
81ecdfbb
RW
13122 done
13123IFS=$as_save_IFS
c6b750e1 13124
7e0f7140
GK
13125fi
13126fi
c6b750e1 13127STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13128if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13131else
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
7e0f7140 13134fi
c6b750e1 13135
81ecdfbb 13136
2429c060
PB
13137 fi
13138 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13139 done
13140fi
c6b750e1 13141
7e0f7140
GK
13142if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13143 set dummy strip
13144 if test $build = $target ; then
13145 STRIP_FOR_TARGET="$2"
13146 else
13147 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13148 fi
d3f5afc4
MS
13149else
13150 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13151fi
13152
3a35eeb3
PB
13153else
13154 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13155fi
13156
13157
13158
13159
13160if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13161 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13163$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13164 if test -x $with_build_time_tools/windres; then
13165 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13166 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13168$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13169 else
81ecdfbb
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171$as_echo "no" >&6; }
3a35eeb3 13172 fi
2429c060
PB
13173 elif test $build != $host && test $have_gcc_for_target = yes; then
13174 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13175 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13176 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13177 fi
13178fi
c6b750e1 13179if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13180 # Extract the first word of "windres", so it can be a program name with args.
13181set dummy windres; ac_word=$2
81ecdfbb
RW
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183$as_echo_n "checking for $ac_word... " >&6; }
13184if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
2429c060 13186else
c6b750e1
DJ
13187 case $WINDRES_FOR_TARGET in
13188 [\\/]* | ?:[\\/]*)
2429c060
PB
13189 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13190 ;;
2429c060 13191 *)
c6b750e1
DJ
13192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193for as_dir in $gcc_cv_tool_dirs
13194do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13199 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13201 break 2
13202 fi
13203done
81ecdfbb
RW
13204 done
13205IFS=$as_save_IFS
c6b750e1 13206
2429c060
PB
13207 ;;
13208esac
13209fi
c6b750e1 13210WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13211if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13213$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13214else
81ecdfbb
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216$as_echo "no" >&6; }
2429c060
PB
13217fi
13218
81ecdfbb 13219
2429c060
PB
13220fi
13221if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13222
13223
13224if test -n "$WINDRES_FOR_TARGET"; then
13225 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13226elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13227 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13228fi
13229
13230if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13231 for ncn_progname in windres; do
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235$as_echo_n "checking for $ac_word... " >&6; }
13236if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13237 $as_echo_n "(cached) " >&6
9a819804
AO
13238else
13239 if test -n "$WINDRES_FOR_TARGET"; then
13240 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13241else
13242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243for as_dir in $PATH
13244do
13245 IFS=$as_save_IFS
13246 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13249 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13251 break 2
13252 fi
13253done
81ecdfbb
RW
13254 done
13255IFS=$as_save_IFS
9a819804
AO
13256
13257fi
13258fi
13259WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13260if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13262$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13263else
81ecdfbb
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265$as_echo "no" >&6; }
9a819804
AO
13266fi
13267
81ecdfbb 13268
9a819804
AO
13269 done
13270fi
13271
13272if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13273 for ncn_progname in windres; do
81ecdfbb
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13275$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13276 if test -x $with_build_time_tools/${ncn_progname}; then
13277 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13279$as_echo "yes" >&6; }
2429c060
PB
13280 break
13281 else
81ecdfbb
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
2429c060
PB
13284 fi
13285 done
13286fi
13287
13288if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13289 for ncn_progname in windres; do
13290 if test -n "$ncn_target_tool_prefix"; then
13291 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13292set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294$as_echo_n "checking for $ac_word... " >&6; }
13295if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13296 $as_echo_n "(cached) " >&6
859789af 13297else
55db4b87
PB
13298 if test -n "$WINDRES_FOR_TARGET"; then
13299 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13300else
c6b750e1
DJ
13301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302for as_dir in $PATH
13303do
13304 IFS=$as_save_IFS
13305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13306 for ac_exec_ext in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13308 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13310 break 2
13311 fi
13312done
81ecdfbb
RW
13313 done
13314IFS=$as_save_IFS
c6b750e1 13315
859789af
AC
13316fi
13317fi
c6b750e1 13318WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13319if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13321$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13322else
81ecdfbb
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13324$as_echo "no" >&6; }
859789af
AC
13325fi
13326
81ecdfbb 13327
2429c060
PB
13328 fi
13329 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13331set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333$as_echo_n "checking for $ac_word... " >&6; }
13334if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
859789af 13336else
05cbd757
PB
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13339else
c6b750e1
DJ
13340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341for as_dir in $PATH
13342do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13349 break 2
13350 fi
13351done
81ecdfbb
RW
13352 done
13353IFS=$as_save_IFS
c6b750e1 13354
859789af
AC
13355fi
13356fi
c6b750e1 13357WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13358if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13361else
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363$as_echo "no" >&6; }
859789af 13364fi
c6b750e1 13365
81ecdfbb 13366
2429c060
PB
13367 fi
13368 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13369 done
13370fi
c6b750e1 13371
05cbd757
PB
13372if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13373 set dummy windres
13374 if test $build = $target ; then
13375 WINDRES_FOR_TARGET="$2"
859789af 13376 else
05cbd757 13377 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13378 fi
d3f5afc4
MS
13379else
13380 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13381fi
13382
3a35eeb3
PB
13383else
13384 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13385fi
13386
852e5f18 13387
0c24b341
NC
13388
13389
13390if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13391 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13393$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13394 if test -x $with_build_time_tools/windmc; then
13395 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13396 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13398$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13399 else
81ecdfbb
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401$as_echo "no" >&6; }
0c24b341
NC
13402 fi
13403 elif test $build != $host && test $have_gcc_for_target = yes; then
13404 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13405 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13406 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13407 fi
13408fi
13409if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13410 # Extract the first word of "windmc", so it can be a program name with args.
13411set dummy windmc; ac_word=$2
81ecdfbb
RW
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413$as_echo_n "checking for $ac_word... " >&6; }
13414if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
0c24b341
NC
13416else
13417 case $WINDMC_FOR_TARGET in
13418 [\\/]* | ?:[\\/]*)
13419 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13420 ;;
13421 *)
13422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423for as_dir in $gcc_cv_tool_dirs
13424do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13429 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13431 break 2
13432 fi
13433done
81ecdfbb
RW
13434 done
13435IFS=$as_save_IFS
0c24b341
NC
13436
13437 ;;
13438esac
13439fi
13440WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13441if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13443$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13444else
81ecdfbb
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13446$as_echo "no" >&6; }
0c24b341
NC
13447fi
13448
81ecdfbb 13449
0c24b341
NC
13450fi
13451if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13452
13453
13454if test -n "$WINDMC_FOR_TARGET"; then
13455 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13456elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13457 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13458fi
13459
13460if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13461 for ncn_progname in windmc; do
13462 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13463set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13465$as_echo_n "checking for $ac_word... " >&6; }
13466if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13467 $as_echo_n "(cached) " >&6
0c24b341
NC
13468else
13469 if test -n "$WINDMC_FOR_TARGET"; then
13470 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13471else
13472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13473for as_dir in $PATH
13474do
13475 IFS=$as_save_IFS
13476 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13477 for ac_exec_ext in '' $ac_executable_extensions; do
13478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13479 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13481 break 2
13482 fi
13483done
81ecdfbb
RW
13484 done
13485IFS=$as_save_IFS
0c24b341
NC
13486
13487fi
13488fi
13489WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13490if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13492$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13493else
81ecdfbb
RW
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13495$as_echo "no" >&6; }
0c24b341
NC
13496fi
13497
81ecdfbb 13498
0c24b341
NC
13499 done
13500fi
13501
13502if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13503 for ncn_progname in windmc; do
81ecdfbb
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13505$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13506 if test -x $with_build_time_tools/${ncn_progname}; then
13507 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509$as_echo "yes" >&6; }
0c24b341
NC
13510 break
13511 else
81ecdfbb
RW
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513$as_echo "no" >&6; }
0c24b341
NC
13514 fi
13515 done
13516fi
13517
13518if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13519 for ncn_progname in windmc; do
13520 if test -n "$ncn_target_tool_prefix"; then
13521 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13522set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13524$as_echo_n "checking for $ac_word... " >&6; }
13525if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
0c24b341
NC
13527else
13528 if test -n "$WINDMC_FOR_TARGET"; then
13529 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13530else
13531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532for as_dir in $PATH
13533do
13534 IFS=$as_save_IFS
13535 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13538 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13540 break 2
13541 fi
13542done
81ecdfbb
RW
13543 done
13544IFS=$as_save_IFS
0c24b341
NC
13545
13546fi
13547fi
13548WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13549if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13551$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13552else
81ecdfbb
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13554$as_echo "no" >&6; }
0c24b341
NC
13555fi
13556
81ecdfbb 13557
0c24b341
NC
13558 fi
13559 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13561set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563$as_echo_n "checking for $ac_word... " >&6; }
13564if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
0c24b341
NC
13566else
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13569else
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13579 break 2
13580 fi
13581done
81ecdfbb
RW
13582 done
13583IFS=$as_save_IFS
0c24b341
NC
13584
13585fi
13586fi
13587WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13591else
81ecdfbb
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
0c24b341
NC
13594fi
13595
81ecdfbb 13596
0c24b341
NC
13597 fi
13598 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13599 done
13600fi
13601
13602if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13603 set dummy windmc
13604 if test $build = $target ; then
13605 WINDMC_FOR_TARGET="$2"
13606 else
13607 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13608 fi
13609else
13610 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13611fi
13612
13613else
13614 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13615fi
13616
13617
be01d343
PB
13618RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13619
81ecdfbb
RW
13620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13621$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13622if test "x${build}" != "x${host}" ; then
2429c060
PB
13623 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13624 # We already found the complete path
b8025f34 13625 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13627$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13628 else
13629 # Canadian cross, just use what we found
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631$as_echo "pre-installed" >&6; }
2429c060 13632 fi
be01d343
PB
13633else
13634 ok=yes
13635 case " ${configdirs} " in
13636 *" binutils "*) ;;
13637 *) ok=no ;;
13638 esac
c6b750e1 13639
be01d343
PB
13640 if test $ok = yes; then
13641 # An in-tree tool is available and we can use it
13642 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13644$as_echo "just compiled" >&6; }
2429c060
PB
13645 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13646 # We already found the complete path
b8025f34 13647 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13649$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13650 elif test "x$target" = "x$host"; then
13651 # We can use an host tool
13652 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13654$as_echo "host tool" >&6; }
be01d343
PB
13655 else
13656 # We need a cross tool
81ecdfbb
RW
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13658$as_echo "pre-installed" >&6; }
be01d343
PB
13659 fi
13660fi
4b900473 13661
81ecdfbb
RW
13662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13663$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13664if test "x${build}" != "x${host}" ; then
2429c060
PB
13665 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13666 # We already found the complete path
b8025f34 13667 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13669$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13670 else
13671 # Canadian cross, just use what we found
81ecdfbb
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13673$as_echo "pre-installed" >&6; }
2429c060 13674 fi
be01d343
PB
13675else
13676 ok=yes
13677 case " ${configdirs} " in
13678 *" gas "*) ;;
13679 *) ok=no ;;
13680 esac
c6b750e1 13681
be01d343
PB
13682 if test $ok = yes; then
13683 # An in-tree tool is available and we can use it
13684 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13686$as_echo "just compiled" >&6; }
2429c060
PB
13687 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13688 # We already found the complete path
b8025f34 13689 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13691$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13692 elif test "x$target" = "x$host"; then
13693 # We can use an host tool
13694 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13696$as_echo "host tool" >&6; }
be01d343
PB
13697 else
13698 # We need a cross tool
81ecdfbb
RW
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13700$as_echo "pre-installed" >&6; }
be01d343
PB
13701 fi
13702fi
4b900473 13703
81ecdfbb
RW
13704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13705$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13706if test "x${build}" != "x${host}" ; then
2429c060
PB
13707 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
b8025f34 13709 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13712 else
13713 # Canadian cross, just use what we found
81ecdfbb
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13715$as_echo "pre-installed" >&6; }
2429c060 13716 fi
be01d343
PB
13717else
13718 ok=yes
13719 case " ${configdirs} " in
13720 *" gcc "*) ;;
13721 *) ok=no ;;
13722 esac
c6b750e1 13723
be01d343
PB
13724 if test $ok = yes; then
13725 # An in-tree tool is available and we can use it
13726 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13728$as_echo "just compiled" >&6; }
2429c060
PB
13729 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13730 # We already found the complete path
b8025f34 13731 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13733$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13734 elif test "x$target" = "x$host"; then
13735 # We can use an host tool
13736 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13738$as_echo "host tool" >&6; }
be01d343
PB
13739 else
13740 # We need a cross tool
81ecdfbb
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13742$as_echo "pre-installed" >&6; }
be01d343
PB
13743 fi
13744fi
4b900473 13745
81ecdfbb
RW
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13747$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13748if test "x${build}" != "x${host}" ; then
2429c060
PB
13749 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13750 # We already found the complete path
b8025f34 13751 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13753$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13754 else
13755 # Canadian cross, just use what we found
81ecdfbb
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757$as_echo "pre-installed" >&6; }
2429c060 13758 fi
be01d343
PB
13759else
13760 ok=yes
13761 case " ${configdirs} " in
13762 *" gcc "*) ;;
13763 *) ok=no ;;
13764 esac
13765 case ,${enable_languages}, in
13766 *,c++,*) ;;
13767 *) ok=no ;;
13768 esac
13769 if test $ok = yes; then
13770 # An in-tree tool is available and we can use it
13771 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13773$as_echo "just compiled" >&6; }
2429c060
PB
13774 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13775 # We already found the complete path
b8025f34 13776 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13778$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13779 elif test "x$target" = "x$host"; then
13780 # We can use an host tool
13781 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13783$as_echo "host tool" >&6; }
be01d343
PB
13784 else
13785 # We need a cross tool
81ecdfbb
RW
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13787$as_echo "pre-installed" >&6; }
be01d343
PB
13788 fi
13789fi
4b900473 13790
81ecdfbb
RW
13791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13792$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13793if test "x${build}" != "x${host}" ; then
2429c060
PB
13794 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
b8025f34 13796 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13799 else
13800 # Canadian cross, just use what we found
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802$as_echo "pre-installed" >&6; }
2429c060 13803 fi
be01d343
PB
13804else
13805 ok=yes
13806 case " ${configdirs} " in
13807 *" gcc "*) ;;
13808 *) ok=no ;;
13809 esac
13810 case ,${enable_languages}, in
13811 *,c++,*) ;;
13812 *) ok=no ;;
13813 esac
13814 if test $ok = yes; then
13815 # An in-tree tool is available and we can use it
13816 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13818$as_echo "just compiled" >&6; }
2429c060
PB
13819 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
b8025f34 13821 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13824 elif test "x$target" = "x$host"; then
13825 # We can use an host tool
13826 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13828$as_echo "host tool" >&6; }
be01d343
PB
13829 else
13830 # We need a cross tool
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13832$as_echo "pre-installed" >&6; }
be01d343
PB
13833 fi
13834fi
4b900473 13835
81ecdfbb
RW
13836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13837$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13838if test "x${build}" != "x${host}" ; then
2429c060
PB
13839 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13840 # We already found the complete path
b8025f34 13841 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13843$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13844 else
13845 # Canadian cross, just use what we found
81ecdfbb
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847$as_echo "pre-installed" >&6; }
2429c060 13848 fi
be01d343
PB
13849else
13850 ok=yes
13851 case " ${configdirs} " in
13852 *" binutils "*) ;;
13853 *) ok=no ;;
13854 esac
c6b750e1 13855
be01d343
PB
13856 if test $ok = yes; then
13857 # An in-tree tool is available and we can use it
13858 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13860$as_echo "just compiled" >&6; }
2429c060
PB
13861 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
b8025f34 13863 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13866 elif test "x$target" = "x$host"; then
13867 # We can use an host tool
13868 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13870$as_echo "host tool" >&6; }
be01d343
PB
13871 else
13872 # We need a cross tool
81ecdfbb
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13874$as_echo "pre-installed" >&6; }
be01d343
PB
13875 fi
13876fi
4b900473 13877
81ecdfbb
RW
13878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13879$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13880if test "x${build}" != "x${host}" ; then
2429c060
PB
13881 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13882 # We already found the complete path
b8025f34 13883 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13885$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13886 else
13887 # Canadian cross, just use what we found
81ecdfbb
RW
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13889$as_echo "pre-installed" >&6; }
2429c060 13890 fi
be01d343
PB
13891else
13892 ok=yes
13893 case " ${configdirs} " in
13894 *" gcc "*) ;;
13895 *) ok=no ;;
13896 esac
c6b750e1 13897
be01d343
PB
13898 if test $ok = yes; then
13899 # An in-tree tool is available and we can use it
13900 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13902$as_echo "just compiled" >&6; }
2429c060
PB
13903 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13904 # We already found the complete path
b8025f34 13905 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13907$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13908 elif test "x$target" = "x$host"; then
13909 # We can use an host tool
13910 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13912$as_echo "host tool" >&6; }
be01d343
PB
13913 else
13914 # We need a cross tool
81ecdfbb
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13916$as_echo "pre-installed" >&6; }
be01d343
PB
13917 fi
13918fi
4b900473 13919
81ecdfbb
RW
13920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13921$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13922if test "x${build}" != "x${host}" ; then
2429c060
PB
13923 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13924 # We already found the complete path
b8025f34 13925 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13927$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13928 else
13929 # Canadian cross, just use what we found
81ecdfbb
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13931$as_echo "pre-installed" >&6; }
2429c060 13932 fi
be01d343
PB
13933else
13934 ok=yes
13935 case " ${configdirs} " in
13936 *" gcc "*) ;;
13937 *) ok=no ;;
13938 esac
13939 case ,${enable_languages}, in
13940 *,java,*) ;;
13941 *) ok=no ;;
13942 esac
13943 if test $ok = yes; then
13944 # An in-tree tool is available and we can use it
13945 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13947$as_echo "just compiled" >&6; }
2429c060
PB
13948 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13949 # We already found the complete path
b8025f34 13950 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13952$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13953 elif test "x$target" = "x$host"; then
13954 # We can use an host tool
13955 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13957$as_echo "host tool" >&6; }
be01d343
PB
13958 else
13959 # We need a cross tool
81ecdfbb
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13961$as_echo "pre-installed" >&6; }
be01d343
PB
13962 fi
13963fi
4b900473 13964
81ecdfbb
RW
13965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13966$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13967if test "x${build}" != "x${host}" ; then
2429c060
PB
13968 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13969 # We already found the complete path
b8025f34 13970 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13972$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13973 else
13974 # Canadian cross, just use what we found
81ecdfbb
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
2429c060 13977 fi
be01d343
PB
13978else
13979 ok=yes
13980 case " ${configdirs} " in
13981 *" gcc "*) ;;
13982 *) ok=no ;;
13983 esac
13984 case ,${enable_languages}, in
13985 *,fortran,*) ;;
13986 *) ok=no ;;
13987 esac
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
13990 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992$as_echo "just compiled" >&6; }
2429c060
PB
13993 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
b8025f34 13995 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002$as_echo "host tool" >&6; }
be01d343
PB
14003 else
14004 # We need a cross tool
81ecdfbb
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006$as_echo "pre-installed" >&6; }
be01d343
PB
14007 fi
14008fi
4b900473 14009
81ecdfbb
RW
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14011$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14012if test "x${build}" != "x${host}" ; then
2429c060
PB
14013 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
b8025f34 14015 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14018 else
14019 # Canadian cross, just use what we found
81ecdfbb
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
2429c060 14022 fi
be01d343
PB
14023else
14024 ok=yes
14025 case " ${configdirs} " in
14026 *" ld "*) ;;
14027 *) ok=no ;;
14028 esac
c6b750e1 14029
be01d343
PB
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
14032 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034$as_echo "just compiled" >&6; }
2429c060
PB
14035 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
b8025f34 14037 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044$as_echo "host tool" >&6; }
be01d343
PB
14045 else
14046 # We need a cross tool
81ecdfbb
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
be01d343
PB
14049 fi
14050fi
4b900473 14051
81ecdfbb
RW
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14053$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14054if test "x${build}" != "x${host}" ; then
2429c060
PB
14055 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
b8025f34 14057 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14060 else
14061 # Canadian cross, just use what we found
81ecdfbb
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063$as_echo "pre-installed" >&6; }
2429c060 14064 fi
be01d343 14065else
2429c060
PB
14066 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14067 # We already found the complete path
b8025f34 14068 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14070$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14071 elif test "x$target" = "x$host"; then
be01d343
PB
14072 # We can use an host tool
14073 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14075$as_echo "host tool" >&6; }
be01d343
PB
14076 else
14077 # We need a cross tool
81ecdfbb
RW
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14079$as_echo "pre-installed" >&6; }
be01d343
PB
14080 fi
14081fi
4b900473 14082
81ecdfbb
RW
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14084$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14085if test "x${build}" != "x${host}" ; then
2429c060
PB
14086 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14087 # We already found the complete path
b8025f34 14088 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14090$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14091 else
14092 # Canadian cross, just use what we found
81ecdfbb
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094$as_echo "pre-installed" >&6; }
2429c060 14095 fi
be01d343
PB
14096else
14097 ok=yes
14098 case " ${configdirs} " in
14099 *" binutils "*) ;;
14100 *) ok=no ;;
14101 esac
c6b750e1 14102
be01d343
PB
14103 if test $ok = yes; then
14104 # An in-tree tool is available and we can use it
14105 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14107$as_echo "just compiled" >&6; }
2429c060
PB
14108 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
b8025f34 14110 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14113 elif test "x$target" = "x$host"; then
14114 # We can use an host tool
14115 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14117$as_echo "host tool" >&6; }
be01d343
PB
14118 else
14119 # We need a cross tool
81ecdfbb
RW
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14121$as_echo "pre-installed" >&6; }
be01d343
PB
14122 fi
14123fi
4b900473 14124
81ecdfbb
RW
14125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14126$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14127if test "x${build}" != "x${host}" ; then
2429c060
PB
14128 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14129 # We already found the complete path
b8025f34 14130 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14132$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14133 else
14134 # Canadian cross, just use what we found
81ecdfbb
RW
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14136$as_echo "pre-installed" >&6; }
2429c060 14137 fi
be01d343
PB
14138else
14139 ok=yes
14140 case " ${configdirs} " in
14141 *" binutils "*) ;;
14142 *) ok=no ;;
14143 esac
c6b750e1 14144
be01d343
PB
14145 if test $ok = yes; then
14146 # An in-tree tool is available and we can use it
14147 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14149$as_echo "just compiled" >&6; }
2429c060
PB
14150 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
b8025f34 14152 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14155 elif test "x$target" = "x$host"; then
14156 # We can use an host tool
14157 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159$as_echo "host tool" >&6; }
be01d343
PB
14160 else
14161 # We need a cross tool
81ecdfbb
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163$as_echo "pre-installed" >&6; }
be01d343
PB
14164 fi
14165fi
4b900473 14166
81ecdfbb
RW
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14168$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14169if test "x${build}" != "x${host}" ; then
2429c060
PB
14170 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
b8025f34 14172 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14175 else
14176 # Canadian cross, just use what we found
81ecdfbb
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178$as_echo "pre-installed" >&6; }
2429c060 14179 fi
be01d343
PB
14180else
14181 ok=yes
14182 case " ${configdirs} " in
14183 *" binutils "*) ;;
14184 *) ok=no ;;
14185 esac
c6b750e1 14186
be01d343
PB
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191$as_echo "just compiled" >&6; }
2429c060
PB
14192 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
b8025f34 14194 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201$as_echo "host tool" >&6; }
be01d343
PB
14202 else
14203 # We need a cross tool
81ecdfbb
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205$as_echo "pre-installed" >&6; }
be01d343
PB
14206 fi
14207fi
4b900473 14208
81ecdfbb
RW
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14210$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14211if test "x${build}" != "x${host}" ; then
2429c060
PB
14212 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
b8025f34 14214 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14217 else
14218 # Canadian cross, just use what we found
81ecdfbb
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220$as_echo "pre-installed" >&6; }
2429c060 14221 fi
be01d343
PB
14222else
14223 ok=yes
14224 case " ${configdirs} " in
14225 *" binutils "*) ;;
14226 *) ok=no ;;
14227 esac
c6b750e1 14228
be01d343
PB
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
81ecdfbb
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233$as_echo "just compiled" >&6; }
2429c060
PB
14234 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
b8025f34 14236 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243$as_echo "host tool" >&6; }
be01d343
PB
14244 else
14245 # We need a cross tool
81ecdfbb
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
be01d343
PB
14248 fi
14249fi
4b900473 14250
81ecdfbb
RW
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14252$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14253if test "x${build}" != "x${host}" ; then
2429c060
PB
14254 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
b8025f34 14256 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14259 else
14260 # Canadian cross, just use what we found
81ecdfbb
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262$as_echo "pre-installed" >&6; }
2429c060 14263 fi
be01d343
PB
14264else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
c6b750e1 14270
be01d343
PB
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275$as_echo "just compiled" >&6; }
2429c060
PB
14276 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
b8025f34 14278 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285$as_echo "host tool" >&6; }
be01d343
PB
14286 else
14287 # We need a cross tool
81ecdfbb
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
be01d343 14290 fi
a0da8069 14291fi
54752a6b 14292
81ecdfbb
RW
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14294$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14295if test "x${build}" != "x${host}" ; then
14296 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14301 else
14302 # Canadian cross, just use what we found
81ecdfbb
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
0c24b341
NC
14305 fi
14306else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
14312
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317$as_echo "just compiled" >&6; }
0c24b341
NC
14318 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327$as_echo "host tool" >&6; }
0c24b341
NC
14328 else
14329 # We need a cross tool
81ecdfbb
RW
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
0c24b341
NC
14332 fi
14333fi
14334
54752a6b
NN
14335
14336
be01d343 14337
4b900473 14338
a0da8069
NN
14339# Certain tools may need extra flags.
14340AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14341RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14342NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14343
be01d343
PB
14344# When building target libraries, except in a Canadian cross, we use
14345# the same toolchain as the compiler we just built.
14346COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14347COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14348COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14349if test $host = $build; then
14350 case " $configdirs " in
14351 *" gcc "*)
14352 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14353 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14354 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14355 ;;
14356 esac
14357fi
14358
14359
14360
14361
14362
81ecdfbb
RW
14363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14364$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14365# Check whether --enable-maintainer-mode was given.
14366if test "${enable_maintainer_mode+set}" = set; then :
14367 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14368else
14369 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14370fi
14371
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14373$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14374
14375
14376if test "$USE_MAINTAINER_MODE" = yes; then
14377 MAINTAINER_MODE_TRUE=
14378 MAINTAINER_MODE_FALSE='#'
14379else
14380 MAINTAINER_MODE_TRUE='#'
14381 MAINTAINER_MODE_FALSE=
c6b750e1 14382fi
3d5e36ae
AO
14383MAINT=$MAINTAINER_MODE_TRUE
14384
1d39f329
NN
14385# ---------------------
14386# GCC bootstrap support
14387# ---------------------
14388
14389# Stage specific cflags for build.
14390stage1_cflags="-g"
14391case $build in
14392 vax-*-*)
14393 case ${GCC} in
14394 yes) stage1_cflags="-g -Wa,-J" ;;
14395 *) stage1_cflags="-g -J" ;;
14396 esac ;;
1d39f329
NN
14397esac
14398
1d89b610 14399# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14400if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14401 saved_CFLAGS="$CFLAGS"
14402
14403 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14404 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14406$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14408/* end confdefs.h. */
14409
2038f525
PB
14410#if (__GNUC__ < 3) \
14411 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14412 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14413#error http://gcc.gnu.org/PR29382
14414#endif
14415
c6b750e1
DJ
14416int
14417main ()
14418{
14419
14420 ;
14421 return 0;
14422}
14423_ACEOF
81ecdfbb
RW
14424if ac_fn_c_try_compile "$LINENO"; then :
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14426$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14427else
81ecdfbb
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429$as_echo "no" >&6; }
c6b750e1 14430fi
81ecdfbb 14431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14432
14433 CFLAGS="$saved_CFLAGS"
14434fi
14435
14436
1d39f329 14437
8a0d8a5c 14438# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14439# Check whether --enable-stage1-checking was given.
14440if test "${enable_stage1_checking+set}" = set; then :
14441 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14442else
5566c1fa 14443 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14444 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14445else
5566c1fa 14446 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14447fi
81ecdfbb 14448fi
8a0d8a5c
PB
14449
14450
c6b750e1 14451
81ecdfbb
RW
14452# Enable -Werror in bootstrap stage2 and later.
14453# Check whether --enable-werror was given.
14454if test "${enable_werror+set}" = set; then :
14455 enableval=$enable_werror;
1d39f329 14456else
a0323144 14457 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14458 enable_werror=yes
79fcd0ec
PB
14459else
14460 enable_werror=no
14461fi
81ecdfbb
RW
14462fi
14463
1a6f2dc7
NN
14464case ${enable_werror} in
14465 yes) stage2_werror_flag="--enable-werror-always" ;;
14466 *) stage2_werror_flag="" ;;
1d39f329
NN
14467esac
14468
14469
e8a5fa9c
RW
14470# Specify what files to not compare during bootstrap.
14471
14472compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14473case "$target" in
14474 hppa*64*-*-hpux*) ;;
14475 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14476esac
1f53ca9a
AO
14477case " $configdirs " in
14478*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14479esac
e8a5fa9c
RW
14480
14481
81ecdfbb
RW
14482ac_config_files="$ac_config_files Makefile"
14483
c6b750e1 14484cat >confcache <<\_ACEOF
a0da8069
NN
14485# This file is a shell script that caches the results of configure
14486# tests run on this system so they can be shared between configure
c6b750e1
DJ
14487# scripts and configure runs, see configure's option --config-cache.
14488# It is not useful on other systems. If it contains results you don't
14489# want to keep, you may remove or edit it.
a0da8069 14490#
c6b750e1
DJ
14491# config.status only pays attention to the cache file if you give it
14492# the --recheck option to rerun configure.
a0da8069 14493#
c6b750e1
DJ
14494# `ac_cv_env_foo' variables (set or unset) will be overridden when
14495# loading this file, other *unset* `ac_cv_foo' will be assigned the
14496# following values.
14497
14498_ACEOF
14499
a0da8069
NN
14500# The following way of writing the cache mishandles newlines in values,
14501# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14502# So, we kill variables containing newlines.
a0da8069
NN
14503# Ultrix sh set writes to stderr and can't be redirected directly,
14504# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14505(
14506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14507 eval ac_val=\$$ac_var
14508 case $ac_val in #(
14509 *${as_nl}*)
14510 case $ac_var in #(
14511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14512$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14513 esac
14514 case $ac_var in #(
14515 _ | IFS | as_nl) ;; #(
14516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14517 *) { eval $ac_var=; unset $ac_var;} ;;
14518 esac ;;
14519 esac
14520 done
14521
c6b750e1 14522 (set) 2>&1 |
81ecdfbb
RW
14523 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14524 *${as_nl}ac_space=\ *)
14525 # `set' does not quote correctly, so add quotes: double-quote
14526 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14527 sed -n \
14528 "s/'/'\\\\''/g;
14529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14530 ;; #(
c6b750e1
DJ
14531 *)
14532 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14534 ;;
81ecdfbb
RW
14535 esac |
14536 sort
14537) |
c6b750e1 14538 sed '
81ecdfbb 14539 /^ac_cv_env_/b end
c6b750e1 14540 t clear
81ecdfbb 14541 :clear
c6b750e1
DJ
14542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14543 t end
81ecdfbb
RW
14544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14545 :end' >>confcache
14546if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14547 if test -w "$cache_file"; then
14548 test "x$cache_file" != "x/dev/null" &&
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14550$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14551 cat confcache >$cache_file
a0da8069 14552 else
81ecdfbb
RW
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14554$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14555 fi
852e5f18 14556fi
a0da8069 14557rm -f confcache
852e5f18 14558
a0da8069
NN
14559test "x$prefix" = xNONE && prefix=$ac_default_prefix
14560# Let make expand exec_prefix.
14561test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14562
a0da8069
NN
14563# Transform confdefs.h into DEFS.
14564# Protect against shell expansion while executing Makefile rules.
14565# Protect against Makefile macro expansion.
c6b750e1
DJ
14566#
14567# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14568# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14569# look for a macro that doesn't take arguments.
81ecdfbb
RW
14570ac_script='
14571:mline
14572/\\$/{
14573 N
14574 s,\\\n,,
14575 b mline
14576}
c6b750e1 14577t clear
81ecdfbb
RW
14578:clear
14579s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14580t quote
81ecdfbb 14581s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14582t quote
81ecdfbb
RW
14583b any
14584:quote
14585s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14586s/\[/\\&/g
14587s/\]/\\&/g
14588s/\$/$$/g
14589H
14590:any
14591${
14592 g
14593 s/^\n//
14594 s/\n/ /g
14595 p
14596}
14597'
14598DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14599
14600
14601ac_libobjs=
14602ac_ltlibobjs=
14603for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14604 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14605 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14606 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14607 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14608 # will be set to the directory where LIBOBJS objects are built.
14609 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14610 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14611done
14612LIBOBJS=$ac_libobjs
852e5f18 14613
c6b750e1 14614LTLIBOBJS=$ac_ltlibobjs
376a0e54 14615
cac3d6c4 14616
c6b750e1
DJ
14617
14618: ${CONFIG_STATUS=./config.status}
81ecdfbb 14619ac_write_fail=0
c6b750e1
DJ
14620ac_clean_files_save=$ac_clean_files
14621ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14622{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14623$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14624as_write_fail=0
14625cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14626#! $SHELL
14627# Generated by $as_me.
a0da8069 14628# Run this file to recreate the current configuration.
a0da8069 14629# Compiler output produced by configure, useful for debugging
c6b750e1 14630# configure, is in config.log if it exists.
376a0e54 14631
c6b750e1
DJ
14632debug=false
14633ac_cs_recheck=false
14634ac_cs_silent=false
c6b750e1 14635
81ecdfbb
RW
14636SHELL=\${CONFIG_SHELL-$SHELL}
14637export SHELL
14638_ASEOF
14639cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14640## -------------------- ##
14641## M4sh Initialization. ##
14642## -------------------- ##
14643
14644# Be more Bourne compatible
14645DUALCASE=1; export DUALCASE # for MKS sh
14646if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14647 emulate sh
14648 NULLCMD=:
81ecdfbb 14649 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14650 # is contrary to our usage. Disable this feature.
14651 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14652 setopt NO_GLOB_SUBST
14653else
14654 case `(set -o) 2>/dev/null` in #(
14655 *posix*) :
14656 set -o posix ;; #(
14657 *) :
14658 ;;
14659esac
c6b750e1 14660fi
c6b750e1 14661
81ecdfbb
RW
14662
14663as_nl='
14664'
14665export as_nl
14666# Printing a long string crashes Solaris 7 /usr/bin/printf.
14667as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14668as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14669as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14670# Prefer a ksh shell builtin over an external printf program on Solaris,
14671# but without wasting forks for bash or zsh.
14672if test -z "$BASH_VERSION$ZSH_VERSION" \
14673 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14674 as_echo='print -r --'
14675 as_echo_n='print -rn --'
14676elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14677 as_echo='printf %s\n'
14678 as_echo_n='printf %s'
14679else
14680 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14681 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14682 as_echo_n='/usr/ucb/echo -n'
14683 else
14684 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14685 as_echo_n_body='eval
14686 arg=$1;
14687 case $arg in #(
14688 *"$as_nl"*)
14689 expr "X$arg" : "X\\(.*\\)$as_nl";
14690 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14691 esac;
14692 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14693 '
14694 export as_echo_n_body
14695 as_echo_n='sh -c $as_echo_n_body as_echo'
14696 fi
14697 export as_echo_body
14698 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14699fi
14700
81ecdfbb
RW
14701# The user is always right.
14702if test "${PATH_SEPARATOR+set}" != set; then
14703 PATH_SEPARATOR=:
14704 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14705 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14706 PATH_SEPARATOR=';'
14707 }
14708fi
14709
14710
14711# IFS
14712# We need space, tab and new line, in precisely that order. Quoting is
14713# there to prevent editors from complaining about space-tab.
14714# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14715# splitting by setting IFS to empty value.)
14716IFS=" "" $as_nl"
14717
14718# Find who we are. Look in the path if we contain no directory separator.
14719case $0 in #((
14720 *[\\/]* ) as_myself=$0 ;;
14721 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722for as_dir in $PATH
14723do
14724 IFS=$as_save_IFS
14725 test -z "$as_dir" && as_dir=.
14726 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14727 done
14728IFS=$as_save_IFS
14729
14730 ;;
14731esac
14732# We did not find ourselves, most probably we were run as `sh COMMAND'
14733# in which case we are not to be found in the path.
14734if test "x$as_myself" = x; then
14735 as_myself=$0
14736fi
14737if test ! -f "$as_myself"; then
14738 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14739 exit 1
14740fi
c6b750e1 14741
81ecdfbb
RW
14742# Unset variables that we do not need and which cause bugs (e.g. in
14743# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14744# suppresses any "Segmentation fault" message there. '((' could
14745# trigger a bug in pdksh 5.2.14.
14746for as_var in BASH_ENV ENV MAIL MAILPATH
14747do eval test x\${$as_var+set} = xset \
14748 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14749done
c6b750e1
DJ
14750PS1='$ '
14751PS2='> '
14752PS4='+ '
14753
14754# NLS nuisances.
81ecdfbb
RW
14755LC_ALL=C
14756export LC_ALL
14757LANGUAGE=C
14758export LANGUAGE
14759
14760# CDPATH.
14761(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14762
14763
14764# as_fn_error ERROR [LINENO LOG_FD]
14765# ---------------------------------
14766# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14767# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14768# script with status $?, using 1 if that was 0.
14769as_fn_error ()
14770{
14771 as_status=$?; test $as_status -eq 0 && as_status=1
14772 if test "$3"; then
14773 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14774 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14775 fi
81ecdfbb
RW
14776 $as_echo "$as_me: error: $1" >&2
14777 as_fn_exit $as_status
14778} # as_fn_error
14779
14780
14781# as_fn_set_status STATUS
14782# -----------------------
14783# Set $? to STATUS, without forking.
14784as_fn_set_status ()
14785{
14786 return $1
14787} # as_fn_set_status
14788
14789# as_fn_exit STATUS
14790# -----------------
14791# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14792as_fn_exit ()
14793{
14794 set +e
14795 as_fn_set_status $1
14796 exit $1
14797} # as_fn_exit
14798
14799# as_fn_unset VAR
14800# ---------------
14801# Portably unset VAR.
14802as_fn_unset ()
14803{
14804 { eval $1=; unset $1;}
14805}
14806as_unset=as_fn_unset
14807# as_fn_append VAR VALUE
14808# ----------------------
14809# Append the text in VALUE to the end of the definition contained in VAR. Take
14810# advantage of any shell optimizations that allow amortized linear growth over
14811# repeated appends, instead of the typical quadratic growth present in naive
14812# implementations.
14813if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14814 eval 'as_fn_append ()
14815 {
14816 eval $1+=\$2
14817 }'
14818else
14819 as_fn_append ()
14820 {
14821 eval $1=\$$1\$2
14822 }
14823fi # as_fn_append
14824
14825# as_fn_arith ARG...
14826# ------------------
14827# Perform arithmetic evaluation on the ARGs, and store the result in the
14828# global $as_val. Take advantage of shells that can avoid forks. The arguments
14829# must be portable across $(()) and expr.
14830if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14831 eval 'as_fn_arith ()
14832 {
14833 as_val=$(( $* ))
14834 }'
14835else
14836 as_fn_arith ()
14837 {
14838 as_val=`expr "$@" || test $? -eq 1`
14839 }
14840fi # as_fn_arith
14841
c6b750e1 14842
81ecdfbb
RW
14843if expr a : '\(a\)' >/dev/null 2>&1 &&
14844 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14845 as_expr=expr
14846else
14847 as_expr=false
14848fi
14849
81ecdfbb 14850if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14851 as_basename=basename
14852else
14853 as_basename=false
14854fi
14855
81ecdfbb
RW
14856if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14857 as_dirname=dirname
14858else
14859 as_dirname=false
14860fi
c6b750e1 14861
81ecdfbb 14862as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14863$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14864 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14865 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14866$as_echo X/"$0" |
14867 sed '/^.*\/\([^/][^/]*\)\/*$/{
14868 s//\1/
14869 q
14870 }
14871 /^X\/\(\/\/\)$/{
14872 s//\1/
14873 q
14874 }
14875 /^X\/\(\/\).*/{
14876 s//\1/
14877 q
14878 }
14879 s/.*/./; q'`
c6b750e1 14880
c6b750e1
DJ
14881# Avoid depending upon Character Ranges.
14882as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14883as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14884as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14885as_cr_digits='0123456789'
14886as_cr_alnum=$as_cr_Letters$as_cr_digits
14887
81ecdfbb
RW
14888ECHO_C= ECHO_N= ECHO_T=
14889case `echo -n x` in #(((((
14890-n*)
14891 case `echo 'xy\c'` in
14892 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14893 xy) ECHO_C='\c';;
14894 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14895 ECHO_T=' ';;
14896 esac;;
14897*)
14898 ECHO_N='-n';;
c6b750e1
DJ
14899esac
14900
81ecdfbb
RW
14901rm -f conf$$ conf$$.exe conf$$.file
14902if test -d conf$$.dir; then
14903 rm -f conf$$.dir/conf$$.file
c6b750e1 14904else
81ecdfbb
RW
14905 rm -f conf$$.dir
14906 mkdir conf$$.dir 2>/dev/null
c6b750e1 14907fi
81ecdfbb
RW
14908if (echo >conf$$.file) 2>/dev/null; then
14909 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14910 as_ln_s='ln -s'
81ecdfbb
RW
14911 # ... but there are two gotchas:
14912 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14913 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14914 # In both cases, we have to default to `cp -p'.
14915 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14916 as_ln_s='cp -p'
14917 elif ln conf$$.file conf$$ 2>/dev/null; then
14918 as_ln_s=ln
14919 else
14920 as_ln_s='cp -p'
c6b750e1 14921 fi
c6b750e1
DJ
14922else
14923 as_ln_s='cp -p'
14924fi
81ecdfbb
RW
14925rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14926rmdir conf$$.dir 2>/dev/null
14927
14928
14929# as_fn_mkdir_p
14930# -------------
14931# Create "$as_dir" as a directory, including parents if necessary.
14932as_fn_mkdir_p ()
14933{
14934
14935 case $as_dir in #(
14936 -*) as_dir=./$as_dir;;
14937 esac
14938 test -d "$as_dir" || eval $as_mkdir_p || {
14939 as_dirs=
14940 while :; do
14941 case $as_dir in #(
14942 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14943 *) as_qdir=$as_dir;;
14944 esac
14945 as_dirs="'$as_qdir' $as_dirs"
14946 as_dir=`$as_dirname -- "$as_dir" ||
14947$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14948 X"$as_dir" : 'X\(//\)[^/]' \| \
14949 X"$as_dir" : 'X\(//\)$' \| \
14950 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14951$as_echo X"$as_dir" |
14952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14953 s//\1/
14954 q
14955 }
14956 /^X\(\/\/\)[^/].*/{
14957 s//\1/
14958 q
14959 }
14960 /^X\(\/\/\)$/{
14961 s//\1/
14962 q
14963 }
14964 /^X\(\/\).*/{
14965 s//\1/
14966 q
14967 }
14968 s/.*/./; q'`
14969 test -d "$as_dir" && break
14970 done
14971 test -z "$as_dirs" || eval "mkdir $as_dirs"
14972 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14973
c6b750e1 14974
81ecdfbb 14975} # as_fn_mkdir_p
c6b750e1 14976if mkdir -p . 2>/dev/null; then
81ecdfbb 14977 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14978else
14979 test -d ./-p && rmdir ./-p
14980 as_mkdir_p=false
14981fi
14982
81ecdfbb
RW
14983if test -x / >/dev/null 2>&1; then
14984 as_test_x='test -x'
14985else
14986 if ls -dL / >/dev/null 2>&1; then
14987 as_ls_L_option=L
14988 else
14989 as_ls_L_option=
14990 fi
14991 as_test_x='
14992 eval sh -c '\''
14993 if test -d "$1"; then
14994 test -d "$1/.";
14995 else
14996 case $1 in #(
14997 -*)set "./$1";;
14998 esac;
14999 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15000 ???[sx]*):;;*)false;;esac;fi
15001 '\'' sh
15002 '
15003fi
15004as_executable_p=$as_test_x
c6b750e1
DJ
15005
15006# Sed expression to map a string onto a valid CPP name.
15007as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15008
15009# Sed expression to map a string onto a valid variable name.
15010as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15011
15012
c6b750e1 15013exec 6>&1
81ecdfbb
RW
15014## ----------------------------------- ##
15015## Main body of $CONFIG_STATUS script. ##
15016## ----------------------------------- ##
15017_ASEOF
15018test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15019
15020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15022# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15023# values after options handling.
15024ac_log="
c6b750e1 15025This file was extended by $as_me, which was
81ecdfbb 15026generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15027
15028 CONFIG_FILES = $CONFIG_FILES
15029 CONFIG_HEADERS = $CONFIG_HEADERS
15030 CONFIG_LINKS = $CONFIG_LINKS
15031 CONFIG_COMMANDS = $CONFIG_COMMANDS
15032 $ $0 $@
15033
81ecdfbb
RW
15034on `(hostname || uname -n) 2>/dev/null | sed 1q`
15035"
15036
c6b750e1
DJ
15037_ACEOF
15038
81ecdfbb
RW
15039case $ac_config_files in *"
15040"*) set x $ac_config_files; shift; ac_config_files=$*;;
15041esac
c6b750e1 15042
c6b750e1 15043
c6b750e1 15044
81ecdfbb
RW
15045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15046# Files that config.status was made for.
15047config_files="$ac_config_files"
c6b750e1 15048
81ecdfbb 15049_ACEOF
c6b750e1 15050
81ecdfbb 15051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15052ac_cs_usage="\
81ecdfbb
RW
15053\`$as_me' instantiates files and other configuration actions
15054from templates according to the current configuration. Unless the files
15055and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15056
81ecdfbb 15057Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15058
15059 -h, --help print this help, then exit
81ecdfbb
RW
15060 -V, --version print version number and configuration settings, then exit
15061 -q, --quiet, --silent
15062 do not print progress messages
c6b750e1
DJ
15063 -d, --debug don't remove temporary files
15064 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15065 --file=FILE[:TEMPLATE]
15066 instantiate the configuration file FILE
c6b750e1
DJ
15067
15068Configuration files:
15069$config_files
15070
81ecdfbb 15071Report bugs to the package provider."
c6b750e1 15072
81ecdfbb
RW
15073_ACEOF
15074cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15075ac_cs_version="\\
15076config.status
81ecdfbb
RW
15077configured by $0, generated by GNU Autoconf 2.64,
15078 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15079
81ecdfbb 15080Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15081This config.status script is free software; the Free Software Foundation
15082gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15083
15084ac_pwd='$ac_pwd'
15085srcdir='$srcdir'
15086INSTALL='$INSTALL'
8e957354 15087AWK='$AWK'
81ecdfbb 15088test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15089_ACEOF
15090
81ecdfbb
RW
15091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15092# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15093ac_need_defaults=:
15094while test $# != 0
a0da8069 15095do
c6b750e1
DJ
15096 case $1 in
15097 --*=*)
81ecdfbb
RW
15098 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15099 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15100 ac_shift=:
15101 ;;
81ecdfbb 15102 *)
c6b750e1
DJ
15103 ac_option=$1
15104 ac_optarg=$2
15105 ac_shift=shift
15106 ;;
c6b750e1
DJ
15107 esac
15108
15109 case $ac_option in
15110 # Handling of the options.
a0da8069 15111 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15112 ac_cs_recheck=: ;;
81ecdfbb
RW
15113 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15114 $as_echo "$ac_cs_version"; exit ;;
15115 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15116 debug=: ;;
15117 --file | --fil | --fi | --f )
15118 $ac_shift
81ecdfbb
RW
15119 case $ac_optarg in
15120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15121 esac
15122 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15123 ac_need_defaults=false;;
81ecdfbb
RW
15124 --he | --h | --help | --hel | -h )
15125 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15128 ac_cs_silent=: ;;
15129
15130 # This is an error.
81ecdfbb
RW
15131 -*) as_fn_error "unrecognized option: \`$1'
15132Try \`$0 --help' for more information." ;;
c6b750e1 15133
81ecdfbb
RW
15134 *) as_fn_append ac_config_targets " $1"
15135 ac_need_defaults=false ;;
c6b750e1 15136
376a0e54 15137 esac
c6b750e1 15138 shift
376a0e54
CM
15139done
15140
c6b750e1 15141ac_configure_extra_args=
376a0e54 15142
c6b750e1
DJ
15143if $ac_cs_silent; then
15144 exec 6>/dev/null
15145 ac_configure_extra_args="$ac_configure_extra_args --silent"
15146fi
376a0e54 15147
c6b750e1 15148_ACEOF
81ecdfbb 15149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15150if \$ac_cs_recheck; then
81ecdfbb
RW
15151 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15152 shift
15153 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15154 CONFIG_SHELL='$SHELL'
15155 export CONFIG_SHELL
15156 exec "\$@"
c6b750e1
DJ
15157fi
15158
15159_ACEOF
81ecdfbb
RW
15160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15161exec 5>>config.log
15162{
15163 echo
15164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15165## Running $as_me. ##
15166_ASBOX
15167 $as_echo "$ac_log"
15168} >&5
c6b750e1 15169
81ecdfbb
RW
15170_ACEOF
15171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15172#
15173# INIT-COMMANDS
15174#
15175extrasub_build="$extrasub_build"
15176 extrasub_host="$extrasub_host"
15177 extrasub_target="$extrasub_target"
15178
81ecdfbb 15179_ACEOF
c6b750e1 15180
81ecdfbb 15181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15182
81ecdfbb 15183# Handling of arguments.
c6b750e1
DJ
15184for ac_config_target in $ac_config_targets
15185do
81ecdfbb
RW
15186 case $ac_config_target in
15187 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15188
15189 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15190 esac
15191done
15192
81ecdfbb 15193
c6b750e1
DJ
15194# If the user did not use the arguments to specify the items to instantiate,
15195# then the envvar interface is used. Set only those that are not.
15196# We use the long form for the default assignment because of an extremely
15197# bizarre bug on SunOS 4.1.3.
15198if $ac_need_defaults; then
15199 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15200fi
15201
15202# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15203# simply because there is no reason against having it here, and in addition,
c6b750e1 15204# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15205# Hook for its removal unless debugging.
15206# Note that there is a small window in which the directory will not be cleaned:
15207# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15208$debug ||
15209{
81ecdfbb
RW
15210 tmp=
15211 trap 'exit_status=$?
15212 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15213' 0
15214 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15215}
c6b750e1
DJ
15216# Create a (secure) tmp directory for tmp files.
15217
15218{
81ecdfbb 15219 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15220 test -n "$tmp" && test -d "$tmp"
15221} ||
15222{
81ecdfbb
RW
15223 tmp=./conf$$-$RANDOM
15224 (umask 077 && mkdir "$tmp")
15225} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15226
15227# Set up the scripts for CONFIG_FILES section.
15228# No need to generate them if there are no CONFIG_FILES.
15229# This happens for instance with `./config.status config.h'.
15230if test -n "$CONFIG_FILES"; then
15231
15232if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15233 ac_cs_awk_getline=:
15234 ac_cs_awk_pipe_init=
15235 ac_cs_awk_read_file='
15236 while ((getline aline < (F[key])) > 0)
15237 print(aline)
15238 close(F[key])'
15239 ac_cs_awk_pipe_fini=
15240else
15241 ac_cs_awk_getline=false
15242 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15243 ac_cs_awk_read_file='
15244 print "|#_!!_#|"
15245 print "cat " F[key] " &&"
15246 '$ac_cs_awk_pipe_init
15247 # The final `:' finishes the AND list.
15248 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15249fi
15250ac_cr=`echo X | tr X '\015'`
15251# On cygwin, bash can eat \r inside `` if the user requested igncr.
15252# But we know of no other shell where ac_cr would be empty at this
15253# point, so we can use a bashism as a fallback.
15254if test "x$ac_cr" = x; then
15255 eval ac_cr=\$\'\\r\'
15256fi
15257ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15258if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15259 ac_cs_awk_cr='\r'
15260else
15261 ac_cs_awk_cr=$ac_cr
15262fi
15263
15264echo 'BEGIN {' >"$tmp/subs1.awk" &&
15265_ACEOF
15266
15267# Create commands to substitute file output variables.
c6b750e1 15268{
81ecdfbb
RW
15269 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15270 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15271 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15272 echo "_ACAWK" &&
15273 echo "_ACEOF"
15274} >conf$$files.sh &&
15275. ./conf$$files.sh ||
15276 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15277rm -f conf$$files.sh
c6b750e1 15278
81ecdfbb
RW
15279{
15280 echo "cat >conf$$subs.awk <<_ACEOF" &&
15281 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15282 echo "_ACEOF"
15283} >conf$$subs.sh ||
15284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15285ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15286ac_delim='%!_!# '
15287for ac_last_try in false false false false false :; do
15288 . ./conf$$subs.sh ||
15289 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15290
15291 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15292 if test $ac_delim_n = $ac_delim_num; then
15293 break
15294 elif $ac_last_try; then
15295 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15296 else
15297 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15298 fi
15299done
15300rm -f conf$$subs.sh
15301
15302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15303cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15304_ACEOF
81ecdfbb
RW
15305sed -n '
15306h
15307s/^/S["/; s/!.*/"]=/
15308p
15309g
15310s/^[^!]*!//
15311:repl
15312t repl
15313s/'"$ac_delim"'$//
15314t delim
15315:nl
15316h
15317s/\(.\{148\}\).*/\1/
15318t more1
15319s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15320p
15321n
15322b repl
15323:more1
15324s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15325p
15326g
15327s/.\{148\}//
15328t nl
15329:delim
15330h
15331s/\(.\{148\}\).*/\1/
15332t more2
15333s/["\\]/\\&/g; s/^/"/; s/$/"/
15334p
15335b
15336:more2
15337s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15338p
15339g
15340s/.\{148\}//
15341t delim
15342' <conf$$subs.awk | sed '
15343/^[^""]/{
15344 N
15345 s/\n//
15346}
15347' >>$CONFIG_STATUS || ac_write_fail=1
15348rm -f conf$$subs.awk
15349cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15350_ACAWK
15351cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15352 for (key in S) S_is_set[key] = 1
15353 FS = "\a"
15354 \$ac_cs_awk_pipe_init
15355}
15356{
15357 line = $ 0
15358 nfields = split(line, field, "@")
15359 substed = 0
15360 len = length(field[1])
15361 for (i = 2; i < nfields; i++) {
15362 key = field[i]
15363 keylen = length(key)
15364 if (S_is_set[key]) {
15365 value = S[key]
15366 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15367 len += length(value) + length(field[++i])
15368 substed = 1
15369 } else
15370 len += 1 + keylen
15371 }
15372 if (nfields == 3 && !substed) {
15373 key = field[2]
15374 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15375 \$ac_cs_awk_read_file
15376 next
15377 }
15378 }
15379 print line
15380}
15381\$ac_cs_awk_pipe_fini
15382_ACAWK
15383_ACEOF
15384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15385if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15386 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15387else
15388 cat
15389fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15390 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15391_ACEOF
15392
15393# VPATH may cause trouble with some makes, so we remove $(srcdir),
15394# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15395# trailing colons and then remove the whole line if VPATH becomes empty
15396# (actually we leave an empty line to preserve line numbers).
15397if test "x$srcdir" = x.; then
15398 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15399s/:*\$(srcdir):*/:/
15400s/:*\${srcdir}:*/:/
15401s/:*@srcdir@:*/:/
15402s/^\([^=]*=[ ]*\):*/\1/
15403s/:*$//
15404s/^[^=]*=[ ]*$//
15405}'
15406fi
c6b750e1 15407
81ecdfbb
RW
15408cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409fi # test -n "$CONFIG_FILES"
c6b750e1 15410
c6b750e1 15411
81ecdfbb
RW
15412eval set X " :F $CONFIG_FILES "
15413shift
15414for ac_tag
15415do
15416 case $ac_tag in
15417 :[FHLC]) ac_mode=$ac_tag; continue;;
15418 esac
15419 case $ac_mode$ac_tag in
15420 :[FHL]*:*);;
15421 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15422 :[FH]-) ac_tag=-:-;;
15423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15424 esac
15425 ac_save_IFS=$IFS
15426 IFS=:
15427 set x $ac_tag
15428 IFS=$ac_save_IFS
15429 shift
15430 ac_file=$1
15431 shift
252b5132 15432
81ecdfbb
RW
15433 case $ac_mode in
15434 :L) ac_source=$1;;
15435 :[FH])
15436 ac_file_inputs=
15437 for ac_f
15438 do
15439 case $ac_f in
15440 -) ac_f="$tmp/stdin";;
15441 *) # Look for the file first in the build tree, then in the source tree
15442 # (if the path is not absolute). The absolute path cannot be DOS-style,
15443 # because $ac_f cannot contain `:'.
15444 test -f "$ac_f" ||
15445 case $ac_f in
15446 [\\/$]*) false;;
15447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15448 esac ||
15449 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15450 esac
15451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15452 as_fn_append ac_file_inputs " '$ac_f'"
15453 done
c6b750e1 15454
81ecdfbb
RW
15455 # Let's still pretend it is `configure' which instantiates (i.e., don't
15456 # use $as_me), people would be surprised to read:
15457 # /* config.h. Generated by config.status. */
15458 configure_input='Generated from '`
15459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15460 `' by configure.'
15461 if test x"$ac_file" != x-; then
15462 configure_input="$ac_file. $configure_input"
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15464$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15465 fi
81ecdfbb
RW
15466 # Neutralize special characters interpreted by sed in replacement strings.
15467 case $configure_input in #(
15468 *\&* | *\|* | *\\* )
15469 ac_sed_conf_input=`$as_echo "$configure_input" |
15470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471 *) ac_sed_conf_input=$configure_input;;
15472 esac
cac3d6c4 15473
81ecdfbb
RW
15474 case $ac_tag in
15475 *:-:* | *:-) cat >"$tmp/stdin" \
15476 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15477 esac
15478 ;;
a0da8069 15479 esac
252b5132 15480
81ecdfbb 15481 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$ac_file" : 'X\(//\)[^/]' \| \
15484 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15486$as_echo X"$ac_file" |
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488 s//\1/
15489 q
15490 }
15491 /^X\(\/\/\)[^/].*/{
15492 s//\1/
15493 q
15494 }
15495 /^X\(\/\/\)$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\(\/\).*/{
15500 s//\1/
15501 q
15502 }
15503 s/.*/./; q'`
15504 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15505 ac_builddir=.
252b5132 15506
81ecdfbb
RW
15507case "$ac_dir" in
15508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15509*)
15510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15511 # A ".." for each directory in $ac_dir_suffix.
15512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15513 case $ac_top_builddir_sub in
15514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15516 esac ;;
15517esac
15518ac_abs_top_builddir=$ac_pwd
15519ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520# for backward compatibility:
15521ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15522
15523case $srcdir in
81ecdfbb 15524 .) # We are building in place.
c6b750e1 15525 ac_srcdir=.
81ecdfbb
RW
15526 ac_top_srcdir=$ac_top_builddir_sub
15527 ac_abs_top_srcdir=$ac_pwd ;;
15528 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15529 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15530 ac_top_srcdir=$srcdir
15531 ac_abs_top_srcdir=$srcdir ;;
15532 *) # Relative name.
15533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534 ac_top_srcdir=$ac_top_build_prefix$srcdir
15535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15536esac
81ecdfbb 15537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15538
252b5132 15539
81ecdfbb
RW
15540 case $ac_mode in
15541 :F)
15542 #
15543 # CONFIG_FILE
15544 #
c6b750e1
DJ
15545
15546 case $INSTALL in
15547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15549 esac
81ecdfbb 15550_ACEOF
252b5132 15551
81ecdfbb
RW
15552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15553# If the template does not know about datarootdir, expand it.
15554# FIXME: This hack should be removed a few years after 2.60.
15555ac_datarootdir_hack=; ac_datarootdir_seen=
15556ac_sed_dataroot='
15557/datarootdir/ {
15558 p
15559 q
15560}
15561/@datadir@/p
15562/@docdir@/p
15563/@infodir@/p
15564/@localedir@/p
15565/@mandir@/p'
15566case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15567*datarootdir*) ac_datarootdir_seen=yes;;
15568*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15570$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15571_ACEOF
81ecdfbb
RW
15572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15573 ac_datarootdir_hack='
15574 s&@datadir@&$datadir&g
15575 s&@docdir@&$docdir&g
15576 s&@infodir@&$infodir&g
15577 s&@localedir@&$localedir&g
15578 s&@mandir@&$mandir&g
15579 s&\\\${datarootdir}&$datarootdir&g' ;;
15580esac
15581_ACEOF
15582
15583# Neutralize VPATH when `$srcdir' = `.'.
15584# Shell code in configure.ac might set extrasub.
15585# FIXME: do we really want to maintain this feature?
15586cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15588$extrasub
15589_ACEOF
81ecdfbb 15590cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15591:t
15592/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15593s|@configure_input@|$ac_sed_conf_input|;t t
15594s&@top_builddir@&$ac_top_builddir_sub&;t t
15595s&@top_build_prefix@&$ac_top_build_prefix&;t t
15596s&@srcdir@&$ac_srcdir&;t t
15597s&@abs_srcdir@&$ac_abs_srcdir&;t t
15598s&@top_srcdir@&$ac_top_srcdir&;t t
15599s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15600s&@builddir@&$ac_builddir&;t t
15601s&@abs_builddir@&$ac_abs_builddir&;t t
15602s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15603s&@INSTALL@&$ac_INSTALL&;t t
15604$ac_datarootdir_hack
15605"
15606eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15607if $ac_cs_awk_getline; then
15608 $AWK -f "$tmp/subs.awk"
15609else
15610 $AWK -f "$tmp/subs.awk" | $SHELL
15611fi >$tmp/out \
15612 || as_fn_error "could not create $ac_file" "$LINENO" 5
15613
15614test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15615 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15616 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15618which seems to be undefined. Please make sure it is defined." >&5
15619$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15620which seems to be undefined. Please make sure it is defined." >&2;}
15621
15622 rm -f "$tmp/stdin"
15623 case $ac_file in
15624 -) cat "$tmp/out" && rm -f "$tmp/out";;
15625 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15626 esac \
15627 || as_fn_error "could not create $ac_file" "$LINENO" 5
15628 ;;
c148b4cb 15629
c148b4cb 15630
c148b4cb 15631
81ecdfbb
RW
15632 esac
15633
06a51eac
RW
15634
15635 case $ac_file$ac_mode in
15636 "Makefile":F) sed "$extrasub_build" Makefile |
15637 sed "$extrasub_host" |
15638 sed "$extrasub_target" > mf$$
15639 mv -f mf$$ Makefile ;;
15640
15641 esac
81ecdfbb
RW
15642done # for ac_tag
15643
15644
15645as_fn_exit 0
c6b750e1 15646_ACEOF
c6b750e1
DJ
15647ac_clean_files=$ac_clean_files_save
15648
81ecdfbb
RW
15649test $ac_write_fail = 0 ||
15650 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15651
c6b750e1
DJ
15652
15653# configure is writing to config.log, and then calls config.status.
15654# config.status does its own redirection, appending to config.log.
15655# Unfortunately, on DOS this fails, as config.log is still kept open
15656# by configure, so config.status won't be able to write to it; its
15657# output is simply discarded. So we exec the FD to /dev/null,
15658# effectively closing config.log, so it can be properly (re)opened and
15659# appended to by config.status. When coming back to configure, we
15660# need to make the FD available again.
15661if test "$no_create" != yes; then
15662 ac_cs_success=:
15663 ac_config_status_args=
15664 test "$silent" = yes &&
15665 ac_config_status_args="$ac_config_status_args --quiet"
15666 exec 5>/dev/null
15667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15668 exec 5>>config.log
15669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15670 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15671 $ac_cs_success || as_fn_exit $?
15672fi
15673if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15675$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15676fi
c148b4cb 15677
This page took 1.479277 seconds and 4 git commands to generate.