]> gcc.gnu.org Git - gcc.git/blame - configure
re PR fortran/41781 ([OOP] bogus undefined label error with SELECT TYPE.)
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
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.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
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 :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
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 }
1c710c3c
DJ
79fi
80
81
5213506e
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
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
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'\" &&
87264276
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"
5213506e
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
1c710c3c 184do
5213506e
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."
1c710c3c 228 else
5213506e
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."
1c710c3c 233 fi
5213506e
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
1c710c3c 263
5213506e
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
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
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
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
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'`
1c710c3c 410
2aeb72e9
DD
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
11a67599 417
1c710c3c 418
5213506e
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 |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
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; }
1c710c3c
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
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
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';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
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'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
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
0b0dc272 519
1c710c3c
DJ
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
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e 555enable_option_checking=no
d7f09764
DN
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
5213506e
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
658target_configargs
659configdirs
660host_configargs
661build_configdirs
662build_configargs
663INSTALL_GDB_TK
664GDB_TK
665CONFIGURE_GDB_TK
666build_tooldir
667tooldir
668GCC_SHLIB_SUBDIR
669RPATH_ENVVAR
e12c4094 670BUILD_CONFIG
5213506e
RW
671CXXFLAGS_FOR_TARGET
672CFLAGS_FOR_TARGET
673DEBUG_PREFIX_CFLAGS_FOR_TARGET
674SYSROOT_CFLAGS_FOR_TARGET
675stage1_languages
d7f09764
DN
676extra_host_libiberty_configure_flags
677libelfinc
678libelflibs
679EGREP
680GREP
681CPP
5213506e
RW
682clooginc
683clooglibs
684pplinc
685ppllibs
686poststage1_libs
687poststage1_ldflags
688stage1_libs
689stage1_ldflags
690extra_mpc_mpfr_configure_flags
691extra_mpc_gmp_configure_flags
692extra_mpfr_configure_flags
693gmpinc
694gmplibs
695do_compare
696GNATMAKE
697GNATBIND
698ac_ct_CXX
699CXXFLAGS
700CXX
701OBJEXT
702EXEEXT
703ac_ct_CC
704CPPFLAGS
705LDFLAGS
706CFLAGS
707CC
708target_subdir
709host_subdir
710build_subdir
711build_libsubdir
87264276
PB
712AWK
713SED
5213506e
RW
714LN_S
715LN
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719target_os
720target_vendor
721target_cpu
722target
723host_os
724host_vendor
725host_cpu
726host
727target_noncanonical
728host_noncanonical
729build_noncanonical
730build_os
731build_vendor
732build_cpu
733build
734TOPLEVEL_CONFIGURE_ARGUMENTS
735target_alias
736host_alias
737build_alias
738LIBS
739ECHO_T
740ECHO_N
741ECHO_C
742DEFS
743mandir
744localedir
745libdir
746psdir
747pdfdir
748dvidir
749htmldir
750infodir
751docdir
752oldincludedir
753includedir
754localstatedir
755sharedstatedir
756sysconfdir
757datadir
758datarootdir
759libexecdir
760sbindir
761bindir
762program_transform_name
763prefix
764exec_prefix
765PACKAGE_URL
766PACKAGE_BUGREPORT
767PACKAGE_STRING
768PACKAGE_VERSION
769PACKAGE_TARNAME
770PACKAGE_NAME
771PATH_SEPARATOR
772SHELL'
773ac_subst_files='serialization_dependencies
774host_makefile_frag
775target_makefile_frag
776alphaieee_frag
777ospace_frag'
778ac_user_opts='
779enable_option_checking
780with_build_libsubdir
781enable_gold
782enable_libada
783enable_libssp
784enable_build_with_cxx
785with_mpc
786with_mpc_include
787with_mpc_lib
788with_mpfr_dir
789with_mpfr
790with_mpfr_include
791with_mpfr_lib
792with_gmp_dir
793with_gmp
794with_gmp_include
795with_gmp_lib
796with_host_libstdcxx
797with_stage1_ldflags
798with_stage1_libs
799with_boot_ldflags
800with_boot_libs
801with_ppl
802with_ppl_include
803with_ppl_lib
804enable_ppl_version_check
805with_cloog
806with_cloog_include
807with_cloog_lib
808enable_cloog_version_check
d7f09764
DN
809enable_lto
810with_libelf
811with_libelf_include
812with_libelf_lib
5213506e
RW
813enable_stage1_languages
814enable_objc_gc
815with_build_sysroot
816with_debug_prefix_map
817enable_bootstrap
5646b7b9 818with_build_config
5213506e
RW
819enable_serial_configure
820with_build_time_tools
821enable_maintainer_mode
822enable_stage1_checking
823enable_werror
5213506e
RW
824'
825 ac_precious_vars='build_alias
826host_alias
827target_alias
828CC
829CFLAGS
830LDFLAGS
831LIBS
832CPPFLAGS
833CXX
834CXXFLAGS
835CCC
d7f09764 836CPP
5213506e
RW
837AR
838AS
839DLLTOOL
840LD
841LIPO
842NM
843RANLIB
844STRIP
845WINDRES
846WINDMC
847OBJCOPY
848OBJDUMP
849CC_FOR_TARGET
850CXX_FOR_TARGET
851GCC_FOR_TARGET
852GCJ_FOR_TARGET
853GFORTRAN_FOR_TARGET
854AR_FOR_TARGET
855AS_FOR_TARGET
856DLLTOOL_FOR_TARGET
857LD_FOR_TARGET
858LIPO_FOR_TARGET
859NM_FOR_TARGET
860OBJDUMP_FOR_TARGET
861RANLIB_FOR_TARGET
862STRIP_FOR_TARGET
863WINDRES_FOR_TARGET
864WINDMC_FOR_TARGET'
865
671aa708
NN
866
867# Initialize some variables set by options.
1c710c3c
DJ
868ac_init_help=
869ac_init_version=false
5213506e
RW
870ac_unrecognized_opts=
871ac_unrecognized_sep=
671aa708
NN
872# The variables have the same names as the options, with
873# dashes changed to underlines.
1c710c3c 874cache_file=/dev/null
671aa708 875exec_prefix=NONE
671aa708 876no_create=
671aa708
NN
877no_recursion=
878prefix=NONE
879program_prefix=NONE
880program_suffix=NONE
881program_transform_name=s,x,x,
882silent=
883site=
884srcdir=
671aa708
NN
885verbose=
886x_includes=NONE
887x_libraries=NONE
1c710c3c
DJ
888
889# Installation directory options.
890# These are left unexpanded so users can "make install exec_prefix=/foo"
891# and all the variables that are supposed to be based on exec_prefix
892# by default will actually change.
893# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 894# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
895bindir='${exec_prefix}/bin'
896sbindir='${exec_prefix}/sbin'
897libexecdir='${exec_prefix}/libexec'
5213506e
RW
898datarootdir='${prefix}/share'
899datadir='${datarootdir}'
671aa708
NN
900sysconfdir='${prefix}/etc'
901sharedstatedir='${prefix}/com'
902localstatedir='${prefix}/var'
671aa708
NN
903includedir='${prefix}/include'
904oldincludedir='/usr/include'
5213506e
RW
905docdir='${datarootdir}/doc/${PACKAGE}'
906infodir='${datarootdir}/info'
907htmldir='${docdir}'
908dvidir='${docdir}'
909pdfdir='${docdir}'
910psdir='${docdir}'
911libdir='${exec_prefix}/lib'
912localedir='${datarootdir}/locale'
913mandir='${datarootdir}/man'
79c06341 914
671aa708 915ac_prev=
5213506e 916ac_dashdash=
671aa708
NN
917for ac_option
918do
671aa708
NN
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
5213506e 921 eval $ac_prev=\$ac_option
671aa708
NN
922 ac_prev=
923 continue
924 fi
79c06341 925
5213506e
RW
926 case $ac_option in
927 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *) ac_optarg=yes ;;
929 esac
671aa708
NN
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
5213506e
RW
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
671aa708
NN
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 940 bindir=$ac_optarg ;;
671aa708
NN
941
942 -build | --build | --buil | --bui | --bu)
1c710c3c 943 ac_prev=build_alias ;;
671aa708 944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 945 build_alias=$ac_optarg ;;
671aa708
NN
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
671aa708 956
5213506e 957 -datadir | --datadir | --datadi | --datad)
671aa708 958 ac_prev=datadir ;;
5213506e 959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 960 datadir=$ac_optarg ;;
671aa708 961
5213506e
RW
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
671aa708 969 -disable-* | --disable-*)
5213506e 970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 971 # Reject names that are not valid shell variable names.
5213506e
RW
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978"enable_$ac_useropt"
979"*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
671aa708
NN
994
995 -enable-* | --enable-*)
5213506e 996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 997 # Reject names that are not valid shell variable names.
5213506e
RW
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004"enable_$ac_useropt"
1005"*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
2aeb72e9 1008 esac
5213506e 1009 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1c710c3c 1018 exec_prefix=$ac_optarg ;;
671aa708
NN
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1c710c3c
DJ
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
671aa708
NN
1030
1031 -host | --host | --hos | --ho)
1c710c3c 1032 ac_prev=host_alias ;;
671aa708 1033 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1034 host_alias=$ac_optarg ;;
671aa708 1035
5213506e
RW
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
671aa708
NN
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1047 includedir=$ac_optarg ;;
671aa708
NN
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1052 infodir=$ac_optarg ;;
671aa708
NN
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1057 libdir=$ac_optarg ;;
671aa708
NN
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1064 libexecdir=$ac_optarg ;;
671aa708 1065
5213506e
RW
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
671aa708 1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1072 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1076 localstatedir=$ac_optarg ;;
671aa708
NN
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1081 mandir=$ac_optarg ;;
671aa708
NN
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1088 | --no-cr | --no-c | -n)
671aa708
NN
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1102 oldincludedir=$ac_optarg ;;
671aa708
NN
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1107 prefix=$ac_optarg ;;
671aa708
NN
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1114 program_prefix=$ac_optarg ;;
671aa708
NN
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1121 program_suffix=$ac_optarg ;;
671aa708
NN
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1138 program_transform_name=$ac_optarg ;;
671aa708 1139
5213506e
RW
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
671aa708
NN
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1c710c3c 1158 sbindir=$ac_optarg ;;
671aa708
NN
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1c710c3c 1169 sharedstatedir=$ac_optarg ;;
671aa708
NN
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1c710c3c 1174 site=$ac_optarg ;;
671aa708
NN
1175
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1179 srcdir=$ac_optarg ;;
671aa708
NN
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1186 sysconfdir=$ac_optarg ;;
671aa708
NN
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1189 ac_prev=target_alias ;;
671aa708 1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1191 target_alias=$ac_optarg ;;
671aa708
NN
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
1c710c3c
DJ
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
671aa708
NN
1198
1199 -with-* | --with-*)
5213506e 1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1201 # Reject names that are not valid shell variable names.
5213506e
RW
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208"with_$ac_useropt"
1209"*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
2aeb72e9 1212 esac
5213506e 1213 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1214
1215 -without-* | --without-*)
5213506e 1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1217 # Reject names that are not valid shell variable names.
5213506e
RW
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224"with_$ac_useropt"
1225"*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
671aa708
NN
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1240 x_includes=$ac_optarg ;;
671aa708
NN
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1247 x_libraries=$ac_optarg ;;
671aa708 1248
5213506e
RW
1249 -*) as_fn_error "unrecognized option: \`$ac_option'
1250Try \`$0 --help' for more information."
671aa708
NN
1251 ;;
1252
1c710c3c
DJ
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
5213506e
RW
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1259 esac
1260 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1261 export $ac_envvar ;;
1262
671aa708 1263 *)
1c710c3c 1264 # FIXME: should be removed in autoconf 3.0.
5213506e 1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1269 ;;
1270
1271 esac
1272done
1273
1274if test -n "$ac_prev"; then
1c710c3c 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1276 as_fn_error "missing argument to $ac_option"
af71363e 1277fi
af71363e 1278
5213506e
RW
1279if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1284 esac
5213506e 1285fi
2aeb72e9 1286
5213506e
RW
1287# Check all directory arguments for consistency.
1288for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
2aeb72e9 1292do
5213506e
RW
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
2aeb72e9 1301 case $ac_val in
5213506e
RW
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1304 esac
5213506e 1305 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1306done
1307
1c710c3c
DJ
1308# There might be people who depend on the old broken behavior: `$host'
1309# used to hold the argument of --host etc.
1310# FIXME: To remove some day.
1311build=$build_alias
1312host=$host_alias
1313target=$target_alias
0b0dc272 1314
1c710c3c
DJ
1315# FIXME: To remove some day.
1316if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
5213506e 1319 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1322 cross_compiling=yes
1323 fi
1324fi
1325
1326ac_tool_prefix=
1327test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329test "$silent" = yes && exec 6>/dev/null
671aa708 1330
671aa708 1331
5213506e
RW
1332ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333ac_ls_di=`ls -di .` &&
1334ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 as_fn_error "working directory cannot be determined"
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 as_fn_error "pwd does not report name of working directory"
1338
1339
671aa708
NN
1340# Find the source files, if location was not specified.
1341if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
5213506e
RW
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$as_myself" ||
1345$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$as_myself" : 'X\(//\)[^/]' \| \
1347 X"$as_myself" : 'X\(//\)$' \| \
1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349$as_echo X"$as_myself" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)[^/].*/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\/\)$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\).*/{
1363 s//\1/
1364 q
1365 }
1366 s/.*/./; q'`
671aa708 1367 srcdir=$ac_confdir
5213506e 1368 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1369 srcdir=..
1370 fi
1371else
1372 ac_srcdir_defaulted=no
1373fi
5213506e
RW
1374if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1377fi
1378ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379ac_abs_confdir=`(
1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1381 pwd)`
1382# When building in place, set srcdir=.
1383if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1385fi
1386# Remove unnecessary trailing slashes from srcdir.
1387# Double slashes in file names in object file debugging info
1388# mess up M-x gdb in Emacs.
1389case $srcdir in
1390*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391esac
ac9e6043
RW
1392ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1393
5213506e
RW
1394for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399done
1c710c3c
DJ
1400
1401#
1402# Report the --help message.
1403#
1404if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1407 cat <<_ACEOF
1408\`configure' configures this package to adapt to many kinds of systems.
1409
1410Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413VAR=VALUE. See below for descriptions of some of the useful variables.
1414
1415Defaults for the options are specified in brackets.
1416
1417Configuration:
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427
1c710c3c
DJ
1428Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1430 [$ac_default_prefix]
1c710c3c 1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1432 [PREFIX]
1c710c3c
DJ
1433
1434By default, \`make install' will install all the files in
1435\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437for instance \`--prefix=\$HOME'.
1438
1439For better control, use the options below.
1440
1441Fine tuning of the installation directories:
5213506e
RW
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1461_ACEOF
1462
1463 cat <<\_ACEOF
1464
1465Program names:
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1469
1470System types:
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 --target=TARGET configure for building compilers for TARGET [HOST]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478
1479 cat <<\_ACEOF
1480
1481Optional Features:
5213506e 1482 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 1485 --enable-gold use gold instead of ld
30b74385
RW
1486 --enable-libada build libada directory
1487 --enable-libssp build libssp directory
00020c16 1488 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e
SP
1489 --disable-ppl-version-check disable check for PPL version
1490 --disable-cloog-version-check disable check for CLooG version
d7f09764 1491 --enable-lto enable link time optimization support
30b74385 1492 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1493 stage1. Mostly useful for compiler development.
30b74385
RW
1494 --enable-objc-gc enable use of Boehm's garbage collector with the
1495 GNU Objective-C runtime
1496 --enable-bootstrap enable bootstrapping [yes if native build]
1497 --enable-serial-[{host,target,build}-]configure
1498 force sequential configuration of
1c710c3c 1499 sub-packages for the host, target or build
30b74385 1500 machine, or all sub-packages
1c710c3c
DJ
1501 --enable-maintainer-mode enable make rules and dependencies not useful
1502 (and sometimes confusing) to the casual installer
30b74385
RW
1503 --enable-stage1-checking[=all] choose additional checking for stage1
1504 of the compiler
1c710c3c
DJ
1505 --enable-werror enable -Werror in bootstrap stage2 and later
1506
1507Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1511 --with-mpc=PATH specify prefix directory for installed MPC package.
1512 Equivalent to --with-mpc-include=PATH/include
1513 plus --with-mpc-lib=PATH/lib
1514 --with-mpc-include=PATH
1515 specify directory for installed MPC include files
1516 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1517 --with-mpfr-dir=PATH this option has been REMOVED
1518 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1519 Equivalent to --with-mpfr-include=PATH/include
1520 plus --with-mpfr-lib=PATH/lib
1521 --with-mpfr-include=PATH
30b74385
RW
1522 specify directory for installed MPFR include files
1523 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1524 --with-gmp-dir=PATH this option has been REMOVED
1525 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1526 Equivalent to --with-gmp-include=PATH/include
1527 plus --with-gmp-lib=PATH/lib
30b74385
RW
1528 --with-gmp-include=PATH specify directory for installed GMP include files
1529 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1530 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1531 when linking with PPL
00020c16
ILT
1532 --with-stage1-ldflags=FLAGS Linker flags for stage1
1533 -with-stage1-libs=LIBS Libraries for stage1
1534 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1535 --with-boot-libs=LIBS Libraries for stage2 and later
f8bf9252
SP
1536 --with-ppl=PATH Specify prefix directory for the installed PPL package
1537 Equivalent to --with-ppl-include=PATH/include
1538 plus --with-ppl-lib=PATH/lib
1539 --with-ppl-include=PATH Specify directory for installed PPL include files
1540 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 1541 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
1542 Equivalent to --with-cloog-include=PATH/include
1543 plus --with-cloog-lib=PATH/lib
d789184e
SP
1544 --with-cloog-include=PATH Specify directory for installed CLooG include files
1545 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
d7f09764
DN
1546 --with-libelf=PATH Specify prefix directory for the installed libelf package
1547 Equivalent to --with-libelf-include=PATH/include
1548 plus --with-libelf-lib=PATH/lib
1549 --with-libelf-include=PATH Specify directory for installed libelf include files
1550 --with-libelf-lib=PATH Specify the directory for the installed libelf library
30b74385 1551 --with-build-sysroot=SYSROOT
1c710c3c 1552 use sysroot as the system root during the build
c8aea42c
PB
1553 --with-debug-prefix-map='A=B C=D ...'
1554 map A to B, C to D ... in debug information
5646b7b9
AO
1555--with-build-config='NAME NAME2...'
1556 Use config/NAME.mk build configuration
30b74385 1557 --with-build-time-tools=PATH
1c710c3c 1558 use given path to find target tools during the build
1c710c3c
DJ
1559
1560Some influential environment variables:
1561 CC C compiler command
1562 CFLAGS C compiler flags
1563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
5213506e
RW
1565 LIBS libraries to pass to the linker, e.g. -l<library>
1566 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
d7f09764 1570 CPP C preprocessor
278a7a38
AO
1571 AR AR for the host
1572 AS AS for the host
1573 DLLTOOL DLLTOOL for the host
1574 LD LD for the host
1575 LIPO LIPO for the host
1576 NM NM for the host
1577 RANLIB RANLIB for the host
1578 STRIP STRIP for the host
1579 WINDRES WINDRES for the host
901119ae 1580 WINDMC WINDMC for the host
278a7a38
AO
1581 OBJCOPY OBJCOPY for the host
1582 OBJDUMP OBJDUMP for the host
1583 CC_FOR_TARGET
1584 CC for the target
1585 CXX_FOR_TARGET
1586 CXX for the target
1587 GCC_FOR_TARGET
1588 GCC for the target
1589 GCJ_FOR_TARGET
1590 GCJ for the target
1591 GFORTRAN_FOR_TARGET
1592 GFORTRAN for the target
1593 AR_FOR_TARGET
1594 AR for the target
1595 AS_FOR_TARGET
1596 AS for the target
1597 DLLTOOL_FOR_TARGET
1598 DLLTOOL for the target
1599 LD_FOR_TARGET
1600 LD for the target
1601 LIPO_FOR_TARGET
1602 LIPO for the target
1603 NM_FOR_TARGET
1604 NM for the target
1605 OBJDUMP_FOR_TARGET
1606 OBJDUMP for the target
1607 RANLIB_FOR_TARGET
1608 RANLIB for the target
1609 STRIP_FOR_TARGET
1610 STRIP for the target
1611 WINDRES_FOR_TARGET
1612 WINDRES for the target
901119ae
KT
1613 WINDMC_FOR_TARGET
1614 WINDMC for the target
1c710c3c
DJ
1615
1616Use these variables to override the choices made by `configure' or to help
1617it to find libraries and programs with nonstandard names/locations.
1618
5213506e 1619Report bugs to the package provider.
1c710c3c 1620_ACEOF
5213506e 1621ac_status=$?
1c710c3c
DJ
1622fi
1623
1624if test "$ac_init_help" = "recursive"; then
1625 # If there are subdirs, report their specific --help.
1c710c3c 1626 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1627 test -d "$ac_dir" ||
1628 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1629 continue
1c710c3c
DJ
1630 ac_builddir=.
1631
5213506e
RW
1632case "$ac_dir" in
1633.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634*)
1635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1636 # A ".." for each directory in $ac_dir_suffix.
1637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1638 case $ac_top_builddir_sub in
1639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1641 esac ;;
1642esac
1643ac_abs_top_builddir=$ac_pwd
1644ac_abs_builddir=$ac_pwd$ac_dir_suffix
1645# for backward compatibility:
1646ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1647
1648case $srcdir in
5213506e 1649 .) # We are building in place.
1c710c3c 1650 ac_srcdir=.
5213506e
RW
1651 ac_top_srcdir=$ac_top_builddir_sub
1652 ac_abs_top_srcdir=$ac_pwd ;;
1653 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1654 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1655 ac_top_srcdir=$srcdir
1656 ac_abs_top_srcdir=$srcdir ;;
1657 *) # Relative name.
1658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1659 ac_top_srcdir=$ac_top_build_prefix$srcdir
1660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1661esac
5213506e
RW
1662ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1663
1664 cd "$ac_dir" || { ac_status=$?; continue; }
1665 # Check for guested configure.
1666 if test -f "$ac_srcdir/configure.gnu"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1669 elif test -f "$ac_srcdir/configure"; then
1670 echo &&
1671 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1672 else
5213506e
RW
1673 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1674 fi || ac_status=$?
1675 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1676 done
1677fi
1678
5213506e 1679test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1680if $ac_init_version; then
1681 cat <<\_ACEOF
5213506e
RW
1682configure
1683generated by GNU Autoconf 2.64
1c710c3c 1684
5213506e 1685Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1686This configure script is free software; the Free Software Foundation
1687gives unlimited permission to copy, distribute and modify it.
1688_ACEOF
5213506e 1689 exit
0b0dc272 1690fi
5213506e
RW
1691
1692## ------------------------ ##
1693## Autoconf initialization. ##
1694## ------------------------ ##
1695
1696# ac_fn_c_try_compile LINENO
1697# --------------------------
1698# Try to compile conftest.$ac_ext, and return whether this succeeded.
1699ac_fn_c_try_compile ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext
1703 if { { ac_try="$ac_compile"
1704case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707esac
1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709$as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1711 ac_status=$?
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1716 fi
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1722 ac_retval=0
1723else
1724 $as_echo "$as_me: failed program was:" >&5
1725sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=1
1728fi
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730 return $ac_retval
1731
1732} # ac_fn_c_try_compile
1733
1734# ac_fn_cxx_try_compile LINENO
1735# ----------------------------
1736# Try to compile conftest.$ac_ext, and return whether this succeeded.
1737ac_fn_cxx_try_compile ()
1738{
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1742case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_cxx_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.$ac_objext; then :
1760 ac_retval=0
1761else
1762 $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766fi
1767 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768 return $ac_retval
1769
1770} # ac_fn_cxx_try_compile
1771
1772# ac_fn_c_try_link LINENO
1773# -----------------------
1774# Try to link conftest.$ac_ext, and return whether this succeeded.
1775ac_fn_c_try_link ()
1776{
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 rm -f conftest.$ac_objext conftest$ac_exeext
1779 if { { ac_try="$ac_link"
1780case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783esac
1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785$as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1792 fi
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } && {
1795 test -z "$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 } && test -s conftest$ac_exeext && {
1798 test "$cross_compiling" = yes ||
1799 $as_test_x conftest$ac_exeext
1800 }; then :
1801 ac_retval=0
1802else
1803 $as_echo "$as_me: failed program was:" >&5
1804sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=1
1807fi
1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1810 # interfere with the next link command; also delete a directory that is
1811 # left behind by Apple's compiler. We do this before executing the actions.
1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1813 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814 return $ac_retval
1815
1816} # ac_fn_c_try_link
d7f09764
DN
1817
1818# ac_fn_c_try_cpp LINENO
1819# ----------------------
1820# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1821ac_fn_c_try_cpp ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_cpp conftest.$ac_ext"
1825case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1832 ac_status=$?
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1837 fi
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } >/dev/null && {
1840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849fi
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851 return $ac_retval
1852
1853} # ac_fn_c_try_cpp
1854
1855# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1856# -------------------------------------------------------
1857# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1858# the include files in INCLUDES and setting the cache variable VAR
1859# accordingly.
1860ac_fn_c_check_header_mongrel ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865$as_echo_n "checking for $2... " >&6; }
1866if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1867 $as_echo_n "(cached) " >&6
1868fi
1869eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872else
1873 # Is the header compilable?
1874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1875$as_echo_n "checking $2 usability... " >&6; }
1876cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877/* end confdefs.h. */
1878$4
1879#include <$2>
1880_ACEOF
1881if ac_fn_c_try_compile "$LINENO"; then :
1882 ac_header_compiler=yes
1883else
1884 ac_header_compiler=no
1885fi
1886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1888$as_echo "$ac_header_compiler" >&6; }
1889
1890# Is the header present?
1891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1892$as_echo_n "checking $2 presence... " >&6; }
1893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894/* end confdefs.h. */
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_cpp "$LINENO"; then :
1898 ac_header_preproc=yes
1899else
1900 ac_header_preproc=no
1901fi
1902rm -f conftest.err conftest.$ac_ext
1903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1904$as_echo "$ac_header_preproc" >&6; }
1905
1906# So? What about this header?
1907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1908 yes:no: )
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1910$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913 ;;
1914 no:yes:* )
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1916$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1918$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1920$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1922$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 ;;
1926esac
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928$as_echo_n "checking for $2... " >&6; }
1929if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1930 $as_echo_n "(cached) " >&6
1931else
1932 eval "$3=\$ac_header_compiler"
1933fi
1934eval ac_res=\$$3
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937fi
1938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1939
1940} # ac_fn_c_check_header_mongrel
1941
1942# ac_fn_c_try_run LINENO
1943# ----------------------
1944# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945# that executables *can* be run.
1946ac_fn_c_try_run ()
1947{
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
1950case "(($ac_try" in
1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952 *) ac_try_echo=$ac_try;;
1953esac
1954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955$as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1957 ac_status=$?
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963esac
1964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965$as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_try") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1970 ac_retval=0
1971else
1972 $as_echo "$as_me: program exited with status $ac_status" >&5
1973 $as_echo "$as_me: failed program was:" >&5
1974sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 ac_retval=$ac_status
1977fi
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1980 return $ac_retval
1981
1982} # ac_fn_c_try_run
1983
1984# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985# -------------------------------------------------------
1986# Tests whether HEADER exists and can be compiled using the include files in
1987# INCLUDES, setting the cache variable VAR accordingly.
1988ac_fn_c_check_header_compile ()
1989{
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992$as_echo_n "checking for $2... " >&6; }
1993if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1994 $as_echo_n "(cached) " >&6
1995else
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998$4
1999#include <$2>
2000_ACEOF
2001if ac_fn_c_try_compile "$LINENO"; then :
2002 eval "$3=yes"
2003else
2004 eval "$3=no"
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012
2013} # ac_fn_c_check_header_compile
5213506e 2014cat >config.log <<_ACEOF
1c710c3c
DJ
2015This file contains any messages produced by compilers while
2016running configure, to aid debugging if configure makes a mistake.
2017
2018It was created by $as_me, which was
5213506e 2019generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
2020
2021 $ $0 $@
2022
2023_ACEOF
5213506e 2024exec 5>>config.log
1c710c3c
DJ
2025{
2026cat <<_ASUNAME
2027## --------- ##
2028## Platform. ##
2029## --------- ##
2030
2031hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2032uname -m = `(uname -m) 2>/dev/null || echo unknown`
2033uname -r = `(uname -r) 2>/dev/null || echo unknown`
2034uname -s = `(uname -s) 2>/dev/null || echo unknown`
2035uname -v = `(uname -v) 2>/dev/null || echo unknown`
2036
2037/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2038/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2039
2040/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2041/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2042/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 2043/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
2044/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2045/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2046/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2047
2048_ASUNAME
2049
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053 IFS=$as_save_IFS
2054 test -z "$as_dir" && as_dir=.
5213506e
RW
2055 $as_echo "PATH: $as_dir"
2056 done
2057IFS=$as_save_IFS
1c710c3c
DJ
2058
2059} >&5
2060
2061cat >&5 <<_ACEOF
2062
2063
2064## ----------- ##
2065## Core tests. ##
2066## ----------- ##
2067
2068_ACEOF
2069
2070
2071# Keep a trace of the command line.
2072# Strip out --no-create and --no-recursion so they do not pile up.
2073# Strip out --silent because we don't want to record it for future runs.
2074# Also quote any args containing shell meta-characters.
2075# Make two passes to allow for proper duplicate-argument suppression.
2076ac_configure_args=
2077ac_configure_args0=
2078ac_configure_args1=
1c710c3c
DJ
2079ac_must_keep_next=false
2080for ac_pass in 1 2
2081do
2082 for ac_arg
2083 do
2084 case $ac_arg in
2085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2087 | -silent | --silent | --silen | --sile | --sil)
2088 continue ;;
5213506e
RW
2089 *\'*)
2090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2091 esac
2092 case $ac_pass in
5213506e 2093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2094 2)
5213506e 2095 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2096 if test $ac_must_keep_next = true; then
2097 ac_must_keep_next=false # Got value, back to normal.
2098 else
2099 case $ac_arg in
2100 *=* | --config-cache | -C | -disable-* | --disable-* \
2101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2103 | -with-* | --with-* | -without-* | --without-* | --x)
2104 case "$ac_configure_args0 " in
2105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2106 esac
2107 ;;
2108 -* ) ac_must_keep_next=true ;;
2109 esac
2110 fi
5213506e 2111 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2112 ;;
2113 esac
2114 done
2115done
5213506e
RW
2116{ ac_configure_args0=; unset ac_configure_args0;}
2117{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2118
2119# When interrupted or exit'd, cleanup temporary files, and complete
2120# config.log. We remove comments because anyway the quotes in there
2121# would cause problems or look ugly.
5213506e
RW
2122# WARNING: Use '\'' to represent an apostrophe within the trap.
2123# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2124trap 'exit_status=$?
2125 # Save into config.log some information that might help in debugging.
2126 {
2127 echo
2128
2129 cat <<\_ASBOX
2130## ---------------- ##
2131## Cache variables. ##
2132## ---------------- ##
2133_ASBOX
2134 echo
2135 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2136(
2137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2138 eval ac_val=\$$ac_var
2139 case $ac_val in #(
2140 *${as_nl}*)
2141 case $ac_var in #(
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2144 esac
2145 case $ac_var in #(
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2149 esac ;;
2150 esac
2151 done
1c710c3c 2152 (set) 2>&1 |
5213506e
RW
2153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
1c710c3c 2155 sed -n \
5213506e
RW
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2158 ;; #(
1c710c3c 2159 *)
5213506e 2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2161 ;;
5213506e
RW
2162 esac |
2163 sort
2164)
1c710c3c
DJ
2165 echo
2166
2167 cat <<\_ASBOX
2168## ----------------- ##
2169## Output variables. ##
2170## ----------------- ##
2171_ASBOX
2172 echo
2173 for ac_var in $ac_subst_vars
2174 do
5213506e
RW
2175 eval ac_val=\$$ac_var
2176 case $ac_val in
2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 esac
2179 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2180 done | sort
2181 echo
2182
2183 if test -n "$ac_subst_files"; then
2184 cat <<\_ASBOX
5213506e
RW
2185## ------------------- ##
2186## File substitutions. ##
2187## ------------------- ##
1c710c3c
DJ
2188_ASBOX
2189 echo
2190 for ac_var in $ac_subst_files
2191 do
5213506e
RW
2192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2197 done | sort
2198 echo
2199 fi
2200
2201 if test -s confdefs.h; then
2202 cat <<\_ASBOX
2203## ----------- ##
2204## confdefs.h. ##
2205## ----------- ##
2206_ASBOX
2207 echo
5213506e 2208 cat confdefs.h
1c710c3c
DJ
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
5213506e
RW
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
1c710c3c 2214 } >&5
5213506e
RW
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2217 exit $exit_status
5213506e 2218' 0
1c710c3c 2219for ac_signal in 1 2 13 15; do
5213506e 2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2221done
2222ac_signal=0
2223
2224# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2225rm -f -r conftest* confdefs.h
2226
2227$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2228
2229# Predefined preprocessor variables.
2230
2231cat >>confdefs.h <<_ACEOF
2232#define PACKAGE_NAME "$PACKAGE_NAME"
2233_ACEOF
2234
1c710c3c
DJ
2235cat >>confdefs.h <<_ACEOF
2236#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237_ACEOF
2238
1c710c3c
DJ
2239cat >>confdefs.h <<_ACEOF
2240#define PACKAGE_VERSION "$PACKAGE_VERSION"
2241_ACEOF
0b0dc272 2242
1c710c3c
DJ
2243cat >>confdefs.h <<_ACEOF
2244#define PACKAGE_STRING "$PACKAGE_STRING"
2245_ACEOF
2246
1c710c3c
DJ
2247cat >>confdefs.h <<_ACEOF
2248#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249_ACEOF
2250
5213506e
RW
2251cat >>confdefs.h <<_ACEOF
2252#define PACKAGE_URL "$PACKAGE_URL"
2253_ACEOF
2254
1c710c3c
DJ
2255
2256# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2257# Prefer an explicitly selected file to automatically selected ones.
2258ac_site_file1=NONE
2259ac_site_file2=NONE
2260if test -n "$CONFIG_SITE"; then
2261 ac_site_file1=$CONFIG_SITE
2262elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2265else
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2268fi
5213506e
RW
2269for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270do
2271 test "x$ac_site_file" = xNONE && continue
671aa708 2272 if test -r "$ac_site_file"; then
5213506e
RW
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2275 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2276 . "$ac_site_file"
2277 fi
2278done
2279
2280if test -r "$cache_file"; then
1c710c3c
DJ
2281 # Some versions of bash will fail to source /dev/null (special
2282 # files actually), so we avoid doing that.
2283 if test -f "$cache_file"; then
5213506e
RW
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2285$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2286 case $cache_file in
5213506e
RW
2287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2288 *) . "./$cache_file";;
1c710c3c
DJ
2289 esac
2290 fi
671aa708 2291else
5213506e
RW
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2293$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2294 >$cache_file
2295fi
2296
2297# Check that the precious variables saved in the cache have kept the same
2298# value.
2299ac_cache_corrupted=false
5213506e 2300for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2301 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2302 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2303 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2304 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2305 case $ac_old_set,$ac_new_set in
2306 set,)
5213506e
RW
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2308$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2309 ac_cache_corrupted=: ;;
2310 ,set)
5213506e
RW
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2312$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2313 ac_cache_corrupted=: ;;
2314 ,);;
2315 *)
2316 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2317 # differences in whitespace do not lead to failure.
2318 ac_old_val_w=`echo x $ac_old_val`
2319 ac_new_val_w=`echo x $ac_new_val`
2320 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2322$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323 ac_cache_corrupted=:
2324 else
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2326$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2327 eval $ac_var=\$ac_old_val
2328 fi
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2330$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2332$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2333 fi;;
2334 esac
2335 # Pass precious variables to config.status.
2336 if test "$ac_new_set" = set; then
2337 case $ac_new_val in
5213506e 2338 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2339 *) ac_arg=$ac_var=$ac_new_val ;;
2340 esac
2341 case " $ac_configure_args " in
2342 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2343 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2344 esac
2345 fi
2346done
2347if $ac_cache_corrupted; then
5213506e
RW
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2351$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2352 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2353fi
5213506e
RW
2354## -------------------- ##
2355## Main body of script. ##
2356## -------------------- ##
671aa708 2357
2aeb72e9
DD
2358ac_ext=c
2359ac_cpp='$CPP $CPPFLAGS'
2360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2362ac_compiler_gnu=$ac_cv_c_compiler_gnu
2363
1c710c3c
DJ
2364
2365
2366
1c710c3c
DJ
2367
2368
0115d4a3 2369
1c710c3c 2370
ad33ff57
RW
2371
2372progname=$0
2373# if PWD already has a value, it is probably wrong.
2374if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2375
2376# Export original configure arguments for use by sub-configures.
2377# Quote arguments with shell meta charatcers.
2378TOPLEVEL_CONFIGURE_ARGUMENTS=
2379set -- "$progname" "$@"
2380for ac_arg
2381do
2382 case "$ac_arg" in
2383 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2384 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2385 # if the argument is of the form -foo=baz, quote the baz part only
2386 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2387 *) ;;
2388 esac
2389 # Add the quoted argument to the list.
2390 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2391done
2392if test "$silent" = yes; then
2393 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2394fi
2395# Remove the initial space we just introduced and, as these will be
2396# expanded by make, quote '$'.
2397TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2398
1c710c3c
DJ
2399
2400# Find the build, host, and target systems.
671aa708 2401ac_aux_dir=
5213506e
RW
2402for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2403 for ac_t in install-sh install.sh shtool; do
2404 if test -f "$ac_dir/$ac_t"; then
2405 ac_aux_dir=$ac_dir
2406 ac_install_sh="$ac_aux_dir/$ac_t -c"
2407 break 2
2408 fi
2409 done
671aa708
NN
2410done
2411if test -z "$ac_aux_dir"; then
5213506e 2412 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2413fi
5213506e
RW
2414
2415# These three variables are undocumented and unsupported,
2416# and are intended to be withdrawn in a future Autoconf release.
2417# They can cause serious problems if a builder's source tree is in a directory
2418# whose full name contains unusual characters.
2419ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2420ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2421ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2422
671aa708 2423
1c710c3c 2424# Make sure we can run config.sub.
5213506e
RW
2425$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2426 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2427
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2429$as_echo_n "checking build system type... " >&6; }
2430if test "${ac_cv_build+set}" = set; then :
2431 $as_echo_n "(cached) " >&6
2432else
2433 ac_build_alias=$build_alias
2434test "x$ac_build_alias" = x &&
2435 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2436test "x$ac_build_alias" = x &&
2437 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2438ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2440
2441fi
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2443$as_echo "$ac_cv_build" >&6; }
2444case $ac_cv_build in
2445*-*-*) ;;
2446*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2447esac
1c710c3c 2448build=$ac_cv_build
5213506e
RW
2449ac_save_IFS=$IFS; IFS='-'
2450set x $ac_cv_build
2451shift
2452build_cpu=$1
2453build_vendor=$2
2454shift; shift
2455# Remember, the first character of IFS is used to create $*,
2456# except with old shells:
2457build_os=$*
2458IFS=$ac_save_IFS
2459case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2460
671aa708 2461
1c710c3c
DJ
2462 case ${build_alias} in
2463 "") build_noncanonical=${build} ;;
2464 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2465esac
2466
2467
af71363e 2468
1c710c3c
DJ
2469 case ${host_alias} in
2470 "") host_noncanonical=${build_noncanonical} ;;
2471 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2472esac
2473
af71363e 2474
1c710c3c
DJ
2475
2476 case ${target_alias} in
2477 "") target_noncanonical=${host_noncanonical} ;;
2478 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2479esac
2480
af71363e 2481
1c710c3c
DJ
2482
2483
2484test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2485 test "$program_prefix$program_suffix$program_transform_name" = \
2486 NONENONEs,x,x, &&
1c710c3c 2487 program_transform_name=s,y,y,
af71363e 2488
5213506e
RW
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2490$as_echo_n "checking host system type... " >&6; }
2491if test "${ac_cv_host+set}" = set; then :
2492 $as_echo_n "(cached) " >&6
af71363e 2493else
5213506e
RW
2494 if test "x$host_alias" = x; then
2495 ac_cv_host=$ac_cv_build
2496else
2497 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2498 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2499fi
1c710c3c 2500
af71363e 2501fi
5213506e
RW
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2503$as_echo "$ac_cv_host" >&6; }
2504case $ac_cv_host in
2505*-*-*) ;;
2506*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2507esac
1c710c3c 2508host=$ac_cv_host
5213506e
RW
2509ac_save_IFS=$IFS; IFS='-'
2510set x $ac_cv_host
2511shift
2512host_cpu=$1
2513host_vendor=$2
2514shift; shift
2515# Remember, the first character of IFS is used to create $*,
2516# except with old shells:
2517host_os=$*
2518IFS=$ac_save_IFS
2519case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2520
2521
5213506e
RW
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2523$as_echo_n "checking target system type... " >&6; }
2524if test "${ac_cv_target+set}" = set; then :
2525 $as_echo_n "(cached) " >&6
1c710c3c 2526else
5213506e
RW
2527 if test "x$target_alias" = x; then
2528 ac_cv_target=$ac_cv_host
2529else
2530 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2531 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2532fi
1c710c3c
DJ
2533
2534fi
5213506e
RW
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2536$as_echo "$ac_cv_target" >&6; }
2537case $ac_cv_target in
2538*-*-*) ;;
2539*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2540esac
1c710c3c 2541target=$ac_cv_target
5213506e
RW
2542ac_save_IFS=$IFS; IFS='-'
2543set x $ac_cv_target
2544shift
2545target_cpu=$1
2546target_vendor=$2
2547shift; shift
2548# Remember, the first character of IFS is used to create $*,
2549# except with old shells:
2550target_os=$*
2551IFS=$ac_save_IFS
2552case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2553
2554
2555# The aliases save the names the user supplied, while $host etc.
2556# will get canonicalized.
2557test -n "$target_alias" &&
2558 test "$program_prefix$program_suffix$program_transform_name" = \
2559 NONENONEs,x,x, &&
2560 program_prefix=${target_alias}-
5213506e 2561
671aa708 2562test "$program_prefix" != NONE &&
5213506e 2563 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2564# Use a double $ so make ignores it.
2565test "$program_suffix" != NONE &&
5213506e
RW
2566 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2567# Double any \ or $.
1c710c3c 2568# By default was `s,x,x', remove it if useless.
5213506e
RW
2569ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2570program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2571
671aa708
NN
2572
2573
775956d0
NN
2574# Get 'install' or 'install-sh' and its variants.
2575# Find a good install program. We prefer a C program (faster),
2576# so one script is as good as another. But avoid the broken or
2577# incompatible versions:
2578# SysV /etc/install, /usr/sbin/install
2579# SunOS /usr/etc/install
2580# IRIX /sbin/install
2581# AIX /bin/install
1c710c3c 2582# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2586# OS/2's system install, which has a completely different semantic
775956d0 2587# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2588# Reject install programs that cannot install multiple files.
5213506e
RW
2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2590$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2591if test -z "$INSTALL"; then
5213506e
RW
2592if test "${ac_cv_path_install+set}" = set; then :
2593 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2594else
2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596for as_dir in $PATH
2597do
2598 IFS=$as_save_IFS
2599 test -z "$as_dir" && as_dir=.
5213506e
RW
2600 # Account for people who put trailing slashes in PATH elements.
2601case $as_dir/ in #((
2602 ./ | .// | /[cC]/* | \
1c710c3c 2603 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2604 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2605 /usr/ucb/* ) ;;
2606 *)
2607 # OSF1 and SCO ODT 3.0 have their own names for install.
2608 # Don't use installbsd from OSF since it installs stuff as root
2609 # by default.
2610 for ac_prog in ginstall scoinst install; do
2611 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2612 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2613 if test $ac_prog = install &&
1c710c3c 2614 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2615 # AIX install. It has an incompatible calling convention.
2616 :
1c710c3c
DJ
2617 elif test $ac_prog = install &&
2618 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2619 # program-specific install script used by HP pwplus--don't use.
2620 :
775956d0 2621 else
38d24731
RW
2622 rm -rf conftest.one conftest.two conftest.dir
2623 echo one > conftest.one
2624 echo two > conftest.two
2625 mkdir conftest.dir
2626 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2627 test -s conftest.one && test -s conftest.two &&
2628 test -s conftest.dir/conftest.one &&
2629 test -s conftest.dir/conftest.two
2630 then
2631 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2632 break 3
2633 fi
775956d0
NN
2634 fi
2635 fi
2636 done
1c710c3c
DJ
2637 done
2638 ;;
2639esac
5213506e
RW
2640
2641 done
2642IFS=$as_save_IFS
1c710c3c 2643
38d24731 2644rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2645
2646fi
2647 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2648 INSTALL=$ac_cv_path_install
775956d0 2649 else
38d24731
RW
2650 # As a last resort, use the slow shell script. Don't cache a
2651 # value for INSTALL within a source directory, because that will
775956d0 2652 # break other packages using the cache if that directory is
38d24731 2653 # removed, or if the value is a relative name.
1c710c3c 2654 INSTALL=$ac_install_sh
775956d0
NN
2655 fi
2656fi
5213506e
RW
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2658$as_echo "$INSTALL" >&6; }
775956d0
NN
2659
2660# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2661# It thinks the first close brace ends the variable substitution.
2662test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2663
1c710c3c 2664test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2665
2666test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2667
5213506e
RW
2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2669$as_echo_n "checking whether ln works... " >&6; }
2670if test "${acx_cv_prog_LN+set}" = set; then :
2671 $as_echo_n "(cached) " >&6
ad6717df
PB
2672else
2673 rm -f conftestdata_t
2674echo >conftestdata_f
2675if ln conftestdata_f conftestdata_t 2>/dev/null
2676then
2677 acx_cv_prog_LN=ln
2678else
2679 acx_cv_prog_LN=no
2680fi
2681rm -f conftestdata_f conftestdata_t
2682
2683fi
2684if test $acx_cv_prog_LN = no; then
2685 LN="cp"
5213506e
RW
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2687$as_echo "no, using $LN" >&6; }
ad6717df
PB
2688else
2689 LN="$acx_cv_prog_LN"
5213506e
RW
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2691$as_echo "yes" >&6; }
ad6717df
PB
2692fi
2693
5213506e
RW
2694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2695$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2696LN_S=$as_ln_s
2697if test "$LN_S" = "ln -s"; then
5213506e
RW
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699$as_echo "yes" >&6; }
fb0103e5 2700else
5213506e
RW
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2702$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2703fi
2704
87264276
PB
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2706$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2707if test "${ac_cv_path_SED+set}" = set; then :
2708 $as_echo_n "(cached) " >&6
2709else
2710 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2711 for ac_i in 1 2 3 4 5 6 7; do
2712 ac_script="$ac_script$as_nl$ac_script"
2713 done
2714 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2715 { ac_script=; unset ac_script;}
2716 if test -z "$SED"; then
2717 ac_path_SED_found=false
2718 # Loop through the user's path and test for each of PROGNAME-LIST
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_prog in sed gsed; do
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2727 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2728# Check for GNU ac_path_SED and select it if it is found.
2729 # Check for GNU $ac_path_SED
2730case `"$ac_path_SED" --version 2>&1` in
2731*GNU*)
2732 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2733*)
2734 ac_count=0
2735 $as_echo_n 0123456789 >"conftest.in"
2736 while :
2737 do
2738 cat "conftest.in" "conftest.in" >"conftest.tmp"
2739 mv "conftest.tmp" "conftest.in"
2740 cp "conftest.in" "conftest.nl"
2741 $as_echo '' >> "conftest.nl"
2742 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2743 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2744 as_fn_arith $ac_count + 1 && ac_count=$as_val
2745 if test $ac_count -gt ${ac_path_SED_max-0}; then
2746 # Best one so far, save it but keep looking for a better one
2747 ac_cv_path_SED="$ac_path_SED"
2748 ac_path_SED_max=$ac_count
2749 fi
2750 # 10*(2^10) chars as input seems more than enough
2751 test $ac_count -gt 10 && break
2752 done
2753 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2754esac
2755
2756 $ac_path_SED_found && break 3
2757 done
2758 done
2759 done
2760IFS=$as_save_IFS
2761 if test -z "$ac_cv_path_SED"; then
2762 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2763 fi
2764else
2765 ac_cv_path_SED=$SED
2766fi
2767
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2770$as_echo "$ac_cv_path_SED" >&6; }
2771 SED="$ac_cv_path_SED"
2772 rm -f conftest.sed
2773
2774for ac_prog in gawk mawk nawk awk
2775do
2776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2777set dummy $ac_prog; ac_word=$2
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779$as_echo_n "checking for $ac_word... " >&6; }
2780if test "${ac_cv_prog_AWK+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782else
2783 if test -n "$AWK"; then
2784 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2785else
2786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_AWK="$ac_prog"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797done
2798 done
2799IFS=$as_save_IFS
2800
2801fi
2802fi
2803AWK=$ac_cv_prog_AWK
2804if test -n "$AWK"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2806$as_echo "$AWK" >&6; }
2807else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809$as_echo "no" >&6; }
2810fi
2811
2812
2813 test -n "$AWK" && break
2814done
2815
775956d0 2816
79c06341 2817### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2818### If we are on Windows, search for the shell. This will permit people
2819### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2820### without also having to set CONFIG_SHELL. This code will work when
2821### using bash, which sets OSTYPE.
2822case "${OSTYPE}" in
2823*win32*)
671aa708
NN
2824 if test x${CONFIG_SHELL} = x ; then
2825 if test ! -f /bin/sh ; then
2826 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2827 CONFIG_SHELL=${SHELL}
2828 export CONFIG_SHELL
2829 else
2830 for prog in sh sh.exe bash bash.exe; do
2831 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2832 for dir in $PATH; do
2833 test -z "$dir" && dir=.
2834 if test -f $dir/$prog; then
2835 CONFIG_SHELL=$dir/$prog
2836 export CONFIG_SHELL
2837 break
2838 fi
2839 done
2840 IFS="$save_ifs"
2841 test -n "${CONFIG_SHELL}" && break
2842 done
2843 fi
2844 fi
2845 fi
2846 ;;
2847esac
2848
2849config_shell=${CONFIG_SHELL-/bin/sh}
2850
671aa708 2851moveifchange=${srcdir}/move-if-change
79c06341 2852
ee6a22df
L
2853srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2854
2855# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2856# a relative path.
2857if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2858 INSTALL="${srcpwd}/install-sh -c"
2859fi
2860
671aa708
NN
2861# Set srcdir to "." if that's what it is.
2862# This is important for multilib support.
2863pwd=`${PWDCMD-pwd}`
671aa708
NN
2864if test "${pwd}" = "${srcpwd}" ; then
2865 srcdir=.
79c06341
JL
2866fi
2867
671aa708 2868topsrcdir=$srcpwd
5d4a5ee6 2869
671aa708 2870extra_host_args=
afabd8e6 2871
671aa708
NN
2872### To add a new directory to the tree, first choose whether it is a target
2873### or a host dependent tool. Then put it into the appropriate list
2874### (library or tools, host or target), doing a dependency sort.
79c06341 2875
1c710c3c 2876# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2877# configdirs, or target_configdirs; see the serialization section below.
79c06341 2878
1c710c3c
DJ
2879# Dependency sorting is only needed when *configuration* must be done in
2880# a particular order. In all cases a dependency should be specified in
671aa708 2881# the Makefile, whether or not it's implicitly specified here.
79c06341 2882
671aa708
NN
2883# Double entries in build_configdirs, configdirs, or target_configdirs may
2884# cause circular dependencies and break everything horribly.
79c06341 2885
23f6b2f9
PB
2886# these library is used by various programs built for the build
2887# environment
2888#
2889build_libs="build-libiberty"
2890
2891# these tools are built for the build environment
71b5d516 2892build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2893
671aa708
NN
2894# these libraries are used by various programs built for the host environment
2895#
acd26225 2896host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
671aa708 2897
671aa708
NN
2898# these tools are built for the host environment
2899# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2900# know that we are building the simulator.
2901# binutils, gas and ld appear in that order because it makes sense to run
2902# "make check" in that particular order.
5afab7ad 2903# If --enable-gold is used, "gold" will replace "ld".
8c32c9f0 2904host_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"
671aa708
NN
2905
2906# libgcj represents the runtime libraries only used by gcj.
2907libgcj="target-libffi \
671aa708
NN
2908 target-zlib \
2909 target-qthreads \
2910 target-libjava"
2911
2912# these libraries are built for the target environment, and are built after
2913# the host libraries and the host tools (which may be a cross compiler)
2914#
291f172e
DJ
2915target_libraries="target-libgcc \
2916 target-libiberty \
671aa708
NN
2917 target-libgloss \
2918 target-newlib \
6d3b5aea 2919 target-libgomp \
cb543528 2920 target-libstdc++-v3 \
6de9cd9a 2921 target-libmudflap \
77008252 2922 target-libssp \
6de9cd9a 2923 target-libgfortran \
7cd0cf9c 2924 target-boehm-gc \
77d187bc 2925 ${libgcj} \
d9cdb878 2926 target-libobjc \
6d3b5aea 2927 target-libada"
671aa708 2928
4dbda6f0
NN
2929# these tools are built using the target libraries, and are intended to
2930# run only in the target environment
671aa708 2931#
4dbda6f0 2932# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2933# list belongs in this list. those programs are also very likely
2934# candidates for the "native_only" list which follows
2935#
97286f7f 2936target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2937
671aa708 2938################################################################################
79c06341 2939
671aa708
NN
2940## All tools belong in one of the four categories, and are assigned above
2941## We assign ${configdirs} this way to remove all embedded newlines. This
2942## is important because configure will choke if they ever get through.
2943## ${configdirs} is directories we build using the host tools.
2944## ${target_configdirs} is directories we build using the target tools.
671aa708 2945configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2946target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2947build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2948
ac9e6043
RW
2949
2950
671aa708 2951################################################################################
79c06341 2952
671aa708 2953srcname="gnu development package"
79c06341 2954
671aa708
NN
2955# This gets set non-empty for some net releases of packages.
2956appdirs=""
79c06341 2957
671aa708
NN
2958# Define is_cross_compiler to save on calls to 'test'.
2959is_cross_compiler=
2960if test x"${host}" = x"${target}" ; then
2961 is_cross_compiler=no
79c06341 2962else
671aa708 2963 is_cross_compiler=yes
1c710c3c 2964fi
79c06341 2965
b4acb5ef 2966# Find the build and target subdir names.
8b87bb96 2967
2e9e6f68
DJ
2968# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2969# have matching libraries, they should use host libraries: Makefile.tpl
2970# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2971# However, they still use the build modules, because the corresponding
2972# host modules (e.g. bison) are only built for the host when bootstrap
2973# finishes. So:
2974# - build_subdir is where we find build modules, and never changes.
2975# - build_libsubdir is where we find build libraries, and can be overridden.
2976
2977# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2978build_subdir="build-${build_noncanonical}"
1c710c3c 2979
5213506e
RW
2980# Check whether --with-build-libsubdir was given.
2981if test "${with_build_libsubdir+set}" = set; then :
2982 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2983else
2984 build_libsubdir="$build_subdir"
5213506e
RW
2985fi
2986
215c351a
PB
2987# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2988if ( test $srcdir = . && test -d gcc ) \
2989 || test -d $srcdir/../host-${host_noncanonical}; then
2990 host_subdir="host-${host_noncanonical}"
2991else
2992 host_subdir=.
2993fi
8b87bb96
NN
2994# No prefix.
2995target_subdir=${target_noncanonical}
1c710c3c 2996
0db770bd
RW
2997# Be sure to cover against remnants of an in-tree build.
2998if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2999 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3000Use a pristine source tree when building in a separate tree" "$LINENO" 5
3001fi
79c06341 3002
671aa708
NN
3003# Skipdirs are removed silently.
3004skipdirs=
3005# Noconfigdirs are removed loudly.
3006noconfigdirs=""
79c06341 3007
671aa708
NN
3008use_gnu_ld=
3009# Make sure we don't let GNU ld be added if we didn't want it.
3010if test x$with_gnu_ld = xno ; then
3011 use_gnu_ld=no
5afab7ad 3012 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
3013fi
3014
671aa708
NN
3015use_gnu_as=
3016# Make sure we don't let GNU as be added if we didn't want it.
3017if test x$with_gnu_as = xno ; then
3018 use_gnu_as=no
3019 noconfigdirs="$noconfigdirs gas"
79c06341
JL
3020fi
3021
d7f09764
DN
3022use_included_zlib=
3023# Make sure we don't let ZLIB be added if we didn't want it.
3024if test x$with_system_zlib = xyes ; then
3025 use_included_zlib=no
3026 noconfigdirs="$noconfigdirs zlib"
3027fi
3028
1c710c3c 3029# some tools are so dependent upon X11 that if we're not building with X,
671aa708 3030# it's not even worth trying to configure, much less build, that tool.
79c06341 3031
671aa708
NN
3032case ${with_x} in
3033 yes | "") ;; # the default value for this tree is that X11 is available
3034 no)
b4f96efe 3035 skipdirs="${skipdirs} tk itcl libgui"
671aa708 3036 # We won't be able to build gdbtk without X.
1c710c3c 3037 enable_gdbtk=no
671aa708
NN
3038 ;;
3039 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3040esac
79c06341 3041
671aa708 3042# Some tools are only suitable for building in a "native" situation.
1c710c3c 3043# Remove these if host!=target.
9e299237 3044native_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"
79c06341 3045
671aa708
NN
3046# Similarly, some are only suitable for cross toolchains.
3047# Remove these if host=target.
3048cross_only="target-libgloss target-newlib target-opcodes"
3049
3050case $is_cross_compiler in
3051 no) skipdirs="${skipdirs} ${cross_only}" ;;
3052 yes) skipdirs="${skipdirs} ${native_only}" ;;
3053esac
79c06341 3054
671aa708
NN
3055# If both --with-headers and --with-libs are specified, default to
3056# --without-newlib.
ee6a22df
L
3057if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3058 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
3059 if test x"${with_newlib}" = x ; then
3060 with_newlib=no
3061 fi
79c06341
JL
3062fi
3063
671aa708
NN
3064# Recognize --with-newlib/--without-newlib.
3065case ${with_newlib} in
3066 no) skipdirs="${skipdirs} target-newlib" ;;
3067 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3068esac
79c06341 3069
5afab7ad
ILT
3070# Handle --enable-gold.
3071
5213506e
RW
3072# Check whether --enable-gold was given.
3073if test "${enable_gold+set}" = set; then :
3074 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3075else
3076 ENABLE_GOLD=no
5213506e
RW
3077fi
3078
5afab7ad
ILT
3079if test "${ENABLE_GOLD}" = "yes"; then
3080 # Check for ELF target.
3081 is_elf=no
3082 case "${target}" in
3083 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3084 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
144c9175 3085 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
5afab7ad
ILT
3086 case "${target}" in
3087 *-*-linux*aout* | *-*-linux*oldld*)
3088 ;;
3089 *)
3090 is_elf=yes
3091 ;;
3092 esac
3093 esac
3094
3095 if test "$is_elf" = "yes"; then
3096 # Check for target supported by gold.
3097 case "${target}" in
7f1245df 3098 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
5afab7ad
ILT
3099 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
3100 ;;
3101 esac
3102 fi
3103fi
3104
671aa708 3105# Configure extra directories which are host specific
79c06341 3106
671aa708
NN
3107case "${host}" in
3108 *-cygwin*)
3109 configdirs="$configdirs libtermcap" ;;
3110esac
79c06341 3111
4fab7234
HPN
3112# A target can indicate whether a language isn't supported for some reason.
3113# Only spaces may be used in this macro; not newlines or tabs.
3114unsupported_languages=
3115
1c710c3c 3116# Remove more programs from consideration, based on the host or
671aa708
NN
3117# target this usually means that a port of the program doesn't
3118# exist yet.
ec8d6ddc 3119
671aa708
NN
3120case "${host}" in
3121 hppa*64*-*-*)
3122 noconfigdirs="$noconfigdirs byacc"
3123 ;;
f2a0e225 3124 i[3456789]86-*-vsta)
b4f96efe 3125 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 3126 ;;
f2a0e225 3127 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 3128 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 3129 ;;
95af8923
KT
3130 x86_64-*-mingw*)
3131 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3132 ;;
f2a0e225 3133 i[3456789]86-*-mingw32*)
b4f96efe 3134 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 3135 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 3136 ;;
f2a0e225 3137 i[3456789]86-*-beos*)
b4f96efe 3138 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 3139 ;;
671aa708 3140 *-*-cygwin*)
a22c2d8d 3141 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
3142 ;;
3143 *-*-netbsd*)
a22c2d8d 3144 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
3145 ;;
3146 ppc*-*-pe)
b4f96efe 3147 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
3148 ;;
3149 powerpc-*-beos*)
b4f96efe 3150 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 3151 ;;
671aa708 3152esac
ec8d6ddc 3153
6de9cd9a 3154
5213506e
RW
3155# Check whether --enable-libada was given.
3156if test "${enable_libada+set}" = set; then :
3157 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3158else
3159 ENABLE_LIBADA=yes
5213506e
RW
3160fi
3161
d9cdb878 3162if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3163 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3164fi
3165
5213506e
RW
3166# Check whether --enable-libssp was given.
3167if test "${enable_libssp+set}" = set; then :
3168 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3169else
3170 ENABLE_LIBSSP=yes
5213506e
RW
3171fi
3172
ef0087a7 3173
671aa708
NN
3174# Save it here so that, even in case of --enable-libgcj, if the Java
3175# front-end isn't enabled, we still get libgcj disabled.
3176libgcj_saved=$libgcj
3177case $enable_libgcj in
3178yes)
3179 # If we reset it here, it won't get added to noconfigdirs in the
3180 # target-specific build rules, so it will be forcibly enabled
3181 # (unless the Java language itself isn't enabled).
3182 libgcj=
3183 ;;
3184no)
3185 # Make sure we get it printed in the list of not supported target libs.
3186 noconfigdirs="$noconfigdirs ${libgcj}"
3187 ;;
3188esac
ec8d6ddc 3189
6de9cd9a 3190
27079765
AH
3191# Disable libmudflap on some systems.
3192if test x$enable_libmudflap = x ; then
dfcada9a 3193 case "${target}" in
416ac4d4 3194 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3195 # Enable libmudflap by default in GNU and friends.
dfcada9a 3196 ;;
a3e8d8b4
LR
3197 *-*-freebsd*)
3198 # Enable libmudflap by default in FreeBSD.
3199 ;;
dfcada9a
MM
3200 *)
3201 # Disable it by default everywhere else.
3202 noconfigdirs="$noconfigdirs target-libmudflap"
3203 ;;
3204 esac
27079765 3205fi
6de9cd9a 3206
27079765
AH
3207# Disable libgomp on non POSIX hosted systems.
3208if test x$enable_libgomp = x ; then
953ff289
DN
3209 # Enable libgomp by default on hosted POSIX systems.
3210 case "${target}" in
416ac4d4 3211 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
3212 ;;
3213 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3214 ;;
04879af3 3215 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3216 ;;
cac90078 3217 *-*-darwin* | *-*-aix*)
953ff289
DN
3218 ;;
3219 *)
3220 noconfigdirs="$noconfigdirs target-libgomp"
3221 ;;
3222 esac
27079765 3223fi
953ff289 3224
c03353e2
RIL
3225# Default libgloss CPU subdirectory.
3226libgloss_dir="$target_cpu"
6de9cd9a 3227
671aa708
NN
3228case "${target}" in
3229 *-*-chorusos)
cb253473 3230 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3231 ;;
75eeae1a 3232 powerpc-*-darwin*)
e1514c3f 3233 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3234 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3235 ;;
354ebf88
RW
3236 i[3456789]86-*-darwin*)
3237 noconfigdirs="$noconfigdirs ld gprof"
3238 noconfigdirs="$noconfigdirs sim target-rda"
3239 ;;
3240 x86_64-*-darwin[912]*)
0db3a858
TG
3241 noconfigdirs="$noconfigdirs ld gas gprof"
3242 noconfigdirs="$noconfigdirs sim target-rda"
3243 ;;
42c1cd8a
AT
3244 *-*-darwin*)
3245 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3246 noconfigdirs="$noconfigdirs sim target-rda"
3247 noconfigdirs="$noconfigdirs ${libgcj}"
3248 ;;
671aa708 3249 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3250 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3251 ;;
c3f84f61 3252 *-*-freebsd*)
6de9cd9a
DN
3253 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3254 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3255 && test -f /usr/local/include/gmp.h; then
3256 with_gmp=/usr/local
3257 fi
3258
3259 # Skip some stuff that's unsupported on some FreeBSD configurations.
3260 case "${target}" in
3261 i*86-*-*) ;;
3262 alpha*-*-*) ;;
3263 *)
cb253473 3264 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3265 ;;
3266 esac
3267 ;;
ef4e7569
US
3268 *-*-kaos*)
3269 # Remove unsupported stuff on all kaOS configurations.
cb253473 3270 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
3271 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3272 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3273 noconfigdirs="$noconfigdirs target-libgloss"
3274 ;;
671aa708
NN
3275 *-*-netbsd*)
3276 # Skip some stuff on all NetBSD configurations.
3277 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3278
3279 # Skip some stuff that's unsupported on some NetBSD configurations.
3280 case "${target}" in
3281 i*86-*-netbsdelf*) ;;
0590b963 3282 arm*-*-netbsdelf*) ;;
671aa708 3283 *)
cb253473 3284 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3285 ;;
3286 esac
3287 ;;
61fec9ff 3288 *-*-netware*)
cb253473 3289 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
3290 ;;
3291 *-*-rtems*)
cb253473 3292 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3293 ;;
a8ba31f2
EC
3294 # The tpf target doesn't support gdb yet.
3295 *-*-tpf*)
cb253473 3296 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 3297 ;;
5785c0ed 3298 *-*-uclinux*)
cb253473 3299 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3300 ;;
671aa708 3301 *-*-vxworks*)
cb253473 3302 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3303 ;;
3304 alpha*-dec-osf*)
3305 # ld works, but does not support shared libraries.
3306 # newlib is not 64 bit ready. I'm not sure about fileutils.
3307 # gas doesn't generate exception information.
3308 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3309 ;;
3310 alpha*-*-*vms*)
cb253473 3311 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
671aa708
NN
3312 ;;
3313 alpha*-*-linux*)
3314 # newlib is not 64 bit ready
3315 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3316 ;;
671aa708
NN
3317 alpha*-*-*)
3318 # newlib is not 64 bit ready
cb253473 3319 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3320 ;;
33952f6f 3321 am33_2.0-*-linux*)
cb253473 3322 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3323 ;;
671aa708 3324 sh-*-linux*)
cb253473 3325 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3326 ;;
671aa708 3327 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3328 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3329 noconfigdirs="$noconfigdirs target-examples"
3330 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 3331 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3332 noconfigdirs="$noconfigdirs expect dejagnu"
3333 # the C++ libraries don't build on top of CE's C libraries
cb543528 3334 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
3335 noconfigdirs="$noconfigdirs target-newlib"
3336 case "${host}" in
3337 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 3338 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
3339 ;;
3340 esac
c03353e2 3341 libgloss_dir=wince
671aa708
NN
3342 ;;
3343 arc-*-*)
cb253473 3344 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3345 ;;
ee6a22df 3346 arm-semi-aof )
ee6a22df 3347 ;;
671aa708 3348 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 3349 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3350 libgloss_dir=arm
671aa708 3351 ;;
b3f8d95d 3352 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 3353 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 3354 libgloss_dir=arm
671aa708 3355 ;;
077fc835 3356 arm*-*-linux-gnueabi)
c4e9bf2b 3357 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
3358 case ${with_newlib} in
3359 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3360 esac
c03353e2 3361 libgloss_dir=arm
077fc835 3362 ;;
972974fc 3363 arm*-*-symbianelf*)
cb253473 3364 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3365 libgloss_dir=arm
972974fc 3366 ;;
671aa708 3367 arm-*-pe*)
cb253473 3368 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3369 ;;
671aa708 3370 thumb-*-coff)
cb253473 3371 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3372 ;;
3373 thumb-*-elf)
cb253473 3374 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3375 ;;
671aa708 3376 thumb-*-pe)
cb253473 3377 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3378 ;;
3379 arm-*-riscix*)
cb253473 3380 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3381 ;;
3382 avr-*-*)
ac3949d9 3383 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3384 ;;
6b65a26d 3385 bfin-*-*)
1c3c9f12
JZ
3386 unsupported_languages="$unsupported_languages java"
3387 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
61efc800 3388 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3389 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3390 fi
3391 ;;
671aa708 3392 c4x-*-* | tic4x-*-*)
cb253473 3393 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3394 ;;
3395 c54x*-*-* | tic54x-*-*)
cb253473 3396 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3397 ;;
c993ae60
SR
3398 cr16-*-*)
3399 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3400 ;;
40d64b5a 3401 cris-*-* | crisv32-*-*)
4fab7234 3402 unsupported_languages="$unsupported_languages java"
40d64b5a 3403 case "${target}" in
c2e0d3a9 3404 *-*-aout)
7f26dfa3 3405 unsupported_languages="$unsupported_languages fortran"
4fab7234 3406 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3407 *-*-elf)
789ec619 3408 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 3409 *-*-linux*)
789ec619 3410 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3411 *)
7f26dfa3 3412 unsupported_languages="$unsupported_languages fortran"
cb253473 3413 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3414 esac
c03353e2 3415 libgloss_dir=cris
671aa708 3416 ;;
25b656e7 3417 crx-*-*)
cb253473 3418 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3419 ;;
671aa708 3420 d10v-*-*)
cb253473 3421 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3422 ;;
3423 d30v-*-*)
cb253473 3424 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3425 ;;
c03353e2
RIL
3426 ep9312-*-elf | ep9312-*-coff)
3427 libgloss_dir=arm
3428 ;;
671aa708 3429 fr30-*-elf*)
cb253473 3430 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3431 ;;
3432 frv-*-*)
cb253473 3433 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3434 ;;
55f2d967
AG
3435 moxie-*-*)
3436 noconfigdirs="$noconfigdirs ${libgcj}"
3437 noconfigdirs="$noconfigdirs gprof"
3438 ;;
671aa708 3439 h8300*-*-*)
cb253473 3440 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3441 ;;
3442 h8500-*-*)
cb253473 3443 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3444 ;;
ee6a22df 3445 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3446 ;;
671aa708
NN
3447 hppa*64*-*-linux* | parisc*64*-*-linux*)
3448 # In this case, it's because the hppa64-linux target is for
3449 # the kernel only at this point and has no libc, and thus no
3450 # headers, crt*.o, etc., all of which are needed by these.
3451 noconfigdirs="$noconfigdirs target-zlib"
3452 ;;
3e732ba0
JDA
3453 parisc*-*-linux* | hppa*-*-linux*)
3454 ;;
671aa708 3455 hppa*-*-*elf* | \
671aa708
NN
3456 hppa*-*-lites* | \
3457 hppa*-*-openbsd* | \
3458 hppa*64*-*-*)
cb253473 3459 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3460 ;;
2a332582
JDA
3461 hppa*-hp-hpux11*)
3462 noconfigdirs="$noconfigdirs ld shellutils"
3463 ;;
c03353e2
RIL
3464 hppa*-*-pro*)
3465 libgloss_dir=pa
3466 ;;
671aa708
NN
3467 hppa*-*-*)
3468 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3469 # build on HP-UX 10.20.
cb253473 3470 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3471 ;;
fb87ad5d 3472 i960-*-*)
cb253473 3473 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3474 ;;
671aa708
NN
3475 ia64*-*-elf*)
3476 # No gdb support yet.
b4f96efe 3477 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3478 ;;
3479 ia64*-**-hpux*)
3480 # No gdb or ld support yet.
cb253473 3481 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 3482 ;;
52535a64
DR
3483 ia64*-*-*vms*)
3484 # No gdb or ld support yet.
3485 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3486 ;;
ee6a22df 3487 i370-*-opened*)
ee6a22df 3488 ;;
f2a0e225 3489 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3490 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3491 libgloss_dir=i386
671aa708 3492 ;;
f2a0e225 3493 i[3456789]86-*-linux*)
671aa708
NN
3494 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3495 # not build java stuff by default.
3496 case "${target}" in
3497 *-*-*libc1*)
cb253473 3498 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3499 esac
3500
3501 # This section makes it possible to build newlib natively on linux.
3502 # If we are using a cross compiler then don't configure newlib.
3503 if test x${is_cross_compiler} != xno ; then
3aa83176 3504 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3505 fi
3506 noconfigdirs="$noconfigdirs target-libgloss"
3507 # If we are not using a cross compiler, do configure newlib.
3508 # Note however, that newlib will only be configured in this situation
3509 # if the --with-newlib option has been given, because otherwise
3510 # 'target-newlib' will appear in skipdirs.
3511 ;;
f2a0e225 3512 i[3456789]86-*-mingw32*)
b91f0a41
CV
3513 target_configdirs="$target_configdirs target-winsup"
3514 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3515 ;;
95af8923
KT
3516 x86_64-*-mingw*)
3517 target_configdirs="$target_configdirs target-winsup"
3518 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3519 ;;
671aa708
NN
3520 *-*-cygwin*)
3521 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3522 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3523 # always build newlib if winsup directory is present.
b91f0a41 3524 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3525 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3526 elif test -d "$srcdir/newlib"; then
b91f0a41 3527 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3528 fi
1c710c3c 3529 ;;
ee6a22df
L
3530 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3531 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3532 ;;
f2a0e225 3533 i[3456789]86-*-pe)
cb253473 3534 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3535 ;;
f2a0e225 3536 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3537 # The linker does not yet know about weak symbols in COFF,
3538 # and is not configured to handle mixed ELF and COFF.
cb253473 3539 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3540 ;;
f2a0e225 3541 i[3456789]86-*-sco*)
cb253473 3542 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3543 ;;
f2a0e225 3544 i[3456789]86-*-solaris2*)
671aa708
NN
3545 noconfigdirs="$noconfigdirs target-libgloss"
3546 ;;
f2a0e225 3547 i[3456789]86-*-sysv4*)
cb253473 3548 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3549 ;;
f2a0e225 3550 i[3456789]86-*-beos*)
cb253473 3551 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3552 ;;
d1f8db0c
PB
3553 i[3456789]86-*-rdos*)
3554 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3555 ;;
fb87ad5d 3556 m32r-*-*)
cb253473 3557 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3558 ;;
671aa708 3559 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3560 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3561 libgloss_dir=m68hc11
671aa708
NN
3562 ;;
3563 m68k-*-elf*)
cb253473 3564 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3565 ;;
3566 m68k-*-coff*)
cb253473 3567 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3568 ;;
c03353e2
RIL
3569 m68*-*-* | fido-*-*)
3570 libgloss_dir=m68k
3571 ;;
671aa708
NN
3572 mcore-*-pe*)
3573 # The EPOC C++ environment does not support exceptions or rtti,
3574 # and so building libstdc++-v3 tends not to always work.
3575 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3576 ;;
3577 mmix-*-*)
4fab7234 3578 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3579 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3580 ;;
3581 mn10200-*-*)
cb253473 3582 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3583 ;;
3584 mn10300-*-*)
cb253473 3585 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3586 ;;
ab34901f 3587 mt-*-*)
79dd769c
AH
3588 noconfigdirs="$noconfigdirs sim"
3589 ;;
671aa708
NN
3590 powerpc-*-aix*)
3591 # copied from rs6000-*-* entry
a891a473 3592 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3593 ;;
3594 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3595 target_configdirs="$target_configdirs target-winsup"
cb253473 3596 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3597 # always build newlib.
3598 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3599 ;;
3600 # This is temporary until we can link against shared libraries
3601 powerpcle-*-solaris*)
cb253473 3602 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3603 libgloss_dir=rs6000
671aa708
NN
3604 ;;
3605 powerpc-*-beos*)
cb253473 3606 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3607 ;;
671aa708 3608 powerpc-*-eabi)
cb253473 3609 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3610 libgloss_dir=rs6000
ee6a22df
L
3611 ;;
3612 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3613 libgloss_dir=rs6000
671aa708 3614 ;;
671aa708 3615 rs6000-*-lynxos*)
cb253473 3616 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3617 ;;
3618 rs6000-*-aix*)
a891a473 3619 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3620 ;;
3621 rs6000-*-*)
cb253473 3622 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3623 ;;
3624 m68k-apollo-*)
cb253473 3625 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3626 ;;
ca9fe997
ME
3627 microblaze*)
3628 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3629 ;;
d9dced13
RS
3630 mips*-sde-elf*)
3631 skipdirs="$skipdirs target-libiberty"
3632 noconfigdirs="$noconfigdirs ${libgcj}"
3633 if test x$with_newlib = xyes; then
3634 noconfigdirs="$noconfigdirs gprof"
3635 fi
3636 libgloss_dir=mips
3637 ;;
671aa708 3638 mips*-*-irix5*)
cb253473 3639 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3640 ;;
3641 mips*-*-irix6*)
671aa708
NN
3642 # Linking libjava exceeds command-line length limits on at least
3643 # IRIX 6.2, but not on IRIX 6.5.
3644 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3645 # <oldham@codesourcery.com>
cb253473 3646 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3647 ;;
671aa708 3648 mips*-*-bsd*)
cb253473 3649 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3650 ;;
671aa708
NN
3651 mips*-*-linux*)
3652 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3653 ;;
3654 mips*-*-*)
cb253473 3655 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3656 libgloss_dir=mips
671aa708
NN
3657 ;;
3658 romp-*-*)
cb253473 3659 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3660 ;;
669f01d8 3661 sh-*-* | sh64-*-*)
671aa708 3662 case "${host}" in
f2a0e225
KC
3663 i[3456789]86-*-vsta) ;; # don't add gprof back in
3664 i[3456789]86-*-go32*) ;; # don't add gprof back in
3665 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3666 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3667 esac
ea2002ba
CB
3668 case "${target}" in
3669 sh*-*-elf)
3670 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3671 *)
3672 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3673 esac
671aa708 3674 ;;
c03353e2
RIL
3675 sparclet-*-aout* | sparc86x-*-*)
3676 libgloss_dir=sparc
3677 ;;
671aa708 3678 sparc-*-elf*)
cb253473 3679 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3680 ;;
3681 sparc64-*-elf*)
cb253473 3682 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3683 libgloss_dir=sparc
671aa708
NN
3684 ;;
3685 sparclite-*-*)
cb253473 3686 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3687 libgloss_dir=sparc
671aa708
NN
3688 ;;
3689 sparc-*-sunos4*)
cb253473 3690 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3691 if test x${is_cross_compiler} != xno ; then
3692 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3693 else
3694 use_gnu_ld=no
3695 fi
3696 ;;
bba5e0ca 3697 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3698 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3699 ;;
671aa708
NN
3700 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3701 ;;
3702 v810-*-*)
cb253473 3703 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
3704 ;;
3705 v850-*-*)
cb253473 3706 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3707 ;;
3708 v850e-*-*)
cb253473 3709 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3710 ;;
3711 v850ea-*-*)
cb253473 3712 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3713 ;;
3714 vax-*-vms)
cb253473 3715 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3716 ;;
3717 vax-*-*)
cb253473 3718 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3719 ;;
aa12a573 3720 xtensa*-*-*)
cb253473 3721 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3722 ;;
671aa708 3723 ip2k-*-*)
cb253473 3724 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3725 ;;
416ac4d4 3726 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3727 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3728 ;;
3729 *-*-lynxos*)
cb253473 3730 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3731 ;;
671aa708 3732 *-*-*)
cb253473 3733 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3734 ;;
3735esac
79c06341 3736
671aa708
NN
3737# If we aren't building newlib, then don't build libgloss, since libgloss
3738# depends upon some newlib header files.
3739case "${noconfigdirs}" in
3740 *target-libgloss*) ;;
3741 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3742esac
3743
671aa708
NN
3744# Work in distributions that contain no compiler tools, like Autoconf.
3745tentative_cc=""
3746host_makefile_frag=/dev/null
3747if test -d ${srcdir}/config ; then
3748case "${host}" in
3749 m68k-hp-hpux*)
3750 # Avoid "too much defining" errors from HPUX compiler.
3751 tentative_cc="cc -Wp,-H256000"
3752 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3753 # If it's HP/UX ar, this should be harmless.
3754 RANLIB="ar ts"
3755 ;;
3756 m68k-apollo-sysv*)
3757 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3758 ;;
3759 m68k-apollo-bsd*)
3760 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3761 # chokes on bfd, the compiler won't let you assign integers to enums, and
3762 # other problems. Defining CC to gcc is a questionable way to say "don't use
3763 # the apollo compiler" (the preferred version of GCC could be called cc,
3764 # or whatever), but I'm not sure leaving CC as cc is any better...
3765 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3766 # Used to have BISON=yacc.
3767 tentative_cc=gcc
3768 ;;
3769 m88k-dg-dgux*)
3770 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3771 ;;
3772 m88k-harris-cxux*)
3773 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3774 tentative_cc="cc -Xa"
3775 host_makefile_frag="config/mh-cxux"
3776 ;;
3777 m88k-motorola-sysv*)
3778 ;;
3779 mips*-dec-ultrix*)
3780 tentative_cc="cc -Wf,-XNg1000"
3781 host_makefile_frag="config/mh-decstation"
3782 ;;
3783 mips*-nec-sysv4*)
3784 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3785 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3786 host_makefile_frag="config/mh-necv4"
3787 ;;
3788 mips*-sgi-irix4*)
3789 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3790 # environment. Also bump switch table size so that cp-parse will
3791 # compile. Bump string length limit so linker builds.
3792 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3793 ;;
3794 mips*-*-sysv4*)
3795 host_makefile_frag="config/mh-sysv4"
3796 ;;
3797 mips*-*-sysv*)
3798 # This is for a MIPS running RISC/os 4.52C.
3799
3800 # This is needed for GDB, but needs to be in the top-level make because
3801 # if a library is compiled with the bsd headers and gets linked with the
3802 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3803 # a different size).
3804 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3805 # known except to select the sysv environment. Could we use /proc instead?
3806 # These "sysv environments" and "bsd environments" often end up being a pain.
3807 #
3808 # This is not part of CFLAGS because perhaps not all C compilers have this
3809 # option.
3810 tentative_cc="cc -systype sysv"
3811 ;;
3812 i370-ibm-opened*)
3813 tentative_cc="c89"
3814 ;;
f2a0e225 3815 i[3456789]86-*-sysv5*)
671aa708
NN
3816 host_makefile_frag="config/mh-sysv5"
3817 ;;
f2a0e225 3818 i[3456789]86-*-dgux*)
671aa708
NN
3819 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3820 host_makefile_frag="config/mh-dgux386"
3821 ;;
f2a0e225 3822 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3823 # The MetaWare compiler will generate a copyright message unless you
3824 # turn it off by adding the -Hnocopyr flag.
3825 tentative_cc="cc -Hnocopyr"
3826 ;;
f2a0e225 3827 i[3456789]86-ncr-sysv4*)
671aa708
NN
3828 # for an NCR 3000 (i486/SVR4) system.
3829 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3830 # This compiler not only emits obnoxious copyright messages every time
3831 # you run it, but it chokes and dies on a whole bunch of GNU source
3832 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3833 tentative_cc="/usr/ccs/ATT/cc"
3834 host_makefile_frag="config/mh-ncr3000"
3835 ;;
f2a0e225 3836 i[3456789]86-*-sco3.2v5*)
671aa708 3837 ;;
f2a0e225 3838 i[3456789]86-*-sco*)
671aa708
NN
3839 # The native C compiler botches some simple uses of const. Unfortunately,
3840 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3841 tentative_cc="cc -Dconst="
3842 host_makefile_frag="config/mh-sco"
3843 ;;
f2a0e225 3844 i[3456789]86-*-udk*)
671aa708
NN
3845 host_makefile_frag="config/mh-sysv5"
3846 ;;
f2a0e225 3847 i[3456789]86-*-solaris2*)
671aa708
NN
3848 host_makefile_frag="config/mh-sysv4"
3849 ;;
f2a0e225 3850 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3851 host_makefile_frag="config/mh-djgpp"
3852 ;;
3853 *-cygwin*)
2a79c47f 3854
5213506e
RW
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3856$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f
NC
3857echo a >cygwin-cat-check
3858if test `cat cygwin-cat-check` == a ; then
3859 rm cygwin-cat-check
5213506e
RW
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3861$as_echo "yes" >&6; }
2a79c47f
NC
3862else
3863 rm cygwin-cat-check
5213506e
RW
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865$as_echo "no" >&6; }
3866 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3867 Please either mount the build directory in binary mode or run the following
3868 commands before running any configure script:
3869set -o igncr
3870export SHELLOPTS
5213506e 3871 " "$LINENO" 5
2a79c47f
NC
3872fi
3873
671aa708
NN
3874 host_makefile_frag="config/mh-cygwin"
3875 ;;
c53a18d3 3876 *-mingw*)
1f5a6b84 3877 host_makefile_frag="config/mh-mingw"
95af8923 3878 ;;
671aa708
NN
3879 *-interix*)
3880 host_makefile_frag="config/mh-interix"
3881 ;;
3882 vax-*-ultrix2*)
3883 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3884 tentative_cc=gcc
3885 ;;
3886 *-*-solaris2*)
3887 host_makefile_frag="config/mh-solaris"
3888 ;;
3889 m68k-sun-sunos*)
3890 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3891 # without overflowing the jump tables (-J says to use a 32 bit table)
3892 tentative_cc="cc -J"
3893 ;;
efd41714 3894 hppa*-hp-hpux10*)
671aa708 3895 tentative_cc="cc -Wp,-H256000"
efd41714 3896 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3897 ;;
efd41714
PB
3898 hppa*-hp-hpux* | hppa*-*-hiux*)
3899 tentative_cc="cc -Wp,-H256000"
3900 host_makefile_frag="config/mh-pa"
3901 ;;
3902 hppa*-*)
3903 host_makefile_frag="config/mh-pa"
3904 ;;
3905 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3906 tentative_cc="cc -Wp,-H256000"
3907 ;;
3908 rs6000-*-lynxos*)
3909 # /bin/cc is less than useful for our purposes. Always use GCC
3910 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3911 host_makefile_frag="config/mh-lynxrs6k"
3912 ;;
45f366ab 3913 powerpc-*-darwin*)
be8fff81
RB
3914 host_makefile_frag="config/mh-ppc-darwin"
3915 ;;
d19bca38
PB
3916 powerpc-*-aix*)
3917 host_makefile_frag="config/mh-ppc-aix"
3918 ;;
3919 rs6000-*-aix*)
3920 host_makefile_frag="config/mh-ppc-aix"
3921 ;;
671aa708
NN
3922 *-*-lynxos*)
3923 # /bin/cc is less than useful for our purposes. Always use GCC
3924 tentative_cc="/bin/gcc"
3925 ;;
3926 *-*-sysv4*)
3927 host_makefile_frag="config/mh-sysv4"
3928 ;;
95c53c62
RS
3929 # This is placed last to prevent interfering with the cases above.
3930 i[3456789]86-*-*)
3931 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3932 host_makefile_frag="config/mh-x86omitfp"
3933 ;;
671aa708
NN
3934esac
3935fi
3936
55ffb5ed
NN
3937# If we aren't going to be using gcc, see if we can extract a definition
3938# of CC from the fragment.
3939# Actually, use the 'pre-extracted' version above.
3940if test -z "${CC}" && test "${build}" = "${host}" ; then
3941 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3942 found=
3943 for dir in $PATH; do
3944 test -z "$dir" && dir=.
3945 if test -f $dir/gcc; then
3946 found=yes
3947 break
3948 fi
3949 done
3950 IFS="$save_ifs"
3951 if test -z "${found}" && test -n "${tentative_cc}" ; then
3952 CC=$tentative_cc
3953 fi
3954fi
3955
3956if test "${build}" != "${host}" ; then
0999159b
PB
3957 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3958 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3959 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3960 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3961 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3962 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3963 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3964 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3965 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3966 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3967 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3968 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3969else
3970 AR_FOR_BUILD="\$(AR)"
3971 AS_FOR_BUILD="\$(AS)"
fb0103e5 3972 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3973 CXX_FOR_BUILD="\$(CXX)"
3974 GCJ_FOR_BUILD="\$(GCJ)"
3975 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3976 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3977 LD_FOR_BUILD="\$(LD)"
3978 NM_FOR_BUILD="\$(NM)"
3979 RANLIB_FOR_BUILD="\$(RANLIB)"
3980 WINDRES_FOR_BUILD="\$(WINDRES)"
3981 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3982fi
3983
3984ac_ext=c
1c710c3c
DJ
3985ac_cpp='$CPP $CPPFLAGS'
3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3991set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993$as_echo_n "checking for $ac_word... " >&6; }
3994if test "${ac_cv_prog_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3996else
3997 if test -n "$CC"; then
3998 ac_cv_prog_CC="$CC" # Let the user override the test.
3999else
4000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001for as_dir in $PATH
4002do
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
5213506e
RW
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4009 break 2
4010 fi
4011done
5213506e
RW
4012 done
4013IFS=$as_save_IFS
1c710c3c
DJ
4014
4015fi
4016fi
4017CC=$ac_cv_prog_CC
4018if test -n "$CC"; then
5213506e
RW
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020$as_echo "$CC" >&6; }
1c710c3c 4021else
5213506e
RW
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023$as_echo "no" >&6; }
1c710c3c
DJ
4024fi
4025
5213506e 4026
1c710c3c
DJ
4027fi
4028if test -z "$ac_cv_prog_CC"; then
4029 ac_ct_CC=$CC
fb0103e5
RG
4030 # Extract the first word of "gcc", so it can be a program name with args.
4031set dummy gcc; ac_word=$2
5213506e
RW
4032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033$as_echo_n "checking for $ac_word... " >&6; }
4034if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4036else
4037 if test -n "$ac_ct_CC"; then
4038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4039else
4040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041for as_dir in $PATH
4042do
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
5213506e
RW
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4047 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4049 break 2
4050 fi
4051done
5213506e
RW
4052 done
4053IFS=$as_save_IFS
1c710c3c
DJ
4054
4055fi
4056fi
4057ac_ct_CC=$ac_cv_prog_ac_ct_CC
4058if test -n "$ac_ct_CC"; then
5213506e
RW
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4060$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4061else
5213506e
RW
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063$as_echo "no" >&6; }
1c710c3c
DJ
4064fi
4065
5213506e
RW
4066 if test "x$ac_ct_CC" = x; then
4067 CC=""
4068 else
4069 case $cross_compiling:$ac_tool_warned in
4070yes:)
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073ac_tool_warned=yes ;;
4074esac
4075 CC=$ac_ct_CC
4076 fi
1c710c3c
DJ
4077else
4078 CC="$ac_cv_prog_CC"
4079fi
4080
4081if test -z "$CC"; then
5213506e
RW
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4084set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086$as_echo_n "checking for $ac_word... " >&6; }
4087if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4089else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092else
1c710c3c
DJ
4093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094for as_dir in $PATH
4095do
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
5213506e
RW
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4100 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4102 break 2
4103 fi
4104done
5213506e
RW
4105 done
4106IFS=$as_save_IFS
1c710c3c 4107
0b0dc272 4108fi
0b0dc272 4109fi
1c710c3c 4110CC=$ac_cv_prog_CC
af71363e 4111if test -n "$CC"; then
5213506e
RW
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113$as_echo "$CC" >&6; }
2aeb72e9 4114else
5213506e
RW
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116$as_echo "no" >&6; }
2aeb72e9
DD
4117fi
4118
2aeb72e9 4119
5213506e 4120 fi
1c710c3c 4121fi
55ffb5ed
NN
4122if test -z "$CC"; then
4123 # Extract the first word of "cc", so it can be a program name with args.
4124set dummy cc; ac_word=$2
5213506e
RW
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126$as_echo_n "checking for $ac_word... " >&6; }
4127if test "${ac_cv_prog_CC+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4129else
4130 if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4132else
0b0dc272 4133 ac_prog_rejected=no
1c710c3c
DJ
4134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135for as_dir in $PATH
4136do
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
5213506e
RW
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4142 ac_prog_rejected=yes
4143 continue
4144 fi
4145 ac_cv_prog_CC="cc"
5213506e 4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4147 break 2
4148 fi
4149done
5213506e
RW
4150 done
4151IFS=$as_save_IFS
1c710c3c 4152
55ffb5ed
NN
4153if test $ac_prog_rejected = yes; then
4154 # We found a bogon in the path, so make sure we never use it.
4155 set dummy $ac_cv_prog_CC
4156 shift
1c710c3c 4157 if test $# != 0; then
55ffb5ed
NN
4158 # We chose a different compiler from the bogus one.
4159 # However, it has the same basename, so the bogon will be chosen
4160 # first if we set CC to just the basename; use the full file name.
4161 shift
1c710c3c 4162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4163 fi
4164fi
4165fi
4166fi
1c710c3c 4167CC=$ac_cv_prog_CC
55ffb5ed 4168if test -n "$CC"; then
5213506e
RW
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170$as_echo "$CC" >&6; }
55ffb5ed 4171else
5213506e
RW
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173$as_echo "no" >&6; }
55ffb5ed
NN
4174fi
4175
5213506e 4176
1c710c3c
DJ
4177fi
4178if test -z "$CC"; then
4179 if test -n "$ac_tool_prefix"; then
5213506e 4180 for ac_prog in cl.exe
1c710c3c
DJ
4181 do
4182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185$as_echo_n "checking for $ac_word... " >&6; }
4186if test "${ac_cv_prog_CC+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4188else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191else
1c710c3c
DJ
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
5213506e
RW
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4201 break 2
4202 fi
4203done
5213506e
RW
4204 done
4205IFS=$as_save_IFS
1c710c3c 4206
55ffb5ed
NN
4207fi
4208fi
1c710c3c 4209CC=$ac_cv_prog_CC
55ffb5ed 4210if test -n "$CC"; then
5213506e
RW
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212$as_echo "$CC" >&6; }
a4b9e93e 4213else
5213506e
RW
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215$as_echo "no" >&6; }
fb0103e5 4216fi
af71363e 4217
5213506e 4218
1c710c3c
DJ
4219 test -n "$CC" && break
4220 done
af71363e 4221fi
1c710c3c
DJ
4222if test -z "$CC"; then
4223 ac_ct_CC=$CC
5213506e 4224 for ac_prog in cl.exe
1c710c3c
DJ
4225do
4226 # Extract the first word of "$ac_prog", so it can be a program name with args.
4227set dummy $ac_prog; ac_word=$2
5213506e
RW
4228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229$as_echo_n "checking for $ac_word... " >&6; }
4230if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
0b0dc272 4232else
1c710c3c
DJ
4233 if test -n "$ac_ct_CC"; then
4234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4235else
1c710c3c
DJ
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
5213506e
RW
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4243 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4245 break 2
4246 fi
4247done
5213506e
RW
4248 done
4249IFS=$as_save_IFS
1c710c3c 4250
af71363e
AS
4251fi
4252fi
1c710c3c
DJ
4253ac_ct_CC=$ac_cv_prog_ac_ct_CC
4254if test -n "$ac_ct_CC"; then
5213506e
RW
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4256$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4257else
5213506e
RW
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259$as_echo "no" >&6; }
af71363e 4260fi
0b0dc272 4261
5213506e 4262
1c710c3c
DJ
4263 test -n "$ac_ct_CC" && break
4264done
4265
5213506e
RW
4266 if test "x$ac_ct_CC" = x; then
4267 CC=""
4268 else
4269 case $cross_compiling:$ac_tool_warned in
4270yes:)
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273ac_tool_warned=yes ;;
4274esac
4275 CC=$ac_ct_CC
4276 fi
1c710c3c
DJ
4277fi
4278
4279fi
4280
4281
5213506e
RW
4282test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284as_fn_error "no acceptable C compiler found in \$PATH
4285See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4286
4287# Provide some information about the compiler.
5213506e
RW
4288$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4289set X $ac_compile
4290ac_compiler=$2
4291for ac_option in --version -v -V -qversion; do
4292 { { ac_try="$ac_compiler $ac_option >&5"
4293case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296esac
4297eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298$as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4300 ac_status=$?
5213506e
RW
4301 if test -s conftest.err; then
4302 sed '10a\
4303... rest of stderr output deleted ...
4304 10q' conftest.err >conftest.er1
4305 cat conftest.er1 >&5
4306 rm -f conftest.er1 conftest.err
4307 fi
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }
4310done
1c710c3c 4311
5213506e 4312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4313/* end confdefs.h. */
4314
4315int
4316main ()
4317{
4318
4319 ;
4320 return 0;
4321}
4322_ACEOF
4323ac_clean_files_save=$ac_clean_files
5213506e 4324ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4325# Try to create an executable without -o first, disregard a.out.
4326# It will help us diagnose broken compilers, and finding out an intuition
4327# of exeext.
5213506e
RW
4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4329$as_echo_n "checking for C compiler default output file name... " >&6; }
4330ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4331
4332# The possible output files:
4333ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4334
4335ac_rmfiles=
4336for ac_file in $ac_files
4337do
4338 case $ac_file in
4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4340 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4341 esac
4342done
4343rm -f $ac_rmfiles
4344
4345if { { ac_try="$ac_link_default"
4346case "(($ac_try" in
4347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4349esac
4350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4351$as_echo "$ac_try_echo"; } >&5
4352 (eval "$ac_link_default") 2>&5
1c710c3c 4353 ac_status=$?
5213506e
RW
4354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4355 test $ac_status = 0; }; then :
4356 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4357# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4358# in a Makefile. We should not override ac_cv_exeext if it was cached,
4359# so that the user can short-circuit this test for compilers unknown to
4360# Autoconf.
4361for ac_file in $ac_files ''
1c710c3c
DJ
4362do
4363 test -f "$ac_file" || continue
4364 case $ac_file in
5213506e 4365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4366 ;;
4367 [ab].out )
4368 # We found the default executable, but exeext='' is most
4369 # certainly right.
4370 break;;
4371 *.* )
5213506e
RW
4372 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4373 then :; else
4374 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4375 fi
4376 # We set ac_cv_exeext here because the later test for it is not
4377 # safe: cross compilers may not add the suffix if given an `-o'
4378 # argument, so we may need to know it at that point already.
4379 # Even if this section looks crufty: it has the advantage of
4380 # actually working.
1c710c3c
DJ
4381 break;;
4382 * )
4383 break;;
4384 esac
4385done
5213506e
RW
4386test "$ac_cv_exeext" = no && ac_cv_exeext=
4387
1c710c3c 4388else
5213506e
RW
4389 ac_file=''
4390fi
4391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4392$as_echo "$ac_file" >&6; }
4393if test -z "$ac_file"; then :
4394 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4395sed 's/^/| /' conftest.$ac_ext >&5
4396
5213506e
RW
4397{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4399{ as_fn_set_status 77
4400as_fn_error "C compiler cannot create executables
4401See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4402fi
1c710c3c 4403ac_exeext=$ac_cv_exeext
1c710c3c 4404
5213506e 4405# Check that the compiler produces executables we can run. If not, either
1c710c3c 4406# the compiler is broken, or we cross compile.
5213506e
RW
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4408$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4409# If not cross compiling, check that we can run a simple program.
4410if test "$cross_compiling" != yes; then
4411 if { ac_try='./$ac_file'
5213506e
RW
4412 { { case "(($ac_try" in
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4415esac
4416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417$as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_try") 2>&5
1c710c3c 4419 ac_status=$?
5213506e
RW
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; }; then
1c710c3c
DJ
4422 cross_compiling=no
4423 else
4424 if test "$cross_compiling" = maybe; then
4425 cross_compiling=yes
4426 else
5213506e
RW
4427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4429as_fn_error "cannot run C compiled programs.
1c710c3c 4430If you meant to cross compile, use \`--host'.
5213506e 4431See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4432 fi
4433 fi
4434fi
5213506e
RW
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436$as_echo "yes" >&6; }
1c710c3c 4437
5213506e 4438rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4439ac_clean_files=$ac_clean_files_save
5213506e 4440# Check that the compiler produces executables we can run. If not, either
1c710c3c 4441# the compiler is broken, or we cross compile.
5213506e
RW
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4443$as_echo_n "checking whether we are cross compiling... " >&6; }
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4445$as_echo "$cross_compiling" >&6; }
4446
4447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4448$as_echo_n "checking for suffix of executables... " >&6; }
4449if { { ac_try="$ac_link"
4450case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
4454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455$as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link") 2>&5
1c710c3c 4457 ac_status=$?
5213506e
RW
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
1c710c3c
DJ
4460 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4461# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4462# work properly (i.e., refer to `conftest.exe'), while it won't with
4463# `rm'.
4464for ac_file in conftest.exe conftest conftest.*; do
4465 test -f "$ac_file" || continue
4466 case $ac_file in
5213506e 4467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4468 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4469 break;;
4470 * ) break;;
4471 esac
4472done
af71363e 4473else
5213506e
RW
4474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4476as_fn_error "cannot compute suffix of executables: cannot compile and link
4477See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4478fi
1c710c3c 4479rm -f conftest$ac_cv_exeext
5213506e
RW
4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4481$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4482
4483rm -f conftest.$ac_ext
4484EXEEXT=$ac_cv_exeext
4485ac_exeext=$EXEEXT
5213506e
RW
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4487$as_echo_n "checking for suffix of object files... " >&6; }
4488if test "${ac_cv_objext+set}" = set; then :
4489 $as_echo_n "(cached) " >&6
1c710c3c 4490else
5213506e 4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4492/* end confdefs.h. */
4493
4494int
4495main ()
4496{
4497
4498 ;
4499 return 0;
4500}
4501_ACEOF
4502rm -f conftest.o conftest.obj
5213506e
RW
4503if { { ac_try="$ac_compile"
4504case "(($ac_try" in
4505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4507esac
4508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509$as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_compile") 2>&5
1c710c3c 4511 ac_status=$?
5213506e
RW
4512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4513 test $ac_status = 0; }; then :
4514 for ac_file in conftest.o conftest.obj conftest.*; do
4515 test -f "$ac_file" || continue;
1c710c3c 4516 case $ac_file in
5213506e 4517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4519 break;;
4520 esac
4521done
4522else
5213506e 4523 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4524sed 's/^/| /' conftest.$ac_ext >&5
4525
5213506e
RW
4526{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4528as_fn_error "cannot compute suffix of object files: cannot compile
4529See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4530fi
1c710c3c
DJ
4531rm -f conftest.$ac_cv_objext conftest.$ac_ext
4532fi
5213506e
RW
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4534$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4535OBJEXT=$ac_cv_objext
4536ac_objext=$OBJEXT
5213506e
RW
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4538$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4539if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
1c710c3c 4541else
5213506e 4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4543/* end confdefs.h. */
4544
4545int
4546main ()
4547{
4548#ifndef __GNUC__
4549 choke me
4550#endif
4551
4552 ;
4553 return 0;
4554}
4555_ACEOF
5213506e 4556if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4557 ac_compiler_gnu=yes
4558else
5213506e 4559 ac_compiler_gnu=no
1c710c3c 4560fi
5213506e 4561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4562ac_cv_c_compiler_gnu=$ac_compiler_gnu
4563
4564fi
5213506e
RW
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4566$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4567if test $ac_compiler_gnu = yes; then
4568 GCC=yes
4569else
4570 GCC=
4571fi
1c710c3c
DJ
4572ac_test_CFLAGS=${CFLAGS+set}
4573ac_save_CFLAGS=$CFLAGS
5213506e
RW
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4575$as_echo_n "checking whether $CC accepts -g... " >&6; }
4576if test "${ac_cv_prog_cc_g+set}" = set; then :
4577 $as_echo_n "(cached) " >&6
4578else
4579 ac_save_c_werror_flag=$ac_c_werror_flag
4580 ac_c_werror_flag=yes
4581 ac_cv_prog_cc_g=no
4582 CFLAGS="-g"
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4584/* end confdefs.h. */
4585
4586int
4587main ()
4588{
4589
4590 ;
4591 return 0;
4592}
4593_ACEOF
5213506e 4594if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4595 ac_cv_prog_cc_g=yes
4596else
5213506e
RW
4597 CFLAGS=""
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599/* end confdefs.h. */
4600
4601int
4602main ()
4603{
4604
4605 ;
4606 return 0;
4607}
4608_ACEOF
4609if ac_fn_c_try_compile "$LINENO"; then :
4610
4611else
4612 ac_c_werror_flag=$ac_save_c_werror_flag
4613 CFLAGS="-g"
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
af71363e 4616
5213506e
RW
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_prog_cc_g=yes
4627fi
4628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4629fi
5213506e 4630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4631fi
5213506e
RW
4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 ac_c_werror_flag=$ac_save_c_werror_flag
4634fi
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4636$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4637if test "$ac_test_CFLAGS" = set; then
1c710c3c 4638 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4639elif test $ac_cv_prog_cc_g = yes; then
4640 if test "$GCC" = yes; then
4641 CFLAGS="-g -O2"
4642 else
4643 CFLAGS="-g"
4644 fi
4645else
4646 if test "$GCC" = yes; then
4647 CFLAGS="-O2"
4648 else
4649 CFLAGS=
4650 fi
4651fi
5213506e
RW
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4653$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4654if test "${ac_cv_prog_cc_c89+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
1c710c3c 4656else
5213506e 4657 ac_cv_prog_cc_c89=no
1c710c3c 4658ac_save_CC=$CC
5213506e 4659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4660/* end confdefs.h. */
4661#include <stdarg.h>
4662#include <stdio.h>
4663#include <sys/types.h>
4664#include <sys/stat.h>
4665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4666struct buf { int x; };
4667FILE * (*rcsopen) (struct buf *, struct stat *, int);
4668static char *e (p, i)
4669 char **p;
4670 int i;
4671{
4672 return p[i];
4673}
4674static char *f (char * (*g) (char **, int), char **p, ...)
4675{
4676 char *s;
4677 va_list v;
4678 va_start (v,p);
4679 s = g (p, va_arg (v,int));
4680 va_end (v);
4681 return s;
4682}
4683
4684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4685 function prototypes and stuff, but not '\xHH' hex character constants.
4686 These don't provoke an error unfortunately, instead are silently treated
5213506e 4687 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4689 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4690 that's true only with -std. */
1c710c3c
DJ
4691int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4692
5213506e
RW
4693/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4694 inside strings and character constants. */
4695#define FOO(x) 'x'
4696int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4697
1c710c3c
DJ
4698int test (int i, double x);
4699struct s1 {int (*f) (int a);};
4700struct s2 {int (*f) (double a);};
4701int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4702int argc;
4703char **argv;
4704int
4705main ()
4706{
4707return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4708 ;
4709 return 0;
4710}
4711_ACEOF
5213506e
RW
4712for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4714do
4715 CC="$ac_save_CC $ac_arg"
5213506e
RW
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4718fi
5213506e
RW
4719rm -f core conftest.err conftest.$ac_objext
4720 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4721done
5213506e 4722rm -f conftest.$ac_ext
1c710c3c
DJ
4723CC=$ac_save_CC
4724
4725fi
5213506e
RW
4726# AC_CACHE_VAL
4727case "x$ac_cv_prog_cc_c89" in
4728 x)
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4730$as_echo "none needed" >&6; } ;;
4731 xno)
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4733$as_echo "unsupported" >&6; } ;;
1c710c3c 4734 *)
5213506e
RW
4735 CC="$CC $ac_cv_prog_cc_c89"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4737$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4738esac
5213506e 4739if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4740
2aeb72e9
DD
4741fi
4742
2aeb72e9
DD
4743ac_ext=c
4744ac_cpp='$CPP $CPPFLAGS'
4745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748
5213506e 4749ac_ext=cpp
2aeb72e9
DD
4750ac_cpp='$CXXCPP $CPPFLAGS'
4751ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4754if test -z "$CXX"; then
4755 if test -n "$CCC"; then
4756 CXX=$CCC
4757 else
4758 if test -n "$ac_tool_prefix"; then
4759 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4760 do
4761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4762set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764$as_echo_n "checking for $ac_word... " >&6; }
4765if test "${ac_cv_prog_CXX+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4767else
4768 if test -n "$CXX"; then
4769 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4770else
4771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
5213506e
RW
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4778 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4780 break 2
4781 fi
4782done
5213506e
RW
4783 done
4784IFS=$as_save_IFS
55ffb5ed 4785
c3a86da9
DJ
4786fi
4787fi
4788CXX=$ac_cv_prog_CXX
4789if test -n "$CXX"; then
5213506e
RW
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4791$as_echo "$CXX" >&6; }
c3a86da9 4792else
5213506e
RW
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794$as_echo "no" >&6; }
c3a86da9
DJ
4795fi
4796
5213506e 4797
c3a86da9
DJ
4798 test -n "$CXX" && break
4799 done
4800fi
4801if test -z "$CXX"; then
4802 ac_ct_CXX=$CXX
5213506e 4803 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4804do
4805 # Extract the first word of "$ac_prog", so it can be a program name with args.
4806set dummy $ac_prog; ac_word=$2
5213506e
RW
4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4808$as_echo_n "checking for $ac_word... " >&6; }
4809if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4810 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4811else
4812 if test -n "$ac_ct_CXX"; then
4813 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
5213506e
RW
4820 for ac_exec_ext in '' $ac_executable_extensions; do
4821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4822 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4824 break 2
4825 fi
4826done
5213506e
RW
4827 done
4828IFS=$as_save_IFS
c3a86da9
DJ
4829
4830fi
4831fi
4832ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4833if test -n "$ac_ct_CXX"; then
5213506e
RW
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4835$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4836else
5213506e
RW
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4838$as_echo "no" >&6; }
c3a86da9
DJ
4839fi
4840
5213506e 4841
c3a86da9
DJ
4842 test -n "$ac_ct_CXX" && break
4843done
c3a86da9 4844
5213506e
RW
4845 if test "x$ac_ct_CXX" = x; then
4846 CXX="g++"
4847 else
4848 case $cross_compiling:$ac_tool_warned in
4849yes:)
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4852ac_tool_warned=yes ;;
4853esac
4854 CXX=$ac_ct_CXX
4855 fi
c3a86da9
DJ
4856fi
4857
5213506e
RW
4858 fi
4859fi
c3a86da9 4860# Provide some information about the compiler.
5213506e
RW
4861$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4862set X $ac_compile
4863ac_compiler=$2
4864for ac_option in --version -v -V -qversion; do
4865 { { ac_try="$ac_compiler $ac_option >&5"
4866case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869esac
4870eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4871$as_echo "$ac_try_echo"; } >&5
4872 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4873 ac_status=$?
5213506e
RW
4874 if test -s conftest.err; then
4875 sed '10a\
4876... rest of stderr output deleted ...
4877 10q' conftest.err >conftest.er1
4878 cat conftest.er1 >&5
4879 rm -f conftest.er1 conftest.err
4880 fi
4881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4882 test $ac_status = 0; }
4883done
c3a86da9 4884
5213506e
RW
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4886$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4887if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
c3a86da9 4889else
5213506e 4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4891/* end confdefs.h. */
4892
4893int
4894main ()
4895{
4896#ifndef __GNUC__
4897 choke me
4898#endif
4899
4900 ;
4901 return 0;
4902}
4903_ACEOF
5213506e 4904if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4905 ac_compiler_gnu=yes
4906else
5213506e 4907 ac_compiler_gnu=no
c3a86da9 4908fi
5213506e 4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4910ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4911
4912fi
5213506e
RW
4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4914$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4915if test $ac_compiler_gnu = yes; then
4916 GXX=yes
4917else
4918 GXX=
4919fi
c3a86da9
DJ
4920ac_test_CXXFLAGS=${CXXFLAGS+set}
4921ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4923$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4924if test "${ac_cv_prog_cxx_g+set}" = set; then :
4925 $as_echo_n "(cached) " >&6
4926else
4927 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4928 ac_cxx_werror_flag=yes
4929 ac_cv_prog_cxx_g=no
4930 CXXFLAGS="-g"
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4932/* end confdefs.h. */
4933
4934int
4935main ()
4936{
4937
4938 ;
4939 return 0;
4940}
4941_ACEOF
5213506e 4942if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4943 ac_cv_prog_cxx_g=yes
4944else
5213506e
RW
4945 CXXFLAGS=""
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4947/* end confdefs.h. */
5213506e 4948
c3a86da9
DJ
4949int
4950main ()
4951{
5213506e 4952
c3a86da9
DJ
4953 ;
4954 return 0;
4955}
4956_ACEOF
5213506e 4957if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4958
5213506e
RW
4959else
4960 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4961 CXXFLAGS="-g"
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4963/* end confdefs.h. */
5213506e 4964
c3a86da9
DJ
4965int
4966main ()
4967{
5213506e 4968
c3a86da9
DJ
4969 ;
4970 return 0;
4971}
4972_ACEOF
5213506e
RW
4973if ac_fn_cxx_try_compile "$LINENO"; then :
4974 ac_cv_prog_cxx_g=yes
11a67599 4975fi
5213506e
RW
4976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4977fi
4978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979fi
4980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4982fi
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4984$as_echo "$ac_cv_prog_cxx_g" >&6; }
4985if test "$ac_test_CXXFLAGS" = set; then
4986 CXXFLAGS=$ac_save_CXXFLAGS
4987elif test $ac_cv_prog_cxx_g = yes; then
4988 if test "$GXX" = yes; then
4989 CXXFLAGS="-g -O2"
4990 else
4991 CXXFLAGS="-g"
4992 fi
4993else
4994 if test "$GXX" = yes; then
4995 CXXFLAGS="-O2"
4996 else
4997 CXXFLAGS=
4998 fi
c3a86da9 4999fi
c3a86da9
DJ
5000ac_ext=c
5001ac_cpp='$CPP $CPPFLAGS'
5002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005
5006
5007# We must set the default linker to the linker used by gcc for the correct
5008# operation of libtool. If LD is not defined and we are using gcc, try to
5009# set the LD default to the ld used by gcc.
5010if test -z "$LD"; then
5011 if test "$GCC" = yes; then
5012 case $build in
5013 *-*-mingw*)
5014 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5015 *)
5016 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5017 esac
5018 case $gcc_prog_ld in
5019 # Accept absolute paths.
5020 [\\/]* | [A-Za-z]:[\\/]*)
5021 LD="$gcc_prog_ld" ;;
5022 esac
5023 fi
23f6b2f9
PB
5024fi
5025
23f6b2f9
PB
5026
5027
55ffb5ed 5028
1c710c3c
DJ
5029if test -n "$ac_tool_prefix"; then
5030 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5031set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033$as_echo_n "checking for $ac_word... " >&6; }
5034if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5035 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5036else
5037 if test -n "$GNATBIND"; then
5038 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5039else
1c710c3c
DJ
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5213506e
RW
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5047 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5049 break 2
5050 fi
5051done
5213506e
RW
5052 done
5053IFS=$as_save_IFS
1c710c3c 5054
55ffb5ed
NN
5055fi
5056fi
1c710c3c 5057GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5058if test -n "$GNATBIND"; then
5213506e
RW
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5060$as_echo "$GNATBIND" >&6; }
55ffb5ed 5061else
5213506e
RW
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063$as_echo "no" >&6; }
55ffb5ed
NN
5064fi
5065
5213506e 5066
1c710c3c 5067fi
55ffb5ed 5068if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5069 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5070 # Extract the first word of "gnatbind", so it can be a program name with args.
5071set dummy gnatbind; ac_word=$2
5213506e
RW
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
55ffb5ed 5076else
1c710c3c
DJ
5077 if test -n "$ac_ct_GNATBIND"; then
5078 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5079else
1c710c3c
DJ
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5213506e
RW
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5087 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5089 break 2
5090 fi
5091done
5213506e
RW
5092 done
5093IFS=$as_save_IFS
1c710c3c 5094
55ffb5ed
NN
5095fi
5096fi
1c710c3c
DJ
5097ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5098if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5100$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5101else
5213506e
RW
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
55ffb5ed
NN
5104fi
5105
5213506e
RW
5106 if test "x$ac_ct_GNATBIND" = x; then
5107 GNATBIND="no"
5108 else
5109 case $cross_compiling:$ac_tool_warned in
5110yes:)
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5113ac_tool_warned=yes ;;
5114esac
5115 GNATBIND=$ac_ct_GNATBIND
5116 fi
55ffb5ed 5117else
1c710c3c 5118 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5119fi
5120
1c710c3c
DJ
5121if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5123set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125$as_echo_n "checking for $ac_word... " >&6; }
5126if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5305be7e
RG
5128else
5129 if test -n "$GNATMAKE"; then
5130 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5131else
1c710c3c
DJ
5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5213506e
RW
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5139 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5141 break 2
5142 fi
5143done
5213506e
RW
5144 done
5145IFS=$as_save_IFS
1c710c3c 5146
5305be7e
RG
5147fi
5148fi
1c710c3c 5149GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5150if test -n "$GNATMAKE"; then
5213506e
RW
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5152$as_echo "$GNATMAKE" >&6; }
5305be7e 5153else
5213506e
RW
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155$as_echo "no" >&6; }
5305be7e
RG
5156fi
5157
5213506e 5158
1c710c3c 5159fi
5305be7e 5160if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5161 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5162 # Extract the first word of "gnatmake", so it can be a program name with args.
5163set dummy gnatmake; ac_word=$2
5213506e
RW
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165$as_echo_n "checking for $ac_word... " >&6; }
5166if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5305be7e 5168else
1c710c3c
DJ
5169 if test -n "$ac_ct_GNATMAKE"; then
5170 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5171else
1c710c3c
DJ
5172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH
5174do
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5213506e
RW
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5179 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5181 break 2
5182 fi
5183done
5213506e
RW
5184 done
5185IFS=$as_save_IFS
1c710c3c 5186
5305be7e
RG
5187fi
5188fi
1c710c3c
DJ
5189ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5190if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5192$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5193else
5213506e
RW
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195$as_echo "no" >&6; }
5305be7e
RG
5196fi
5197
5213506e
RW
5198 if test "x$ac_ct_GNATMAKE" = x; then
5199 GNATMAKE="no"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202yes:)
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5204$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5205ac_tool_warned=yes ;;
5206esac
5207 GNATMAKE=$ac_ct_GNATMAKE
5208 fi
5305be7e 5209else
1c710c3c 5210 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5211fi
5212
5213506e
RW
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5214$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5215if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5216 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5217else
5218 cat >conftest.adb <<EOF
5219procedure conftest is begin null; end conftest;
5220EOF
5221acx_cv_cc_gcc_supports_ada=no
5222# There is a bug in old released versions of GCC which causes the
5223# driver to exit successfully when the appropriate language module
5224# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5225# Therefore we must check for the error message as well as an
5226# unsuccessful exit.
1db673ca
RO
5227# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5228# given a .adb file, but produce no object file. So we must check
5229# if an object file was really produced to guard against this.
55ffb5ed 5230errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5231if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5232 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5233fi
5234rm -f conftest.*
5235fi
5213506e
RW
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5237$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5238
5305be7e 5239if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5240 have_gnat=yes
5241else
5242 have_gnat=no
5243fi
5244
5213506e
RW
5245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5246$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5247if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5248 $as_echo_n "(cached) " >&6
a76494aa
PB
5249else
5250 echo abfoo >t1
5251 echo cdfoo >t2
5252 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5253 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5254 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5255 :
5256 else
5257 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5258 fi
5259 fi
a76494aa
PB
5260 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5261 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5262 :
a76494aa
PB
5263 else
5264 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5265 fi
5266 fi
5267 rm t1 t2
5268
5269fi
5213506e
RW
5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5271$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5272do_compare="$gcc_cv_prog_cmp_skip"
5273
5274
55ffb5ed 5275
00020c16 5276# See if we are building gcc with C++.
5213506e
RW
5277# Check whether --enable-build-with-cxx was given.
5278if test "${enable_build_with_cxx+set}" = set; then :
5279 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5280else
5281 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5282fi
5283
00020c16 5284
acd26225 5285# Check for GMP, MPFR and MPC
e69bf64b 5286gmplibs="-lmpfr -lgmp"
6de9cd9a 5287gmpinc=
e69bf64b 5288have_gmp=no
5f4a82c0 5289mpclibs=-lmpc
acd26225
KG
5290mpcinc=
5291have_mpc=no
5292
5293# Specify a location for mpc
5294# check for this first so it ends up on the link line before mpfr.
5295
5213506e
RW
5296# Check whether --with-mpc was given.
5297if test "${with_mpc+set}" = set; then :
5298 withval=$with_mpc;
5299fi
acd26225 5300
acd26225 5301
5213506e
RW
5302# Check whether --with-mpc_include was given.
5303if test "${with_mpc_include+set}" = set; then :
5304 withval=$with_mpc_include;
5305fi
acd26225 5306
acd26225 5307
5213506e
RW
5308# Check whether --with-mpc_lib was given.
5309if test "${with_mpc_lib+set}" = set; then :
5310 withval=$with_mpc_lib;
5311fi
acd26225 5312
acd26225
KG
5313
5314if test "x$with_mpc" != x; then
5315 mpclibs="-L$with_mpc/lib -lmpc"
5316 mpcinc="-I$with_mpc/include $mpcinc"
5317fi
5318if test "x$with_mpc_include" != x; then
5319 mpcinc="-I$with_mpc_include $mpcinc"
5320fi
5321if test "x$with_mpc_lib" != x; then
5322 mpclibs="-L$with_mpc_lib -lmpc"
5323fi
5324if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
5325 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
5326 mpcinc='-I$$s/mpc/src '"$mpcinc"
5327 # Do not test the mpc version. Assume that it is sufficient, since
5328 # it is in the source tree, and the library has not been built yet
5329 # but it would be included on the link line in the version check below
5330 # hence making the test fail.
5331 have_mpc=yes
5332fi
e69bf64b 5333
bebf829d
PB
5334# Specify a location for mpfr
5335# check for this first so it ends up on the link line before gmp.
1c710c3c 5336
5213506e
RW
5337# Check whether --with-mpfr-dir was given.
5338if test "${with_mpfr_dir+set}" = set; then :
5339 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5340Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5341fi
5342
bebf829d
PB
5343
5344
5213506e
RW
5345# Check whether --with-mpfr was given.
5346if test "${with_mpfr+set}" = set; then :
5347 withval=$with_mpfr;
5348fi
1c710c3c 5349
bebf829d 5350
5213506e
RW
5351# Check whether --with-mpfr_include was given.
5352if test "${with_mpfr_include+set}" = set; then :
5353 withval=$with_mpfr_include;
5354fi
1c710c3c 5355
8a877c9c 5356
5213506e
RW
5357# Check whether --with-mpfr_lib was given.
5358if test "${with_mpfr_lib+set}" = set; then :
5359 withval=$with_mpfr_lib;
5360fi
8a877c9c 5361
bebf829d
PB
5362
5363if test "x$with_mpfr" != x; then
5364 gmplibs="-L$with_mpfr/lib $gmplibs"
5365 gmpinc="-I$with_mpfr/include"
5366fi
8a877c9c
KG
5367if test "x$with_mpfr_include" != x; then
5368 gmpinc="-I$with_mpfr_include"
5369fi
5370if test "x$with_mpfr_lib" != x; then
5371 gmplibs="-L$with_mpfr_lib $gmplibs"
5372fi
e69bf64b
PB
5373if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5374 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5375 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
acd26225 5376 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
e69bf64b
PB
5377 # Do not test the mpfr version. Assume that it is sufficient, since
5378 # it is in the source tree, and the library has not been built yet
5379 # but it would be included on the link line in the version check below
5380 # hence making the test fail.
5381 have_gmp=yes
5382fi
bebf829d 5383
6de9cd9a 5384# Specify a location for gmp
1c710c3c 5385
5213506e
RW
5386# Check whether --with-gmp-dir was given.
5387if test "${with_gmp_dir+set}" = set; then :
5388 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5389Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5390fi
5391
6de9cd9a 5392
6de9cd9a 5393
5213506e
RW
5394# Check whether --with-gmp was given.
5395if test "${with_gmp+set}" = set; then :
5396 withval=$with_gmp;
5397fi
1c710c3c 5398
6de9cd9a 5399
5213506e
RW
5400# Check whether --with-gmp_include was given.
5401if test "${with_gmp_include+set}" = set; then :
5402 withval=$with_gmp_include;
5403fi
1c710c3c 5404
8a877c9c 5405
5213506e
RW
5406# Check whether --with-gmp_lib was given.
5407if test "${with_gmp_lib+set}" = set; then :
5408 withval=$with_gmp_lib;
5409fi
8a877c9c
KG
5410
5411
6de9cd9a 5412
bebf829d
PB
5413if test "x$with_gmp" != x; then
5414 gmplibs="-L$with_gmp/lib $gmplibs"
5415 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5416fi
8a877c9c
KG
5417if test "x$with_gmp_include" != x; then
5418 gmpinc="-I$with_gmp_include $gmpinc"
5419fi
5420if test "x$with_gmp_lib" != x; then
5421 gmplibs="-L$with_gmp_lib $gmplibs"
5422fi
e69bf64b
PB
5423if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5424 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5425 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9e3eba15 5426 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
acd26225 5427 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5428 # Do not test the gmp version. Assume that it is sufficient, since
5429 # it is in the source tree, and the library has not been built yet
5430 # but it would be included on the link line in the version check below
5431 # hence making the test fail.
5432 have_gmp=yes
5433fi
6de9cd9a 5434
d943d7c4 5435if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5436 have_gmp=yes
5437 saved_CFLAGS="$CFLAGS"
5438 CFLAGS="$CFLAGS $gmpinc"
5439 # Check GMP actually works
5213506e
RW
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5441$as_echo_n "checking for correct version of gmp.h... " >&6; }
1c710c3c 5442
5213506e 5443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5444/* end confdefs.h. */
6de9cd9a 5445#include "gmp.h"
1c710c3c
DJ
5446int
5447main ()
5448{
6de9cd9a 5449
a3337ea2 5450 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
e69bf64b
PB
5451 choke me
5452 #endif
1c710c3c
DJ
5453
5454 ;
5455 return 0;
5456}
5457_ACEOF
5213506e
RW
5458if ac_fn_c_try_compile "$LINENO"; then :
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5460$as_echo "yes" >&6; }
1c710c3c 5461else
5213506e
RW
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5464fi
5213506e 5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5466
acd26225 5467 # If we have GMP, check the MPFR version.
e69bf64b 5468 if test x"$have_gmp" = xyes; then
5213506e
RW
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5470$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5472/* end confdefs.h. */
70ec446f 5473#include <gmp.h>
e69bf64b 5474 #include <mpfr.h>
1c710c3c
DJ
5475int
5476main ()
5477{
e48d66a9 5478
a3337ea2 5479 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5480 choke me
5481 #endif
1c710c3c
DJ
5482
5483 ;
5484 return 0;
5485}
5486_ACEOF
5213506e
RW
5487if ac_fn_c_try_compile "$LINENO"; then :
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5489/* end confdefs.h. */
a3993f33 5490#include <gmp.h>
e69bf64b 5491 #include <mpfr.h>
1c710c3c
DJ
5492int
5493main ()
5494{
a3993f33 5495
36c713e0 5496 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
e69bf64b
PB
5497 choke me
5498 #endif
acd26225
KG
5499
5500 ;
5501 return 0;
5502}
5503_ACEOF
5213506e
RW
5504if ac_fn_c_try_compile "$LINENO"; then :
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5506$as_echo "yes" >&6; }
acd26225 5507else
5213506e
RW
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5509$as_echo "buggy but acceptable" >&6; }
acd26225 5510fi
5213506e 5511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5512else
5213506e
RW
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514$as_echo "no" >&6; }; have_gmp=no
acd26225 5515fi
5213506e 5516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5517 fi
5518
5519 # Check for the MPC header version.
5520 if test x"$have_mpc" != xyes ; then
5521 CFLAGS="$CFLAGS $mpcinc"
5213506e
RW
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5523$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5525/* end confdefs.h. */
5526#include <mpc.h>
5527int
5528main ()
5529{
5530
3e661154 5531 #if MPC_VERSION < MPC_VERSION_NUM (0,7,0)
acd26225
KG
5532 choke me
5533 #endif
5534
5535 ;
5536 return 0;
5537}
5538_ACEOF
5213506e
RW
5539if ac_fn_c_try_compile "$LINENO"; then :
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5541$as_echo "yes" >&6; }; have_mpc=maybe
acd26225 5542else
5213506e
RW
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
acd26225 5545fi
5213506e 5546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5547 fi
5548
5549 # Now check the MPFR library.
5550 if test x"$have_gmp" = xyes; then
5551 saved_LIBS="$LIBS"
5552 LIBS="$LIBS $gmplibs"
5213506e
RW
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5554$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5556/* end confdefs.h. */
5557#include <gmp.h>
5558 #include <mpfr.h>
5559int
5560main ()
5561{
5562
5563 mpfr_t n;
5564 mpfr_t x;
5565 int t;
5566 mpfr_init (n);
5567 mpfr_init (x);
5568 mpfr_atan2 (n, n, x, GMP_RNDN);
5569 mpfr_erfc (n, x, GMP_RNDN);
5570 mpfr_subnormalize (x, t, GMP_RNDN);
1c710c3c
DJ
5571
5572 ;
5573 return 0;
5574}
5575_ACEOF
5213506e
RW
5576if ac_fn_c_try_link "$LINENO"; then :
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5578$as_echo "yes" >&6; }
1c710c3c 5579else
5213506e
RW
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5582fi
5213506e
RW
5583rm -f core conftest.err conftest.$ac_objext \
5584 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5585 LIBS="$saved_LIBS"
5586 fi
5587
5588 if test x"$have_mpc" = xmaybe; then
5589 saved_LIBS="$LIBS"
5590 LIBS="$LIBS $mpclibs $gmplibs"
5213506e
RW
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5592$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5594/* end confdefs.h. */
5595#include <mpc.h>
5596int
5597main ()
5598{
5599
5600 mpc_t n;
5601 mpc_init2 (n, 53);
5602 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5603 mpc_sin (n, n, MPC_RNDNN);
5604 mpc_cos (n, n, MPC_RNDNN);
5605 mpc_tan (n, n, MPC_RNDNN);
5606 mpc_sinh (n, n, MPC_RNDNN);
5607 mpc_cosh (n, n, MPC_RNDNN);
5608 mpc_tanh (n, n, MPC_RNDNN);
5609 mpc_exp (n, n, MPC_RNDNN);
5610 mpc_log (n, n, MPC_RNDNN);
5611 mpc_sqrt (n, n, MPC_RNDNN);
5612 mpc_proj (n, n, MPC_RNDNN);
5613 mpc_neg (n, n, MPC_RNDNN);
5614 mpc_sqr (n, n, MPC_RNDNN);
3e661154 5615 mpc_pow (n, n, n, MPC_RNDNN);
acd26225
KG
5616 mpc_clear (n);
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
5213506e
RW
5622if ac_fn_c_try_link "$LINENO"; then :
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5624$as_echo "yes" >&6; }; have_mpc=yes
1c710c3c 5625else
5213506e
RW
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
1c710c3c 5628fi
5213506e
RW
5629rm -f core conftest.err conftest.$ac_objext \
5630 conftest$ac_exeext conftest.$ac_ext
acd26225 5631 LIBS="$saved_LIBS"
e69bf64b 5632 fi
acd26225 5633
e69bf64b 5634 CFLAGS="$saved_CFLAGS"
6de9cd9a 5635
e69bf64b 5636 if test x$have_gmp != xyes; then
5213506e 5637 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
ca558912
KG
5638Try the --with-gmp and/or --with-mpfr options to specify their locations.
5639Copies of these libraries' source code can be found at their respective
5640hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
dbee1fb3
KG
5641See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5642If you obtained GMP and/or MPFR from a vendor distribution package, make
5643sure that you have installed both the libraries and the header files.
5213506e 5644They may be located in separate packages." "$LINENO" 5
e69bf64b 5645 fi
70ec446f
KG
5646fi
5647
5f4a82c0
KG
5648if test x$have_mpc != xyes ; then
5649 mpcinc=
5650 mpclibs=
5651fi
5652
acd26225
KG
5653gmpinc="$mpcinc $gmpinc"
5654gmplibs="$mpclibs $gmplibs"
5655
5656# Flags needed for both GMP, MPFR and/or MPC.
5657
5658
6de9cd9a
DN
5659
5660
5661
9e3eba15 5662
f38095f3
JM
5663# Allow host libstdc++ to be specified for static linking with PPL.
5664
5213506e
RW
5665# Check whether --with-host-libstdcxx was given.
5666if test "${with_host_libstdcxx+set}" = set; then :
5667 withval=$with_host_libstdcxx;
5668fi
f38095f3 5669
f38095f3
JM
5670
5671case $with_host_libstdcxx in
5672 no|yes)
5213506e 5673 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5674 ;;
5675esac
f8bf9252 5676
00020c16
ILT
5677# Linker flags to use for stage1 or when not boostrapping.
5678
5213506e
RW
5679# Check whether --with-stage1-ldflags was given.
5680if test "${with_stage1_ldflags+set}" = set; then :
5681 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5682 stage1_ldflags=
5683 else
5684 stage1_ldflags=$withval
5685 fi
5686else
5687 stage1_ldflags=
5213506e
RW
5688fi
5689
00020c16
ILT
5690
5691
5692# Libraries to use for stage1 or when not bootstrapping.
5693
5213506e
RW
5694# Check whether --with-stage1-libs was given.
5695if test "${with_stage1_libs+set}" = set; then :
5696 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5697 stage1_libs=
5698 else
5699 stage1_libs=$withval
5700 fi
5701else
5702 stage1_libs=$with_host_libstdcxx
5213506e
RW
5703fi
5704
00020c16
ILT
5705
5706
5707# Linker flags to use for stage2 and later builds.
5708
5213506e
RW
5709# Check whether --with-boot-ldflags was given.
5710if test "${with_boot_ldflags+set}" = set; then :
5711 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5712 poststage1_ldflags=
5713 else
5714 poststage1_ldflags=$withval
5715 fi
5716else
5717 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5718 poststage1_ldflags=-static-libstdc++
5719 else
5720 poststage1_ldflags=
5721 fi
5213506e
RW
5722fi
5723
00020c16
ILT
5724
5725
5726# Libraries to use for stage2 and later builds. This defaults to the
5727# argument passed to --with-host-libstdcxx.
5728
5213506e
RW
5729# Check whether --with-boot-libs was given.
5730if test "${with_boot_libs+set}" = set; then :
5731 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5732 poststage1_libs=
5733 else
5734 poststage1_libs=$withval
5735 fi
5736else
00020c16 5737 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5738fi
5739
00020c16
ILT
5740
5741
f8bf9252
SP
5742# Check for PPL
5743ppl_major_version=0
5744ppl_minor_version=10
00020c16 5745ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5746pplinc=
5747
5748
5213506e
RW
5749# Check whether --with-ppl was given.
5750if test "${with_ppl+set}" = set; then :
5751 withval=$with_ppl;
0b70eafd 5752else
ad0abd3c 5753 with_ppl=yes
5213506e 5754fi
f8bf9252 5755
f8bf9252 5756
5213506e
RW
5757# Check whether --with-ppl_include was given.
5758if test "${with_ppl_include+set}" = set; then :
5759 withval=$with_ppl_include;
5760fi
5761
f8bf9252 5762
5213506e
RW
5763# Check whether --with-ppl_lib was given.
5764if test "${with_ppl_lib+set}" = set; then :
5765 withval=$with_ppl_lib;
5766fi
f8bf9252 5767
f8bf9252 5768
53095c56
SP
5769case $with_ppl in
5770 no)
5771 ppllibs=
5772 ;;
ad0abd3c
RG
5773 yes)
5774 LIBS="$ppllibs $LIBS"
5775 ;;
53095c56 5776 *)
00020c16 5777 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56
SP
5778 pplinc="-I$with_ppl/include $pplinc"
5779 LIBS="$ppllibs $LIBS"
5780 ;;
5781esac
f8bf9252
SP
5782if test "x$with_ppl_include" != x; then
5783 pplinc="-I$with_ppl_include $pplinc"
5784fi
5785if test "x$with_ppl_lib" != x; then
00020c16 5786 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5787 LIBS="$ppllibs $LIBS"
5788fi
5789if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
00020c16 5790 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
f8bf9252
SP
5791 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5792 LIBS="$ppllibs $LIBS"
5793fi
5794
5213506e
RW
5795# Check whether --enable-ppl-version-check was given.
5796if test "${enable_ppl_version_check+set}" = set; then :
5797 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5798else
5799 ENABLE_PPL_CHECK=yes
5213506e
RW
5800fi
5801
f8bf9252 5802
ad0abd3c 5803if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
d789184e
SP
5804 saved_CFLAGS="$CFLAGS"
5805 CFLAGS="$CFLAGS $pplinc $gmpinc"
5213506e
RW
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5807$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5809/* end confdefs.h. */
5810#include "ppl_c.h"
5811int
5812main ()
5813{
5814
d789184e
SP
5815 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5816 choke me
5817 #endif
f8bf9252
SP
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
5213506e
RW
5823if ac_fn_c_try_compile "$LINENO"; then :
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5825$as_echo "yes" >&6; }
f8bf9252 5826else
5213506e
RW
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }; ppllibs= ; pplinc=
f8bf9252 5829fi
5213506e 5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5831 CFLAGS="$saved_CFLAGS"
5832fi
5833
5834# Flags needed for PPL
5835
5836
f8bf9252 5837
f8bf9252 5838
d789184e 5839# Check for CLOOG
23d9794a 5840clooglibs=" -lcloog "
d789184e
SP
5841clooginc=" -DCLOOG_PPL_BACKEND "
5842
5843
5213506e
RW
5844# Check whether --with-cloog was given.
5845if test "${with_cloog+set}" = set; then :
5846 withval=$with_cloog;
0b70eafd 5847else
ad0abd3c 5848 with_cloog=yes
5213506e
RW
5849fi
5850
d789184e 5851
5213506e
RW
5852# Check whether --with-cloog_include was given.
5853if test "${with_cloog_include+set}" = set; then :
5854 withval=$with_cloog_include;
5855fi
d789184e 5856
d789184e 5857
5213506e
RW
5858# Check whether --with-cloog_lib was given.
5859if test "${with_cloog_lib+set}" = set; then :
5860 withval=$with_cloog_lib;
5861fi
d789184e 5862
d789184e 5863
ad0abd3c
RG
5864if test "x$with_ppl" == "xno"; then
5865 with_cloog=no
5866fi
5867
53095c56
SP
5868case $with_cloog in
5869 no)
5870 clooglibs=
5871 clooginc=
5872 ;;
ad0abd3c
RG
5873 yes)
5874 LIBS="$clooglibs $LIBS"
5875 ;;
53095c56
SP
5876 *)
5877 clooglibs="-L$with_cloog/lib -lcloog"
5878 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5879 LIBS="$clooglibs $LIBS"
5880 ;;
5881esac
d789184e
SP
5882if test "x$with_cloog_include" != x; then
5883 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5884fi
5885if test "x$with_cloog_lib" != x; then
5886 clooglibs="-L$with_cloog_lib -lcloog"
5887 LIBS="$clooglibs $LIBS"
5888fi
5889if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5890 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5891 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5892 LIBS="$clooglibs $LIBS"
5893fi
5894
5213506e
RW
5895# Check whether --enable-cloog-version-check was given.
5896if test "${enable_cloog_version_check+set}" = set; then :
5897 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
d789184e
SP
5898else
5899 ENABLE_CLOOG_CHECK=yes
5213506e
RW
5900fi
5901
d789184e 5902
ad0abd3c 5903if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
d789184e
SP
5904 saved_CFLAGS="$CFLAGS"
5905 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
5213506e
RW
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5907$as_echo_n "checking for correct version of CLooG... " >&6; }
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5909/* end confdefs.h. */
5910#include "cloog/cloog.h"
5911int
5912main ()
5913{
5914
d789184e
SP
5915 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5916 choke me
5917 #endif
f8bf9252
SP
5918
5919 ;
5920 return 0;
5921}
5922_ACEOF
5213506e
RW
5923if ac_fn_c_try_compile "$LINENO"; then :
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5925$as_echo "yes" >&6; }
f8bf9252 5926else
5213506e
RW
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5928$as_echo "no" >&6; }; clooglibs= ; clooginc=
f8bf9252 5929fi
5213506e 5930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5931 CFLAGS="$saved_CFLAGS"
5932fi
f8bf9252
SP
5933
5934# Flags needed for CLOOG
5935
5936
5937
d7f09764
DN
5938# Check for LTO support.
5939# Check whether --enable-lto was given.
5940if test "${enable_lto+set}" = set; then :
5941 enableval=$enable_lto; enable_lto=$enableval
5942else
5943 enable_lto=yes; default_enable_lto=yes
5944fi
5945
5946
5947if test x"$enable_lto" = x"yes" ; then
5948 # Make sure that libelf.h and gelf.h are available.
5949
5950# Check whether --with-libelf was given.
5951if test "${with_libelf+set}" = set; then :
5952 withval=$with_libelf;
5953fi
5954
5955
5956
5957# Check whether --with-libelf_include was given.
5958if test "${with_libelf_include+set}" = set; then :
5959 withval=$with_libelf_include;
5960fi
5961
5962
5963
5964# Check whether --with-libelf_lib was given.
5965if test "${with_libelf_lib+set}" = set; then :
5966 withval=$with_libelf_lib;
5967fi
5968
5969
5970 case $with_libelf in
5971 "")
5972 libelflibs="-lelf"
5973 libelfinc="-I/usr/include/libelf"
5974 ;;
5975 *)
5976 libelflibs="-L$with_libelf/lib -lelf"
5977 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
5978 LIBS="$libelflibs $LIBS"
5979 ;;
5980 esac
5981
5982 if test "x$with_libelf_include" != x; then
5983 libelfinc="-I$with_libelf_include"
5984 fi
5985
5986 if test "x$with_libelf_lib" != x; then
5987 libelflibs="-L$with_libelf_lib -lelf"
5988 LIBS="$libelflibs $LIBS"
5989 fi
5990
5991 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
5992 && test -d ${srcdir}/libelf; then
5993 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/.libs -L$$r/$(HOST_SUBDIR)/libelf/_libs -lelf '
5994 libelfinc='-I$$r/$(HOST_SUBDIR)/libelf/include -I$$s/libelf/include'
5995 LIBS="$libelflibs $LIBS"
5996 fi
5997
5998 saved_CFLAGS="$CFLAGS"
5999 saved_CPPFLAGS="$CPPFLAGS"
6000 saved_LIBS="$LIBS"
6001
6002 CFLAGS="$CFLAGS $libelfinc"
6003 CPPFLAGS="$CPPFLAGS $libelfinc"
6004 LIBS="$LIBS $libelflibs"
6005
6006 ac_ext=c
6007ac_cpp='$CPP $CPPFLAGS'
6008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6012$as_echo_n "checking how to run the C preprocessor... " >&6; }
6013# On Suns, sometimes $CPP names a directory.
6014if test -n "$CPP" && test -d "$CPP"; then
6015 CPP=
6016fi
6017if test -z "$CPP"; then
6018 if test "${ac_cv_prog_CPP+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020else
6021 # Double quotes because CPP needs to be expanded
6022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6023 do
6024 ac_preproc_ok=false
6025for ac_c_preproc_warn_flag in '' yes
6026do
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034/* end confdefs.h. */
6035#ifdef __STDC__
6036# include <limits.h>
6037#else
6038# include <assert.h>
6039#endif
6040 Syntax error
6041_ACEOF
6042if ac_fn_c_try_cpp "$LINENO"; then :
6043
6044else
6045 # Broken: fails on valid input.
6046continue
6047fi
6048rm -f conftest.err conftest.$ac_ext
6049
6050 # OK, works on sane cases. Now check whether nonexistent headers
6051 # can be detected and how.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053/* end confdefs.h. */
6054#include <ac_nonexistent.h>
6055_ACEOF
6056if ac_fn_c_try_cpp "$LINENO"; then :
6057 # Broken: success on invalid input.
6058continue
6059else
6060 # Passes both tests.
6061ac_preproc_ok=:
6062break
6063fi
6064rm -f conftest.err conftest.$ac_ext
6065
6066done
6067# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6068rm -f conftest.err conftest.$ac_ext
6069if $ac_preproc_ok; then :
6070 break
6071fi
6072
6073 done
6074 ac_cv_prog_CPP=$CPP
6075
6076fi
6077 CPP=$ac_cv_prog_CPP
6078else
6079 ac_cv_prog_CPP=$CPP
6080fi
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6082$as_echo "$CPP" >&6; }
6083ac_preproc_ok=false
6084for ac_c_preproc_warn_flag in '' yes
6085do
6086 # Use a header file that comes with gcc, so configuring glibc
6087 # with a fresh cross-compiler works.
6088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6089 # <limits.h> exists even on freestanding compilers.
6090 # On the NeXT, cc -E runs the code through the compiler's parser,
6091 # not just through cpp. "Syntax error" is here to catch this case.
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093/* end confdefs.h. */
6094#ifdef __STDC__
6095# include <limits.h>
6096#else
6097# include <assert.h>
6098#endif
6099 Syntax error
6100_ACEOF
6101if ac_fn_c_try_cpp "$LINENO"; then :
6102
6103else
6104 # Broken: fails on valid input.
6105continue
6106fi
6107rm -f conftest.err conftest.$ac_ext
6108
6109 # OK, works on sane cases. Now check whether nonexistent headers
6110 # can be detected and how.
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h. */
6113#include <ac_nonexistent.h>
6114_ACEOF
6115if ac_fn_c_try_cpp "$LINENO"; then :
6116 # Broken: success on invalid input.
6117continue
6118else
6119 # Passes both tests.
6120ac_preproc_ok=:
6121break
6122fi
6123rm -f conftest.err conftest.$ac_ext
6124
6125done
6126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6127rm -f conftest.err conftest.$ac_ext
6128if $ac_preproc_ok; then :
6129
6130else
6131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6133as_fn_error "C preprocessor \"$CPP\" fails sanity check
6134See \`config.log' for more details." "$LINENO" 5; }
6135fi
6136
6137ac_ext=c
6138ac_cpp='$CPP $CPPFLAGS'
6139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142
6143
6144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6145$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6146if test "${ac_cv_path_GREP+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148else
6149 if test -z "$GREP"; then
6150 ac_path_GREP_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in grep ggrep; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6160 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6161# Check for GNU ac_path_GREP and select it if it is found.
6162 # Check for GNU $ac_path_GREP
6163case `"$ac_path_GREP" --version 2>&1` in
6164*GNU*)
6165 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6166*)
6167 ac_count=0
6168 $as_echo_n 0123456789 >"conftest.in"
6169 while :
6170 do
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo 'GREP' >> "conftest.nl"
6175 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_GREP="$ac_path_GREP"
6181 ac_path_GREP_max=$ac_count
6182 fi
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6185 done
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187esac
6188
6189 $ac_path_GREP_found && break 3
6190 done
6191 done
6192 done
6193IFS=$as_save_IFS
6194 if test -z "$ac_cv_path_GREP"; then
6195 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6196 fi
6197else
6198 ac_cv_path_GREP=$GREP
6199fi
6200
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6203$as_echo "$ac_cv_path_GREP" >&6; }
6204 GREP="$ac_cv_path_GREP"
6205
6206
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6208$as_echo_n "checking for egrep... " >&6; }
6209if test "${ac_cv_path_EGREP+set}" = set; then :
6210 $as_echo_n "(cached) " >&6
6211else
6212 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6213 then ac_cv_path_EGREP="$GREP -E"
6214 else
6215 if test -z "$EGREP"; then
6216 ac_path_EGREP_found=false
6217 # Loop through the user's path and test for each of PROGNAME-LIST
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6220do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_prog in egrep; do
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6226 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6227# Check for GNU ac_path_EGREP and select it if it is found.
6228 # Check for GNU $ac_path_EGREP
6229case `"$ac_path_EGREP" --version 2>&1` in
6230*GNU*)
6231 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6232*)
6233 ac_count=0
6234 $as_echo_n 0123456789 >"conftest.in"
6235 while :
6236 do
6237 cat "conftest.in" "conftest.in" >"conftest.tmp"
6238 mv "conftest.tmp" "conftest.in"
6239 cp "conftest.in" "conftest.nl"
6240 $as_echo 'EGREP' >> "conftest.nl"
6241 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6243 as_fn_arith $ac_count + 1 && ac_count=$as_val
6244 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6245 # Best one so far, save it but keep looking for a better one
6246 ac_cv_path_EGREP="$ac_path_EGREP"
6247 ac_path_EGREP_max=$ac_count
6248 fi
6249 # 10*(2^10) chars as input seems more than enough
6250 test $ac_count -gt 10 && break
6251 done
6252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6253esac
6254
6255 $ac_path_EGREP_found && break 3
6256 done
6257 done
6258 done
6259IFS=$as_save_IFS
6260 if test -z "$ac_cv_path_EGREP"; then
6261 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6262 fi
6263else
6264 ac_cv_path_EGREP=$EGREP
6265fi
6266
6267 fi
6268fi
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6270$as_echo "$ac_cv_path_EGREP" >&6; }
6271 EGREP="$ac_cv_path_EGREP"
6272
6273
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6275$as_echo_n "checking for ANSI C header files... " >&6; }
6276if test "${ac_cv_header_stdc+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6278else
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280/* end confdefs.h. */
6281#include <stdlib.h>
6282#include <stdarg.h>
6283#include <string.h>
6284#include <float.h>
6285
6286int
6287main ()
6288{
6289
6290 ;
6291 return 0;
6292}
6293_ACEOF
6294if ac_fn_c_try_compile "$LINENO"; then :
6295 ac_cv_header_stdc=yes
6296else
6297 ac_cv_header_stdc=no
6298fi
6299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300
6301if test $ac_cv_header_stdc = yes; then
6302 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304/* end confdefs.h. */
6305#include <string.h>
6306
6307_ACEOF
6308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6309 $EGREP "memchr" >/dev/null 2>&1; then :
6310
6311else
6312 ac_cv_header_stdc=no
6313fi
6314rm -f conftest*
6315
6316fi
6317
6318if test $ac_cv_header_stdc = yes; then
6319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321/* end confdefs.h. */
6322#include <stdlib.h>
6323
6324_ACEOF
6325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6326 $EGREP "free" >/dev/null 2>&1; then :
6327
6328else
6329 ac_cv_header_stdc=no
6330fi
6331rm -f conftest*
6332
6333fi
6334
6335if test $ac_cv_header_stdc = yes; then
6336 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6337 if test "$cross_compiling" = yes; then :
6338 :
6339else
6340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6341/* end confdefs.h. */
6342#include <ctype.h>
6343#include <stdlib.h>
6344#if ((' ' & 0x0FF) == 0x020)
6345# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6346# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6347#else
6348# define ISLOWER(c) \
6349 (('a' <= (c) && (c) <= 'i') \
6350 || ('j' <= (c) && (c) <= 'r') \
6351 || ('s' <= (c) && (c) <= 'z'))
6352# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6353#endif
6354
6355#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6356int
6357main ()
6358{
6359 int i;
6360 for (i = 0; i < 256; i++)
6361 if (XOR (islower (i), ISLOWER (i))
6362 || toupper (i) != TOUPPER (i))
6363 return 2;
6364 return 0;
6365}
6366_ACEOF
6367if ac_fn_c_try_run "$LINENO"; then :
6368
6369else
6370 ac_cv_header_stdc=no
6371fi
6372rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6373 conftest.$ac_objext conftest.beam conftest.$ac_ext
6374fi
6375
6376fi
6377fi
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6379$as_echo "$ac_cv_header_stdc" >&6; }
6380if test $ac_cv_header_stdc = yes; then
6381
6382$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6383
6384fi
6385
6386# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6387for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6388 inttypes.h stdint.h unistd.h
6389do :
6390 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6391ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6392"
6393eval as_val=\$$as_ac_Header
6394 if test "x$as_val" = x""yes; then :
6395 cat >>confdefs.h <<_ACEOF
6396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6397_ACEOF
6398
6399fi
6400
6401done
6402
6403
6404for ac_header in libelf.h
6405do :
6406 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6407if test "x$ac_cv_header_libelf_h" = x""yes; then :
6408 cat >>confdefs.h <<_ACEOF
6409#define HAVE_LIBELF_H 1
6410_ACEOF
6411 have_libelf_h=yes
6412fi
6413
6414done
6415
6416 for ac_header in gelf.h
6417do :
6418 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6419if test "x$ac_cv_header_gelf_h" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421#define HAVE_GELF_H 1
6422_ACEOF
6423 have_gelf_h=yes
6424fi
6425
6426done
6427
6428
6429 for ac_header in libelf/libelf.h
6430do :
6431 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6432if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6433 cat >>confdefs.h <<_ACEOF
6434#define HAVE_LIBELF_LIBELF_H 1
6435_ACEOF
6436 have_libelf_libelf_h=yes
6437fi
6438
6439done
6440
6441 for ac_header in libelf/gelf.h
6442do :
6443 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6444if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6445 cat >>confdefs.h <<_ACEOF
6446#define HAVE_LIBELF_GELF_H 1
6447_ACEOF
6448 have_libelf_gelf_h=yes
6449fi
6450
6451done
6452
6453
6454 # If we couldn't find libelf.h and the user forced it, emit an error.
6455 if test x"$have_libelf_h" != x"yes" \
6456 && test x"$have_libelf_libelf_h" != x"yes" ; then
6457 if test x"$default_enable_lto" != x"yes" ; then
6458 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6459 else
6460 enable_lto=no
6461 libelflibs=
6462 libelfinc=
6463 fi
6464 fi
6465
6466 # If we couldn't find gelf.h and the user forced it, emit an error.
6467 if test x"$have_gelf_h" != x"yes" \
6468 && test x"$have_libelf_gelf_h" != x"yes" ; then
6469 if test x"$default_enable_lto" != x"yes" ; then
6470 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6471 else
6472 enable_lto=no
6473 libelflibs=
6474 libelfinc=
6475 fi
6476 fi
6477
6478 # Check that the detected libelf has the functions we need. We cannot
6479 # rely on just detecting the headers since they do not include
6480 # versioning information. Add functions, if needed.
6481 if test x"$enable_lto" = x"yes" ; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6483$as_echo_n "checking for the correct version of libelf... " >&6; }
6484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485/* end confdefs.h. */
6486#include <libelf.h>
6487int
6488main ()
6489{
6490
6491 elf_errmsg (0);
6492 elf_getscn (0, 0);
6493 elf_nextscn (0, 0);
6494 elf_strptr (0, 0, 0);
6495 elf_getident (0, 0);
6496 elf_getshdrstrndx (0, 0);
6497 elf_begin (0, 0, 0);
6498 elf_ndxscn (0);
6499 elf_end (0);
6500
6501 ;
6502 return 0;
6503}
6504_ACEOF
6505if ac_fn_c_try_link "$LINENO"; then :
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6507$as_echo "yes" >&6; };
6508else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6511
6512fi
6513rm -f core conftest.err conftest.$ac_objext \
6514 conftest$ac_exeext conftest.$ac_ext
6515
6516 # If we couldn't enable LTO and the user forced it, emit an error.
6517 if test x"$enable_lto" = x"no" \
6518 && test x"$default_enable_lto" != x"yes" ; then
6519 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6520Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6521to specify its location." "$LINENO" 5
6522 fi
6523 fi
6524
6525 CFLAGS="$saved_CFLAGS"
6526 CPPFLAGS="$saved_CPPFLAGS"
6527 LIBS="$saved_LIBS"
6528
6529 # Flags needed for libelf.
6530
6531
6532fi
6533
f8bf9252 6534
1e0f07d3 6535# By default, C is the only stage 1 language.
e1888513 6536stage1_languages=,c,
2805b53a 6537
00020c16
ILT
6538# Target libraries that we bootstrap.
6539bootstrap_target_libs=,target-libgcc,
6540
55ffb5ed
NN
6541# Figure out what language subdirectories are present.
6542# Look if the user specified --enable-languages="..."; if not, use
6543# the environment variable $LANGUAGES if defined. $LANGUAGES might
6544# go away some day.
6545# NB: embedded tabs in this IF block -- do not untabify
6546if test -d ${srcdir}/gcc; then
6547 if test x"${enable_languages+set}" != xset; then
6548 if test x"${LANGUAGES+set}" = xset; then
6549 enable_languages="${LANGUAGES}"
6550 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6551 else
6552 enable_languages=all
6553 fi
6554 else
6555 if test x"${enable_languages}" = x ||
6556 test x"${enable_languages}" = xyes;
6557 then
6558 echo configure.in: --enable-languages needs at least one language argument 1>&2
6559 exit 1
6560 fi
6561 fi
6562 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6563
7f26dfa3
FXC
6564 # 'f95' is the old name for the 'fortran' language. We issue a warning
6565 # and make the substitution.
6566 case ,${enable_languages}, in
6567 *,f95,*)
6568 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6569 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6570 ;;
6571 esac
6572
55ffb5ed
NN
6573 # First scan to see if an enabled language requires some other language.
6574 # We assume that a given config-lang.in will list all the language
6575 # front ends it requires, even if some are required indirectly.
6576 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6577 case ${lang_frag} in
6578 ..) ;;
6579 # The odd quoting in the next line works around
6580 # an apparent bug in bash 1.12 on linux.
6581 ${srcdir}/gcc/[*]/config-lang.in) ;;
6582 *)
6583 # From the config-lang.in, get $language, $lang_requires
6584 language=
6585 lang_requires=
6586 . ${lang_frag}
6587 for other in ${lang_requires} ; do
6588 case ,${enable_languages}, in
6589 *,$other,*) ;;
6590 *,all,*) ;;
6591 *,$language,*)
6592 echo " \`$other' language required by \`$language'; enabling" 1>&2
6593 enable_languages="${enable_languages},${other}"
6594 ;;
6595 esac
6596 done
6597 ;;
6598 esac
6599 done
6600
e1888513 6601 new_enable_languages=,c,
d7f09764
DN
6602
6603 # If LTO is enabled, add the LTO front end.
6604 extra_host_libiberty_configure_flags=
6605 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6606 case ,${enable_languages}, in
6607 *,lto,*) ;;
6608 *) enable_languages="${enable_languages},lto" ;;
6609 esac
d7f09764
DN
6610 if test "${ENABLE_GOLD}" = "yes" ; then
6611 configdirs="$configdirs lto-plugin"
6612 extra_host_libiberty_configure_flags=--enable-shared
6613 fi
6614 fi
6615
6616
55ffb5ed 6617 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6618 potential_languages=,c,
55ffb5ed
NN
6619
6620 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6621 case ${lang_frag} in
6622 ..) ;;
6623 # The odd quoting in the next line works around
6624 # an apparent bug in bash 1.12 on linux.
6625 ${srcdir}/gcc/[*]/config-lang.in) ;;
6626 *)
1c710c3c 6627 # From the config-lang.in, get $language, $target_libs,
2805b53a 6628 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6629 language=
6630 target_libs=
6631 lang_dirs=
1546bb64 6632 subdir_requires=
e1888513
PB
6633 boot_language=no
6634 build_by_default=yes
55ffb5ed 6635 . ${lang_frag}
e1888513
PB
6636 if test x${language} = x; then
6637 echo "${lang_frag} doesn't set \$language." 1>&2
6638 exit 1
6639 fi
6640
00020c16
ILT
6641 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6642 boot_language=yes
6643 fi
6644
e1888513
PB
6645 case ,${enable_languages}, in
6646 *,${language},*)
55ffb5ed
NN
6647 # Language was explicitly selected; include it.
6648 add_this_lang=yes
6649 ;;
e1888513
PB
6650 *,all,*)
6651 # 'all' was selected, select it if it is a default language
6652 add_this_lang=${build_by_default}
55ffb5ed
NN
6653 ;;
6654 *)
6655 add_this_lang=no
6656 ;;
6657 esac
6de9cd9a 6658
1546bb64 6659 # Disable languages that need other directories if these aren't available.
95695ad3 6660 for i in $subdir_requires; do
b6348cb3 6661 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6662 case ,${enable_languages}, in
6663 *,${language},*)
6664 # Specifically requested language; tell them.
5213506e 6665 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6666 ;;
6667 *)
6668 # Silently disable.
e1888513 6669 add_this_lang=unsupported
1546bb64
PB
6670 ;;
6671 esac
6672 done
6673
e1888513
PB
6674 # Disable Ada if no preexisting GNAT is available.
6675 case ,${enable_languages},:${language}:${have_gnat} in
6676 *,${language},*:ada:no)
6677 # Specifically requested language; tell them.
5213506e 6678 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6679 ;;
6680 *:ada:no)
6681 # Silently disable.
6682 add_this_lang=unsupported
6683 ;;
6684 esac
6685
4fab7234
HPN
6686 # Disable a language that is unsupported by the target.
6687 case " $unsupported_languages " in
6688 *" $language "*)
e1888513 6689 add_this_lang=unsupported
4fab7234
HPN
6690 ;;
6691 esac
6692
6de9cd9a 6693 case $add_this_lang in
e1888513 6694 unsupported)
55ffb5ed 6695 # Remove language-dependent dirs.
2805b53a
NN
6696 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6697 ;;
e1888513
PB
6698 no)
6699 # Remove language-dependent dirs; still show language as supported.
6700 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6701 potential_languages="${potential_languages}${language},"
6702 ;;
6703 yes)
6704 new_enable_languages="${new_enable_languages}${language},"
6705 potential_languages="${potential_languages}${language},"
2805b53a 6706 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
ab9dcd0c
RW
6707 case "${boot_language}:,$enable_stage1_languages," in
6708 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6709 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6710 case ",$stage1_languages," in
6711 *,$language,* | ,yes, | ,all,) ;;
6712 *) stage1_languages="${stage1_languages}${language}," ;;
6713 esac
00020c16
ILT
6714 # We need to bootstrap any supporting libraries.
6715 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6716 ;;
6717 esac
6718 ;;
55ffb5ed
NN
6719 esac
6720 ;;
6721 esac
6722 done
6723
5213506e
RW
6724 # Check whether --enable-stage1-languages was given.
6725if test "${enable_stage1_languages+set}" = set; then :
6726 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6727 ,no,|,,)
6728 # Set it to something that will have no effect in the loop below
6729 enable_stage1_languages=c ;;
6730 ,yes,)
6731 enable_stage1_languages=`echo $new_enable_languages | \
6732 sed -e "s/^,//" -e "s/,$//" ` ;;
6733 *,all,*)
6734 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6735 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6736 esac
6737
6738 # Add "good" languages from enable_stage1_languages to stage1_languages,
6739 # while "bad" languages go in missing_languages. Leave no duplicates.
6740 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6741 case $potential_languages in
6742 *,$i,*)
6743 case $stage1_languages in
6744 *,$i,*) ;;
6745 *) stage1_languages="$stage1_languages$i," ;;
6746 esac ;;
6747 *)
6748 case $missing_languages in
6749 *,$i,*) ;;
6750 *) missing_languages="$missing_languages$i," ;;
6751 esac ;;
6752 esac
6753 done
5213506e
RW
6754fi
6755
e1888513
PB
6756
6757 # Remove leading/trailing commas that were added for simplicity
6758 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6759 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6760 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6761 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6762
55ffb5ed 6763 if test "x$missing_languages" != x; then
5213506e 6764 as_fn_error "
0cf085e4 6765The following requested languages could not be built: ${missing_languages}
5213506e 6766Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6767 fi
55ffb5ed
NN
6768 if test "x$new_enable_languages" != "x$enable_languages"; then
6769 echo The following languages will be built: ${new_enable_languages}
e1888513 6770 enable_languages="$new_enable_languages"
55ffb5ed 6771 fi
e1888513 6772
1c710c3c 6773
b2eaac4a 6774 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6775fi
6776
27079765
AH
6777# Handle --disable-<component> generically.
6778for dir in $configdirs $build_configdirs $target_configdirs ; do
6779 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6780 varname=`echo $dirname | sed -e s/+/_/g`
6781 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6782 noconfigdirs="$noconfigdirs $dir"
6783 fi
6784done
6785
7cd0cf9c 6786# Check for Boehm's garbage collector
5213506e
RW
6787# Check whether --enable-objc-gc was given.
6788if test "${enable_objc_gc+set}" = set; then :
6789 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6790 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6791 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6792 ;;
6793esac
5213506e
RW
6794fi
6795
7cd0cf9c
DA
6796
6797# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6798case ,${enable_languages},:${enable_objc_gc} in
6799 *,objc,*:yes)
7cd0cf9c
DA
6800 # Keep target-boehm-gc if requested for Objective-C.
6801 ;;
7cd0cf9c 6802 *)
2a79fd67
DA
6803 # Otherwise remove target-boehm-gc depending on target-libjava.
6804 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6805 noconfigdirs="$noconfigdirs target-boehm-gc"
6806 fi
7cd0cf9c
DA
6807 ;;
6808esac
6809
ee6a22df
L
6810# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6811# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6812# If we have the source for $noconfigdirs entries, add them to $notsupp.
6813
6814notsupp=""
6815for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6816 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6817 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6818 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6819 if test -r $srcdir/$dirname/configure ; then
6820 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6821 true
6822 else
6823 notsupp="$notsupp $dir"
6824 fi
6825 fi
6826 fi
ee6a22df
L
6827 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6828 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6829 if test -r $srcdir/$dirname/configure ; then
6830 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6831 true
6832 else
6833 notsupp="$notsupp $dir"
6834 fi
6835 fi
6836 fi
55ffb5ed
NN
6837 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6838 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6839 if test -r $srcdir/$dirname/configure ; then
6840 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6841 true
6842 else
6843 notsupp="$notsupp $dir"
6844 fi
6845 fi
6846 fi
6847done
6848
6849# Sometimes the tools are distributed with libiberty but with no other
6850# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6851# Don't let libgcc imply libiberty either.
55ffb5ed 6852if test -n "${target_configdirs}" ; then
54fdc474 6853 libgcc=
55ffb5ed
NN
6854 others=
6855 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6856 if test "$i" = "libgcc"; then
6857 libgcc=target-libgcc
6858 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6859 if test -r $srcdir/$i/configure ; then
6860 others=yes;
6861 break;
6862 fi
6863 fi
6864 done
6865 if test -z "${others}" ; then
54fdc474 6866 target_configdirs=$libgcc
55ffb5ed
NN
6867 fi
6868fi
6869
6870# Quietly strip out all directories which aren't configurable in this tree.
6871# This relies on all configurable subdirectories being autoconfiscated, which
6872# is now the case.
23f6b2f9
PB
6873build_configdirs_all="$build_configdirs"
6874build_configdirs=
6875for i in ${build_configdirs_all} ; do
1c710c3c 6876 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6877 if test -f ${srcdir}/$j/configure ; then
6878 build_configdirs="${build_configdirs} $i"
6879 fi
6880done
6881
55ffb5ed
NN
6882configdirs_all="$configdirs"
6883configdirs=
6884for i in ${configdirs_all} ; do
6885 if test -f ${srcdir}/$i/configure ; then
6886 configdirs="${configdirs} $i"
6887 fi
6888done
23f6b2f9 6889
55ffb5ed
NN
6890target_configdirs_all="$target_configdirs"
6891target_configdirs=
6892for i in ${target_configdirs_all} ; do
1c710c3c 6893 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6894 if test -f ${srcdir}/$j/configure ; then
6895 target_configdirs="${target_configdirs} $i"
6896 fi
6897done
6898
6899# Produce a warning message for the subdirs we can't configure.
6900# This isn't especially interesting in the Cygnus tree, but in the individual
6901# FSF releases, it's important to let people know when their machine isn't
6902# supported by the one or two programs in a package.
6903
6904if test -n "${notsupp}" && test -z "${norecursion}" ; then
6905 # If $appdirs is non-empty, at least one of those directories must still
6906 # be configured, or we error out. (E.g., if the gas release supports a
6907 # specified target in some subdirs but not the gas subdir, we shouldn't
6908 # pretend that all is well.)
6909 if test -n "$appdirs" ; then
6910 for dir in $appdirs ; do
6911 if test -r $dir/Makefile.in ; then
6912 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6913 appdirs=""
6914 break
6915 fi
23f6b2f9 6916 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6917 appdirs=""
6918 break
6919 fi
6920 fi
6921 done
6922 if test -n "$appdirs" ; then
6923 echo "*** This configuration is not supported by this package." 1>&2
6924 exit 1
6925 fi
6926 fi
6927 # Okay, some application will build, or we don't care to check. Still
6928 # notify of subdirs not getting built.
6929 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6930 echo " ${notsupp}" 1>&2
6931 echo " (Any other directories should still work fine.)" 1>&2
6932fi
6933
6934case "$host" in
6935 *msdosdjgpp*)
6936 enable_gdbtk=no ;;
6937esac
6938
c3a86da9
DJ
6939# To find our prefix, in gcc_cv_tool_prefix.
6940
6941# The user is always right.
6942if test "${PATH_SEPARATOR+set}" != set; then
6943 echo "#! /bin/sh" >conf$$.sh
6944 echo "exit 0" >>conf$$.sh
6945 chmod +x conf$$.sh
6946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6947 PATH_SEPARATOR=';'
6948 else
6949 PATH_SEPARATOR=:
6950 fi
6951 rm -f conf$$.sh
6952fi
6953
6954
6955
6956if test "x$exec_prefix" = xNONE; then
6957 if test "x$prefix" = xNONE; then
6958 gcc_cv_tool_prefix=$ac_default_prefix
6959 else
6960 gcc_cv_tool_prefix=$prefix
6961 fi
6962else
6963 gcc_cv_tool_prefix=$exec_prefix
6964fi
6965
6966# If there is no compiler in the tree, use the PATH only. In any
6967# case, if there is no compiler in the tree nobody should use
6968# AS_FOR_TARGET and LD_FOR_TARGET.
6969if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6970 gcc_version=`cat $srcdir/gcc/BASE-VER`
6971 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6972 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6973 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6974 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6975 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6976 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6977else
6978 gcc_cv_tool_dirs=
6979fi
6980
6981if test x$build = x$target && test -n "$md_exec_prefix"; then
6982 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6983fi
6984
6985
6986
55ffb5ed
NN
6987copy_dirs=
6988
1c710c3c 6989
5213506e
RW
6990# Check whether --with-build-sysroot was given.
6991if test "${with_build_sysroot+set}" = set; then :
6992 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6993 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6994 fi
6995else
6996 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6997fi
526635cb
MM
6998
6999
c8aea42c 7000
5213506e
RW
7001
7002# Check whether --with-debug-prefix-map was given.
7003if test "${with_debug_prefix_map+set}" = set; then :
7004 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
7005 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7006 for debug_map in $withval; do
7007 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7008 done
7009 fi
7010else
7011 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
7012fi
7013
c8aea42c
PB
7014
7015
1c8bd6a3
PB
7016# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7017# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7018# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7019# We want to ensure that TARGET libraries (which we know are built with
7020# gcc) are built with "-O2 -g", so include those options when setting
7021# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7022if test "x$CFLAGS_FOR_TARGET" = x; then
7023 CFLAGS_FOR_TARGET=$CFLAGS
7024 case " $CFLAGS " in
7025 *" -O2 "*) ;;
7026 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7027 esac
7028 case " $CFLAGS " in
7029 *" -g "* | *" -g3 "*) ;;
7030 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7031 esac
7032fi
7033
7034
7035if test "x$CXXFLAGS_FOR_TARGET" = x; then
7036 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7037 case " $CXXFLAGS " in
7038 *" -O2 "*) ;;
7039 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7040 esac
7041 case " $CXXFLAGS " in
7042 *" -g "* | *" -g3 "*) ;;
7043 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7044 esac
7045fi
7046
7047
55ffb5ed
NN
7048# Handle --with-headers=XXX. If the value is not "yes", the contents of
7049# the named directory are copied to $(tooldir)/sys-include.
7050if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7051 if test x${is_cross_compiler} = xno ; then
7052 echo 1>&2 '***' --with-headers is only supported when cross compiling
7053 exit 1
7054 fi
7055 if test x"${with_headers}" != xyes ; then
c3a86da9 7056 x=${gcc_cv_tool_prefix}
1c710c3c 7057 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
7058 fi
7059fi
7060
7061# Handle --with-libs=XXX. If the value is not "yes", the contents of
7062# the name directories are copied to $(tooldir)/lib. Multiple directories
7063# are permitted.
7064if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7065 if test x${is_cross_compiler} = xno ; then
7066 echo 1>&2 '***' --with-libs is only supported when cross compiling
7067 exit 1
7068 fi
7069 if test x"${with_libs}" != xyes ; then
7070 # Copy the libraries in reverse order, so that files in the first named
7071 # library override files in subsequent libraries.
c3a86da9 7072 x=${gcc_cv_tool_prefix}
55ffb5ed 7073 for l in ${with_libs}; do
1c710c3c 7074 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
7075 done
7076 fi
7077fi
7078
d7f09764 7079# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
7080#
7081# This is done by determining whether or not the appropriate directory
7082# is available, and by checking whether or not specific configurations
7083# have requested that this magic not happen.
1c710c3c
DJ
7084#
7085# The command line options always override the explicit settings in
e8b05380
PB
7086# configure.in, and the settings in configure.in override this magic.
7087#
1c710c3c 7088# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 7089# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
7090# --without-gnu-ld options for the configure script. Similarly, if
7091# the default is to use the included zlib and you don't want to do that,
7092# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
7093
7094if test x${use_gnu_as} = x &&
7095 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7096 with_gnu_as=yes
7097 extra_host_args="$extra_host_args --with-gnu-as"
7098fi
7099
7100if test x${use_gnu_ld} = x &&
5afab7ad 7101 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7102 with_gnu_ld=yes
7103 extra_host_args="$extra_host_args --with-gnu-ld"
7104fi
7105
d7f09764
DN
7106if test x${use_included_zlib} = x &&
7107 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7108 :
7109else
7110 with_system_zlib=yes
7111 extra_host_args="$extra_host_args --with-system-zlib"
7112fi
7113
e8b05380
PB
7114# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7115# can detect this case.
7116
7117if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7118 with_newlib=yes
7119 extra_host_args="$extra_host_args --with-newlib"
7120fi
7121
55ffb5ed
NN
7122# Handle ${copy_dirs}
7123set fnord ${copy_dirs}
7124shift
7125while test $# != 0 ; do
7126 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7127 :
7128 else
7129 echo Copying $1 to $2
7130
7131 # Use the install script to create the directory and all required
7132 # parent directories.
7133 if test -d $2 ; then
7134 :
7135 else
7136 echo >config.temp
7137 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7138 fi
7139
7140 # Copy the directory, assuming we have tar.
7141 # FIXME: Should we use B in the second tar? Not all systems support it.
7142 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7143
7144 # It is the responsibility of the user to correctly adjust all
7145 # symlinks. If somebody can figure out how to handle them correctly
7146 # here, feel free to add the code.
7147
7148 echo $1 > $2/COPIED
7149 fi
7150 shift; shift
7151done
7152
e8b05380
PB
7153# Determine a target-dependent exec_prefix that the installed
7154# gcc will search in. Keep this list sorted by triplet, with
7155# the *-*-osname triplets last.
7156md_exec_prefix=
7157case "${target}" in
7158 alpha*-*-*vms*)
7159 md_exec_prefix=/gnu/lib/gcc-lib
7160 ;;
30b74385 7161 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7162 md_exec_prefix=/dev/env/DJDIR/bin
7163 ;;
30b74385 7164 i[34567]86-*-sco3.2v5*)
e8b05380
PB
7165 if test $with_gnu_as = yes; then
7166 md_exec_prefix=/usr/gnu/bin
7167 else
7168 md_exec_prefix=/usr/ccs/bin/elf
7169 fi
7170 ;;
7171
7172 mn10300-*-* | \
7173 powerpc-*-chorusos* | \
7174 powerpc*-*-eabi* | \
7175 powerpc*-*-sysv* | \
7176 powerpc*-*-kaos* | \
7177 s390x-ibm-tpf*)
7178 md_exec_prefix=/usr/ccs/bin
7179 ;;
7180 sparc64-*-elf*)
7181 ;;
7182 v850*-*-*)
7183 md_exec_prefix=/usr/ccs/bin
7184 ;;
aa12a573 7185 xtensa*-*-elf*)
e8b05380
PB
7186 ;;
7187
7188 *-*-beos* | \
7189 *-*-elf* | \
7190 *-*-hpux* | \
7191 *-*-netware* | \
7192 *-*-nto-qnx* | \
7193 *-*-rtems* | \
7194 *-*-solaris2* | \
30b74385 7195 *-*-sysv[45]* | \
e8b05380
PB
7196 *-*-vxworks* | \
7197 *-wrs-windiss)
7198 md_exec_prefix=/usr/ccs/bin
7199 ;;
7200esac
7201
671aa708
NN
7202extra_arflags_for_target=
7203extra_nmflags_for_target=
7204extra_ranlibflags_for_target=
7205target_makefile_frag=/dev/null
7206case "${target}" in
3e19841a
PB
7207 mep*-*-*)
7208 target_makefile_frag="config/mt-mep"
7209 ;;
58e24147
AM
7210 spu-*-*)
7211 target_makefile_frag="config/mt-spu"
7212 ;;
4bf6c438
RS
7213 mips*-sde-elf*)
7214 target_makefile_frag="config/mt-sde"
7215 ;;
1ec3b87b
RS
7216 mipsisa*-*-elfoabi*)
7217 target_makefile_frag="config/mt-mips-elfoabi"
7218 ;;
08d0963a
RS
7219 mips*-*-*linux* | mips*-*-gnu*)
7220 target_makefile_frag="config/mt-mips-gnu"
7221 ;;
61fec9ff 7222 *-*-netware*)
671aa708
NN
7223 target_makefile_frag="config/mt-netware"
7224 ;;
416ac4d4 7225 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7226 target_makefile_frag="config/mt-gnu"
671aa708
NN
7227 ;;
7228 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7229 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7230 # commands to handle both 32-bit and 64-bit objects. These flags are
7231 # harmless if we're using GNU nm or ar.
7232 extra_arflags_for_target=" -X32_64"
7233 extra_nmflags_for_target=" -B -X32_64"
7234 ;;
7235 *-*-darwin*)
7236 # ranlib from Darwin requires the -c flag to look at common symbols.
7237 extra_ranlibflags_for_target=" -c"
7238 ;;
7239 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7240 target_makefile_frag="config/mt-wince"
7241 ;;
7242esac
7243
7244alphaieee_frag=/dev/null
7245case $target in
7246 alpha*-*-*)
7247 # This just makes sure to use the -mieee option to build target libs.
7248 # This should probably be set individually by each library.
7249 alphaieee_frag="config/mt-alphaieee"
7250 ;;
7251esac
7252
7253# If --enable-target-optspace always use -Os instead of -O2 to build
7254# the target libraries, similarly if it is not specified, use -Os
7255# on selected platforms.
7256ospace_frag=/dev/null
7257case "${enable_target_optspace}:${target}" in
7258 yes:*)
7259 ospace_frag="config/mt-ospace"
7260 ;;
7261 :d30v-*)
7262 ospace_frag="config/mt-d30v"
7263 ;;
7264 :m32r-* | :d10v-* | :fr30-*)
7265 ospace_frag="config/mt-ospace"
7266 ;;
7267 no:* | :*)
7268 ;;
7269 *)
7270 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7271 ;;
7272esac
7273
671aa708
NN
7274# Default to using --with-stabs for certain targets.
7275if test x${with_stabs} = x ; then
7276 case "${target}" in
89a95129 7277 mips*-*-irix[56]*)
671aa708
NN
7278 ;;
7279 mips*-*-* | alpha*-*-osf*)
7280 with_stabs=yes;
7281 extra_host_args="${extra_host_args} --with-stabs"
7282 ;;
7283 esac
7284fi
7285
7286# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7287# them automatically.
7288case "${host}" in
1c710c3c 7289 hppa*64*-*-hpux11*)
671aa708
NN
7290 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7291 ;;
7292esac
7293
671aa708
NN
7294# Some systems (e.g., one of the i386-aix systems the gas testers are
7295# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7296tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7297build_tooldir=${tooldir}
7298
671aa708
NN
7299# Create a .gdbinit file which runs the one in srcdir
7300# and tells GDB to look there for source files.
7301
7302if test -r ${srcdir}/.gdbinit ; then
7303 case ${srcdir} in
7304 .) ;;
7305 *) cat > ./.gdbinit <<EOF
7306# ${NO_EDIT}
7307dir ${srcdir}
7308dir .
7309source ${srcdir}/.gdbinit
7310EOF
7311 ;;
7312 esac
7313fi
7314
671aa708
NN
7315# Make sure that the compiler is able to generate an executable. If it
7316# can't, we are probably in trouble. We don't care whether we can run the
7317# executable--we might be using a cross compiler--we only care whether it
7318# can be created. At this point the main configure script has set CC.
7319we_are_ok=no
7320echo "int main () { return 0; }" > conftest.c
7321${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7322if test $? = 0 ; then
7323 if test -s conftest || test -s conftest.exe ; then
7324 we_are_ok=yes
7325 fi
1c710c3c 7326fi
671aa708
NN
7327case $we_are_ok in
7328 no)
7329 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7330 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7331 rm -f conftest*
7332 exit 1
7333 ;;
7334esac
7335rm -f conftest*
7336
7337# The Solaris /usr/ucb/cc compiler does not appear to work.
7338case "${host}" in
7339 sparc-sun-solaris2*)
7340 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7341 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7342 could_use=
7343 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7344 if test -d /opt/cygnus/bin ; then
7345 if test "$could_use" = "" ; then
7346 could_use="/opt/cygnus/bin"
7347 else
7348 could_use="$could_use or /opt/cygnus/bin"
7349 fi
7350 fi
7351 if test "$could_use" = "" ; then
7352 echo "Warning: compilation may fail because you're using"
7353 echo "/usr/ucb/cc. You should change your PATH or CC "
7354 echo "variable and rerun configure."
7355 else
7356 echo "Warning: compilation may fail because you're using"
7357 echo "/usr/ucb/cc, when you should use the C compiler from"
7358 echo "$could_use. You should change your"
7359 echo "PATH or CC variable and rerun configure."
7360 fi
7361 fi
7362 ;;
7363esac
7364
d89f0ad6 7365# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7366case "${host}" in
7367 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 7368 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7369 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7370 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7371esac
7372
d89f0ad6
AL
7373# On systems where the dynamic library environment variable is PATH,
7374# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7375# built executables to PATH.
7376if test "$RPATH_ENVVAR" = PATH; then
7377 GCC_SHLIB_SUBDIR=/shlib
7378else
7379 GCC_SHLIB_SUBDIR=
7380fi
7381
671aa708
NN
7382# Record target_configdirs and the configure arguments for target and
7383# build configuration in Makefile.
7384target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7385build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7386
671aa708
NN
7387# Determine whether gdb needs tk/tcl or not.
7388# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7389# and in that case we want gdb to be built without tk. Ugh!
7390# In fact I believe gdb is the *only* package directly dependent on tk,
7391# so we should be able to put the 'maybe's in unconditionally and
7392# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7393# 100% sure that that's safe though.
e914a571 7394
b4f96efe 7395gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7396case "$enable_gdbtk" in
7397 no)
7398 GDB_TK="" ;;
e914a571
AC
7399 yes)
7400 GDB_TK="${gdb_tk}" ;;
671aa708 7401 *)
e914a571
AC
7402 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7403 # distro. Eventually someone will fix this and move Insight, nee
7404 # gdbtk to a separate directory.
7405 if test -d ${srcdir}/gdb/gdbtk ; then
7406 GDB_TK="${gdb_tk}"
7407 else
7408 GDB_TK=""
7409 fi
7410 ;;
671aa708 7411esac
ef9db8d5
DJ
7412CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7413INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7414
60975492 7415# Strip out unwanted targets.
8b87bb96
NN
7416
7417# While at that, we remove Makefiles if we were started for recursive
7418# configuration, so that the top-level Makefile reconfigures them,
7419# like we used to do when configure itself was recursive.
8b87bb96 7420
3e54529c
RW
7421# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7422# but now we're fixing up the Makefile ourselves with the additional
7423# commands passed to AC_CONFIG_FILES. Use separate variables
7424# extrasub-{build,host,target} not because there is any reason to split
7425# the substitutions up that way, but only to remain below the limit of
7426# 99 commands in a script, for HP-UX sed.
7427# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7428
5213506e
RW
7429# Check whether --enable-bootstrap was given.
7430if test "${enable_bootstrap+set}" = set; then :
7431 enableval=$enable_bootstrap;
f516a7da 7432else
ce521a9c 7433 enable_bootstrap=default
5213506e
RW
7434fi
7435
f516a7da 7436
ce521a9c
PB
7437# Issue errors and warnings for invalid/strange bootstrap combinations.
7438case "$configdirs" in
7439 *gcc*) have_compiler=yes ;;
7440 *) have_compiler=no ;;
7441esac
7442
7443case "$have_compiler:$host:$target:$enable_bootstrap" in
7444 *:*:*:no) ;;
7445
1ca26cd2 7446 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
7447 # and we are in a native configuration.
7448 yes:$build:$build:default)
1ca26cd2 7449 enable_bootstrap=yes ;;
ce521a9c
PB
7450
7451 *:*:*:default)
7452 enable_bootstrap=no ;;
7453
7454 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 7455 yes:$build:$build:yes)
ce521a9c
PB
7456 ;;
7457
7458 # Other configurations, but we have a compiler. Assume the user knows
7459 # what he's doing.
2d309510 7460 yes:*:*:yes)
5213506e
RW
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7462$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
7463 ;;
7464
7465 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 7466 no:*:*:yes)
5213506e 7467 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
7468
7469 # Fail if wrong command line
7470 *)
5213506e 7471 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
7472 ;;
7473esac
7474
ca6d0d62
RW
7475case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7476 *,c++,*:yes:yes) ;;
7477 *:yes:yes)
7478 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7479 ;;
7480esac
7481
79cd2b23
RW
7482case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7483 yes:yes:*\ gold\ *:*,c++,*) ;;
7484 yes:yes:*\ gold\ *:*)
7485 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7486 ;;
7487esac
7488
ce521a9c 7489# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7490case $enable_bootstrap in
f516a7da 7491 yes)
e12c4094
AO
7492 bootstrap_suffix=bootstrap
7493 BUILD_CONFIG=bootstrap-debug
7494 ;;
f516a7da 7495 no)
e12c4094
AO
7496 bootstrap_suffix=no-bootstrap
7497 BUILD_CONFIG=
7498 ;;
f516a7da
PB
7499esac
7500
e12c4094
AO
7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7502$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7503
7504
7505# Check whether --with-build-config was given.
7506if test "${with_build_config+set}" = set; then :
7507 withval=$with_build_config; case $with_build_config in
7508 yes) with_build_config= ;;
7509 no) with_build_config= BUILD_CONFIG= ;;
7510 esac
7511fi
7512
7513
e12c4094
AO
7514if test "x${with_build_config}" != x; then
7515 BUILD_CONFIG=$with_build_config
7516else
7517 case $BUILD_CONFIG in
7518 bootstrap-debug)
7519 if echo "int f (void) { return 0; }" > conftest.c &&
7520 ${CC} -c conftest.c &&
7521 mv conftest.o conftest.o.g0 &&
7522 ${CC} -c -g conftest.c &&
7523 mv conftest.o conftest.o.g &&
7524 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g; then
7525 :
7526 else
7527 BUILD_CONFIG=
7528 fi
7529 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7530 ;;
7531 esac
7532fi
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7534$as_echo "$BUILD_CONFIG" >&6; }
7535
7536
3e54529c 7537extrasub_build=
23f6b2f9 7538for module in ${build_configdirs} ; do
5607edfd
PB
7539 if test -z "${no_recursion}" \
7540 && test -f ${build_subdir}/${module}/Makefile; then
7541 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7542 rm -f ${build_subdir}/${module}/Makefile
7543 fi
3e54529c 7544 extrasub_build="$extrasub_build
5607edfd
PB
7545/^@if build-$module\$/d
7546/^@endif build-$module\$/d
7547/^@if build-$module-$bootstrap_suffix\$/d
7548/^@endif build-$module-$bootstrap_suffix\$/d"
7549done
3e54529c 7550extrasub_host=
5607edfd 7551for module in ${configdirs} ; do
a6fbc1e2 7552 if test -z "${no_recursion}"; then
f063a9ed 7553 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7554 if test -f ${file}; then
7555 echo 1>&2 "*** removing ${file} to force reconfigure"
7556 rm -f ${file}
7557 fi
7558 done
5607edfd 7559 fi
3e54529c 7560 extrasub_host="$extrasub_host
5607edfd
PB
7561/^@if $module\$/d
7562/^@endif $module\$/d
7563/^@if $module-$bootstrap_suffix\$/d
7564/^@endif $module-$bootstrap_suffix\$/d"
7565done
3e54529c 7566extrasub_target=
5607edfd
PB
7567for module in ${target_configdirs} ; do
7568 if test -z "${no_recursion}" \
7569 && test -f ${target_subdir}/${module}/Makefile; then
7570 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7571 rm -f ${target_subdir}/${module}/Makefile
7572 fi
00020c16
ILT
7573
7574 # We only bootstrap target libraries listed in bootstrap_target_libs.
7575 case $bootstrap_target_libs in
7576 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7577 *) target_bootstrap_suffix=no-bootstrap ;;
7578 esac
7579
3e54529c 7580 extrasub_target="$extrasub_target
5607edfd
PB
7581/^@if target-$module\$/d
7582/^@endif target-$module\$/d
00020c16
ILT
7583/^@if target-$module-$target_bootstrap_suffix\$/d
7584/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7585done
7586
3e54529c
RW
7587# Do the final fixup along with target modules.
7588extrasub_target="$extrasub_target
60975492 7589/^@if /,/^@endif /d"
671aa708
NN
7590
7591# Create the serialization dependencies. This uses a temporary file.
7592
5213506e
RW
7593# Check whether --enable-serial-configure was given.
7594if test "${enable_serial_configure+set}" = set; then :
7595 enableval=$enable_serial_configure;
7596fi
ade82b16
AO
7597
7598
bf1d3e81
NN
7599case ${enable_serial_configure} in
7600 yes)
7601 enable_serial_build_configure=yes
7602 enable_serial_host_configure=yes
7603 enable_serial_target_configure=yes
7604 ;;
7605esac
7606
671aa708
NN
7607# These force 'configure's to be done one at a time, to avoid problems
7608# with contention over a shared config.cache.
7609rm -f serdep.tmp
ade82b16 7610echo '# serdep.tmp' > serdep.tmp
671aa708 7611olditem=
bf1d3e81 7612test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7613for item in ${build_configdirs} ; do
7614 case ${olditem} in
7615 "") ;;
ade82b16 7616 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7617 esac
7618 olditem=${item}
7619done
7620olditem=
bf1d3e81 7621test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7622for item in ${configdirs} ; do
7623 case ${olditem} in
7624 "") ;;
ade82b16 7625 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7626 esac
7627 olditem=${item}
7628done
7629olditem=
bf1d3e81 7630test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7631for item in ${target_configdirs} ; do
7632 case ${olditem} in
7633 "") ;;
ade82b16 7634 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7635 esac
7636 olditem=${item}
7637done
7638serialization_dependencies=serdep.tmp
7639
7640
ade82b16 7641# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7642# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7643# might not want to pass down to subconfigures. The exception being
7644# --cache-file=/dev/null, which is used to turn off the use of cache
7645# files altogether, and which should be passed on to subconfigures.
7646# Also strip program-prefix, program-suffix, and program-transform-name,
7647# so that we can pass down a consistent program-transform-name.
1c710c3c
DJ
7648baseargs=
7649keep_next=no
7650skip_next=no
7651eval "set -- $ac_configure_args"
44bfc3ac
DJ
7652for ac_arg
7653do
1c710c3c
DJ
7654 if test X"$skip_next" = X"yes"; then
7655 skip_next=no
7656 continue
7657 fi
7658 if test X"$keep_next" = X"yes"; then
7659 case $ac_arg in
7660 *\'*)
7661 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7662 esac
7663 baseargs="$baseargs '$ac_arg'"
7664 keep_next=no
7665 continue
7666 fi
7667
7668 # Handle separated arguments. Based on the logic generated by
7669 # autoconf 2.59.
7670 case $ac_arg in
7671 *=* | --config-cache | -C | -disable-* | --disable-* \
7672 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7673 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7674 | -with-* | --with-* | -without-* | --without-* | --x)
7675 separate_arg=no
7676 ;;
7677 -*)
7678 separate_arg=yes
7679 ;;
7680 *)
7681 separate_arg=no
7682 ;;
7683 esac
7684
7685 case "$ac_arg" in
f1a036e4
NC
7686 --cache-file=/dev/null | \
7687 -cache-file=/dev/null )
7688 # Handled here to avoid the test to skip args below.
7689 baseargs="$baseargs '$ac_arg'"
7690 # Assert: $separate_arg should always be no.
7691 keep_next=$separate_arg
7692 ;;
1c710c3c
DJ
7693 --no*)
7694 continue
7695 ;;
7696 --c* | \
7697 --sr* | \
7698 --ho* | \
7699 --bu* | \
7700 --t* | \
7701 --program-* | \
7702 -cache_file* | \
7703 -srcdir* | \
7704 -host* | \
7705 -build* | \
7706 -target* | \
7707 -program-prefix* | \
7708 -program-suffix* | \
7709 -program-transform-name* )
7710 skip_next=$separate_arg
7711 continue
7712 ;;
7713 -*)
7714 # An option. Add it.
7715 case $ac_arg in
7716 *\'*)
7717 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7718 esac
7719 baseargs="$baseargs '$ac_arg'"
7720 keep_next=$separate_arg
7721 ;;
7722 *)
7723 # Either a variable assignment, or a nonopt (triplet). Don't
7724 # pass it down; let the Makefile handle this.
7725 continue
7726 ;;
7727 esac
7728done
7729# Remove the initial space we just introduced and, as these will be
7730# expanded by make, quote '$'.
7731baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7732
43bb47c2
DJ
7733# Add in --program-transform-name, after --program-prefix and
7734# --program-suffix have been applied to it. Autoconf has already
7735# doubled dollar signs and backslashes in program_transform_name; we want
7736# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7737# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7738# Also, because we want to override the logic in subdir configure scripts to
7739# choose program_transform_name, replace any s,x,x, with s,y,y,.
7740sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7741${program_transform_name}
7742EOF_SED
7743gcc_transform_name=`cat conftestsed.out`
7744rm -f conftestsed.out
7745baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7746if test "$silent" = yes; then
7747 baseargs="$baseargs --silent"
7748fi
0115d4a3 7749baseargs="$baseargs --disable-option-checking"
43bb47c2 7750
671aa708
NN
7751# For the build-side libraries, we just need to pretend we're native,
7752# and not use the same cache file. Multilibs are neither needed nor
7753# desired.
e69bf64b 7754build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
7755
7756# For host modules, accept cache file option, or specification as blank.
7757case "${cache_file}" in
7758"") # empty
7759 cache_file_option="" ;;
7760/* | [A-Za-z]:[\\/]* ) # absolute path
7761 cache_file_option="--cache-file=${cache_file}" ;;
7762*) # relative path
7763 cache_file_option="--cache-file=../${cache_file}" ;;
7764esac
7765
09438bde
NN
7766# Host dirs don't like to share a cache file either, horribly enough.
7767# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 7768host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
7769
7770target_configargs=${baseargs}
7771
7772# Passing a --with-cross-host argument lets the target libraries know
7773# whether they are being built with a cross-compiler or being built
7774# native. However, it would be better to use other mechanisms to make the
7775# sorts of decisions they want to make on this basis. Please consider
7776# this option to be deprecated. FIXME.
7777if test x${is_cross_compiler} = xyes ; then
1c710c3c 7778 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7779fi
7780
7781# Default to --enable-multilib.
7782if test x${enable_multilib} = x ; then
7783 target_configargs="--enable-multilib ${target_configargs}"
7784fi
7785
7786# Pass --with-newlib if appropriate. Note that target_configdirs has
7787# changed from the earlier setting of with_newlib.
7788if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7789 target_configargs="--with-newlib ${target_configargs}"
7790fi
7791
6b9eb62c
NN
7792# Different target subdirs use different values of certain variables
7793# (notably CXX). Worse, multilibs use *lots* of different values.
7794# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7795# it doesn't automatically accept command-line overrides of them.
7796# This means it's not safe for target subdirs to share a cache file,
7797# which is disgusting, but there you have it. Hopefully this can be
7798# fixed in future. It's still worthwhile to use a cache file for each
7799# directory. I think.
7800
bebcd931
MS
7801# Pass the appropriate --build, --host, --target and --cache-file arguments.
7802# We need to pass --target, as newer autoconf's requires consistency
7803# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7804target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7805
671aa708
NN
7806FLAGS_FOR_TARGET=
7807case " $target_configdirs " in
7808 *" newlib "*)
7809 case " $target_configargs " in
7810 *" --with-newlib "*)
7811 case "$target" in
7812 *-cygwin*)
aa8f1f57 7813 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' ;;
671aa708
NN
7814 esac
7815
7816 # If we're not building GCC, don't discard standard headers.
7817 if test -d ${srcdir}/gcc; then
7818 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7819
7820 if test "${build}" != "${host}"; then
7821 # On Canadian crosses, CC_FOR_TARGET will have already been set
7822 # by `configure', so we won't have an opportunity to add -Bgcc/
7823 # to it. This is right: we don't want to search that directory
7824 # for binaries, but we want the header files in there, so add
7825 # them explicitly.
215c351a 7826 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
7827
7828 # Someone might think of using the pre-installed headers on
7829 # Canadian crosses, in case the installed compiler is not fully
7830 # compatible with the compiler being built. In this case, it
7831 # would be better to flag an error than risking having
7832 # incompatible object files being constructed. We can't
7833 # guarantee that an error will be flagged, but let's hope the
7834 # compiler will do it, when presented with incompatible header
7835 # files.
7836 fi
7837 fi
7838
7839 case "${target}-${is_cross_compiler}" in
f2a0e225 7840 i[3456789]86-*-linux*-no)
671aa708
NN
7841 # Here host == target, so we don't need to build gcc,
7842 # so we don't want to discard standard headers.
7843 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7844 ;;
7845 *)
7846 # If we're building newlib, use its generic headers last, but search
7847 # for any libc-related directories first (so make it the last -B
7848 # switch).
7849 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7850
7851 # If we're building libgloss, find the startup file, simulator library
7852 # and linker script.
7853 case " $target_configdirs " in
7854 *" libgloss "*)
7855 # Look for startup file, simulator library and maybe linker script.
7856 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7857 # Look for libnosys.a in case the target needs it.
7858 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7859 # Most targets have the linker script in the source directory.
7860 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7861 ;;
7862 esac
671aa708
NN
7863 ;;
7864 esac
7865 ;;
7866 esac
7867 ;;
7868esac
b91f0a41
CV
7869case "$target" in
7870*-mingw*)
7871 # Can't be handled as Cygwin above since Mingw does not use newlib.
7872 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' ;;
7873esac
671aa708 7874
6691a79e
ME
7875# Allow the user to override the flags for
7876# our build compiler if desired.
f019adc1
MF
7877if test x"${build}" = x"${host}" ; then
7878 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7879 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7880 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7881fi
6691a79e 7882
671aa708
NN
7883# On Canadian crosses, we'll be searching the right directories for
7884# the previously-installed cross compiler, so don't bother to add
7885# flags for directories within the install tree of the compiler
7886# being built; programs in there won't even run.
7887if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7888 # Search for pre-installed headers if nothing else fits.
9124bc53 7889 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7890fi
7891
7892if test "x${use_gnu_ld}" = x &&
7893 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7894 # Arrange for us to find uninstalled linker scripts.
215c351a 7895 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7896fi
7897
e88a2c09
DD
7898# Search for other target-specific linker scripts and such.
7899case "${target}" in
3e19841a
PB
7900 mep*)
7901 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7902 ;;
e88a2c09
DD
7903esac
7904
671aa708 7905# Makefile fragments.
7b61653a
PE
7906for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7907do
7908 eval fragval=\$$frag
7909 if test $fragval != /dev/null; then
7910 eval $frag=${srcdir}/$fragval
7911 fi
7912done
671aa708
NN
7913
7914
7915
7916
7917
7918# Miscellanea: directories, flags, etc.
7919
7920
7921
7922
7923
7924
7925
d89f0ad6 7926
23f6b2f9 7927# Build module lists & subconfigure args.
671aa708
NN
7928
7929
7930
2abefe3d
PB
7931# Host module lists & subconfigure args.
7932
7933
7934
7935# Target module lists & subconfigure args.
7936
7937
7938
7939# Build tools.
7940
7941
7942
0999159b
PB
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
2abefe3d
PB
7957# Generate default definitions for YACC, M4, LEX and other programs that run
7958# on the build machine. These are used if the Makefile can't locate these
7959# programs in objdir.
7960MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7961
7962for ac_prog in 'bison -y' byacc yacc
7963do
1c710c3c 7964 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7965set dummy $ac_prog; ac_word=$2
5213506e
RW
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7967$as_echo_n "checking for $ac_word... " >&6; }
7968if test "${ac_cv_prog_YACC+set}" = set; then :
7969 $as_echo_n "(cached) " >&6
2abefe3d
PB
7970else
7971 if test -n "$YACC"; then
7972 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7973else
1c710c3c
DJ
7974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975for as_dir in $PATH
7976do
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
5213506e
RW
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7981 ac_cv_prog_YACC="$ac_prog"
5213506e 7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7983 break 2
7984 fi
7985done
5213506e
RW
7986 done
7987IFS=$as_save_IFS
1c710c3c 7988
2abefe3d
PB
7989fi
7990fi
1c710c3c 7991YACC=$ac_cv_prog_YACC
2abefe3d 7992if test -n "$YACC"; then
5213506e
RW
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7994$as_echo "$YACC" >&6; }
2abefe3d 7995else
5213506e
RW
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997$as_echo "no" >&6; }
2abefe3d
PB
7998fi
7999
5213506e 8000
1c710c3c 8001 test -n "$YACC" && break
2abefe3d
PB
8002done
8003test -n "$YACC" || YACC="$MISSING bison -y"
8004
8005case " $build_configdirs " in
8006 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8007 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8008esac
8009
8010for ac_prog in bison
8011do
1c710c3c 8012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8013set dummy $ac_prog; ac_word=$2
5213506e
RW
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if test "${ac_cv_prog_BISON+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
2abefe3d
PB
8018else
8019 if test -n "$BISON"; then
8020 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8021else
1c710c3c
DJ
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
5213506e
RW
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8029 ac_cv_prog_BISON="$ac_prog"
5213506e 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8031 break 2
8032 fi
8033done
5213506e
RW
8034 done
8035IFS=$as_save_IFS
1c710c3c 8036
2abefe3d
PB
8037fi
8038fi
1c710c3c 8039BISON=$ac_cv_prog_BISON
2abefe3d 8040if test -n "$BISON"; then
5213506e
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8042$as_echo "$BISON" >&6; }
2abefe3d 8043else
5213506e
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
2abefe3d
PB
8046fi
8047
5213506e 8048
1c710c3c 8049 test -n "$BISON" && break
2abefe3d
PB
8050done
8051test -n "$BISON" || BISON="$MISSING bison"
8052
8053case " $build_configdirs " in
8054 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8055esac
8056
8057for ac_prog in gm4 gnum4 m4
8058do
1c710c3c 8059 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8060set dummy $ac_prog; ac_word=$2
5213506e
RW
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if test "${ac_cv_prog_M4+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
2abefe3d
PB
8065else
8066 if test -n "$M4"; then
8067 ac_cv_prog_M4="$M4" # Let the user override the test.
8068else
1c710c3c
DJ
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
5213506e
RW
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8076 ac_cv_prog_M4="$ac_prog"
5213506e 8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8078 break 2
8079 fi
8080done
5213506e
RW
8081 done
8082IFS=$as_save_IFS
1c710c3c 8083
2abefe3d
PB
8084fi
8085fi
1c710c3c 8086M4=$ac_cv_prog_M4
2abefe3d 8087if test -n "$M4"; then
5213506e
RW
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8089$as_echo "$M4" >&6; }
2abefe3d 8090else
5213506e
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
2abefe3d
PB
8093fi
8094
5213506e 8095
1c710c3c 8096 test -n "$M4" && break
2abefe3d
PB
8097done
8098test -n "$M4" || M4="$MISSING m4"
8099
8100case " $build_configdirs " in
8101 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8102esac
8103
8104for ac_prog in flex lex
8105do
1c710c3c 8106 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8107set dummy $ac_prog; ac_word=$2
5213506e
RW
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109$as_echo_n "checking for $ac_word... " >&6; }
8110if test "${ac_cv_prog_LEX+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
2abefe3d
PB
8112else
8113 if test -n "$LEX"; then
8114 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8115else
1c710c3c
DJ
8116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8117for as_dir in $PATH
8118do
8119 IFS=$as_save_IFS
8120 test -z "$as_dir" && as_dir=.
5213506e
RW
8121 for ac_exec_ext in '' $ac_executable_extensions; do
8122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8123 ac_cv_prog_LEX="$ac_prog"
5213506e 8124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8125 break 2
8126 fi
8127done
5213506e
RW
8128 done
8129IFS=$as_save_IFS
1c710c3c 8130
2abefe3d
PB
8131fi
8132fi
1c710c3c 8133LEX=$ac_cv_prog_LEX
2abefe3d 8134if test -n "$LEX"; then
5213506e
RW
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8136$as_echo "$LEX" >&6; }
2abefe3d 8137else
5213506e
RW
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139$as_echo "no" >&6; }
2abefe3d
PB
8140fi
8141
5213506e 8142
1c710c3c 8143 test -n "$LEX" && break
2abefe3d
PB
8144done
8145test -n "$LEX" || LEX="$MISSING flex"
8146
8147case " $build_configdirs " in
8148 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8149 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8150esac
8151
8152for ac_prog in flex
8153do
1c710c3c 8154 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8155set dummy $ac_prog; ac_word=$2
5213506e
RW
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157$as_echo_n "checking for $ac_word... " >&6; }
8158if test "${ac_cv_prog_FLEX+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
2abefe3d
PB
8160else
8161 if test -n "$FLEX"; then
8162 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8163else
1c710c3c
DJ
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
5213506e
RW
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8171 ac_cv_prog_FLEX="$ac_prog"
5213506e 8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8173 break 2
8174 fi
8175done
5213506e
RW
8176 done
8177IFS=$as_save_IFS
1c710c3c 8178
2abefe3d
PB
8179fi
8180fi
1c710c3c 8181FLEX=$ac_cv_prog_FLEX
2abefe3d 8182if test -n "$FLEX"; then
5213506e
RW
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8184$as_echo "$FLEX" >&6; }
2abefe3d 8185else
5213506e
RW
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187$as_echo "no" >&6; }
2abefe3d
PB
8188fi
8189
5213506e 8190
1c710c3c 8191 test -n "$FLEX" && break
2abefe3d
PB
8192done
8193test -n "$FLEX" || FLEX="$MISSING flex"
8194
8195case " $build_configdirs " in
8196 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8197esac
8198
8199for ac_prog in makeinfo
8200do
1c710c3c 8201 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8202set dummy $ac_prog; ac_word=$2
5213506e
RW
8203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204$as_echo_n "checking for $ac_word... " >&6; }
8205if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8206 $as_echo_n "(cached) " >&6
2abefe3d
PB
8207else
8208 if test -n "$MAKEINFO"; then
8209 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8210else
1c710c3c
DJ
8211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8212for as_dir in $PATH
8213do
8214 IFS=$as_save_IFS
8215 test -z "$as_dir" && as_dir=.
5213506e
RW
8216 for ac_exec_ext in '' $ac_executable_extensions; do
8217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8218 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8220 break 2
8221 fi
8222done
5213506e
RW
8223 done
8224IFS=$as_save_IFS
1c710c3c 8225
2abefe3d
PB
8226fi
8227fi
1c710c3c 8228MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8229if test -n "$MAKEINFO"; then
5213506e
RW
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8231$as_echo "$MAKEINFO" >&6; }
2abefe3d 8232else
5213506e
RW
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234$as_echo "no" >&6; }
2abefe3d
PB
8235fi
8236
5213506e 8237
1c710c3c 8238 test -n "$MAKEINFO" && break
2abefe3d
PB
8239done
8240test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8241
8242case " $build_configdirs " in
8243 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8244 *)
8245
d18ff35a 8246 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8247 # higher, else we use the "missing" dummy.
8248 if ${MAKEINFO} --version \
d18ff35a 8249 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8250 :
8251 else
8252 MAKEINFO="$MISSING makeinfo"
8253 fi
8254 ;;
8255
8256esac
671aa708 8257
2abefe3d 8258# FIXME: expect and dejagnu may become build tools?
671aa708 8259
2abefe3d
PB
8260for ac_prog in expect
8261do
1c710c3c 8262 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8263set dummy $ac_prog; ac_word=$2
5213506e
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_EXPECT+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
2abefe3d
PB
8268else
8269 if test -n "$EXPECT"; then
8270 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8271else
1c710c3c
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=.
5213506e
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
1c710c3c 8279 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8281 break 2
8282 fi
8283done
5213506e
RW
8284 done
8285IFS=$as_save_IFS
1c710c3c 8286
2abefe3d
PB
8287fi
8288fi
1c710c3c 8289EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8290if test -n "$EXPECT"; then
5213506e
RW
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8292$as_echo "$EXPECT" >&6; }
2abefe3d 8293else
5213506e
RW
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295$as_echo "no" >&6; }
2abefe3d 8296fi
671aa708 8297
5213506e 8298
1c710c3c 8299 test -n "$EXPECT" && break
2abefe3d
PB
8300done
8301test -n "$EXPECT" || EXPECT="expect"
671aa708 8302
2abefe3d
PB
8303case " $configdirs " in
8304 *" expect "*)
8305 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8306 ;;
8307esac
671aa708 8308
2abefe3d
PB
8309for ac_prog in runtest
8310do
1c710c3c 8311 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8312set dummy $ac_prog; ac_word=$2
5213506e
RW
8313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8314$as_echo_n "checking for $ac_word... " >&6; }
8315if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8316 $as_echo_n "(cached) " >&6
2abefe3d
PB
8317else
8318 if test -n "$RUNTEST"; then
8319 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8320else
1c710c3c
DJ
8321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322for as_dir in $PATH
8323do
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
5213506e
RW
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8328 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8330 break 2
8331 fi
8332done
5213506e
RW
8333 done
8334IFS=$as_save_IFS
1c710c3c 8335
2abefe3d
PB
8336fi
8337fi
1c710c3c 8338RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8339if test -n "$RUNTEST"; then
5213506e
RW
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8341$as_echo "$RUNTEST" >&6; }
2abefe3d 8342else
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8344$as_echo "no" >&6; }
2abefe3d 8345fi
671aa708 8346
5213506e 8347
1c710c3c 8348 test -n "$RUNTEST" && break
2abefe3d
PB
8349done
8350test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8351
2abefe3d
PB
8352case " $configdirs " in
8353 *" dejagnu "*)
c394e891 8354 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8355 ;;
8356esac
671aa708
NN
8357
8358
671aa708 8359# Host tools.
ca9f4b81
AO
8360ncn_tool_prefix=
8361test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8362ncn_target_tool_prefix=
8363test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8364
278a7a38
AO
8365
8366
8367if test -n "$AR"; then
8368 ac_cv_prog_AR=$AR
8369elif test -n "$ac_cv_prog_AR"; then
8370 AR=$ac_cv_prog_AR
8371fi
8372
8373if test -n "$ac_cv_prog_AR"; then
8374 for ncn_progname in ar; do
8375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8376set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if test "${ac_cv_prog_AR+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
278a7a38
AO
8381else
8382 if test -n "$AR"; then
8383 ac_cv_prog_AR="$AR" # Let the user override the test.
8384else
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
5213506e
RW
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8392 ac_cv_prog_AR="${ncn_progname}"
5213506e 8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8394 break 2
8395 fi
8396done
5213506e
RW
8397 done
8398IFS=$as_save_IFS
278a7a38
AO
8399
8400fi
8401fi
8402AR=$ac_cv_prog_AR
8403if test -n "$AR"; then
5213506e
RW
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8405$as_echo "$AR" >&6; }
278a7a38 8406else
5213506e
RW
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408$as_echo "no" >&6; }
278a7a38
AO
8409fi
8410
5213506e 8411
278a7a38
AO
8412 done
8413fi
8414
8415for ncn_progname in ar; do
2693c0b0
PB
8416 if test -n "$ncn_tool_prefix"; then
8417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8418set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420$as_echo_n "checking for $ac_word... " >&6; }
8421if test "${ac_cv_prog_AR+set}" = set; then :
8422 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8423else
8424 if test -n "$AR"; then
8425 ac_cv_prog_AR="$AR" # Let the user override the test.
8426else
1c710c3c
DJ
8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428for as_dir in $PATH
8429do
8430 IFS=$as_save_IFS
8431 test -z "$as_dir" && as_dir=.
5213506e
RW
8432 for ac_exec_ext in '' $ac_executable_extensions; do
8433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8434 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8436 break 2
8437 fi
8438done
5213506e
RW
8439 done
8440IFS=$as_save_IFS
1c710c3c 8441
ca9f4b81
AO
8442fi
8443fi
1c710c3c 8444AR=$ac_cv_prog_AR
ca9f4b81 8445if test -n "$AR"; then
5213506e
RW
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8447$as_echo "$AR" >&6; }
ca9f4b81 8448else
5213506e
RW
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450$as_echo "no" >&6; }
ca9f4b81
AO
8451fi
8452
5213506e 8453
2693c0b0
PB
8454 fi
8455 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8457set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8459$as_echo_n "checking for $ac_word... " >&6; }
8460if test "${ac_cv_prog_AR+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
ca9f4b81 8462else
2693c0b0 8463 if test -n "$AR"; then
af71363e
AS
8464 ac_cv_prog_AR="$AR" # Let the user override the test.
8465else
1c710c3c
DJ
8466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8467for as_dir in $PATH
8468do
8469 IFS=$as_save_IFS
8470 test -z "$as_dir" && as_dir=.
5213506e
RW
8471 for ac_exec_ext in '' $ac_executable_extensions; do
8472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8473 ac_cv_prog_AR="${ncn_progname}"
5213506e 8474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8475 break 2
8476 fi
8477done
5213506e
RW
8478 done
8479IFS=$as_save_IFS
1c710c3c 8480
ca9f4b81
AO
8481fi
8482fi
1c710c3c 8483AR=$ac_cv_prog_AR
2693c0b0 8484if test -n "$AR"; then
5213506e
RW
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8486$as_echo "$AR" >&6; }
ca9f4b81 8487else
5213506e
RW
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
ca9f4b81 8490fi
1c710c3c 8491
5213506e 8492
2693c0b0
PB
8493 fi
8494 test -n "$ac_cv_prog_AR" && break
8495done
8496
8497if test -z "$ac_cv_prog_AR" ; then
8498 set dummy ar
8499 if test $build = $host ; then
8500 AR="$2"
ca9f4b81 8501 else
2693c0b0 8502 AR="${ncn_tool_prefix}$2"
ca9f4b81 8503 fi
ca9f4b81
AO
8504fi
8505
278a7a38
AO
8506
8507
8508if test -n "$AS"; then
8509 ac_cv_prog_AS=$AS
8510elif test -n "$ac_cv_prog_AS"; then
8511 AS=$ac_cv_prog_AS
8512fi
8513
8514if test -n "$ac_cv_prog_AS"; then
8515 for ncn_progname in as; do
8516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8517set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519$as_echo_n "checking for $ac_word... " >&6; }
8520if test "${ac_cv_prog_AS+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
278a7a38
AO
8522else
8523 if test -n "$AS"; then
8524 ac_cv_prog_AS="$AS" # Let the user override the test.
8525else
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
5213506e
RW
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8533 ac_cv_prog_AS="${ncn_progname}"
5213506e 8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8535 break 2
8536 fi
8537done
5213506e
RW
8538 done
8539IFS=$as_save_IFS
278a7a38
AO
8540
8541fi
8542fi
8543AS=$ac_cv_prog_AS
8544if test -n "$AS"; then
5213506e
RW
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8546$as_echo "$AS" >&6; }
278a7a38 8547else
5213506e
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
278a7a38
AO
8550fi
8551
5213506e 8552
278a7a38
AO
8553 done
8554fi
8555
8556for ncn_progname in as; do
2693c0b0
PB
8557 if test -n "$ncn_tool_prefix"; then
8558 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8559set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561$as_echo_n "checking for $ac_word... " >&6; }
8562if test "${ac_cv_prog_AS+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8564else
8565 if test -n "$AS"; then
8566 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8567else
1c710c3c
DJ
8568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569for as_dir in $PATH
8570do
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
5213506e
RW
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8575 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8577 break 2
8578 fi
8579done
5213506e
RW
8580 done
8581IFS=$as_save_IFS
1c710c3c 8582
ca9f4b81
AO
8583fi
8584fi
1c710c3c 8585AS=$ac_cv_prog_AS
ca9f4b81 8586if test -n "$AS"; then
5213506e
RW
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8588$as_echo "$AS" >&6; }
ca9f4b81 8589else
5213506e
RW
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591$as_echo "no" >&6; }
ca9f4b81
AO
8592fi
8593
5213506e 8594
2693c0b0
PB
8595 fi
8596 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8598set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600$as_echo_n "checking for $ac_word... " >&6; }
8601if test "${ac_cv_prog_AS+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
ca9f4b81 8603else
2693c0b0
PB
8604 if test -n "$AS"; then
8605 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8606else
1c710c3c
DJ
8607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8608for as_dir in $PATH
8609do
8610 IFS=$as_save_IFS
8611 test -z "$as_dir" && as_dir=.
5213506e
RW
8612 for ac_exec_ext in '' $ac_executable_extensions; do
8613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8614 ac_cv_prog_AS="${ncn_progname}"
5213506e 8615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8616 break 2
8617 fi
8618done
5213506e
RW
8619 done
8620IFS=$as_save_IFS
1c710c3c 8621
ca9f4b81
AO
8622fi
8623fi
1c710c3c 8624AS=$ac_cv_prog_AS
2693c0b0 8625if test -n "$AS"; then
5213506e
RW
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8627$as_echo "$AS" >&6; }
ca9f4b81 8628else
5213506e
RW
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630$as_echo "no" >&6; }
ca9f4b81 8631fi
1c710c3c 8632
5213506e 8633
2693c0b0
PB
8634 fi
8635 test -n "$ac_cv_prog_AS" && break
8636done
8637
8638if test -z "$ac_cv_prog_AS" ; then
8639 set dummy as
8640 if test $build = $host ; then
8641 AS="$2"
ca9f4b81 8642 else
2693c0b0 8643 AS="${ncn_tool_prefix}$2"
ca9f4b81 8644 fi
ca9f4b81
AO
8645fi
8646
278a7a38
AO
8647
8648
8649if test -n "$DLLTOOL"; then
8650 ac_cv_prog_DLLTOOL=$DLLTOOL
8651elif test -n "$ac_cv_prog_DLLTOOL"; then
8652 DLLTOOL=$ac_cv_prog_DLLTOOL
8653fi
8654
8655if test -n "$ac_cv_prog_DLLTOOL"; then
8656 for ncn_progname in dlltool; do
8657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8658set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660$as_echo_n "checking for $ac_word... " >&6; }
8661if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
278a7a38
AO
8663else
8664 if test -n "$DLLTOOL"; then
8665 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8666else
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
5213506e
RW
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8674 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8676 break 2
8677 fi
8678done
5213506e
RW
8679 done
8680IFS=$as_save_IFS
278a7a38
AO
8681
8682fi
8683fi
8684DLLTOOL=$ac_cv_prog_DLLTOOL
8685if test -n "$DLLTOOL"; then
5213506e
RW
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8687$as_echo "$DLLTOOL" >&6; }
278a7a38 8688else
5213506e
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
278a7a38
AO
8691fi
8692
5213506e 8693
278a7a38
AO
8694 done
8695fi
8696
8697for ncn_progname in dlltool; do
2693c0b0
PB
8698 if test -n "$ncn_tool_prefix"; then
8699 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8700set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702$as_echo_n "checking for $ac_word... " >&6; }
8703if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8704 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8705else
8706 if test -n "$DLLTOOL"; then
8707 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8708else
1c710c3c
DJ
8709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710for as_dir in $PATH
8711do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
5213506e
RW
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8716 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8718 break 2
8719 fi
8720done
5213506e
RW
8721 done
8722IFS=$as_save_IFS
1c710c3c 8723
ca9f4b81
AO
8724fi
8725fi
1c710c3c 8726DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8727if test -n "$DLLTOOL"; then
5213506e
RW
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8729$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8730else
5213506e
RW
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8732$as_echo "no" >&6; }
ca9f4b81
AO
8733fi
8734
5213506e 8735
2693c0b0
PB
8736 fi
8737 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8739set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8741$as_echo_n "checking for $ac_word... " >&6; }
8742if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
ca9f4b81 8744else
2693c0b0
PB
8745 if test -n "$DLLTOOL"; then
8746 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8747else
1c710c3c
DJ
8748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749for as_dir in $PATH
8750do
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
5213506e
RW
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8755 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8757 break 2
8758 fi
8759done
5213506e
RW
8760 done
8761IFS=$as_save_IFS
1c710c3c 8762
ca9f4b81
AO
8763fi
8764fi
1c710c3c 8765DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8766if test -n "$DLLTOOL"; then
5213506e
RW
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8768$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8769else
5213506e
RW
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771$as_echo "no" >&6; }
ca9f4b81 8772fi
1c710c3c 8773
5213506e 8774
2693c0b0
PB
8775 fi
8776 test -n "$ac_cv_prog_DLLTOOL" && break
8777done
8778
8779if test -z "$ac_cv_prog_DLLTOOL" ; then
8780 set dummy dlltool
8781 if test $build = $host ; then
8782 DLLTOOL="$2"
ca9f4b81 8783 else
2693c0b0 8784 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8785 fi
ca9f4b81
AO
8786fi
8787
278a7a38
AO
8788
8789
8790if test -n "$LD"; then
8791 ac_cv_prog_LD=$LD
8792elif test -n "$ac_cv_prog_LD"; then
8793 LD=$ac_cv_prog_LD
8794fi
8795
8796if test -n "$ac_cv_prog_LD"; then
8797 for ncn_progname in ld; do
8798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8799set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801$as_echo_n "checking for $ac_word... " >&6; }
8802if test "${ac_cv_prog_LD+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
278a7a38
AO
8804else
8805 if test -n "$LD"; then
8806 ac_cv_prog_LD="$LD" # Let the user override the test.
8807else
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
5213506e
RW
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8815 ac_cv_prog_LD="${ncn_progname}"
5213506e 8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8817 break 2
8818 fi
8819done
5213506e
RW
8820 done
8821IFS=$as_save_IFS
278a7a38
AO
8822
8823fi
8824fi
8825LD=$ac_cv_prog_LD
8826if test -n "$LD"; then
5213506e
RW
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8828$as_echo "$LD" >&6; }
278a7a38 8829else
5213506e
RW
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
278a7a38
AO
8832fi
8833
5213506e 8834
278a7a38
AO
8835 done
8836fi
8837
8838for ncn_progname in ld; do
2693c0b0
PB
8839 if test -n "$ncn_tool_prefix"; then
8840 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8841set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843$as_echo_n "checking for $ac_word... " >&6; }
8844if test "${ac_cv_prog_LD+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8846else
8847 if test -n "$LD"; then
8848 ac_cv_prog_LD="$LD" # Let the user override the test.
8849else
1c710c3c
DJ
8850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851for as_dir in $PATH
8852do
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
5213506e
RW
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8857 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8859 break 2
8860 fi
8861done
5213506e
RW
8862 done
8863IFS=$as_save_IFS
1c710c3c 8864
ca9f4b81
AO
8865fi
8866fi
1c710c3c 8867LD=$ac_cv_prog_LD
ca9f4b81 8868if test -n "$LD"; then
5213506e
RW
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8870$as_echo "$LD" >&6; }
ca9f4b81 8871else
5213506e
RW
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873$as_echo "no" >&6; }
ca9f4b81
AO
8874fi
8875
5213506e 8876
2693c0b0
PB
8877 fi
8878 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8880set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882$as_echo_n "checking for $ac_word... " >&6; }
8883if test "${ac_cv_prog_LD+set}" = set; then :
8884 $as_echo_n "(cached) " >&6
ca9f4b81 8885else
2693c0b0
PB
8886 if test -n "$LD"; then
8887 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8888else
1c710c3c
DJ
8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890for as_dir in $PATH
8891do
8892 IFS=$as_save_IFS
8893 test -z "$as_dir" && as_dir=.
5213506e
RW
8894 for ac_exec_ext in '' $ac_executable_extensions; do
8895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8896 ac_cv_prog_LD="${ncn_progname}"
5213506e 8897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8898 break 2
8899 fi
8900done
5213506e
RW
8901 done
8902IFS=$as_save_IFS
1c710c3c 8903
ca9f4b81
AO
8904fi
8905fi
1c710c3c 8906LD=$ac_cv_prog_LD
2693c0b0 8907if test -n "$LD"; then
5213506e
RW
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8909$as_echo "$LD" >&6; }
ca9f4b81 8910else
5213506e
RW
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912$as_echo "no" >&6; }
ca9f4b81 8913fi
1c710c3c 8914
5213506e 8915
2693c0b0
PB
8916 fi
8917 test -n "$ac_cv_prog_LD" && break
8918done
8919
8920if test -z "$ac_cv_prog_LD" ; then
8921 set dummy ld
8922 if test $build = $host ; then
8923 LD="$2"
ca9f4b81 8924 else
2693c0b0 8925 LD="${ncn_tool_prefix}$2"
ca9f4b81 8926 fi
ca9f4b81
AO
8927fi
8928
278a7a38
AO
8929
8930
8931if test -n "$LIPO"; then
8932 ac_cv_prog_LIPO=$LIPO
8933elif test -n "$ac_cv_prog_LIPO"; then
8934 LIPO=$ac_cv_prog_LIPO
8935fi
8936
8937if test -n "$ac_cv_prog_LIPO"; then
8938 for ncn_progname in lipo; do
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8940set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942$as_echo_n "checking for $ac_word... " >&6; }
8943if test "${ac_cv_prog_LIPO+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
278a7a38
AO
8945else
8946 if test -n "$LIPO"; then
8947 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8948else
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
5213506e
RW
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8956 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8958 break 2
8959 fi
8960done
5213506e
RW
8961 done
8962IFS=$as_save_IFS
278a7a38
AO
8963
8964fi
8965fi
8966LIPO=$ac_cv_prog_LIPO
8967if test -n "$LIPO"; then
5213506e
RW
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8969$as_echo "$LIPO" >&6; }
278a7a38 8970else
5213506e
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
278a7a38
AO
8973fi
8974
5213506e 8975
278a7a38
AO
8976 done
8977fi
8978
8979for ncn_progname in lipo; do
2abefe3d
PB
8980 if test -n "$ncn_tool_prefix"; then
8981 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8982set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984$as_echo_n "checking for $ac_word... " >&6; }
8985if test "${ac_cv_prog_LIPO+set}" = set; then :
8986 $as_echo_n "(cached) " >&6
2abefe3d
PB
8987else
8988 if test -n "$LIPO"; then
8989 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8990else
1c710c3c
DJ
8991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8992for as_dir in $PATH
8993do
8994 IFS=$as_save_IFS
8995 test -z "$as_dir" && as_dir=.
5213506e
RW
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8998 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9000 break 2
9001 fi
9002done
5213506e
RW
9003 done
9004IFS=$as_save_IFS
1c710c3c 9005
2abefe3d
PB
9006fi
9007fi
1c710c3c 9008LIPO=$ac_cv_prog_LIPO
2abefe3d 9009if test -n "$LIPO"; then
5213506e
RW
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9011$as_echo "$LIPO" >&6; }
2abefe3d 9012else
5213506e
RW
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014$as_echo "no" >&6; }
2abefe3d
PB
9015fi
9016
5213506e 9017
2abefe3d
PB
9018 fi
9019 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9021set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9023$as_echo_n "checking for $ac_word... " >&6; }
9024if test "${ac_cv_prog_LIPO+set}" = set; then :
9025 $as_echo_n "(cached) " >&6
2abefe3d
PB
9026else
9027 if test -n "$LIPO"; then
9028 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9029else
1c710c3c
DJ
9030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031for as_dir in $PATH
9032do
9033 IFS=$as_save_IFS
9034 test -z "$as_dir" && as_dir=.
5213506e
RW
9035 for ac_exec_ext in '' $ac_executable_extensions; do
9036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9037 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 9038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9039 break 2
9040 fi
9041done
5213506e
RW
9042 done
9043IFS=$as_save_IFS
1c710c3c 9044
2abefe3d
PB
9045fi
9046fi
1c710c3c 9047LIPO=$ac_cv_prog_LIPO
2abefe3d 9048if test -n "$LIPO"; then
5213506e
RW
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9050$as_echo "$LIPO" >&6; }
2abefe3d 9051else
5213506e
RW
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053$as_echo "no" >&6; }
2abefe3d 9054fi
1c710c3c 9055
5213506e 9056
2abefe3d
PB
9057 fi
9058 test -n "$ac_cv_prog_LIPO" && break
9059done
9060
9061if test -z "$ac_cv_prog_LIPO" ; then
9062 set dummy lipo
9063 if test $build = $host ; then
9064 LIPO="$2"
9065 else
9066 LIPO="${ncn_tool_prefix}$2"
9067 fi
9068fi
9069
278a7a38
AO
9070
9071
9072if test -n "$NM"; then
9073 ac_cv_prog_NM=$NM
9074elif test -n "$ac_cv_prog_NM"; then
9075 NM=$ac_cv_prog_NM
9076fi
9077
9078if test -n "$ac_cv_prog_NM"; then
9079 for ncn_progname in nm; do
9080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9081set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083$as_echo_n "checking for $ac_word... " >&6; }
9084if test "${ac_cv_prog_NM+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9086else
9087 if test -n "$NM"; then
9088 ac_cv_prog_NM="$NM" # Let the user override the test.
9089else
1c710c3c
DJ
9090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091for as_dir in $PATH
9092do
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
5213506e
RW
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9097 ac_cv_prog_NM="${ncn_progname}"
5213506e 9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9099 break 2
9100 fi
9101done
5213506e
RW
9102 done
9103IFS=$as_save_IFS
1c710c3c 9104
ca9f4b81
AO
9105fi
9106fi
1c710c3c 9107NM=$ac_cv_prog_NM
ca9f4b81 9108if test -n "$NM"; then
5213506e
RW
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9110$as_echo "$NM" >&6; }
ca9f4b81 9111else
5213506e
RW
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9113$as_echo "no" >&6; }
ca9f4b81
AO
9114fi
9115
5213506e 9116
278a7a38
AO
9117 done
9118fi
9119
9120for ncn_progname in nm; do
9121 if test -n "$ncn_tool_prefix"; then
9122 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9123set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125$as_echo_n "checking for $ac_word... " >&6; }
9126if test "${ac_cv_prog_NM+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
ca9f4b81 9128else
2693c0b0
PB
9129 if test -n "$NM"; then
9130 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9131else
1c710c3c
DJ
9132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133for as_dir in $PATH
9134do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
5213506e
RW
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9139 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9141 break 2
9142 fi
9143done
5213506e
RW
9144 done
9145IFS=$as_save_IFS
1c710c3c 9146
ca9f4b81
AO
9147fi
9148fi
1c710c3c 9149NM=$ac_cv_prog_NM
2693c0b0 9150if test -n "$NM"; then
5213506e
RW
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9152$as_echo "$NM" >&6; }
ca9f4b81 9153else
5213506e
RW
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155$as_echo "no" >&6; }
ca9f4b81 9156fi
1c710c3c 9157
5213506e 9158
2693c0b0 9159 fi
278a7a38
AO
9160 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9162set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9164$as_echo_n "checking for $ac_word... " >&6; }
9165if test "${ac_cv_prog_NM+set}" = set; then :
9166 $as_echo_n "(cached) " >&6
278a7a38
AO
9167else
9168 if test -n "$NM"; then
9169 ac_cv_prog_NM="$NM" # Let the user override the test.
9170else
9171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172for as_dir in $PATH
9173do
9174 IFS=$as_save_IFS
9175 test -z "$as_dir" && as_dir=.
5213506e
RW
9176 for ac_exec_ext in '' $ac_executable_extensions; do
9177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9178 ac_cv_prog_NM="${ncn_progname}"
5213506e 9179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9180 break 2
9181 fi
9182done
5213506e
RW
9183 done
9184IFS=$as_save_IFS
278a7a38
AO
9185
9186fi
9187fi
9188NM=$ac_cv_prog_NM
9189if test -n "$NM"; then
5213506e
RW
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9191$as_echo "$NM" >&6; }
278a7a38 9192else
5213506e
RW
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9194$as_echo "no" >&6; }
278a7a38
AO
9195fi
9196
5213506e 9197
278a7a38
AO
9198 fi
9199 test -n "$ac_cv_prog_NM" && break
9200done
9201
9202if test -z "$ac_cv_prog_NM" ; then
9203 set dummy nm
9204 if test $build = $host ; then
9205 NM="$2"
9206 else
9207 NM="${ncn_tool_prefix}$2"
9208 fi
9209fi
9210
9211
9212
9213if test -n "$RANLIB"; then
9214 ac_cv_prog_RANLIB=$RANLIB
9215elif test -n "$ac_cv_prog_RANLIB"; then
9216 RANLIB=$ac_cv_prog_RANLIB
9217fi
9218
9219if test -n "$ac_cv_prog_RANLIB"; then
9220 for ncn_progname in ranlib; do
9221 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9222set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9224$as_echo_n "checking for $ac_word... " >&6; }
9225if test "${ac_cv_prog_RANLIB+set}" = set; then :
9226 $as_echo_n "(cached) " >&6
278a7a38
AO
9227else
9228 if test -n "$RANLIB"; then
9229 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9230else
9231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9232for as_dir in $PATH
9233do
9234 IFS=$as_save_IFS
9235 test -z "$as_dir" && as_dir=.
5213506e
RW
9236 for ac_exec_ext in '' $ac_executable_extensions; do
9237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9238 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9240 break 2
9241 fi
9242done
5213506e
RW
9243 done
9244IFS=$as_save_IFS
278a7a38
AO
9245
9246fi
9247fi
9248RANLIB=$ac_cv_prog_RANLIB
9249if test -n "$RANLIB"; then
5213506e
RW
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9251$as_echo "$RANLIB" >&6; }
278a7a38 9252else
5213506e
RW
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9254$as_echo "no" >&6; }
278a7a38
AO
9255fi
9256
5213506e 9257
278a7a38
AO
9258 done
9259fi
ca9f4b81 9260
278a7a38 9261for ncn_progname in ranlib; do
2693c0b0
PB
9262 if test -n "$ncn_tool_prefix"; then
9263 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9264set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266$as_echo_n "checking for $ac_word... " >&6; }
9267if test "${ac_cv_prog_RANLIB+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9269else
9270 if test -n "$RANLIB"; then
9271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9272else
1c710c3c
DJ
9273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274for as_dir in $PATH
9275do
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
5213506e
RW
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9280 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9282 break 2
9283 fi
9284done
5213506e
RW
9285 done
9286IFS=$as_save_IFS
1c710c3c 9287
ca9f4b81
AO
9288fi
9289fi
1c710c3c 9290RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9291if test -n "$RANLIB"; then
5213506e
RW
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9293$as_echo "$RANLIB" >&6; }
ca9f4b81 9294else
5213506e
RW
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296$as_echo "no" >&6; }
ca9f4b81
AO
9297fi
9298
5213506e 9299
2693c0b0
PB
9300 fi
9301 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9303set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305$as_echo_n "checking for $ac_word... " >&6; }
9306if test "${ac_cv_prog_RANLIB+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
ca9f4b81 9308else
2693c0b0
PB
9309 if test -n "$RANLIB"; then
9310 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9311else
1c710c3c
DJ
9312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313for as_dir in $PATH
9314do
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
5213506e
RW
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9319 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9321 break 2
9322 fi
9323done
5213506e
RW
9324 done
9325IFS=$as_save_IFS
1c710c3c 9326
ca9f4b81
AO
9327fi
9328fi
1c710c3c 9329RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9330if test -n "$RANLIB"; then
5213506e
RW
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9332$as_echo "$RANLIB" >&6; }
ca9f4b81 9333else
5213506e
RW
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335$as_echo "no" >&6; }
ca9f4b81 9336fi
1c710c3c 9337
5213506e 9338
ca9f4b81 9339 fi
2693c0b0
PB
9340 test -n "$ac_cv_prog_RANLIB" && break
9341done
9342
9343if test -z "$ac_cv_prog_RANLIB" ; then
9344 RANLIB=":"
ca9f4b81
AO
9345fi
9346
278a7a38
AO
9347
9348
9349if test -n "$STRIP"; then
9350 ac_cv_prog_STRIP=$STRIP
9351elif test -n "$ac_cv_prog_STRIP"; then
9352 STRIP=$ac_cv_prog_STRIP
9353fi
9354
9355if test -n "$ac_cv_prog_STRIP"; then
9356 for ncn_progname in strip; do
9357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9358set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9360$as_echo_n "checking for $ac_word... " >&6; }
9361if test "${ac_cv_prog_STRIP+set}" = set; then :
9362 $as_echo_n "(cached) " >&6
278a7a38
AO
9363else
9364 if test -n "$STRIP"; then
9365 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9366else
9367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9368for as_dir in $PATH
9369do
9370 IFS=$as_save_IFS
9371 test -z "$as_dir" && as_dir=.
5213506e
RW
9372 for ac_exec_ext in '' $ac_executable_extensions; do
9373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9374 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9376 break 2
9377 fi
9378done
5213506e
RW
9379 done
9380IFS=$as_save_IFS
278a7a38
AO
9381
9382fi
9383fi
9384STRIP=$ac_cv_prog_STRIP
9385if test -n "$STRIP"; then
5213506e
RW
9386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9387$as_echo "$STRIP" >&6; }
278a7a38 9388else
5213506e
RW
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9390$as_echo "no" >&6; }
278a7a38
AO
9391fi
9392
5213506e 9393
278a7a38
AO
9394 done
9395fi
9396
9397for ncn_progname in strip; do
2abefe3d
PB
9398 if test -n "$ncn_tool_prefix"; then
9399 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9400set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402$as_echo_n "checking for $ac_word... " >&6; }
9403if test "${ac_cv_prog_STRIP+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
2abefe3d
PB
9405else
9406 if test -n "$STRIP"; then
9407 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9408else
1c710c3c
DJ
9409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
5213506e
RW
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9416 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9418 break 2
9419 fi
9420done
5213506e
RW
9421 done
9422IFS=$as_save_IFS
1c710c3c 9423
2abefe3d
PB
9424fi
9425fi
1c710c3c 9426STRIP=$ac_cv_prog_STRIP
2abefe3d 9427if test -n "$STRIP"; then
5213506e
RW
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9429$as_echo "$STRIP" >&6; }
2abefe3d 9430else
5213506e
RW
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432$as_echo "no" >&6; }
2abefe3d
PB
9433fi
9434
5213506e 9435
2abefe3d
PB
9436 fi
9437 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9439set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9441$as_echo_n "checking for $ac_word... " >&6; }
9442if test "${ac_cv_prog_STRIP+set}" = set; then :
9443 $as_echo_n "(cached) " >&6
2abefe3d
PB
9444else
9445 if test -n "$STRIP"; then
9446 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9447else
1c710c3c
DJ
9448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449for as_dir in $PATH
9450do
9451 IFS=$as_save_IFS
9452 test -z "$as_dir" && as_dir=.
5213506e
RW
9453 for ac_exec_ext in '' $ac_executable_extensions; do
9454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9455 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9457 break 2
9458 fi
9459done
5213506e
RW
9460 done
9461IFS=$as_save_IFS
1c710c3c 9462
2abefe3d
PB
9463fi
9464fi
1c710c3c 9465STRIP=$ac_cv_prog_STRIP
2abefe3d 9466if test -n "$STRIP"; then
5213506e
RW
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9468$as_echo "$STRIP" >&6; }
2abefe3d 9469else
5213506e
RW
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471$as_echo "no" >&6; }
2abefe3d 9472fi
1c710c3c 9473
5213506e 9474
2abefe3d
PB
9475 fi
9476 test -n "$ac_cv_prog_STRIP" && break
9477done
9478
9479if test -z "$ac_cv_prog_STRIP" ; then
9480 STRIP=":"
9481fi
9482
278a7a38
AO
9483
9484
9485if test -n "$WINDRES"; then
9486 ac_cv_prog_WINDRES=$WINDRES
9487elif test -n "$ac_cv_prog_WINDRES"; then
9488 WINDRES=$ac_cv_prog_WINDRES
9489fi
9490
9491if test -n "$ac_cv_prog_WINDRES"; then
9492 for ncn_progname in windres; do
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496$as_echo_n "checking for $ac_word... " >&6; }
9497if test "${ac_cv_prog_WINDRES+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
278a7a38
AO
9499else
9500 if test -n "$WINDRES"; then
9501 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9502else
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
5213506e
RW
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9510 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9512 break 2
9513 fi
9514done
5213506e
RW
9515 done
9516IFS=$as_save_IFS
278a7a38
AO
9517
9518fi
9519fi
9520WINDRES=$ac_cv_prog_WINDRES
9521if test -n "$WINDRES"; then
5213506e
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9523$as_echo "$WINDRES" >&6; }
278a7a38 9524else
5213506e
RW
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526$as_echo "no" >&6; }
278a7a38
AO
9527fi
9528
5213506e 9529
278a7a38
AO
9530 done
9531fi
9532
9533for ncn_progname in windres; do
2693c0b0
PB
9534 if test -n "$ncn_tool_prefix"; then
9535 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9536set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9538$as_echo_n "checking for $ac_word... " >&6; }
9539if test "${ac_cv_prog_WINDRES+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9541else
9542 if test -n "$WINDRES"; then
9543 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9544else
1c710c3c
DJ
9545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9546for as_dir in $PATH
9547do
9548 IFS=$as_save_IFS
9549 test -z "$as_dir" && as_dir=.
5213506e
RW
9550 for ac_exec_ext in '' $ac_executable_extensions; do
9551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9552 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9554 break 2
9555 fi
9556done
5213506e
RW
9557 done
9558IFS=$as_save_IFS
1c710c3c 9559
ca9f4b81
AO
9560fi
9561fi
1c710c3c 9562WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9563if test -n "$WINDRES"; then
5213506e
RW
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9565$as_echo "$WINDRES" >&6; }
ca9f4b81 9566else
5213506e
RW
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9568$as_echo "no" >&6; }
ca9f4b81
AO
9569fi
9570
5213506e 9571
2693c0b0
PB
9572 fi
9573 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9575set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577$as_echo_n "checking for $ac_word... " >&6; }
9578if test "${ac_cv_prog_WINDRES+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
ca9f4b81 9580else
2693c0b0
PB
9581 if test -n "$WINDRES"; then
9582 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9583else
1c710c3c
DJ
9584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9585for as_dir in $PATH
9586do
9587 IFS=$as_save_IFS
9588 test -z "$as_dir" && as_dir=.
5213506e
RW
9589 for ac_exec_ext in '' $ac_executable_extensions; do
9590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9591 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9593 break 2
9594 fi
9595done
5213506e
RW
9596 done
9597IFS=$as_save_IFS
1c710c3c 9598
ca9f4b81
AO
9599fi
9600fi
1c710c3c 9601WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9602if test -n "$WINDRES"; then
5213506e
RW
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9604$as_echo "$WINDRES" >&6; }
ca9f4b81 9605else
5213506e
RW
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607$as_echo "no" >&6; }
ca9f4b81 9608fi
1c710c3c 9609
5213506e 9610
2693c0b0
PB
9611 fi
9612 test -n "$ac_cv_prog_WINDRES" && break
9613done
9614
9615if test -z "$ac_cv_prog_WINDRES" ; then
9616 set dummy windres
9617 if test $build = $host ; then
9618 WINDRES="$2"
ca9f4b81 9619 else
2693c0b0 9620 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9621 fi
ca9f4b81
AO
9622fi
9623
278a7a38
AO
9624
9625
901119ae
KT
9626if test -n "$WINDMC"; then
9627 ac_cv_prog_WINDMC=$WINDMC
9628elif test -n "$ac_cv_prog_WINDMC"; then
9629 WINDMC=$ac_cv_prog_WINDMC
9630fi
9631
9632if test -n "$ac_cv_prog_WINDMC"; then
9633 for ncn_progname in windmc; do
9634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9635set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if test "${ac_cv_prog_WINDMC+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
901119ae
KT
9640else
9641 if test -n "$WINDMC"; then
9642 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9643else
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
5213506e
RW
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9651 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9653 break 2
9654 fi
9655done
5213506e
RW
9656 done
9657IFS=$as_save_IFS
901119ae
KT
9658
9659fi
9660fi
9661WINDMC=$ac_cv_prog_WINDMC
9662if test -n "$WINDMC"; then
5213506e
RW
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9664$as_echo "$WINDMC" >&6; }
901119ae 9665else
5213506e
RW
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
901119ae
KT
9668fi
9669
5213506e 9670
901119ae
KT
9671 done
9672fi
9673
9674for ncn_progname in windmc; do
9675 if test -n "$ncn_tool_prefix"; then
9676 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9677set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679$as_echo_n "checking for $ac_word... " >&6; }
9680if test "${ac_cv_prog_WINDMC+set}" = set; then :
9681 $as_echo_n "(cached) " >&6
901119ae
KT
9682else
9683 if test -n "$WINDMC"; then
9684 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9685else
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
5213506e
RW
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9693 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9695 break 2
9696 fi
9697done
5213506e
RW
9698 done
9699IFS=$as_save_IFS
901119ae
KT
9700
9701fi
9702fi
9703WINDMC=$ac_cv_prog_WINDMC
9704if test -n "$WINDMC"; then
5213506e
RW
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9706$as_echo "$WINDMC" >&6; }
901119ae 9707else
5213506e
RW
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }
901119ae
KT
9710fi
9711
5213506e 9712
901119ae
KT
9713 fi
9714 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9716set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718$as_echo_n "checking for $ac_word... " >&6; }
9719if test "${ac_cv_prog_WINDMC+set}" = set; then :
9720 $as_echo_n "(cached) " >&6
901119ae
KT
9721else
9722 if test -n "$WINDMC"; then
9723 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9724else
9725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726for as_dir in $PATH
9727do
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
5213506e
RW
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9732 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9734 break 2
9735 fi
9736done
5213506e
RW
9737 done
9738IFS=$as_save_IFS
901119ae
KT
9739
9740fi
9741fi
9742WINDMC=$ac_cv_prog_WINDMC
9743if test -n "$WINDMC"; then
5213506e
RW
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9745$as_echo "$WINDMC" >&6; }
901119ae 9746else
5213506e
RW
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748$as_echo "no" >&6; }
901119ae
KT
9749fi
9750
5213506e 9751
901119ae
KT
9752 fi
9753 test -n "$ac_cv_prog_WINDMC" && break
9754done
9755
9756if test -z "$ac_cv_prog_WINDMC" ; then
9757 set dummy windmc
9758 if test $build = $host ; then
9759 WINDMC="$2"
9760 else
9761 WINDMC="${ncn_tool_prefix}$2"
9762 fi
9763fi
9764
9765
9766
278a7a38
AO
9767if test -n "$OBJCOPY"; then
9768 ac_cv_prog_OBJCOPY=$OBJCOPY
9769elif test -n "$ac_cv_prog_OBJCOPY"; then
9770 OBJCOPY=$ac_cv_prog_OBJCOPY
9771fi
9772
9773if test -n "$ac_cv_prog_OBJCOPY"; then
9774 for ncn_progname in objcopy; do
9775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9776set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778$as_echo_n "checking for $ac_word... " >&6; }
9779if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
278a7a38
AO
9781else
9782 if test -n "$OBJCOPY"; then
9783 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9784else
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
5213506e
RW
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9792 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9794 break 2
9795 fi
9796done
5213506e
RW
9797 done
9798IFS=$as_save_IFS
278a7a38
AO
9799
9800fi
9801fi
9802OBJCOPY=$ac_cv_prog_OBJCOPY
9803if test -n "$OBJCOPY"; then
5213506e
RW
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9805$as_echo "$OBJCOPY" >&6; }
278a7a38 9806else
5213506e
RW
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
278a7a38
AO
9809fi
9810
5213506e 9811
278a7a38
AO
9812 done
9813fi
9814
9815for ncn_progname in objcopy; do
2693c0b0
PB
9816 if test -n "$ncn_tool_prefix"; then
9817 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9818set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820$as_echo_n "checking for $ac_word... " >&6; }
9821if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9823else
9824 if test -n "$OBJCOPY"; then
9825 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9826else
1c710c3c
DJ
9827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828for as_dir in $PATH
9829do
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
5213506e
RW
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9834 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9836 break 2
9837 fi
9838done
5213506e
RW
9839 done
9840IFS=$as_save_IFS
1c710c3c 9841
ca9f4b81
AO
9842fi
9843fi
1c710c3c 9844OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9845if test -n "$OBJCOPY"; then
5213506e
RW
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9847$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9848else
5213506e
RW
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850$as_echo "no" >&6; }
ca9f4b81
AO
9851fi
9852
5213506e 9853
2693c0b0
PB
9854 fi
9855 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9857set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9859$as_echo_n "checking for $ac_word... " >&6; }
9860if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9861 $as_echo_n "(cached) " >&6
ca9f4b81 9862else
2693c0b0
PB
9863 if test -n "$OBJCOPY"; then
9864 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9865else
1c710c3c
DJ
9866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9867for as_dir in $PATH
9868do
9869 IFS=$as_save_IFS
9870 test -z "$as_dir" && as_dir=.
5213506e
RW
9871 for ac_exec_ext in '' $ac_executable_extensions; do
9872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9873 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9875 break 2
9876 fi
9877done
5213506e
RW
9878 done
9879IFS=$as_save_IFS
1c710c3c 9880
ca9f4b81
AO
9881fi
9882fi
1c710c3c 9883OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9884if test -n "$OBJCOPY"; then
5213506e
RW
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9886$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9887else
5213506e
RW
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889$as_echo "no" >&6; }
ca9f4b81 9890fi
1c710c3c 9891
5213506e 9892
2693c0b0
PB
9893 fi
9894 test -n "$ac_cv_prog_OBJCOPY" && break
9895done
9896
9897if test -z "$ac_cv_prog_OBJCOPY" ; then
9898 set dummy objcopy
9899 if test $build = $host ; then
9900 OBJCOPY="$2"
ca9f4b81 9901 else
2693c0b0 9902 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9903 fi
ca9f4b81
AO
9904fi
9905
278a7a38
AO
9906
9907
9908if test -n "$OBJDUMP"; then
9909 ac_cv_prog_OBJDUMP=$OBJDUMP
9910elif test -n "$ac_cv_prog_OBJDUMP"; then
9911 OBJDUMP=$ac_cv_prog_OBJDUMP
9912fi
9913
9914if test -n "$ac_cv_prog_OBJDUMP"; then
9915 for ncn_progname in objdump; do
9916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9917set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919$as_echo_n "checking for $ac_word... " >&6; }
9920if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
278a7a38
AO
9922else
9923 if test -n "$OBJDUMP"; then
9924 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9925else
9926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9927for as_dir in $PATH
9928do
9929 IFS=$as_save_IFS
9930 test -z "$as_dir" && as_dir=.
5213506e
RW
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9933 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9935 break 2
9936 fi
9937done
5213506e
RW
9938 done
9939IFS=$as_save_IFS
278a7a38
AO
9940
9941fi
9942fi
9943OBJDUMP=$ac_cv_prog_OBJDUMP
9944if test -n "$OBJDUMP"; then
5213506e
RW
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9946$as_echo "$OBJDUMP" >&6; }
278a7a38 9947else
5213506e
RW
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949$as_echo "no" >&6; }
278a7a38
AO
9950fi
9951
5213506e 9952
278a7a38
AO
9953 done
9954fi
9955
9956for ncn_progname in objdump; do
2693c0b0
PB
9957 if test -n "$ncn_tool_prefix"; then
9958 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9959set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961$as_echo_n "checking for $ac_word... " >&6; }
9962if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9964else
9965 if test -n "$OBJDUMP"; then
9966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9967else
1c710c3c
DJ
9968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969for as_dir in $PATH
9970do
9971 IFS=$as_save_IFS
9972 test -z "$as_dir" && as_dir=.
5213506e
RW
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9975 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9977 break 2
9978 fi
9979done
5213506e
RW
9980 done
9981IFS=$as_save_IFS
1c710c3c 9982
ca9f4b81
AO
9983fi
9984fi
1c710c3c 9985OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9986if test -n "$OBJDUMP"; then
5213506e
RW
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9988$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9989else
5213506e
RW
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991$as_echo "no" >&6; }
ca9f4b81
AO
9992fi
9993
5213506e 9994
2693c0b0
PB
9995 fi
9996 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9997 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9998set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000$as_echo_n "checking for $ac_word... " >&6; }
10001if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10002 $as_echo_n "(cached) " >&6
ca9f4b81 10003else
2693c0b0
PB
10004 if test -n "$OBJDUMP"; then
10005 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 10006else
1c710c3c
DJ
10007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10008for as_dir in $PATH
10009do
10010 IFS=$as_save_IFS
10011 test -z "$as_dir" && as_dir=.
5213506e
RW
10012 for ac_exec_ext in '' $ac_executable_extensions; do
10013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10014 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 10015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10016 break 2
10017 fi
10018done
5213506e
RW
10019 done
10020IFS=$as_save_IFS
1c710c3c 10021
ca9f4b81
AO
10022fi
10023fi
1c710c3c 10024OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 10025if test -n "$OBJDUMP"; then
5213506e
RW
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10027$as_echo "$OBJDUMP" >&6; }
ca9f4b81 10028else
5213506e
RW
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10030$as_echo "no" >&6; }
ca9f4b81 10031fi
1c710c3c 10032
5213506e 10033
2693c0b0
PB
10034 fi
10035 test -n "$ac_cv_prog_OBJDUMP" && break
10036done
10037
10038if test -z "$ac_cv_prog_OBJDUMP" ; then
10039 set dummy objdump
10040 if test $build = $host ; then
10041 OBJDUMP="$2"
ca9f4b81 10042 else
2693c0b0 10043 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 10044 fi
ca9f4b81
AO
10045fi
10046
671aa708
NN
10047
10048
10049
10050
10051
2abefe3d 10052# Target tools.
1c710c3c 10053
5213506e
RW
10054# Check whether --with-build-time-tools was given.
10055if test "${with_build_time_tools+set}" = set; then :
10056 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10057 x/*) ;;
10058 *)
10059 with_build_time_tools=
5213506e
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10061$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10062 ;;
10063 esac
ca9f4b81 10064else
e8b05380 10065 with_build_time_tools=
5213506e
RW
10066fi
10067
ca9f4b81 10068
278a7a38
AO
10069
10070
10071if test -n "$CC_FOR_TARGET"; then
10072 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10073elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10074 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10075fi
10076
10077if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10078 for ncn_progname in cc gcc; do
10079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10080set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082$as_echo_n "checking for $ac_word... " >&6; }
10083if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10084 $as_echo_n "(cached) " >&6
278a7a38
AO
10085else
10086 if test -n "$CC_FOR_TARGET"; then
10087 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10088else
10089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090for as_dir in $PATH
10091do
10092 IFS=$as_save_IFS
10093 test -z "$as_dir" && as_dir=.
5213506e
RW
10094 for ac_exec_ext in '' $ac_executable_extensions; do
10095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10096 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10098 break 2
10099 fi
10100done
5213506e
RW
10101 done
10102IFS=$as_save_IFS
278a7a38
AO
10103
10104fi
10105fi
10106CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10107if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10109$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10110else
5213506e
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10112$as_echo "no" >&6; }
278a7a38
AO
10113fi
10114
5213506e 10115
278a7a38
AO
10116 done
10117fi
10118
10119if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10120 for ncn_progname in cc gcc; do
5213506e
RW
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10122$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10123 if test -x $with_build_time_tools/${ncn_progname}; then
10124 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10126$as_echo "yes" >&6; }
72a7ab82 10127 break
e8b05380 10128 else
5213506e
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130$as_echo "no" >&6; }
72a7ab82
AP
10131 fi
10132 done
4de997d1
PB
10133fi
10134
e8b05380
PB
10135if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10136 for ncn_progname in cc gcc; do
10137 if test -n "$ncn_target_tool_prefix"; then
10138 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10139set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10141$as_echo_n "checking for $ac_word... " >&6; }
10142if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10143 $as_echo_n "(cached) " >&6
4de997d1
PB
10144else
10145 if test -n "$CC_FOR_TARGET"; then
10146 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10147else
1c710c3c
DJ
10148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10149for as_dir in $PATH
10150do
10151 IFS=$as_save_IFS
10152 test -z "$as_dir" && as_dir=.
5213506e
RW
10153 for ac_exec_ext in '' $ac_executable_extensions; do
10154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10155 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10157 break 2
10158 fi
10159done
5213506e
RW
10160 done
10161IFS=$as_save_IFS
1c710c3c 10162
4de997d1
PB
10163fi
10164fi
1c710c3c 10165CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10166if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10168$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10169else
5213506e
RW
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171$as_echo "no" >&6; }
4de997d1
PB
10172fi
10173
5213506e 10174
e8b05380
PB
10175 fi
10176 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10178set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180$as_echo_n "checking for $ac_word... " >&6; }
10181if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10182 $as_echo_n "(cached) " >&6
4de997d1 10183else
2693c0b0
PB
10184 if test -n "$CC_FOR_TARGET"; then
10185 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10186else
1c710c3c
DJ
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
5213506e
RW
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10194 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10196 break 2
10197 fi
10198done
5213506e
RW
10199 done
10200IFS=$as_save_IFS
1c710c3c 10201
4de997d1
PB
10202fi
10203fi
1c710c3c 10204CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10205if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10207$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10208else
5213506e
RW
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210$as_echo "no" >&6; }
4de997d1 10211fi
1c710c3c 10212
5213506e 10213
e8b05380
PB
10214 fi
10215 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10216 done
10217fi
1c710c3c 10218
2693c0b0
PB
10219if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10220 set dummy cc gcc
10221 if test $build = $target ; then
10222 CC_FOR_TARGET="$2"
4de997d1 10223 else
2693c0b0 10224 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10225 fi
1c00b503
PB
10226else
10227 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10228fi
10229
278a7a38
AO
10230
10231
10232if test -n "$CXX_FOR_TARGET"; then
10233 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10234elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10235 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10236fi
10237
10238if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10239 for ncn_progname in c++ g++ cxx gxx; do
10240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10241set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10243$as_echo_n "checking for $ac_word... " >&6; }
10244if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10245 $as_echo_n "(cached) " >&6
278a7a38
AO
10246else
10247 if test -n "$CXX_FOR_TARGET"; then
10248 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10249else
10250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10251for as_dir in $PATH
10252do
10253 IFS=$as_save_IFS
10254 test -z "$as_dir" && as_dir=.
5213506e
RW
10255 for ac_exec_ext in '' $ac_executable_extensions; do
10256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10257 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10259 break 2
10260 fi
10261done
5213506e
RW
10262 done
10263IFS=$as_save_IFS
278a7a38
AO
10264
10265fi
10266fi
10267CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10268if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10270$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10271else
5213506e
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
278a7a38
AO
10274fi
10275
5213506e 10276
278a7a38
AO
10277 done
10278fi
10279
10280if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10281 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10283$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10284 if test -x $with_build_time_tools/${ncn_progname}; then
10285 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10287$as_echo "yes" >&6; }
e8b05380
PB
10288 break
10289 else
5213506e
RW
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291$as_echo "no" >&6; }
e8b05380
PB
10292 fi
10293 done
10294fi
10295
10296if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10297 for ncn_progname in c++ g++ cxx gxx; do
10298 if test -n "$ncn_target_tool_prefix"; then
10299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10300set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10302$as_echo_n "checking for $ac_word... " >&6; }
10303if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10304 $as_echo_n "(cached) " >&6
4de997d1
PB
10305else
10306 if test -n "$CXX_FOR_TARGET"; then
10307 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10308else
1c710c3c
DJ
10309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310for as_dir in $PATH
10311do
10312 IFS=$as_save_IFS
10313 test -z "$as_dir" && as_dir=.
5213506e
RW
10314 for ac_exec_ext in '' $ac_executable_extensions; do
10315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10316 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10318 break 2
10319 fi
10320done
5213506e
RW
10321 done
10322IFS=$as_save_IFS
1c710c3c 10323
4de997d1
PB
10324fi
10325fi
1c710c3c 10326CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10327if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10329$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10330else
5213506e
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332$as_echo "no" >&6; }
4de997d1
PB
10333fi
10334
5213506e 10335
e8b05380
PB
10336 fi
10337 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10339set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10341$as_echo_n "checking for $ac_word... " >&6; }
10342if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
4de997d1 10344else
2693c0b0
PB
10345 if test -n "$CXX_FOR_TARGET"; then
10346 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10347else
1c710c3c
DJ
10348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349for as_dir in $PATH
10350do
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
5213506e
RW
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10355 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10357 break 2
10358 fi
10359done
5213506e
RW
10360 done
10361IFS=$as_save_IFS
1c710c3c 10362
4de997d1
PB
10363fi
10364fi
1c710c3c 10365CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10366if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10368$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10369else
5213506e
RW
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10371$as_echo "no" >&6; }
4de997d1 10372fi
1c710c3c 10373
5213506e 10374
e8b05380
PB
10375 fi
10376 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10377 done
10378fi
1c710c3c 10379
2693c0b0
PB
10380if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10381 set dummy c++ g++ cxx gxx
10382 if test $build = $target ; then
10383 CXX_FOR_TARGET="$2"
4de997d1 10384 else
2693c0b0 10385 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10386 fi
1c00b503
PB
10387else
10388 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10389fi
10390
278a7a38
AO
10391
10392
10393if test -n "$GCC_FOR_TARGET"; then
10394 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10395elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10396 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10397fi
10398
10399if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10400 for ncn_progname in gcc; do
10401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10402set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404$as_echo_n "checking for $ac_word... " >&6; }
10405if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
278a7a38
AO
10407else
10408 if test -n "$GCC_FOR_TARGET"; then
10409 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10410else
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
5213506e
RW
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10418 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10420 break 2
10421 fi
10422done
5213506e
RW
10423 done
10424IFS=$as_save_IFS
278a7a38
AO
10425
10426fi
10427fi
10428GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10429if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10431$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10432else
5213506e
RW
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434$as_echo "no" >&6; }
278a7a38
AO
10435fi
10436
5213506e 10437
278a7a38
AO
10438 done
10439fi
10440
10441if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10442 for ncn_progname in gcc; do
5213506e
RW
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10444$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10445 if test -x $with_build_time_tools/${ncn_progname}; then
10446 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10448$as_echo "yes" >&6; }
e8b05380
PB
10449 break
10450 else
5213506e
RW
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
e8b05380
PB
10453 fi
10454 done
10455fi
10456
10457if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10458 for ncn_progname in gcc; do
10459 if test -n "$ncn_target_tool_prefix"; then
10460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10461set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10463$as_echo_n "checking for $ac_word... " >&6; }
10464if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10465 $as_echo_n "(cached) " >&6
ca9f4b81 10466else
e8b05380
PB
10467 if test -n "$GCC_FOR_TARGET"; then
10468 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10469else
1c710c3c
DJ
10470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471for as_dir in $PATH
10472do
10473 IFS=$as_save_IFS
10474 test -z "$as_dir" && as_dir=.
5213506e
RW
10475 for ac_exec_ext in '' $ac_executable_extensions; do
10476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10477 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10479 break 2
10480 fi
10481done
5213506e
RW
10482 done
10483IFS=$as_save_IFS
1c710c3c 10484
ca9f4b81
AO
10485fi
10486fi
1c710c3c 10487GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10488if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10490$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10491else
5213506e
RW
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493$as_echo "no" >&6; }
ca9f4b81
AO
10494fi
10495
5213506e 10496
e8b05380
PB
10497 fi
10498 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10500set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10502$as_echo_n "checking for $ac_word... " >&6; }
10503if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10504 $as_echo_n "(cached) " >&6
ca9f4b81 10505else
e8b05380
PB
10506 if test -n "$GCC_FOR_TARGET"; then
10507 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10508else
1c710c3c
DJ
10509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510for as_dir in $PATH
10511do
10512 IFS=$as_save_IFS
10513 test -z "$as_dir" && as_dir=.
5213506e
RW
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10516 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10518 break 2
10519 fi
10520done
5213506e
RW
10521 done
10522IFS=$as_save_IFS
1c710c3c 10523
ca9f4b81
AO
10524fi
10525fi
1c710c3c 10526GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10527if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10529$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10530else
5213506e
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532$as_echo "no" >&6; }
ca9f4b81 10533fi
1c710c3c 10534
5213506e 10535
e8b05380
PB
10536 fi
10537 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10538 done
10539fi
1c710c3c 10540
e8b05380
PB
10541if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10542 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10543else
10544 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10545fi
10546
278a7a38
AO
10547
10548
10549if test -n "$GCJ_FOR_TARGET"; then
10550 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10551elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10552 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10553fi
10554
10555if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10556 for ncn_progname in gcj; do
10557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10558set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10560$as_echo_n "checking for $ac_word... " >&6; }
10561if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10562 $as_echo_n "(cached) " >&6
278a7a38
AO
10563else
10564 if test -n "$GCJ_FOR_TARGET"; then
10565 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10566else
10567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568for as_dir in $PATH
10569do
10570 IFS=$as_save_IFS
10571 test -z "$as_dir" && as_dir=.
5213506e
RW
10572 for ac_exec_ext in '' $ac_executable_extensions; do
10573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10574 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10576 break 2
10577 fi
10578done
5213506e
RW
10579 done
10580IFS=$as_save_IFS
278a7a38
AO
10581
10582fi
10583fi
10584GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10585if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10587$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10588else
5213506e
RW
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590$as_echo "no" >&6; }
278a7a38
AO
10591fi
10592
5213506e 10593
278a7a38
AO
10594 done
10595fi
10596
10597if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10598 for ncn_progname in gcj; do
5213506e
RW
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10600$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10601 if test -x $with_build_time_tools/${ncn_progname}; then
10602 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10604$as_echo "yes" >&6; }
e8b05380
PB
10605 break
10606 else
5213506e
RW
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608$as_echo "no" >&6; }
e8b05380
PB
10609 fi
10610 done
10611fi
10612
10613if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10614 for ncn_progname in gcj; do
10615 if test -n "$ncn_target_tool_prefix"; then
10616 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10617set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619$as_echo_n "checking for $ac_word... " >&6; }
10620if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10621 $as_echo_n "(cached) " >&6
e8b05380 10622else
fb0103e5
RG
10623 if test -n "$GCJ_FOR_TARGET"; then
10624 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10625else
1c710c3c
DJ
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
5213506e
RW
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10633 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10635 break 2
10636 fi
10637done
5213506e
RW
10638 done
10639IFS=$as_save_IFS
1c710c3c 10640
e8b05380
PB
10641fi
10642fi
278a7a38
AO
10643GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10644if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10646$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10647else
5213506e
RW
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649$as_echo "no" >&6; }
278a7a38
AO
10650fi
10651
5213506e 10652
278a7a38
AO
10653 fi
10654 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10656set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10658$as_echo_n "checking for $ac_word... " >&6; }
10659if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10660 $as_echo_n "(cached) " >&6
278a7a38
AO
10661else
10662 if test -n "$GCJ_FOR_TARGET"; then
10663 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10664else
10665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10666for as_dir in $PATH
10667do
10668 IFS=$as_save_IFS
10669 test -z "$as_dir" && as_dir=.
5213506e
RW
10670 for ac_exec_ext in '' $ac_executable_extensions; do
10671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10672 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10674 break 2
10675 fi
10676done
5213506e
RW
10677 done
10678IFS=$as_save_IFS
278a7a38
AO
10679
10680fi
10681fi
10682GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10683if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10685$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10686else
5213506e
RW
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688$as_echo "no" >&6; }
278a7a38
AO
10689fi
10690
5213506e 10691
278a7a38
AO
10692 fi
10693 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10694 done
10695fi
10696
10697if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10698 set dummy gcj
10699 if test $build = $target ; then
10700 GCJ_FOR_TARGET="$2"
10701 else
10702 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10703 fi
1c00b503
PB
10704else
10705 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10706fi
10707
10708
10709
10710if test -n "$GFORTRAN_FOR_TARGET"; then
10711 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10712elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10713 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10714fi
10715
278a7a38
AO
10716if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10717 for ncn_progname in gfortran; do
10718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10719set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10721$as_echo_n "checking for $ac_word... " >&6; }
10722if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10723 $as_echo_n "(cached) " >&6
e8b05380 10724else
278a7a38
AO
10725 if test -n "$GFORTRAN_FOR_TARGET"; then
10726 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10727else
1c710c3c
DJ
10728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729for as_dir in $PATH
10730do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
5213506e
RW
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10735 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10737 break 2
10738 fi
10739done
5213506e
RW
10740 done
10741IFS=$as_save_IFS
1c710c3c 10742
e8b05380
PB
10743fi
10744fi
278a7a38
AO
10745GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10746if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10748$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10749else
5213506e
RW
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10751$as_echo "no" >&6; }
e8b05380 10752fi
1c710c3c 10753
5213506e 10754
e8b05380
PB
10755 done
10756fi
1c710c3c 10757
278a7a38 10758if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10759 for ncn_progname in gfortran; do
5213506e
RW
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10761$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10762 if test -x $with_build_time_tools/${ncn_progname}; then
10763 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10765$as_echo "yes" >&6; }
e8b05380
PB
10766 break
10767 else
5213506e
RW
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769$as_echo "no" >&6; }
e8b05380
PB
10770 fi
10771 done
10772fi
10773
10774if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10775 for ncn_progname in gfortran; do
10776 if test -n "$ncn_target_tool_prefix"; then
10777 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10778set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10780$as_echo_n "checking for $ac_word... " >&6; }
10781if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
e8b05380
PB
10783else
10784 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10785 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10786else
10787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10788for as_dir in $PATH
10789do
10790 IFS=$as_save_IFS
10791 test -z "$as_dir" && as_dir=.
5213506e
RW
10792 for ac_exec_ext in '' $ac_executable_extensions; do
10793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10794 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10796 break 2
10797 fi
10798done
5213506e
RW
10799 done
10800IFS=$as_save_IFS
1c710c3c 10801
e8b05380
PB
10802fi
10803fi
1c710c3c 10804GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10805if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10807$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10808else
5213506e
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10810$as_echo "no" >&6; }
e8b05380
PB
10811fi
10812
5213506e 10813
e8b05380
PB
10814 fi
10815 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10816 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10817set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819$as_echo_n "checking for $ac_word... " >&6; }
10820if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
e8b05380
PB
10822else
10823 if test -n "$GFORTRAN_FOR_TARGET"; then
10824 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10825else
1c710c3c
DJ
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
5213506e
RW
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10833 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10835 break 2
10836 fi
10837done
5213506e
RW
10838 done
10839IFS=$as_save_IFS
1c710c3c 10840
e8b05380
PB
10841fi
10842fi
1c710c3c 10843GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10844if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10846$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10847else
5213506e
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
e8b05380 10850fi
1c710c3c 10851
5213506e 10852
e8b05380
PB
10853 fi
10854 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10855 done
10856fi
1c710c3c 10857
e8b05380
PB
10858if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10859 set dummy gfortran
2693c0b0 10860 if test $build = $target ; then
e8b05380 10861 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10862 else
e8b05380
PB
10863 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10864 fi
1c00b503
PB
10865else
10866 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10867fi
10868
10869
10870
e8b05380
PB
10871cat > conftest.c << \EOF
10872#ifdef __GNUC__
10873 gcc_yay;
10874#endif
10875EOF
10876if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10877 have_gcc_for_target=yes
10878else
10879 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10880 have_gcc_for_target=no
10881fi
10882rm conftest.c
10883
10884
10885
10886
10887if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10888 if test -n "$with_build_time_tools"; then
5213506e
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10890$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10891 if test -x $with_build_time_tools/ar; then
10892 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10893 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10895$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10896 else
5213506e
RW
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898$as_echo "no" >&6; }
d1f8db0c 10899 fi
e8b05380
PB
10900 elif test $build != $host && test $have_gcc_for_target = yes; then
10901 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10902 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10903 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10904 fi
10905fi
3e19841a 10906if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10907 # Extract the first word of "ar", so it can be a program name with args.
10908set dummy ar; ac_word=$2
5213506e
RW
10909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910$as_echo_n "checking for $ac_word... " >&6; }
10911if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
e8b05380 10913else
1c710c3c
DJ
10914 case $AR_FOR_TARGET in
10915 [\\/]* | ?:[\\/]*)
e8b05380
PB
10916 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10917 ;;
e8b05380 10918 *)
1c710c3c
DJ
10919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10920for as_dir in $gcc_cv_tool_dirs
10921do
10922 IFS=$as_save_IFS
10923 test -z "$as_dir" && as_dir=.
5213506e
RW
10924 for ac_exec_ext in '' $ac_executable_extensions; do
10925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10926 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10928 break 2
10929 fi
10930done
5213506e
RW
10931 done
10932IFS=$as_save_IFS
1c710c3c 10933
e8b05380
PB
10934 ;;
10935esac
10936fi
1c710c3c 10937AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10938if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10940$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10941else
5213506e
RW
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10943$as_echo "no" >&6; }
4de997d1
PB
10944fi
10945
5213506e 10946
e8b05380
PB
10947fi
10948if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10949
10950
10951if test -n "$AR_FOR_TARGET"; then
10952 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10953elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10954 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10955fi
10956
10957if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10958 for ncn_progname in ar; do
10959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10960set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10962$as_echo_n "checking for $ac_word... " >&6; }
10963if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10964 $as_echo_n "(cached) " >&6
278a7a38
AO
10965else
10966 if test -n "$AR_FOR_TARGET"; then
10967 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10968else
10969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970for as_dir in $PATH
10971do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
5213506e
RW
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10976 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10978 break 2
10979 fi
10980done
5213506e
RW
10981 done
10982IFS=$as_save_IFS
278a7a38
AO
10983
10984fi
10985fi
10986AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10987if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10989$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10990else
5213506e
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992$as_echo "no" >&6; }
278a7a38
AO
10993fi
10994
5213506e 10995
278a7a38
AO
10996 done
10997fi
10998
10999if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11000 for ncn_progname in ar; do
5213506e
RW
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11002$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11003 if test -x $with_build_time_tools/${ncn_progname}; then
11004 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11006$as_echo "yes" >&6; }
e8b05380
PB
11007 break
11008 else
5213506e
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010$as_echo "no" >&6; }
e8b05380
PB
11011 fi
11012 done
11013fi
11014
11015if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11016 for ncn_progname in ar; do
11017 if test -n "$ncn_target_tool_prefix"; then
11018 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11019set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11021$as_echo_n "checking for $ac_word... " >&6; }
11022if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11023 $as_echo_n "(cached) " >&6
4de997d1 11024else
e8b05380
PB
11025 if test -n "$AR_FOR_TARGET"; then
11026 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11027else
1c710c3c
DJ
11028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11029for as_dir in $PATH
11030do
11031 IFS=$as_save_IFS
11032 test -z "$as_dir" && as_dir=.
5213506e
RW
11033 for ac_exec_ext in '' $ac_executable_extensions; do
11034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11035 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11037 break 2
11038 fi
11039done
5213506e
RW
11040 done
11041IFS=$as_save_IFS
1c710c3c 11042
4de997d1
PB
11043fi
11044fi
1c710c3c 11045AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11046if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11048$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11049else
5213506e
RW
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11051$as_echo "no" >&6; }
4de997d1
PB
11052fi
11053
5213506e 11054
e8b05380
PB
11055 fi
11056 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11058set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11060$as_echo_n "checking for $ac_word... " >&6; }
11061if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
e8b05380
PB
11063else
11064 if test -n "$AR_FOR_TARGET"; then
11065 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11066else
1c710c3c
DJ
11067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068for as_dir in $PATH
11069do
11070 IFS=$as_save_IFS
11071 test -z "$as_dir" && as_dir=.
5213506e
RW
11072 for ac_exec_ext in '' $ac_executable_extensions; do
11073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11074 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11076 break 2
11077 fi
11078done
5213506e
RW
11079 done
11080IFS=$as_save_IFS
1c710c3c 11081
e8b05380
PB
11082fi
11083fi
1c710c3c 11084AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11085if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11087$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11088else
5213506e
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
e8b05380 11091fi
1c710c3c 11092
5213506e 11093
e8b05380
PB
11094 fi
11095 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11096 done
11097fi
1c710c3c 11098
e8b05380
PB
11099if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11100 set dummy ar
11101 if test $build = $target ; then
11102 AR_FOR_TARGET="$2"
11103 else
11104 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11105 fi
1c00b503
PB
11106else
11107 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11108fi
11109
d1f8db0c
PB
11110else
11111 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11112fi
11113
11114
11115
11116
11117if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11118 if test -n "$with_build_time_tools"; then
5213506e
RW
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11120$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11121 if test -x $with_build_time_tools/as; then
11122 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11123 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11125$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11126 else
5213506e
RW
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11128$as_echo "no" >&6; }
d1f8db0c 11129 fi
e8b05380
PB
11130 elif test $build != $host && test $have_gcc_for_target = yes; then
11131 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11132 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11133 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11134 fi
11135fi
3e19841a 11136if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11137 # Extract the first word of "as", so it can be a program name with args.
11138set dummy as; ac_word=$2
5213506e
RW
11139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11140$as_echo_n "checking for $ac_word... " >&6; }
11141if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
e8b05380 11143else
1c710c3c
DJ
11144 case $AS_FOR_TARGET in
11145 [\\/]* | ?:[\\/]*)
e8b05380
PB
11146 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11147 ;;
e8b05380 11148 *)
1c710c3c
DJ
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150for as_dir in $gcc_cv_tool_dirs
11151do
11152 IFS=$as_save_IFS
11153 test -z "$as_dir" && as_dir=.
5213506e
RW
11154 for ac_exec_ext in '' $ac_executable_extensions; do
11155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11156 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11158 break 2
11159 fi
11160done
5213506e
RW
11161 done
11162IFS=$as_save_IFS
1c710c3c 11163
e8b05380
PB
11164 ;;
11165esac
11166fi
1c710c3c 11167AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11168if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11170$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11171else
5213506e
RW
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11173$as_echo "no" >&6; }
e8b05380
PB
11174fi
11175
5213506e 11176
e8b05380
PB
11177fi
11178if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11179
11180
11181if test -n "$AS_FOR_TARGET"; then
11182 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11183elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11184 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11185fi
11186
11187if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11188 for ncn_progname in as; do
11189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11190set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192$as_echo_n "checking for $ac_word... " >&6; }
11193if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11194 $as_echo_n "(cached) " >&6
278a7a38
AO
11195else
11196 if test -n "$AS_FOR_TARGET"; then
11197 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11198else
11199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $PATH
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
5213506e
RW
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11206 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11208 break 2
11209 fi
11210done
5213506e
RW
11211 done
11212IFS=$as_save_IFS
278a7a38
AO
11213
11214fi
11215fi
11216AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11217if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11219$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11220else
5213506e
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222$as_echo "no" >&6; }
278a7a38
AO
11223fi
11224
5213506e 11225
278a7a38
AO
11226 done
11227fi
11228
11229if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11230 for ncn_progname in as; do
5213506e
RW
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11232$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11233 if test -x $with_build_time_tools/${ncn_progname}; then
11234 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11236$as_echo "yes" >&6; }
e8b05380
PB
11237 break
11238 else
5213506e
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240$as_echo "no" >&6; }
e8b05380
PB
11241 fi
11242 done
11243fi
11244
11245if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11246 for ncn_progname in as; do
11247 if test -n "$ncn_target_tool_prefix"; then
11248 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11249set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11251$as_echo_n "checking for $ac_word... " >&6; }
11252if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11253 $as_echo_n "(cached) " >&6
e8b05380
PB
11254else
11255 if test -n "$AS_FOR_TARGET"; then
11256 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11257else
1c710c3c
DJ
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
5213506e
RW
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11265 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11267 break 2
11268 fi
11269done
5213506e
RW
11270 done
11271IFS=$as_save_IFS
1c710c3c 11272
e8b05380
PB
11273fi
11274fi
1c710c3c 11275AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11276if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11278$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11279else
5213506e
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11281$as_echo "no" >&6; }
e8b05380
PB
11282fi
11283
5213506e 11284
e8b05380
PB
11285 fi
11286 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11288set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11290$as_echo_n "checking for $ac_word... " >&6; }
11291if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11292 $as_echo_n "(cached) " >&6
4de997d1 11293else
e8b05380
PB
11294 if test -n "$AS_FOR_TARGET"; then
11295 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11296else
1c710c3c
DJ
11297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11298for as_dir in $PATH
11299do
11300 IFS=$as_save_IFS
11301 test -z "$as_dir" && as_dir=.
5213506e
RW
11302 for ac_exec_ext in '' $ac_executable_extensions; do
11303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11304 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11306 break 2
11307 fi
11308done
5213506e
RW
11309 done
11310IFS=$as_save_IFS
1c710c3c 11311
4de997d1
PB
11312fi
11313fi
1c710c3c 11314AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11315if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11317$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11318else
5213506e
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
4de997d1 11321fi
1c710c3c 11322
5213506e 11323
e8b05380
PB
11324 fi
11325 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11326 done
11327fi
1c710c3c 11328
e8b05380
PB
11329if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11330 set dummy as
11331 if test $build = $target ; then
11332 AS_FOR_TARGET="$2"
11333 else
11334 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11335 fi
1c00b503
PB
11336else
11337 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11338fi
2693c0b0 11339
d1f8db0c
PB
11340else
11341 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11342fi
11343
e8b05380
PB
11344
11345
11346
11347if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11348 if test -n "$with_build_time_tools"; then
5213506e
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11350$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11351 if test -x $with_build_time_tools/dlltool; then
11352 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11353 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11355$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11356 else
5213506e
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358$as_echo "no" >&6; }
d1f8db0c 11359 fi
e8b05380
PB
11360 elif test $build != $host && test $have_gcc_for_target = yes; then
11361 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11362 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11363 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11364 fi
11365fi
3e19841a 11366if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11367 # Extract the first word of "dlltool", so it can be a program name with args.
11368set dummy dlltool; ac_word=$2
5213506e
RW
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11370$as_echo_n "checking for $ac_word... " >&6; }
11371if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11372 $as_echo_n "(cached) " >&6
4de997d1 11373else
1c710c3c
DJ
11374 case $DLLTOOL_FOR_TARGET in
11375 [\\/]* | ?:[\\/]*)
e8b05380
PB
11376 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11377 ;;
e8b05380 11378 *)
1c710c3c
DJ
11379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380for as_dir in $gcc_cv_tool_dirs
11381do
11382 IFS=$as_save_IFS
11383 test -z "$as_dir" && as_dir=.
5213506e
RW
11384 for ac_exec_ext in '' $ac_executable_extensions; do
11385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11386 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11388 break 2
11389 fi
11390done
5213506e
RW
11391 done
11392IFS=$as_save_IFS
1c710c3c 11393
e8b05380
PB
11394 ;;
11395esac
4de997d1 11396fi
1c710c3c 11397DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11398if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11400$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11401else
5213506e
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403$as_echo "no" >&6; }
4de997d1
PB
11404fi
11405
5213506e 11406
e8b05380
PB
11407fi
11408if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11409
11410
11411if test -n "$DLLTOOL_FOR_TARGET"; then
11412 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11413elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11414 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11415fi
11416
11417if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11418 for ncn_progname in dlltool; do
11419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11420set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11422$as_echo_n "checking for $ac_word... " >&6; }
11423if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
278a7a38
AO
11425else
11426 if test -n "$DLLTOOL_FOR_TARGET"; then
11427 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11428else
11429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430for as_dir in $PATH
11431do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
5213506e
RW
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11436 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11438 break 2
11439 fi
11440done
5213506e
RW
11441 done
11442IFS=$as_save_IFS
278a7a38
AO
11443
11444fi
11445fi
11446DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11447if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11449$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11450else
5213506e
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452$as_echo "no" >&6; }
278a7a38
AO
11453fi
11454
5213506e 11455
278a7a38
AO
11456 done
11457fi
11458
11459if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11460 for ncn_progname in dlltool; do
5213506e
RW
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11462$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11463 if test -x $with_build_time_tools/${ncn_progname}; then
11464 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11466$as_echo "yes" >&6; }
e8b05380
PB
11467 break
11468 else
5213506e
RW
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470$as_echo "no" >&6; }
e8b05380
PB
11471 fi
11472 done
11473fi
11474
11475if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11476 for ncn_progname in dlltool; do
11477 if test -n "$ncn_target_tool_prefix"; then
11478 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11479set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481$as_echo_n "checking for $ac_word... " >&6; }
11482if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
4de997d1 11484else
e8b05380
PB
11485 if test -n "$DLLTOOL_FOR_TARGET"; then
11486 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11487else
1c710c3c
DJ
11488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489for as_dir in $PATH
11490do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
5213506e
RW
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11495 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11497 break 2
11498 fi
11499done
5213506e
RW
11500 done
11501IFS=$as_save_IFS
1c710c3c 11502
4de997d1
PB
11503fi
11504fi
1c710c3c 11505DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11506if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11508$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11509else
5213506e
RW
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511$as_echo "no" >&6; }
4de997d1 11512fi
4de997d1 11513
5213506e 11514
e8b05380
PB
11515 fi
11516 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11518set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11520$as_echo_n "checking for $ac_word... " >&6; }
11521if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11522 $as_echo_n "(cached) " >&6
4de997d1 11523else
e8b05380
PB
11524 if test -n "$DLLTOOL_FOR_TARGET"; then
11525 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11526else
1c710c3c
DJ
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530 IFS=$as_save_IFS
11531 test -z "$as_dir" && as_dir=.
5213506e
RW
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11534 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11536 break 2
11537 fi
11538done
5213506e
RW
11539 done
11540IFS=$as_save_IFS
1c710c3c 11541
4de997d1
PB
11542fi
11543fi
1c710c3c 11544DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11545if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11547$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11548else
5213506e
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
4de997d1 11551fi
1c710c3c 11552
5213506e 11553
e8b05380
PB
11554 fi
11555 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11556 done
11557fi
1c710c3c 11558
e8b05380
PB
11559if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11560 set dummy dlltool
11561 if test $build = $target ; then
11562 DLLTOOL_FOR_TARGET="$2"
11563 else
11564 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11565 fi
1c00b503
PB
11566else
11567 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11568fi
11569
d1f8db0c
PB
11570else
11571 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11572fi
11573
4de997d1 11574
e8b05380
PB
11575
11576
11577if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11578 if test -n "$with_build_time_tools"; then
5213506e
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11580$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11581 if test -x $with_build_time_tools/ld; then
11582 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11583 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11585$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11586 else
5213506e
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588$as_echo "no" >&6; }
d1f8db0c 11589 fi
e8b05380
PB
11590 elif test $build != $host && test $have_gcc_for_target = yes; then
11591 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11592 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11593 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11594 fi
e8b05380 11595fi
3e19841a 11596if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11597 # Extract the first word of "ld", so it can be a program name with args.
11598set dummy ld; ac_word=$2
5213506e
RW
11599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11600$as_echo_n "checking for $ac_word... " >&6; }
11601if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
4de997d1 11603else
1c710c3c
DJ
11604 case $LD_FOR_TARGET in
11605 [\\/]* | ?:[\\/]*)
e8b05380
PB
11606 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11607 ;;
e8b05380 11608 *)
1c710c3c
DJ
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $gcc_cv_tool_dirs
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
5213506e
RW
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11616 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11618 break 2
11619 fi
11620done
5213506e
RW
11621 done
11622IFS=$as_save_IFS
1c710c3c 11623
e8b05380
PB
11624 ;;
11625esac
4de997d1 11626fi
1c710c3c 11627LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11628if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11630$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11631else
5213506e
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11633$as_echo "no" >&6; }
4de997d1 11634fi
2693c0b0 11635
5213506e 11636
e8b05380
PB
11637fi
11638if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11639
11640
11641if test -n "$LD_FOR_TARGET"; then
11642 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11643elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11644 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11645fi
11646
11647if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11648 for ncn_progname in ld; do
11649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11650set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11652$as_echo_n "checking for $ac_word... " >&6; }
11653if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11654 $as_echo_n "(cached) " >&6
278a7a38
AO
11655else
11656 if test -n "$LD_FOR_TARGET"; then
11657 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11658else
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
5213506e
RW
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11666 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11668 break 2
11669 fi
11670done
5213506e
RW
11671 done
11672IFS=$as_save_IFS
278a7a38
AO
11673
11674fi
11675fi
11676LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11677if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11679$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11680else
5213506e
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11682$as_echo "no" >&6; }
278a7a38
AO
11683fi
11684
5213506e 11685
278a7a38
AO
11686 done
11687fi
11688
11689if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11690 for ncn_progname in ld; do
5213506e
RW
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11692$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11693 if test -x $with_build_time_tools/${ncn_progname}; then
11694 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11696$as_echo "yes" >&6; }
e8b05380
PB
11697 break
11698 else
5213506e
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11700$as_echo "no" >&6; }
e8b05380
PB
11701 fi
11702 done
ca9f4b81
AO
11703fi
11704
e8b05380
PB
11705if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11706 for ncn_progname in ld; do
11707 if test -n "$ncn_target_tool_prefix"; then
11708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11709set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711$as_echo_n "checking for $ac_word... " >&6; }
11712if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11713 $as_echo_n "(cached) " >&6
ca9f4b81 11714else
4de997d1
PB
11715 if test -n "$LD_FOR_TARGET"; then
11716 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11717else
1c710c3c
DJ
11718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11719for as_dir in $PATH
11720do
11721 IFS=$as_save_IFS
11722 test -z "$as_dir" && as_dir=.
5213506e
RW
11723 for ac_exec_ext in '' $ac_executable_extensions; do
11724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11725 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11727 break 2
11728 fi
11729done
5213506e
RW
11730 done
11731IFS=$as_save_IFS
1c710c3c 11732
ca9f4b81
AO
11733fi
11734fi
1c710c3c 11735LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11736if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11738$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11739else
5213506e
RW
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741$as_echo "no" >&6; }
ca9f4b81
AO
11742fi
11743
5213506e 11744
e8b05380
PB
11745 fi
11746 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11748set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11750$as_echo_n "checking for $ac_word... " >&6; }
11751if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11752 $as_echo_n "(cached) " >&6
ca9f4b81 11753else
2693c0b0
PB
11754 if test -n "$LD_FOR_TARGET"; then
11755 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11756else
1c710c3c
DJ
11757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758for as_dir in $PATH
11759do
11760 IFS=$as_save_IFS
11761 test -z "$as_dir" && as_dir=.
5213506e
RW
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11764 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11766 break 2
11767 fi
11768done
5213506e
RW
11769 done
11770IFS=$as_save_IFS
1c710c3c 11771
ca9f4b81
AO
11772fi
11773fi
1c710c3c 11774LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11775if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11777$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11778else
5213506e
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
ca9f4b81 11781fi
1c710c3c 11782
5213506e 11783
e8b05380
PB
11784 fi
11785 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11786 done
11787fi
1c710c3c 11788
2693c0b0
PB
11789if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11790 set dummy ld
11791 if test $build = $target ; then
11792 LD_FOR_TARGET="$2"
ca9f4b81 11793 else
2693c0b0 11794 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11795 fi
1c00b503
PB
11796else
11797 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11798fi
11799
d1f8db0c
PB
11800else
11801 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11802fi
11803
11804
11805
11806
11807if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11808 if test -n "$with_build_time_tools"; then
5213506e
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11810$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11811 if test -x $with_build_time_tools/lipo; then
11812 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11813 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11815$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11816 else
5213506e
RW
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818$as_echo "no" >&6; }
d1f8db0c 11819 fi
e8b05380
PB
11820 elif test $build != $host && test $have_gcc_for_target = yes; then
11821 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11822 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11823 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11824 fi
11825fi
278a7a38
AO
11826if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11827 # Extract the first word of "lipo", so it can be a program name with args.
11828set dummy lipo; ac_word=$2
5213506e
RW
11829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11830$as_echo_n "checking for $ac_word... " >&6; }
11831if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11832 $as_echo_n "(cached) " >&6
278a7a38
AO
11833else
11834 case $LIPO_FOR_TARGET in
11835 [\\/]* | ?:[\\/]*)
11836 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11837 ;;
11838 *)
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840for as_dir in $gcc_cv_tool_dirs
11841do
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
5213506e
RW
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11846 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11848 break 2
11849 fi
11850done
5213506e
RW
11851 done
11852IFS=$as_save_IFS
278a7a38
AO
11853
11854 ;;
11855esac
11856fi
11857LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11858if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11860$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11861else
5213506e
RW
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863$as_echo "no" >&6; }
278a7a38
AO
11864fi
11865
5213506e 11866
278a7a38
AO
11867fi
11868if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11869
11870
11871if test -n "$LIPO_FOR_TARGET"; then
11872 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11873elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11874 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11875fi
11876
11877if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11878 for ncn_progname in lipo; do
11879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11880set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882$as_echo_n "checking for $ac_word... " >&6; }
11883if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11884 $as_echo_n "(cached) " >&6
e8b05380 11885else
278a7a38
AO
11886 if test -n "$LIPO_FOR_TARGET"; then
11887 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11888else
11889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890for as_dir in $PATH
1c710c3c
DJ
11891do
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
5213506e
RW
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11896 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11898 break 2
11899 fi
11900done
5213506e
RW
11901 done
11902IFS=$as_save_IFS
1c710c3c 11903
e8b05380 11904fi
278a7a38
AO
11905fi
11906LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11907if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11909$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11910else
5213506e
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11912$as_echo "no" >&6; }
e8b05380
PB
11913fi
11914
5213506e 11915
278a7a38 11916 done
e8b05380 11917fi
278a7a38
AO
11918
11919if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11920 for ncn_progname in lipo; do
5213506e
RW
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11922$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11923 if test -x $with_build_time_tools/${ncn_progname}; then
11924 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11926$as_echo "yes" >&6; }
e8b05380
PB
11927 break
11928 else
5213506e
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11930$as_echo "no" >&6; }
e8b05380
PB
11931 fi
11932 done
11933fi
11934
11935if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11936 for ncn_progname in lipo; do
11937 if test -n "$ncn_target_tool_prefix"; then
11938 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11939set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11941$as_echo_n "checking for $ac_word... " >&6; }
11942if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11943 $as_echo_n "(cached) " >&6
040b1c5a
GK
11944else
11945 if test -n "$LIPO_FOR_TARGET"; then
11946 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11947else
1c710c3c
DJ
11948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949for as_dir in $PATH
11950do
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
5213506e
RW
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11955 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11957 break 2
11958 fi
11959done
5213506e
RW
11960 done
11961IFS=$as_save_IFS
1c710c3c 11962
040b1c5a
GK
11963fi
11964fi
1c710c3c 11965LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11966if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11968$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11969else
5213506e
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971$as_echo "no" >&6; }
040b1c5a
GK
11972fi
11973
5213506e 11974
e8b05380
PB
11975 fi
11976 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11978set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11980$as_echo_n "checking for $ac_word... " >&6; }
11981if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11982 $as_echo_n "(cached) " >&6
040b1c5a
GK
11983else
11984 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11985 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11986else
1c710c3c
DJ
11987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
5213506e
RW
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11994 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11996 break 2
11997 fi
11998done
5213506e
RW
11999 done
12000IFS=$as_save_IFS
1c710c3c 12001
040b1c5a
GK
12002fi
12003fi
1c710c3c 12004LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12005if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12007$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12008else
5213506e
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
040b1c5a 12011fi
1c710c3c 12012
5213506e 12013
e8b05380
PB
12014 fi
12015 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12016 done
12017fi
1c710c3c 12018
040b1c5a
GK
12019if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12020 set dummy lipo
12021 if test $build = $target ; then
12022 LIPO_FOR_TARGET="$2"
12023 else
12024 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12025 fi
1c00b503
PB
12026else
12027 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12028fi
12029
d1f8db0c
PB
12030else
12031 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12032fi
12033
12034
12035
12036
12037if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12038 if test -n "$with_build_time_tools"; then
5213506e
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12040$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12041 if test -x $with_build_time_tools/nm; then
12042 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12043 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12045$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12046 else
5213506e
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
d1f8db0c 12049 fi
e8b05380
PB
12050 elif test $build != $host && test $have_gcc_for_target = yes; then
12051 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12052 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12053 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12054 fi
12055fi
3e19841a 12056if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12057 # Extract the first word of "nm", so it can be a program name with args.
12058set dummy nm; ac_word=$2
5213506e
RW
12059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12060$as_echo_n "checking for $ac_word... " >&6; }
12061if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12062 $as_echo_n "(cached) " >&6
e8b05380 12063else
1c710c3c
DJ
12064 case $NM_FOR_TARGET in
12065 [\\/]* | ?:[\\/]*)
e8b05380
PB
12066 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12067 ;;
e8b05380 12068 *)
1c710c3c
DJ
12069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12070for as_dir in $gcc_cv_tool_dirs
12071do
12072 IFS=$as_save_IFS
12073 test -z "$as_dir" && as_dir=.
5213506e
RW
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12076 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12078 break 2
12079 fi
12080done
5213506e
RW
12081 done
12082IFS=$as_save_IFS
1c710c3c 12083
e8b05380
PB
12084 ;;
12085esac
12086fi
1c710c3c 12087NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12088if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12090$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12091else
5213506e
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12093$as_echo "no" >&6; }
e8b05380
PB
12094fi
12095
5213506e 12096
e8b05380
PB
12097fi
12098if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12099
12100
12101if test -n "$NM_FOR_TARGET"; then
12102 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12103elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12104 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12105fi
12106
12107if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12108 for ncn_progname in nm; do
12109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12110set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112$as_echo_n "checking for $ac_word... " >&6; }
12113if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12114 $as_echo_n "(cached) " >&6
278a7a38
AO
12115else
12116 if test -n "$NM_FOR_TARGET"; then
12117 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12118else
12119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120for as_dir in $PATH
12121do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
5213506e
RW
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12126 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12128 break 2
12129 fi
12130done
5213506e
RW
12131 done
12132IFS=$as_save_IFS
278a7a38
AO
12133
12134fi
12135fi
12136NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12137if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12139$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12140else
5213506e
RW
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12142$as_echo "no" >&6; }
278a7a38
AO
12143fi
12144
5213506e 12145
278a7a38
AO
12146 done
12147fi
12148
12149if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12150 for ncn_progname in nm; do
5213506e
RW
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12152$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12153 if test -x $with_build_time_tools/${ncn_progname}; then
12154 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12156$as_echo "yes" >&6; }
e8b05380
PB
12157 break
12158 else
5213506e
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12160$as_echo "no" >&6; }
e8b05380
PB
12161 fi
12162 done
12163fi
12164
12165if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12166 for ncn_progname in nm; do
12167 if test -n "$ncn_target_tool_prefix"; then
12168 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12169set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171$as_echo_n "checking for $ac_word... " >&6; }
12172if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
ca9f4b81 12174else
4de997d1
PB
12175 if test -n "$NM_FOR_TARGET"; then
12176 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12177else
1c710c3c
DJ
12178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179for as_dir in $PATH
12180do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
5213506e
RW
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12185 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12187 break 2
12188 fi
12189done
5213506e
RW
12190 done
12191IFS=$as_save_IFS
1c710c3c 12192
ca9f4b81
AO
12193fi
12194fi
1c710c3c 12195NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12196if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12198$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12199else
5213506e
RW
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201$as_echo "no" >&6; }
ca9f4b81
AO
12202fi
12203
5213506e 12204
e8b05380
PB
12205 fi
12206 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12208set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12210$as_echo_n "checking for $ac_word... " >&6; }
12211if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12212 $as_echo_n "(cached) " >&6
ca9f4b81 12213else
2693c0b0
PB
12214 if test -n "$NM_FOR_TARGET"; then
12215 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12216else
1c710c3c
DJ
12217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218for as_dir in $PATH
12219do
12220 IFS=$as_save_IFS
12221 test -z "$as_dir" && as_dir=.
5213506e
RW
12222 for ac_exec_ext in '' $ac_executable_extensions; do
12223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12224 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12226 break 2
12227 fi
12228done
5213506e
RW
12229 done
12230IFS=$as_save_IFS
1c710c3c 12231
ca9f4b81
AO
12232fi
12233fi
1c710c3c 12234NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12235if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12237$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12238else
5213506e
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
ca9f4b81 12241fi
1c710c3c 12242
5213506e 12243
e8b05380
PB
12244 fi
12245 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12246 done
12247fi
1c710c3c 12248
2693c0b0
PB
12249if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12250 set dummy nm
12251 if test $build = $target ; then
12252 NM_FOR_TARGET="$2"
ca9f4b81 12253 else
2693c0b0 12254 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12255 fi
1c00b503
PB
12256else
12257 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12258fi
12259
d1f8db0c
PB
12260else
12261 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12262fi
12263
12264
12265
12266
12267if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12268 if test -n "$with_build_time_tools"; then
5213506e
RW
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12270$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12271 if test -x $with_build_time_tools/objdump; then
12272 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12273 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12275$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12276 else
5213506e
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278$as_echo "no" >&6; }
d1f8db0c 12279 fi
e8b05380
PB
12280 elif test $build != $host && test $have_gcc_for_target = yes; then
12281 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12282 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12283 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12284 fi
12285fi
3e19841a 12286if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12287 # Extract the first word of "objdump", so it can be a program name with args.
12288set dummy objdump; ac_word=$2
5213506e
RW
12289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290$as_echo_n "checking for $ac_word... " >&6; }
12291if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12292 $as_echo_n "(cached) " >&6
e8b05380 12293else
1c710c3c
DJ
12294 case $OBJDUMP_FOR_TARGET in
12295 [\\/]* | ?:[\\/]*)
e8b05380
PB
12296 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12297 ;;
e8b05380 12298 *)
1c710c3c
DJ
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300for as_dir in $gcc_cv_tool_dirs
12301do
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
5213506e
RW
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12306 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12308 break 2
12309 fi
12310done
5213506e
RW
12311 done
12312IFS=$as_save_IFS
1c710c3c 12313
e8b05380
PB
12314 ;;
12315esac
12316fi
1c710c3c 12317OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12318if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12320$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12321else
5213506e
RW
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323$as_echo "no" >&6; }
e8b05380
PB
12324fi
12325
5213506e 12326
e8b05380
PB
12327fi
12328if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12329
12330
12331if test -n "$OBJDUMP_FOR_TARGET"; then
12332 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12333elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12334 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12335fi
12336
12337if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12338 for ncn_progname in objdump; do
12339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12340set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12342$as_echo_n "checking for $ac_word... " >&6; }
12343if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
278a7a38
AO
12345else
12346 if test -n "$OBJDUMP_FOR_TARGET"; then
12347 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12348else
12349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350for as_dir in $PATH
12351do
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
5213506e
RW
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12356 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12358 break 2
12359 fi
12360done
5213506e
RW
12361 done
12362IFS=$as_save_IFS
278a7a38
AO
12363
12364fi
12365fi
12366OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12367if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12369$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12370else
5213506e
RW
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372$as_echo "no" >&6; }
278a7a38
AO
12373fi
12374
5213506e 12375
278a7a38
AO
12376 done
12377fi
12378
12379if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12380 for ncn_progname in objdump; do
5213506e
RW
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12382$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12383 if test -x $with_build_time_tools/${ncn_progname}; then
12384 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12386$as_echo "yes" >&6; }
e8b05380
PB
12387 break
12388 else
5213506e
RW
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12390$as_echo "no" >&6; }
e8b05380
PB
12391 fi
12392 done
12393fi
12394
12395if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12396 for ncn_progname in objdump; do
12397 if test -n "$ncn_target_tool_prefix"; then
12398 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12399set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12401$as_echo_n "checking for $ac_word... " >&6; }
12402if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12403 $as_echo_n "(cached) " >&6
d739199a
DJ
12404else
12405 if test -n "$OBJDUMP_FOR_TARGET"; then
12406 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12407else
1c710c3c
DJ
12408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12409for as_dir in $PATH
12410do
12411 IFS=$as_save_IFS
12412 test -z "$as_dir" && as_dir=.
5213506e
RW
12413 for ac_exec_ext in '' $ac_executable_extensions; do
12414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12415 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12417 break 2
12418 fi
12419done
5213506e
RW
12420 done
12421IFS=$as_save_IFS
1c710c3c 12422
d739199a
DJ
12423fi
12424fi
1c710c3c 12425OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12426if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12428$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12429else
5213506e
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431$as_echo "no" >&6; }
d739199a
DJ
12432fi
12433
5213506e 12434
e8b05380
PB
12435 fi
12436 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12438set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12440$as_echo_n "checking for $ac_word... " >&6; }
12441if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12442 $as_echo_n "(cached) " >&6
d739199a
DJ
12443else
12444 if test -n "$OBJDUMP_FOR_TARGET"; then
12445 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12446else
1c710c3c
DJ
12447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448for as_dir in $PATH
12449do
12450 IFS=$as_save_IFS
12451 test -z "$as_dir" && as_dir=.
5213506e
RW
12452 for ac_exec_ext in '' $ac_executable_extensions; do
12453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12454 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12456 break 2
12457 fi
12458done
5213506e
RW
12459 done
12460IFS=$as_save_IFS
1c710c3c 12461
d739199a
DJ
12462fi
12463fi
1c710c3c 12464OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12465if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12467$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12468else
5213506e
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
d739199a 12471fi
1c710c3c 12472
5213506e 12473
e8b05380
PB
12474 fi
12475 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12476 done
12477fi
1c710c3c 12478
d739199a
DJ
12479if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12480 set dummy objdump
12481 if test $build = $target ; then
12482 OBJDUMP_FOR_TARGET="$2"
12483 else
12484 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12485 fi
1c00b503
PB
12486else
12487 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12488fi
12489
d1f8db0c
PB
12490else
12491 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12492fi
12493
12494
12495
12496
12497if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12498 if test -n "$with_build_time_tools"; then
5213506e
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12500$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12501 if test -x $with_build_time_tools/ranlib; then
12502 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12503 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12505$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12506 else
5213506e
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12508$as_echo "no" >&6; }
d1f8db0c 12509 fi
e8b05380
PB
12510 elif test $build != $host && test $have_gcc_for_target = yes; then
12511 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12512 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12513 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12514 fi
12515fi
3e19841a 12516if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12517 # Extract the first word of "ranlib", so it can be a program name with args.
12518set dummy ranlib; ac_word=$2
5213506e
RW
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520$as_echo_n "checking for $ac_word... " >&6; }
12521if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
e8b05380 12523else
1c710c3c
DJ
12524 case $RANLIB_FOR_TARGET in
12525 [\\/]* | ?:[\\/]*)
e8b05380
PB
12526 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12527 ;;
e8b05380 12528 *)
1c710c3c
DJ
12529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12530for as_dir in $gcc_cv_tool_dirs
12531do
12532 IFS=$as_save_IFS
12533 test -z "$as_dir" && as_dir=.
5213506e
RW
12534 for ac_exec_ext in '' $ac_executable_extensions; do
12535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12536 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12538 break 2
12539 fi
12540done
5213506e
RW
12541 done
12542IFS=$as_save_IFS
1c710c3c 12543
e8b05380
PB
12544 ;;
12545esac
12546fi
1c710c3c 12547RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12548if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12550$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12551else
5213506e
RW
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553$as_echo "no" >&6; }
e8b05380
PB
12554fi
12555
5213506e 12556
e8b05380
PB
12557fi
12558if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12559
12560
12561if test -n "$RANLIB_FOR_TARGET"; then
12562 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12563elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12564 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12565fi
12566
12567if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12568 for ncn_progname in ranlib; do
12569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12570set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12572$as_echo_n "checking for $ac_word... " >&6; }
12573if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12574 $as_echo_n "(cached) " >&6
278a7a38
AO
12575else
12576 if test -n "$RANLIB_FOR_TARGET"; then
12577 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12578else
12579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580for as_dir in $PATH
12581do
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
5213506e
RW
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12586 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12588 break 2
12589 fi
12590done
5213506e
RW
12591 done
12592IFS=$as_save_IFS
278a7a38
AO
12593
12594fi
12595fi
12596RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12597if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12599$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12600else
5213506e
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12602$as_echo "no" >&6; }
278a7a38
AO
12603fi
12604
5213506e 12605
278a7a38
AO
12606 done
12607fi
12608
12609if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12610 for ncn_progname in ranlib; do
5213506e
RW
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12612$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12613 if test -x $with_build_time_tools/${ncn_progname}; then
12614 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12616$as_echo "yes" >&6; }
e8b05380
PB
12617 break
12618 else
5213506e
RW
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
e8b05380
PB
12621 fi
12622 done
12623fi
12624
12625if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12626 for ncn_progname in ranlib; do
12627 if test -n "$ncn_target_tool_prefix"; then
12628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12629set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12631$as_echo_n "checking for $ac_word... " >&6; }
12632if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12633 $as_echo_n "(cached) " >&6
ca9f4b81 12634else
4de997d1
PB
12635 if test -n "$RANLIB_FOR_TARGET"; then
12636 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12637else
1c710c3c
DJ
12638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12639for as_dir in $PATH
12640do
12641 IFS=$as_save_IFS
12642 test -z "$as_dir" && as_dir=.
5213506e
RW
12643 for ac_exec_ext in '' $ac_executable_extensions; do
12644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12645 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12647 break 2
12648 fi
12649done
5213506e
RW
12650 done
12651IFS=$as_save_IFS
1c710c3c 12652
ca9f4b81
AO
12653fi
12654fi
1c710c3c 12655RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12656if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12658$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12659else
5213506e
RW
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661$as_echo "no" >&6; }
ca9f4b81
AO
12662fi
12663
5213506e 12664
e8b05380
PB
12665 fi
12666 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12668set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670$as_echo_n "checking for $ac_word... " >&6; }
12671if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12672 $as_echo_n "(cached) " >&6
ca9f4b81 12673else
2693c0b0
PB
12674 if test -n "$RANLIB_FOR_TARGET"; then
12675 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12676else
1c710c3c
DJ
12677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12678for as_dir in $PATH
12679do
12680 IFS=$as_save_IFS
12681 test -z "$as_dir" && as_dir=.
5213506e
RW
12682 for ac_exec_ext in '' $ac_executable_extensions; do
12683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12684 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12686 break 2
12687 fi
12688done
5213506e
RW
12689 done
12690IFS=$as_save_IFS
1c710c3c 12691
ca9f4b81
AO
12692fi
12693fi
1c710c3c 12694RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12695if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12697$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12698else
5213506e
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
ca9f4b81 12701fi
1c710c3c 12702
5213506e 12703
e8b05380
PB
12704 fi
12705 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12706 done
12707fi
1c710c3c 12708
e8b05380
PB
12709if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12710 set dummy ranlib
12711 if test $build = $target ; then
12712 RANLIB_FOR_TARGET="$2"
12713 else
12714 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12715 fi
1c00b503
PB
12716else
12717 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12718fi
2693c0b0 12719
d1f8db0c
PB
12720else
12721 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12722fi
12723
e8b05380
PB
12724
12725
12726
12727if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12728 if test -n "$with_build_time_tools"; then
5213506e
RW
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12730$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12731 if test -x $with_build_time_tools/strip; then
12732 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12733 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12735$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12736 else
5213506e
RW
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738$as_echo "no" >&6; }
d1f8db0c 12739 fi
e8b05380
PB
12740 elif test $build != $host && test $have_gcc_for_target = yes; then
12741 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12742 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12743 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12744 fi
12745fi
3e19841a 12746if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12747 # Extract the first word of "strip", so it can be a program name with args.
12748set dummy strip; ac_word=$2
5213506e
RW
12749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12750$as_echo_n "checking for $ac_word... " >&6; }
12751if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12752 $as_echo_n "(cached) " >&6
e8b05380 12753else
1c710c3c
DJ
12754 case $STRIP_FOR_TARGET in
12755 [\\/]* | ?:[\\/]*)
e8b05380
PB
12756 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12757 ;;
e8b05380 12758 *)
1c710c3c
DJ
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760for as_dir in $gcc_cv_tool_dirs
12761do
12762 IFS=$as_save_IFS
12763 test -z "$as_dir" && as_dir=.
5213506e
RW
12764 for ac_exec_ext in '' $ac_executable_extensions; do
12765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12766 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12768 break 2
12769 fi
12770done
5213506e
RW
12771 done
12772IFS=$as_save_IFS
1c710c3c 12773
e8b05380
PB
12774 ;;
12775esac
12776fi
1c710c3c 12777STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12778if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12780$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12781else
5213506e
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12783$as_echo "no" >&6; }
e8b05380
PB
12784fi
12785
5213506e 12786
e8b05380
PB
12787fi
12788if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12789
12790
12791if test -n "$STRIP_FOR_TARGET"; then
12792 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12793elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12794 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12795fi
12796
12797if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12798 for ncn_progname in strip; do
12799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12800set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12802$as_echo_n "checking for $ac_word... " >&6; }
12803if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12804 $as_echo_n "(cached) " >&6
278a7a38
AO
12805else
12806 if test -n "$STRIP_FOR_TARGET"; then
12807 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12808else
12809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $PATH
12811do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
5213506e
RW
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12816 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12818 break 2
12819 fi
12820done
5213506e
RW
12821 done
12822IFS=$as_save_IFS
278a7a38
AO
12823
12824fi
12825fi
12826STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12827if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12829$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12830else
5213506e
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12832$as_echo "no" >&6; }
278a7a38
AO
12833fi
12834
5213506e 12835
278a7a38
AO
12836 done
12837fi
12838
12839if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12840 for ncn_progname in strip; do
5213506e
RW
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12842$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12843 if test -x $with_build_time_tools/${ncn_progname}; then
12844 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12846$as_echo "yes" >&6; }
e8b05380
PB
12847 break
12848 else
5213506e
RW
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850$as_echo "no" >&6; }
e8b05380
PB
12851 fi
12852 done
12853fi
12854
12855if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12856 for ncn_progname in strip; do
12857 if test -n "$ncn_target_tool_prefix"; then
12858 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12859set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12861$as_echo_n "checking for $ac_word... " >&6; }
12862if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12863 $as_echo_n "(cached) " >&6
af71363e
AS
12864else
12865 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12866 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12867else
12868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12869for as_dir in $PATH
12870do
12871 IFS=$as_save_IFS
12872 test -z "$as_dir" && as_dir=.
5213506e
RW
12873 for ac_exec_ext in '' $ac_executable_extensions; do
12874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12875 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12877 break 2
12878 fi
12879done
5213506e
RW
12880 done
12881IFS=$as_save_IFS
1c710c3c 12882
040b1c5a
GK
12883fi
12884fi
1c710c3c 12885STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12886if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12888$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12889else
5213506e
RW
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12891$as_echo "no" >&6; }
040b1c5a
GK
12892fi
12893
5213506e 12894
e8b05380
PB
12895 fi
12896 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12898set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12900$as_echo_n "checking for $ac_word... " >&6; }
12901if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12902 $as_echo_n "(cached) " >&6
040b1c5a
GK
12903else
12904 if test -n "$STRIP_FOR_TARGET"; then
12905 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12906else
1c710c3c
DJ
12907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12908for as_dir in $PATH
12909do
12910 IFS=$as_save_IFS
12911 test -z "$as_dir" && as_dir=.
5213506e
RW
12912 for ac_exec_ext in '' $ac_executable_extensions; do
12913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12914 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12916 break 2
12917 fi
12918done
5213506e
RW
12919 done
12920IFS=$as_save_IFS
1c710c3c 12921
040b1c5a
GK
12922fi
12923fi
1c710c3c 12924STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12925if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12927$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12928else
5213506e
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
040b1c5a 12931fi
1c710c3c 12932
5213506e 12933
e8b05380
PB
12934 fi
12935 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12936 done
12937fi
1c710c3c 12938
040b1c5a
GK
12939if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12940 set dummy strip
12941 if test $build = $target ; then
12942 STRIP_FOR_TARGET="$2"
12943 else
12944 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12945 fi
1c00b503
PB
12946else
12947 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12948fi
12949
d1f8db0c
PB
12950else
12951 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12952fi
12953
12954
12955
12956
12957if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12958 if test -n "$with_build_time_tools"; then
5213506e
RW
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12960$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12961 if test -x $with_build_time_tools/windres; then
12962 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12963 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12965$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12966 else
5213506e
RW
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12968$as_echo "no" >&6; }
d1f8db0c 12969 fi
e8b05380
PB
12970 elif test $build != $host && test $have_gcc_for_target = yes; then
12971 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12972 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12973 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12974 fi
12975fi
3e19841a 12976if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12977 # Extract the first word of "windres", so it can be a program name with args.
12978set dummy windres; ac_word=$2
5213506e
RW
12979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12980$as_echo_n "checking for $ac_word... " >&6; }
12981if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12982 $as_echo_n "(cached) " >&6
e8b05380 12983else
1c710c3c
DJ
12984 case $WINDRES_FOR_TARGET in
12985 [\\/]* | ?:[\\/]*)
e8b05380
PB
12986 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12987 ;;
e8b05380 12988 *)
1c710c3c
DJ
12989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12990for as_dir in $gcc_cv_tool_dirs
12991do
12992 IFS=$as_save_IFS
12993 test -z "$as_dir" && as_dir=.
5213506e
RW
12994 for ac_exec_ext in '' $ac_executable_extensions; do
12995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12996 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12998 break 2
12999 fi
13000done
5213506e
RW
13001 done
13002IFS=$as_save_IFS
1c710c3c 13003
e8b05380
PB
13004 ;;
13005esac
13006fi
1c710c3c 13007WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13008if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13010$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13011else
5213506e
RW
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13013$as_echo "no" >&6; }
e8b05380
PB
13014fi
13015
5213506e 13016
e8b05380
PB
13017fi
13018if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13019
13020
13021if test -n "$WINDRES_FOR_TARGET"; then
13022 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13023elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13024 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13025fi
13026
13027if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13028 for ncn_progname in windres; do
13029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13030set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13032$as_echo_n "checking for $ac_word... " >&6; }
13033if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13034 $as_echo_n "(cached) " >&6
278a7a38
AO
13035else
13036 if test -n "$WINDRES_FOR_TARGET"; then
13037 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13038else
13039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $PATH
13041do
13042 IFS=$as_save_IFS
13043 test -z "$as_dir" && as_dir=.
5213506e
RW
13044 for ac_exec_ext in '' $ac_executable_extensions; do
13045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13046 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13048 break 2
13049 fi
13050done
5213506e
RW
13051 done
13052IFS=$as_save_IFS
278a7a38
AO
13053
13054fi
13055fi
13056WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13057if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13059$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13060else
5213506e
RW
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062$as_echo "no" >&6; }
278a7a38
AO
13063fi
13064
5213506e 13065
278a7a38
AO
13066 done
13067fi
13068
13069if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13070 for ncn_progname in windres; do
5213506e
RW
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13072$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13073 if test -x $with_build_time_tools/${ncn_progname}; then
13074 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13076$as_echo "yes" >&6; }
e8b05380
PB
13077 break
13078 else
5213506e
RW
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080$as_echo "no" >&6; }
e8b05380
PB
13081 fi
13082 done
13083fi
13084
13085if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13086 for ncn_progname in windres; do
13087 if test -n "$ncn_target_tool_prefix"; then
13088 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13089set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13091$as_echo_n "checking for $ac_word... " >&6; }
13092if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
ca9f4b81 13094else
4de997d1
PB
13095 if test -n "$WINDRES_FOR_TARGET"; then
13096 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13097else
1c710c3c
DJ
13098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099for as_dir in $PATH
13100do
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
5213506e
RW
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13105 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13107 break 2
13108 fi
13109done
5213506e
RW
13110 done
13111IFS=$as_save_IFS
1c710c3c 13112
ca9f4b81
AO
13113fi
13114fi
1c710c3c 13115WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13116if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13118$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13119else
5213506e
RW
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121$as_echo "no" >&6; }
ca9f4b81
AO
13122fi
13123
5213506e 13124
e8b05380
PB
13125 fi
13126 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13128set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13130$as_echo_n "checking for $ac_word... " >&6; }
13131if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13132 $as_echo_n "(cached) " >&6
ca9f4b81 13133else
2693c0b0
PB
13134 if test -n "$WINDRES_FOR_TARGET"; then
13135 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13136else
1c710c3c
DJ
13137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138for as_dir in $PATH
13139do
13140 IFS=$as_save_IFS
13141 test -z "$as_dir" && as_dir=.
5213506e
RW
13142 for ac_exec_ext in '' $ac_executable_extensions; do
13143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13144 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13146 break 2
13147 fi
13148done
5213506e
RW
13149 done
13150IFS=$as_save_IFS
1c710c3c 13151
ca9f4b81
AO
13152fi
13153fi
1c710c3c 13154WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13155if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13157$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13158else
5213506e
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160$as_echo "no" >&6; }
ca9f4b81 13161fi
1c710c3c 13162
5213506e 13163
e8b05380
PB
13164 fi
13165 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13166 done
13167fi
1c710c3c 13168
2693c0b0
PB
13169if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13170 set dummy windres
13171 if test $build = $target ; then
13172 WINDRES_FOR_TARGET="$2"
ca9f4b81 13173 else
2693c0b0 13174 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13175 fi
1c00b503
PB
13176else
13177 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13178fi
13179
d1f8db0c
PB
13180else
13181 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13182fi
13183
4977bab6 13184
901119ae
KT
13185
13186
13187if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13188 if test -n "$with_build_time_tools"; then
5213506e
RW
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13190$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13191 if test -x $with_build_time_tools/windmc; then
13192 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13193 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13195$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13196 else
5213506e
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13198$as_echo "no" >&6; }
901119ae
KT
13199 fi
13200 elif test $build != $host && test $have_gcc_for_target = yes; then
13201 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13202 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13203 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13204 fi
13205fi
13206if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13207 # Extract the first word of "windmc", so it can be a program name with args.
13208set dummy windmc; ac_word=$2
5213506e
RW
13209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13210$as_echo_n "checking for $ac_word... " >&6; }
13211if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13212 $as_echo_n "(cached) " >&6
901119ae
KT
13213else
13214 case $WINDMC_FOR_TARGET in
13215 [\\/]* | ?:[\\/]*)
13216 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13217 ;;
13218 *)
13219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13220for as_dir in $gcc_cv_tool_dirs
13221do
13222 IFS=$as_save_IFS
13223 test -z "$as_dir" && as_dir=.
5213506e
RW
13224 for ac_exec_ext in '' $ac_executable_extensions; do
13225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13226 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13228 break 2
13229 fi
13230done
5213506e
RW
13231 done
13232IFS=$as_save_IFS
901119ae
KT
13233
13234 ;;
13235esac
13236fi
13237WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13238if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13240$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13241else
5213506e
RW
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243$as_echo "no" >&6; }
901119ae
KT
13244fi
13245
5213506e 13246
901119ae
KT
13247fi
13248if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13249
13250
13251if test -n "$WINDMC_FOR_TARGET"; then
13252 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13253elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13254 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13255fi
13256
13257if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13258 for ncn_progname in windmc; do
13259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13260set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262$as_echo_n "checking for $ac_word... " >&6; }
13263if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13264 $as_echo_n "(cached) " >&6
901119ae
KT
13265else
13266 if test -n "$WINDMC_FOR_TARGET"; then
13267 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13268else
13269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270for as_dir in $PATH
13271do
13272 IFS=$as_save_IFS
13273 test -z "$as_dir" && as_dir=.
5213506e
RW
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13276 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13278 break 2
13279 fi
13280done
5213506e
RW
13281 done
13282IFS=$as_save_IFS
901119ae
KT
13283
13284fi
13285fi
13286WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13287if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13289$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13290else
5213506e
RW
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13292$as_echo "no" >&6; }
901119ae
KT
13293fi
13294
5213506e 13295
901119ae
KT
13296 done
13297fi
13298
13299if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13300 for ncn_progname in windmc; do
5213506e
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13302$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13303 if test -x $with_build_time_tools/${ncn_progname}; then
13304 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13306$as_echo "yes" >&6; }
901119ae
KT
13307 break
13308 else
5213506e
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13310$as_echo "no" >&6; }
901119ae
KT
13311 fi
13312 done
13313fi
13314
13315if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13316 for ncn_progname in windmc; do
13317 if test -n "$ncn_target_tool_prefix"; then
13318 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13319set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321$as_echo_n "checking for $ac_word... " >&6; }
13322if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13323 $as_echo_n "(cached) " >&6
901119ae
KT
13324else
13325 if test -n "$WINDMC_FOR_TARGET"; then
13326 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13327else
13328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329for as_dir in $PATH
13330do
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
5213506e
RW
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13335 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13337 break 2
13338 fi
13339done
5213506e
RW
13340 done
13341IFS=$as_save_IFS
901119ae
KT
13342
13343fi
13344fi
13345WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13346if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13348$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13349else
5213506e
RW
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351$as_echo "no" >&6; }
901119ae
KT
13352fi
13353
5213506e 13354
901119ae
KT
13355 fi
13356 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13358set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13360$as_echo_n "checking for $ac_word... " >&6; }
13361if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13362 $as_echo_n "(cached) " >&6
901119ae
KT
13363else
13364 if test -n "$WINDMC_FOR_TARGET"; then
13365 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13366else
13367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13368for as_dir in $PATH
13369do
13370 IFS=$as_save_IFS
13371 test -z "$as_dir" && as_dir=.
5213506e
RW
13372 for ac_exec_ext in '' $ac_executable_extensions; do
13373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13374 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13376 break 2
13377 fi
13378done
5213506e
RW
13379 done
13380IFS=$as_save_IFS
901119ae
KT
13381
13382fi
13383fi
13384WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13385if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13387$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13388else
5213506e
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390$as_echo "no" >&6; }
901119ae
KT
13391fi
13392
5213506e 13393
901119ae
KT
13394 fi
13395 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13396 done
13397fi
13398
13399if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13400 set dummy windmc
13401 if test $build = $target ; then
13402 WINDMC_FOR_TARGET="$2"
13403 else
13404 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13405 fi
1c00b503
PB
13406else
13407 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13408fi
13409
13410else
13411 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13412fi
13413
13414
2abefe3d
PB
13415RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13416
5213506e
RW
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13418$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13419if test "x${build}" != "x${host}" ; then
e8b05380
PB
13420 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13421 # We already found the complete path
172e41aa 13422 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13424$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13425 else
13426 # Canadian cross, just use what we found
5213506e
RW
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13428$as_echo "pre-installed" >&6; }
e8b05380 13429 fi
2abefe3d
PB
13430else
13431 ok=yes
13432 case " ${configdirs} " in
13433 *" binutils "*) ;;
13434 *) ok=no ;;
13435 esac
1c710c3c 13436
2abefe3d
PB
13437 if test $ok = yes; then
13438 # An in-tree tool is available and we can use it
13439 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13441$as_echo "just compiled" >&6; }
e8b05380
PB
13442 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13443 # We already found the complete path
172e41aa 13444 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13446$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13447 elif test "x$target" = "x$host"; then
13448 # We can use an host tool
13449 AR_FOR_TARGET='$(AR)'
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13451$as_echo "host tool" >&6; }
2abefe3d
PB
13452 else
13453 # We need a cross tool
5213506e
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13455$as_echo "pre-installed" >&6; }
2abefe3d
PB
13456 fi
13457fi
0b0dc272 13458
5213506e
RW
13459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13460$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13461if test "x${build}" != "x${host}" ; then
e8b05380
PB
13462 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13463 # We already found the complete path
172e41aa 13464 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13466$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13467 else
13468 # Canadian cross, just use what we found
5213506e
RW
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13470$as_echo "pre-installed" >&6; }
e8b05380 13471 fi
2abefe3d
PB
13472else
13473 ok=yes
13474 case " ${configdirs} " in
13475 *" gas "*) ;;
13476 *) ok=no ;;
13477 esac
1c710c3c 13478
2abefe3d
PB
13479 if test $ok = yes; then
13480 # An in-tree tool is available and we can use it
13481 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13483$as_echo "just compiled" >&6; }
e8b05380
PB
13484 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13485 # We already found the complete path
172e41aa 13486 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13488$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13489 elif test "x$target" = "x$host"; then
13490 # We can use an host tool
13491 AS_FOR_TARGET='$(AS)'
5213506e
RW
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13493$as_echo "host tool" >&6; }
2abefe3d
PB
13494 else
13495 # We need a cross tool
5213506e
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13497$as_echo "pre-installed" >&6; }
2abefe3d
PB
13498 fi
13499fi
0b0dc272 13500
5213506e
RW
13501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13502$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13503if test "x${build}" != "x${host}" ; then
e8b05380
PB
13504 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13505 # We already found the complete path
172e41aa 13506 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13508$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13509 else
13510 # Canadian cross, just use what we found
5213506e
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13512$as_echo "pre-installed" >&6; }
e8b05380 13513 fi
2abefe3d
PB
13514else
13515 ok=yes
13516 case " ${configdirs} " in
13517 *" gcc "*) ;;
13518 *) ok=no ;;
13519 esac
1c710c3c 13520
2abefe3d
PB
13521 if test $ok = yes; then
13522 # An in-tree tool is available and we can use it
13523 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13525$as_echo "just compiled" >&6; }
e8b05380
PB
13526 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13527 # We already found the complete path
172e41aa 13528 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13530$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13531 elif test "x$target" = "x$host"; then
13532 # We can use an host tool
13533 CC_FOR_TARGET='$(CC)'
5213506e
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13535$as_echo "host tool" >&6; }
2abefe3d
PB
13536 else
13537 # We need a cross tool
5213506e
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13539$as_echo "pre-installed" >&6; }
2abefe3d
PB
13540 fi
13541fi
0b0dc272 13542
5213506e
RW
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13544$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13545if test "x${build}" != "x${host}" ; then
e8b05380
PB
13546 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13547 # We already found the complete path
172e41aa 13548 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13550$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13551 else
13552 # Canadian cross, just use what we found
5213506e
RW
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13554$as_echo "pre-installed" >&6; }
e8b05380 13555 fi
2abefe3d
PB
13556else
13557 ok=yes
13558 case " ${configdirs} " in
13559 *" gcc "*) ;;
13560 *) ok=no ;;
13561 esac
13562 case ,${enable_languages}, in
13563 *,c++,*) ;;
13564 *) ok=no ;;
13565 esac
13566 if test $ok = yes; then
13567 # An in-tree tool is available and we can use it
13568 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'
5213506e
RW
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13570$as_echo "just compiled" >&6; }
e8b05380
PB
13571 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13572 # We already found the complete path
172e41aa 13573 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13575$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13576 elif test "x$target" = "x$host"; then
13577 # We can use an host tool
13578 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13580$as_echo "host tool" >&6; }
2abefe3d
PB
13581 else
13582 # We need a cross tool
5213506e
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13584$as_echo "pre-installed" >&6; }
2abefe3d
PB
13585 fi
13586fi
0b0dc272 13587
5213506e
RW
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13589$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13590if test "x${build}" != "x${host}" ; then
e8b05380
PB
13591 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13592 # We already found the complete path
172e41aa 13593 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13595$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13596 else
13597 # Canadian cross, just use what we found
5213506e
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13599$as_echo "pre-installed" >&6; }
e8b05380 13600 fi
2abefe3d
PB
13601else
13602 ok=yes
13603 case " ${configdirs} " in
13604 *" gcc "*) ;;
13605 *) ok=no ;;
13606 esac
13607 case ,${enable_languages}, in
13608 *,c++,*) ;;
13609 *) ok=no ;;
13610 esac
13611 if test $ok = yes; then
13612 # An in-tree tool is available and we can use it
13613 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'
5213506e
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13615$as_echo "just compiled" >&6; }
e8b05380
PB
13616 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13617 # We already found the complete path
172e41aa 13618 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13620$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13621 elif test "x$target" = "x$host"; then
13622 # We can use an host tool
13623 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13625$as_echo "host tool" >&6; }
2abefe3d
PB
13626 else
13627 # We need a cross tool
5213506e
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13629$as_echo "pre-installed" >&6; }
2abefe3d
PB
13630 fi
13631fi
0b0dc272 13632
5213506e
RW
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13634$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13635if test "x${build}" != "x${host}" ; then
e8b05380
PB
13636 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13637 # We already found the complete path
172e41aa 13638 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13640$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13641 else
13642 # Canadian cross, just use what we found
5213506e
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13644$as_echo "pre-installed" >&6; }
e8b05380 13645 fi
2abefe3d
PB
13646else
13647 ok=yes
13648 case " ${configdirs} " in
13649 *" binutils "*) ;;
13650 *) ok=no ;;
13651 esac
1c710c3c 13652
2abefe3d
PB
13653 if test $ok = yes; then
13654 # An in-tree tool is available and we can use it
13655 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13657$as_echo "just compiled" >&6; }
e8b05380
PB
13658 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13659 # We already found the complete path
172e41aa 13660 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13662$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13663 elif test "x$target" = "x$host"; then
13664 # We can use an host tool
13665 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13667$as_echo "host tool" >&6; }
2abefe3d
PB
13668 else
13669 # We need a cross tool
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13671$as_echo "pre-installed" >&6; }
2abefe3d
PB
13672 fi
13673fi
0b0dc272 13674
5213506e
RW
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13676$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13677if test "x${build}" != "x${host}" ; then
e8b05380
PB
13678 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13679 # We already found the complete path
172e41aa 13680 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13682$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13683 else
13684 # Canadian cross, just use what we found
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13686$as_echo "pre-installed" >&6; }
e8b05380 13687 fi
2abefe3d
PB
13688else
13689 ok=yes
13690 case " ${configdirs} " in
13691 *" gcc "*) ;;
13692 *) ok=no ;;
13693 esac
1c710c3c 13694
2abefe3d
PB
13695 if test $ok = yes; then
13696 # An in-tree tool is available and we can use it
13697 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13699$as_echo "just compiled" >&6; }
e8b05380
PB
13700 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13701 # We already found the complete path
172e41aa 13702 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13704$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13705 elif test "x$target" = "x$host"; then
13706 # We can use an host tool
13707 GCC_FOR_TARGET='$()'
5213506e
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13709$as_echo "host tool" >&6; }
2abefe3d
PB
13710 else
13711 # We need a cross tool
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13713$as_echo "pre-installed" >&6; }
2abefe3d
PB
13714 fi
13715fi
0b0dc272 13716
5213506e
RW
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13718$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13719if test "x${build}" != "x${host}" ; then
e8b05380
PB
13720 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13721 # We already found the complete path
172e41aa 13722 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13724$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13725 else
13726 # Canadian cross, just use what we found
5213506e
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13728$as_echo "pre-installed" >&6; }
e8b05380 13729 fi
2abefe3d
PB
13730else
13731 ok=yes
13732 case " ${configdirs} " in
13733 *" gcc "*) ;;
13734 *) ok=no ;;
13735 esac
13736 case ,${enable_languages}, in
13737 *,java,*) ;;
13738 *) ok=no ;;
13739 esac
13740 if test $ok = yes; then
13741 # An in-tree tool is available and we can use it
13742 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13744$as_echo "just compiled" >&6; }
e8b05380
PB
13745 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13746 # We already found the complete path
172e41aa 13747 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13749$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13750 elif test "x$target" = "x$host"; then
13751 # We can use an host tool
13752 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13754$as_echo "host tool" >&6; }
2abefe3d
PB
13755 else
13756 # We need a cross tool
5213506e
RW
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13758$as_echo "pre-installed" >&6; }
2abefe3d
PB
13759 fi
13760fi
0b0dc272 13761
5213506e
RW
13762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13763$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13764if test "x${build}" != "x${host}" ; then
e8b05380
PB
13765 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13766 # We already found the complete path
172e41aa 13767 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13769$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13770 else
13771 # Canadian cross, just use what we found
5213506e
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13773$as_echo "pre-installed" >&6; }
e8b05380 13774 fi
2abefe3d
PB
13775else
13776 ok=yes
13777 case " ${configdirs} " in
13778 *" gcc "*) ;;
13779 *) ok=no ;;
13780 esac
13781 case ,${enable_languages}, in
13782 *,fortran,*) ;;
13783 *) ok=no ;;
13784 esac
13785 if test $ok = yes; then
13786 # An in-tree tool is available and we can use it
13787 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13789$as_echo "just compiled" >&6; }
e8b05380
PB
13790 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
172e41aa 13792 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13795 elif test "x$target" = "x$host"; then
13796 # We can use an host tool
13797 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13799$as_echo "host tool" >&6; }
2abefe3d
PB
13800 else
13801 # We need a cross tool
5213506e
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13803$as_echo "pre-installed" >&6; }
2abefe3d
PB
13804 fi
13805fi
0b0dc272 13806
5213506e
RW
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13808$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13809if test "x${build}" != "x${host}" ; then
e8b05380
PB
13810 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
172e41aa 13812 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13815 else
13816 # Canadian cross, just use what we found
5213506e
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818$as_echo "pre-installed" >&6; }
e8b05380 13819 fi
2abefe3d
PB
13820else
13821 ok=yes
13822 case " ${configdirs} " in
13823 *" ld "*) ;;
13824 *) ok=no ;;
13825 esac
1c710c3c 13826
2abefe3d
PB
13827 if test $ok = yes; then
13828 # An in-tree tool is available and we can use it
13829 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13831$as_echo "just compiled" >&6; }
e8b05380
PB
13832 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
172e41aa 13834 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 LD_FOR_TARGET='$(LD)'
5213506e
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841$as_echo "host tool" >&6; }
2abefe3d
PB
13842 else
13843 # We need a cross tool
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845$as_echo "pre-installed" >&6; }
2abefe3d
PB
13846 fi
13847fi
0b0dc272 13848
5213506e
RW
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13850$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13851if test "x${build}" != "x${host}" ; then
e8b05380
PB
13852 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
172e41aa 13854 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13857 else
13858 # Canadian cross, just use what we found
5213506e
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860$as_echo "pre-installed" >&6; }
e8b05380 13861 fi
2abefe3d 13862else
e8b05380
PB
13863 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13864 # We already found the complete path
172e41aa 13865 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13867$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13868 elif test "x$target" = "x$host"; then
2abefe3d
PB
13869 # We can use an host tool
13870 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13872$as_echo "host tool" >&6; }
2abefe3d
PB
13873 else
13874 # We need a cross tool
5213506e
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13876$as_echo "pre-installed" >&6; }
2abefe3d
PB
13877 fi
13878fi
0b0dc272 13879
5213506e
RW
13880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13881$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13882if test "x${build}" != "x${host}" ; then
e8b05380
PB
13883 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13884 # We already found the complete path
172e41aa 13885 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13887$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13888 else
13889 # Canadian cross, just use what we found
5213506e
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13891$as_echo "pre-installed" >&6; }
e8b05380 13892 fi
2abefe3d
PB
13893else
13894 ok=yes
13895 case " ${configdirs} " in
13896 *" binutils "*) ;;
13897 *) ok=no ;;
13898 esac
1c710c3c 13899
2abefe3d
PB
13900 if test $ok = yes; then
13901 # An in-tree tool is available and we can use it
13902 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13904$as_echo "just compiled" >&6; }
e8b05380
PB
13905 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13906 # We already found the complete path
172e41aa 13907 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13909$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13910 elif test "x$target" = "x$host"; then
13911 # We can use an host tool
13912 NM_FOR_TARGET='$(NM)'
5213506e
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13914$as_echo "host tool" >&6; }
2abefe3d
PB
13915 else
13916 # We need a cross tool
5213506e
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13918$as_echo "pre-installed" >&6; }
2abefe3d
PB
13919 fi
13920fi
0b0dc272 13921
5213506e
RW
13922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13923$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13924if test "x${build}" != "x${host}" ; then
e8b05380
PB
13925 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13926 # We already found the complete path
172e41aa 13927 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13929$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13930 else
13931 # Canadian cross, just use what we found
5213506e
RW
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13933$as_echo "pre-installed" >&6; }
e8b05380 13934 fi
2abefe3d
PB
13935else
13936 ok=yes
13937 case " ${configdirs} " in
13938 *" binutils "*) ;;
13939 *) ok=no ;;
13940 esac
1c710c3c 13941
2abefe3d
PB
13942 if test $ok = yes; then
13943 # An in-tree tool is available and we can use it
13944 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13946$as_echo "just compiled" >&6; }
e8b05380
PB
13947 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13948 # We already found the complete path
172e41aa 13949 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13951$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13952 elif test "x$target" = "x$host"; then
13953 # We can use an host tool
13954 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13956$as_echo "host tool" >&6; }
2abefe3d
PB
13957 else
13958 # We need a cross tool
5213506e
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13960$as_echo "pre-installed" >&6; }
2abefe3d
PB
13961 fi
13962fi
0b0dc272 13963
5213506e
RW
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13965$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13966if test "x${build}" != "x${host}" ; then
e8b05380
PB
13967 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13968 # We already found the complete path
172e41aa 13969 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13971$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13972 else
13973 # Canadian cross, just use what we found
5213506e
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975$as_echo "pre-installed" >&6; }
e8b05380 13976 fi
2abefe3d
PB
13977else
13978 ok=yes
13979 case " ${configdirs} " in
13980 *" binutils "*) ;;
13981 *) ok=no ;;
13982 esac
1c710c3c 13983
2abefe3d
PB
13984 if test $ok = yes; then
13985 # An in-tree tool is available and we can use it
13986 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13988$as_echo "just compiled" >&6; }
e8b05380
PB
13989 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13990 # We already found the complete path
172e41aa 13991 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13993$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13994 elif test "x$target" = "x$host"; then
13995 # We can use an host tool
13996 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13998$as_echo "host tool" >&6; }
2abefe3d
PB
13999 else
14000 # We need a cross tool
5213506e
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14002$as_echo "pre-installed" >&6; }
2abefe3d
PB
14003 fi
14004fi
0b0dc272 14005
5213506e
RW
14006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14007$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14008if test "x${build}" != "x${host}" ; then
e8b05380
PB
14009 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14010 # We already found the complete path
172e41aa 14011 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14013$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14014 else
14015 # Canadian cross, just use what we found
5213506e
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14017$as_echo "pre-installed" >&6; }
e8b05380 14018 fi
2abefe3d
PB
14019else
14020 ok=yes
14021 case " ${configdirs} " in
14022 *" binutils "*) ;;
14023 *) ok=no ;;
14024 esac
1c710c3c 14025
2abefe3d
PB
14026 if test $ok = yes; then
14027 # An in-tree tool is available and we can use it
14028 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5213506e
RW
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14030$as_echo "just compiled" >&6; }
e8b05380
PB
14031 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14032 # We already found the complete path
172e41aa 14033 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14035$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14036 elif test "x$target" = "x$host"; then
14037 # We can use an host tool
14038 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14040$as_echo "host tool" >&6; }
2abefe3d
PB
14041 else
14042 # We need a cross tool
5213506e
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14044$as_echo "pre-installed" >&6; }
2abefe3d
PB
14045 fi
14046fi
0b0dc272 14047
5213506e
RW
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14049$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14050if test "x${build}" != "x${host}" ; then
e8b05380
PB
14051 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14052 # We already found the complete path
172e41aa 14053 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14055$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14056 else
14057 # Canadian cross, just use what we found
5213506e
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14059$as_echo "pre-installed" >&6; }
e8b05380 14060 fi
2abefe3d
PB
14061else
14062 ok=yes
14063 case " ${configdirs} " in
14064 *" binutils "*) ;;
14065 *) ok=no ;;
14066 esac
1c710c3c 14067
2abefe3d
PB
14068 if test $ok = yes; then
14069 # An in-tree tool is available and we can use it
14070 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14072$as_echo "just compiled" >&6; }
e8b05380
PB
14073 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
172e41aa 14075 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14078 elif test "x$target" = "x$host"; then
14079 # We can use an host tool
14080 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14082$as_echo "host tool" >&6; }
2abefe3d
PB
14083 else
14084 # We need a cross tool
5213506e
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14086$as_echo "pre-installed" >&6; }
2abefe3d 14087 fi
671aa708 14088fi
be912515 14089
5213506e
RW
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14091$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14092if test "x${build}" != "x${host}" ; then
14093 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14094 # We already found the complete path
14095 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14097$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14098 else
14099 # Canadian cross, just use what we found
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
901119ae
KT
14102 fi
14103else
14104 ok=yes
14105 case " ${configdirs} " in
14106 *" binutils "*) ;;
14107 *) ok=no ;;
14108 esac
14109
14110 if test $ok = yes; then
14111 # An in-tree tool is available and we can use it
14112 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14114$as_echo "just compiled" >&6; }
901119ae
KT
14115 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
14117 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14120 elif test "x$target" = "x$host"; then
14121 # We can use an host tool
14122 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14124$as_echo "host tool" >&6; }
901119ae
KT
14125 else
14126 # We need a cross tool
5213506e
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14128$as_echo "pre-installed" >&6; }
901119ae
KT
14129 fi
14130fi
14131
be912515
NN
14132
14133
2abefe3d 14134
0b0dc272 14135
671aa708
NN
14136# Certain tools may need extra flags.
14137AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14138RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14139NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14140
2abefe3d
PB
14141# When building target libraries, except in a Canadian cross, we use
14142# the same toolchain as the compiler we just built.
14143COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14144COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14145COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14146if test $host = $build; then
14147 case " $configdirs " in
14148 *" gcc "*)
14149 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14150 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14151 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14152 ;;
14153 esac
14154fi
14155
14156
14157
14158
14159
5213506e
RW
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14161$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14162# Check whether --enable-maintainer-mode was given.
14163if test "${enable_maintainer_mode+set}" = set; then :
14164 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14165else
14166 USE_MAINTAINER_MODE=no
5213506e
RW
14167fi
14168
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14170$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14171
14172
14173if test "$USE_MAINTAINER_MODE" = yes; then
14174 MAINTAINER_MODE_TRUE=
14175 MAINTAINER_MODE_FALSE='#'
14176else
14177 MAINTAINER_MODE_TRUE='#'
14178 MAINTAINER_MODE_FALSE=
1c710c3c 14179fi
ee03dc5e
AO
14180MAINT=$MAINTAINER_MODE_TRUE
14181
2805b53a
NN
14182# ---------------------
14183# GCC bootstrap support
14184# ---------------------
14185
14186# Stage specific cflags for build.
14187stage1_cflags="-g"
14188case $build in
14189 vax-*-*)
14190 case ${GCC} in
14191 yes) stage1_cflags="-g -Wa,-J" ;;
14192 *) stage1_cflags="-g -J" ;;
14193 esac ;;
2805b53a
NN
14194esac
14195
0b50988a 14196# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 14197if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
14198 saved_CFLAGS="$CFLAGS"
14199
14200 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14201 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14203$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
14205/* end confdefs.h. */
14206
9cc1244e
JJ
14207#if (__GNUC__ < 3) \
14208 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14209 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14210#error http://gcc.gnu.org/PR29382
14211#endif
14212
1c710c3c
DJ
14213int
14214main ()
14215{
14216
14217 ;
14218 return 0;
14219}
14220_ACEOF
5213506e
RW
14221if ac_fn_c_try_compile "$LINENO"; then :
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14223$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14224else
5213506e
RW
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14226$as_echo "no" >&6; }
1c710c3c 14227fi
5213506e 14228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14229
14230 CFLAGS="$saved_CFLAGS"
14231fi
14232
14233
2805b53a 14234
8efea775 14235# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14236# Check whether --enable-stage1-checking was given.
14237if test "${enable_stage1_checking+set}" = set; then :
14238 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14239else
e643dc23 14240 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14241 stage1_checking=--enable-checking=yes,types
8efea775 14242else
e643dc23 14243 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14244fi
5213506e 14245fi
8efea775
PB
14246
14247
2aeb72e9 14248
5213506e
RW
14249# Enable -Werror in bootstrap stage2 and later.
14250# Check whether --enable-werror was given.
14251if test "${enable_werror+set}" = set; then :
14252 enableval=$enable_werror;
2805b53a 14253else
416cfb5e 14254 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14255 enable_werror=yes
88fceb68
PB
14256else
14257 enable_werror=no
14258fi
5213506e
RW
14259fi
14260
09a9c095
NN
14261case ${enable_werror} in
14262 yes) stage2_werror_flag="--enable-werror-always" ;;
14263 *) stage2_werror_flag="" ;;
2805b53a
NN
14264esac
14265
14266
f2689b09
SE
14267# Specify what files to not compare during bootstrap.
14268
14269compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14270case "$target" in
14271 hppa*64*-*-hpux*) ;;
14272 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14273esac
14274
14275
5213506e
RW
14276ac_config_files="$ac_config_files Makefile"
14277
1c710c3c 14278cat >confcache <<\_ACEOF
671aa708
NN
14279# This file is a shell script that caches the results of configure
14280# tests run on this system so they can be shared between configure
1c710c3c
DJ
14281# scripts and configure runs, see configure's option --config-cache.
14282# It is not useful on other systems. If it contains results you don't
14283# want to keep, you may remove or edit it.
671aa708 14284#
1c710c3c
DJ
14285# config.status only pays attention to the cache file if you give it
14286# the --recheck option to rerun configure.
671aa708 14287#
1c710c3c
DJ
14288# `ac_cv_env_foo' variables (set or unset) will be overridden when
14289# loading this file, other *unset* `ac_cv_foo' will be assigned the
14290# following values.
14291
14292_ACEOF
14293
671aa708
NN
14294# The following way of writing the cache mishandles newlines in values,
14295# but we know of no workaround that is simple, portable, and efficient.
5213506e 14296# So, we kill variables containing newlines.
671aa708
NN
14297# Ultrix sh set writes to stderr and can't be redirected directly,
14298# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14299(
14300 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14301 eval ac_val=\$$ac_var
14302 case $ac_val in #(
14303 *${as_nl}*)
14304 case $ac_var in #(
14305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14306$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14307 esac
14308 case $ac_var in #(
14309 _ | IFS | as_nl) ;; #(
14310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14311 *) { eval $ac_var=; unset $ac_var;} ;;
14312 esac ;;
14313 esac
14314 done
14315
1c710c3c 14316 (set) 2>&1 |
5213506e
RW
14317 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14318 *${as_nl}ac_space=\ *)
14319 # `set' does not quote correctly, so add quotes: double-quote
14320 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14321 sed -n \
14322 "s/'/'\\\\''/g;
14323 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14324 ;; #(
1c710c3c
DJ
14325 *)
14326 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14328 ;;
5213506e
RW
14329 esac |
14330 sort
14331) |
1c710c3c 14332 sed '
5213506e 14333 /^ac_cv_env_/b end
1c710c3c 14334 t clear
5213506e 14335 :clear
1c710c3c
DJ
14336 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14337 t end
5213506e
RW
14338 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14339 :end' >>confcache
14340if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14341 if test -w "$cache_file"; then
14342 test "x$cache_file" != "x/dev/null" &&
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14344$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14345 cat confcache >$cache_file
671aa708 14346 else
5213506e
RW
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14348$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14349 fi
4977bab6 14350fi
671aa708 14351rm -f confcache
79c06341 14352
671aa708
NN
14353test "x$prefix" = xNONE && prefix=$ac_default_prefix
14354# Let make expand exec_prefix.
14355test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14356
671aa708
NN
14357# Transform confdefs.h into DEFS.
14358# Protect against shell expansion while executing Makefile rules.
14359# Protect against Makefile macro expansion.
1c710c3c
DJ
14360#
14361# If the first sed substitution is executed (which looks for macros that
5213506e 14362# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14363# look for a macro that doesn't take arguments.
5213506e
RW
14364ac_script='
14365:mline
14366/\\$/{
14367 N
14368 s,\\\n,,
14369 b mline
14370}
1c710c3c 14371t clear
5213506e
RW
14372:clear
14373s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14374t quote
5213506e 14375s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14376t quote
5213506e
RW
14377b any
14378:quote
14379s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14380s/\[/\\&/g
14381s/\]/\\&/g
14382s/\$/$$/g
14383H
14384:any
14385${
14386 g
14387 s/^\n//
14388 s/\n/ /g
14389 p
14390}
14391'
14392DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14393
14394
14395ac_libobjs=
14396ac_ltlibobjs=
14397for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14398 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14399 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14400 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14401 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14402 # will be set to the directory where LIBOBJS objects are built.
14403 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14404 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14405done
14406LIBOBJS=$ac_libobjs
fb0103e5 14407
1c710c3c 14408LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14409
af71363e 14410
1c710c3c
DJ
14411
14412: ${CONFIG_STATUS=./config.status}
5213506e 14413ac_write_fail=0
1c710c3c
DJ
14414ac_clean_files_save=$ac_clean_files
14415ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14416{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14417$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14418as_write_fail=0
14419cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14420#! $SHELL
14421# Generated by $as_me.
671aa708 14422# Run this file to recreate the current configuration.
671aa708 14423# Compiler output produced by configure, useful for debugging
1c710c3c 14424# configure, is in config.log if it exists.
0b0dc272 14425
1c710c3c
DJ
14426debug=false
14427ac_cs_recheck=false
14428ac_cs_silent=false
1c710c3c 14429
5213506e
RW
14430SHELL=\${CONFIG_SHELL-$SHELL}
14431export SHELL
14432_ASEOF
14433cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14434## -------------------- ##
14435## M4sh Initialization. ##
14436## -------------------- ##
14437
14438# Be more Bourne compatible
14439DUALCASE=1; export DUALCASE # for MKS sh
14440if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14441 emulate sh
14442 NULLCMD=:
5213506e 14443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14444 # is contrary to our usage. Disable this feature.
14445 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14446 setopt NO_GLOB_SUBST
14447else
14448 case `(set -o) 2>/dev/null` in #(
14449 *posix*) :
14450 set -o posix ;; #(
14451 *) :
14452 ;;
14453esac
1c710c3c 14454fi
1c710c3c 14455
5213506e
RW
14456
14457as_nl='
14458'
14459export as_nl
14460# Printing a long string crashes Solaris 7 /usr/bin/printf.
14461as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14462as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14463as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14464# Prefer a ksh shell builtin over an external printf program on Solaris,
14465# but without wasting forks for bash or zsh.
14466if test -z "$BASH_VERSION$ZSH_VERSION" \
14467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14468 as_echo='print -r --'
14469 as_echo_n='print -rn --'
14470elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14471 as_echo='printf %s\n'
14472 as_echo_n='printf %s'
14473else
14474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14476 as_echo_n='/usr/ucb/echo -n'
14477 else
14478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14479 as_echo_n_body='eval
14480 arg=$1;
14481 case $arg in #(
14482 *"$as_nl"*)
14483 expr "X$arg" : "X\\(.*\\)$as_nl";
14484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14485 esac;
14486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14487 '
14488 export as_echo_n_body
14489 as_echo_n='sh -c $as_echo_n_body as_echo'
14490 fi
14491 export as_echo_body
14492 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14493fi
14494
5213506e
RW
14495# The user is always right.
14496if test "${PATH_SEPARATOR+set}" != set; then
14497 PATH_SEPARATOR=:
14498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14500 PATH_SEPARATOR=';'
14501 }
14502fi
14503
14504
14505# IFS
14506# We need space, tab and new line, in precisely that order. Quoting is
14507# there to prevent editors from complaining about space-tab.
14508# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14509# splitting by setting IFS to empty value.)
14510IFS=" "" $as_nl"
14511
14512# Find who we are. Look in the path if we contain no directory separator.
14513case $0 in #((
14514 *[\\/]* ) as_myself=$0 ;;
14515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516for as_dir in $PATH
14517do
14518 IFS=$as_save_IFS
14519 test -z "$as_dir" && as_dir=.
14520 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14521 done
14522IFS=$as_save_IFS
14523
14524 ;;
14525esac
14526# We did not find ourselves, most probably we were run as `sh COMMAND'
14527# in which case we are not to be found in the path.
14528if test "x$as_myself" = x; then
14529 as_myself=$0
14530fi
14531if test ! -f "$as_myself"; then
14532 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14533 exit 1
14534fi
1c710c3c 14535
5213506e
RW
14536# Unset variables that we do not need and which cause bugs (e.g. in
14537# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14538# suppresses any "Segmentation fault" message there. '((' could
14539# trigger a bug in pdksh 5.2.14.
14540for as_var in BASH_ENV ENV MAIL MAILPATH
14541do eval test x\${$as_var+set} = xset \
14542 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14543done
1c710c3c
DJ
14544PS1='$ '
14545PS2='> '
14546PS4='+ '
14547
14548# NLS nuisances.
5213506e
RW
14549LC_ALL=C
14550export LC_ALL
14551LANGUAGE=C
14552export LANGUAGE
14553
14554# CDPATH.
14555(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14556
14557
14558# as_fn_error ERROR [LINENO LOG_FD]
14559# ---------------------------------
14560# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14561# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14562# script with status $?, using 1 if that was 0.
14563as_fn_error ()
14564{
14565 as_status=$?; test $as_status -eq 0 && as_status=1
14566 if test "$3"; then
14567 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14568 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14569 fi
5213506e
RW
14570 $as_echo "$as_me: error: $1" >&2
14571 as_fn_exit $as_status
14572} # as_fn_error
14573
14574
14575# as_fn_set_status STATUS
14576# -----------------------
14577# Set $? to STATUS, without forking.
14578as_fn_set_status ()
14579{
14580 return $1
14581} # as_fn_set_status
14582
14583# as_fn_exit STATUS
14584# -----------------
14585# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14586as_fn_exit ()
14587{
14588 set +e
14589 as_fn_set_status $1
14590 exit $1
14591} # as_fn_exit
14592
14593# as_fn_unset VAR
14594# ---------------
14595# Portably unset VAR.
14596as_fn_unset ()
14597{
14598 { eval $1=; unset $1;}
14599}
14600as_unset=as_fn_unset
14601# as_fn_append VAR VALUE
14602# ----------------------
14603# Append the text in VALUE to the end of the definition contained in VAR. Take
14604# advantage of any shell optimizations that allow amortized linear growth over
14605# repeated appends, instead of the typical quadratic growth present in naive
14606# implementations.
14607if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14608 eval 'as_fn_append ()
14609 {
14610 eval $1+=\$2
14611 }'
14612else
14613 as_fn_append ()
14614 {
14615 eval $1=\$$1\$2
14616 }
14617fi # as_fn_append
14618
14619# as_fn_arith ARG...
14620# ------------------
14621# Perform arithmetic evaluation on the ARGs, and store the result in the
14622# global $as_val. Take advantage of shells that can avoid forks. The arguments
14623# must be portable across $(()) and expr.
14624if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14625 eval 'as_fn_arith ()
14626 {
14627 as_val=$(( $* ))
14628 }'
14629else
14630 as_fn_arith ()
14631 {
14632 as_val=`expr "$@" || test $? -eq 1`
14633 }
14634fi # as_fn_arith
14635
1c710c3c 14636
5213506e
RW
14637if expr a : '\(a\)' >/dev/null 2>&1 &&
14638 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14639 as_expr=expr
14640else
14641 as_expr=false
14642fi
14643
5213506e 14644if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14645 as_basename=basename
14646else
14647 as_basename=false
14648fi
14649
5213506e
RW
14650if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14651 as_dirname=dirname
14652else
14653 as_dirname=false
14654fi
1c710c3c 14655
5213506e 14656as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14657$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14658 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14659 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14660$as_echo X/"$0" |
14661 sed '/^.*\/\([^/][^/]*\)\/*$/{
14662 s//\1/
14663 q
14664 }
14665 /^X\/\(\/\/\)$/{
14666 s//\1/
14667 q
14668 }
14669 /^X\/\(\/\).*/{
14670 s//\1/
14671 q
14672 }
14673 s/.*/./; q'`
2aeb72e9 14674
2aeb72e9
DD
14675# Avoid depending upon Character Ranges.
14676as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14677as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14678as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14679as_cr_digits='0123456789'
14680as_cr_alnum=$as_cr_Letters$as_cr_digits
14681
5213506e
RW
14682ECHO_C= ECHO_N= ECHO_T=
14683case `echo -n x` in #(((((
14684-n*)
14685 case `echo 'xy\c'` in
14686 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14687 xy) ECHO_C='\c';;
14688 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14689 ECHO_T=' ';;
14690 esac;;
14691*)
14692 ECHO_N='-n';;
1c710c3c
DJ
14693esac
14694
5213506e
RW
14695rm -f conf$$ conf$$.exe conf$$.file
14696if test -d conf$$.dir; then
14697 rm -f conf$$.dir/conf$$.file
1c710c3c 14698else
5213506e
RW
14699 rm -f conf$$.dir
14700 mkdir conf$$.dir 2>/dev/null
1c710c3c 14701fi
5213506e
RW
14702if (echo >conf$$.file) 2>/dev/null; then
14703 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14704 as_ln_s='ln -s'
5213506e
RW
14705 # ... but there are two gotchas:
14706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14708 # In both cases, we have to default to `cp -p'.
14709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14710 as_ln_s='cp -p'
14711 elif ln conf$$.file conf$$ 2>/dev/null; then
14712 as_ln_s=ln
14713 else
14714 as_ln_s='cp -p'
2aeb72e9 14715 fi
1c710c3c
DJ
14716else
14717 as_ln_s='cp -p'
14718fi
5213506e
RW
14719rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14720rmdir conf$$.dir 2>/dev/null
14721
14722
14723# as_fn_mkdir_p
14724# -------------
14725# Create "$as_dir" as a directory, including parents if necessary.
14726as_fn_mkdir_p ()
14727{
14728
14729 case $as_dir in #(
14730 -*) as_dir=./$as_dir;;
14731 esac
14732 test -d "$as_dir" || eval $as_mkdir_p || {
14733 as_dirs=
14734 while :; do
14735 case $as_dir in #(
14736 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14737 *) as_qdir=$as_dir;;
14738 esac
14739 as_dirs="'$as_qdir' $as_dirs"
14740 as_dir=`$as_dirname -- "$as_dir" ||
14741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14742 X"$as_dir" : 'X\(//\)[^/]' \| \
14743 X"$as_dir" : 'X\(//\)$' \| \
14744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14745$as_echo X"$as_dir" |
14746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14747 s//\1/
14748 q
14749 }
14750 /^X\(\/\/\)[^/].*/{
14751 s//\1/
14752 q
14753 }
14754 /^X\(\/\/\)$/{
14755 s//\1/
14756 q
14757 }
14758 /^X\(\/\).*/{
14759 s//\1/
14760 q
14761 }
14762 s/.*/./; q'`
14763 test -d "$as_dir" && break
14764 done
14765 test -z "$as_dirs" || eval "mkdir $as_dirs"
14766 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14767
1c710c3c 14768
5213506e 14769} # as_fn_mkdir_p
1c710c3c 14770if mkdir -p . 2>/dev/null; then
5213506e 14771 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14772else
14773 test -d ./-p && rmdir ./-p
14774 as_mkdir_p=false
14775fi
14776
5213506e
RW
14777if test -x / >/dev/null 2>&1; then
14778 as_test_x='test -x'
14779else
14780 if ls -dL / >/dev/null 2>&1; then
14781 as_ls_L_option=L
14782 else
14783 as_ls_L_option=
14784 fi
14785 as_test_x='
14786 eval sh -c '\''
14787 if test -d "$1"; then
14788 test -d "$1/.";
14789 else
14790 case $1 in #(
14791 -*)set "./$1";;
14792 esac;
14793 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14794 ???[sx]*):;;*)false;;esac;fi
14795 '\'' sh
14796 '
14797fi
14798as_executable_p=$as_test_x
1c710c3c
DJ
14799
14800# Sed expression to map a string onto a valid CPP name.
14801as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14802
14803# Sed expression to map a string onto a valid variable name.
14804as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14805
14806
1c710c3c 14807exec 6>&1
5213506e
RW
14808## ----------------------------------- ##
14809## Main body of $CONFIG_STATUS script. ##
14810## ----------------------------------- ##
14811_ASEOF
14812test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14813
14814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14816# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14817# values after options handling.
14818ac_log="
1c710c3c 14819This file was extended by $as_me, which was
5213506e 14820generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14821
14822 CONFIG_FILES = $CONFIG_FILES
14823 CONFIG_HEADERS = $CONFIG_HEADERS
14824 CONFIG_LINKS = $CONFIG_LINKS
14825 CONFIG_COMMANDS = $CONFIG_COMMANDS
14826 $ $0 $@
14827
5213506e
RW
14828on `(hostname || uname -n) 2>/dev/null | sed 1q`
14829"
14830
1c710c3c
DJ
14831_ACEOF
14832
5213506e
RW
14833case $ac_config_files in *"
14834"*) set x $ac_config_files; shift; ac_config_files=$*;;
14835esac
1c710c3c 14836
2aeb72e9 14837
2aeb72e9 14838
5213506e
RW
14839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14840# Files that config.status was made for.
14841config_files="$ac_config_files"
1c710c3c 14842
5213506e 14843_ACEOF
2aeb72e9 14844
5213506e 14845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14846ac_cs_usage="\
5213506e
RW
14847\`$as_me' instantiates files and other configuration actions
14848from templates according to the current configuration. Unless the files
14849and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14850
5213506e 14851Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14852
14853 -h, --help print this help, then exit
5213506e
RW
14854 -V, --version print version number and configuration settings, then exit
14855 -q, --quiet, --silent
14856 do not print progress messages
1c710c3c
DJ
14857 -d, --debug don't remove temporary files
14858 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14859 --file=FILE[:TEMPLATE]
14860 instantiate the configuration file FILE
1c710c3c
DJ
14861
14862Configuration files:
14863$config_files
14864
5213506e 14865Report bugs to the package provider."
2aeb72e9 14866
5213506e
RW
14867_ACEOF
14868cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14869ac_cs_version="\\
14870config.status
5213506e
RW
14871configured by $0, generated by GNU Autoconf 2.64,
14872 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14873
5213506e 14874Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14875This config.status script is free software; the Free Software Foundation
14876gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14877
14878ac_pwd='$ac_pwd'
14879srcdir='$srcdir'
14880INSTALL='$INSTALL'
87264276 14881AWK='$AWK'
5213506e 14882test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14883_ACEOF
14884
5213506e
RW
14885cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14886# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14887ac_need_defaults=:
14888while test $# != 0
a4b9e93e 14889do
1c710c3c
DJ
14890 case $1 in
14891 --*=*)
5213506e
RW
14892 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14893 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14894 ac_shift=:
14895 ;;
5213506e 14896 *)
1c710c3c
DJ
14897 ac_option=$1
14898 ac_optarg=$2
14899 ac_shift=shift
14900 ;;
1c710c3c
DJ
14901 esac
14902
14903 case $ac_option in
14904 # Handling of the options.
671aa708 14905 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14906 ac_cs_recheck=: ;;
5213506e
RW
14907 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14908 $as_echo "$ac_cs_version"; exit ;;
14909 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14910 debug=: ;;
14911 --file | --fil | --fi | --f )
14912 $ac_shift
5213506e
RW
14913 case $ac_optarg in
14914 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14915 esac
14916 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14917 ac_need_defaults=false;;
5213506e
RW
14918 --he | --h | --help | --hel | -h )
14919 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14920 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14921 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14922 ac_cs_silent=: ;;
14923
14924 # This is an error.
5213506e
RW
14925 -*) as_fn_error "unrecognized option: \`$1'
14926Try \`$0 --help' for more information." ;;
1c710c3c 14927
5213506e
RW
14928 *) as_fn_append ac_config_targets " $1"
14929 ac_need_defaults=false ;;
1c710c3c 14930
0b0dc272 14931 esac
1c710c3c 14932 shift
0b0dc272
AM
14933done
14934
1c710c3c 14935ac_configure_extra_args=
0b0dc272 14936
1c710c3c
DJ
14937if $ac_cs_silent; then
14938 exec 6>/dev/null
14939 ac_configure_extra_args="$ac_configure_extra_args --silent"
14940fi
0b0dc272 14941
1c710c3c 14942_ACEOF
5213506e 14943cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14944if \$ac_cs_recheck; then
5213506e
RW
14945 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14946 shift
14947 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14948 CONFIG_SHELL='$SHELL'
14949 export CONFIG_SHELL
14950 exec "\$@"
1c710c3c
DJ
14951fi
14952
14953_ACEOF
5213506e
RW
14954cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955exec 5>>config.log
14956{
14957 echo
14958 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14959## Running $as_me. ##
14960_ASBOX
14961 $as_echo "$ac_log"
14962} >&5
1c710c3c 14963
5213506e
RW
14964_ACEOF
14965cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14966#
14967# INIT-COMMANDS
14968#
14969extrasub_build="$extrasub_build"
14970 extrasub_host="$extrasub_host"
14971 extrasub_target="$extrasub_target"
14972
5213506e 14973_ACEOF
1c710c3c 14974
5213506e 14975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14976
5213506e 14977# Handling of arguments.
1c710c3c
DJ
14978for ac_config_target in $ac_config_targets
14979do
5213506e
RW
14980 case $ac_config_target in
14981 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14982
14983 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14984 esac
14985done
14986
5213506e 14987
1c710c3c
DJ
14988# If the user did not use the arguments to specify the items to instantiate,
14989# then the envvar interface is used. Set only those that are not.
14990# We use the long form for the default assignment because of an extremely
14991# bizarre bug on SunOS 4.1.3.
14992if $ac_need_defaults; then
14993 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14994fi
14995
14996# Have a temporary directory for convenience. Make it in the build tree
5213506e 14997# simply because there is no reason against having it here, and in addition,
1c710c3c 14998# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14999# Hook for its removal unless debugging.
15000# Note that there is a small window in which the directory will not be cleaned:
15001# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15002$debug ||
15003{
5213506e
RW
15004 tmp=
15005 trap 'exit_status=$?
15006 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15007' 0
15008 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15009}
1c710c3c
DJ
15010# Create a (secure) tmp directory for tmp files.
15011
15012{
5213506e 15013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15014 test -n "$tmp" && test -d "$tmp"
15015} ||
15016{
5213506e
RW
15017 tmp=./conf$$-$RANDOM
15018 (umask 077 && mkdir "$tmp")
15019} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15020
15021# Set up the scripts for CONFIG_FILES section.
15022# No need to generate them if there are no CONFIG_FILES.
15023# This happens for instance with `./config.status config.h'.
15024if test -n "$CONFIG_FILES"; then
15025
15026if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15027 ac_cs_awk_getline=:
15028 ac_cs_awk_pipe_init=
15029 ac_cs_awk_read_file='
15030 while ((getline aline < (F[key])) > 0)
15031 print(aline)
15032 close(F[key])'
15033 ac_cs_awk_pipe_fini=
15034else
15035 ac_cs_awk_getline=false
15036 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15037 ac_cs_awk_read_file='
15038 print "|#_!!_#|"
15039 print "cat " F[key] " &&"
15040 '$ac_cs_awk_pipe_init
15041 # The final `:' finishes the AND list.
15042 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15043fi
15044ac_cr=`echo X | tr X '\015'`
15045# On cygwin, bash can eat \r inside `` if the user requested igncr.
15046# But we know of no other shell where ac_cr would be empty at this
15047# point, so we can use a bashism as a fallback.
15048if test "x$ac_cr" = x; then
15049 eval ac_cr=\$\'\\r\'
15050fi
15051ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15052if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15053 ac_cs_awk_cr='\r'
15054else
15055 ac_cs_awk_cr=$ac_cr
15056fi
15057
15058echo 'BEGIN {' >"$tmp/subs1.awk" &&
15059_ACEOF
15060
15061# Create commands to substitute file output variables.
1c710c3c 15062{
5213506e
RW
15063 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15064 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15065 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15066 echo "_ACAWK" &&
15067 echo "_ACEOF"
15068} >conf$$files.sh &&
15069. ./conf$$files.sh ||
15070 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15071rm -f conf$$files.sh
1c710c3c 15072
5213506e
RW
15073{
15074 echo "cat >conf$$subs.awk <<_ACEOF" &&
15075 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15076 echo "_ACEOF"
15077} >conf$$subs.sh ||
15078 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15079ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15080ac_delim='%!_!# '
15081for ac_last_try in false false false false false :; do
15082 . ./conf$$subs.sh ||
15083 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15084
15085 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15086 if test $ac_delim_n = $ac_delim_num; then
15087 break
15088 elif $ac_last_try; then
15089 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15090 else
15091 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15092 fi
15093done
15094rm -f conf$$subs.sh
15095
15096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15097cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15098_ACEOF
5213506e
RW
15099sed -n '
15100h
15101s/^/S["/; s/!.*/"]=/
15102p
15103g
15104s/^[^!]*!//
15105:repl
15106t repl
15107s/'"$ac_delim"'$//
15108t delim
15109:nl
15110h
15111s/\(.\{148\}\).*/\1/
15112t more1
15113s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15114p
15115n
15116b repl
15117:more1
15118s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15119p
15120g
15121s/.\{148\}//
15122t nl
15123:delim
15124h
15125s/\(.\{148\}\).*/\1/
15126t more2
15127s/["\\]/\\&/g; s/^/"/; s/$/"/
15128p
15129b
15130:more2
15131s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15132p
15133g
15134s/.\{148\}//
15135t delim
15136' <conf$$subs.awk | sed '
15137/^[^""]/{
15138 N
15139 s/\n//
15140}
15141' >>$CONFIG_STATUS || ac_write_fail=1
15142rm -f conf$$subs.awk
15143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15144_ACAWK
15145cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15146 for (key in S) S_is_set[key] = 1
15147 FS = "\a"
15148 \$ac_cs_awk_pipe_init
15149}
15150{
15151 line = $ 0
15152 nfields = split(line, field, "@")
15153 substed = 0
15154 len = length(field[1])
15155 for (i = 2; i < nfields; i++) {
15156 key = field[i]
15157 keylen = length(key)
15158 if (S_is_set[key]) {
15159 value = S[key]
15160 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15161 len += length(value) + length(field[++i])
15162 substed = 1
15163 } else
15164 len += 1 + keylen
15165 }
15166 if (nfields == 3 && !substed) {
15167 key = field[2]
15168 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15169 \$ac_cs_awk_read_file
15170 next
15171 }
15172 }
15173 print line
15174}
15175\$ac_cs_awk_pipe_fini
15176_ACAWK
15177_ACEOF
15178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15180 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15181else
15182 cat
15183fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15184 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15185_ACEOF
15186
15187# VPATH may cause trouble with some makes, so we remove $(srcdir),
15188# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15189# trailing colons and then remove the whole line if VPATH becomes empty
15190# (actually we leave an empty line to preserve line numbers).
15191if test "x$srcdir" = x.; then
15192 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15193s/:*\$(srcdir):*/:/
15194s/:*\${srcdir}:*/:/
15195s/:*@srcdir@:*/:/
15196s/^\([^=]*=[ ]*\):*/\1/
15197s/:*$//
15198s/^[^=]*=[ ]*$//
15199}'
15200fi
2aeb72e9 15201
5213506e
RW
15202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15203fi # test -n "$CONFIG_FILES"
2aeb72e9 15204
1c710c3c 15205
5213506e
RW
15206eval set X " :F $CONFIG_FILES "
15207shift
15208for ac_tag
15209do
15210 case $ac_tag in
15211 :[FHLC]) ac_mode=$ac_tag; continue;;
15212 esac
15213 case $ac_mode$ac_tag in
15214 :[FHL]*:*);;
15215 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15216 :[FH]-) ac_tag=-:-;;
15217 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15218 esac
15219 ac_save_IFS=$IFS
15220 IFS=:
15221 set x $ac_tag
15222 IFS=$ac_save_IFS
15223 shift
15224 ac_file=$1
15225 shift
79c06341 15226
5213506e
RW
15227 case $ac_mode in
15228 :L) ac_source=$1;;
15229 :[FH])
15230 ac_file_inputs=
15231 for ac_f
15232 do
15233 case $ac_f in
15234 -) ac_f="$tmp/stdin";;
15235 *) # Look for the file first in the build tree, then in the source tree
15236 # (if the path is not absolute). The absolute path cannot be DOS-style,
15237 # because $ac_f cannot contain `:'.
15238 test -f "$ac_f" ||
15239 case $ac_f in
15240 [\\/$]*) false;;
15241 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15242 esac ||
15243 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15244 esac
15245 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15246 as_fn_append ac_file_inputs " '$ac_f'"
15247 done
1c710c3c 15248
5213506e
RW
15249 # Let's still pretend it is `configure' which instantiates (i.e., don't
15250 # use $as_me), people would be surprised to read:
15251 # /* config.h. Generated by config.status. */
15252 configure_input='Generated from '`
15253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15254 `' by configure.'
15255 if test x"$ac_file" != x-; then
15256 configure_input="$ac_file. $configure_input"
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15258$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15259 fi
5213506e
RW
15260 # Neutralize special characters interpreted by sed in replacement strings.
15261 case $configure_input in #(
15262 *\&* | *\|* | *\\* )
15263 ac_sed_conf_input=`$as_echo "$configure_input" |
15264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15265 *) ac_sed_conf_input=$configure_input;;
15266 esac
11a67599 15267
5213506e
RW
15268 case $ac_tag in
15269 *:-:* | *:-) cat >"$tmp/stdin" \
15270 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15271 esac
15272 ;;
11a67599
ZW
15273 esac
15274
5213506e 15275 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15276$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15277 X"$ac_file" : 'X\(//\)[^/]' \| \
15278 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15280$as_echo X"$ac_file" |
15281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15282 s//\1/
15283 q
15284 }
15285 /^X\(\/\/\)[^/].*/{
15286 s//\1/
15287 q
15288 }
15289 /^X\(\/\/\)$/{
15290 s//\1/
15291 q
15292 }
15293 /^X\(\/\).*/{
15294 s//\1/
15295 q
15296 }
15297 s/.*/./; q'`
15298 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15299 ac_builddir=.
0b0dc272 15300
5213506e
RW
15301case "$ac_dir" in
15302.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15303*)
15304 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15305 # A ".." for each directory in $ac_dir_suffix.
15306 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15307 case $ac_top_builddir_sub in
15308 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15309 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15310 esac ;;
15311esac
15312ac_abs_top_builddir=$ac_pwd
15313ac_abs_builddir=$ac_pwd$ac_dir_suffix
15314# for backward compatibility:
15315ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15316
15317case $srcdir in
5213506e 15318 .) # We are building in place.
1c710c3c 15319 ac_srcdir=.
5213506e
RW
15320 ac_top_srcdir=$ac_top_builddir_sub
15321 ac_abs_top_srcdir=$ac_pwd ;;
15322 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15323 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15324 ac_top_srcdir=$srcdir
15325 ac_abs_top_srcdir=$srcdir ;;
15326 *) # Relative name.
15327 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15328 ac_top_srcdir=$ac_top_build_prefix$srcdir
15329 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15330esac
5213506e 15331ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15332
0b0dc272 15333
5213506e
RW
15334 case $ac_mode in
15335 :F)
15336 #
15337 # CONFIG_FILE
15338 #
1c710c3c
DJ
15339
15340 case $INSTALL in
15341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15342 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15343 esac
5213506e 15344_ACEOF
11a67599 15345
5213506e
RW
15346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15347# If the template does not know about datarootdir, expand it.
15348# FIXME: This hack should be removed a few years after 2.60.
15349ac_datarootdir_hack=; ac_datarootdir_seen=
15350ac_sed_dataroot='
15351/datarootdir/ {
15352 p
15353 q
15354}
15355/@datadir@/p
15356/@docdir@/p
15357/@infodir@/p
15358/@localedir@/p
15359/@mandir@/p'
15360case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15361*datarootdir*) ac_datarootdir_seen=yes;;
15362*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15364$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15365_ACEOF
5213506e
RW
15366cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15367 ac_datarootdir_hack='
15368 s&@datadir@&$datadir&g
15369 s&@docdir@&$docdir&g
15370 s&@infodir@&$infodir&g
15371 s&@localedir@&$localedir&g
15372 s&@mandir@&$mandir&g
15373 s&\\\${datarootdir}&$datarootdir&g' ;;
15374esac
15375_ACEOF
15376
15377# Neutralize VPATH when `$srcdir' = `.'.
15378# Shell code in configure.ac might set extrasub.
15379# FIXME: do we really want to maintain this feature?
15380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15381ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15382$extrasub
15383_ACEOF
5213506e 15384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15385:t
15386/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15387s|@configure_input@|$ac_sed_conf_input|;t t
15388s&@top_builddir@&$ac_top_builddir_sub&;t t
15389s&@top_build_prefix@&$ac_top_build_prefix&;t t
15390s&@srcdir@&$ac_srcdir&;t t
15391s&@abs_srcdir@&$ac_abs_srcdir&;t t
15392s&@top_srcdir@&$ac_top_srcdir&;t t
15393s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15394s&@builddir@&$ac_builddir&;t t
15395s&@abs_builddir@&$ac_abs_builddir&;t t
15396s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15397s&@INSTALL@&$ac_INSTALL&;t t
15398$ac_datarootdir_hack
15399"
15400eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15401if $ac_cs_awk_getline; then
15402 $AWK -f "$tmp/subs.awk"
15403else
15404 $AWK -f "$tmp/subs.awk" | $SHELL
15405fi >$tmp/out \
15406 || as_fn_error "could not create $ac_file" "$LINENO" 5
15407
15408test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15409 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15410 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15412which seems to be undefined. Please make sure it is defined." >&5
15413$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15414which seems to be undefined. Please make sure it is defined." >&2;}
15415
15416 rm -f "$tmp/stdin"
15417 case $ac_file in
15418 -) cat "$tmp/out" && rm -f "$tmp/out";;
15419 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15420 esac \
15421 || as_fn_error "could not create $ac_file" "$LINENO" 5
15422 ;;
11a67599 15423
11a67599 15424
79c06341 15425
5213506e
RW
15426 esac
15427
3e54529c
RW
15428
15429 case $ac_file$ac_mode in
15430 "Makefile":F) sed "$extrasub_build" Makefile |
15431 sed "$extrasub_host" |
15432 sed "$extrasub_target" > mf$$
15433 mv -f mf$$ Makefile ;;
15434
15435 esac
5213506e
RW
15436done # for ac_tag
15437
15438
15439as_fn_exit 0
1c710c3c 15440_ACEOF
1c710c3c
DJ
15441ac_clean_files=$ac_clean_files_save
15442
5213506e
RW
15443test $ac_write_fail = 0 ||
15444 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15445
1c710c3c
DJ
15446
15447# configure is writing to config.log, and then calls config.status.
15448# config.status does its own redirection, appending to config.log.
15449# Unfortunately, on DOS this fails, as config.log is still kept open
15450# by configure, so config.status won't be able to write to it; its
15451# output is simply discarded. So we exec the FD to /dev/null,
15452# effectively closing config.log, so it can be properly (re)opened and
15453# appended to by config.status. When coming back to configure, we
15454# need to make the FD available again.
15455if test "$no_create" != yes; then
15456 ac_cs_success=:
15457 ac_config_status_args=
15458 test "$silent" = yes &&
15459 ac_config_status_args="$ac_config_status_args --quiet"
15460 exec 5>/dev/null
15461 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15462 exec 5>>config.log
15463 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15464 # would make configure fail if this is the last instruction.
5213506e
RW
15465 $ac_cs_success || as_fn_exit $?
15466fi
15467if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15469$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15470fi
79c06341 15471
This page took 2.952763 seconds and 5 git commands to generate.