]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR fortran/18918 (Eventually support Fortran 2008's coarrays [co-arrays])
[thirdparty/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
aae29963 659target_configdirs
5213506e
RW
660configdirs
661host_configargs
662build_configdirs
663build_configargs
664INSTALL_GDB_TK
665GDB_TK
666CONFIGURE_GDB_TK
667build_tooldir
668tooldir
669GCC_SHLIB_SUBDIR
670RPATH_ENVVAR
e12c4094 671BUILD_CONFIG
5213506e
RW
672CXXFLAGS_FOR_TARGET
673CFLAGS_FOR_TARGET
674DEBUG_PREFIX_CFLAGS_FOR_TARGET
675SYSROOT_CFLAGS_FOR_TARGET
676stage1_languages
d7f09764
DN
677extra_host_libiberty_configure_flags
678libelfinc
679libelflibs
680EGREP
681GREP
682CPP
5213506e
RW
683clooginc
684clooglibs
685pplinc
686ppllibs
5213506e 687poststage1_ldflags
ed2eaa9f 688poststage1_libs
5213506e
RW
689stage1_libs
690stage1_ldflags
691extra_mpc_mpfr_configure_flags
692extra_mpc_gmp_configure_flags
693extra_mpfr_configure_flags
694gmpinc
695gmplibs
696do_compare
697GNATMAKE
698GNATBIND
699ac_ct_CXX
700CXXFLAGS
701CXX
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709target_subdir
710host_subdir
711build_subdir
712build_libsubdir
87264276
PB
713AWK
714SED
5213506e
RW
715LN_S
716LN
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_os
721target_vendor
722target_cpu
723target
724host_os
725host_vendor
726host_cpu
727host
728target_noncanonical
729host_noncanonical
730build_noncanonical
731build_os
732build_vendor
733build_cpu
734build
735TOPLEVEL_CONFIGURE_ARGUMENTS
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
766PACKAGE_URL
767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
774ac_subst_files='serialization_dependencies
775host_makefile_frag
776target_makefile_frag
777alphaieee_frag
778ospace_frag'
779ac_user_opts='
780enable_option_checking
781with_build_libsubdir
782enable_gold
783enable_libada
784enable_libssp
785enable_build_with_cxx
786with_mpc
787with_mpc_include
788with_mpc_lib
789with_mpfr_dir
790with_mpfr
791with_mpfr_include
792with_mpfr_lib
793with_gmp_dir
794with_gmp
795with_gmp_include
796with_gmp_lib
797with_host_libstdcxx
798with_stage1_ldflags
799with_stage1_libs
5213506e 800with_boot_libs
ed2eaa9f 801with_boot_ldflags
5213506e
RW
802with_ppl
803with_ppl_include
804with_ppl_lib
805enable_ppl_version_check
806with_cloog
807with_cloog_include
808with_cloog_lib
809enable_cloog_version_check
d7f09764
DN
810enable_lto
811with_libelf
812with_libelf_include
813with_libelf_lib
5213506e
RW
814enable_stage1_languages
815enable_objc_gc
816with_build_sysroot
817with_debug_prefix_map
818enable_bootstrap
5646b7b9 819with_build_config
5213506e
RW
820enable_serial_configure
821with_build_time_tools
822enable_maintainer_mode
823enable_stage1_checking
824enable_werror
5213506e
RW
825'
826 ac_precious_vars='build_alias
827host_alias
828target_alias
829CC
830CFLAGS
831LDFLAGS
832LIBS
833CPPFLAGS
834CXX
835CXXFLAGS
836CCC
d7f09764 837CPP
5213506e
RW
838AR
839AS
840DLLTOOL
841LD
842LIPO
843NM
844RANLIB
845STRIP
846WINDRES
847WINDMC
848OBJCOPY
849OBJDUMP
850CC_FOR_TARGET
851CXX_FOR_TARGET
852GCC_FOR_TARGET
853GCJ_FOR_TARGET
854GFORTRAN_FOR_TARGET
855AR_FOR_TARGET
856AS_FOR_TARGET
857DLLTOOL_FOR_TARGET
858LD_FOR_TARGET
859LIPO_FOR_TARGET
860NM_FOR_TARGET
861OBJDUMP_FOR_TARGET
862RANLIB_FOR_TARGET
863STRIP_FOR_TARGET
864WINDRES_FOR_TARGET
865WINDMC_FOR_TARGET'
866
671aa708
NN
867
868# Initialize some variables set by options.
1c710c3c
DJ
869ac_init_help=
870ac_init_version=false
5213506e
RW
871ac_unrecognized_opts=
872ac_unrecognized_sep=
671aa708
NN
873# The variables have the same names as the options, with
874# dashes changed to underlines.
1c710c3c 875cache_file=/dev/null
671aa708 876exec_prefix=NONE
671aa708 877no_create=
671aa708
NN
878no_recursion=
879prefix=NONE
880program_prefix=NONE
881program_suffix=NONE
882program_transform_name=s,x,x,
883silent=
884site=
885srcdir=
671aa708
NN
886verbose=
887x_includes=NONE
888x_libraries=NONE
1c710c3c
DJ
889
890# Installation directory options.
891# These are left unexpanded so users can "make install exec_prefix=/foo"
892# and all the variables that are supposed to be based on exec_prefix
893# by default will actually change.
894# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 895# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
896bindir='${exec_prefix}/bin'
897sbindir='${exec_prefix}/sbin'
898libexecdir='${exec_prefix}/libexec'
5213506e
RW
899datarootdir='${prefix}/share'
900datadir='${datarootdir}'
671aa708
NN
901sysconfdir='${prefix}/etc'
902sharedstatedir='${prefix}/com'
903localstatedir='${prefix}/var'
671aa708
NN
904includedir='${prefix}/include'
905oldincludedir='/usr/include'
5213506e
RW
906docdir='${datarootdir}/doc/${PACKAGE}'
907infodir='${datarootdir}/info'
908htmldir='${docdir}'
909dvidir='${docdir}'
910pdfdir='${docdir}'
911psdir='${docdir}'
912libdir='${exec_prefix}/lib'
913localedir='${datarootdir}/locale'
914mandir='${datarootdir}/man'
79c06341 915
671aa708 916ac_prev=
5213506e 917ac_dashdash=
671aa708
NN
918for ac_option
919do
671aa708
NN
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
5213506e 922 eval $ac_prev=\$ac_option
671aa708
NN
923 ac_prev=
924 continue
925 fi
79c06341 926
5213506e
RW
927 case $ac_option in
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 *) ac_optarg=yes ;;
930 esac
671aa708
NN
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
5213506e
RW
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
671aa708
NN
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 941 bindir=$ac_optarg ;;
671aa708
NN
942
943 -build | --build | --buil | --bui | --bu)
1c710c3c 944 ac_prev=build_alias ;;
671aa708 945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 946 build_alias=$ac_optarg ;;
671aa708
NN
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
671aa708 957
5213506e 958 -datadir | --datadir | --datadi | --datad)
671aa708 959 ac_prev=datadir ;;
5213506e 960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 961 datadir=$ac_optarg ;;
671aa708 962
5213506e
RW
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
671aa708 970 -disable-* | --disable-*)
5213506e 971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 972 # Reject names that are not valid shell variable names.
5213506e
RW
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
671aa708
NN
995
996 -enable-* | --enable-*)
5213506e 997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 998 # Reject names that are not valid shell variable names.
5213506e
RW
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005"enable_$ac_useropt"
1006"*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
2aeb72e9 1009 esac
5213506e 1010 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1c710c3c 1019 exec_prefix=$ac_optarg ;;
671aa708
NN
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1c710c3c
DJ
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
671aa708
NN
1031
1032 -host | --host | --hos | --ho)
1c710c3c 1033 ac_prev=host_alias ;;
671aa708 1034 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1035 host_alias=$ac_optarg ;;
671aa708 1036
5213506e
RW
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
671aa708
NN
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1048 includedir=$ac_optarg ;;
671aa708
NN
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1053 infodir=$ac_optarg ;;
671aa708
NN
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1058 libdir=$ac_optarg ;;
671aa708
NN
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1065 libexecdir=$ac_optarg ;;
671aa708 1066
5213506e
RW
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
671aa708 1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1073 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1077 localstatedir=$ac_optarg ;;
671aa708
NN
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1082 mandir=$ac_optarg ;;
671aa708
NN
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1089 | --no-cr | --no-c | -n)
671aa708
NN
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1103 oldincludedir=$ac_optarg ;;
671aa708
NN
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1108 prefix=$ac_optarg ;;
671aa708
NN
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1115 program_prefix=$ac_optarg ;;
671aa708
NN
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1122 program_suffix=$ac_optarg ;;
671aa708
NN
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1139 program_transform_name=$ac_optarg ;;
671aa708 1140
5213506e
RW
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
671aa708
NN
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1c710c3c 1159 sbindir=$ac_optarg ;;
671aa708
NN
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1c710c3c 1170 sharedstatedir=$ac_optarg ;;
671aa708
NN
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1c710c3c 1175 site=$ac_optarg ;;
671aa708
NN
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1180 srcdir=$ac_optarg ;;
671aa708
NN
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1187 sysconfdir=$ac_optarg ;;
671aa708
NN
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1190 ac_prev=target_alias ;;
671aa708 1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1192 target_alias=$ac_optarg ;;
671aa708
NN
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1c710c3c
DJ
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
671aa708
NN
1199
1200 -with-* | --with-*)
5213506e 1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1202 # Reject names that are not valid shell variable names.
5213506e
RW
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209"with_$ac_useropt"
1210"*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
2aeb72e9 1213 esac
5213506e 1214 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1215
1216 -without-* | --without-*)
5213506e 1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1218 # Reject names that are not valid shell variable names.
5213506e
RW
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
671aa708
NN
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1241 x_includes=$ac_optarg ;;
671aa708
NN
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1248 x_libraries=$ac_optarg ;;
671aa708 1249
5213506e
RW
1250 -*) as_fn_error "unrecognized option: \`$ac_option'
1251Try \`$0 --help' for more information."
671aa708
NN
1252 ;;
1253
1c710c3c
DJ
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
5213506e
RW
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1262 export $ac_envvar ;;
1263
671aa708 1264 *)
1c710c3c 1265 # FIXME: should be removed in autoconf 3.0.
5213506e 1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1270 ;;
1271
1272 esac
1273done
1274
1275if test -n "$ac_prev"; then
1c710c3c 1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1277 as_fn_error "missing argument to $ac_option"
af71363e 1278fi
af71363e 1279
5213506e
RW
1280if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1285 esac
5213506e 1286fi
2aeb72e9 1287
5213506e
RW
1288# Check all directory arguments for consistency.
1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
2aeb72e9 1293do
5213506e
RW
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
2aeb72e9 1302 case $ac_val in
5213506e
RW
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1305 esac
5213506e 1306 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1307done
1308
1c710c3c
DJ
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
0b0dc272 1315
1c710c3c
DJ
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
5213506e 1320 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1323 cross_compiling=yes
1324 fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
671aa708 1331
671aa708 1332
5213506e
RW
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 as_fn_error "working directory cannot be determined"
1337test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 as_fn_error "pwd does not report name of working directory"
1339
1340
671aa708
NN
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343 ac_srcdir_defaulted=yes
5213506e
RW
1344 # Try the directory containing this script, then the parent directory.
1345 ac_confdir=`$as_dirname -- "$as_myself" ||
1346$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347 X"$as_myself" : 'X\(//\)[^/]' \| \
1348 X"$as_myself" : 'X\(//\)$' \| \
1349 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1350$as_echo X"$as_myself" |
1351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\/\)[^/].*/{
1356 s//\1/
1357 q
1358 }
1359 /^X\(\/\/\)$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\).*/{
1364 s//\1/
1365 q
1366 }
1367 s/.*/./; q'`
671aa708 1368 srcdir=$ac_confdir
5213506e 1369 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1370 srcdir=..
1371 fi
1372else
1373 ac_srcdir_defaulted=no
1374fi
5213506e
RW
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1378fi
1379ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380ac_abs_confdir=`(
1381 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1382 pwd)`
1383# When building in place, set srcdir=.
1384if test "$ac_abs_confdir" = "$ac_pwd"; then
1385 srcdir=.
1386fi
1387# Remove unnecessary trailing slashes from srcdir.
1388# Double slashes in file names in object file debugging info
1389# mess up M-x gdb in Emacs.
1390case $srcdir in
1391*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392esac
ac9e6043
RW
1393ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1394
5213506e
RW
1395for ac_var in $ac_precious_vars; do
1396 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_env_${ac_var}_value=\$${ac_var}
1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1c710c3c
DJ
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406 # Omit some internal or obsolete options to make the list less imposing.
1407 # This message is too long to be a string in the A/UX 3.1 sh.
1408 cat <<_ACEOF
1409\`configure' configures this package to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE. See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419 -h, --help display this help and exit
1420 --help=short display options specific to this package
1421 --help=recursive display the short help of all the included packages
1422 -V, --version display version information and exit
1423 -q, --quiet, --silent do not print \`checking...' messages
1424 --cache-file=FILE cache test results in FILE [disabled]
1425 -C, --config-cache alias for \`--cache-file=config.cache'
1426 -n, --no-create do not create output files
1427 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428
1c710c3c
DJ
1429Installation directories:
1430 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1431 [$ac_default_prefix]
1c710c3c 1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1433 [PREFIX]
1c710c3c
DJ
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
5213506e
RW
1443 --bindir=DIR user executables [EPREFIX/bin]
1444 --sbindir=DIR system admin executables [EPREFIX/sbin]
1445 --libexecdir=DIR program executables [EPREFIX/libexec]
1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1449 --libdir=DIR object code libraries [EPREFIX/lib]
1450 --includedir=DIR C header files [PREFIX/include]
1451 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1454 --infodir=DIR info documentation [DATAROOTDIR/info]
1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1456 --mandir=DIR man documentation [DATAROOTDIR/man]
1457 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1458 --htmldir=DIR html documentation [DOCDIR]
1459 --dvidir=DIR dvi documentation [DOCDIR]
1460 --pdfdir=DIR pdf documentation [DOCDIR]
1461 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1462_ACEOF
1463
1464 cat <<\_ACEOF
1465
1466Program names:
1467 --program-prefix=PREFIX prepend PREFIX to installed program names
1468 --program-suffix=SUFFIX append SUFFIX to installed program names
1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470
1471System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 --target=TARGET configure for building compilers for TARGET [HOST]
1475_ACEOF
1476fi
1477
1478if test -n "$ac_init_help"; then
1479
1480 cat <<\_ACEOF
1481
1482Optional Features:
5213506e 1483 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5afab7ad 1486 --enable-gold use gold instead of ld
30b74385
RW
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
00020c16 1489 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e
SP
1490 --disable-ppl-version-check disable check for PPL version
1491 --disable-cloog-version-check disable check for CLooG version
d7f09764 1492 --enable-lto enable link time optimization support
30b74385 1493 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1494 stage1. Mostly useful for compiler development.
30b74385
RW
1495 --enable-objc-gc enable use of Boehm's garbage collector with the
1496 GNU Objective-C runtime
1497 --enable-bootstrap enable bootstrapping [yes if native build]
1498 --enable-serial-[{host,target,build}-]configure
1499 force sequential configuration of
1c710c3c 1500 sub-packages for the host, target or build
30b74385 1501 machine, or all sub-packages
1c710c3c
DJ
1502 --enable-maintainer-mode enable make rules and dependencies not useful
1503 (and sometimes confusing) to the casual installer
30b74385
RW
1504 --enable-stage1-checking[=all] choose additional checking for stage1
1505 of the compiler
1c710c3c
DJ
1506 --enable-werror enable -Werror in bootstrap stage2 and later
1507
1508Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1512 --with-mpc=PATH specify prefix directory for installed MPC package.
1513 Equivalent to --with-mpc-include=PATH/include
1514 plus --with-mpc-lib=PATH/lib
1515 --with-mpc-include=PATH
1516 specify directory for installed MPC include files
1517 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1518 --with-mpfr-dir=PATH this option has been REMOVED
1519 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1520 Equivalent to --with-mpfr-include=PATH/include
1521 plus --with-mpfr-lib=PATH/lib
1522 --with-mpfr-include=PATH
30b74385
RW
1523 specify directory for installed MPFR include files
1524 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1525 --with-gmp-dir=PATH this option has been REMOVED
1526 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1527 Equivalent to --with-gmp-include=PATH/include
1528 plus --with-gmp-lib=PATH/lib
30b74385
RW
1529 --with-gmp-include=PATH specify directory for installed GMP include files
1530 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1531 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1532 when linking with PPL
00020c16
ILT
1533 --with-stage1-ldflags=FLAGS Linker flags for stage1
1534 -with-stage1-libs=LIBS Libraries for stage1
00020c16 1535 --with-boot-libs=LIBS Libraries for stage2 and later
ed2eaa9f 1536 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
f8bf9252
SP
1537 --with-ppl=PATH Specify prefix directory for the installed PPL package
1538 Equivalent to --with-ppl-include=PATH/include
1539 plus --with-ppl-lib=PATH/lib
1540 --with-ppl-include=PATH Specify directory for installed PPL include files
1541 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d789184e 1542 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
f8bf9252
SP
1543 Equivalent to --with-cloog-include=PATH/include
1544 plus --with-cloog-lib=PATH/lib
d789184e
SP
1545 --with-cloog-include=PATH Specify directory for installed CLooG include files
1546 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
d7f09764
DN
1547 --with-libelf=PATH Specify prefix directory for the installed libelf package
1548 Equivalent to --with-libelf-include=PATH/include
1549 plus --with-libelf-lib=PATH/lib
1550 --with-libelf-include=PATH Specify directory for installed libelf include files
1551 --with-libelf-lib=PATH Specify the directory for the installed libelf library
30b74385 1552 --with-build-sysroot=SYSROOT
1c710c3c 1553 use sysroot as the system root during the build
c8aea42c
PB
1554 --with-debug-prefix-map='A=B C=D ...'
1555 map A to B, C to D ... in debug information
5646b7b9
AO
1556--with-build-config='NAME NAME2...'
1557 Use config/NAME.mk build configuration
30b74385 1558 --with-build-time-tools=PATH
1c710c3c 1559 use given path to find target tools during the build
1c710c3c
DJ
1560
1561Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
5213506e
RW
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1569 CXX C++ compiler command
1570 CXXFLAGS C++ compiler flags
d7f09764 1571 CPP C preprocessor
278a7a38
AO
1572 AR AR for the host
1573 AS AS for the host
1574 DLLTOOL DLLTOOL for the host
1575 LD LD for the host
1576 LIPO LIPO for the host
1577 NM NM for the host
1578 RANLIB RANLIB for the host
1579 STRIP STRIP for the host
1580 WINDRES WINDRES for the host
901119ae 1581 WINDMC WINDMC for the host
278a7a38
AO
1582 OBJCOPY OBJCOPY for the host
1583 OBJDUMP OBJDUMP for the host
1584 CC_FOR_TARGET
1585 CC for the target
1586 CXX_FOR_TARGET
1587 CXX for the target
1588 GCC_FOR_TARGET
1589 GCC for the target
1590 GCJ_FOR_TARGET
1591 GCJ for the target
1592 GFORTRAN_FOR_TARGET
1593 GFORTRAN for the target
1594 AR_FOR_TARGET
1595 AR for the target
1596 AS_FOR_TARGET
1597 AS for the target
1598 DLLTOOL_FOR_TARGET
1599 DLLTOOL for the target
1600 LD_FOR_TARGET
1601 LD for the target
1602 LIPO_FOR_TARGET
1603 LIPO for the target
1604 NM_FOR_TARGET
1605 NM for the target
1606 OBJDUMP_FOR_TARGET
1607 OBJDUMP for the target
1608 RANLIB_FOR_TARGET
1609 RANLIB for the target
1610 STRIP_FOR_TARGET
1611 STRIP for the target
1612 WINDRES_FOR_TARGET
1613 WINDRES for the target
901119ae
KT
1614 WINDMC_FOR_TARGET
1615 WINDMC for the target
1c710c3c
DJ
1616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
5213506e 1620Report bugs to the package provider.
1c710c3c 1621_ACEOF
5213506e 1622ac_status=$?
1c710c3c
DJ
1623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1c710c3c 1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1c710c3c
DJ
1631 ac_builddir=.
1632
5213506e
RW
1633case "$ac_dir" in
1634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635*)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643esac
1644ac_abs_top_builddir=$ac_pwd
1645ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646# for backward compatibility:
1647ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1648
1649case $srcdir in
5213506e 1650 .) # We are building in place.
1c710c3c 1651 ac_srcdir=.
5213506e
RW
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1655 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1662esac
5213506e
RW
1663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1673 else
5213506e
RW
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1677 done
1678fi
1679
5213506e 1680test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1681if $ac_init_version; then
1682 cat <<\_ACEOF
5213506e
RW
1683configure
1684generated by GNU Autoconf 2.64
1c710c3c 1685
5213506e 1686Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
1689_ACEOF
5213506e 1690 exit
0b0dc272 1691fi
5213506e
RW
1692
1693## ------------------------ ##
1694## Autoconf initialization. ##
1695## ------------------------ ##
1696
1697# ac_fn_c_try_compile LINENO
1698# --------------------------
1699# Try to compile conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_compile ()
1701{
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1732
1733} # ac_fn_c_try_compile
1734
1735# ac_fn_cxx_try_compile LINENO
1736# ----------------------------
1737# Try to compile conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_cxx_try_compile ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771} # ac_fn_cxx_try_compile
1772
1773# ac_fn_c_try_link LINENO
1774# -----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_link ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1816
1817} # ac_fn_c_try_link
d7f09764
DN
1818
1819# ac_fn_c_try_cpp LINENO
1820# ----------------------
1821# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_cpp ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 if { { ac_try="$ac_cpp conftest.$ac_ext"
1826case "(($ac_try" in
1827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1828 *) ac_try_echo=$ac_try;;
1829esac
1830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1831$as_echo "$ac_try_echo"; } >&5
1832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833 ac_status=$?
1834 if test -s conftest.err; then
1835 grep -v '^ *+' conftest.err >conftest.er1
1836 cat conftest.er1 >&5
1837 mv -f conftest.er1 conftest.err
1838 fi
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; } >/dev/null && {
1841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1842 test ! -s conftest.err
1843 }; then :
1844 ac_retval=0
1845else
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=1
1850fi
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 return $ac_retval
1853
1854} # ac_fn_c_try_cpp
1855
1856# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1857# -------------------------------------------------------
1858# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1859# the include files in INCLUDES and setting the cache variable VAR
1860# accordingly.
1861ac_fn_c_check_header_mongrel ()
1862{
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869fi
1870eval ac_res=\$$3
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873else
1874 # Is the header compilable?
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1876$as_echo_n "checking $2 usability... " >&6; }
1877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879$4
1880#include <$2>
1881_ACEOF
1882if ac_fn_c_try_compile "$LINENO"; then :
1883 ac_header_compiler=yes
1884else
1885 ac_header_compiler=no
1886fi
1887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1889$as_echo "$ac_header_compiler" >&6; }
1890
1891# Is the header present?
1892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1893$as_echo_n "checking $2 presence... " >&6; }
1894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895/* end confdefs.h. */
1896#include <$2>
1897_ACEOF
1898if ac_fn_c_try_cpp "$LINENO"; then :
1899 ac_header_preproc=yes
1900else
1901 ac_header_preproc=no
1902fi
1903rm -f conftest.err conftest.$ac_ext
1904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1905$as_echo "$ac_header_preproc" >&6; }
1906
1907# So? What about this header?
1908case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1909 yes:no: )
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1911$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1913$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1914 ;;
1915 no:yes:* )
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1917$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1919$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1921$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1923$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1925$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1926 ;;
1927esac
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932else
1933 eval "$3=\$ac_header_compiler"
1934fi
1935eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937$as_echo "$ac_res" >&6; }
1938fi
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941} # ac_fn_c_check_header_mongrel
1942
1943# ac_fn_c_try_run LINENO
1944# ----------------------
1945# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946# that executables *can* be run.
1947ac_fn_c_try_run ()
1948{
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_link"
1951case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954esac
1955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956$as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961 { { case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964esac
1965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966$as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_try") 2>&5
1968 ac_status=$?
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; }; }; then :
1971 ac_retval=0
1972else
1973 $as_echo "$as_me: program exited with status $ac_status" >&5
1974 $as_echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_retval=$ac_status
1978fi
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1982
1983} # ac_fn_c_try_run
1984
1985# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986# -------------------------------------------------------
1987# Tests whether HEADER exists and can be compiled using the include files in
1988# INCLUDES, setting the cache variable VAR accordingly.
1989ac_fn_c_check_header_compile ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$4
2000#include <$2>
2001_ACEOF
2002if ac_fn_c_try_compile "$LINENO"; then :
2003 eval "$3=yes"
2004else
2005 eval "$3=no"
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013
2014} # ac_fn_c_check_header_compile
5213506e 2015cat >config.log <<_ACEOF
1c710c3c
DJ
2016This file contains any messages produced by compilers while
2017running configure, to aid debugging if configure makes a mistake.
2018
2019It was created by $as_me, which was
5213506e 2020generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
2021
2022 $ $0 $@
2023
2024_ACEOF
5213506e 2025exec 5>>config.log
1c710c3c
DJ
2026{
2027cat <<_ASUNAME
2028## --------- ##
2029## Platform. ##
2030## --------- ##
2031
2032hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2033uname -m = `(uname -m) 2>/dev/null || echo unknown`
2034uname -r = `(uname -r) 2>/dev/null || echo unknown`
2035uname -s = `(uname -s) 2>/dev/null || echo unknown`
2036uname -v = `(uname -v) 2>/dev/null || echo unknown`
2037
2038/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2039/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2040
2041/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2042/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2043/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 2044/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
2045/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2046/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2047/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2048
2049_ASUNAME
2050
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
5213506e
RW
2056 $as_echo "PATH: $as_dir"
2057 done
2058IFS=$as_save_IFS
1c710c3c
DJ
2059
2060} >&5
2061
2062cat >&5 <<_ACEOF
2063
2064
2065## ----------- ##
2066## Core tests. ##
2067## ----------- ##
2068
2069_ACEOF
2070
2071
2072# Keep a trace of the command line.
2073# Strip out --no-create and --no-recursion so they do not pile up.
2074# Strip out --silent because we don't want to record it for future runs.
2075# Also quote any args containing shell meta-characters.
2076# Make two passes to allow for proper duplicate-argument suppression.
2077ac_configure_args=
2078ac_configure_args0=
2079ac_configure_args1=
1c710c3c
DJ
2080ac_must_keep_next=false
2081for ac_pass in 1 2
2082do
2083 for ac_arg
2084 do
2085 case $ac_arg in
2086 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2088 | -silent | --silent | --silen | --sile | --sil)
2089 continue ;;
5213506e
RW
2090 *\'*)
2091 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2092 esac
2093 case $ac_pass in
5213506e 2094 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 2095 2)
5213506e 2096 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
2097 if test $ac_must_keep_next = true; then
2098 ac_must_keep_next=false # Got value, back to normal.
2099 else
2100 case $ac_arg in
2101 *=* | --config-cache | -C | -disable-* | --disable-* \
2102 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2103 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2104 | -with-* | --with-* | -without-* | --without-* | --x)
2105 case "$ac_configure_args0 " in
2106 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2107 esac
2108 ;;
2109 -* ) ac_must_keep_next=true ;;
2110 esac
2111 fi
5213506e 2112 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2113 ;;
2114 esac
2115 done
2116done
5213506e
RW
2117{ ac_configure_args0=; unset ac_configure_args0;}
2118{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2119
2120# When interrupted or exit'd, cleanup temporary files, and complete
2121# config.log. We remove comments because anyway the quotes in there
2122# would cause problems or look ugly.
5213506e
RW
2123# WARNING: Use '\'' to represent an apostrophe within the trap.
2124# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2125trap 'exit_status=$?
2126 # Save into config.log some information that might help in debugging.
2127 {
2128 echo
2129
2130 cat <<\_ASBOX
2131## ---------------- ##
2132## Cache variables. ##
2133## ---------------- ##
2134_ASBOX
2135 echo
2136 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2137(
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2140 case $ac_val in #(
2141 *${as_nl}*)
2142 case $ac_var in #(
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2145 esac
2146 case $ac_var in #(
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2150 esac ;;
2151 esac
2152 done
1c710c3c 2153 (set) 2>&1 |
5213506e
RW
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
1c710c3c 2156 sed -n \
5213506e
RW
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2159 ;; #(
1c710c3c 2160 *)
5213506e 2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2162 ;;
5213506e
RW
2163 esac |
2164 sort
2165)
1c710c3c
DJ
2166 echo
2167
2168 cat <<\_ASBOX
2169## ----------------- ##
2170## Output variables. ##
2171## ----------------- ##
2172_ASBOX
2173 echo
2174 for ac_var in $ac_subst_vars
2175 do
5213506e
RW
2176 eval ac_val=\$$ac_var
2177 case $ac_val in
2178 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 esac
2180 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2181 done | sort
2182 echo
2183
2184 if test -n "$ac_subst_files"; then
2185 cat <<\_ASBOX
5213506e
RW
2186## ------------------- ##
2187## File substitutions. ##
2188## ------------------- ##
1c710c3c
DJ
2189_ASBOX
2190 echo
2191 for ac_var in $ac_subst_files
2192 do
5213506e
RW
2193 eval ac_val=\$$ac_var
2194 case $ac_val in
2195 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196 esac
2197 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2198 done | sort
2199 echo
2200 fi
2201
2202 if test -s confdefs.h; then
2203 cat <<\_ASBOX
2204## ----------- ##
2205## confdefs.h. ##
2206## ----------- ##
2207_ASBOX
2208 echo
5213506e 2209 cat confdefs.h
1c710c3c
DJ
2210 echo
2211 fi
2212 test "$ac_signal" != 0 &&
5213506e
RW
2213 $as_echo "$as_me: caught signal $ac_signal"
2214 $as_echo "$as_me: exit $exit_status"
1c710c3c 2215 } >&5
5213506e
RW
2216 rm -f core *.core core.conftest.* &&
2217 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2218 exit $exit_status
5213506e 2219' 0
1c710c3c 2220for ac_signal in 1 2 13 15; do
5213506e 2221 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2222done
2223ac_signal=0
2224
2225# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2226rm -f -r conftest* confdefs.h
2227
2228$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2229
2230# Predefined preprocessor variables.
2231
2232cat >>confdefs.h <<_ACEOF
2233#define PACKAGE_NAME "$PACKAGE_NAME"
2234_ACEOF
2235
1c710c3c
DJ
2236cat >>confdefs.h <<_ACEOF
2237#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2238_ACEOF
2239
1c710c3c
DJ
2240cat >>confdefs.h <<_ACEOF
2241#define PACKAGE_VERSION "$PACKAGE_VERSION"
2242_ACEOF
0b0dc272 2243
1c710c3c
DJ
2244cat >>confdefs.h <<_ACEOF
2245#define PACKAGE_STRING "$PACKAGE_STRING"
2246_ACEOF
2247
1c710c3c
DJ
2248cat >>confdefs.h <<_ACEOF
2249#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2250_ACEOF
2251
5213506e
RW
2252cat >>confdefs.h <<_ACEOF
2253#define PACKAGE_URL "$PACKAGE_URL"
2254_ACEOF
2255
1c710c3c
DJ
2256
2257# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2258# Prefer an explicitly selected file to automatically selected ones.
2259ac_site_file1=NONE
2260ac_site_file2=NONE
2261if test -n "$CONFIG_SITE"; then
2262 ac_site_file1=$CONFIG_SITE
2263elif test "x$prefix" != xNONE; then
2264 ac_site_file1=$prefix/share/config.site
2265 ac_site_file2=$prefix/etc/config.site
2266else
2267 ac_site_file1=$ac_default_prefix/share/config.site
2268 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2269fi
5213506e
RW
2270for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271do
2272 test "x$ac_site_file" = xNONE && continue
671aa708 2273 if test -r "$ac_site_file"; then
5213506e
RW
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2276 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2277 . "$ac_site_file"
2278 fi
2279done
2280
2281if test -r "$cache_file"; then
1c710c3c
DJ
2282 # Some versions of bash will fail to source /dev/null (special
2283 # files actually), so we avoid doing that.
2284 if test -f "$cache_file"; then
5213506e
RW
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2286$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2287 case $cache_file in
5213506e
RW
2288 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2289 *) . "./$cache_file";;
1c710c3c
DJ
2290 esac
2291 fi
671aa708 2292else
5213506e
RW
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2294$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2295 >$cache_file
2296fi
2297
2298# Check that the precious variables saved in the cache have kept the same
2299# value.
2300ac_cache_corrupted=false
5213506e 2301for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2303 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2304 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2305 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2306 case $ac_old_set,$ac_new_set in
2307 set,)
5213506e
RW
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2309$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2310 ac_cache_corrupted=: ;;
2311 ,set)
5213506e
RW
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2313$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2314 ac_cache_corrupted=: ;;
2315 ,);;
2316 *)
2317 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2318 # differences in whitespace do not lead to failure.
2319 ac_old_val_w=`echo x $ac_old_val`
2320 ac_new_val_w=`echo x $ac_new_val`
2321 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2323$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2324 ac_cache_corrupted=:
2325 else
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2327$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2328 eval $ac_var=\$ac_old_val
2329 fi
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2331$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2333$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2334 fi;;
2335 esac
2336 # Pass precious variables to config.status.
2337 if test "$ac_new_set" = set; then
2338 case $ac_new_val in
5213506e 2339 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2340 *) ac_arg=$ac_var=$ac_new_val ;;
2341 esac
2342 case " $ac_configure_args " in
2343 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2344 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2345 esac
2346 fi
2347done
2348if $ac_cache_corrupted; then
5213506e
RW
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2352$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2353 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2354fi
5213506e
RW
2355## -------------------- ##
2356## Main body of script. ##
2357## -------------------- ##
671aa708 2358
2aeb72e9
DD
2359ac_ext=c
2360ac_cpp='$CPP $CPPFLAGS'
2361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2363ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364
1c710c3c
DJ
2365
2366
2367
1c710c3c
DJ
2368
2369
0115d4a3 2370
1c710c3c 2371
ad33ff57
RW
2372
2373progname=$0
2374# if PWD already has a value, it is probably wrong.
2375if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2376
2377# Export original configure arguments for use by sub-configures.
2378# Quote arguments with shell meta charatcers.
2379TOPLEVEL_CONFIGURE_ARGUMENTS=
2380set -- "$progname" "$@"
2381for ac_arg
2382do
2383 case "$ac_arg" in
2384 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2385 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2386 # if the argument is of the form -foo=baz, quote the baz part only
2387 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2388 *) ;;
2389 esac
2390 # Add the quoted argument to the list.
2391 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2392done
2393if test "$silent" = yes; then
2394 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2395fi
2396# Remove the initial space we just introduced and, as these will be
2397# expanded by make, quote '$'.
2398TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2399
1c710c3c
DJ
2400
2401# Find the build, host, and target systems.
671aa708 2402ac_aux_dir=
5213506e
RW
2403for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2404 for ac_t in install-sh install.sh shtool; do
2405 if test -f "$ac_dir/$ac_t"; then
2406 ac_aux_dir=$ac_dir
2407 ac_install_sh="$ac_aux_dir/$ac_t -c"
2408 break 2
2409 fi
2410 done
671aa708
NN
2411done
2412if test -z "$ac_aux_dir"; then
5213506e 2413 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2414fi
5213506e
RW
2415
2416# These three variables are undocumented and unsupported,
2417# and are intended to be withdrawn in a future Autoconf release.
2418# They can cause serious problems if a builder's source tree is in a directory
2419# whose full name contains unusual characters.
2420ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2421ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2422ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2423
671aa708 2424
1c710c3c 2425# Make sure we can run config.sub.
5213506e
RW
2426$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2427 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2428
2429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2430$as_echo_n "checking build system type... " >&6; }
2431if test "${ac_cv_build+set}" = set; then :
2432 $as_echo_n "(cached) " >&6
2433else
2434 ac_build_alias=$build_alias
2435test "x$ac_build_alias" = x &&
2436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2437test "x$ac_build_alias" = x &&
2438 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2439ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2440 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2441
2442fi
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2444$as_echo "$ac_cv_build" >&6; }
2445case $ac_cv_build in
2446*-*-*) ;;
2447*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2448esac
1c710c3c 2449build=$ac_cv_build
5213506e
RW
2450ac_save_IFS=$IFS; IFS='-'
2451set x $ac_cv_build
2452shift
2453build_cpu=$1
2454build_vendor=$2
2455shift; shift
2456# Remember, the first character of IFS is used to create $*,
2457# except with old shells:
2458build_os=$*
2459IFS=$ac_save_IFS
2460case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2461
671aa708 2462
1c710c3c
DJ
2463 case ${build_alias} in
2464 "") build_noncanonical=${build} ;;
2465 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2466esac
2467
2468
af71363e 2469
1c710c3c
DJ
2470 case ${host_alias} in
2471 "") host_noncanonical=${build_noncanonical} ;;
2472 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2473esac
2474
af71363e 2475
1c710c3c
DJ
2476
2477 case ${target_alias} in
2478 "") target_noncanonical=${host_noncanonical} ;;
2479 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2480esac
2481
af71363e 2482
1c710c3c
DJ
2483
2484
2485test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2486 test "$program_prefix$program_suffix$program_transform_name" = \
2487 NONENONEs,x,x, &&
1c710c3c 2488 program_transform_name=s,y,y,
af71363e 2489
5213506e
RW
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2491$as_echo_n "checking host system type... " >&6; }
2492if test "${ac_cv_host+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
af71363e 2494else
5213506e
RW
2495 if test "x$host_alias" = x; then
2496 ac_cv_host=$ac_cv_build
2497else
2498 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2499 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2500fi
1c710c3c 2501
af71363e 2502fi
5213506e
RW
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2504$as_echo "$ac_cv_host" >&6; }
2505case $ac_cv_host in
2506*-*-*) ;;
2507*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2508esac
1c710c3c 2509host=$ac_cv_host
5213506e
RW
2510ac_save_IFS=$IFS; IFS='-'
2511set x $ac_cv_host
2512shift
2513host_cpu=$1
2514host_vendor=$2
2515shift; shift
2516# Remember, the first character of IFS is used to create $*,
2517# except with old shells:
2518host_os=$*
2519IFS=$ac_save_IFS
2520case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2521
2522
5213506e
RW
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2524$as_echo_n "checking target system type... " >&6; }
2525if test "${ac_cv_target+set}" = set; then :
2526 $as_echo_n "(cached) " >&6
1c710c3c 2527else
5213506e
RW
2528 if test "x$target_alias" = x; then
2529 ac_cv_target=$ac_cv_host
2530else
2531 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2532 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2533fi
1c710c3c
DJ
2534
2535fi
5213506e
RW
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2537$as_echo "$ac_cv_target" >&6; }
2538case $ac_cv_target in
2539*-*-*) ;;
2540*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2541esac
1c710c3c 2542target=$ac_cv_target
5213506e
RW
2543ac_save_IFS=$IFS; IFS='-'
2544set x $ac_cv_target
2545shift
2546target_cpu=$1
2547target_vendor=$2
2548shift; shift
2549# Remember, the first character of IFS is used to create $*,
2550# except with old shells:
2551target_os=$*
2552IFS=$ac_save_IFS
2553case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2554
2555
2556# The aliases save the names the user supplied, while $host etc.
2557# will get canonicalized.
2558test -n "$target_alias" &&
2559 test "$program_prefix$program_suffix$program_transform_name" = \
2560 NONENONEs,x,x, &&
2561 program_prefix=${target_alias}-
5213506e 2562
671aa708 2563test "$program_prefix" != NONE &&
5213506e 2564 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2565# Use a double $ so make ignores it.
2566test "$program_suffix" != NONE &&
5213506e
RW
2567 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2568# Double any \ or $.
1c710c3c 2569# By default was `s,x,x', remove it if useless.
5213506e
RW
2570ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2571program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2572
671aa708
NN
2573
2574
775956d0
NN
2575# Get 'install' or 'install-sh' and its variants.
2576# Find a good install program. We prefer a C program (faster),
2577# so one script is as good as another. But avoid the broken or
2578# incompatible versions:
2579# SysV /etc/install, /usr/sbin/install
2580# SunOS /usr/etc/install
2581# IRIX /sbin/install
2582# AIX /bin/install
1c710c3c 2583# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2584# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2585# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2586# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2587# OS/2's system install, which has a completely different semantic
775956d0 2588# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2589# Reject install programs that cannot install multiple files.
5213506e
RW
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2591$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2592if test -z "$INSTALL"; then
5213506e
RW
2593if test "${ac_cv_path_install+set}" = set; then :
2594 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2595else
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
5213506e
RW
2601 # Account for people who put trailing slashes in PATH elements.
2602case $as_dir/ in #((
2603 ./ | .// | /[cC]/* | \
1c710c3c 2604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2605 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2606 /usr/ucb/* ) ;;
2607 *)
2608 # OSF1 and SCO ODT 3.0 have their own names for install.
2609 # Don't use installbsd from OSF since it installs stuff as root
2610 # by default.
2611 for ac_prog in ginstall scoinst install; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2613 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2614 if test $ac_prog = install &&
1c710c3c 2615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2616 # AIX install. It has an incompatible calling convention.
2617 :
1c710c3c
DJ
2618 elif test $ac_prog = install &&
2619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2620 # program-specific install script used by HP pwplus--don't use.
2621 :
775956d0 2622 else
38d24731
RW
2623 rm -rf conftest.one conftest.two conftest.dir
2624 echo one > conftest.one
2625 echo two > conftest.two
2626 mkdir conftest.dir
2627 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2628 test -s conftest.one && test -s conftest.two &&
2629 test -s conftest.dir/conftest.one &&
2630 test -s conftest.dir/conftest.two
2631 then
2632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2633 break 3
2634 fi
775956d0
NN
2635 fi
2636 fi
2637 done
1c710c3c
DJ
2638 done
2639 ;;
2640esac
5213506e
RW
2641
2642 done
2643IFS=$as_save_IFS
1c710c3c 2644
38d24731 2645rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2646
2647fi
2648 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2649 INSTALL=$ac_cv_path_install
775956d0 2650 else
38d24731
RW
2651 # As a last resort, use the slow shell script. Don't cache a
2652 # value for INSTALL within a source directory, because that will
775956d0 2653 # break other packages using the cache if that directory is
38d24731 2654 # removed, or if the value is a relative name.
1c710c3c 2655 INSTALL=$ac_install_sh
775956d0
NN
2656 fi
2657fi
5213506e
RW
2658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2659$as_echo "$INSTALL" >&6; }
775956d0
NN
2660
2661# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2662# It thinks the first close brace ends the variable substitution.
2663test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2664
1c710c3c 2665test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2666
2667test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2668
5213506e
RW
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2670$as_echo_n "checking whether ln works... " >&6; }
2671if test "${acx_cv_prog_LN+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
ad6717df
PB
2673else
2674 rm -f conftestdata_t
2675echo >conftestdata_f
2676if ln conftestdata_f conftestdata_t 2>/dev/null
2677then
2678 acx_cv_prog_LN=ln
2679else
2680 acx_cv_prog_LN=no
2681fi
2682rm -f conftestdata_f conftestdata_t
2683
2684fi
2685if test $acx_cv_prog_LN = no; then
2686 LN="cp"
5213506e
RW
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2688$as_echo "no, using $LN" >&6; }
ad6717df
PB
2689else
2690 LN="$acx_cv_prog_LN"
5213506e
RW
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2692$as_echo "yes" >&6; }
ad6717df
PB
2693fi
2694
5213506e
RW
2695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2696$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2697LN_S=$as_ln_s
2698if test "$LN_S" = "ln -s"; then
5213506e
RW
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2700$as_echo "yes" >&6; }
fb0103e5 2701else
5213506e
RW
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2703$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2704fi
2705
87264276
PB
2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2707$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2708if test "${ac_cv_path_SED+set}" = set; then :
2709 $as_echo_n "(cached) " >&6
2710else
2711 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2712 for ac_i in 1 2 3 4 5 6 7; do
2713 ac_script="$ac_script$as_nl$ac_script"
2714 done
2715 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2716 { ac_script=; unset ac_script;}
2717 if test -z "$SED"; then
2718 ac_path_SED_found=false
2719 # Loop through the user's path and test for each of PROGNAME-LIST
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721for as_dir in $PATH
2722do
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_prog in sed gsed; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2728 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2729# Check for GNU ac_path_SED and select it if it is found.
2730 # Check for GNU $ac_path_SED
2731case `"$ac_path_SED" --version 2>&1` in
2732*GNU*)
2733 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2734*)
2735 ac_count=0
2736 $as_echo_n 0123456789 >"conftest.in"
2737 while :
2738 do
2739 cat "conftest.in" "conftest.in" >"conftest.tmp"
2740 mv "conftest.tmp" "conftest.in"
2741 cp "conftest.in" "conftest.nl"
2742 $as_echo '' >> "conftest.nl"
2743 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2745 as_fn_arith $ac_count + 1 && ac_count=$as_val
2746 if test $ac_count -gt ${ac_path_SED_max-0}; then
2747 # Best one so far, save it but keep looking for a better one
2748 ac_cv_path_SED="$ac_path_SED"
2749 ac_path_SED_max=$ac_count
2750 fi
2751 # 10*(2^10) chars as input seems more than enough
2752 test $ac_count -gt 10 && break
2753 done
2754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2755esac
2756
2757 $ac_path_SED_found && break 3
2758 done
2759 done
2760 done
2761IFS=$as_save_IFS
2762 if test -z "$ac_cv_path_SED"; then
2763 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2764 fi
2765else
2766 ac_cv_path_SED=$SED
2767fi
2768
2769fi
2770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2771$as_echo "$ac_cv_path_SED" >&6; }
2772 SED="$ac_cv_path_SED"
2773 rm -f conftest.sed
2774
2775for ac_prog in gawk mawk nawk awk
2776do
2777 # Extract the first word of "$ac_prog", so it can be a program name with args.
2778set dummy $ac_prog; ac_word=$2
2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780$as_echo_n "checking for $ac_word... " >&6; }
2781if test "${ac_cv_prog_AWK+set}" = set; then :
2782 $as_echo_n "(cached) " >&6
2783else
2784 if test -n "$AWK"; then
2785 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2786else
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790 IFS=$as_save_IFS
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_AWK="$ac_prog"
2795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796 break 2
2797 fi
2798done
2799 done
2800IFS=$as_save_IFS
2801
2802fi
2803fi
2804AWK=$ac_cv_prog_AWK
2805if test -n "$AWK"; then
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2807$as_echo "$AWK" >&6; }
2808else
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810$as_echo "no" >&6; }
2811fi
2812
2813
2814 test -n "$AWK" && break
2815done
2816
775956d0 2817
79c06341 2818### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2819### If we are on Windows, search for the shell. This will permit people
2820### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2821### without also having to set CONFIG_SHELL. This code will work when
2822### using bash, which sets OSTYPE.
2823case "${OSTYPE}" in
2824*win32*)
671aa708
NN
2825 if test x${CONFIG_SHELL} = x ; then
2826 if test ! -f /bin/sh ; then
2827 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2828 CONFIG_SHELL=${SHELL}
2829 export CONFIG_SHELL
2830 else
2831 for prog in sh sh.exe bash bash.exe; do
2832 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2833 for dir in $PATH; do
2834 test -z "$dir" && dir=.
2835 if test -f $dir/$prog; then
2836 CONFIG_SHELL=$dir/$prog
2837 export CONFIG_SHELL
2838 break
2839 fi
2840 done
2841 IFS="$save_ifs"
2842 test -n "${CONFIG_SHELL}" && break
2843 done
2844 fi
2845 fi
2846 fi
2847 ;;
2848esac
2849
2850config_shell=${CONFIG_SHELL-/bin/sh}
2851
671aa708 2852moveifchange=${srcdir}/move-if-change
79c06341 2853
ee6a22df
L
2854srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2855
2856# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2857# a relative path.
2858if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2859 INSTALL="${srcpwd}/install-sh -c"
2860fi
2861
671aa708
NN
2862# Set srcdir to "." if that's what it is.
2863# This is important for multilib support.
2864pwd=`${PWDCMD-pwd}`
671aa708
NN
2865if test "${pwd}" = "${srcpwd}" ; then
2866 srcdir=.
79c06341
JL
2867fi
2868
671aa708 2869topsrcdir=$srcpwd
5d4a5ee6 2870
671aa708 2871extra_host_args=
afabd8e6 2872
671aa708
NN
2873### To add a new directory to the tree, first choose whether it is a target
2874### or a host dependent tool. Then put it into the appropriate list
2875### (library or tools, host or target), doing a dependency sort.
79c06341 2876
1c710c3c 2877# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2878# configdirs, or target_configdirs; see the serialization section below.
79c06341 2879
1c710c3c
DJ
2880# Dependency sorting is only needed when *configuration* must be done in
2881# a particular order. In all cases a dependency should be specified in
671aa708 2882# the Makefile, whether or not it's implicitly specified here.
79c06341 2883
671aa708
NN
2884# Double entries in build_configdirs, configdirs, or target_configdirs may
2885# cause circular dependencies and break everything horribly.
79c06341 2886
23f6b2f9
PB
2887# these library is used by various programs built for the build
2888# environment
2889#
2890build_libs="build-libiberty"
2891
2892# these tools are built for the build environment
71b5d516 2893build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2894
671aa708
NN
2895# these libraries are used by various programs built for the host environment
2896#
f61428ed 2897host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2898
671aa708
NN
2899# these tools are built for the host environment
2900# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2901# know that we are building the simulator.
2902# binutils, gas and ld appear in that order because it makes sense to run
2903# "make check" in that particular order.
5afab7ad 2904# If --enable-gold is used, "gold" will replace "ld".
8c32c9f0 2905host_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
2906
2907# libgcj represents the runtime libraries only used by gcj.
2908libgcj="target-libffi \
671aa708
NN
2909 target-zlib \
2910 target-qthreads \
2911 target-libjava"
2912
2913# these libraries are built for the target environment, and are built after
2914# the host libraries and the host tools (which may be a cross compiler)
2915#
291f172e
DJ
2916target_libraries="target-libgcc \
2917 target-libiberty \
671aa708
NN
2918 target-libgloss \
2919 target-newlib \
6d3b5aea 2920 target-libgomp \
cb543528 2921 target-libstdc++-v3 \
6de9cd9a 2922 target-libmudflap \
77008252 2923 target-libssp \
6de9cd9a 2924 target-libgfortran \
7cd0cf9c 2925 target-boehm-gc \
77d187bc 2926 ${libgcj} \
d9cdb878 2927 target-libobjc \
6d3b5aea 2928 target-libada"
671aa708 2929
4dbda6f0
NN
2930# these tools are built using the target libraries, and are intended to
2931# run only in the target environment
671aa708 2932#
4dbda6f0 2933# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2934# list belongs in this list. those programs are also very likely
2935# candidates for the "native_only" list which follows
2936#
97286f7f 2937target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2938
671aa708 2939################################################################################
79c06341 2940
671aa708
NN
2941## All tools belong in one of the four categories, and are assigned above
2942## We assign ${configdirs} this way to remove all embedded newlines. This
2943## is important because configure will choke if they ever get through.
2944## ${configdirs} is directories we build using the host tools.
2945## ${target_configdirs} is directories we build using the target tools.
671aa708 2946configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2947target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2948build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2949
ac9e6043
RW
2950
2951
671aa708 2952################################################################################
79c06341 2953
671aa708 2954srcname="gnu development package"
79c06341 2955
671aa708
NN
2956# This gets set non-empty for some net releases of packages.
2957appdirs=""
79c06341 2958
671aa708
NN
2959# Define is_cross_compiler to save on calls to 'test'.
2960is_cross_compiler=
2961if test x"${host}" = x"${target}" ; then
2962 is_cross_compiler=no
79c06341 2963else
671aa708 2964 is_cross_compiler=yes
1c710c3c 2965fi
79c06341 2966
b4acb5ef 2967# Find the build and target subdir names.
8b87bb96 2968
2e9e6f68
DJ
2969# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2970# have matching libraries, they should use host libraries: Makefile.tpl
2971# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2972# However, they still use the build modules, because the corresponding
2973# host modules (e.g. bison) are only built for the host when bootstrap
2974# finishes. So:
2975# - build_subdir is where we find build modules, and never changes.
2976# - build_libsubdir is where we find build libraries, and can be overridden.
2977
2978# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2979build_subdir="build-${build_noncanonical}"
1c710c3c 2980
5213506e
RW
2981# Check whether --with-build-libsubdir was given.
2982if test "${with_build_libsubdir+set}" = set; then :
2983 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2984else
2985 build_libsubdir="$build_subdir"
5213506e
RW
2986fi
2987
215c351a
PB
2988# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2989if ( test $srcdir = . && test -d gcc ) \
2990 || test -d $srcdir/../host-${host_noncanonical}; then
2991 host_subdir="host-${host_noncanonical}"
2992else
2993 host_subdir=.
2994fi
8b87bb96
NN
2995# No prefix.
2996target_subdir=${target_noncanonical}
1c710c3c 2997
0db770bd
RW
2998# Be sure to cover against remnants of an in-tree build.
2999if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
3000 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
3001Use a pristine source tree when building in a separate tree" "$LINENO" 5
3002fi
79c06341 3003
671aa708
NN
3004# Skipdirs are removed silently.
3005skipdirs=
3006# Noconfigdirs are removed loudly.
3007noconfigdirs=""
79c06341 3008
671aa708
NN
3009use_gnu_ld=
3010# Make sure we don't let GNU ld be added if we didn't want it.
3011if test x$with_gnu_ld = xno ; then
3012 use_gnu_ld=no
5afab7ad 3013 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
3014fi
3015
671aa708
NN
3016use_gnu_as=
3017# Make sure we don't let GNU as be added if we didn't want it.
3018if test x$with_gnu_as = xno ; then
3019 use_gnu_as=no
3020 noconfigdirs="$noconfigdirs gas"
79c06341
JL
3021fi
3022
d7f09764
DN
3023use_included_zlib=
3024# Make sure we don't let ZLIB be added if we didn't want it.
3025if test x$with_system_zlib = xyes ; then
3026 use_included_zlib=no
3027 noconfigdirs="$noconfigdirs zlib"
3028fi
3029
1c710c3c 3030# some tools are so dependent upon X11 that if we're not building with X,
671aa708 3031# it's not even worth trying to configure, much less build, that tool.
79c06341 3032
671aa708
NN
3033case ${with_x} in
3034 yes | "") ;; # the default value for this tree is that X11 is available
3035 no)
b4f96efe 3036 skipdirs="${skipdirs} tk itcl libgui"
671aa708 3037 # We won't be able to build gdbtk without X.
1c710c3c 3038 enable_gdbtk=no
671aa708
NN
3039 ;;
3040 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3041esac
79c06341 3042
671aa708 3043# Some tools are only suitable for building in a "native" situation.
1c710c3c 3044# Remove these if host!=target.
9e299237 3045native_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 3046
671aa708
NN
3047# Similarly, some are only suitable for cross toolchains.
3048# Remove these if host=target.
3049cross_only="target-libgloss target-newlib target-opcodes"
3050
3051case $is_cross_compiler in
3052 no) skipdirs="${skipdirs} ${cross_only}" ;;
3053 yes) skipdirs="${skipdirs} ${native_only}" ;;
3054esac
79c06341 3055
671aa708
NN
3056# If both --with-headers and --with-libs are specified, default to
3057# --without-newlib.
ee6a22df
L
3058if test x"${with_headers}" != x && test x"${with_headers}" != xno \
3059 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
3060 if test x"${with_newlib}" = x ; then
3061 with_newlib=no
3062 fi
79c06341
JL
3063fi
3064
671aa708
NN
3065# Recognize --with-newlib/--without-newlib.
3066case ${with_newlib} in
3067 no) skipdirs="${skipdirs} target-newlib" ;;
3068 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3069esac
79c06341 3070
5afab7ad
ILT
3071# Handle --enable-gold.
3072
5213506e
RW
3073# Check whether --enable-gold was given.
3074if test "${enable_gold+set}" = set; then :
3075 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
3076else
3077 ENABLE_GOLD=no
5213506e
RW
3078fi
3079
5afab7ad
ILT
3080if test "${ENABLE_GOLD}" = "yes"; then
3081 # Check for ELF target.
3082 is_elf=no
3083 case "${target}" in
3084 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3085 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
144c9175 3086 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
5afab7ad
ILT
3087 case "${target}" in
3088 *-*-linux*aout* | *-*-linux*oldld*)
3089 ;;
3090 *)
3091 is_elf=yes
3092 ;;
3093 esac
3094 esac
3095
3096 if test "$is_elf" = "yes"; then
3097 # Check for target supported by gold.
3098 case "${target}" in
7f1245df 3099 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
5afab7ad
ILT
3100 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
3101 ;;
3102 esac
3103 fi
3104fi
3105
671aa708 3106# Configure extra directories which are host specific
79c06341 3107
671aa708
NN
3108case "${host}" in
3109 *-cygwin*)
3110 configdirs="$configdirs libtermcap" ;;
3111esac
79c06341 3112
4fab7234
HPN
3113# A target can indicate whether a language isn't supported for some reason.
3114# Only spaces may be used in this macro; not newlines or tabs.
3115unsupported_languages=
3116
1c710c3c 3117# Remove more programs from consideration, based on the host or
671aa708
NN
3118# target this usually means that a port of the program doesn't
3119# exist yet.
ec8d6ddc 3120
671aa708
NN
3121case "${host}" in
3122 hppa*64*-*-*)
3123 noconfigdirs="$noconfigdirs byacc"
3124 ;;
f2a0e225 3125 i[3456789]86-*-vsta)
b4f96efe 3126 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 3127 ;;
f2a0e225 3128 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 3129 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 3130 ;;
95af8923
KT
3131 x86_64-*-mingw*)
3132 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3133 ;;
f2a0e225 3134 i[3456789]86-*-mingw32*)
b4f96efe 3135 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 3136 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 3137 ;;
f2a0e225 3138 i[3456789]86-*-beos*)
b4f96efe 3139 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 3140 ;;
671aa708 3141 *-*-cygwin*)
a22c2d8d 3142 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
3143 ;;
3144 *-*-netbsd*)
a22c2d8d 3145 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
3146 ;;
3147 ppc*-*-pe)
b4f96efe 3148 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
3149 ;;
3150 powerpc-*-beos*)
b4f96efe 3151 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 3152 ;;
671aa708 3153esac
ec8d6ddc 3154
6de9cd9a 3155
5213506e
RW
3156# Check whether --enable-libada was given.
3157if test "${enable_libada+set}" = set; then :
3158 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3159else
3160 ENABLE_LIBADA=yes
5213506e
RW
3161fi
3162
d9cdb878 3163if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3164 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3165fi
3166
5213506e
RW
3167# Check whether --enable-libssp was given.
3168if test "${enable_libssp+set}" = set; then :
3169 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3170else
3171 ENABLE_LIBSSP=yes
5213506e
RW
3172fi
3173
ef0087a7 3174
671aa708
NN
3175# Save it here so that, even in case of --enable-libgcj, if the Java
3176# front-end isn't enabled, we still get libgcj disabled.
3177libgcj_saved=$libgcj
3178case $enable_libgcj in
3179yes)
3180 # If we reset it here, it won't get added to noconfigdirs in the
3181 # target-specific build rules, so it will be forcibly enabled
3182 # (unless the Java language itself isn't enabled).
3183 libgcj=
3184 ;;
3185no)
3186 # Make sure we get it printed in the list of not supported target libs.
3187 noconfigdirs="$noconfigdirs ${libgcj}"
3188 ;;
3189esac
ec8d6ddc 3190
6de9cd9a 3191
27079765
AH
3192# Disable libmudflap on some systems.
3193if test x$enable_libmudflap = x ; then
dfcada9a 3194 case "${target}" in
416ac4d4 3195 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3196 # Enable libmudflap by default in GNU and friends.
dfcada9a 3197 ;;
a3e8d8b4
LR
3198 *-*-freebsd*)
3199 # Enable libmudflap by default in FreeBSD.
3200 ;;
dfcada9a
MM
3201 *)
3202 # Disable it by default everywhere else.
3203 noconfigdirs="$noconfigdirs target-libmudflap"
3204 ;;
3205 esac
27079765 3206fi
6de9cd9a 3207
27079765
AH
3208# Disable libgomp on non POSIX hosted systems.
3209if test x$enable_libgomp = x ; then
953ff289
DN
3210 # Enable libgomp by default on hosted POSIX systems.
3211 case "${target}" in
416ac4d4 3212 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
3213 ;;
3214 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3215 ;;
04879af3 3216 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3217 ;;
cac90078 3218 *-*-darwin* | *-*-aix*)
953ff289
DN
3219 ;;
3220 *)
3221 noconfigdirs="$noconfigdirs target-libgomp"
3222 ;;
3223 esac
27079765 3224fi
953ff289 3225
c03353e2
RIL
3226# Default libgloss CPU subdirectory.
3227libgloss_dir="$target_cpu"
6de9cd9a 3228
671aa708
NN
3229case "${target}" in
3230 *-*-chorusos)
cb253473 3231 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3232 ;;
75eeae1a 3233 powerpc-*-darwin*)
e1514c3f 3234 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3235 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3236 ;;
354ebf88
RW
3237 i[3456789]86-*-darwin*)
3238 noconfigdirs="$noconfigdirs ld gprof"
3239 noconfigdirs="$noconfigdirs sim target-rda"
3240 ;;
3241 x86_64-*-darwin[912]*)
0db3a858
TG
3242 noconfigdirs="$noconfigdirs ld gas gprof"
3243 noconfigdirs="$noconfigdirs sim target-rda"
3244 ;;
42c1cd8a
AT
3245 *-*-darwin*)
3246 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3247 noconfigdirs="$noconfigdirs sim target-rda"
3248 noconfigdirs="$noconfigdirs ${libgcj}"
3249 ;;
671aa708 3250 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3251 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3252 ;;
c3f84f61 3253 *-*-freebsd*)
6de9cd9a
DN
3254 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3255 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3256 && test -f /usr/local/include/gmp.h; then
3257 with_gmp=/usr/local
3258 fi
3259
3260 # Skip some stuff that's unsupported on some FreeBSD configurations.
3261 case "${target}" in
3262 i*86-*-*) ;;
3263 alpha*-*-*) ;;
f3f623ae 3264 x86_64-*-*) ;;
6de9cd9a 3265 *)
cb253473 3266 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3267 ;;
3268 esac
3269 ;;
ef4e7569
US
3270 *-*-kaos*)
3271 # Remove unsupported stuff on all kaOS configurations.
cb253473 3272 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
3273 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3274 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3275 noconfigdirs="$noconfigdirs target-libgloss"
3276 ;;
671aa708
NN
3277 *-*-netbsd*)
3278 # Skip some stuff on all NetBSD configurations.
3279 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3280
3281 # Skip some stuff that's unsupported on some NetBSD configurations.
3282 case "${target}" in
3283 i*86-*-netbsdelf*) ;;
0590b963 3284 arm*-*-netbsdelf*) ;;
671aa708 3285 *)
cb253473 3286 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3287 ;;
3288 esac
3289 ;;
61fec9ff 3290 *-*-netware*)
cb253473 3291 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
3292 ;;
3293 *-*-rtems*)
e4522f78 3294 skipdirs="${skipdirs} target-libiberty"
cb253473 3295 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3296 ;;
a8ba31f2
EC
3297 # The tpf target doesn't support gdb yet.
3298 *-*-tpf*)
cb253473 3299 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 3300 ;;
5785c0ed 3301 *-*-uclinux*)
cb253473 3302 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3303 ;;
671aa708 3304 *-*-vxworks*)
cb253473 3305 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3306 ;;
3307 alpha*-dec-osf*)
3308 # ld works, but does not support shared libraries.
3309 # newlib is not 64 bit ready. I'm not sure about fileutils.
3310 # gas doesn't generate exception information.
3311 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3312 ;;
3313 alpha*-*-*vms*)
8406cb62 3314 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3315 ;;
3316 alpha*-*-linux*)
3317 # newlib is not 64 bit ready
3318 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3319 ;;
671aa708
NN
3320 alpha*-*-*)
3321 # newlib is not 64 bit ready
cb253473 3322 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3323 ;;
33952f6f 3324 am33_2.0-*-linux*)
cb253473 3325 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3326 ;;
671aa708 3327 sh-*-linux*)
cb253473 3328 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3329 ;;
671aa708 3330 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3331 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3332 noconfigdirs="$noconfigdirs target-examples"
3333 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 3334 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3335 noconfigdirs="$noconfigdirs expect dejagnu"
3336 # the C++ libraries don't build on top of CE's C libraries
cb543528 3337 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
3338 noconfigdirs="$noconfigdirs target-newlib"
3339 case "${host}" in
3340 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 3341 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
3342 ;;
3343 esac
c03353e2 3344 libgloss_dir=wince
671aa708
NN
3345 ;;
3346 arc-*-*)
cb253473 3347 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3348 ;;
ee6a22df 3349 arm-semi-aof )
ee6a22df 3350 ;;
671aa708 3351 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 3352 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3353 libgloss_dir=arm
671aa708 3354 ;;
b3f8d95d 3355 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 3356 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 3357 libgloss_dir=arm
671aa708 3358 ;;
077fc835 3359 arm*-*-linux-gnueabi)
c4e9bf2b 3360 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
3361 case ${with_newlib} in
3362 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3363 esac
c03353e2 3364 libgloss_dir=arm
077fc835 3365 ;;
972974fc 3366 arm*-*-symbianelf*)
cb253473 3367 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3368 libgloss_dir=arm
972974fc 3369 ;;
671aa708 3370 arm-*-pe*)
cb253473 3371 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3372 ;;
671aa708 3373 thumb-*-coff)
cb253473 3374 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3375 ;;
3376 thumb-*-elf)
cb253473 3377 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3378 ;;
671aa708 3379 thumb-*-pe)
cb253473 3380 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3381 ;;
3382 arm-*-riscix*)
cb253473 3383 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3384 ;;
3385 avr-*-*)
ac3949d9 3386 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3387 ;;
6b65a26d 3388 bfin-*-*)
1c3c9f12
JZ
3389 unsupported_languages="$unsupported_languages java"
3390 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
61efc800 3391 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3392 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3393 fi
3394 ;;
671aa708 3395 c4x-*-* | tic4x-*-*)
cb253473 3396 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3397 ;;
3398 c54x*-*-* | tic54x-*-*)
cb253473 3399 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3400 ;;
c993ae60
SR
3401 cr16-*-*)
3402 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3403 ;;
40d64b5a 3404 cris-*-* | crisv32-*-*)
4fab7234 3405 unsupported_languages="$unsupported_languages java"
40d64b5a 3406 case "${target}" in
c2e0d3a9 3407 *-*-aout)
7f26dfa3 3408 unsupported_languages="$unsupported_languages fortran"
4fab7234 3409 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3410 *-*-elf)
789ec619 3411 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 3412 *-*-linux*)
789ec619 3413 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3414 *)
7f26dfa3 3415 unsupported_languages="$unsupported_languages fortran"
cb253473 3416 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3417 esac
c03353e2 3418 libgloss_dir=cris
671aa708 3419 ;;
25b656e7 3420 crx-*-*)
cb253473 3421 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3422 ;;
671aa708 3423 d10v-*-*)
cb253473 3424 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3425 ;;
3426 d30v-*-*)
cb253473 3427 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3428 ;;
c03353e2
RIL
3429 ep9312-*-elf | ep9312-*-coff)
3430 libgloss_dir=arm
3431 ;;
671aa708 3432 fr30-*-elf*)
cb253473 3433 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3434 ;;
3435 frv-*-*)
cb253473 3436 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3437 ;;
55f2d967
AG
3438 moxie-*-*)
3439 noconfigdirs="$noconfigdirs ${libgcj}"
3440 noconfigdirs="$noconfigdirs gprof"
3441 ;;
671aa708 3442 h8300*-*-*)
cb253473 3443 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3444 ;;
3445 h8500-*-*)
cb253473 3446 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3447 ;;
ee6a22df 3448 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3449 ;;
671aa708
NN
3450 hppa*64*-*-linux* | parisc*64*-*-linux*)
3451 # In this case, it's because the hppa64-linux target is for
3452 # the kernel only at this point and has no libc, and thus no
3453 # headers, crt*.o, etc., all of which are needed by these.
3454 noconfigdirs="$noconfigdirs target-zlib"
3455 ;;
3e732ba0
JDA
3456 parisc*-*-linux* | hppa*-*-linux*)
3457 ;;
671aa708 3458 hppa*-*-*elf* | \
671aa708
NN
3459 hppa*-*-lites* | \
3460 hppa*-*-openbsd* | \
3461 hppa*64*-*-*)
cb253473 3462 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3463 ;;
2a332582
JDA
3464 hppa*-hp-hpux11*)
3465 noconfigdirs="$noconfigdirs ld shellutils"
3466 ;;
c03353e2
RIL
3467 hppa*-*-pro*)
3468 libgloss_dir=pa
3469 ;;
671aa708
NN
3470 hppa*-*-*)
3471 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3472 # build on HP-UX 10.20.
cb253473 3473 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3474 ;;
fb87ad5d 3475 i960-*-*)
cb253473 3476 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3477 ;;
671aa708
NN
3478 ia64*-*-elf*)
3479 # No gdb support yet.
b4f96efe 3480 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3481 ;;
3482 ia64*-**-hpux*)
3483 # No gdb or ld support yet.
cb253473 3484 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 3485 ;;
52535a64
DR
3486 ia64*-*-*vms*)
3487 # No gdb or ld support yet.
3488 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3489 ;;
ee6a22df 3490 i370-*-opened*)
ee6a22df 3491 ;;
f2a0e225 3492 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3493 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3494 libgloss_dir=i386
671aa708 3495 ;;
f2a0e225 3496 i[3456789]86-*-linux*)
671aa708
NN
3497 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3498 # not build java stuff by default.
3499 case "${target}" in
3500 *-*-*libc1*)
cb253473 3501 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3502 esac
3503
3504 # This section makes it possible to build newlib natively on linux.
3505 # If we are using a cross compiler then don't configure newlib.
3506 if test x${is_cross_compiler} != xno ; then
3aa83176 3507 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3508 fi
3509 noconfigdirs="$noconfigdirs target-libgloss"
3510 # If we are not using a cross compiler, do configure newlib.
3511 # Note however, that newlib will only be configured in this situation
3512 # if the --with-newlib option has been given, because otherwise
3513 # 'target-newlib' will appear in skipdirs.
3514 ;;
ef4c4300
KT
3515 i[3456789]86-w64-mingw*)
3516 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3517 ;;
3518 i[3456789]86-*-mingw*)
b91f0a41
CV
3519 target_configdirs="$target_configdirs target-winsup"
3520 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3521 ;;
95af8923 3522 x86_64-*-mingw*)
95af8923 3523 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3524 ;;
671aa708
NN
3525 *-*-cygwin*)
3526 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3527 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3528 # always build newlib if winsup directory is present.
b91f0a41 3529 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3530 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3531 elif test -d "$srcdir/newlib"; then
b91f0a41 3532 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3533 fi
1c710c3c 3534 ;;
ee6a22df
L
3535 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3536 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3537 ;;
f2a0e225 3538 i[3456789]86-*-pe)
cb253473 3539 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3540 ;;
f2a0e225 3541 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3542 # The linker does not yet know about weak symbols in COFF,
3543 # and is not configured to handle mixed ELF and COFF.
cb253473 3544 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3545 ;;
f2a0e225 3546 i[3456789]86-*-sco*)
cb253473 3547 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3548 ;;
f2a0e225 3549 i[3456789]86-*-solaris2*)
671aa708
NN
3550 noconfigdirs="$noconfigdirs target-libgloss"
3551 ;;
f2a0e225 3552 i[3456789]86-*-sysv4*)
cb253473 3553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3554 ;;
f2a0e225 3555 i[3456789]86-*-beos*)
cb253473 3556 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3557 ;;
d1f8db0c
PB
3558 i[3456789]86-*-rdos*)
3559 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3560 ;;
fb87ad5d 3561 m32r-*-*)
cb253473 3562 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3563 ;;
671aa708 3564 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3565 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3566 libgloss_dir=m68hc11
671aa708
NN
3567 ;;
3568 m68k-*-elf*)
cb253473 3569 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3570 ;;
3571 m68k-*-coff*)
cb253473 3572 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3573 ;;
c03353e2
RIL
3574 m68*-*-* | fido-*-*)
3575 libgloss_dir=m68k
3576 ;;
671aa708
NN
3577 mcore-*-pe*)
3578 # The EPOC C++ environment does not support exceptions or rtti,
3579 # and so building libstdc++-v3 tends not to always work.
3580 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3581 ;;
3582 mmix-*-*)
4fab7234 3583 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3584 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3585 ;;
3586 mn10200-*-*)
cb253473 3587 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3588 ;;
3589 mn10300-*-*)
cb253473 3590 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3591 ;;
ab34901f 3592 mt-*-*)
79dd769c
AH
3593 noconfigdirs="$noconfigdirs sim"
3594 ;;
671aa708
NN
3595 powerpc-*-aix*)
3596 # copied from rs6000-*-* entry
a891a473 3597 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3598 ;;
3599 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3600 target_configdirs="$target_configdirs target-winsup"
cb253473 3601 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3602 # always build newlib.
3603 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3604 ;;
3605 # This is temporary until we can link against shared libraries
3606 powerpcle-*-solaris*)
cb253473 3607 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3608 libgloss_dir=rs6000
671aa708
NN
3609 ;;
3610 powerpc-*-beos*)
cb253473 3611 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3612 ;;
671aa708 3613 powerpc-*-eabi)
cb253473 3614 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3615 libgloss_dir=rs6000
ee6a22df
L
3616 ;;
3617 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3618 libgloss_dir=rs6000
671aa708 3619 ;;
671aa708 3620 rs6000-*-lynxos*)
cb253473 3621 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3622 ;;
3623 rs6000-*-aix*)
a891a473 3624 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3625 ;;
3626 rs6000-*-*)
cb253473 3627 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3628 ;;
3629 m68k-apollo-*)
cb253473 3630 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3631 ;;
ca9fe997
ME
3632 microblaze*)
3633 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3634 ;;
d9dced13
RS
3635 mips*-sde-elf*)
3636 skipdirs="$skipdirs target-libiberty"
3637 noconfigdirs="$noconfigdirs ${libgcj}"
3638 if test x$with_newlib = xyes; then
3639 noconfigdirs="$noconfigdirs gprof"
3640 fi
3641 libgloss_dir=mips
3642 ;;
671aa708 3643 mips*-*-irix5*)
cb253473 3644 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3645 ;;
3646 mips*-*-irix6*)
671aa708
NN
3647 # Linking libjava exceeds command-line length limits on at least
3648 # IRIX 6.2, but not on IRIX 6.5.
3649 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3650 # <oldham@codesourcery.com>
cb253473 3651 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3652 ;;
671aa708 3653 mips*-*-bsd*)
cb253473 3654 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3655 ;;
671aa708
NN
3656 mips*-*-linux*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659 mips*-*-*)
cb253473 3660 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3661 libgloss_dir=mips
671aa708
NN
3662 ;;
3663 romp-*-*)
cb253473 3664 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3665 ;;
669f01d8 3666 sh-*-* | sh64-*-*)
671aa708 3667 case "${host}" in
f2a0e225
KC
3668 i[3456789]86-*-vsta) ;; # don't add gprof back in
3669 i[3456789]86-*-go32*) ;; # don't add gprof back in
3670 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3671 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3672 esac
ea2002ba
CB
3673 case "${target}" in
3674 sh*-*-elf)
3675 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3676 *)
3677 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3678 esac
671aa708 3679 ;;
c03353e2
RIL
3680 sparclet-*-aout* | sparc86x-*-*)
3681 libgloss_dir=sparc
3682 ;;
671aa708 3683 sparc-*-elf*)
cb253473 3684 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3685 ;;
3686 sparc64-*-elf*)
cb253473 3687 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3688 libgloss_dir=sparc
671aa708
NN
3689 ;;
3690 sparclite-*-*)
cb253473 3691 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3692 libgloss_dir=sparc
671aa708
NN
3693 ;;
3694 sparc-*-sunos4*)
cb253473 3695 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3696 if test x${is_cross_compiler} != xno ; then
3697 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3698 else
3699 use_gnu_ld=no
3700 fi
3701 ;;
bba5e0ca 3702 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3703 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3704 ;;
671aa708
NN
3705 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3706 ;;
b42f0d7e
JM
3707 tic6x-*-*)
3708 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3709 ;;
671aa708 3710 v810-*-*)
cb253473 3711 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708
NN
3712 ;;
3713 v850-*-*)
cb253473 3714 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3715 ;;
3716 v850e-*-*)
cb253473 3717 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3718 ;;
3719 v850ea-*-*)
cb253473 3720 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3721 ;;
3722 vax-*-vms)
cb253473 3723 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3724 ;;
3725 vax-*-*)
cb253473 3726 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3727 ;;
aa12a573 3728 xtensa*-*-*)
cb253473 3729 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3730 ;;
671aa708 3731 ip2k-*-*)
cb253473 3732 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3733 ;;
416ac4d4 3734 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3735 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3736 ;;
3737 *-*-lynxos*)
cb253473 3738 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3739 ;;
671aa708 3740 *-*-*)
cb253473 3741 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3742 ;;
3743esac
79c06341 3744
671aa708
NN
3745# If we aren't building newlib, then don't build libgloss, since libgloss
3746# depends upon some newlib header files.
3747case "${noconfigdirs}" in
3748 *target-libgloss*) ;;
3749 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3750esac
3751
671aa708
NN
3752# Work in distributions that contain no compiler tools, like Autoconf.
3753tentative_cc=""
3754host_makefile_frag=/dev/null
3755if test -d ${srcdir}/config ; then
3756case "${host}" in
3757 m68k-hp-hpux*)
3758 # Avoid "too much defining" errors from HPUX compiler.
3759 tentative_cc="cc -Wp,-H256000"
3760 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3761 # If it's HP/UX ar, this should be harmless.
3762 RANLIB="ar ts"
3763 ;;
3764 m68k-apollo-sysv*)
3765 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3766 ;;
3767 m68k-apollo-bsd*)
3768 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3769 # chokes on bfd, the compiler won't let you assign integers to enums, and
3770 # other problems. Defining CC to gcc is a questionable way to say "don't use
3771 # the apollo compiler" (the preferred version of GCC could be called cc,
3772 # or whatever), but I'm not sure leaving CC as cc is any better...
3773 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3774 # Used to have BISON=yacc.
3775 tentative_cc=gcc
3776 ;;
3777 m88k-dg-dgux*)
3778 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3779 ;;
3780 m88k-harris-cxux*)
3781 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3782 tentative_cc="cc -Xa"
3783 host_makefile_frag="config/mh-cxux"
3784 ;;
3785 m88k-motorola-sysv*)
3786 ;;
3787 mips*-dec-ultrix*)
3788 tentative_cc="cc -Wf,-XNg1000"
3789 host_makefile_frag="config/mh-decstation"
3790 ;;
3791 mips*-nec-sysv4*)
3792 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3793 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3794 host_makefile_frag="config/mh-necv4"
3795 ;;
3796 mips*-sgi-irix4*)
3797 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3798 # environment. Also bump switch table size so that cp-parse will
3799 # compile. Bump string length limit so linker builds.
3800 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3801 ;;
3802 mips*-*-sysv4*)
3803 host_makefile_frag="config/mh-sysv4"
3804 ;;
3805 mips*-*-sysv*)
3806 # This is for a MIPS running RISC/os 4.52C.
3807
3808 # This is needed for GDB, but needs to be in the top-level make because
3809 # if a library is compiled with the bsd headers and gets linked with the
3810 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3811 # a different size).
3812 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3813 # known except to select the sysv environment. Could we use /proc instead?
3814 # These "sysv environments" and "bsd environments" often end up being a pain.
3815 #
3816 # This is not part of CFLAGS because perhaps not all C compilers have this
3817 # option.
3818 tentative_cc="cc -systype sysv"
3819 ;;
3820 i370-ibm-opened*)
3821 tentative_cc="c89"
3822 ;;
f2a0e225 3823 i[3456789]86-*-sysv5*)
671aa708
NN
3824 host_makefile_frag="config/mh-sysv5"
3825 ;;
f2a0e225 3826 i[3456789]86-*-dgux*)
671aa708
NN
3827 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3828 host_makefile_frag="config/mh-dgux386"
3829 ;;
f2a0e225 3830 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3831 # The MetaWare compiler will generate a copyright message unless you
3832 # turn it off by adding the -Hnocopyr flag.
3833 tentative_cc="cc -Hnocopyr"
3834 ;;
f2a0e225 3835 i[3456789]86-ncr-sysv4*)
671aa708
NN
3836 # for an NCR 3000 (i486/SVR4) system.
3837 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3838 # This compiler not only emits obnoxious copyright messages every time
3839 # you run it, but it chokes and dies on a whole bunch of GNU source
3840 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3841 tentative_cc="/usr/ccs/ATT/cc"
3842 host_makefile_frag="config/mh-ncr3000"
3843 ;;
f2a0e225 3844 i[3456789]86-*-sco3.2v5*)
671aa708 3845 ;;
f2a0e225 3846 i[3456789]86-*-sco*)
671aa708
NN
3847 # The native C compiler botches some simple uses of const. Unfortunately,
3848 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3849 tentative_cc="cc -Dconst="
3850 host_makefile_frag="config/mh-sco"
3851 ;;
f2a0e225 3852 i[3456789]86-*-udk*)
671aa708
NN
3853 host_makefile_frag="config/mh-sysv5"
3854 ;;
f2a0e225 3855 i[3456789]86-*-solaris2*)
671aa708
NN
3856 host_makefile_frag="config/mh-sysv4"
3857 ;;
f2a0e225 3858 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3859 host_makefile_frag="config/mh-djgpp"
3860 ;;
3861 *-cygwin*)
2a79c47f 3862
5213506e
RW
3863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3864$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3865echo a >cygwin-cat-check
e25a8c82 3866if test `cat cygwin-cat-check` = a ; then
2a79c47f 3867 rm cygwin-cat-check
5213506e
RW
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3869$as_echo "yes" >&6; }
2a79c47f
NC
3870else
3871 rm cygwin-cat-check
5213506e
RW
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873$as_echo "no" >&6; }
3874 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3875 Please either mount the build directory in binary mode or run the following
3876 commands before running any configure script:
3877set -o igncr
3878export SHELLOPTS
5213506e 3879 " "$LINENO" 5
2a79c47f
NC
3880fi
3881
671aa708
NN
3882 host_makefile_frag="config/mh-cygwin"
3883 ;;
c53a18d3 3884 *-mingw*)
1f5a6b84 3885 host_makefile_frag="config/mh-mingw"
95af8923 3886 ;;
671aa708
NN
3887 *-interix*)
3888 host_makefile_frag="config/mh-interix"
3889 ;;
3890 vax-*-ultrix2*)
3891 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3892 tentative_cc=gcc
3893 ;;
3894 *-*-solaris2*)
3895 host_makefile_frag="config/mh-solaris"
3896 ;;
3897 m68k-sun-sunos*)
3898 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3899 # without overflowing the jump tables (-J says to use a 32 bit table)
3900 tentative_cc="cc -J"
3901 ;;
efd41714 3902 hppa*-hp-hpux10*)
671aa708 3903 tentative_cc="cc -Wp,-H256000"
efd41714 3904 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3905 ;;
efd41714
PB
3906 hppa*-hp-hpux* | hppa*-*-hiux*)
3907 tentative_cc="cc -Wp,-H256000"
3908 host_makefile_frag="config/mh-pa"
3909 ;;
3910 hppa*-*)
3911 host_makefile_frag="config/mh-pa"
3912 ;;
3913 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3914 tentative_cc="cc -Wp,-H256000"
3915 ;;
3916 rs6000-*-lynxos*)
3917 # /bin/cc is less than useful for our purposes. Always use GCC
3918 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3919 host_makefile_frag="config/mh-lynxrs6k"
3920 ;;
45f366ab 3921 powerpc-*-darwin*)
be8fff81
RB
3922 host_makefile_frag="config/mh-ppc-darwin"
3923 ;;
d19bca38
PB
3924 powerpc-*-aix*)
3925 host_makefile_frag="config/mh-ppc-aix"
3926 ;;
3927 rs6000-*-aix*)
3928 host_makefile_frag="config/mh-ppc-aix"
3929 ;;
671aa708
NN
3930 *-*-lynxos*)
3931 # /bin/cc is less than useful for our purposes. Always use GCC
3932 tentative_cc="/bin/gcc"
3933 ;;
3934 *-*-sysv4*)
3935 host_makefile_frag="config/mh-sysv4"
3936 ;;
95c53c62
RS
3937 # This is placed last to prevent interfering with the cases above.
3938 i[3456789]86-*-*)
3939 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3940 host_makefile_frag="config/mh-x86omitfp"
3941 ;;
671aa708
NN
3942esac
3943fi
3944
55ffb5ed
NN
3945# If we aren't going to be using gcc, see if we can extract a definition
3946# of CC from the fragment.
3947# Actually, use the 'pre-extracted' version above.
3948if test -z "${CC}" && test "${build}" = "${host}" ; then
3949 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3950 found=
3951 for dir in $PATH; do
3952 test -z "$dir" && dir=.
3953 if test -f $dir/gcc; then
3954 found=yes
3955 break
3956 fi
3957 done
3958 IFS="$save_ifs"
3959 if test -z "${found}" && test -n "${tentative_cc}" ; then
3960 CC=$tentative_cc
3961 fi
3962fi
3963
3964if test "${build}" != "${host}" ; then
0999159b
PB
3965 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3966 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3967 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3968 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3969 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3970 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3971 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3972 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3973 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3974 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3975 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3976 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3977else
3978 AR_FOR_BUILD="\$(AR)"
3979 AS_FOR_BUILD="\$(AS)"
fb0103e5 3980 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3981 CXX_FOR_BUILD="\$(CXX)"
3982 GCJ_FOR_BUILD="\$(GCJ)"
3983 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3984 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3985 LD_FOR_BUILD="\$(LD)"
3986 NM_FOR_BUILD="\$(NM)"
3987 RANLIB_FOR_BUILD="\$(RANLIB)"
3988 WINDRES_FOR_BUILD="\$(WINDRES)"
3989 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3990fi
3991
3992ac_ext=c
1c710c3c
DJ
3993ac_cpp='$CPP $CPPFLAGS'
3994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997if test -n "$ac_tool_prefix"; then
3998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3999set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001$as_echo_n "checking for $ac_word... " >&6; }
4002if test "${ac_cv_prog_CC+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4004else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007else
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
5213506e
RW
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4017 break 2
4018 fi
4019done
5213506e
RW
4020 done
4021IFS=$as_save_IFS
1c710c3c
DJ
4022
4023fi
4024fi
4025CC=$ac_cv_prog_CC
4026if test -n "$CC"; then
5213506e
RW
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4028$as_echo "$CC" >&6; }
1c710c3c 4029else
5213506e
RW
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4031$as_echo "no" >&6; }
1c710c3c
DJ
4032fi
4033
5213506e 4034
1c710c3c
DJ
4035fi
4036if test -z "$ac_cv_prog_CC"; then
4037 ac_ct_CC=$CC
fb0103e5
RG
4038 # Extract the first word of "gcc", so it can be a program name with args.
4039set dummy gcc; ac_word=$2
5213506e
RW
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4041$as_echo_n "checking for $ac_word... " >&6; }
4042if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4043 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4044else
4045 if test -n "$ac_ct_CC"; then
4046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4047else
4048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049for as_dir in $PATH
4050do
4051 IFS=$as_save_IFS
4052 test -z "$as_dir" && as_dir=.
5213506e
RW
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4055 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4057 break 2
4058 fi
4059done
5213506e
RW
4060 done
4061IFS=$as_save_IFS
1c710c3c
DJ
4062
4063fi
4064fi
4065ac_ct_CC=$ac_cv_prog_ac_ct_CC
4066if test -n "$ac_ct_CC"; then
5213506e
RW
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4068$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4069else
5213506e
RW
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4071$as_echo "no" >&6; }
1c710c3c
DJ
4072fi
4073
5213506e
RW
4074 if test "x$ac_ct_CC" = x; then
4075 CC=""
4076 else
4077 case $cross_compiling:$ac_tool_warned in
4078yes:)
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4081ac_tool_warned=yes ;;
4082esac
4083 CC=$ac_ct_CC
4084 fi
1c710c3c
DJ
4085else
4086 CC="$ac_cv_prog_CC"
4087fi
4088
4089if test -z "$CC"; then
5213506e
RW
4090 if test -n "$ac_tool_prefix"; then
4091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4092set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4094$as_echo_n "checking for $ac_word... " >&6; }
4095if test "${ac_cv_prog_CC+set}" = set; then :
4096 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4097else
4098 if test -n "$CC"; then
4099 ac_cv_prog_CC="$CC" # Let the user override the test.
4100else
1c710c3c
DJ
4101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102for as_dir in $PATH
4103do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
5213506e
RW
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4108 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4110 break 2
4111 fi
4112done
5213506e
RW
4113 done
4114IFS=$as_save_IFS
1c710c3c 4115
0b0dc272 4116fi
0b0dc272 4117fi
1c710c3c 4118CC=$ac_cv_prog_CC
af71363e 4119if test -n "$CC"; then
5213506e
RW
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4121$as_echo "$CC" >&6; }
2aeb72e9 4122else
5213506e
RW
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124$as_echo "no" >&6; }
2aeb72e9
DD
4125fi
4126
2aeb72e9 4127
5213506e 4128 fi
1c710c3c 4129fi
55ffb5ed
NN
4130if test -z "$CC"; then
4131 # Extract the first word of "cc", so it can be a program name with args.
4132set dummy cc; ac_word=$2
5213506e
RW
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134$as_echo_n "checking for $ac_word... " >&6; }
4135if test "${ac_cv_prog_CC+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4137else
4138 if test -n "$CC"; then
4139 ac_cv_prog_CC="$CC" # Let the user override the test.
4140else
0b0dc272 4141 ac_prog_rejected=no
1c710c3c
DJ
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145 IFS=$as_save_IFS
4146 test -z "$as_dir" && as_dir=.
5213506e
RW
4147 for ac_exec_ext in '' $ac_executable_extensions; do
4148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4150 ac_prog_rejected=yes
4151 continue
4152 fi
4153 ac_cv_prog_CC="cc"
5213506e 4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4155 break 2
4156 fi
4157done
5213506e
RW
4158 done
4159IFS=$as_save_IFS
1c710c3c 4160
55ffb5ed
NN
4161if test $ac_prog_rejected = yes; then
4162 # We found a bogon in the path, so make sure we never use it.
4163 set dummy $ac_cv_prog_CC
4164 shift
1c710c3c 4165 if test $# != 0; then
55ffb5ed
NN
4166 # We chose a different compiler from the bogus one.
4167 # However, it has the same basename, so the bogon will be chosen
4168 # first if we set CC to just the basename; use the full file name.
4169 shift
1c710c3c 4170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4171 fi
4172fi
4173fi
4174fi
1c710c3c 4175CC=$ac_cv_prog_CC
55ffb5ed 4176if test -n "$CC"; then
5213506e
RW
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4178$as_echo "$CC" >&6; }
55ffb5ed 4179else
5213506e
RW
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4181$as_echo "no" >&6; }
55ffb5ed
NN
4182fi
4183
5213506e 4184
1c710c3c
DJ
4185fi
4186if test -z "$CC"; then
4187 if test -n "$ac_tool_prefix"; then
5213506e 4188 for ac_prog in cl.exe
1c710c3c
DJ
4189 do
4190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193$as_echo_n "checking for $ac_word... " >&6; }
4194if test "${ac_cv_prog_CC+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4196else
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4199else
1c710c3c
DJ
4200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201for as_dir in $PATH
4202do
4203 IFS=$as_save_IFS
4204 test -z "$as_dir" && as_dir=.
5213506e
RW
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4209 break 2
4210 fi
4211done
5213506e
RW
4212 done
4213IFS=$as_save_IFS
1c710c3c 4214
55ffb5ed
NN
4215fi
4216fi
1c710c3c 4217CC=$ac_cv_prog_CC
55ffb5ed 4218if test -n "$CC"; then
5213506e
RW
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220$as_echo "$CC" >&6; }
a4b9e93e 4221else
5213506e
RW
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223$as_echo "no" >&6; }
fb0103e5 4224fi
af71363e 4225
5213506e 4226
1c710c3c
DJ
4227 test -n "$CC" && break
4228 done
af71363e 4229fi
1c710c3c
DJ
4230if test -z "$CC"; then
4231 ac_ct_CC=$CC
5213506e 4232 for ac_prog in cl.exe
1c710c3c
DJ
4233do
4234 # Extract the first word of "$ac_prog", so it can be a program name with args.
4235set dummy $ac_prog; ac_word=$2
5213506e
RW
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4239 $as_echo_n "(cached) " >&6
0b0dc272 4240else
1c710c3c
DJ
4241 if test -n "$ac_ct_CC"; then
4242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4243else
1c710c3c
DJ
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
5213506e
RW
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4251 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4253 break 2
4254 fi
4255done
5213506e
RW
4256 done
4257IFS=$as_save_IFS
1c710c3c 4258
af71363e
AS
4259fi
4260fi
1c710c3c
DJ
4261ac_ct_CC=$ac_cv_prog_ac_ct_CC
4262if test -n "$ac_ct_CC"; then
5213506e
RW
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4264$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4265else
5213506e
RW
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
af71363e 4268fi
0b0dc272 4269
5213506e 4270
1c710c3c
DJ
4271 test -n "$ac_ct_CC" && break
4272done
4273
5213506e
RW
4274 if test "x$ac_ct_CC" = x; then
4275 CC=""
4276 else
4277 case $cross_compiling:$ac_tool_warned in
4278yes:)
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4281ac_tool_warned=yes ;;
4282esac
4283 CC=$ac_ct_CC
4284 fi
1c710c3c
DJ
4285fi
4286
4287fi
4288
4289
5213506e
RW
4290test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4292as_fn_error "no acceptable C compiler found in \$PATH
4293See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4294
4295# Provide some information about the compiler.
5213506e
RW
4296$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4297set X $ac_compile
4298ac_compiler=$2
4299for ac_option in --version -v -V -qversion; do
4300 { { ac_try="$ac_compiler $ac_option >&5"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306$as_echo "$ac_try_echo"; } >&5
4307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4308 ac_status=$?
5213506e
RW
4309 if test -s conftest.err; then
4310 sed '10a\
4311... rest of stderr output deleted ...
4312 10q' conftest.err >conftest.er1
4313 cat conftest.er1 >&5
4314 rm -f conftest.er1 conftest.err
4315 fi
4316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4317 test $ac_status = 0; }
4318done
1c710c3c 4319
5213506e 4320cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4321/* end confdefs.h. */
4322
4323int
4324main ()
4325{
4326
4327 ;
4328 return 0;
4329}
4330_ACEOF
4331ac_clean_files_save=$ac_clean_files
5213506e 4332ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4333# Try to create an executable without -o first, disregard a.out.
4334# It will help us diagnose broken compilers, and finding out an intuition
4335# of exeext.
5213506e
RW
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4337$as_echo_n "checking for C compiler default output file name... " >&6; }
4338ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4339
4340# The possible output files:
4341ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4342
4343ac_rmfiles=
4344for ac_file in $ac_files
4345do
4346 case $ac_file in
4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4348 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4349 esac
4350done
4351rm -f $ac_rmfiles
4352
4353if { { ac_try="$ac_link_default"
4354case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4359$as_echo "$ac_try_echo"; } >&5
4360 (eval "$ac_link_default") 2>&5
1c710c3c 4361 ac_status=$?
5213506e
RW
4362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4363 test $ac_status = 0; }; then :
4364 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4365# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4366# in a Makefile. We should not override ac_cv_exeext if it was cached,
4367# so that the user can short-circuit this test for compilers unknown to
4368# Autoconf.
4369for ac_file in $ac_files ''
1c710c3c
DJ
4370do
4371 test -f "$ac_file" || continue
4372 case $ac_file in
5213506e 4373 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4374 ;;
4375 [ab].out )
4376 # We found the default executable, but exeext='' is most
4377 # certainly right.
4378 break;;
4379 *.* )
5213506e
RW
4380 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4381 then :; else
4382 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4383 fi
4384 # We set ac_cv_exeext here because the later test for it is not
4385 # safe: cross compilers may not add the suffix if given an `-o'
4386 # argument, so we may need to know it at that point already.
4387 # Even if this section looks crufty: it has the advantage of
4388 # actually working.
1c710c3c
DJ
4389 break;;
4390 * )
4391 break;;
4392 esac
4393done
5213506e
RW
4394test "$ac_cv_exeext" = no && ac_cv_exeext=
4395
1c710c3c 4396else
5213506e
RW
4397 ac_file=''
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4400$as_echo "$ac_file" >&6; }
4401if test -z "$ac_file"; then :
4402 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4403sed 's/^/| /' conftest.$ac_ext >&5
4404
5213506e
RW
4405{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4407{ as_fn_set_status 77
4408as_fn_error "C compiler cannot create executables
4409See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4410fi
1c710c3c 4411ac_exeext=$ac_cv_exeext
1c710c3c 4412
5213506e 4413# Check that the compiler produces executables we can run. If not, either
1c710c3c 4414# the compiler is broken, or we cross compile.
5213506e
RW
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4416$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4417# If not cross compiling, check that we can run a simple program.
4418if test "$cross_compiling" != yes; then
4419 if { ac_try='./$ac_file'
5213506e
RW
4420 { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
1c710c3c 4427 ac_status=$?
5213506e
RW
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; }; then
1c710c3c
DJ
4430 cross_compiling=no
4431 else
4432 if test "$cross_compiling" = maybe; then
4433 cross_compiling=yes
4434 else
5213506e
RW
4435 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4436$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4437as_fn_error "cannot run C compiled programs.
1c710c3c 4438If you meant to cross compile, use \`--host'.
5213506e 4439See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4440 fi
4441 fi
4442fi
5213506e
RW
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4444$as_echo "yes" >&6; }
1c710c3c 4445
5213506e 4446rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4447ac_clean_files=$ac_clean_files_save
5213506e 4448# Check that the compiler produces executables we can run. If not, either
1c710c3c 4449# the compiler is broken, or we cross compile.
5213506e
RW
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4451$as_echo_n "checking whether we are cross compiling... " >&6; }
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4453$as_echo "$cross_compiling" >&6; }
4454
4455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4456$as_echo_n "checking for suffix of executables... " >&6; }
4457if { { ac_try="$ac_link"
4458case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461esac
4462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463$as_echo "$ac_try_echo"; } >&5
4464 (eval "$ac_link") 2>&5
1c710c3c 4465 ac_status=$?
5213506e
RW
4466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467 test $ac_status = 0; }; then :
1c710c3c
DJ
4468 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4469# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4470# work properly (i.e., refer to `conftest.exe'), while it won't with
4471# `rm'.
4472for ac_file in conftest.exe conftest conftest.*; do
4473 test -f "$ac_file" || continue
4474 case $ac_file in
5213506e 4475 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4476 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4477 break;;
4478 * ) break;;
4479 esac
4480done
af71363e 4481else
5213506e
RW
4482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484as_fn_error "cannot compute suffix of executables: cannot compile and link
4485See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4486fi
1c710c3c 4487rm -f conftest$ac_cv_exeext
5213506e
RW
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4489$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4490
4491rm -f conftest.$ac_ext
4492EXEEXT=$ac_cv_exeext
4493ac_exeext=$EXEEXT
5213506e
RW
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4495$as_echo_n "checking for suffix of object files... " >&6; }
4496if test "${ac_cv_objext+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
1c710c3c 4498else
5213506e 4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
4510rm -f conftest.o conftest.obj
5213506e
RW
4511if { { ac_try="$ac_compile"
4512case "(($ac_try" in
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4515esac
4516eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4517$as_echo "$ac_try_echo"; } >&5
4518 (eval "$ac_compile") 2>&5
1c710c3c 4519 ac_status=$?
5213506e
RW
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }; then :
4522 for ac_file in conftest.o conftest.obj conftest.*; do
4523 test -f "$ac_file" || continue;
1c710c3c 4524 case $ac_file in
5213506e 4525 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4526 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4527 break;;
4528 esac
4529done
4530else
5213506e 4531 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4532sed 's/^/| /' conftest.$ac_ext >&5
4533
5213506e
RW
4534{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536as_fn_error "cannot compute suffix of object files: cannot compile
4537See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4538fi
1c710c3c
DJ
4539rm -f conftest.$ac_cv_objext conftest.$ac_ext
4540fi
5213506e
RW
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4542$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4543OBJEXT=$ac_cv_objext
4544ac_objext=$OBJEXT
5213506e
RW
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4546$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4547if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
1c710c3c 4549else
5213506e 4550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4551/* end confdefs.h. */
4552
4553int
4554main ()
4555{
4556#ifndef __GNUC__
4557 choke me
4558#endif
4559
4560 ;
4561 return 0;
4562}
4563_ACEOF
5213506e 4564if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4565 ac_compiler_gnu=yes
4566else
5213506e 4567 ac_compiler_gnu=no
1c710c3c 4568fi
5213506e 4569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4570ac_cv_c_compiler_gnu=$ac_compiler_gnu
4571
4572fi
5213506e
RW
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4574$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4575if test $ac_compiler_gnu = yes; then
4576 GCC=yes
4577else
4578 GCC=
4579fi
1c710c3c
DJ
4580ac_test_CFLAGS=${CFLAGS+set}
4581ac_save_CFLAGS=$CFLAGS
5213506e
RW
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4583$as_echo_n "checking whether $CC accepts -g... " >&6; }
4584if test "${ac_cv_prog_cc_g+set}" = set; then :
4585 $as_echo_n "(cached) " >&6
4586else
4587 ac_save_c_werror_flag=$ac_c_werror_flag
4588 ac_c_werror_flag=yes
4589 ac_cv_prog_cc_g=no
4590 CFLAGS="-g"
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4592/* end confdefs.h. */
4593
4594int
4595main ()
4596{
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
5213506e 4602if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4603 ac_cv_prog_cc_g=yes
4604else
5213506e
RW
4605 CFLAGS=""
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607/* end confdefs.h. */
4608
4609int
4610main ()
4611{
4612
4613 ;
4614 return 0;
4615}
4616_ACEOF
4617if ac_fn_c_try_compile "$LINENO"; then :
4618
4619else
4620 ac_c_werror_flag=$ac_save_c_werror_flag
4621 CFLAGS="-g"
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623/* end confdefs.h. */
af71363e 4624
5213506e
RW
4625int
4626main ()
4627{
4628
4629 ;
4630 return 0;
4631}
4632_ACEOF
4633if ac_fn_c_try_compile "$LINENO"; then :
4634 ac_cv_prog_cc_g=yes
4635fi
4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4637fi
5213506e 4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4639fi
5213506e
RW
4640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 ac_c_werror_flag=$ac_save_c_werror_flag
4642fi
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4644$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4645if test "$ac_test_CFLAGS" = set; then
1c710c3c 4646 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4647elif test $ac_cv_prog_cc_g = yes; then
4648 if test "$GCC" = yes; then
4649 CFLAGS="-g -O2"
4650 else
4651 CFLAGS="-g"
4652 fi
4653else
4654 if test "$GCC" = yes; then
4655 CFLAGS="-O2"
4656 else
4657 CFLAGS=
4658 fi
4659fi
5213506e
RW
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4661$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4662if test "${ac_cv_prog_cc_c89+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
1c710c3c 4664else
5213506e 4665 ac_cv_prog_cc_c89=no
1c710c3c 4666ac_save_CC=$CC
5213506e 4667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4668/* end confdefs.h. */
4669#include <stdarg.h>
4670#include <stdio.h>
4671#include <sys/types.h>
4672#include <sys/stat.h>
4673/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4674struct buf { int x; };
4675FILE * (*rcsopen) (struct buf *, struct stat *, int);
4676static char *e (p, i)
4677 char **p;
4678 int i;
4679{
4680 return p[i];
4681}
4682static char *f (char * (*g) (char **, int), char **p, ...)
4683{
4684 char *s;
4685 va_list v;
4686 va_start (v,p);
4687 s = g (p, va_arg (v,int));
4688 va_end (v);
4689 return s;
4690}
4691
4692/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4693 function prototypes and stuff, but not '\xHH' hex character constants.
4694 These don't provoke an error unfortunately, instead are silently treated
5213506e 4695 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4697 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4698 that's true only with -std. */
1c710c3c
DJ
4699int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4700
5213506e
RW
4701/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4702 inside strings and character constants. */
4703#define FOO(x) 'x'
4704int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4705
1c710c3c
DJ
4706int test (int i, double x);
4707struct s1 {int (*f) (int a);};
4708struct s2 {int (*f) (double a);};
4709int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4710int argc;
4711char **argv;
4712int
4713main ()
4714{
4715return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4716 ;
4717 return 0;
4718}
4719_ACEOF
5213506e
RW
4720for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4722do
4723 CC="$ac_save_CC $ac_arg"
5213506e
RW
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4726fi
5213506e
RW
4727rm -f core conftest.err conftest.$ac_objext
4728 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4729done
5213506e 4730rm -f conftest.$ac_ext
1c710c3c
DJ
4731CC=$ac_save_CC
4732
4733fi
5213506e
RW
4734# AC_CACHE_VAL
4735case "x$ac_cv_prog_cc_c89" in
4736 x)
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4738$as_echo "none needed" >&6; } ;;
4739 xno)
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4741$as_echo "unsupported" >&6; } ;;
1c710c3c 4742 *)
5213506e
RW
4743 CC="$CC $ac_cv_prog_cc_c89"
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4745$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4746esac
5213506e 4747if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4748
2aeb72e9
DD
4749fi
4750
2aeb72e9
DD
4751ac_ext=c
4752ac_cpp='$CPP $CPPFLAGS'
4753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4755ac_compiler_gnu=$ac_cv_c_compiler_gnu
4756
5213506e 4757ac_ext=cpp
2aeb72e9
DD
4758ac_cpp='$CXXCPP $CPPFLAGS'
4759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4762if test -z "$CXX"; then
4763 if test -n "$CCC"; then
4764 CXX=$CCC
4765 else
4766 if test -n "$ac_tool_prefix"; then
4767 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4768 do
4769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4770set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772$as_echo_n "checking for $ac_word... " >&6; }
4773if test "${ac_cv_prog_CXX+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4775else
4776 if test -n "$CXX"; then
4777 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
5213506e
RW
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4786 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4788 break 2
4789 fi
4790done
5213506e
RW
4791 done
4792IFS=$as_save_IFS
55ffb5ed 4793
c3a86da9
DJ
4794fi
4795fi
4796CXX=$ac_cv_prog_CXX
4797if test -n "$CXX"; then
5213506e
RW
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4799$as_echo "$CXX" >&6; }
c3a86da9 4800else
5213506e
RW
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4802$as_echo "no" >&6; }
c3a86da9
DJ
4803fi
4804
5213506e 4805
c3a86da9
DJ
4806 test -n "$CXX" && break
4807 done
4808fi
4809if test -z "$CXX"; then
4810 ac_ct_CXX=$CXX
5213506e 4811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4812do
4813 # Extract the first word of "$ac_prog", so it can be a program name with args.
4814set dummy $ac_prog; ac_word=$2
5213506e
RW
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816$as_echo_n "checking for $ac_word... " >&6; }
4817if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4819else
4820 if test -n "$ac_ct_CXX"; then
4821 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4822else
4823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824for as_dir in $PATH
4825do
4826 IFS=$as_save_IFS
4827 test -z "$as_dir" && as_dir=.
5213506e
RW
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4830 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4832 break 2
4833 fi
4834done
5213506e
RW
4835 done
4836IFS=$as_save_IFS
c3a86da9
DJ
4837
4838fi
4839fi
4840ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4841if test -n "$ac_ct_CXX"; then
5213506e
RW
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4843$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4844else
5213506e
RW
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4846$as_echo "no" >&6; }
c3a86da9
DJ
4847fi
4848
5213506e 4849
c3a86da9
DJ
4850 test -n "$ac_ct_CXX" && break
4851done
c3a86da9 4852
5213506e
RW
4853 if test "x$ac_ct_CXX" = x; then
4854 CXX="g++"
4855 else
4856 case $cross_compiling:$ac_tool_warned in
4857yes:)
4858{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4859$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4860ac_tool_warned=yes ;;
4861esac
4862 CXX=$ac_ct_CXX
4863 fi
c3a86da9
DJ
4864fi
4865
5213506e
RW
4866 fi
4867fi
c3a86da9 4868# Provide some information about the compiler.
5213506e
RW
4869$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4870set X $ac_compile
4871ac_compiler=$2
4872for ac_option in --version -v -V -qversion; do
4873 { { ac_try="$ac_compiler $ac_option >&5"
4874case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877esac
4878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4879$as_echo "$ac_try_echo"; } >&5
4880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4881 ac_status=$?
5213506e
RW
4882 if test -s conftest.err; then
4883 sed '10a\
4884... rest of stderr output deleted ...
4885 10q' conftest.err >conftest.er1
4886 cat conftest.er1 >&5
4887 rm -f conftest.er1 conftest.err
4888 fi
4889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4890 test $ac_status = 0; }
4891done
c3a86da9 4892
5213506e
RW
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4894$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4895if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
c3a86da9 4897else
5213506e 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4899/* end confdefs.h. */
4900
4901int
4902main ()
4903{
4904#ifndef __GNUC__
4905 choke me
4906#endif
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
5213506e 4912if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4913 ac_compiler_gnu=yes
4914else
5213506e 4915 ac_compiler_gnu=no
c3a86da9 4916fi
5213506e 4917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4918ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4919
4920fi
5213506e
RW
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4922$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4923if test $ac_compiler_gnu = yes; then
4924 GXX=yes
4925else
4926 GXX=
4927fi
c3a86da9
DJ
4928ac_test_CXXFLAGS=${CXXFLAGS+set}
4929ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4931$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4932if test "${ac_cv_prog_cxx_g+set}" = set; then :
4933 $as_echo_n "(cached) " >&6
4934else
4935 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4936 ac_cxx_werror_flag=yes
4937 ac_cv_prog_cxx_g=no
4938 CXXFLAGS="-g"
4939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4940/* end confdefs.h. */
4941
4942int
4943main ()
4944{
4945
4946 ;
4947 return 0;
4948}
4949_ACEOF
5213506e 4950if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4951 ac_cv_prog_cxx_g=yes
4952else
5213506e
RW
4953 CXXFLAGS=""
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4955/* end confdefs.h. */
5213506e 4956
c3a86da9
DJ
4957int
4958main ()
4959{
5213506e 4960
c3a86da9
DJ
4961 ;
4962 return 0;
4963}
4964_ACEOF
5213506e 4965if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4966
5213506e
RW
4967else
4968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4969 CXXFLAGS="-g"
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4971/* end confdefs.h. */
5213506e 4972
c3a86da9
DJ
4973int
4974main ()
4975{
5213506e 4976
c3a86da9
DJ
4977 ;
4978 return 0;
4979}
4980_ACEOF
5213506e
RW
4981if ac_fn_cxx_try_compile "$LINENO"; then :
4982 ac_cv_prog_cxx_g=yes
11a67599 4983fi
5213506e
RW
4984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985fi
4986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987fi
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4990fi
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4992$as_echo "$ac_cv_prog_cxx_g" >&6; }
4993if test "$ac_test_CXXFLAGS" = set; then
4994 CXXFLAGS=$ac_save_CXXFLAGS
4995elif test $ac_cv_prog_cxx_g = yes; then
4996 if test "$GXX" = yes; then
4997 CXXFLAGS="-g -O2"
4998 else
4999 CXXFLAGS="-g"
5000 fi
5001else
5002 if test "$GXX" = yes; then
5003 CXXFLAGS="-O2"
5004 else
5005 CXXFLAGS=
5006 fi
c3a86da9 5007fi
c3a86da9
DJ
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013
5014
5015# We must set the default linker to the linker used by gcc for the correct
5016# operation of libtool. If LD is not defined and we are using gcc, try to
5017# set the LD default to the ld used by gcc.
5018if test -z "$LD"; then
5019 if test "$GCC" = yes; then
5020 case $build in
5021 *-*-mingw*)
5022 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5023 *)
5024 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5025 esac
5026 case $gcc_prog_ld in
5027 # Accept absolute paths.
5028 [\\/]* | [A-Za-z]:[\\/]*)
5029 LD="$gcc_prog_ld" ;;
5030 esac
5031 fi
23f6b2f9
PB
5032fi
5033
23f6b2f9
PB
5034
5035
55ffb5ed 5036
1c710c3c
DJ
5037if test -n "$ac_tool_prefix"; then
5038 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5039set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5041$as_echo_n "checking for $ac_word... " >&6; }
5042if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5044else
5045 if test -n "$GNATBIND"; then
5046 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5047else
1c710c3c
DJ
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5213506e
RW
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5055 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5057 break 2
5058 fi
5059done
5213506e
RW
5060 done
5061IFS=$as_save_IFS
1c710c3c 5062
55ffb5ed
NN
5063fi
5064fi
1c710c3c 5065GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5066if test -n "$GNATBIND"; then
5213506e
RW
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5068$as_echo "$GNATBIND" >&6; }
55ffb5ed 5069else
5213506e
RW
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071$as_echo "no" >&6; }
55ffb5ed
NN
5072fi
5073
5213506e 5074
1c710c3c 5075fi
55ffb5ed 5076if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5077 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5078 # Extract the first word of "gnatbind", so it can be a program name with args.
5079set dummy gnatbind; ac_word=$2
5213506e
RW
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081$as_echo_n "checking for $ac_word... " >&6; }
5082if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
55ffb5ed 5084else
1c710c3c
DJ
5085 if test -n "$ac_ct_GNATBIND"; then
5086 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5087else
1c710c3c
DJ
5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091 IFS=$as_save_IFS
5092 test -z "$as_dir" && as_dir=.
5213506e
RW
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5095 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5097 break 2
5098 fi
5099done
5213506e
RW
5100 done
5101IFS=$as_save_IFS
1c710c3c 5102
55ffb5ed
NN
5103fi
5104fi
1c710c3c
DJ
5105ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5106if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5108$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5109else
5213506e
RW
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
55ffb5ed
NN
5112fi
5113
5213506e
RW
5114 if test "x$ac_ct_GNATBIND" = x; then
5115 GNATBIND="no"
5116 else
5117 case $cross_compiling:$ac_tool_warned in
5118yes:)
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5121ac_tool_warned=yes ;;
5122esac
5123 GNATBIND=$ac_ct_GNATBIND
5124 fi
55ffb5ed 5125else
1c710c3c 5126 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5127fi
5128
1c710c3c
DJ
5129if test -n "$ac_tool_prefix"; then
5130 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5131set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133$as_echo_n "checking for $ac_word... " >&6; }
5134if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5305be7e
RG
5136else
5137 if test -n "$GNATMAKE"; then
5138 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5139else
1c710c3c
DJ
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143 IFS=$as_save_IFS
5144 test -z "$as_dir" && as_dir=.
5213506e
RW
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5147 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5149 break 2
5150 fi
5151done
5213506e
RW
5152 done
5153IFS=$as_save_IFS
1c710c3c 5154
5305be7e
RG
5155fi
5156fi
1c710c3c 5157GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5158if test -n "$GNATMAKE"; then
5213506e
RW
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5160$as_echo "$GNATMAKE" >&6; }
5305be7e 5161else
5213506e
RW
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
5305be7e
RG
5164fi
5165
5213506e 5166
1c710c3c 5167fi
5305be7e 5168if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5169 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5170 # Extract the first word of "gnatmake", so it can be a program name with args.
5171set dummy gnatmake; ac_word=$2
5213506e
RW
5172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173$as_echo_n "checking for $ac_word... " >&6; }
5174if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5175 $as_echo_n "(cached) " >&6
5305be7e 5176else
1c710c3c
DJ
5177 if test -n "$ac_ct_GNATMAKE"; then
5178 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5179else
1c710c3c
DJ
5180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
5213506e
RW
5185 for ac_exec_ext in '' $ac_executable_extensions; do
5186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5187 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5189 break 2
5190 fi
5191done
5213506e
RW
5192 done
5193IFS=$as_save_IFS
1c710c3c 5194
5305be7e
RG
5195fi
5196fi
1c710c3c
DJ
5197ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5198if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5200$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5201else
5213506e
RW
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5305be7e
RG
5204fi
5205
5213506e
RW
5206 if test "x$ac_ct_GNATMAKE" = x; then
5207 GNATMAKE="no"
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210yes:)
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213ac_tool_warned=yes ;;
5214esac
5215 GNATMAKE=$ac_ct_GNATMAKE
5216 fi
5305be7e 5217else
1c710c3c 5218 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5219fi
5220
5213506e
RW
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5222$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5223if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5224 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5225else
5226 cat >conftest.adb <<EOF
5227procedure conftest is begin null; end conftest;
5228EOF
5229acx_cv_cc_gcc_supports_ada=no
5230# There is a bug in old released versions of GCC which causes the
5231# driver to exit successfully when the appropriate language module
5232# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5233# Therefore we must check for the error message as well as an
5234# unsuccessful exit.
1db673ca
RO
5235# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5236# given a .adb file, but produce no object file. So we must check
5237# if an object file was really produced to guard against this.
55ffb5ed 5238errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5239if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5240 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5241fi
5242rm -f conftest.*
5243fi
5213506e
RW
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5245$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5246
5305be7e 5247if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5248 have_gnat=yes
5249else
5250 have_gnat=no
5251fi
5252
5213506e
RW
5253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5254$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5255if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
a76494aa
PB
5257else
5258 echo abfoo >t1
5259 echo cdfoo >t2
5260 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5261 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5262 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5263 :
5264 else
5265 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5266 fi
5267 fi
a76494aa
PB
5268 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5269 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5270 :
a76494aa
PB
5271 else
5272 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5273 fi
5274 fi
5275 rm t1 t2
5276
5277fi
5213506e
RW
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5279$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5280do_compare="$gcc_cv_prog_cmp_skip"
5281
5282
55ffb5ed 5283
00020c16 5284# See if we are building gcc with C++.
5213506e
RW
5285# Check whether --enable-build-with-cxx was given.
5286if test "${enable_build_with_cxx+set}" = set; then :
5287 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5288else
5289 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5290fi
5291
00020c16 5292
592c90ff
KG
5293# Used for setting $lt_cv_objdir
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5295$as_echo_n "checking for objdir... " >&6; }
5296if test "${lt_cv_objdir+set}" = set; then :
5297 $as_echo_n "(cached) " >&6
5298else
5299 rm -f .libs 2>/dev/null
5300mkdir .libs 2>/dev/null
5301if test -d .libs; then
5302 lt_cv_objdir=.libs
5303else
5304 # MS-DOS does not allow filenames that begin with a dot.
5305 lt_cv_objdir=_libs
5306fi
5307rmdir .libs 2>/dev/null
5308fi
5309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5310$as_echo "$lt_cv_objdir" >&6; }
5311objdir=$lt_cv_objdir
5312
5313
5314
5315
5316
5317cat >>confdefs.h <<_ACEOF
5318#define LT_OBJDIR "$lt_cv_objdir/"
5319_ACEOF
5320
5321
5322
acd26225 5323# Check for GMP, MPFR and MPC
3a5729ea 5324gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5325gmpinc=
e69bf64b 5326have_gmp=no
acd26225
KG
5327
5328# Specify a location for mpc
5329# check for this first so it ends up on the link line before mpfr.
5330
5213506e
RW
5331# Check whether --with-mpc was given.
5332if test "${with_mpc+set}" = set; then :
5333 withval=$with_mpc;
5334fi
acd26225 5335
acd26225 5336
5213506e
RW
5337# Check whether --with-mpc_include was given.
5338if test "${with_mpc_include+set}" = set; then :
5339 withval=$with_mpc_include;
5340fi
acd26225 5341
acd26225 5342
5213506e
RW
5343# Check whether --with-mpc_lib was given.
5344if test "${with_mpc_lib+set}" = set; then :
5345 withval=$with_mpc_lib;
5346fi
acd26225 5347
acd26225
KG
5348
5349if test "x$with_mpc" != x; then
3a5729ea
KG
5350 gmplibs="-L$with_mpc/lib $gmplibs"
5351 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5352fi
5353if test "x$with_mpc_include" != x; then
3a5729ea 5354 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5355fi
5356if test "x$with_mpc_lib" != x; then
3a5729ea 5357 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5358fi
5359if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5360 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5361 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5362 # Do not test the mpc version. Assume that it is sufficient, since
5363 # it is in the source tree, and the library has not been built yet
5364 # but it would be included on the link line in the version check below
5365 # hence making the test fail.
3a5729ea 5366 have_gmp=yes
acd26225 5367fi
e69bf64b 5368
bebf829d
PB
5369# Specify a location for mpfr
5370# check for this first so it ends up on the link line before gmp.
1c710c3c 5371
5213506e
RW
5372# Check whether --with-mpfr-dir was given.
5373if test "${with_mpfr_dir+set}" = set; then :
5374 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5375Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5376fi
5377
bebf829d
PB
5378
5379
5213506e
RW
5380# Check whether --with-mpfr was given.
5381if test "${with_mpfr+set}" = set; then :
5382 withval=$with_mpfr;
5383fi
1c710c3c 5384
bebf829d 5385
5213506e
RW
5386# Check whether --with-mpfr_include was given.
5387if test "${with_mpfr_include+set}" = set; then :
5388 withval=$with_mpfr_include;
5389fi
1c710c3c 5390
8a877c9c 5391
5213506e
RW
5392# Check whether --with-mpfr_lib was given.
5393if test "${with_mpfr_lib+set}" = set; then :
5394 withval=$with_mpfr_lib;
5395fi
8a877c9c 5396
bebf829d
PB
5397
5398if test "x$with_mpfr" != x; then
5399 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5400 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5401fi
8a877c9c 5402if test "x$with_mpfr_include" != x; then
3a5729ea 5403 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5404fi
5405if test "x$with_mpfr_lib" != x; then
5406 gmplibs="-L$with_mpfr_lib $gmplibs"
5407fi
e69bf64b 5408if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5409 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5410 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5411 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5412 # Do not test the mpfr version. Assume that it is sufficient, since
5413 # it is in the source tree, and the library has not been built yet
5414 # but it would be included on the link line in the version check below
5415 # hence making the test fail.
5416 have_gmp=yes
5417fi
bebf829d 5418
6de9cd9a 5419# Specify a location for gmp
1c710c3c 5420
5213506e
RW
5421# Check whether --with-gmp-dir was given.
5422if test "${with_gmp_dir+set}" = set; then :
5423 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5424Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5425fi
5426
6de9cd9a 5427
6de9cd9a 5428
5213506e
RW
5429# Check whether --with-gmp was given.
5430if test "${with_gmp+set}" = set; then :
5431 withval=$with_gmp;
5432fi
1c710c3c 5433
6de9cd9a 5434
5213506e
RW
5435# Check whether --with-gmp_include was given.
5436if test "${with_gmp_include+set}" = set; then :
5437 withval=$with_gmp_include;
5438fi
1c710c3c 5439
8a877c9c 5440
5213506e
RW
5441# Check whether --with-gmp_lib was given.
5442if test "${with_gmp_lib+set}" = set; then :
5443 withval=$with_gmp_lib;
5444fi
8a877c9c
KG
5445
5446
6de9cd9a 5447
bebf829d
PB
5448if test "x$with_gmp" != x; then
5449 gmplibs="-L$with_gmp/lib $gmplibs"
5450 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5451fi
8a877c9c
KG
5452if test "x$with_gmp_include" != x; then
5453 gmpinc="-I$with_gmp_include $gmpinc"
5454fi
5455if test "x$with_gmp_lib" != x; then
5456 gmplibs="-L$with_gmp_lib $gmplibs"
5457fi
e69bf64b 5458if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5459 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5460 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9e3eba15 5461 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
592c90ff 5462 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5463 # Do not test the gmp version. Assume that it is sufficient, since
5464 # it is in the source tree, and the library has not been built yet
5465 # but it would be included on the link line in the version check below
5466 # hence making the test fail.
5467 have_gmp=yes
5468fi
6de9cd9a 5469
d943d7c4 5470if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5471 have_gmp=yes
5472 saved_CFLAGS="$CFLAGS"
5473 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5474 # Check for the recommended and required versions of GMP.
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5476$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5477
5478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5479/* end confdefs.h. */
5480#include "gmp.h"
5481int
5482main ()
5483{
5484
5485 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5486 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5487 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5488 choke me
5489 #endif
5490
5491 ;
5492 return 0;
5493}
5494_ACEOF
5495if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5497/* end confdefs.h. */
362c6d2f 5498#include <gmp.h>
1c710c3c
DJ
5499int
5500main ()
5501{
6de9cd9a 5502
362c6d2f
KG
5503 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5504 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5505 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5506 choke me
5507 #endif
1c710c3c
DJ
5508
5509 ;
5510 return 0;
5511}
5512_ACEOF
5213506e
RW
5513if ac_fn_c_try_compile "$LINENO"; then :
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515$as_echo "yes" >&6; }
362c6d2f
KG
5516else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5518$as_echo "buggy but acceptable" >&6; }
5519fi
5520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5521else
5213506e
RW
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5524fi
5213506e 5525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5526
acd26225 5527 # If we have GMP, check the MPFR version.
e69bf64b 5528 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5529 # Check for the recommended and required versions of MPFR.
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5531$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5533/* end confdefs.h. */
70ec446f 5534#include <gmp.h>
e69bf64b 5535 #include <mpfr.h>
1c710c3c
DJ
5536int
5537main ()
5538{
e48d66a9 5539
a3337ea2 5540 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5541 choke me
5542 #endif
1c710c3c
DJ
5543
5544 ;
5545 return 0;
5546}
5547_ACEOF
5213506e
RW
5548if ac_fn_c_try_compile "$LINENO"; then :
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5550/* end confdefs.h. */
a3993f33 5551#include <gmp.h>
e69bf64b 5552 #include <mpfr.h>
1c710c3c
DJ
5553int
5554main ()
5555{
a3993f33 5556
362c6d2f 5557 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5558 choke me
5559 #endif
acd26225
KG
5560
5561 ;
5562 return 0;
5563}
5564_ACEOF
5213506e
RW
5565if ac_fn_c_try_compile "$LINENO"; then :
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5567$as_echo "yes" >&6; }
acd26225 5568else
5213506e
RW
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5570$as_echo "buggy but acceptable" >&6; }
acd26225 5571fi
5213506e 5572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5573else
5213506e
RW
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575$as_echo "no" >&6; }; have_gmp=no
acd26225 5576fi
5213506e 5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5578 fi
5579
5580 # Check for the MPC header version.
3a5729ea 5581 if test x"$have_gmp" = xyes ; then
362c6d2f 5582 # Check for the recommended and required versions of MPC.
5213506e
RW
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5584$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5586/* end confdefs.h. */
5587#include <mpc.h>
5588int
5589main ()
5590{
5591
362c6d2f
KG
5592 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5593 choke me
5594 #endif
5595
5596 ;
5597 return 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_compile "$LINENO"; then :
5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h. */
5603#include <mpc.h>
5604int
5605main ()
5606{
5607
5608 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5609 choke me
5610 #endif
5611
5612 ;
5613 return 0;
5614}
5615_ACEOF
5213506e
RW
5616if ac_fn_c_try_compile "$LINENO"; then :
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5618$as_echo "yes" >&6; }
362c6d2f
KG
5619else
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5621$as_echo "buggy but acceptable" >&6; }
5622fi
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5624else
5213506e 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5626$as_echo "no" >&6; }; have_gmp=no
acd26225 5627fi
5213506e 5628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5629 fi
5630
5631 # Now check the MPFR library.
5632 if test x"$have_gmp" = xyes; then
5633 saved_LIBS="$LIBS"
5634 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5636$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5638/* end confdefs.h. */
3a5729ea 5639#include <mpc.h>
acd26225
KG
5640int
5641main ()
5642{
5643
5644 mpfr_t n;
5645 mpfr_t x;
3a5729ea 5646 mpc_t c;
acd26225
KG
5647 int t;
5648 mpfr_init (n);
5649 mpfr_init (x);
5650 mpfr_atan2 (n, n, x, GMP_RNDN);
5651 mpfr_erfc (n, x, GMP_RNDN);
5652 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5653 mpfr_clear(n);
5654 mpfr_clear(x);
5655 mpc_init2 (c, 53);
5656 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5657 mpc_cosh (c, c, MPC_RNDNN);
5658 mpc_pow (c, c, c, MPC_RNDNN);
5659 mpc_acosh (c, c, MPC_RNDNN);
5660 mpc_clear (c);
1c710c3c
DJ
5661
5662 ;
5663 return 0;
5664}
5665_ACEOF
5213506e
RW
5666if ac_fn_c_try_link "$LINENO"; then :
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5668$as_echo "yes" >&6; }
1c710c3c 5669else
5213506e
RW
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5672fi
5213506e
RW
5673rm -f core conftest.err conftest.$ac_objext \
5674 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5675 LIBS="$saved_LIBS"
5676 fi
5677
e69bf64b 5678 CFLAGS="$saved_CFLAGS"
6de9cd9a 5679
362c6d2f
KG
5680# The library versions listed in the error message below should match
5681# the HARD-minimums enforced above.
e69bf64b 5682 if test x$have_gmp != xyes; then
362c6d2f 5683 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5684Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5685their locations. Source code for these libraries can be found at
5686their respective hosting sites as well as at
5687ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5688http://gcc.gnu.org/install/prerequisites.html for additional info. If
5689you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5690make sure that you have installed both the libraries and the header
5691files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5692 fi
70ec446f
KG
5693fi
5694
acd26225
KG
5695# Flags needed for both GMP, MPFR and/or MPC.
5696
5697
6de9cd9a
DN
5698
5699
5700
9e3eba15 5701
f38095f3
JM
5702# Allow host libstdc++ to be specified for static linking with PPL.
5703
5213506e
RW
5704# Check whether --with-host-libstdcxx was given.
5705if test "${with_host_libstdcxx+set}" = set; then :
5706 withval=$with_host_libstdcxx;
5707fi
f38095f3 5708
f38095f3
JM
5709
5710case $with_host_libstdcxx in
5711 no|yes)
5213506e 5712 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5713 ;;
5714esac
f8bf9252 5715
00020c16
ILT
5716# Linker flags to use for stage1 or when not boostrapping.
5717
5213506e
RW
5718# Check whether --with-stage1-ldflags was given.
5719if test "${with_stage1_ldflags+set}" = set; then :
5720 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5721 stage1_ldflags=
5722 else
5723 stage1_ldflags=$withval
5724 fi
5725else
5726 stage1_ldflags=
5213506e
RW
5727fi
5728
00020c16
ILT
5729
5730
5731# Libraries to use for stage1 or when not bootstrapping.
5732
5213506e
RW
5733# Check whether --with-stage1-libs was given.
5734if test "${with_stage1_libs+set}" = set; then :
5735 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5736 stage1_libs=
5737 else
5738 stage1_libs=$withval
5739 fi
5740else
5741 stage1_libs=$with_host_libstdcxx
5213506e
RW
5742fi
5743
00020c16
ILT
5744
5745
00020c16
ILT
5746# Libraries to use for stage2 and later builds. This defaults to the
5747# argument passed to --with-host-libstdcxx.
5748
5213506e
RW
5749# Check whether --with-boot-libs was given.
5750if test "${with_boot_libs+set}" = set; then :
5751 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5752 poststage1_libs=
5753 else
5754 poststage1_libs=$withval
5755 fi
5756else
00020c16 5757 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5758fi
5759
00020c16
ILT
5760
5761
ed2eaa9f
ILT
5762# Linker flags to use for stage2 and later builds.
5763
5764# Check whether --with-boot-ldflags was given.
5765if test "${with_boot_ldflags+set}" = set; then :
5766 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5767 poststage1_ldflags=
5768 else
5769 poststage1_ldflags=$withval
5770 fi
5771else
5772 poststage1_ldflags=
5773 # With --enable-build-with-cxx, default to linking libstdc++ and
5774 # libgcc statically. But if the user explicitly specified the
5775 # libraries to use, trust that they are doing what they want.
5776 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5777 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5778 fi
5779fi
5780
5781
5782
f8bf9252
SP
5783# Check for PPL
5784ppl_major_version=0
5785ppl_minor_version=10
00020c16 5786ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5787pplinc=
5788
5789
5213506e
RW
5790# Check whether --with-ppl was given.
5791if test "${with_ppl+set}" = set; then :
5792 withval=$with_ppl;
5213506e 5793fi
f8bf9252 5794
f8bf9252 5795
5213506e
RW
5796# Check whether --with-ppl_include was given.
5797if test "${with_ppl_include+set}" = set; then :
5798 withval=$with_ppl_include;
5799fi
5800
f8bf9252 5801
5213506e
RW
5802# Check whether --with-ppl_lib was given.
5803if test "${with_ppl_lib+set}" = set; then :
5804 withval=$with_ppl_lib;
5805fi
f8bf9252 5806
f8bf9252 5807
53095c56
SP
5808case $with_ppl in
5809 no)
5810 ppllibs=
5811 ;;
f61428ed 5812 "" | yes)
ad0abd3c 5813 ;;
53095c56 5814 *)
00020c16 5815 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56 5816 pplinc="-I$with_ppl/include $pplinc"
53095c56
SP
5817 ;;
5818esac
f8bf9252
SP
5819if test "x$with_ppl_include" != x; then
5820 pplinc="-I$with_ppl_include $pplinc"
5821fi
5822if test "x$with_ppl_lib" != x; then
00020c16 5823 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5824fi
5825if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
592c90ff 5826 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
f61428ed
AO
5827 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5828 enable_ppl_version_check=no
f8bf9252
SP
5829fi
5830
5213506e
RW
5831# Check whether --enable-ppl-version-check was given.
5832if test "${enable_ppl_version_check+set}" = set; then :
5833 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5834else
5835 ENABLE_PPL_CHECK=yes
5213506e
RW
5836fi
5837
f8bf9252 5838
ad0abd3c 5839if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
d789184e
SP
5840 saved_CFLAGS="$CFLAGS"
5841 CFLAGS="$CFLAGS $pplinc $gmpinc"
5213506e
RW
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5843$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5845/* end confdefs.h. */
5846#include "ppl_c.h"
5847int
5848main ()
5849{
5850
d789184e
SP
5851 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5852 choke me
5853 #endif
f8bf9252
SP
5854
5855 ;
5856 return 0;
5857}
5858_ACEOF
5213506e
RW
5859if ac_fn_c_try_compile "$LINENO"; then :
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5861$as_echo "yes" >&6; }
f8bf9252 5862else
5213506e 5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5864$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5865fi
5213506e 5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5867 CFLAGS="$saved_CFLAGS"
5868fi
5869
5870# Flags needed for PPL
5871
5872
f8bf9252 5873
f8bf9252 5874
d789184e 5875# Check for CLOOG
23d9794a 5876clooglibs=" -lcloog "
d789184e
SP
5877clooginc=" -DCLOOG_PPL_BACKEND "
5878
5879
5213506e
RW
5880# Check whether --with-cloog was given.
5881if test "${with_cloog+set}" = set; then :
5882 withval=$with_cloog;
5213506e
RW
5883fi
5884
d789184e 5885
5213506e
RW
5886# Check whether --with-cloog_include was given.
5887if test "${with_cloog_include+set}" = set; then :
5888 withval=$with_cloog_include;
5889fi
d789184e 5890
d789184e 5891
5213506e
RW
5892# Check whether --with-cloog_lib was given.
5893if test "${with_cloog_lib+set}" = set; then :
5894 withval=$with_cloog_lib;
5895fi
d789184e 5896
d789184e 5897
17e72e5d 5898if test "x$with_ppl" = "xno"; then
ad0abd3c
RG
5899 with_cloog=no
5900fi
5901
53095c56
SP
5902case $with_cloog in
5903 no)
5904 clooglibs=
5905 clooginc=
5906 ;;
f61428ed 5907 "" | yes)
ad0abd3c 5908 ;;
53095c56
SP
5909 *)
5910 clooglibs="-L$with_cloog/lib -lcloog"
5911 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
53095c56
SP
5912 ;;
5913esac
d789184e
SP
5914if test "x$with_cloog_include" != x; then
5915 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5916fi
5917if test "x$with_cloog_lib" != x; then
5918 clooglibs="-L$with_cloog_lib -lcloog"
d789184e
SP
5919fi
5920if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
592c90ff 5921 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
d789184e 5922 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
f61428ed 5923 enable_cloog_version_check=no
d789184e
SP
5924fi
5925
5213506e
RW
5926# Check whether --enable-cloog-version-check was given.
5927if test "${enable_cloog_version_check+set}" = set; then :
5928 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
d789184e
SP
5929else
5930 ENABLE_CLOOG_CHECK=yes
5213506e
RW
5931fi
5932
d789184e 5933
ad0abd3c 5934if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
d789184e
SP
5935 saved_CFLAGS="$CFLAGS"
5936 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
f264ed56
SP
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5938$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
5213506e 5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5940/* end confdefs.h. */
5941#include "cloog/cloog.h"
5942int
5943main ()
5944{
5945
f264ed56 5946 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
d789184e
SP
5947 choke me
5948 #endif
f8bf9252
SP
5949
5950 ;
5951 return 0;
5952}
5953_ACEOF
0333b9a6
SP
5954if ac_fn_c_try_compile "$LINENO"; then :
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956/* end confdefs.h. */
5957#include "cloog/cloog.h"
5958int
5959main ()
5960{
5961
5962 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5963 choke me
5964 #endif
5965
5966 ;
5967 return 0;
5968}
5969_ACEOF
5213506e
RW
5970if ac_fn_c_try_compile "$LINENO"; then :
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5972$as_echo "yes" >&6; }
0333b9a6
SP
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5975$as_echo "buggy but acceptable" >&6; }
5976fi
5977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 5978else
5213506e
RW
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980$as_echo "no" >&6; }; clooglibs= ; clooginc=
f8bf9252 5981fi
5213506e 5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5983 CFLAGS="$saved_CFLAGS"
5984fi
f8bf9252
SP
5985
5986# Flags needed for CLOOG
5987
5988
5989
d7f09764
DN
5990# Check for LTO support.
5991# Check whether --enable-lto was given.
5992if test "${enable_lto+set}" = set; then :
5993 enableval=$enable_lto; enable_lto=$enableval
5994else
5995 enable_lto=yes; default_enable_lto=yes
5996fi
5997
5998
7413962d 5999
9a02962b 6000ac_ext=c
d7f09764
DN
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6006$as_echo_n "checking how to run the C preprocessor... " >&6; }
6007# On Suns, sometimes $CPP names a directory.
6008if test -n "$CPP" && test -d "$CPP"; then
6009 CPP=
6010fi
6011if test -z "$CPP"; then
6012 if test "${ac_cv_prog_CPP+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6014else
6015 # Double quotes because CPP needs to be expanded
6016 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6017 do
6018 ac_preproc_ok=false
6019for ac_c_preproc_warn_flag in '' yes
6020do
6021 # Use a header file that comes with gcc, so configuring glibc
6022 # with a fresh cross-compiler works.
6023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6024 # <limits.h> exists even on freestanding compilers.
6025 # On the NeXT, cc -E runs the code through the compiler's parser,
6026 # not just through cpp. "Syntax error" is here to catch this case.
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028/* end confdefs.h. */
6029#ifdef __STDC__
6030# include <limits.h>
6031#else
6032# include <assert.h>
6033#endif
6034 Syntax error
6035_ACEOF
6036if ac_fn_c_try_cpp "$LINENO"; then :
6037
6038else
6039 # Broken: fails on valid input.
6040continue
6041fi
6042rm -f conftest.err conftest.$ac_ext
6043
6044 # OK, works on sane cases. Now check whether nonexistent headers
6045 # can be detected and how.
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047/* end confdefs.h. */
6048#include <ac_nonexistent.h>
6049_ACEOF
6050if ac_fn_c_try_cpp "$LINENO"; then :
6051 # Broken: success on invalid input.
6052continue
6053else
6054 # Passes both tests.
6055ac_preproc_ok=:
6056break
6057fi
6058rm -f conftest.err conftest.$ac_ext
6059
6060done
6061# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6062rm -f conftest.err conftest.$ac_ext
6063if $ac_preproc_ok; then :
6064 break
6065fi
6066
6067 done
6068 ac_cv_prog_CPP=$CPP
6069
6070fi
6071 CPP=$ac_cv_prog_CPP
6072else
6073 ac_cv_prog_CPP=$CPP
6074fi
6075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6076$as_echo "$CPP" >&6; }
6077ac_preproc_ok=false
6078for ac_c_preproc_warn_flag in '' yes
6079do
6080 # Use a header file that comes with gcc, so configuring glibc
6081 # with a fresh cross-compiler works.
6082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6083 # <limits.h> exists even on freestanding compilers.
6084 # On the NeXT, cc -E runs the code through the compiler's parser,
6085 # not just through cpp. "Syntax error" is here to catch this case.
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087/* end confdefs.h. */
6088#ifdef __STDC__
6089# include <limits.h>
6090#else
6091# include <assert.h>
6092#endif
6093 Syntax error
6094_ACEOF
6095if ac_fn_c_try_cpp "$LINENO"; then :
6096
6097else
6098 # Broken: fails on valid input.
6099continue
6100fi
6101rm -f conftest.err conftest.$ac_ext
6102
6103 # OK, works on sane cases. Now check whether nonexistent headers
6104 # can be detected and how.
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h. */
6107#include <ac_nonexistent.h>
6108_ACEOF
6109if ac_fn_c_try_cpp "$LINENO"; then :
6110 # Broken: success on invalid input.
6111continue
6112else
6113 # Passes both tests.
6114ac_preproc_ok=:
6115break
6116fi
6117rm -f conftest.err conftest.$ac_ext
6118
6119done
6120# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6121rm -f conftest.err conftest.$ac_ext
6122if $ac_preproc_ok; then :
6123
6124else
6125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6127as_fn_error "C preprocessor \"$CPP\" fails sanity check
6128See \`config.log' for more details." "$LINENO" 5; }
6129fi
6130
6131ac_ext=c
6132ac_cpp='$CPP $CPPFLAGS'
6133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6135ac_compiler_gnu=$ac_cv_c_compiler_gnu
6136
6137
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6139$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6140if test "${ac_cv_path_GREP+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6142else
6143 if test -z "$GREP"; then
6144 ac_path_GREP_found=false
6145 # Loop through the user's path and test for each of PROGNAME-LIST
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_prog in grep ggrep; do
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6154 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6155# Check for GNU ac_path_GREP and select it if it is found.
6156 # Check for GNU $ac_path_GREP
6157case `"$ac_path_GREP" --version 2>&1` in
6158*GNU*)
6159 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6160*)
6161 ac_count=0
6162 $as_echo_n 0123456789 >"conftest.in"
6163 while :
6164 do
6165 cat "conftest.in" "conftest.in" >"conftest.tmp"
6166 mv "conftest.tmp" "conftest.in"
6167 cp "conftest.in" "conftest.nl"
6168 $as_echo 'GREP' >> "conftest.nl"
6169 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6171 as_fn_arith $ac_count + 1 && ac_count=$as_val
6172 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6173 # Best one so far, save it but keep looking for a better one
6174 ac_cv_path_GREP="$ac_path_GREP"
6175 ac_path_GREP_max=$ac_count
6176 fi
6177 # 10*(2^10) chars as input seems more than enough
6178 test $ac_count -gt 10 && break
6179 done
6180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6181esac
6182
6183 $ac_path_GREP_found && break 3
6184 done
6185 done
6186 done
6187IFS=$as_save_IFS
6188 if test -z "$ac_cv_path_GREP"; then
6189 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6190 fi
6191else
6192 ac_cv_path_GREP=$GREP
6193fi
6194
6195fi
6196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6197$as_echo "$ac_cv_path_GREP" >&6; }
6198 GREP="$ac_cv_path_GREP"
6199
6200
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6202$as_echo_n "checking for egrep... " >&6; }
6203if test "${ac_cv_path_EGREP+set}" = set; then :
6204 $as_echo_n "(cached) " >&6
6205else
6206 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6207 then ac_cv_path_EGREP="$GREP -E"
6208 else
6209 if test -z "$EGREP"; then
6210 ac_path_EGREP_found=false
6211 # Loop through the user's path and test for each of PROGNAME-LIST
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_prog in egrep; do
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6220 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6221# Check for GNU ac_path_EGREP and select it if it is found.
6222 # Check for GNU $ac_path_EGREP
6223case `"$ac_path_EGREP" --version 2>&1` in
6224*GNU*)
6225 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6226*)
6227 ac_count=0
6228 $as_echo_n 0123456789 >"conftest.in"
6229 while :
6230 do
6231 cat "conftest.in" "conftest.in" >"conftest.tmp"
6232 mv "conftest.tmp" "conftest.in"
6233 cp "conftest.in" "conftest.nl"
6234 $as_echo 'EGREP' >> "conftest.nl"
6235 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6237 as_fn_arith $ac_count + 1 && ac_count=$as_val
6238 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6239 # Best one so far, save it but keep looking for a better one
6240 ac_cv_path_EGREP="$ac_path_EGREP"
6241 ac_path_EGREP_max=$ac_count
6242 fi
6243 # 10*(2^10) chars as input seems more than enough
6244 test $ac_count -gt 10 && break
6245 done
6246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6247esac
6248
6249 $ac_path_EGREP_found && break 3
6250 done
6251 done
6252 done
6253IFS=$as_save_IFS
6254 if test -z "$ac_cv_path_EGREP"; then
6255 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6256 fi
6257else
6258 ac_cv_path_EGREP=$EGREP
6259fi
6260
6261 fi
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6264$as_echo "$ac_cv_path_EGREP" >&6; }
6265 EGREP="$ac_cv_path_EGREP"
6266
6267
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6269$as_echo_n "checking for ANSI C header files... " >&6; }
6270if test "${ac_cv_header_stdc+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6272else
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274/* end confdefs.h. */
6275#include <stdlib.h>
6276#include <stdarg.h>
6277#include <string.h>
6278#include <float.h>
6279
6280int
6281main ()
6282{
6283
6284 ;
6285 return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289 ac_cv_header_stdc=yes
6290else
6291 ac_cv_header_stdc=no
6292fi
6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294
6295if test $ac_cv_header_stdc = yes; then
6296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298/* end confdefs.h. */
6299#include <string.h>
6300
6301_ACEOF
6302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6303 $EGREP "memchr" >/dev/null 2>&1; then :
6304
6305else
6306 ac_cv_header_stdc=no
6307fi
6308rm -f conftest*
6309
6310fi
6311
6312if test $ac_cv_header_stdc = yes; then
6313 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315/* end confdefs.h. */
6316#include <stdlib.h>
6317
6318_ACEOF
6319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6320 $EGREP "free" >/dev/null 2>&1; then :
6321
6322else
6323 ac_cv_header_stdc=no
6324fi
6325rm -f conftest*
6326
6327fi
6328
6329if test $ac_cv_header_stdc = yes; then
6330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6331 if test "$cross_compiling" = yes; then :
6332 :
6333else
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335/* end confdefs.h. */
6336#include <ctype.h>
6337#include <stdlib.h>
6338#if ((' ' & 0x0FF) == 0x020)
6339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6341#else
6342# define ISLOWER(c) \
6343 (('a' <= (c) && (c) <= 'i') \
6344 || ('j' <= (c) && (c) <= 'r') \
6345 || ('s' <= (c) && (c) <= 'z'))
6346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6347#endif
6348
6349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6350int
6351main ()
6352{
6353 int i;
6354 for (i = 0; i < 256; i++)
6355 if (XOR (islower (i), ISLOWER (i))
6356 || toupper (i) != TOUPPER (i))
6357 return 2;
6358 return 0;
6359}
6360_ACEOF
6361if ac_fn_c_try_run "$LINENO"; then :
6362
6363else
6364 ac_cv_header_stdc=no
6365fi
6366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6367 conftest.$ac_objext conftest.beam conftest.$ac_ext
6368fi
6369
6370fi
6371fi
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6373$as_echo "$ac_cv_header_stdc" >&6; }
6374if test $ac_cv_header_stdc = yes; then
6375
6376$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6377
6378fi
6379
6380# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6381for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6382 inttypes.h stdint.h unistd.h
6383do :
6384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6386"
6387eval as_val=\$$as_ac_Header
6388 if test "x$as_val" = x""yes; then :
6389 cat >>confdefs.h <<_ACEOF
6390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6391_ACEOF
6392
6393fi
6394
6395done
6396
6397
9a02962b
DK
6398
6399
6400
6401target_elf=no
6402case $target in
6403 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6404 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6405 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6406 target_elf=no
6407 ;;
6408 *)
6409 target_elf=yes
6410 ;;
6411esac
6412
6413if test $target_elf = yes; then :
6414 if test x"$enable_lto" = x"yes" ; then
6415 # Make sure that libelf.h and gelf.h are available.
6416
6417# Check whether --with-libelf was given.
6418if test "${with_libelf+set}" = set; then :
6419 withval=$with_libelf;
6420fi
6421
6422
6423
6424# Check whether --with-libelf_include was given.
6425if test "${with_libelf_include+set}" = set; then :
6426 withval=$with_libelf_include;
6427fi
6428
6429
6430
6431# Check whether --with-libelf_lib was given.
6432if test "${with_libelf_lib+set}" = set; then :
6433 withval=$with_libelf_lib;
6434fi
6435
6436
6437 saved_CFLAGS="$CFLAGS"
6438 saved_CPPFLAGS="$CPPFLAGS"
6439 saved_LIBS="$LIBS"
6440
6441 case $with_libelf in
6442 "")
6443 libelflibs="-lelf"
6444 libelfinc="-I/usr/include/libelf"
6445 ;;
6446 *)
6447 libelflibs="-L$with_libelf/lib -lelf"
6448 libelfinc="-I$with_libelf/include -I$with_libelf/include/libelf"
6449 LIBS="$libelflibs $LIBS"
6450 ;;
6451 esac
6452
6453 if test "x$with_libelf_include" != x; then
6454 libelfinc="-I$with_libelf_include"
6455 fi
6456
6457 if test "x$with_libelf_lib" != x; then
6458 libelflibs="-L$with_libelf_lib -lelf"
6459 LIBS="$libelflibs $LIBS"
6460 fi
6461
6462 if test "x$with_libelf$with_libelf_include$with_libelf_lib" = x \
6463 && test -d ${srcdir}/libelf; then
6464 libelflibs='-L$$r/$(HOST_SUBDIR)/libelf/lib -lelf '
6465 libelfinc='-D__LIBELF_INTERNAL__ -I$$r/$(HOST_SUBDIR)/libelf/lib -I$$s/libelf/lib'
6466 LIBS="$libelflibs $LIBS"
6467
6468 else
6469
6470 CFLAGS="$CFLAGS $libelfinc"
6471 CPPFLAGS="$CPPFLAGS $libelfinc"
6472 LIBS="$LIBS $libelflibs"
6473
6474 for ac_header in libelf.h
d7f09764
DN
6475do :
6476 ac_fn_c_check_header_mongrel "$LINENO" "libelf.h" "ac_cv_header_libelf_h" "$ac_includes_default"
6477if test "x$ac_cv_header_libelf_h" = x""yes; then :
6478 cat >>confdefs.h <<_ACEOF
6479#define HAVE_LIBELF_H 1
6480_ACEOF
6481 have_libelf_h=yes
6482fi
6483
6484done
6485
6486 for ac_header in gelf.h
6487do :
6488 ac_fn_c_check_header_mongrel "$LINENO" "gelf.h" "ac_cv_header_gelf_h" "$ac_includes_default"
6489if test "x$ac_cv_header_gelf_h" = x""yes; then :
6490 cat >>confdefs.h <<_ACEOF
6491#define HAVE_GELF_H 1
6492_ACEOF
6493 have_gelf_h=yes
6494fi
6495
6496done
6497
6498
6499 for ac_header in libelf/libelf.h
6500do :
6501 ac_fn_c_check_header_mongrel "$LINENO" "libelf/libelf.h" "ac_cv_header_libelf_libelf_h" "$ac_includes_default"
6502if test "x$ac_cv_header_libelf_libelf_h" = x""yes; then :
6503 cat >>confdefs.h <<_ACEOF
6504#define HAVE_LIBELF_LIBELF_H 1
6505_ACEOF
6506 have_libelf_libelf_h=yes
6507fi
6508
6509done
6510
6511 for ac_header in libelf/gelf.h
6512do :
6513 ac_fn_c_check_header_mongrel "$LINENO" "libelf/gelf.h" "ac_cv_header_libelf_gelf_h" "$ac_includes_default"
6514if test "x$ac_cv_header_libelf_gelf_h" = x""yes; then :
6515 cat >>confdefs.h <<_ACEOF
6516#define HAVE_LIBELF_GELF_H 1
6517_ACEOF
6518 have_libelf_gelf_h=yes
6519fi
6520
6521done
6522
6523
6524 # If we couldn't find libelf.h and the user forced it, emit an error.
6525 if test x"$have_libelf_h" != x"yes" \
6526 && test x"$have_libelf_libelf_h" != x"yes" ; then
6527 if test x"$default_enable_lto" != x"yes" ; then
6528 as_fn_error "LTO support requires libelf.h or libelf/libelf.h." "$LINENO" 5
6529 else
6530 enable_lto=no
6531 libelflibs=
6532 libelfinc=
6533 fi
6534 fi
6535
6536 # If we couldn't find gelf.h and the user forced it, emit an error.
6537 if test x"$have_gelf_h" != x"yes" \
6538 && test x"$have_libelf_gelf_h" != x"yes" ; then
6539 if test x"$default_enable_lto" != x"yes" ; then
6540 as_fn_error "LTO support requires gelf.h or libelf/gelf.h." "$LINENO" 5
6541 else
6542 enable_lto=no
6543 libelflibs=
6544 libelfinc=
6545 fi
6546 fi
6547
6548 # Check that the detected libelf has the functions we need. We cannot
6549 # rely on just detecting the headers since they do not include
6550 # versioning information. Add functions, if needed.
6551 if test x"$enable_lto" = x"yes" ; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of libelf" >&5
6553$as_echo_n "checking for the correct version of libelf... " >&6; }
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555/* end confdefs.h. */
6556#include <libelf.h>
6557int
6558main ()
6559{
6560
6561 elf_errmsg (0);
6562 elf_getscn (0, 0);
6563 elf_nextscn (0, 0);
6564 elf_strptr (0, 0, 0);
6565 elf_getident (0, 0);
d7f09764
DN
6566 elf_begin (0, 0, 0);
6567 elf_ndxscn (0);
6568 elf_end (0);
6569
6570 ;
6571 return 0;
6572}
6573_ACEOF
6574if ac_fn_c_try_link "$LINENO"; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576$as_echo "yes" >&6; };
6577else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6580
6581fi
6582rm -f core conftest.err conftest.$ac_objext \
6583 conftest$ac_exeext conftest.$ac_ext
6584
8ccb78f2
RO
6585 # Check for elf_getshdrstrndx or elf_getshstrndx. The latter's flavor
6586 # is determined in gcc/configure.ac.
6587 if test x"$enable_lto" = x"yes" ; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshdrstrndx" >&5
6589$as_echo_n "checking for elf_getshdrstrndx... " >&6; }
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591/* end confdefs.h. */
6592#include <libelf.h>
6593int
6594main ()
6595{
6596
6597 elf_getshdrstrndx (0, 0);
6598
6599 ;
6600 return 0;
6601}
6602_ACEOF
6603if ac_fn_c_try_link "$LINENO"; then :
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605$as_echo "yes" >&6; };
6606else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608$as_echo "no" >&6; };
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_getshstrndx" >&5
6610$as_echo_n "checking for elf_getshstrndx... " >&6; }
6611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612/* end confdefs.h. */
6613#include <libelf.h>
6614int
6615main ()
6616{
6617
6618 elf_getshstrndx (0, 0);
6619
6620 ;
6621 return 0;
6622}
6623_ACEOF
6624if ac_fn_c_try_link "$LINENO"; then :
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6626$as_echo "yes" >&6; };
6627else
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6629$as_echo "no" >&6; }; enable_lto=no; libelflibs= ; libelfinc=
6630
6631fi
6632rm -f core conftest.err conftest.$ac_objext \
6633 conftest$ac_exeext conftest.$ac_ext
6634
6635fi
6636rm -f core conftest.err conftest.$ac_objext \
6637 conftest$ac_exeext conftest.$ac_ext
6638 fi
6639
d7f09764
DN
6640 # If we couldn't enable LTO and the user forced it, emit an error.
6641 if test x"$enable_lto" = x"no" \
6642 && test x"$default_enable_lto" != x"yes" ; then
6643 as_fn_error "To enable LTO, GCC requires libelf v0.8.12+.
6644Try the --with-libelf, --with-libelf-include and --with-libelf-lib options
6645to specify its location." "$LINENO" 5
6646 fi
6647 fi
6648
6649 CFLAGS="$saved_CFLAGS"
6650 CPPFLAGS="$saved_CPPFLAGS"
6651 LIBS="$saved_LIBS"
6652
f61428ed
AO
6653 fi
6654
d7f09764
DN
6655 # Flags needed for libelf.
6656
6657
6658fi
9a02962b
DK
6659else
6660 if test x"$default_enable_lto" = x"yes" ; then
6661 # On non-ELF platforms, LTO must be explicitly enabled.
6662 enable_lto=no
6663 else
6664 # Apart from ELF platforms, only Windows supports LTO so far. It
6665 # would also be nice to check the binutils support, but we don't
6666 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6667 # warn during gcc/ subconfigure; unless you're bootstrapping with
6668 # -flto it won't be needed until after installation anyway.
6669 case $target in
6670 *-cygwin*|*-mingw*) ;;
6671 *) if test x"$enable_lto" = x"yes"; then
6672 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6673 fi
6674 ;;
6675 esac
6676 fi
6677 default_enable_lto=no
6678fi
6679
d7f09764 6680
f8bf9252 6681
1e0f07d3 6682# By default, C is the only stage 1 language.
e1888513 6683stage1_languages=,c,
2805b53a 6684
00020c16 6685# Target libraries that we bootstrap.
ad1e5170 6686bootstrap_target_libs=,target-libgcc,
00020c16 6687
55ffb5ed
NN
6688# Figure out what language subdirectories are present.
6689# Look if the user specified --enable-languages="..."; if not, use
6690# the environment variable $LANGUAGES if defined. $LANGUAGES might
6691# go away some day.
6692# NB: embedded tabs in this IF block -- do not untabify
6693if test -d ${srcdir}/gcc; then
6694 if test x"${enable_languages+set}" != xset; then
6695 if test x"${LANGUAGES+set}" = xset; then
6696 enable_languages="${LANGUAGES}"
6697 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6698 else
6699 enable_languages=all
6700 fi
6701 else
6702 if test x"${enable_languages}" = x ||
6703 test x"${enable_languages}" = xyes;
6704 then
6705 echo configure.in: --enable-languages needs at least one language argument 1>&2
6706 exit 1
6707 fi
6708 fi
6709 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6710
7f26dfa3
FXC
6711 # 'f95' is the old name for the 'fortran' language. We issue a warning
6712 # and make the substitution.
6713 case ,${enable_languages}, in
6714 *,f95,*)
6715 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6716 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6717 ;;
6718 esac
6719
55ffb5ed
NN
6720 # First scan to see if an enabled language requires some other language.
6721 # We assume that a given config-lang.in will list all the language
6722 # front ends it requires, even if some are required indirectly.
6723 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6724 case ${lang_frag} in
6725 ..) ;;
6726 # The odd quoting in the next line works around
6727 # an apparent bug in bash 1.12 on linux.
6728 ${srcdir}/gcc/[*]/config-lang.in) ;;
6729 *)
6730 # From the config-lang.in, get $language, $lang_requires
6731 language=
6732 lang_requires=
6733 . ${lang_frag}
6734 for other in ${lang_requires} ; do
6735 case ,${enable_languages}, in
6736 *,$other,*) ;;
6737 *,all,*) ;;
6738 *,$language,*)
6739 echo " \`$other' language required by \`$language'; enabling" 1>&2
6740 enable_languages="${enable_languages},${other}"
6741 ;;
6742 esac
6743 done
6744 ;;
6745 esac
6746 done
6747
e1888513 6748 new_enable_languages=,c,
d7f09764
DN
6749
6750 # If LTO is enabled, add the LTO front end.
6751 extra_host_libiberty_configure_flags=
6752 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6753 case ,${enable_languages}, in
6754 *,lto,*) ;;
6755 *) enable_languages="${enable_languages},lto" ;;
6756 esac
d7f09764
DN
6757 if test "${ENABLE_GOLD}" = "yes" ; then
6758 configdirs="$configdirs lto-plugin"
6759 extra_host_libiberty_configure_flags=--enable-shared
6760 fi
6761 fi
6762
6763
55ffb5ed 6764 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6765 potential_languages=,c,
55ffb5ed
NN
6766
6767 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6768 case ${lang_frag} in
6769 ..) ;;
6770 # The odd quoting in the next line works around
6771 # an apparent bug in bash 1.12 on linux.
6772 ${srcdir}/gcc/[*]/config-lang.in) ;;
6773 *)
1c710c3c 6774 # From the config-lang.in, get $language, $target_libs,
2805b53a 6775 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6776 language=
6777 target_libs=
6778 lang_dirs=
1546bb64 6779 subdir_requires=
e1888513
PB
6780 boot_language=no
6781 build_by_default=yes
55ffb5ed 6782 . ${lang_frag}
e1888513
PB
6783 if test x${language} = x; then
6784 echo "${lang_frag} doesn't set \$language." 1>&2
6785 exit 1
6786 fi
6787
f61428ed
AO
6788 if test "$language" = "c++" \
6789 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6790 boot_language=yes
6791 fi
6792
e1888513
PB
6793 case ,${enable_languages}, in
6794 *,${language},*)
55ffb5ed
NN
6795 # Language was explicitly selected; include it.
6796 add_this_lang=yes
6797 ;;
e1888513
PB
6798 *,all,*)
6799 # 'all' was selected, select it if it is a default language
6800 add_this_lang=${build_by_default}
55ffb5ed
NN
6801 ;;
6802 *)
6803 add_this_lang=no
6804 ;;
6805 esac
6de9cd9a 6806
1546bb64 6807 # Disable languages that need other directories if these aren't available.
95695ad3 6808 for i in $subdir_requires; do
b6348cb3 6809 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6810 case ,${enable_languages}, in
6811 *,${language},*)
6812 # Specifically requested language; tell them.
5213506e 6813 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6814 ;;
6815 *)
6816 # Silently disable.
e1888513 6817 add_this_lang=unsupported
1546bb64
PB
6818 ;;
6819 esac
6820 done
6821
e1888513
PB
6822 # Disable Ada if no preexisting GNAT is available.
6823 case ,${enable_languages},:${language}:${have_gnat} in
6824 *,${language},*:ada:no)
6825 # Specifically requested language; tell them.
5213506e 6826 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6827 ;;
6828 *:ada:no)
6829 # Silently disable.
6830 add_this_lang=unsupported
6831 ;;
6832 esac
6833
4fab7234
HPN
6834 # Disable a language that is unsupported by the target.
6835 case " $unsupported_languages " in
6836 *" $language "*)
e1888513 6837 add_this_lang=unsupported
4fab7234
HPN
6838 ;;
6839 esac
6840
6de9cd9a 6841 case $add_this_lang in
e1888513 6842 unsupported)
55ffb5ed 6843 # Remove language-dependent dirs.
2805b53a
NN
6844 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6845 ;;
e1888513
PB
6846 no)
6847 # Remove language-dependent dirs; still show language as supported.
6848 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
6849 potential_languages="${potential_languages}${language},"
6850 ;;
6851 yes)
6852 new_enable_languages="${new_enable_languages}${language},"
6853 potential_languages="${potential_languages}${language},"
2805b53a 6854 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
ab9dcd0c
RW
6855 case "${boot_language}:,$enable_stage1_languages," in
6856 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6857 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6858 case ",$stage1_languages," in
6859 *,$language,* | ,yes, | ,all,) ;;
6860 *) stage1_languages="${stage1_languages}${language}," ;;
6861 esac
00020c16
ILT
6862 # We need to bootstrap any supporting libraries.
6863 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6864 ;;
6865 esac
6866 ;;
55ffb5ed
NN
6867 esac
6868 ;;
6869 esac
6870 done
6871
5213506e
RW
6872 # Check whether --enable-stage1-languages was given.
6873if test "${enable_stage1_languages+set}" = set; then :
6874 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6875 ,no,|,,)
6876 # Set it to something that will have no effect in the loop below
6877 enable_stage1_languages=c ;;
6878 ,yes,)
6879 enable_stage1_languages=`echo $new_enable_languages | \
6880 sed -e "s/^,//" -e "s/,$//" ` ;;
6881 *,all,*)
6882 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6883 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6884 esac
6885
6886 # Add "good" languages from enable_stage1_languages to stage1_languages,
6887 # while "bad" languages go in missing_languages. Leave no duplicates.
6888 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6889 case $potential_languages in
6890 *,$i,*)
6891 case $stage1_languages in
6892 *,$i,*) ;;
6893 *) stage1_languages="$stage1_languages$i," ;;
6894 esac ;;
6895 *)
6896 case $missing_languages in
6897 *,$i,*) ;;
6898 *) missing_languages="$missing_languages$i," ;;
6899 esac ;;
6900 esac
6901 done
5213506e
RW
6902fi
6903
e1888513
PB
6904
6905 # Remove leading/trailing commas that were added for simplicity
6906 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6907 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6908 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6909 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6910
55ffb5ed 6911 if test "x$missing_languages" != x; then
5213506e 6912 as_fn_error "
0cf085e4 6913The following requested languages could not be built: ${missing_languages}
5213506e 6914Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6915 fi
55ffb5ed
NN
6916 if test "x$new_enable_languages" != "x$enable_languages"; then
6917 echo The following languages will be built: ${new_enable_languages}
e1888513 6918 enable_languages="$new_enable_languages"
55ffb5ed 6919 fi
e1888513 6920
1c710c3c 6921
b2eaac4a 6922 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6923fi
6924
27079765
AH
6925# Handle --disable-<component> generically.
6926for dir in $configdirs $build_configdirs $target_configdirs ; do
6927 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6928 varname=`echo $dirname | sed -e s/+/_/g`
6929 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6930 noconfigdirs="$noconfigdirs $dir"
6931 fi
6932done
6933
7cd0cf9c 6934# Check for Boehm's garbage collector
5213506e
RW
6935# Check whether --enable-objc-gc was given.
6936if test "${enable_objc_gc+set}" = set; then :
6937 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6938 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6939 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6940 ;;
6941esac
5213506e
RW
6942fi
6943
7cd0cf9c
DA
6944
6945# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6946case ,${enable_languages},:${enable_objc_gc} in
6947 *,objc,*:yes)
7cd0cf9c
DA
6948 # Keep target-boehm-gc if requested for Objective-C.
6949 ;;
7cd0cf9c 6950 *)
2a79fd67
DA
6951 # Otherwise remove target-boehm-gc depending on target-libjava.
6952 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6953 noconfigdirs="$noconfigdirs target-boehm-gc"
6954 fi
7cd0cf9c
DA
6955 ;;
6956esac
6957
ee6a22df
L
6958# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6959# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6960# If we have the source for $noconfigdirs entries, add them to $notsupp.
6961
6962notsupp=""
6963for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6964 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6965 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6966 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6967 if test -r $srcdir/$dirname/configure ; then
6968 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6969 true
6970 else
6971 notsupp="$notsupp $dir"
6972 fi
6973 fi
6974 fi
ee6a22df
L
6975 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6976 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6977 if test -r $srcdir/$dirname/configure ; then
6978 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6979 true
6980 else
6981 notsupp="$notsupp $dir"
6982 fi
6983 fi
6984 fi
55ffb5ed
NN
6985 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6986 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6987 if test -r $srcdir/$dirname/configure ; then
6988 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6989 true
6990 else
6991 notsupp="$notsupp $dir"
6992 fi
6993 fi
6994 fi
6995done
6996
6997# Sometimes the tools are distributed with libiberty but with no other
6998# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6999# Don't let libgcc imply libiberty either.
55ffb5ed 7000if test -n "${target_configdirs}" ; then
54fdc474 7001 libgcc=
55ffb5ed
NN
7002 others=
7003 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
7004 if test "$i" = "libgcc"; then
7005 libgcc=target-libgcc
7006 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
7007 if test -r $srcdir/$i/configure ; then
7008 others=yes;
7009 break;
7010 fi
7011 fi
7012 done
7013 if test -z "${others}" ; then
54fdc474 7014 target_configdirs=$libgcc
55ffb5ed
NN
7015 fi
7016fi
7017
7018# Quietly strip out all directories which aren't configurable in this tree.
7019# This relies on all configurable subdirectories being autoconfiscated, which
7020# is now the case.
23f6b2f9
PB
7021build_configdirs_all="$build_configdirs"
7022build_configdirs=
7023for i in ${build_configdirs_all} ; do
1c710c3c 7024 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
7025 if test -f ${srcdir}/$j/configure ; then
7026 build_configdirs="${build_configdirs} $i"
7027 fi
7028done
7029
55ffb5ed
NN
7030configdirs_all="$configdirs"
7031configdirs=
7032for i in ${configdirs_all} ; do
7033 if test -f ${srcdir}/$i/configure ; then
7034 configdirs="${configdirs} $i"
7035 fi
7036done
23f6b2f9 7037
55ffb5ed
NN
7038target_configdirs_all="$target_configdirs"
7039target_configdirs=
7040for i in ${target_configdirs_all} ; do
1c710c3c 7041 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
7042 if test -f ${srcdir}/$j/configure ; then
7043 target_configdirs="${target_configdirs} $i"
7044 fi
7045done
7046
7047# Produce a warning message for the subdirs we can't configure.
7048# This isn't especially interesting in the Cygnus tree, but in the individual
7049# FSF releases, it's important to let people know when their machine isn't
7050# supported by the one or two programs in a package.
7051
7052if test -n "${notsupp}" && test -z "${norecursion}" ; then
7053 # If $appdirs is non-empty, at least one of those directories must still
7054 # be configured, or we error out. (E.g., if the gas release supports a
7055 # specified target in some subdirs but not the gas subdir, we shouldn't
7056 # pretend that all is well.)
7057 if test -n "$appdirs" ; then
7058 for dir in $appdirs ; do
7059 if test -r $dir/Makefile.in ; then
7060 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
7061 appdirs=""
7062 break
7063 fi
23f6b2f9 7064 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
7065 appdirs=""
7066 break
7067 fi
7068 fi
7069 done
7070 if test -n "$appdirs" ; then
7071 echo "*** This configuration is not supported by this package." 1>&2
7072 exit 1
7073 fi
7074 fi
7075 # Okay, some application will build, or we don't care to check. Still
7076 # notify of subdirs not getting built.
7077 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
7078 echo " ${notsupp}" 1>&2
7079 echo " (Any other directories should still work fine.)" 1>&2
7080fi
7081
7082case "$host" in
7083 *msdosdjgpp*)
7084 enable_gdbtk=no ;;
7085esac
7086
c3a86da9
DJ
7087# To find our prefix, in gcc_cv_tool_prefix.
7088
7089# The user is always right.
7090if test "${PATH_SEPARATOR+set}" != set; then
7091 echo "#! /bin/sh" >conf$$.sh
7092 echo "exit 0" >>conf$$.sh
7093 chmod +x conf$$.sh
7094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7095 PATH_SEPARATOR=';'
7096 else
7097 PATH_SEPARATOR=:
7098 fi
7099 rm -f conf$$.sh
7100fi
7101
7102
7103
7104if test "x$exec_prefix" = xNONE; then
7105 if test "x$prefix" = xNONE; then
7106 gcc_cv_tool_prefix=$ac_default_prefix
7107 else
7108 gcc_cv_tool_prefix=$prefix
7109 fi
7110else
7111 gcc_cv_tool_prefix=$exec_prefix
7112fi
7113
7114# If there is no compiler in the tree, use the PATH only. In any
7115# case, if there is no compiler in the tree nobody should use
7116# AS_FOR_TARGET and LD_FOR_TARGET.
7117if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
7118 gcc_version=`cat $srcdir/gcc/BASE-VER`
7119 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7120 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
7121 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7122 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
7123 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
7124 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
7125else
7126 gcc_cv_tool_dirs=
7127fi
7128
7129if test x$build = x$target && test -n "$md_exec_prefix"; then
7130 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
7131fi
7132
7133
7134
55ffb5ed
NN
7135copy_dirs=
7136
1c710c3c 7137
5213506e
RW
7138# Check whether --with-build-sysroot was given.
7139if test "${with_build_sysroot+set}" = set; then :
7140 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
7141 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
7142 fi
7143else
7144 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 7145fi
526635cb
MM
7146
7147
c8aea42c 7148
5213506e
RW
7149
7150# Check whether --with-debug-prefix-map was given.
7151if test "${with_debug_prefix_map+set}" = set; then :
7152 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
7153 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
7154 for debug_map in $withval; do
7155 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
7156 done
7157 fi
7158else
7159 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
7160fi
7161
c8aea42c
PB
7162
7163
1c8bd6a3
PB
7164# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
7165# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
7166# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
7167# We want to ensure that TARGET libraries (which we know are built with
7168# gcc) are built with "-O2 -g", so include those options when setting
7169# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
7170if test "x$CFLAGS_FOR_TARGET" = x; then
7171 CFLAGS_FOR_TARGET=$CFLAGS
7172 case " $CFLAGS " in
7173 *" -O2 "*) ;;
7174 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
7175 esac
7176 case " $CFLAGS " in
7177 *" -g "* | *" -g3 "*) ;;
7178 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
7179 esac
7180fi
7181
7182
7183if test "x$CXXFLAGS_FOR_TARGET" = x; then
7184 CXXFLAGS_FOR_TARGET=$CXXFLAGS
7185 case " $CXXFLAGS " in
7186 *" -O2 "*) ;;
7187 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
7188 esac
7189 case " $CXXFLAGS " in
7190 *" -g "* | *" -g3 "*) ;;
7191 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
7192 esac
7193fi
7194
7195
55ffb5ed
NN
7196# Handle --with-headers=XXX. If the value is not "yes", the contents of
7197# the named directory are copied to $(tooldir)/sys-include.
7198if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
7199 if test x${is_cross_compiler} = xno ; then
7200 echo 1>&2 '***' --with-headers is only supported when cross compiling
7201 exit 1
7202 fi
7203 if test x"${with_headers}" != xyes ; then
c3a86da9 7204 x=${gcc_cv_tool_prefix}
1c710c3c 7205 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
7206 fi
7207fi
7208
7209# Handle --with-libs=XXX. If the value is not "yes", the contents of
7210# the name directories are copied to $(tooldir)/lib. Multiple directories
7211# are permitted.
7212if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
7213 if test x${is_cross_compiler} = xno ; then
7214 echo 1>&2 '***' --with-libs is only supported when cross compiling
7215 exit 1
7216 fi
7217 if test x"${with_libs}" != xyes ; then
7218 # Copy the libraries in reverse order, so that files in the first named
7219 # library override files in subsequent libraries.
c3a86da9 7220 x=${gcc_cv_tool_prefix}
55ffb5ed 7221 for l in ${with_libs}; do
1c710c3c 7222 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
7223 done
7224 fi
7225fi
7226
d7f09764 7227# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
7228#
7229# This is done by determining whether or not the appropriate directory
7230# is available, and by checking whether or not specific configurations
7231# have requested that this magic not happen.
1c710c3c
DJ
7232#
7233# The command line options always override the explicit settings in
e8b05380
PB
7234# configure.in, and the settings in configure.in override this magic.
7235#
1c710c3c 7236# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 7237# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
7238# --without-gnu-ld options for the configure script. Similarly, if
7239# the default is to use the included zlib and you don't want to do that,
7240# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
7241
7242if test x${use_gnu_as} = x &&
7243 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
7244 with_gnu_as=yes
7245 extra_host_args="$extra_host_args --with-gnu-as"
7246fi
7247
7248if test x${use_gnu_ld} = x &&
5afab7ad 7249 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
7250 with_gnu_ld=yes
7251 extra_host_args="$extra_host_args --with-gnu-ld"
7252fi
7253
d7f09764
DN
7254if test x${use_included_zlib} = x &&
7255 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
7256 :
7257else
7258 with_system_zlib=yes
7259 extra_host_args="$extra_host_args --with-system-zlib"
7260fi
7261
e8b05380
PB
7262# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
7263# can detect this case.
7264
7265if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
7266 with_newlib=yes
7267 extra_host_args="$extra_host_args --with-newlib"
7268fi
7269
55ffb5ed
NN
7270# Handle ${copy_dirs}
7271set fnord ${copy_dirs}
7272shift
7273while test $# != 0 ; do
7274 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
7275 :
7276 else
7277 echo Copying $1 to $2
7278
7279 # Use the install script to create the directory and all required
7280 # parent directories.
7281 if test -d $2 ; then
7282 :
7283 else
7284 echo >config.temp
7285 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
7286 fi
7287
7288 # Copy the directory, assuming we have tar.
7289 # FIXME: Should we use B in the second tar? Not all systems support it.
7290 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
7291
7292 # It is the responsibility of the user to correctly adjust all
7293 # symlinks. If somebody can figure out how to handle them correctly
7294 # here, feel free to add the code.
7295
7296 echo $1 > $2/COPIED
7297 fi
7298 shift; shift
7299done
7300
e8b05380
PB
7301# Determine a target-dependent exec_prefix that the installed
7302# gcc will search in. Keep this list sorted by triplet, with
7303# the *-*-osname triplets last.
7304md_exec_prefix=
7305case "${target}" in
7306 alpha*-*-*vms*)
7307 md_exec_prefix=/gnu/lib/gcc-lib
7308 ;;
30b74385 7309 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
7310 md_exec_prefix=/dev/env/DJDIR/bin
7311 ;;
30b74385 7312 i[34567]86-*-sco3.2v5*)
e8b05380
PB
7313 if test $with_gnu_as = yes; then
7314 md_exec_prefix=/usr/gnu/bin
7315 else
7316 md_exec_prefix=/usr/ccs/bin/elf
7317 fi
7318 ;;
7319
7320 mn10300-*-* | \
7321 powerpc-*-chorusos* | \
7322 powerpc*-*-eabi* | \
7323 powerpc*-*-sysv* | \
7324 powerpc*-*-kaos* | \
7325 s390x-ibm-tpf*)
7326 md_exec_prefix=/usr/ccs/bin
7327 ;;
7328 sparc64-*-elf*)
7329 ;;
7330 v850*-*-*)
7331 md_exec_prefix=/usr/ccs/bin
7332 ;;
aa12a573 7333 xtensa*-*-elf*)
e8b05380
PB
7334 ;;
7335
7336 *-*-beos* | \
7337 *-*-elf* | \
7338 *-*-hpux* | \
7339 *-*-netware* | \
7340 *-*-nto-qnx* | \
7341 *-*-rtems* | \
7342 *-*-solaris2* | \
30b74385 7343 *-*-sysv[45]* | \
e8b05380
PB
7344 *-*-vxworks* | \
7345 *-wrs-windiss)
7346 md_exec_prefix=/usr/ccs/bin
7347 ;;
7348esac
7349
671aa708
NN
7350extra_arflags_for_target=
7351extra_nmflags_for_target=
7352extra_ranlibflags_for_target=
7353target_makefile_frag=/dev/null
7354case "${target}" in
3e19841a
PB
7355 mep*-*-*)
7356 target_makefile_frag="config/mt-mep"
7357 ;;
58e24147
AM
7358 spu-*-*)
7359 target_makefile_frag="config/mt-spu"
7360 ;;
4bf6c438
RS
7361 mips*-sde-elf*)
7362 target_makefile_frag="config/mt-sde"
7363 ;;
1ec3b87b
RS
7364 mipsisa*-*-elfoabi*)
7365 target_makefile_frag="config/mt-mips-elfoabi"
7366 ;;
08d0963a
RS
7367 mips*-*-*linux* | mips*-*-gnu*)
7368 target_makefile_frag="config/mt-mips-gnu"
7369 ;;
61fec9ff 7370 *-*-netware*)
671aa708
NN
7371 target_makefile_frag="config/mt-netware"
7372 ;;
416ac4d4 7373 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 7374 target_makefile_frag="config/mt-gnu"
671aa708
NN
7375 ;;
7376 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 7377 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
7378 # commands to handle both 32-bit and 64-bit objects. These flags are
7379 # harmless if we're using GNU nm or ar.
7380 extra_arflags_for_target=" -X32_64"
7381 extra_nmflags_for_target=" -B -X32_64"
7382 ;;
0aeb3cc6
JH
7383 *-*-darwin[3-9]*)
7384 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
7385 extra_ranlibflags_for_target=" -c"
7386 ;;
7387 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
7388 target_makefile_frag="config/mt-wince"
7389 ;;
7390esac
7391
7392alphaieee_frag=/dev/null
7393case $target in
7394 alpha*-*-*)
7395 # This just makes sure to use the -mieee option to build target libs.
7396 # This should probably be set individually by each library.
7397 alphaieee_frag="config/mt-alphaieee"
7398 ;;
7399esac
7400
7401# If --enable-target-optspace always use -Os instead of -O2 to build
7402# the target libraries, similarly if it is not specified, use -Os
7403# on selected platforms.
7404ospace_frag=/dev/null
7405case "${enable_target_optspace}:${target}" in
7406 yes:*)
7407 ospace_frag="config/mt-ospace"
7408 ;;
7409 :d30v-*)
7410 ospace_frag="config/mt-d30v"
7411 ;;
7412 :m32r-* | :d10v-* | :fr30-*)
7413 ospace_frag="config/mt-ospace"
7414 ;;
7415 no:* | :*)
7416 ;;
7417 *)
7418 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7419 ;;
7420esac
7421
671aa708
NN
7422# Default to using --with-stabs for certain targets.
7423if test x${with_stabs} = x ; then
7424 case "${target}" in
89a95129 7425 mips*-*-irix[56]*)
671aa708
NN
7426 ;;
7427 mips*-*-* | alpha*-*-osf*)
7428 with_stabs=yes;
7429 extra_host_args="${extra_host_args} --with-stabs"
7430 ;;
7431 esac
7432fi
7433
7434# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
7435# them automatically.
7436case "${host}" in
1c710c3c 7437 hppa*64*-*-hpux11*)
671aa708
NN
7438 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
7439 ;;
7440esac
7441
671aa708
NN
7442# Some systems (e.g., one of the i386-aix systems the gas testers are
7443# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7444tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7445build_tooldir=${tooldir}
7446
671aa708
NN
7447# Create a .gdbinit file which runs the one in srcdir
7448# and tells GDB to look there for source files.
7449
7450if test -r ${srcdir}/.gdbinit ; then
7451 case ${srcdir} in
7452 .) ;;
7453 *) cat > ./.gdbinit <<EOF
7454# ${NO_EDIT}
7455dir ${srcdir}
7456dir .
7457source ${srcdir}/.gdbinit
7458EOF
7459 ;;
7460 esac
7461fi
7462
671aa708
NN
7463# Make sure that the compiler is able to generate an executable. If it
7464# can't, we are probably in trouble. We don't care whether we can run the
7465# executable--we might be using a cross compiler--we only care whether it
7466# can be created. At this point the main configure script has set CC.
7467we_are_ok=no
7468echo "int main () { return 0; }" > conftest.c
7469${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7470if test $? = 0 ; then
7471 if test -s conftest || test -s conftest.exe ; then
7472 we_are_ok=yes
7473 fi
1c710c3c 7474fi
671aa708
NN
7475case $we_are_ok in
7476 no)
7477 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7478 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7479 rm -f conftest*
7480 exit 1
7481 ;;
7482esac
7483rm -f conftest*
7484
7485# The Solaris /usr/ucb/cc compiler does not appear to work.
7486case "${host}" in
7487 sparc-sun-solaris2*)
7488 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7489 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7490 could_use=
7491 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7492 if test -d /opt/cygnus/bin ; then
7493 if test "$could_use" = "" ; then
7494 could_use="/opt/cygnus/bin"
7495 else
7496 could_use="$could_use or /opt/cygnus/bin"
7497 fi
7498 fi
7499 if test "$could_use" = "" ; then
7500 echo "Warning: compilation may fail because you're using"
7501 echo "/usr/ucb/cc. You should change your PATH or CC "
7502 echo "variable and rerun configure."
7503 else
7504 echo "Warning: compilation may fail because you're using"
7505 echo "/usr/ucb/cc, when you should use the C compiler from"
7506 echo "$could_use. You should change your"
7507 echo "PATH or CC variable and rerun configure."
7508 fi
7509 fi
7510 ;;
7511esac
7512
d89f0ad6 7513# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7514case "${host}" in
7515 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 7516 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7517 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7518 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7519esac
7520
d89f0ad6
AL
7521# On systems where the dynamic library environment variable is PATH,
7522# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7523# built executables to PATH.
7524if test "$RPATH_ENVVAR" = PATH; then
7525 GCC_SHLIB_SUBDIR=/shlib
7526else
7527 GCC_SHLIB_SUBDIR=
7528fi
7529
671aa708
NN
7530# Record target_configdirs and the configure arguments for target and
7531# build configuration in Makefile.
7532target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7533build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7534
ad1e5170
JR
7535# If we are building libgomp, bootstrap it.
7536if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7537 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7538fi
7539
671aa708
NN
7540# Determine whether gdb needs tk/tcl or not.
7541# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7542# and in that case we want gdb to be built without tk. Ugh!
7543# In fact I believe gdb is the *only* package directly dependent on tk,
7544# so we should be able to put the 'maybe's in unconditionally and
7545# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7546# 100% sure that that's safe though.
e914a571 7547
b4f96efe 7548gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7549case "$enable_gdbtk" in
7550 no)
7551 GDB_TK="" ;;
e914a571
AC
7552 yes)
7553 GDB_TK="${gdb_tk}" ;;
671aa708 7554 *)
e914a571
AC
7555 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7556 # distro. Eventually someone will fix this and move Insight, nee
7557 # gdbtk to a separate directory.
7558 if test -d ${srcdir}/gdb/gdbtk ; then
7559 GDB_TK="${gdb_tk}"
7560 else
7561 GDB_TK=""
7562 fi
7563 ;;
671aa708 7564esac
ef9db8d5
DJ
7565CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7566INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7567
60975492 7568# Strip out unwanted targets.
8b87bb96
NN
7569
7570# While at that, we remove Makefiles if we were started for recursive
7571# configuration, so that the top-level Makefile reconfigures them,
7572# like we used to do when configure itself was recursive.
8b87bb96 7573
3e54529c
RW
7574# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7575# but now we're fixing up the Makefile ourselves with the additional
7576# commands passed to AC_CONFIG_FILES. Use separate variables
7577# extrasub-{build,host,target} not because there is any reason to split
7578# the substitutions up that way, but only to remain below the limit of
7579# 99 commands in a script, for HP-UX sed.
7580# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7581
5213506e
RW
7582# Check whether --enable-bootstrap was given.
7583if test "${enable_bootstrap+set}" = set; then :
7584 enableval=$enable_bootstrap;
f516a7da 7585else
ce521a9c 7586 enable_bootstrap=default
5213506e
RW
7587fi
7588
f516a7da 7589
ce521a9c
PB
7590# Issue errors and warnings for invalid/strange bootstrap combinations.
7591case "$configdirs" in
7592 *gcc*) have_compiler=yes ;;
7593 *) have_compiler=no ;;
7594esac
7595
7596case "$have_compiler:$host:$target:$enable_bootstrap" in
7597 *:*:*:no) ;;
7598
1ca26cd2 7599 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
7600 # and we are in a native configuration.
7601 yes:$build:$build:default)
1ca26cd2 7602 enable_bootstrap=yes ;;
ce521a9c
PB
7603
7604 *:*:*:default)
7605 enable_bootstrap=no ;;
7606
7607 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 7608 yes:$build:$build:yes)
ce521a9c
PB
7609 ;;
7610
7611 # Other configurations, but we have a compiler. Assume the user knows
7612 # what he's doing.
2d309510 7613 yes:*:*:yes)
5213506e
RW
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7615$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
7616 ;;
7617
7618 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 7619 no:*:*:yes)
5213506e 7620 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
7621
7622 # Fail if wrong command line
7623 *)
5213506e 7624 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
7625 ;;
7626esac
7627
ca6d0d62
RW
7628case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7629 *,c++,*:yes:yes) ;;
7630 *:yes:yes)
7631 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7632 ;;
7633esac
7634
79cd2b23
RW
7635case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7636 yes:yes:*\ gold\ *:*,c++,*) ;;
7637 yes:yes:*\ gold\ *:*)
7638 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7639 ;;
7640esac
7641
ce521a9c 7642# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7643case $enable_bootstrap in
f516a7da 7644 yes)
e12c4094
AO
7645 bootstrap_suffix=bootstrap
7646 BUILD_CONFIG=bootstrap-debug
7647 ;;
f516a7da 7648 no)
e12c4094
AO
7649 bootstrap_suffix=no-bootstrap
7650 BUILD_CONFIG=
7651 ;;
f516a7da
PB
7652esac
7653
e12c4094
AO
7654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7655$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7656
7657
7658# Check whether --with-build-config was given.
7659if test "${with_build_config+set}" = set; then :
7660 withval=$with_build_config; case $with_build_config in
7661 yes) with_build_config= ;;
7662 no) with_build_config= BUILD_CONFIG= ;;
7663 esac
7664fi
7665
7666
e12c4094
AO
7667if test "x${with_build_config}" != x; then
7668 BUILD_CONFIG=$with_build_config
7669else
7670 case $BUILD_CONFIG in
7671 bootstrap-debug)
7672 if echo "int f (void) { return 0; }" > conftest.c &&
7673 ${CC} -c conftest.c &&
7674 mv conftest.o conftest.o.g0 &&
7675 ${CC} -c -g conftest.c &&
7676 mv conftest.o conftest.o.g &&
615c8ffa 7677 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7678 :
7679 else
7680 BUILD_CONFIG=
7681 fi
7682 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7683 ;;
7684 esac
7685fi
7686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7687$as_echo "$BUILD_CONFIG" >&6; }
7688
7689
3e54529c 7690extrasub_build=
23f6b2f9 7691for module in ${build_configdirs} ; do
5607edfd
PB
7692 if test -z "${no_recursion}" \
7693 && test -f ${build_subdir}/${module}/Makefile; then
7694 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7695 rm -f ${build_subdir}/${module}/Makefile
7696 fi
3e54529c 7697 extrasub_build="$extrasub_build
5607edfd
PB
7698/^@if build-$module\$/d
7699/^@endif build-$module\$/d
7700/^@if build-$module-$bootstrap_suffix\$/d
7701/^@endif build-$module-$bootstrap_suffix\$/d"
7702done
3e54529c 7703extrasub_host=
5607edfd 7704for module in ${configdirs} ; do
a6fbc1e2 7705 if test -z "${no_recursion}"; then
f063a9ed 7706 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7707 if test -f ${file}; then
7708 echo 1>&2 "*** removing ${file} to force reconfigure"
7709 rm -f ${file}
7710 fi
7711 done
5607edfd 7712 fi
3e54529c 7713 extrasub_host="$extrasub_host
5607edfd
PB
7714/^@if $module\$/d
7715/^@endif $module\$/d
7716/^@if $module-$bootstrap_suffix\$/d
7717/^@endif $module-$bootstrap_suffix\$/d"
7718done
3e54529c 7719extrasub_target=
5607edfd
PB
7720for module in ${target_configdirs} ; do
7721 if test -z "${no_recursion}" \
7722 && test -f ${target_subdir}/${module}/Makefile; then
7723 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7724 rm -f ${target_subdir}/${module}/Makefile
7725 fi
00020c16
ILT
7726
7727 # We only bootstrap target libraries listed in bootstrap_target_libs.
7728 case $bootstrap_target_libs in
7729 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7730 *) target_bootstrap_suffix=no-bootstrap ;;
7731 esac
7732
3e54529c 7733 extrasub_target="$extrasub_target
5607edfd
PB
7734/^@if target-$module\$/d
7735/^@endif target-$module\$/d
00020c16
ILT
7736/^@if target-$module-$target_bootstrap_suffix\$/d
7737/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7738done
7739
3e54529c
RW
7740# Do the final fixup along with target modules.
7741extrasub_target="$extrasub_target
60975492 7742/^@if /,/^@endif /d"
671aa708
NN
7743
7744# Create the serialization dependencies. This uses a temporary file.
7745
5213506e
RW
7746# Check whether --enable-serial-configure was given.
7747if test "${enable_serial_configure+set}" = set; then :
7748 enableval=$enable_serial_configure;
7749fi
ade82b16
AO
7750
7751
bf1d3e81
NN
7752case ${enable_serial_configure} in
7753 yes)
7754 enable_serial_build_configure=yes
7755 enable_serial_host_configure=yes
7756 enable_serial_target_configure=yes
7757 ;;
7758esac
7759
671aa708
NN
7760# These force 'configure's to be done one at a time, to avoid problems
7761# with contention over a shared config.cache.
7762rm -f serdep.tmp
ade82b16 7763echo '# serdep.tmp' > serdep.tmp
671aa708 7764olditem=
bf1d3e81 7765test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7766for item in ${build_configdirs} ; do
7767 case ${olditem} in
7768 "") ;;
ade82b16 7769 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7770 esac
7771 olditem=${item}
7772done
7773olditem=
bf1d3e81 7774test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7775for item in ${configdirs} ; do
7776 case ${olditem} in
7777 "") ;;
ade82b16 7778 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7779 esac
7780 olditem=${item}
7781done
7782olditem=
bf1d3e81 7783test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7784for item in ${target_configdirs} ; do
7785 case ${olditem} in
7786 "") ;;
ade82b16 7787 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7788 esac
7789 olditem=${item}
7790done
7791serialization_dependencies=serdep.tmp
7792
7793
ade82b16 7794# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7795# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7796# might not want to pass down to subconfigures. The exception being
7797# --cache-file=/dev/null, which is used to turn off the use of cache
7798# files altogether, and which should be passed on to subconfigures.
7799# Also strip program-prefix, program-suffix, and program-transform-name,
7800# so that we can pass down a consistent program-transform-name.
1c710c3c
DJ
7801baseargs=
7802keep_next=no
7803skip_next=no
7804eval "set -- $ac_configure_args"
44bfc3ac
DJ
7805for ac_arg
7806do
1c710c3c
DJ
7807 if test X"$skip_next" = X"yes"; then
7808 skip_next=no
7809 continue
7810 fi
7811 if test X"$keep_next" = X"yes"; then
7812 case $ac_arg in
7813 *\'*)
7814 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7815 esac
7816 baseargs="$baseargs '$ac_arg'"
7817 keep_next=no
7818 continue
7819 fi
7820
7821 # Handle separated arguments. Based on the logic generated by
7822 # autoconf 2.59.
7823 case $ac_arg in
7824 *=* | --config-cache | -C | -disable-* | --disable-* \
7825 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7826 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7827 | -with-* | --with-* | -without-* | --without-* | --x)
7828 separate_arg=no
7829 ;;
7830 -*)
7831 separate_arg=yes
7832 ;;
7833 *)
7834 separate_arg=no
7835 ;;
7836 esac
7837
7838 case "$ac_arg" in
f1a036e4
NC
7839 --cache-file=/dev/null | \
7840 -cache-file=/dev/null )
7841 # Handled here to avoid the test to skip args below.
7842 baseargs="$baseargs '$ac_arg'"
7843 # Assert: $separate_arg should always be no.
7844 keep_next=$separate_arg
7845 ;;
1c710c3c
DJ
7846 --no*)
7847 continue
7848 ;;
7849 --c* | \
7850 --sr* | \
7851 --ho* | \
7852 --bu* | \
7853 --t* | \
7854 --program-* | \
7855 -cache_file* | \
7856 -srcdir* | \
7857 -host* | \
7858 -build* | \
7859 -target* | \
7860 -program-prefix* | \
7861 -program-suffix* | \
7862 -program-transform-name* )
7863 skip_next=$separate_arg
7864 continue
7865 ;;
7866 -*)
7867 # An option. Add it.
7868 case $ac_arg in
7869 *\'*)
7870 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7871 esac
7872 baseargs="$baseargs '$ac_arg'"
7873 keep_next=$separate_arg
7874 ;;
7875 *)
7876 # Either a variable assignment, or a nonopt (triplet). Don't
7877 # pass it down; let the Makefile handle this.
7878 continue
7879 ;;
7880 esac
7881done
7882# Remove the initial space we just introduced and, as these will be
7883# expanded by make, quote '$'.
7884baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7885
43bb47c2
DJ
7886# Add in --program-transform-name, after --program-prefix and
7887# --program-suffix have been applied to it. Autoconf has already
7888# doubled dollar signs and backslashes in program_transform_name; we want
7889# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7890# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7891# Also, because we want to override the logic in subdir configure scripts to
7892# choose program_transform_name, replace any s,x,x, with s,y,y,.
7893sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7894${program_transform_name}
7895EOF_SED
7896gcc_transform_name=`cat conftestsed.out`
7897rm -f conftestsed.out
7898baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7899if test "$silent" = yes; then
7900 baseargs="$baseargs --silent"
7901fi
0115d4a3 7902baseargs="$baseargs --disable-option-checking"
43bb47c2 7903
671aa708
NN
7904# For the build-side libraries, we just need to pretend we're native,
7905# and not use the same cache file. Multilibs are neither needed nor
7906# desired.
e69bf64b 7907build_configargs="--cache-file=../config.cache ${baseargs}"
671aa708
NN
7908
7909# For host modules, accept cache file option, or specification as blank.
7910case "${cache_file}" in
7911"") # empty
7912 cache_file_option="" ;;
7913/* | [A-Za-z]:[\\/]* ) # absolute path
7914 cache_file_option="--cache-file=${cache_file}" ;;
7915*) # relative path
7916 cache_file_option="--cache-file=../${cache_file}" ;;
7917esac
7918
09438bde
NN
7919# Host dirs don't like to share a cache file either, horribly enough.
7920# This seems to be due to autoconf 2.5x stupidity.
e69bf64b 7921host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708
NN
7922
7923target_configargs=${baseargs}
7924
7925# Passing a --with-cross-host argument lets the target libraries know
7926# whether they are being built with a cross-compiler or being built
7927# native. However, it would be better to use other mechanisms to make the
7928# sorts of decisions they want to make on this basis. Please consider
7929# this option to be deprecated. FIXME.
7930if test x${is_cross_compiler} = xyes ; then
1c710c3c 7931 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7932fi
7933
dc683a3f
RW
7934# Default to --enable-multilib.
7935if test x${enable_multilib} = x ; then
671aa708 7936 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7937fi
671aa708
NN
7938
7939# Pass --with-newlib if appropriate. Note that target_configdirs has
7940# changed from the earlier setting of with_newlib.
7941if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7942 target_configargs="--with-newlib ${target_configargs}"
7943fi
7944
6b9eb62c
NN
7945# Different target subdirs use different values of certain variables
7946# (notably CXX). Worse, multilibs use *lots* of different values.
7947# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7948# it doesn't automatically accept command-line overrides of them.
7949# This means it's not safe for target subdirs to share a cache file,
7950# which is disgusting, but there you have it. Hopefully this can be
7951# fixed in future. It's still worthwhile to use a cache file for each
7952# directory. I think.
7953
bebcd931
MS
7954# Pass the appropriate --build, --host, --target and --cache-file arguments.
7955# We need to pass --target, as newer autoconf's requires consistency
7956# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7957target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7958
671aa708
NN
7959FLAGS_FOR_TARGET=
7960case " $target_configdirs " in
7961 *" newlib "*)
7962 case " $target_configargs " in
7963 *" --with-newlib "*)
7964 case "$target" in
5d571eaa
OS
7965 *-cygwin*)
7966 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'
7967 ;;
671aa708
NN
7968 esac
7969
7970 # If we're not building GCC, don't discard standard headers.
7971 if test -d ${srcdir}/gcc; then
7972 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7973
7974 if test "${build}" != "${host}"; then
7975 # On Canadian crosses, CC_FOR_TARGET will have already been set
7976 # by `configure', so we won't have an opportunity to add -Bgcc/
7977 # to it. This is right: we don't want to search that directory
7978 # for binaries, but we want the header files in there, so add
7979 # them explicitly.
215c351a 7980 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
671aa708
NN
7981
7982 # Someone might think of using the pre-installed headers on
7983 # Canadian crosses, in case the installed compiler is not fully
7984 # compatible with the compiler being built. In this case, it
7985 # would be better to flag an error than risking having
7986 # incompatible object files being constructed. We can't
7987 # guarantee that an error will be flagged, but let's hope the
7988 # compiler will do it, when presented with incompatible header
7989 # files.
7990 fi
7991 fi
7992
7993 case "${target}-${is_cross_compiler}" in
f2a0e225 7994 i[3456789]86-*-linux*-no)
671aa708
NN
7995 # Here host == target, so we don't need to build gcc,
7996 # so we don't want to discard standard headers.
7997 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7998 ;;
7999 *)
8000 # If we're building newlib, use its generic headers last, but search
8001 # for any libc-related directories first (so make it the last -B
8002 # switch).
8003 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
8004
8005 # If we're building libgloss, find the startup file, simulator library
8006 # and linker script.
8007 case " $target_configdirs " in
8008 *" libgloss "*)
8009 # Look for startup file, simulator library and maybe linker script.
8010 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
8011 # Look for libnosys.a in case the target needs it.
8012 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
8013 # Most targets have the linker script in the source directory.
8014 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
8015 ;;
8016 esac
671aa708
NN
8017 ;;
8018 esac
8019 ;;
8020 esac
8021 ;;
8022esac
5d571eaa 8023
b91f0a41 8024case "$target" in
5d571eaa
OS
8025 x86_64-*mingw* | *-w64-mingw*)
8026 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
8027 # however, use a symlink named 'mingw' in ${prefix} .
8028 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
8029 ;;
8030 *-mingw*)
8031 # MinGW can't be handled as Cygwin above since it does not use newlib.
8032 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'
8033 ;;
b91f0a41 8034esac
671aa708 8035
6691a79e
ME
8036# Allow the user to override the flags for
8037# our build compiler if desired.
f019adc1
MF
8038if test x"${build}" = x"${host}" ; then
8039 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
8040 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
8041 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
8042fi
6691a79e 8043
671aa708
NN
8044# On Canadian crosses, we'll be searching the right directories for
8045# the previously-installed cross compiler, so don't bother to add
8046# flags for directories within the install tree of the compiler
8047# being built; programs in there won't even run.
8048if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
8049 # Search for pre-installed headers if nothing else fits.
9124bc53 8050 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
8051fi
8052
8053if test "x${use_gnu_ld}" = x &&
8054 echo " ${configdirs} " | grep " ld " > /dev/null ; then
8055 # Arrange for us to find uninstalled linker scripts.
215c351a 8056 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
8057fi
8058
e88a2c09
DD
8059# Search for other target-specific linker scripts and such.
8060case "${target}" in
3e19841a
PB
8061 mep*)
8062 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
8063 ;;
e88a2c09
DD
8064esac
8065
671aa708 8066# Makefile fragments.
7b61653a
PE
8067for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
8068do
8069 eval fragval=\$$frag
8070 if test $fragval != /dev/null; then
8071 eval $frag=${srcdir}/$fragval
8072 fi
8073done
671aa708
NN
8074
8075
8076
8077
8078
8079# Miscellanea: directories, flags, etc.
8080
8081
8082
8083
8084
8085
8086
d89f0ad6 8087
23f6b2f9 8088# Build module lists & subconfigure args.
671aa708
NN
8089
8090
8091
2abefe3d
PB
8092# Host module lists & subconfigure args.
8093
8094
8095
aae29963 8096
2abefe3d
PB
8097# Target module lists & subconfigure args.
8098
8099
8100
8101# Build tools.
8102
8103
8104
0999159b
PB
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
2abefe3d
PB
8119# Generate default definitions for YACC, M4, LEX and other programs that run
8120# on the build machine. These are used if the Makefile can't locate these
8121# programs in objdir.
8122MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
8123
8124for ac_prog in 'bison -y' byacc yacc
8125do
1c710c3c 8126 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8127set dummy $ac_prog; ac_word=$2
5213506e
RW
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129$as_echo_n "checking for $ac_word... " >&6; }
8130if test "${ac_cv_prog_YACC+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
2abefe3d
PB
8132else
8133 if test -n "$YACC"; then
8134 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8135else
1c710c3c
DJ
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
5213506e
RW
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8143 ac_cv_prog_YACC="$ac_prog"
5213506e 8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8145 break 2
8146 fi
8147done
5213506e
RW
8148 done
8149IFS=$as_save_IFS
1c710c3c 8150
2abefe3d
PB
8151fi
8152fi
1c710c3c 8153YACC=$ac_cv_prog_YACC
2abefe3d 8154if test -n "$YACC"; then
5213506e
RW
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8156$as_echo "$YACC" >&6; }
2abefe3d 8157else
5213506e
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
2abefe3d
PB
8160fi
8161
5213506e 8162
1c710c3c 8163 test -n "$YACC" && break
2abefe3d
PB
8164done
8165test -n "$YACC" || YACC="$MISSING bison -y"
8166
8167case " $build_configdirs " in
8168 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
8169 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
8170esac
8171
8172for ac_prog in bison
8173do
1c710c3c 8174 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8175set dummy $ac_prog; ac_word=$2
5213506e
RW
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177$as_echo_n "checking for $ac_word... " >&6; }
8178if test "${ac_cv_prog_BISON+set}" = set; then :
8179 $as_echo_n "(cached) " >&6
2abefe3d
PB
8180else
8181 if test -n "$BISON"; then
8182 ac_cv_prog_BISON="$BISON" # Let the user override the test.
8183else
1c710c3c
DJ
8184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185for as_dir in $PATH
8186do
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
5213506e
RW
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8191 ac_cv_prog_BISON="$ac_prog"
5213506e 8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8193 break 2
8194 fi
8195done
5213506e
RW
8196 done
8197IFS=$as_save_IFS
1c710c3c 8198
2abefe3d
PB
8199fi
8200fi
1c710c3c 8201BISON=$ac_cv_prog_BISON
2abefe3d 8202if test -n "$BISON"; then
5213506e
RW
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
8204$as_echo "$BISON" >&6; }
2abefe3d 8205else
5213506e
RW
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207$as_echo "no" >&6; }
2abefe3d
PB
8208fi
8209
5213506e 8210
1c710c3c 8211 test -n "$BISON" && break
2abefe3d
PB
8212done
8213test -n "$BISON" || BISON="$MISSING bison"
8214
8215case " $build_configdirs " in
8216 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
8217esac
8218
8219for ac_prog in gm4 gnum4 m4
8220do
1c710c3c 8221 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8222set dummy $ac_prog; ac_word=$2
5213506e
RW
8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224$as_echo_n "checking for $ac_word... " >&6; }
8225if test "${ac_cv_prog_M4+set}" = set; then :
8226 $as_echo_n "(cached) " >&6
2abefe3d
PB
8227else
8228 if test -n "$M4"; then
8229 ac_cv_prog_M4="$M4" # Let the user override the test.
8230else
1c710c3c
DJ
8231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232for as_dir in $PATH
8233do
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
5213506e
RW
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8238 ac_cv_prog_M4="$ac_prog"
5213506e 8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8240 break 2
8241 fi
8242done
5213506e
RW
8243 done
8244IFS=$as_save_IFS
1c710c3c 8245
2abefe3d
PB
8246fi
8247fi
1c710c3c 8248M4=$ac_cv_prog_M4
2abefe3d 8249if test -n "$M4"; then
5213506e
RW
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
8251$as_echo "$M4" >&6; }
2abefe3d 8252else
5213506e
RW
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254$as_echo "no" >&6; }
2abefe3d
PB
8255fi
8256
5213506e 8257
1c710c3c 8258 test -n "$M4" && break
2abefe3d
PB
8259done
8260test -n "$M4" || M4="$MISSING m4"
8261
8262case " $build_configdirs " in
8263 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
8264esac
8265
8266for ac_prog in flex lex
8267do
1c710c3c 8268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8269set dummy $ac_prog; ac_word=$2
5213506e
RW
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if test "${ac_cv_prog_LEX+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
2abefe3d
PB
8274else
8275 if test -n "$LEX"; then
8276 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8277else
1c710c3c
DJ
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
5213506e
RW
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8285 ac_cv_prog_LEX="$ac_prog"
5213506e 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8287 break 2
8288 fi
8289done
5213506e
RW
8290 done
8291IFS=$as_save_IFS
1c710c3c 8292
2abefe3d
PB
8293fi
8294fi
1c710c3c 8295LEX=$ac_cv_prog_LEX
2abefe3d 8296if test -n "$LEX"; then
5213506e
RW
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
8298$as_echo "$LEX" >&6; }
2abefe3d 8299else
5213506e
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
2abefe3d
PB
8302fi
8303
5213506e 8304
1c710c3c 8305 test -n "$LEX" && break
2abefe3d
PB
8306done
8307test -n "$LEX" || LEX="$MISSING flex"
8308
8309case " $build_configdirs " in
8310 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8311 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
8312esac
8313
8314for ac_prog in flex
8315do
1c710c3c 8316 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8317set dummy $ac_prog; ac_word=$2
5213506e
RW
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319$as_echo_n "checking for $ac_word... " >&6; }
8320if test "${ac_cv_prog_FLEX+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
2abefe3d
PB
8322else
8323 if test -n "$FLEX"; then
8324 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
8325else
1c710c3c
DJ
8326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327for as_dir in $PATH
8328do
8329 IFS=$as_save_IFS
8330 test -z "$as_dir" && as_dir=.
5213506e
RW
8331 for ac_exec_ext in '' $ac_executable_extensions; do
8332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8333 ac_cv_prog_FLEX="$ac_prog"
5213506e 8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8335 break 2
8336 fi
8337done
5213506e
RW
8338 done
8339IFS=$as_save_IFS
1c710c3c 8340
2abefe3d
PB
8341fi
8342fi
1c710c3c 8343FLEX=$ac_cv_prog_FLEX
2abefe3d 8344if test -n "$FLEX"; then
5213506e
RW
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
8346$as_echo "$FLEX" >&6; }
2abefe3d 8347else
5213506e
RW
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
2abefe3d
PB
8350fi
8351
5213506e 8352
1c710c3c 8353 test -n "$FLEX" && break
2abefe3d
PB
8354done
8355test -n "$FLEX" || FLEX="$MISSING flex"
8356
8357case " $build_configdirs " in
8358 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
8359esac
8360
8361for ac_prog in makeinfo
8362do
1c710c3c 8363 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8364set dummy $ac_prog; ac_word=$2
5213506e
RW
8365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8366$as_echo_n "checking for $ac_word... " >&6; }
8367if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
8368 $as_echo_n "(cached) " >&6
2abefe3d
PB
8369else
8370 if test -n "$MAKEINFO"; then
8371 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
8372else
1c710c3c
DJ
8373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8374for as_dir in $PATH
8375do
8376 IFS=$as_save_IFS
8377 test -z "$as_dir" && as_dir=.
5213506e
RW
8378 for ac_exec_ext in '' $ac_executable_extensions; do
8379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8380 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8382 break 2
8383 fi
8384done
5213506e
RW
8385 done
8386IFS=$as_save_IFS
1c710c3c 8387
2abefe3d
PB
8388fi
8389fi
1c710c3c 8390MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 8391if test -n "$MAKEINFO"; then
5213506e
RW
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
8393$as_echo "$MAKEINFO" >&6; }
2abefe3d 8394else
5213506e
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
2abefe3d
PB
8397fi
8398
5213506e 8399
1c710c3c 8400 test -n "$MAKEINFO" && break
2abefe3d
PB
8401done
8402test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
8403
8404case " $build_configdirs " in
8405 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8406 *)
8407
d18ff35a 8408 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8409 # higher, else we use the "missing" dummy.
8410 if ${MAKEINFO} --version \
d18ff35a 8411 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8412 :
8413 else
8414 MAKEINFO="$MISSING makeinfo"
8415 fi
8416 ;;
8417
8418esac
671aa708 8419
2abefe3d 8420# FIXME: expect and dejagnu may become build tools?
671aa708 8421
2abefe3d
PB
8422for ac_prog in expect
8423do
1c710c3c 8424 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8425set dummy $ac_prog; ac_word=$2
5213506e
RW
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8427$as_echo_n "checking for $ac_word... " >&6; }
8428if test "${ac_cv_prog_EXPECT+set}" = set; then :
8429 $as_echo_n "(cached) " >&6
2abefe3d
PB
8430else
8431 if test -n "$EXPECT"; then
8432 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8433else
1c710c3c
DJ
8434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8435for as_dir in $PATH
8436do
8437 IFS=$as_save_IFS
8438 test -z "$as_dir" && as_dir=.
5213506e
RW
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8441 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8443 break 2
8444 fi
8445done
5213506e
RW
8446 done
8447IFS=$as_save_IFS
1c710c3c 8448
2abefe3d
PB
8449fi
8450fi
1c710c3c 8451EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8452if test -n "$EXPECT"; then
5213506e
RW
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8454$as_echo "$EXPECT" >&6; }
2abefe3d 8455else
5213506e
RW
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457$as_echo "no" >&6; }
2abefe3d 8458fi
671aa708 8459
5213506e 8460
1c710c3c 8461 test -n "$EXPECT" && break
2abefe3d
PB
8462done
8463test -n "$EXPECT" || EXPECT="expect"
671aa708 8464
2abefe3d
PB
8465case " $configdirs " in
8466 *" expect "*)
8467 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8468 ;;
8469esac
671aa708 8470
2abefe3d
PB
8471for ac_prog in runtest
8472do
1c710c3c 8473 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8474set dummy $ac_prog; ac_word=$2
5213506e
RW
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476$as_echo_n "checking for $ac_word... " >&6; }
8477if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
2abefe3d
PB
8479else
8480 if test -n "$RUNTEST"; then
8481 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8482else
1c710c3c
DJ
8483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
5213506e
RW
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8490 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8492 break 2
8493 fi
8494done
5213506e
RW
8495 done
8496IFS=$as_save_IFS
1c710c3c 8497
2abefe3d
PB
8498fi
8499fi
1c710c3c 8500RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8501if test -n "$RUNTEST"; then
5213506e
RW
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8503$as_echo "$RUNTEST" >&6; }
2abefe3d 8504else
5213506e
RW
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506$as_echo "no" >&6; }
2abefe3d 8507fi
671aa708 8508
5213506e 8509
1c710c3c 8510 test -n "$RUNTEST" && break
2abefe3d
PB
8511done
8512test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8513
2abefe3d
PB
8514case " $configdirs " in
8515 *" dejagnu "*)
c394e891 8516 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8517 ;;
8518esac
671aa708
NN
8519
8520
671aa708 8521# Host tools.
ca9f4b81
AO
8522ncn_tool_prefix=
8523test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8524ncn_target_tool_prefix=
8525test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8526
278a7a38
AO
8527
8528
8529if test -n "$AR"; then
8530 ac_cv_prog_AR=$AR
8531elif test -n "$ac_cv_prog_AR"; then
8532 AR=$ac_cv_prog_AR
8533fi
8534
8535if test -n "$ac_cv_prog_AR"; then
8536 for ncn_progname in ar; do
8537 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8538set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540$as_echo_n "checking for $ac_word... " >&6; }
8541if test "${ac_cv_prog_AR+set}" = set; then :
8542 $as_echo_n "(cached) " >&6
278a7a38
AO
8543else
8544 if test -n "$AR"; then
8545 ac_cv_prog_AR="$AR" # Let the user override the test.
8546else
8547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
5213506e
RW
8552 for ac_exec_ext in '' $ac_executable_extensions; do
8553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8554 ac_cv_prog_AR="${ncn_progname}"
5213506e 8555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8556 break 2
8557 fi
8558done
5213506e
RW
8559 done
8560IFS=$as_save_IFS
278a7a38
AO
8561
8562fi
8563fi
8564AR=$ac_cv_prog_AR
8565if test -n "$AR"; then
5213506e
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8567$as_echo "$AR" >&6; }
278a7a38 8568else
5213506e
RW
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570$as_echo "no" >&6; }
278a7a38
AO
8571fi
8572
5213506e 8573
278a7a38
AO
8574 done
8575fi
8576
8577for ncn_progname in ar; do
2693c0b0
PB
8578 if test -n "$ncn_tool_prefix"; then
8579 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8580set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582$as_echo_n "checking for $ac_word... " >&6; }
8583if test "${ac_cv_prog_AR+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8585else
8586 if test -n "$AR"; then
8587 ac_cv_prog_AR="$AR" # Let the user override the test.
8588else
1c710c3c
DJ
8589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590for as_dir in $PATH
8591do
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
5213506e
RW
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8596 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8598 break 2
8599 fi
8600done
5213506e
RW
8601 done
8602IFS=$as_save_IFS
1c710c3c 8603
ca9f4b81
AO
8604fi
8605fi
1c710c3c 8606AR=$ac_cv_prog_AR
ca9f4b81 8607if test -n "$AR"; then
5213506e
RW
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8609$as_echo "$AR" >&6; }
ca9f4b81 8610else
5213506e
RW
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612$as_echo "no" >&6; }
ca9f4b81
AO
8613fi
8614
5213506e 8615
2693c0b0
PB
8616 fi
8617 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8619set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if test "${ac_cv_prog_AR+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
ca9f4b81 8624else
2693c0b0 8625 if test -n "$AR"; then
af71363e
AS
8626 ac_cv_prog_AR="$AR" # Let the user override the test.
8627else
1c710c3c
DJ
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
5213506e
RW
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8635 ac_cv_prog_AR="${ncn_progname}"
5213506e 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8637 break 2
8638 fi
8639done
5213506e
RW
8640 done
8641IFS=$as_save_IFS
1c710c3c 8642
ca9f4b81
AO
8643fi
8644fi
1c710c3c 8645AR=$ac_cv_prog_AR
2693c0b0 8646if test -n "$AR"; then
5213506e
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8648$as_echo "$AR" >&6; }
ca9f4b81 8649else
5213506e
RW
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
ca9f4b81 8652fi
1c710c3c 8653
5213506e 8654
2693c0b0
PB
8655 fi
8656 test -n "$ac_cv_prog_AR" && break
8657done
8658
8659if test -z "$ac_cv_prog_AR" ; then
8660 set dummy ar
8661 if test $build = $host ; then
8662 AR="$2"
ca9f4b81 8663 else
2693c0b0 8664 AR="${ncn_tool_prefix}$2"
ca9f4b81 8665 fi
ca9f4b81
AO
8666fi
8667
278a7a38
AO
8668
8669
8670if test -n "$AS"; then
8671 ac_cv_prog_AS=$AS
8672elif test -n "$ac_cv_prog_AS"; then
8673 AS=$ac_cv_prog_AS
8674fi
8675
8676if test -n "$ac_cv_prog_AS"; then
8677 for ncn_progname in as; do
8678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8679set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681$as_echo_n "checking for $ac_word... " >&6; }
8682if test "${ac_cv_prog_AS+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
278a7a38
AO
8684else
8685 if test -n "$AS"; then
8686 ac_cv_prog_AS="$AS" # Let the user override the test.
8687else
8688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689for as_dir in $PATH
8690do
8691 IFS=$as_save_IFS
8692 test -z "$as_dir" && as_dir=.
5213506e
RW
8693 for ac_exec_ext in '' $ac_executable_extensions; do
8694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8695 ac_cv_prog_AS="${ncn_progname}"
5213506e 8696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8697 break 2
8698 fi
8699done
5213506e
RW
8700 done
8701IFS=$as_save_IFS
278a7a38
AO
8702
8703fi
8704fi
8705AS=$ac_cv_prog_AS
8706if test -n "$AS"; then
5213506e
RW
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8708$as_echo "$AS" >&6; }
278a7a38 8709else
5213506e
RW
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8711$as_echo "no" >&6; }
278a7a38
AO
8712fi
8713
5213506e 8714
278a7a38
AO
8715 done
8716fi
8717
8718for ncn_progname in as; do
2693c0b0
PB
8719 if test -n "$ncn_tool_prefix"; then
8720 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8721set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723$as_echo_n "checking for $ac_word... " >&6; }
8724if test "${ac_cv_prog_AS+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8726else
8727 if test -n "$AS"; then
8728 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8729else
1c710c3c
DJ
8730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
5213506e
RW
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8737 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8739 break 2
8740 fi
8741done
5213506e
RW
8742 done
8743IFS=$as_save_IFS
1c710c3c 8744
ca9f4b81
AO
8745fi
8746fi
1c710c3c 8747AS=$ac_cv_prog_AS
ca9f4b81 8748if test -n "$AS"; then
5213506e
RW
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8750$as_echo "$AS" >&6; }
ca9f4b81 8751else
5213506e
RW
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753$as_echo "no" >&6; }
ca9f4b81
AO
8754fi
8755
5213506e 8756
2693c0b0
PB
8757 fi
8758 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8760set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762$as_echo_n "checking for $ac_word... " >&6; }
8763if test "${ac_cv_prog_AS+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
ca9f4b81 8765else
2693c0b0
PB
8766 if test -n "$AS"; then
8767 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8768else
1c710c3c
DJ
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
5213506e
RW
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8776 ac_cv_prog_AS="${ncn_progname}"
5213506e 8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8778 break 2
8779 fi
8780done
5213506e
RW
8781 done
8782IFS=$as_save_IFS
1c710c3c 8783
ca9f4b81
AO
8784fi
8785fi
1c710c3c 8786AS=$ac_cv_prog_AS
2693c0b0 8787if test -n "$AS"; then
5213506e
RW
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8789$as_echo "$AS" >&6; }
ca9f4b81 8790else
5213506e
RW
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
ca9f4b81 8793fi
1c710c3c 8794
5213506e 8795
2693c0b0
PB
8796 fi
8797 test -n "$ac_cv_prog_AS" && break
8798done
8799
8800if test -z "$ac_cv_prog_AS" ; then
8801 set dummy as
8802 if test $build = $host ; then
8803 AS="$2"
ca9f4b81 8804 else
2693c0b0 8805 AS="${ncn_tool_prefix}$2"
ca9f4b81 8806 fi
ca9f4b81
AO
8807fi
8808
278a7a38
AO
8809
8810
8811if test -n "$DLLTOOL"; then
8812 ac_cv_prog_DLLTOOL=$DLLTOOL
8813elif test -n "$ac_cv_prog_DLLTOOL"; then
8814 DLLTOOL=$ac_cv_prog_DLLTOOL
8815fi
8816
8817if test -n "$ac_cv_prog_DLLTOOL"; then
8818 for ncn_progname in dlltool; do
8819 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8820set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822$as_echo_n "checking for $ac_word... " >&6; }
8823if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
278a7a38
AO
8825else
8826 if test -n "$DLLTOOL"; then
8827 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8828else
8829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830for as_dir in $PATH
8831do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
5213506e
RW
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8836 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8838 break 2
8839 fi
8840done
5213506e
RW
8841 done
8842IFS=$as_save_IFS
278a7a38
AO
8843
8844fi
8845fi
8846DLLTOOL=$ac_cv_prog_DLLTOOL
8847if test -n "$DLLTOOL"; then
5213506e
RW
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8849$as_echo "$DLLTOOL" >&6; }
278a7a38 8850else
5213506e
RW
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
278a7a38
AO
8853fi
8854
5213506e 8855
278a7a38
AO
8856 done
8857fi
8858
8859for ncn_progname in dlltool; do
2693c0b0
PB
8860 if test -n "$ncn_tool_prefix"; then
8861 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8862set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864$as_echo_n "checking for $ac_word... " >&6; }
8865if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8866 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8867else
8868 if test -n "$DLLTOOL"; then
8869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8870else
1c710c3c
DJ
8871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872for as_dir in $PATH
8873do
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
5213506e
RW
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8878 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8880 break 2
8881 fi
8882done
5213506e
RW
8883 done
8884IFS=$as_save_IFS
1c710c3c 8885
ca9f4b81
AO
8886fi
8887fi
1c710c3c 8888DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8889if test -n "$DLLTOOL"; then
5213506e
RW
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8891$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8892else
5213506e
RW
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894$as_echo "no" >&6; }
ca9f4b81
AO
8895fi
8896
5213506e 8897
2693c0b0
PB
8898 fi
8899 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8901set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
8904if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
ca9f4b81 8906else
2693c0b0
PB
8907 if test -n "$DLLTOOL"; then
8908 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8909else
1c710c3c
DJ
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
5213506e
RW
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8917 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8919 break 2
8920 fi
8921done
5213506e
RW
8922 done
8923IFS=$as_save_IFS
1c710c3c 8924
ca9f4b81
AO
8925fi
8926fi
1c710c3c 8927DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8928if test -n "$DLLTOOL"; then
5213506e
RW
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8930$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8931else
5213506e
RW
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
ca9f4b81 8934fi
1c710c3c 8935
5213506e 8936
2693c0b0
PB
8937 fi
8938 test -n "$ac_cv_prog_DLLTOOL" && break
8939done
8940
8941if test -z "$ac_cv_prog_DLLTOOL" ; then
8942 set dummy dlltool
8943 if test $build = $host ; then
8944 DLLTOOL="$2"
ca9f4b81 8945 else
2693c0b0 8946 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8947 fi
ca9f4b81
AO
8948fi
8949
278a7a38
AO
8950
8951
8952if test -n "$LD"; then
8953 ac_cv_prog_LD=$LD
8954elif test -n "$ac_cv_prog_LD"; then
8955 LD=$ac_cv_prog_LD
8956fi
8957
8958if test -n "$ac_cv_prog_LD"; then
8959 for ncn_progname in ld; do
8960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8961set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963$as_echo_n "checking for $ac_word... " >&6; }
8964if test "${ac_cv_prog_LD+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
278a7a38
AO
8966else
8967 if test -n "$LD"; then
8968 ac_cv_prog_LD="$LD" # Let the user override the test.
8969else
8970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8971for as_dir in $PATH
8972do
8973 IFS=$as_save_IFS
8974 test -z "$as_dir" && as_dir=.
5213506e
RW
8975 for ac_exec_ext in '' $ac_executable_extensions; do
8976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8977 ac_cv_prog_LD="${ncn_progname}"
5213506e 8978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8979 break 2
8980 fi
8981done
5213506e
RW
8982 done
8983IFS=$as_save_IFS
278a7a38
AO
8984
8985fi
8986fi
8987LD=$ac_cv_prog_LD
8988if test -n "$LD"; then
5213506e
RW
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8990$as_echo "$LD" >&6; }
278a7a38 8991else
5213506e
RW
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993$as_echo "no" >&6; }
278a7a38
AO
8994fi
8995
5213506e 8996
278a7a38
AO
8997 done
8998fi
8999
9000for ncn_progname in ld; do
2693c0b0
PB
9001 if test -n "$ncn_tool_prefix"; then
9002 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9003set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005$as_echo_n "checking for $ac_word... " >&6; }
9006if test "${ac_cv_prog_LD+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9008else
9009 if test -n "$LD"; then
9010 ac_cv_prog_LD="$LD" # Let the user override the test.
9011else
1c710c3c
DJ
9012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013for as_dir in $PATH
9014do
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
5213506e
RW
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9019 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9021 break 2
9022 fi
9023done
5213506e
RW
9024 done
9025IFS=$as_save_IFS
1c710c3c 9026
ca9f4b81
AO
9027fi
9028fi
1c710c3c 9029LD=$ac_cv_prog_LD
ca9f4b81 9030if test -n "$LD"; then
5213506e
RW
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9032$as_echo "$LD" >&6; }
ca9f4b81 9033else
5213506e
RW
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035$as_echo "no" >&6; }
ca9f4b81
AO
9036fi
9037
5213506e 9038
2693c0b0
PB
9039 fi
9040 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9042set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044$as_echo_n "checking for $ac_word... " >&6; }
9045if test "${ac_cv_prog_LD+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
ca9f4b81 9047else
2693c0b0
PB
9048 if test -n "$LD"; then
9049 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 9050else
1c710c3c
DJ
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
5213506e
RW
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9058 ac_cv_prog_LD="${ncn_progname}"
5213506e 9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9060 break 2
9061 fi
9062done
5213506e
RW
9063 done
9064IFS=$as_save_IFS
1c710c3c 9065
ca9f4b81
AO
9066fi
9067fi
1c710c3c 9068LD=$ac_cv_prog_LD
2693c0b0 9069if test -n "$LD"; then
5213506e
RW
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9071$as_echo "$LD" >&6; }
ca9f4b81 9072else
5213506e
RW
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
ca9f4b81 9075fi
1c710c3c 9076
5213506e 9077
2693c0b0
PB
9078 fi
9079 test -n "$ac_cv_prog_LD" && break
9080done
9081
9082if test -z "$ac_cv_prog_LD" ; then
9083 set dummy ld
9084 if test $build = $host ; then
9085 LD="$2"
ca9f4b81 9086 else
2693c0b0 9087 LD="${ncn_tool_prefix}$2"
ca9f4b81 9088 fi
ca9f4b81
AO
9089fi
9090
278a7a38
AO
9091
9092
9093if test -n "$LIPO"; then
9094 ac_cv_prog_LIPO=$LIPO
9095elif test -n "$ac_cv_prog_LIPO"; then
9096 LIPO=$ac_cv_prog_LIPO
9097fi
9098
9099if test -n "$ac_cv_prog_LIPO"; then
9100 for ncn_progname in lipo; do
9101 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9102set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104$as_echo_n "checking for $ac_word... " >&6; }
9105if test "${ac_cv_prog_LIPO+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
278a7a38
AO
9107else
9108 if test -n "$LIPO"; then
9109 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9110else
9111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9112for as_dir in $PATH
9113do
9114 IFS=$as_save_IFS
9115 test -z "$as_dir" && as_dir=.
5213506e
RW
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9118 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9120 break 2
9121 fi
9122done
5213506e
RW
9123 done
9124IFS=$as_save_IFS
278a7a38
AO
9125
9126fi
9127fi
9128LIPO=$ac_cv_prog_LIPO
9129if test -n "$LIPO"; then
5213506e
RW
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9131$as_echo "$LIPO" >&6; }
278a7a38 9132else
5213506e
RW
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134$as_echo "no" >&6; }
278a7a38
AO
9135fi
9136
5213506e 9137
278a7a38
AO
9138 done
9139fi
9140
9141for ncn_progname in lipo; do
2abefe3d
PB
9142 if test -n "$ncn_tool_prefix"; then
9143 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9144set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146$as_echo_n "checking for $ac_word... " >&6; }
9147if test "${ac_cv_prog_LIPO+set}" = set; then :
9148 $as_echo_n "(cached) " >&6
2abefe3d
PB
9149else
9150 if test -n "$LIPO"; then
9151 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9152else
1c710c3c
DJ
9153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154for as_dir in $PATH
9155do
9156 IFS=$as_save_IFS
9157 test -z "$as_dir" && as_dir=.
5213506e
RW
9158 for ac_exec_ext in '' $ac_executable_extensions; do
9159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9160 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 9161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9162 break 2
9163 fi
9164done
5213506e
RW
9165 done
9166IFS=$as_save_IFS
1c710c3c 9167
2abefe3d
PB
9168fi
9169fi
1c710c3c 9170LIPO=$ac_cv_prog_LIPO
2abefe3d 9171if test -n "$LIPO"; then
5213506e
RW
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9173$as_echo "$LIPO" >&6; }
2abefe3d 9174else
5213506e
RW
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9176$as_echo "no" >&6; }
2abefe3d
PB
9177fi
9178
5213506e 9179
2abefe3d
PB
9180 fi
9181 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
9182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9183set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185$as_echo_n "checking for $ac_word... " >&6; }
9186if test "${ac_cv_prog_LIPO+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
2abefe3d
PB
9188else
9189 if test -n "$LIPO"; then
9190 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9191else
1c710c3c
DJ
9192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9193for as_dir in $PATH
9194do
9195 IFS=$as_save_IFS
9196 test -z "$as_dir" && as_dir=.
5213506e
RW
9197 for ac_exec_ext in '' $ac_executable_extensions; do
9198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9199 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 9200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9201 break 2
9202 fi
9203done
5213506e
RW
9204 done
9205IFS=$as_save_IFS
1c710c3c 9206
2abefe3d
PB
9207fi
9208fi
1c710c3c 9209LIPO=$ac_cv_prog_LIPO
2abefe3d 9210if test -n "$LIPO"; then
5213506e
RW
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9212$as_echo "$LIPO" >&6; }
2abefe3d 9213else
5213506e
RW
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9215$as_echo "no" >&6; }
2abefe3d 9216fi
1c710c3c 9217
5213506e 9218
2abefe3d
PB
9219 fi
9220 test -n "$ac_cv_prog_LIPO" && break
9221done
9222
9223if test -z "$ac_cv_prog_LIPO" ; then
9224 set dummy lipo
9225 if test $build = $host ; then
9226 LIPO="$2"
9227 else
9228 LIPO="${ncn_tool_prefix}$2"
9229 fi
9230fi
9231
278a7a38
AO
9232
9233
9234if test -n "$NM"; then
9235 ac_cv_prog_NM=$NM
9236elif test -n "$ac_cv_prog_NM"; then
9237 NM=$ac_cv_prog_NM
9238fi
9239
9240if test -n "$ac_cv_prog_NM"; then
9241 for ncn_progname in nm; do
9242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9243set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9245$as_echo_n "checking for $ac_word... " >&6; }
9246if test "${ac_cv_prog_NM+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9248else
9249 if test -n "$NM"; then
9250 ac_cv_prog_NM="$NM" # Let the user override the test.
9251else
1c710c3c
DJ
9252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253for as_dir in $PATH
9254do
9255 IFS=$as_save_IFS
9256 test -z "$as_dir" && as_dir=.
5213506e
RW
9257 for ac_exec_ext in '' $ac_executable_extensions; do
9258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9259 ac_cv_prog_NM="${ncn_progname}"
5213506e 9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9261 break 2
9262 fi
9263done
5213506e
RW
9264 done
9265IFS=$as_save_IFS
1c710c3c 9266
ca9f4b81
AO
9267fi
9268fi
1c710c3c 9269NM=$ac_cv_prog_NM
ca9f4b81 9270if test -n "$NM"; then
5213506e
RW
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9272$as_echo "$NM" >&6; }
ca9f4b81 9273else
5213506e
RW
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9275$as_echo "no" >&6; }
ca9f4b81
AO
9276fi
9277
5213506e 9278
278a7a38
AO
9279 done
9280fi
9281
9282for ncn_progname in nm; do
9283 if test -n "$ncn_tool_prefix"; then
9284 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9285set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287$as_echo_n "checking for $ac_word... " >&6; }
9288if test "${ac_cv_prog_NM+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
ca9f4b81 9290else
2693c0b0
PB
9291 if test -n "$NM"; then
9292 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 9293else
1c710c3c
DJ
9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
5213506e
RW
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9301 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9303 break 2
9304 fi
9305done
5213506e
RW
9306 done
9307IFS=$as_save_IFS
1c710c3c 9308
ca9f4b81
AO
9309fi
9310fi
1c710c3c 9311NM=$ac_cv_prog_NM
2693c0b0 9312if test -n "$NM"; then
5213506e
RW
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9314$as_echo "$NM" >&6; }
ca9f4b81 9315else
5213506e
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317$as_echo "no" >&6; }
ca9f4b81 9318fi
1c710c3c 9319
5213506e 9320
2693c0b0 9321 fi
278a7a38
AO
9322 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
9323 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9324set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326$as_echo_n "checking for $ac_word... " >&6; }
9327if test "${ac_cv_prog_NM+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
278a7a38
AO
9329else
9330 if test -n "$NM"; then
9331 ac_cv_prog_NM="$NM" # Let the user override the test.
9332else
9333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9334for as_dir in $PATH
9335do
9336 IFS=$as_save_IFS
9337 test -z "$as_dir" && as_dir=.
5213506e
RW
9338 for ac_exec_ext in '' $ac_executable_extensions; do
9339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9340 ac_cv_prog_NM="${ncn_progname}"
5213506e 9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9342 break 2
9343 fi
9344done
5213506e
RW
9345 done
9346IFS=$as_save_IFS
278a7a38
AO
9347
9348fi
9349fi
9350NM=$ac_cv_prog_NM
9351if test -n "$NM"; then
5213506e
RW
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9353$as_echo "$NM" >&6; }
278a7a38 9354else
5213506e
RW
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9356$as_echo "no" >&6; }
278a7a38
AO
9357fi
9358
5213506e 9359
278a7a38
AO
9360 fi
9361 test -n "$ac_cv_prog_NM" && break
9362done
9363
9364if test -z "$ac_cv_prog_NM" ; then
9365 set dummy nm
9366 if test $build = $host ; then
9367 NM="$2"
9368 else
9369 NM="${ncn_tool_prefix}$2"
9370 fi
9371fi
9372
9373
9374
9375if test -n "$RANLIB"; then
9376 ac_cv_prog_RANLIB=$RANLIB
9377elif test -n "$ac_cv_prog_RANLIB"; then
9378 RANLIB=$ac_cv_prog_RANLIB
9379fi
9380
9381if test -n "$ac_cv_prog_RANLIB"; then
9382 for ncn_progname in ranlib; do
9383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9384set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386$as_echo_n "checking for $ac_word... " >&6; }
9387if test "${ac_cv_prog_RANLIB+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
278a7a38
AO
9389else
9390 if test -n "$RANLIB"; then
9391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9392else
9393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394for as_dir in $PATH
9395do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
5213506e
RW
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9400 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9402 break 2
9403 fi
9404done
5213506e
RW
9405 done
9406IFS=$as_save_IFS
278a7a38
AO
9407
9408fi
9409fi
9410RANLIB=$ac_cv_prog_RANLIB
9411if test -n "$RANLIB"; then
5213506e
RW
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9413$as_echo "$RANLIB" >&6; }
278a7a38 9414else
5213506e
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416$as_echo "no" >&6; }
278a7a38
AO
9417fi
9418
5213506e 9419
278a7a38
AO
9420 done
9421fi
ca9f4b81 9422
278a7a38 9423for ncn_progname in ranlib; do
2693c0b0
PB
9424 if test -n "$ncn_tool_prefix"; then
9425 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9426set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428$as_echo_n "checking for $ac_word... " >&6; }
9429if test "${ac_cv_prog_RANLIB+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9431else
9432 if test -n "$RANLIB"; then
9433 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9434else
1c710c3c
DJ
9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436for as_dir in $PATH
9437do
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
5213506e
RW
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9442 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9444 break 2
9445 fi
9446done
5213506e
RW
9447 done
9448IFS=$as_save_IFS
1c710c3c 9449
ca9f4b81
AO
9450fi
9451fi
1c710c3c 9452RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9453if test -n "$RANLIB"; then
5213506e
RW
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9455$as_echo "$RANLIB" >&6; }
ca9f4b81 9456else
5213506e
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
ca9f4b81
AO
9459fi
9460
5213506e 9461
2693c0b0
PB
9462 fi
9463 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9465set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9467$as_echo_n "checking for $ac_word... " >&6; }
9468if test "${ac_cv_prog_RANLIB+set}" = set; then :
9469 $as_echo_n "(cached) " >&6
ca9f4b81 9470else
2693c0b0
PB
9471 if test -n "$RANLIB"; then
9472 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9473else
1c710c3c
DJ
9474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9475for as_dir in $PATH
9476do
9477 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=.
5213506e
RW
9479 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9481 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9483 break 2
9484 fi
9485done
5213506e
RW
9486 done
9487IFS=$as_save_IFS
1c710c3c 9488
ca9f4b81
AO
9489fi
9490fi
1c710c3c 9491RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9492if test -n "$RANLIB"; then
5213506e
RW
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9494$as_echo "$RANLIB" >&6; }
ca9f4b81 9495else
5213506e
RW
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497$as_echo "no" >&6; }
ca9f4b81 9498fi
1c710c3c 9499
5213506e 9500
ca9f4b81 9501 fi
2693c0b0
PB
9502 test -n "$ac_cv_prog_RANLIB" && break
9503done
9504
9505if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9506 RANLIB="true"
ca9f4b81
AO
9507fi
9508
278a7a38
AO
9509
9510
9511if test -n "$STRIP"; then
9512 ac_cv_prog_STRIP=$STRIP
9513elif test -n "$ac_cv_prog_STRIP"; then
9514 STRIP=$ac_cv_prog_STRIP
9515fi
9516
9517if test -n "$ac_cv_prog_STRIP"; then
9518 for ncn_progname in strip; do
9519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9520set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9522$as_echo_n "checking for $ac_word... " >&6; }
9523if test "${ac_cv_prog_STRIP+set}" = set; then :
9524 $as_echo_n "(cached) " >&6
278a7a38
AO
9525else
9526 if test -n "$STRIP"; then
9527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9528else
9529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530for as_dir in $PATH
9531do
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
5213506e
RW
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9536 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9538 break 2
9539 fi
9540done
5213506e
RW
9541 done
9542IFS=$as_save_IFS
278a7a38
AO
9543
9544fi
9545fi
9546STRIP=$ac_cv_prog_STRIP
9547if test -n "$STRIP"; then
5213506e
RW
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9549$as_echo "$STRIP" >&6; }
278a7a38 9550else
5213506e
RW
9551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552$as_echo "no" >&6; }
278a7a38
AO
9553fi
9554
5213506e 9555
278a7a38
AO
9556 done
9557fi
9558
9559for ncn_progname in strip; do
2abefe3d
PB
9560 if test -n "$ncn_tool_prefix"; then
9561 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9562set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564$as_echo_n "checking for $ac_word... " >&6; }
9565if test "${ac_cv_prog_STRIP+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
2abefe3d
PB
9567else
9568 if test -n "$STRIP"; then
9569 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9570else
1c710c3c
DJ
9571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9572for as_dir in $PATH
9573do
9574 IFS=$as_save_IFS
9575 test -z "$as_dir" && as_dir=.
5213506e
RW
9576 for ac_exec_ext in '' $ac_executable_extensions; do
9577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9578 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9580 break 2
9581 fi
9582done
5213506e
RW
9583 done
9584IFS=$as_save_IFS
1c710c3c 9585
2abefe3d
PB
9586fi
9587fi
1c710c3c 9588STRIP=$ac_cv_prog_STRIP
2abefe3d 9589if test -n "$STRIP"; then
5213506e
RW
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9591$as_echo "$STRIP" >&6; }
2abefe3d 9592else
5213506e
RW
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594$as_echo "no" >&6; }
2abefe3d
PB
9595fi
9596
5213506e 9597
2abefe3d
PB
9598 fi
9599 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9601set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603$as_echo_n "checking for $ac_word... " >&6; }
9604if test "${ac_cv_prog_STRIP+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
2abefe3d
PB
9606else
9607 if test -n "$STRIP"; then
9608 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9609else
1c710c3c
DJ
9610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611for as_dir in $PATH
9612do
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
5213506e
RW
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9617 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9619 break 2
9620 fi
9621done
5213506e
RW
9622 done
9623IFS=$as_save_IFS
1c710c3c 9624
2abefe3d
PB
9625fi
9626fi
1c710c3c 9627STRIP=$ac_cv_prog_STRIP
2abefe3d 9628if test -n "$STRIP"; then
5213506e
RW
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9630$as_echo "$STRIP" >&6; }
2abefe3d 9631else
5213506e
RW
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633$as_echo "no" >&6; }
2abefe3d 9634fi
1c710c3c 9635
5213506e 9636
2abefe3d
PB
9637 fi
9638 test -n "$ac_cv_prog_STRIP" && break
9639done
9640
9641if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9642 STRIP="true"
2abefe3d
PB
9643fi
9644
278a7a38
AO
9645
9646
9647if test -n "$WINDRES"; then
9648 ac_cv_prog_WINDRES=$WINDRES
9649elif test -n "$ac_cv_prog_WINDRES"; then
9650 WINDRES=$ac_cv_prog_WINDRES
9651fi
9652
9653if test -n "$ac_cv_prog_WINDRES"; then
9654 for ncn_progname in windres; do
9655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9656set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658$as_echo_n "checking for $ac_word... " >&6; }
9659if test "${ac_cv_prog_WINDRES+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
278a7a38
AO
9661else
9662 if test -n "$WINDRES"; then
9663 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9664else
9665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9666for as_dir in $PATH
9667do
9668 IFS=$as_save_IFS
9669 test -z "$as_dir" && as_dir=.
5213506e
RW
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9672 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9674 break 2
9675 fi
9676done
5213506e
RW
9677 done
9678IFS=$as_save_IFS
278a7a38
AO
9679
9680fi
9681fi
9682WINDRES=$ac_cv_prog_WINDRES
9683if test -n "$WINDRES"; then
5213506e
RW
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9685$as_echo "$WINDRES" >&6; }
278a7a38 9686else
5213506e
RW
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688$as_echo "no" >&6; }
278a7a38
AO
9689fi
9690
5213506e 9691
278a7a38
AO
9692 done
9693fi
9694
9695for ncn_progname in windres; do
2693c0b0
PB
9696 if test -n "$ncn_tool_prefix"; then
9697 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9698set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9700$as_echo_n "checking for $ac_word... " >&6; }
9701if test "${ac_cv_prog_WINDRES+set}" = set; then :
9702 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9703else
9704 if test -n "$WINDRES"; then
9705 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9706else
1c710c3c
DJ
9707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9708for as_dir in $PATH
9709do
9710 IFS=$as_save_IFS
9711 test -z "$as_dir" && as_dir=.
5213506e
RW
9712 for ac_exec_ext in '' $ac_executable_extensions; do
9713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9714 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9716 break 2
9717 fi
9718done
5213506e
RW
9719 done
9720IFS=$as_save_IFS
1c710c3c 9721
ca9f4b81
AO
9722fi
9723fi
1c710c3c 9724WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9725if test -n "$WINDRES"; then
5213506e
RW
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9727$as_echo "$WINDRES" >&6; }
ca9f4b81 9728else
5213506e
RW
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9730$as_echo "no" >&6; }
ca9f4b81
AO
9731fi
9732
5213506e 9733
2693c0b0
PB
9734 fi
9735 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9737set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9739$as_echo_n "checking for $ac_word... " >&6; }
9740if test "${ac_cv_prog_WINDRES+set}" = set; then :
9741 $as_echo_n "(cached) " >&6
ca9f4b81 9742else
2693c0b0
PB
9743 if test -n "$WINDRES"; then
9744 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9745else
1c710c3c
DJ
9746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747for as_dir in $PATH
9748do
9749 IFS=$as_save_IFS
9750 test -z "$as_dir" && as_dir=.
5213506e
RW
9751 for ac_exec_ext in '' $ac_executable_extensions; do
9752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9753 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9755 break 2
9756 fi
9757done
5213506e
RW
9758 done
9759IFS=$as_save_IFS
1c710c3c 9760
ca9f4b81
AO
9761fi
9762fi
1c710c3c 9763WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9764if test -n "$WINDRES"; then
5213506e
RW
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9766$as_echo "$WINDRES" >&6; }
ca9f4b81 9767else
5213506e
RW
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9769$as_echo "no" >&6; }
ca9f4b81 9770fi
1c710c3c 9771
5213506e 9772
2693c0b0
PB
9773 fi
9774 test -n "$ac_cv_prog_WINDRES" && break
9775done
9776
9777if test -z "$ac_cv_prog_WINDRES" ; then
9778 set dummy windres
9779 if test $build = $host ; then
9780 WINDRES="$2"
ca9f4b81 9781 else
2693c0b0 9782 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9783 fi
ca9f4b81
AO
9784fi
9785
278a7a38
AO
9786
9787
901119ae
KT
9788if test -n "$WINDMC"; then
9789 ac_cv_prog_WINDMC=$WINDMC
9790elif test -n "$ac_cv_prog_WINDMC"; then
9791 WINDMC=$ac_cv_prog_WINDMC
9792fi
9793
9794if test -n "$ac_cv_prog_WINDMC"; then
9795 for ncn_progname in windmc; do
9796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9797set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9799$as_echo_n "checking for $ac_word... " >&6; }
9800if test "${ac_cv_prog_WINDMC+set}" = set; then :
9801 $as_echo_n "(cached) " >&6
901119ae
KT
9802else
9803 if test -n "$WINDMC"; then
9804 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9805else
9806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9807for as_dir in $PATH
9808do
9809 IFS=$as_save_IFS
9810 test -z "$as_dir" && as_dir=.
5213506e
RW
9811 for ac_exec_ext in '' $ac_executable_extensions; do
9812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9813 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9815 break 2
9816 fi
9817done
5213506e
RW
9818 done
9819IFS=$as_save_IFS
901119ae
KT
9820
9821fi
9822fi
9823WINDMC=$ac_cv_prog_WINDMC
9824if test -n "$WINDMC"; then
5213506e
RW
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9826$as_echo "$WINDMC" >&6; }
901119ae 9827else
5213506e
RW
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9829$as_echo "no" >&6; }
901119ae
KT
9830fi
9831
5213506e 9832
901119ae
KT
9833 done
9834fi
9835
9836for ncn_progname in windmc; do
9837 if test -n "$ncn_tool_prefix"; then
9838 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9839set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9841$as_echo_n "checking for $ac_word... " >&6; }
9842if test "${ac_cv_prog_WINDMC+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
901119ae
KT
9844else
9845 if test -n "$WINDMC"; then
9846 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9847else
9848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9849for as_dir in $PATH
9850do
9851 IFS=$as_save_IFS
9852 test -z "$as_dir" && as_dir=.
5213506e
RW
9853 for ac_exec_ext in '' $ac_executable_extensions; do
9854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9855 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9857 break 2
9858 fi
9859done
5213506e
RW
9860 done
9861IFS=$as_save_IFS
901119ae
KT
9862
9863fi
9864fi
9865WINDMC=$ac_cv_prog_WINDMC
9866if test -n "$WINDMC"; then
5213506e
RW
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9868$as_echo "$WINDMC" >&6; }
901119ae 9869else
5213506e
RW
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9871$as_echo "no" >&6; }
901119ae
KT
9872fi
9873
5213506e 9874
901119ae
KT
9875 fi
9876 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880$as_echo_n "checking for $ac_word... " >&6; }
9881if test "${ac_cv_prog_WINDMC+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
901119ae
KT
9883else
9884 if test -n "$WINDMC"; then
9885 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9886else
9887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
5213506e
RW
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9894 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9896 break 2
9897 fi
9898done
5213506e
RW
9899 done
9900IFS=$as_save_IFS
901119ae
KT
9901
9902fi
9903fi
9904WINDMC=$ac_cv_prog_WINDMC
9905if test -n "$WINDMC"; then
5213506e
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9907$as_echo "$WINDMC" >&6; }
901119ae 9908else
5213506e
RW
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
901119ae
KT
9911fi
9912
5213506e 9913
901119ae
KT
9914 fi
9915 test -n "$ac_cv_prog_WINDMC" && break
9916done
9917
9918if test -z "$ac_cv_prog_WINDMC" ; then
9919 set dummy windmc
9920 if test $build = $host ; then
9921 WINDMC="$2"
9922 else
9923 WINDMC="${ncn_tool_prefix}$2"
9924 fi
9925fi
9926
9927
9928
278a7a38
AO
9929if test -n "$OBJCOPY"; then
9930 ac_cv_prog_OBJCOPY=$OBJCOPY
9931elif test -n "$ac_cv_prog_OBJCOPY"; then
9932 OBJCOPY=$ac_cv_prog_OBJCOPY
9933fi
9934
9935if test -n "$ac_cv_prog_OBJCOPY"; then
9936 for ncn_progname in objcopy; do
9937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9938set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9940$as_echo_n "checking for $ac_word... " >&6; }
9941if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
278a7a38
AO
9943else
9944 if test -n "$OBJCOPY"; then
9945 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9946else
9947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
5213506e
RW
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9954 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9956 break 2
9957 fi
9958done
5213506e
RW
9959 done
9960IFS=$as_save_IFS
278a7a38
AO
9961
9962fi
9963fi
9964OBJCOPY=$ac_cv_prog_OBJCOPY
9965if test -n "$OBJCOPY"; then
5213506e
RW
9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9967$as_echo "$OBJCOPY" >&6; }
278a7a38 9968else
5213506e
RW
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
278a7a38
AO
9971fi
9972
5213506e 9973
278a7a38
AO
9974 done
9975fi
9976
9977for ncn_progname in objcopy; do
2693c0b0
PB
9978 if test -n "$ncn_tool_prefix"; then
9979 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9980set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9982$as_echo_n "checking for $ac_word... " >&6; }
9983if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9984 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9985else
9986 if test -n "$OBJCOPY"; then
9987 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9988else
1c710c3c
DJ
9989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990for as_dir in $PATH
9991do
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
5213506e
RW
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9996 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9998 break 2
9999 fi
10000done
5213506e
RW
10001 done
10002IFS=$as_save_IFS
1c710c3c 10003
ca9f4b81
AO
10004fi
10005fi
1c710c3c 10006OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 10007if test -n "$OBJCOPY"; then
5213506e
RW
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10009$as_echo "$OBJCOPY" >&6; }
ca9f4b81 10010else
5213506e
RW
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012$as_echo "no" >&6; }
ca9f4b81
AO
10013fi
10014
5213506e 10015
2693c0b0
PB
10016 fi
10017 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
10018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10019set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021$as_echo_n "checking for $ac_word... " >&6; }
10022if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
10023 $as_echo_n "(cached) " >&6
ca9f4b81 10024else
2693c0b0
PB
10025 if test -n "$OBJCOPY"; then
10026 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 10027else
1c710c3c
DJ
10028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029for as_dir in $PATH
10030do
10031 IFS=$as_save_IFS
10032 test -z "$as_dir" && as_dir=.
5213506e
RW
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10035 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10037 break 2
10038 fi
10039done
5213506e
RW
10040 done
10041IFS=$as_save_IFS
1c710c3c 10042
ca9f4b81
AO
10043fi
10044fi
1c710c3c 10045OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 10046if test -n "$OBJCOPY"; then
5213506e
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
10048$as_echo "$OBJCOPY" >&6; }
ca9f4b81 10049else
5213506e
RW
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
ca9f4b81 10052fi
1c710c3c 10053
5213506e 10054
2693c0b0
PB
10055 fi
10056 test -n "$ac_cv_prog_OBJCOPY" && break
10057done
10058
10059if test -z "$ac_cv_prog_OBJCOPY" ; then
10060 set dummy objcopy
10061 if test $build = $host ; then
10062 OBJCOPY="$2"
ca9f4b81 10063 else
2693c0b0 10064 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 10065 fi
ca9f4b81
AO
10066fi
10067
278a7a38
AO
10068
10069
10070if test -n "$OBJDUMP"; then
10071 ac_cv_prog_OBJDUMP=$OBJDUMP
10072elif test -n "$ac_cv_prog_OBJDUMP"; then
10073 OBJDUMP=$ac_cv_prog_OBJDUMP
10074fi
10075
10076if test -n "$ac_cv_prog_OBJDUMP"; then
10077 for ncn_progname in objdump; do
10078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10079set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081$as_echo_n "checking for $ac_word... " >&6; }
10082if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
278a7a38
AO
10084else
10085 if test -n "$OBJDUMP"; then
10086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10087else
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
5213506e
RW
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10095 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10097 break 2
10098 fi
10099done
5213506e
RW
10100 done
10101IFS=$as_save_IFS
278a7a38
AO
10102
10103fi
10104fi
10105OBJDUMP=$ac_cv_prog_OBJDUMP
10106if test -n "$OBJDUMP"; then
5213506e
RW
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10108$as_echo "$OBJDUMP" >&6; }
278a7a38 10109else
5213506e
RW
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111$as_echo "no" >&6; }
278a7a38
AO
10112fi
10113
5213506e 10114
278a7a38
AO
10115 done
10116fi
10117
10118for ncn_progname in objdump; do
2693c0b0
PB
10119 if test -n "$ncn_tool_prefix"; then
10120 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10121set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10123$as_echo_n "checking for $ac_word... " >&6; }
10124if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10125 $as_echo_n "(cached) " >&6
ca9f4b81
AO
10126else
10127 if test -n "$OBJDUMP"; then
10128 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10129else
1c710c3c
DJ
10130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131for as_dir in $PATH
10132do
10133 IFS=$as_save_IFS
10134 test -z "$as_dir" && as_dir=.
5213506e
RW
10135 for ac_exec_ext in '' $ac_executable_extensions; do
10136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10137 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 10138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10139 break 2
10140 fi
10141done
5213506e
RW
10142 done
10143IFS=$as_save_IFS
1c710c3c 10144
ca9f4b81
AO
10145fi
10146fi
1c710c3c 10147OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 10148if test -n "$OBJDUMP"; then
5213506e
RW
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10150$as_echo "$OBJDUMP" >&6; }
ca9f4b81 10151else
5213506e
RW
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10153$as_echo "no" >&6; }
ca9f4b81
AO
10154fi
10155
5213506e 10156
2693c0b0
PB
10157 fi
10158 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
10159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10160set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10162$as_echo_n "checking for $ac_word... " >&6; }
10163if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10164 $as_echo_n "(cached) " >&6
ca9f4b81 10165else
2693c0b0
PB
10166 if test -n "$OBJDUMP"; then
10167 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 10168else
1c710c3c
DJ
10169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10170for as_dir in $PATH
10171do
10172 IFS=$as_save_IFS
10173 test -z "$as_dir" && as_dir=.
5213506e
RW
10174 for ac_exec_ext in '' $ac_executable_extensions; do
10175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10176 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 10177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10178 break 2
10179 fi
10180done
5213506e
RW
10181 done
10182IFS=$as_save_IFS
1c710c3c 10183
ca9f4b81
AO
10184fi
10185fi
1c710c3c 10186OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 10187if test -n "$OBJDUMP"; then
5213506e
RW
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10189$as_echo "$OBJDUMP" >&6; }
ca9f4b81 10190else
5213506e
RW
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10192$as_echo "no" >&6; }
ca9f4b81 10193fi
1c710c3c 10194
5213506e 10195
2693c0b0
PB
10196 fi
10197 test -n "$ac_cv_prog_OBJDUMP" && break
10198done
10199
10200if test -z "$ac_cv_prog_OBJDUMP" ; then
10201 set dummy objdump
10202 if test $build = $host ; then
10203 OBJDUMP="$2"
ca9f4b81 10204 else
2693c0b0 10205 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 10206 fi
ca9f4b81
AO
10207fi
10208
671aa708
NN
10209
10210
10211
10212
10213
2abefe3d 10214# Target tools.
1c710c3c 10215
5213506e
RW
10216# Check whether --with-build-time-tools was given.
10217if test "${with_build_time_tools+set}" = set; then :
10218 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
10219 x/*) ;;
10220 *)
10221 with_build_time_tools=
5213506e
RW
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
10223$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
10224 ;;
10225 esac
ca9f4b81 10226else
e8b05380 10227 with_build_time_tools=
5213506e
RW
10228fi
10229
ca9f4b81 10230
278a7a38
AO
10231
10232
10233if test -n "$CC_FOR_TARGET"; then
10234 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
10235elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10236 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10237fi
10238
10239if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
10240 for ncn_progname in cc gcc; do
10241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10242set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244$as_echo_n "checking for $ac_word... " >&6; }
10245if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
278a7a38
AO
10247else
10248 if test -n "$CC_FOR_TARGET"; then
10249 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10250else
10251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252for as_dir in $PATH
10253do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
5213506e
RW
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10258 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10260 break 2
10261 fi
10262done
5213506e
RW
10263 done
10264IFS=$as_save_IFS
278a7a38
AO
10265
10266fi
10267fi
10268CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10269if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10271$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10272else
5213506e
RW
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274$as_echo "no" >&6; }
278a7a38
AO
10275fi
10276
5213506e 10277
278a7a38
AO
10278 done
10279fi
10280
10281if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10282 for ncn_progname in cc gcc; do
5213506e
RW
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10284$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10285 if test -x $with_build_time_tools/${ncn_progname}; then
10286 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10288$as_echo "yes" >&6; }
72a7ab82 10289 break
e8b05380 10290 else
5213506e
RW
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10292$as_echo "no" >&6; }
72a7ab82
AP
10293 fi
10294 done
4de997d1
PB
10295fi
10296
e8b05380
PB
10297if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10298 for ncn_progname in cc gcc; do
10299 if test -n "$ncn_target_tool_prefix"; then
10300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10301set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303$as_echo_n "checking for $ac_word... " >&6; }
10304if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
4de997d1
PB
10306else
10307 if test -n "$CC_FOR_TARGET"; then
10308 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10309else
1c710c3c
DJ
10310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10311for as_dir in $PATH
10312do
10313 IFS=$as_save_IFS
10314 test -z "$as_dir" && as_dir=.
5213506e
RW
10315 for ac_exec_ext in '' $ac_executable_extensions; do
10316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10317 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10319 break 2
10320 fi
10321done
5213506e
RW
10322 done
10323IFS=$as_save_IFS
1c710c3c 10324
4de997d1
PB
10325fi
10326fi
1c710c3c 10327CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10328if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10330$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10331else
5213506e
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333$as_echo "no" >&6; }
4de997d1
PB
10334fi
10335
5213506e 10336
e8b05380
PB
10337 fi
10338 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10340set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342$as_echo_n "checking for $ac_word... " >&6; }
10343if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
4de997d1 10345else
2693c0b0
PB
10346 if test -n "$CC_FOR_TARGET"; then
10347 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10348else
1c710c3c
DJ
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
5213506e
RW
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10356 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10358 break 2
10359 fi
10360done
5213506e
RW
10361 done
10362IFS=$as_save_IFS
1c710c3c 10363
4de997d1
PB
10364fi
10365fi
1c710c3c 10366CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10367if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10369$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10370else
5213506e
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372$as_echo "no" >&6; }
4de997d1 10373fi
1c710c3c 10374
5213506e 10375
e8b05380
PB
10376 fi
10377 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10378 done
10379fi
1c710c3c 10380
2693c0b0
PB
10381if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10382 set dummy cc gcc
10383 if test $build = $target ; then
10384 CC_FOR_TARGET="$2"
4de997d1 10385 else
2693c0b0 10386 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10387 fi
1c00b503
PB
10388else
10389 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10390fi
10391
278a7a38
AO
10392
10393
10394if test -n "$CXX_FOR_TARGET"; then
10395 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10396elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10397 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10398fi
10399
10400if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10401 for ncn_progname in c++ g++ cxx gxx; do
10402 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10403set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10405$as_echo_n "checking for $ac_word... " >&6; }
10406if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10407 $as_echo_n "(cached) " >&6
278a7a38
AO
10408else
10409 if test -n "$CXX_FOR_TARGET"; then
10410 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10411else
10412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
5213506e
RW
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10419 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10421 break 2
10422 fi
10423done
5213506e
RW
10424 done
10425IFS=$as_save_IFS
278a7a38
AO
10426
10427fi
10428fi
10429CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10430if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10432$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10433else
5213506e
RW
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435$as_echo "no" >&6; }
278a7a38
AO
10436fi
10437
5213506e 10438
278a7a38
AO
10439 done
10440fi
10441
10442if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10443 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10445$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10446 if test -x $with_build_time_tools/${ncn_progname}; then
10447 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10449$as_echo "yes" >&6; }
e8b05380
PB
10450 break
10451 else
5213506e
RW
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10453$as_echo "no" >&6; }
e8b05380
PB
10454 fi
10455 done
10456fi
10457
10458if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10459 for ncn_progname in c++ g++ cxx gxx; do
10460 if test -n "$ncn_target_tool_prefix"; then
10461 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10462set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464$as_echo_n "checking for $ac_word... " >&6; }
10465if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10466 $as_echo_n "(cached) " >&6
4de997d1
PB
10467else
10468 if test -n "$CXX_FOR_TARGET"; then
10469 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10470else
1c710c3c
DJ
10471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10472for as_dir in $PATH
10473do
10474 IFS=$as_save_IFS
10475 test -z "$as_dir" && as_dir=.
5213506e
RW
10476 for ac_exec_ext in '' $ac_executable_extensions; do
10477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10478 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10480 break 2
10481 fi
10482done
5213506e
RW
10483 done
10484IFS=$as_save_IFS
1c710c3c 10485
4de997d1
PB
10486fi
10487fi
1c710c3c 10488CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10489if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10491$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10492else
5213506e
RW
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10494$as_echo "no" >&6; }
4de997d1
PB
10495fi
10496
5213506e 10497
e8b05380
PB
10498 fi
10499 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10501set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503$as_echo_n "checking for $ac_word... " >&6; }
10504if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
4de997d1 10506else
2693c0b0
PB
10507 if test -n "$CXX_FOR_TARGET"; then
10508 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10509else
1c710c3c
DJ
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
5213506e
RW
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10517 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10519 break 2
10520 fi
10521done
5213506e
RW
10522 done
10523IFS=$as_save_IFS
1c710c3c 10524
4de997d1
PB
10525fi
10526fi
1c710c3c 10527CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10528if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10530$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10531else
5213506e
RW
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533$as_echo "no" >&6; }
4de997d1 10534fi
1c710c3c 10535
5213506e 10536
e8b05380
PB
10537 fi
10538 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10539 done
10540fi
1c710c3c 10541
2693c0b0
PB
10542if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10543 set dummy c++ g++ cxx gxx
10544 if test $build = $target ; then
10545 CXX_FOR_TARGET="$2"
4de997d1 10546 else
2693c0b0 10547 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10548 fi
1c00b503
PB
10549else
10550 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10551fi
10552
278a7a38
AO
10553
10554
10555if test -n "$GCC_FOR_TARGET"; then
10556 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10557elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10558 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10559fi
10560
10561if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10562 for ncn_progname in gcc; do
10563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10564set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566$as_echo_n "checking for $ac_word... " >&6; }
10567if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10568 $as_echo_n "(cached) " >&6
278a7a38
AO
10569else
10570 if test -n "$GCC_FOR_TARGET"; then
10571 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10572else
10573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574for as_dir in $PATH
10575do
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
5213506e
RW
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10580 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10582 break 2
10583 fi
10584done
5213506e
RW
10585 done
10586IFS=$as_save_IFS
278a7a38
AO
10587
10588fi
10589fi
10590GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10591if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10593$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10594else
5213506e
RW
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10596$as_echo "no" >&6; }
278a7a38
AO
10597fi
10598
5213506e 10599
278a7a38
AO
10600 done
10601fi
10602
10603if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10604 for ncn_progname in gcc; do
5213506e
RW
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10606$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10607 if test -x $with_build_time_tools/${ncn_progname}; then
10608 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10610$as_echo "yes" >&6; }
e8b05380
PB
10611 break
10612 else
5213506e
RW
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614$as_echo "no" >&6; }
e8b05380
PB
10615 fi
10616 done
10617fi
10618
10619if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10620 for ncn_progname in gcc; do
10621 if test -n "$ncn_target_tool_prefix"; then
10622 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10623set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625$as_echo_n "checking for $ac_word... " >&6; }
10626if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
ca9f4b81 10628else
e8b05380
PB
10629 if test -n "$GCC_FOR_TARGET"; then
10630 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10631else
1c710c3c
DJ
10632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633for as_dir in $PATH
10634do
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
5213506e
RW
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10639 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10641 break 2
10642 fi
10643done
5213506e
RW
10644 done
10645IFS=$as_save_IFS
1c710c3c 10646
ca9f4b81
AO
10647fi
10648fi
1c710c3c 10649GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10650if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10652$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10653else
5213506e
RW
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655$as_echo "no" >&6; }
ca9f4b81
AO
10656fi
10657
5213506e 10658
e8b05380
PB
10659 fi
10660 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10662set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664$as_echo_n "checking for $ac_word... " >&6; }
10665if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10666 $as_echo_n "(cached) " >&6
ca9f4b81 10667else
e8b05380
PB
10668 if test -n "$GCC_FOR_TARGET"; then
10669 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10670else
1c710c3c
DJ
10671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672for as_dir in $PATH
10673do
10674 IFS=$as_save_IFS
10675 test -z "$as_dir" && as_dir=.
5213506e
RW
10676 for ac_exec_ext in '' $ac_executable_extensions; do
10677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10678 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10680 break 2
10681 fi
10682done
5213506e
RW
10683 done
10684IFS=$as_save_IFS
1c710c3c 10685
ca9f4b81
AO
10686fi
10687fi
1c710c3c 10688GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10689if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10691$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10692else
5213506e
RW
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694$as_echo "no" >&6; }
ca9f4b81 10695fi
1c710c3c 10696
5213506e 10697
e8b05380
PB
10698 fi
10699 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10700 done
10701fi
1c710c3c 10702
e8b05380
PB
10703if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10704 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10705else
10706 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10707fi
10708
278a7a38
AO
10709
10710
10711if test -n "$GCJ_FOR_TARGET"; then
10712 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10713elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10714 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10715fi
10716
10717if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10718 for ncn_progname in gcj; do
10719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10720set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722$as_echo_n "checking for $ac_word... " >&6; }
10723if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10724 $as_echo_n "(cached) " >&6
278a7a38
AO
10725else
10726 if test -n "$GCJ_FOR_TARGET"; then
10727 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10728else
10729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10730for as_dir in $PATH
10731do
10732 IFS=$as_save_IFS
10733 test -z "$as_dir" && as_dir=.
5213506e
RW
10734 for ac_exec_ext in '' $ac_executable_extensions; do
10735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10736 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10738 break 2
10739 fi
10740done
5213506e
RW
10741 done
10742IFS=$as_save_IFS
278a7a38
AO
10743
10744fi
10745fi
10746GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10747if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10749$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10750else
5213506e
RW
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752$as_echo "no" >&6; }
278a7a38
AO
10753fi
10754
5213506e 10755
278a7a38
AO
10756 done
10757fi
10758
10759if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10760 for ncn_progname in gcj; do
5213506e
RW
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10762$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10763 if test -x $with_build_time_tools/${ncn_progname}; then
10764 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10766$as_echo "yes" >&6; }
e8b05380
PB
10767 break
10768 else
5213506e
RW
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770$as_echo "no" >&6; }
e8b05380
PB
10771 fi
10772 done
10773fi
10774
10775if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10776 for ncn_progname in gcj; do
10777 if test -n "$ncn_target_tool_prefix"; then
10778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10779set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781$as_echo_n "checking for $ac_word... " >&6; }
10782if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10783 $as_echo_n "(cached) " >&6
e8b05380 10784else
fb0103e5
RG
10785 if test -n "$GCJ_FOR_TARGET"; then
10786 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10787else
1c710c3c
DJ
10788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789for as_dir in $PATH
10790do
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
5213506e
RW
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10795 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10797 break 2
10798 fi
10799done
5213506e
RW
10800 done
10801IFS=$as_save_IFS
1c710c3c 10802
e8b05380
PB
10803fi
10804fi
278a7a38
AO
10805GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10806if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10808$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10809else
5213506e
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
278a7a38
AO
10812fi
10813
5213506e 10814
278a7a38
AO
10815 fi
10816 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10818set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10820$as_echo_n "checking for $ac_word... " >&6; }
10821if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10822 $as_echo_n "(cached) " >&6
278a7a38
AO
10823else
10824 if test -n "$GCJ_FOR_TARGET"; then
10825 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10826else
10827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828for as_dir in $PATH
10829do
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
5213506e
RW
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10834 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10836 break 2
10837 fi
10838done
5213506e
RW
10839 done
10840IFS=$as_save_IFS
278a7a38
AO
10841
10842fi
10843fi
10844GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10845if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10847$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10848else
5213506e
RW
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10850$as_echo "no" >&6; }
278a7a38
AO
10851fi
10852
5213506e 10853
278a7a38
AO
10854 fi
10855 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10856 done
10857fi
10858
10859if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10860 set dummy gcj
10861 if test $build = $target ; then
10862 GCJ_FOR_TARGET="$2"
10863 else
10864 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10865 fi
1c00b503
PB
10866else
10867 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10868fi
10869
10870
10871
10872if test -n "$GFORTRAN_FOR_TARGET"; then
10873 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10874elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10875 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10876fi
10877
278a7a38
AO
10878if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10879 for ncn_progname in gfortran; do
10880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10881set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10883$as_echo_n "checking for $ac_word... " >&6; }
10884if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10885 $as_echo_n "(cached) " >&6
e8b05380 10886else
278a7a38
AO
10887 if test -n "$GFORTRAN_FOR_TARGET"; then
10888 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10889else
1c710c3c
DJ
10890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10891for as_dir in $PATH
10892do
10893 IFS=$as_save_IFS
10894 test -z "$as_dir" && as_dir=.
5213506e
RW
10895 for ac_exec_ext in '' $ac_executable_extensions; do
10896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10897 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10899 break 2
10900 fi
10901done
5213506e
RW
10902 done
10903IFS=$as_save_IFS
1c710c3c 10904
e8b05380
PB
10905fi
10906fi
278a7a38
AO
10907GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10908if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10910$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10911else
5213506e
RW
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10913$as_echo "no" >&6; }
e8b05380 10914fi
1c710c3c 10915
5213506e 10916
e8b05380
PB
10917 done
10918fi
1c710c3c 10919
278a7a38 10920if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10921 for ncn_progname in gfortran; do
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10923$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10924 if test -x $with_build_time_tools/${ncn_progname}; then
10925 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10927$as_echo "yes" >&6; }
e8b05380
PB
10928 break
10929 else
5213506e
RW
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
e8b05380
PB
10932 fi
10933 done
10934fi
10935
10936if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10937 for ncn_progname in gfortran; do
10938 if test -n "$ncn_target_tool_prefix"; then
10939 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10940set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942$as_echo_n "checking for $ac_word... " >&6; }
10943if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10944 $as_echo_n "(cached) " >&6
e8b05380
PB
10945else
10946 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10947 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10948else
10949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950for as_dir in $PATH
10951do
10952 IFS=$as_save_IFS
10953 test -z "$as_dir" && as_dir=.
5213506e
RW
10954 for ac_exec_ext in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10956 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10958 break 2
10959 fi
10960done
5213506e
RW
10961 done
10962IFS=$as_save_IFS
1c710c3c 10963
e8b05380
PB
10964fi
10965fi
1c710c3c 10966GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10967if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10969$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10970else
5213506e
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972$as_echo "no" >&6; }
e8b05380
PB
10973fi
10974
5213506e 10975
e8b05380
PB
10976 fi
10977 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10979set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10981$as_echo_n "checking for $ac_word... " >&6; }
10982if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10983 $as_echo_n "(cached) " >&6
e8b05380
PB
10984else
10985 if test -n "$GFORTRAN_FOR_TARGET"; then
10986 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10987else
1c710c3c
DJ
10988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10989for as_dir in $PATH
10990do
10991 IFS=$as_save_IFS
10992 test -z "$as_dir" && as_dir=.
5213506e
RW
10993 for ac_exec_ext in '' $ac_executable_extensions; do
10994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10995 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10997 break 2
10998 fi
10999done
5213506e
RW
11000 done
11001IFS=$as_save_IFS
1c710c3c 11002
e8b05380
PB
11003fi
11004fi
1c710c3c 11005GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 11006if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
11008$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 11009else
5213506e
RW
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011$as_echo "no" >&6; }
e8b05380 11012fi
1c710c3c 11013
5213506e 11014
e8b05380
PB
11015 fi
11016 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
11017 done
11018fi
1c710c3c 11019
e8b05380
PB
11020if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
11021 set dummy gfortran
2693c0b0 11022 if test $build = $target ; then
e8b05380 11023 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 11024 else
e8b05380
PB
11025 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
11026 fi
1c00b503
PB
11027else
11028 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
11029fi
11030
11031
11032
e8b05380
PB
11033cat > conftest.c << \EOF
11034#ifdef __GNUC__
11035 gcc_yay;
11036#endif
11037EOF
11038if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
11039 have_gcc_for_target=yes
11040else
11041 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
11042 have_gcc_for_target=no
11043fi
11044rm conftest.c
11045
11046
11047
11048
11049if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
11050 if test -n "$with_build_time_tools"; then
5213506e
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
11052$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11053 if test -x $with_build_time_tools/ar; then
11054 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
11055 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
11057$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 11058 else
5213506e
RW
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060$as_echo "no" >&6; }
d1f8db0c 11061 fi
e8b05380
PB
11062 elif test $build != $host && test $have_gcc_for_target = yes; then
11063 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
11064 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
11065 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
11066 fi
11067fi
3e19841a 11068if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11069 # Extract the first word of "ar", so it can be a program name with args.
11070set dummy ar; ac_word=$2
5213506e
RW
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
11073if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
e8b05380 11075else
1c710c3c
DJ
11076 case $AR_FOR_TARGET in
11077 [\\/]* | ?:[\\/]*)
e8b05380
PB
11078 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
11079 ;;
e8b05380 11080 *)
1c710c3c
DJ
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $gcc_cv_tool_dirs
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
5213506e
RW
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11088 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11090 break 2
11091 fi
11092done
5213506e
RW
11093 done
11094IFS=$as_save_IFS
1c710c3c 11095
e8b05380
PB
11096 ;;
11097esac
11098fi
1c710c3c 11099AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 11100if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11102$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11103else
5213506e
RW
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105$as_echo "no" >&6; }
4de997d1
PB
11106fi
11107
5213506e 11108
e8b05380
PB
11109fi
11110if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11111
11112
11113if test -n "$AR_FOR_TARGET"; then
11114 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11115elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11116 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11117fi
11118
11119if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11120 for ncn_progname in ar; do
11121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11122set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124$as_echo_n "checking for $ac_word... " >&6; }
11125if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
278a7a38
AO
11127else
11128 if test -n "$AR_FOR_TARGET"; then
11129 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11130else
11131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132for as_dir in $PATH
11133do
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
5213506e
RW
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11138 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11140 break 2
11141 fi
11142done
5213506e
RW
11143 done
11144IFS=$as_save_IFS
278a7a38
AO
11145
11146fi
11147fi
11148AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11149if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11151$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11152else
5213506e
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
278a7a38
AO
11155fi
11156
5213506e 11157
278a7a38
AO
11158 done
11159fi
11160
11161if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11162 for ncn_progname in ar; do
5213506e
RW
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11164$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11165 if test -x $with_build_time_tools/${ncn_progname}; then
11166 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11168$as_echo "yes" >&6; }
e8b05380
PB
11169 break
11170 else
5213506e
RW
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172$as_echo "no" >&6; }
e8b05380
PB
11173 fi
11174 done
11175fi
11176
11177if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11178 for ncn_progname in ar; do
11179 if test -n "$ncn_target_tool_prefix"; then
11180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11181set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11183$as_echo_n "checking for $ac_word... " >&6; }
11184if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11185 $as_echo_n "(cached) " >&6
4de997d1 11186else
e8b05380
PB
11187 if test -n "$AR_FOR_TARGET"; then
11188 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11189else
1c710c3c
DJ
11190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191for as_dir in $PATH
11192do
11193 IFS=$as_save_IFS
11194 test -z "$as_dir" && as_dir=.
5213506e
RW
11195 for ac_exec_ext in '' $ac_executable_extensions; do
11196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11197 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11199 break 2
11200 fi
11201done
5213506e
RW
11202 done
11203IFS=$as_save_IFS
1c710c3c 11204
4de997d1
PB
11205fi
11206fi
1c710c3c 11207AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11208if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11210$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11211else
5213506e
RW
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11213$as_echo "no" >&6; }
4de997d1
PB
11214fi
11215
5213506e 11216
e8b05380
PB
11217 fi
11218 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11220set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222$as_echo_n "checking for $ac_word... " >&6; }
11223if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11224 $as_echo_n "(cached) " >&6
e8b05380
PB
11225else
11226 if test -n "$AR_FOR_TARGET"; then
11227 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11228else
1c710c3c
DJ
11229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
5213506e
RW
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11236 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11238 break 2
11239 fi
11240done
5213506e
RW
11241 done
11242IFS=$as_save_IFS
1c710c3c 11243
e8b05380
PB
11244fi
11245fi
1c710c3c 11246AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11247if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11249$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11250else
5213506e
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252$as_echo "no" >&6; }
e8b05380 11253fi
1c710c3c 11254
5213506e 11255
e8b05380
PB
11256 fi
11257 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11258 done
11259fi
1c710c3c 11260
e8b05380
PB
11261if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11262 set dummy ar
11263 if test $build = $target ; then
11264 AR_FOR_TARGET="$2"
11265 else
11266 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11267 fi
1c00b503
PB
11268else
11269 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11270fi
11271
d1f8db0c
PB
11272else
11273 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11274fi
11275
11276
11277
11278
11279if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11280 if test -n "$with_build_time_tools"; then
5213506e
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11282$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11283 if test -x $with_build_time_tools/as; then
11284 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11285 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11287$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11288 else
5213506e
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
d1f8db0c 11291 fi
e8b05380
PB
11292 elif test $build != $host && test $have_gcc_for_target = yes; then
11293 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11294 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11295 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11296 fi
11297fi
3e19841a 11298if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11299 # Extract the first word of "as", so it can be a program name with args.
11300set dummy as; ac_word=$2
5213506e
RW
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302$as_echo_n "checking for $ac_word... " >&6; }
11303if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
e8b05380 11305else
1c710c3c
DJ
11306 case $AS_FOR_TARGET in
11307 [\\/]* | ?:[\\/]*)
e8b05380
PB
11308 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11309 ;;
e8b05380 11310 *)
1c710c3c
DJ
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $gcc_cv_tool_dirs
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
5213506e
RW
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11318 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11320 break 2
11321 fi
11322done
5213506e
RW
11323 done
11324IFS=$as_save_IFS
1c710c3c 11325
e8b05380
PB
11326 ;;
11327esac
11328fi
1c710c3c 11329AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11330if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11332$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11333else
5213506e
RW
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335$as_echo "no" >&6; }
e8b05380
PB
11336fi
11337
5213506e 11338
e8b05380
PB
11339fi
11340if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11341
11342
11343if test -n "$AS_FOR_TARGET"; then
11344 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11345elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11346 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11347fi
11348
11349if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11350 for ncn_progname in as; do
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354$as_echo_n "checking for $ac_word... " >&6; }
11355if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
278a7a38
AO
11357else
11358 if test -n "$AS_FOR_TARGET"; then
11359 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11360else
11361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362for as_dir in $PATH
11363do
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
5213506e
RW
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11368 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11370 break 2
11371 fi
11372done
5213506e
RW
11373 done
11374IFS=$as_save_IFS
278a7a38
AO
11375
11376fi
11377fi
11378AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11379if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11381$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11382else
5213506e
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
278a7a38
AO
11385fi
11386
5213506e 11387
278a7a38
AO
11388 done
11389fi
11390
11391if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11392 for ncn_progname in as; do
5213506e
RW
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11394$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11395 if test -x $with_build_time_tools/${ncn_progname}; then
11396 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11398$as_echo "yes" >&6; }
e8b05380
PB
11399 break
11400 else
5213506e
RW
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11402$as_echo "no" >&6; }
e8b05380
PB
11403 fi
11404 done
11405fi
11406
11407if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11408 for ncn_progname in as; do
11409 if test -n "$ncn_target_tool_prefix"; then
11410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11411set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11413$as_echo_n "checking for $ac_word... " >&6; }
11414if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11415 $as_echo_n "(cached) " >&6
e8b05380
PB
11416else
11417 if test -n "$AS_FOR_TARGET"; then
11418 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11419else
1c710c3c
DJ
11420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11421for as_dir in $PATH
11422do
11423 IFS=$as_save_IFS
11424 test -z "$as_dir" && as_dir=.
5213506e
RW
11425 for ac_exec_ext in '' $ac_executable_extensions; do
11426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11427 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11429 break 2
11430 fi
11431done
5213506e
RW
11432 done
11433IFS=$as_save_IFS
1c710c3c 11434
e8b05380
PB
11435fi
11436fi
1c710c3c 11437AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11438if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11440$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11441else
5213506e
RW
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443$as_echo "no" >&6; }
e8b05380
PB
11444fi
11445
5213506e 11446
e8b05380
PB
11447 fi
11448 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11450set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11452$as_echo_n "checking for $ac_word... " >&6; }
11453if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11454 $as_echo_n "(cached) " >&6
4de997d1 11455else
e8b05380
PB
11456 if test -n "$AS_FOR_TARGET"; then
11457 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11458else
1c710c3c
DJ
11459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460for as_dir in $PATH
11461do
11462 IFS=$as_save_IFS
11463 test -z "$as_dir" && as_dir=.
5213506e
RW
11464 for ac_exec_ext in '' $ac_executable_extensions; do
11465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11466 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11468 break 2
11469 fi
11470done
5213506e
RW
11471 done
11472IFS=$as_save_IFS
1c710c3c 11473
4de997d1
PB
11474fi
11475fi
1c710c3c 11476AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11477if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11479$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11480else
5213506e
RW
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482$as_echo "no" >&6; }
4de997d1 11483fi
1c710c3c 11484
5213506e 11485
e8b05380
PB
11486 fi
11487 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11488 done
11489fi
1c710c3c 11490
e8b05380
PB
11491if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11492 set dummy as
11493 if test $build = $target ; then
11494 AS_FOR_TARGET="$2"
11495 else
11496 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11497 fi
1c00b503
PB
11498else
11499 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11500fi
2693c0b0 11501
d1f8db0c
PB
11502else
11503 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11504fi
11505
e8b05380
PB
11506
11507
11508
11509if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11510 if test -n "$with_build_time_tools"; then
5213506e
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11512$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11513 if test -x $with_build_time_tools/dlltool; then
11514 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11515 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11517$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11518 else
5213506e
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520$as_echo "no" >&6; }
d1f8db0c 11521 fi
e8b05380
PB
11522 elif test $build != $host && test $have_gcc_for_target = yes; then
11523 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11524 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11525 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11526 fi
11527fi
3e19841a 11528if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11529 # Extract the first word of "dlltool", so it can be a program name with args.
11530set dummy dlltool; ac_word=$2
5213506e
RW
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532$as_echo_n "checking for $ac_word... " >&6; }
11533if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
4de997d1 11535else
1c710c3c
DJ
11536 case $DLLTOOL_FOR_TARGET in
11537 [\\/]* | ?:[\\/]*)
e8b05380
PB
11538 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11539 ;;
e8b05380 11540 *)
1c710c3c
DJ
11541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542for as_dir in $gcc_cv_tool_dirs
11543do
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
5213506e
RW
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11548 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11550 break 2
11551 fi
11552done
5213506e
RW
11553 done
11554IFS=$as_save_IFS
1c710c3c 11555
e8b05380
PB
11556 ;;
11557esac
4de997d1 11558fi
1c710c3c 11559DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11560if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11562$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11563else
5213506e
RW
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565$as_echo "no" >&6; }
4de997d1
PB
11566fi
11567
5213506e 11568
e8b05380
PB
11569fi
11570if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11571
11572
11573if test -n "$DLLTOOL_FOR_TARGET"; then
11574 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11575elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11576 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11577fi
11578
11579if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11580 for ncn_progname in dlltool; do
11581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11582set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584$as_echo_n "checking for $ac_word... " >&6; }
11585if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
278a7a38
AO
11587else
11588 if test -n "$DLLTOOL_FOR_TARGET"; then
11589 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11590else
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
5213506e
RW
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11598 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11600 break 2
11601 fi
11602done
5213506e
RW
11603 done
11604IFS=$as_save_IFS
278a7a38
AO
11605
11606fi
11607fi
11608DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11609if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11611$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11612else
5213506e
RW
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
278a7a38
AO
11615fi
11616
5213506e 11617
278a7a38
AO
11618 done
11619fi
11620
11621if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11622 for ncn_progname in dlltool; do
5213506e
RW
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11624$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11625 if test -x $with_build_time_tools/${ncn_progname}; then
11626 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11628$as_echo "yes" >&6; }
e8b05380
PB
11629 break
11630 else
5213506e
RW
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11632$as_echo "no" >&6; }
e8b05380
PB
11633 fi
11634 done
11635fi
11636
11637if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11638 for ncn_progname in dlltool; do
11639 if test -n "$ncn_target_tool_prefix"; then
11640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11641set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11643$as_echo_n "checking for $ac_word... " >&6; }
11644if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
4de997d1 11646else
e8b05380
PB
11647 if test -n "$DLLTOOL_FOR_TARGET"; then
11648 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11649else
1c710c3c
DJ
11650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11651for as_dir in $PATH
11652do
11653 IFS=$as_save_IFS
11654 test -z "$as_dir" && as_dir=.
5213506e
RW
11655 for ac_exec_ext in '' $ac_executable_extensions; do
11656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11657 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11659 break 2
11660 fi
11661done
5213506e
RW
11662 done
11663IFS=$as_save_IFS
1c710c3c 11664
4de997d1
PB
11665fi
11666fi
1c710c3c 11667DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11668if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11670$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11671else
5213506e
RW
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11673$as_echo "no" >&6; }
4de997d1 11674fi
4de997d1 11675
5213506e 11676
e8b05380
PB
11677 fi
11678 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682$as_echo_n "checking for $ac_word... " >&6; }
11683if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11684 $as_echo_n "(cached) " >&6
4de997d1 11685else
e8b05380
PB
11686 if test -n "$DLLTOOL_FOR_TARGET"; then
11687 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11688else
1c710c3c
DJ
11689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690for as_dir in $PATH
11691do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
5213506e
RW
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11696 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11698 break 2
11699 fi
11700done
5213506e
RW
11701 done
11702IFS=$as_save_IFS
1c710c3c 11703
4de997d1
PB
11704fi
11705fi
1c710c3c 11706DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11707if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11709$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11710else
5213506e
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
4de997d1 11713fi
1c710c3c 11714
5213506e 11715
e8b05380
PB
11716 fi
11717 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11718 done
11719fi
1c710c3c 11720
e8b05380
PB
11721if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11722 set dummy dlltool
11723 if test $build = $target ; then
11724 DLLTOOL_FOR_TARGET="$2"
11725 else
11726 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11727 fi
1c00b503
PB
11728else
11729 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11730fi
11731
d1f8db0c
PB
11732else
11733 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11734fi
11735
4de997d1 11736
e8b05380
PB
11737
11738
11739if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11740 if test -n "$with_build_time_tools"; then
5213506e
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11742$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11743 if test -x $with_build_time_tools/ld; then
11744 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11745 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11747$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11748 else
5213506e
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
d1f8db0c 11751 fi
e8b05380
PB
11752 elif test $build != $host && test $have_gcc_for_target = yes; then
11753 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11754 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11755 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11756 fi
e8b05380 11757fi
3e19841a 11758if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11759 # Extract the first word of "ld", so it can be a program name with args.
11760set dummy ld; ac_word=$2
5213506e
RW
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762$as_echo_n "checking for $ac_word... " >&6; }
11763if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
4de997d1 11765else
1c710c3c
DJ
11766 case $LD_FOR_TARGET in
11767 [\\/]* | ?:[\\/]*)
e8b05380
PB
11768 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11769 ;;
e8b05380 11770 *)
1c710c3c
DJ
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772for as_dir in $gcc_cv_tool_dirs
11773do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
5213506e
RW
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11778 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11780 break 2
11781 fi
11782done
5213506e
RW
11783 done
11784IFS=$as_save_IFS
1c710c3c 11785
e8b05380
PB
11786 ;;
11787esac
4de997d1 11788fi
1c710c3c 11789LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11790if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11792$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11793else
5213506e
RW
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795$as_echo "no" >&6; }
4de997d1 11796fi
2693c0b0 11797
5213506e 11798
e8b05380
PB
11799fi
11800if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11801
11802
11803if test -n "$LD_FOR_TARGET"; then
11804 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11805elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11806 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11807fi
11808
11809if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11810 for ncn_progname in ld; do
11811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11812set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814$as_echo_n "checking for $ac_word... " >&6; }
11815if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
278a7a38
AO
11817else
11818 if test -n "$LD_FOR_TARGET"; then
11819 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11820else
11821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
5213506e
RW
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11828 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11830 break 2
11831 fi
11832done
5213506e
RW
11833 done
11834IFS=$as_save_IFS
278a7a38
AO
11835
11836fi
11837fi
11838LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11839if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11841$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11842else
5213506e
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
278a7a38
AO
11845fi
11846
5213506e 11847
278a7a38
AO
11848 done
11849fi
11850
11851if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11852 for ncn_progname in ld; do
5213506e
RW
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11854$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11855 if test -x $with_build_time_tools/${ncn_progname}; then
11856 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858$as_echo "yes" >&6; }
e8b05380
PB
11859 break
11860 else
5213506e
RW
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862$as_echo "no" >&6; }
e8b05380
PB
11863 fi
11864 done
ca9f4b81
AO
11865fi
11866
e8b05380
PB
11867if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11868 for ncn_progname in ld; do
11869 if test -n "$ncn_target_tool_prefix"; then
11870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11871set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11873$as_echo_n "checking for $ac_word... " >&6; }
11874if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11875 $as_echo_n "(cached) " >&6
ca9f4b81 11876else
4de997d1
PB
11877 if test -n "$LD_FOR_TARGET"; then
11878 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11879else
1c710c3c
DJ
11880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881for as_dir in $PATH
11882do
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
5213506e
RW
11885 for ac_exec_ext in '' $ac_executable_extensions; do
11886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11887 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11889 break 2
11890 fi
11891done
5213506e
RW
11892 done
11893IFS=$as_save_IFS
1c710c3c 11894
ca9f4b81
AO
11895fi
11896fi
1c710c3c 11897LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11898if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11900$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11901else
5213506e
RW
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11903$as_echo "no" >&6; }
ca9f4b81
AO
11904fi
11905
5213506e 11906
e8b05380
PB
11907 fi
11908 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11910set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11912$as_echo_n "checking for $ac_word... " >&6; }
11913if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
ca9f4b81 11915else
2693c0b0
PB
11916 if test -n "$LD_FOR_TARGET"; then
11917 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11918else
1c710c3c
DJ
11919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11920for as_dir in $PATH
11921do
11922 IFS=$as_save_IFS
11923 test -z "$as_dir" && as_dir=.
5213506e
RW
11924 for ac_exec_ext in '' $ac_executable_extensions; do
11925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11926 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11928 break 2
11929 fi
11930done
5213506e
RW
11931 done
11932IFS=$as_save_IFS
1c710c3c 11933
ca9f4b81
AO
11934fi
11935fi
1c710c3c 11936LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11937if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11939$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11940else
5213506e
RW
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
ca9f4b81 11943fi
1c710c3c 11944
5213506e 11945
e8b05380
PB
11946 fi
11947 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11948 done
11949fi
1c710c3c 11950
2693c0b0
PB
11951if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11952 set dummy ld
11953 if test $build = $target ; then
11954 LD_FOR_TARGET="$2"
ca9f4b81 11955 else
2693c0b0 11956 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11957 fi
1c00b503
PB
11958else
11959 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11960fi
11961
d1f8db0c
PB
11962else
11963 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11964fi
11965
11966
11967
11968
11969if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11970 if test -n "$with_build_time_tools"; then
5213506e
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11972$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11973 if test -x $with_build_time_tools/lipo; then
11974 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11975 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11977$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11978 else
5213506e
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
d1f8db0c 11981 fi
e8b05380
PB
11982 elif test $build != $host && test $have_gcc_for_target = yes; then
11983 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11984 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11985 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11986 fi
11987fi
278a7a38
AO
11988if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11989 # Extract the first word of "lipo", so it can be a program name with args.
11990set dummy lipo; ac_word=$2
5213506e
RW
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
11993if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
278a7a38
AO
11995else
11996 case $LIPO_FOR_TARGET in
11997 [\\/]* | ?:[\\/]*)
11998 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11999 ;;
12000 *)
12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $gcc_cv_tool_dirs
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
5213506e
RW
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12008 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12010 break 2
12011 fi
12012done
5213506e
RW
12013 done
12014IFS=$as_save_IFS
278a7a38
AO
12015
12016 ;;
12017esac
12018fi
12019LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 12020if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12022$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 12023else
5213506e
RW
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025$as_echo "no" >&6; }
278a7a38
AO
12026fi
12027
5213506e 12028
278a7a38
AO
12029fi
12030if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
12031
12032
12033if test -n "$LIPO_FOR_TARGET"; then
12034 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
12035elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12036 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
12037fi
12038
12039if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
12040 for ncn_progname in lipo; do
12041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12042set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044$as_echo_n "checking for $ac_word... " >&6; }
12045if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
e8b05380 12047else
278a7a38
AO
12048 if test -n "$LIPO_FOR_TARGET"; then
12049 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12050else
12051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052for as_dir in $PATH
1c710c3c
DJ
12053do
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
5213506e
RW
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12058 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12060 break 2
12061 fi
12062done
5213506e
RW
12063 done
12064IFS=$as_save_IFS
1c710c3c 12065
e8b05380 12066fi
278a7a38
AO
12067fi
12068LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 12069if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12071$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 12072else
5213506e
RW
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
e8b05380
PB
12075fi
12076
5213506e 12077
278a7a38 12078 done
e8b05380 12079fi
278a7a38
AO
12080
12081if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12082 for ncn_progname in lipo; do
5213506e
RW
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12084$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12085 if test -x $with_build_time_tools/${ncn_progname}; then
12086 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12088$as_echo "yes" >&6; }
e8b05380
PB
12089 break
12090 else
5213506e
RW
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12092$as_echo "no" >&6; }
e8b05380
PB
12093 fi
12094 done
12095fi
12096
12097if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
12098 for ncn_progname in lipo; do
12099 if test -n "$ncn_target_tool_prefix"; then
12100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12101set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12103$as_echo_n "checking for $ac_word... " >&6; }
12104if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
040b1c5a
GK
12106else
12107 if test -n "$LIPO_FOR_TARGET"; then
12108 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12109else
1c710c3c
DJ
12110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12111for as_dir in $PATH
12112do
12113 IFS=$as_save_IFS
12114 test -z "$as_dir" && as_dir=.
5213506e
RW
12115 for ac_exec_ext in '' $ac_executable_extensions; do
12116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12117 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12119 break 2
12120 fi
12121done
5213506e
RW
12122 done
12123IFS=$as_save_IFS
1c710c3c 12124
040b1c5a
GK
12125fi
12126fi
1c710c3c 12127LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12128if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12130$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12131else
5213506e
RW
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133$as_echo "no" >&6; }
040b1c5a
GK
12134fi
12135
5213506e 12136
e8b05380
PB
12137 fi
12138 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12140set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12142$as_echo_n "checking for $ac_word... " >&6; }
12143if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12144 $as_echo_n "(cached) " >&6
040b1c5a
GK
12145else
12146 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12147 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12148else
1c710c3c
DJ
12149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12150for as_dir in $PATH
12151do
12152 IFS=$as_save_IFS
12153 test -z "$as_dir" && as_dir=.
5213506e
RW
12154 for ac_exec_ext in '' $ac_executable_extensions; do
12155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12156 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12158 break 2
12159 fi
12160done
5213506e
RW
12161 done
12162IFS=$as_save_IFS
1c710c3c 12163
040b1c5a
GK
12164fi
12165fi
1c710c3c 12166LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12167if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12169$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12170else
5213506e
RW
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
040b1c5a 12173fi
1c710c3c 12174
5213506e 12175
e8b05380
PB
12176 fi
12177 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12178 done
12179fi
1c710c3c 12180
040b1c5a
GK
12181if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12182 set dummy lipo
12183 if test $build = $target ; then
12184 LIPO_FOR_TARGET="$2"
12185 else
12186 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12187 fi
1c00b503
PB
12188else
12189 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12190fi
12191
d1f8db0c
PB
12192else
12193 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12194fi
12195
12196
12197
12198
12199if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12200 if test -n "$with_build_time_tools"; then
5213506e
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12202$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12203 if test -x $with_build_time_tools/nm; then
12204 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12205 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12207$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12208 else
5213506e
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
d1f8db0c 12211 fi
e8b05380
PB
12212 elif test $build != $host && test $have_gcc_for_target = yes; then
12213 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12214 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12215 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12216 fi
12217fi
3e19841a 12218if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12219 # Extract the first word of "nm", so it can be a program name with args.
12220set dummy nm; ac_word=$2
5213506e
RW
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
e8b05380 12225else
1c710c3c
DJ
12226 case $NM_FOR_TARGET in
12227 [\\/]* | ?:[\\/]*)
e8b05380
PB
12228 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12229 ;;
e8b05380 12230 *)
1c710c3c
DJ
12231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $gcc_cv_tool_dirs
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
5213506e
RW
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12238 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12240 break 2
12241 fi
12242done
5213506e
RW
12243 done
12244IFS=$as_save_IFS
1c710c3c 12245
e8b05380
PB
12246 ;;
12247esac
12248fi
1c710c3c 12249NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12250if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12252$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12253else
5213506e
RW
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255$as_echo "no" >&6; }
e8b05380
PB
12256fi
12257
5213506e 12258
e8b05380
PB
12259fi
12260if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12261
12262
12263if test -n "$NM_FOR_TARGET"; then
12264 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12265elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12266 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12267fi
12268
12269if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12270 for ncn_progname in nm; do
12271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12272set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274$as_echo_n "checking for $ac_word... " >&6; }
12275if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
278a7a38
AO
12277else
12278 if test -n "$NM_FOR_TARGET"; then
12279 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12280else
12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
5213506e
RW
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12288 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12290 break 2
12291 fi
12292done
5213506e
RW
12293 done
12294IFS=$as_save_IFS
278a7a38
AO
12295
12296fi
12297fi
12298NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12299if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12301$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12302else
5213506e
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
278a7a38
AO
12305fi
12306
5213506e 12307
278a7a38
AO
12308 done
12309fi
12310
12311if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12312 for ncn_progname in nm; do
5213506e
RW
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12314$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12315 if test -x $with_build_time_tools/${ncn_progname}; then
12316 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12318$as_echo "yes" >&6; }
e8b05380
PB
12319 break
12320 else
5213506e
RW
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322$as_echo "no" >&6; }
e8b05380
PB
12323 fi
12324 done
12325fi
12326
12327if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12328 for ncn_progname in nm; do
12329 if test -n "$ncn_target_tool_prefix"; then
12330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12331set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333$as_echo_n "checking for $ac_word... " >&6; }
12334if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
ca9f4b81 12336else
4de997d1
PB
12337 if test -n "$NM_FOR_TARGET"; then
12338 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12339else
1c710c3c
DJ
12340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341for as_dir in $PATH
12342do
12343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
5213506e
RW
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12347 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12349 break 2
12350 fi
12351done
5213506e
RW
12352 done
12353IFS=$as_save_IFS
1c710c3c 12354
ca9f4b81
AO
12355fi
12356fi
1c710c3c 12357NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12358if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12360$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12361else
5213506e
RW
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363$as_echo "no" >&6; }
ca9f4b81
AO
12364fi
12365
5213506e 12366
e8b05380
PB
12367 fi
12368 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12370set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372$as_echo_n "checking for $ac_word... " >&6; }
12373if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
ca9f4b81 12375else
2693c0b0
PB
12376 if test -n "$NM_FOR_TARGET"; then
12377 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12378else
1c710c3c
DJ
12379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380for as_dir in $PATH
12381do
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
5213506e
RW
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12386 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12388 break 2
12389 fi
12390done
5213506e
RW
12391 done
12392IFS=$as_save_IFS
1c710c3c 12393
ca9f4b81
AO
12394fi
12395fi
1c710c3c 12396NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12397if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12399$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12400else
5213506e
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402$as_echo "no" >&6; }
ca9f4b81 12403fi
1c710c3c 12404
5213506e 12405
e8b05380
PB
12406 fi
12407 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12408 done
12409fi
1c710c3c 12410
2693c0b0
PB
12411if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12412 set dummy nm
12413 if test $build = $target ; then
12414 NM_FOR_TARGET="$2"
ca9f4b81 12415 else
2693c0b0 12416 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12417 fi
1c00b503
PB
12418else
12419 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12420fi
12421
d1f8db0c
PB
12422else
12423 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12424fi
12425
12426
12427
12428
12429if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12430 if test -n "$with_build_time_tools"; then
5213506e
RW
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12432$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12433 if test -x $with_build_time_tools/objdump; then
12434 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12435 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12437$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12438 else
5213506e
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
d1f8db0c 12441 fi
e8b05380
PB
12442 elif test $build != $host && test $have_gcc_for_target = yes; then
12443 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12444 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12445 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12446 fi
12447fi
3e19841a 12448if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12449 # Extract the first word of "objdump", so it can be a program name with args.
12450set dummy objdump; ac_word=$2
5213506e
RW
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
12453if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
e8b05380 12455else
1c710c3c
DJ
12456 case $OBJDUMP_FOR_TARGET in
12457 [\\/]* | ?:[\\/]*)
e8b05380
PB
12458 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12459 ;;
e8b05380 12460 *)
1c710c3c
DJ
12461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $gcc_cv_tool_dirs
12463do
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
5213506e
RW
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12468 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12470 break 2
12471 fi
12472done
5213506e
RW
12473 done
12474IFS=$as_save_IFS
1c710c3c 12475
e8b05380
PB
12476 ;;
12477esac
12478fi
1c710c3c 12479OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12480if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12482$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12483else
5213506e
RW
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12485$as_echo "no" >&6; }
e8b05380
PB
12486fi
12487
5213506e 12488
e8b05380
PB
12489fi
12490if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12491
12492
12493if test -n "$OBJDUMP_FOR_TARGET"; then
12494 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12495elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12496 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12497fi
12498
12499if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12500 for ncn_progname in objdump; do
12501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12502set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504$as_echo_n "checking for $ac_word... " >&6; }
12505if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
278a7a38
AO
12507else
12508 if test -n "$OBJDUMP_FOR_TARGET"; then
12509 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12510else
12511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512for as_dir in $PATH
12513do
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
5213506e
RW
12516 for ac_exec_ext in '' $ac_executable_extensions; do
12517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12518 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12520 break 2
12521 fi
12522done
5213506e
RW
12523 done
12524IFS=$as_save_IFS
278a7a38
AO
12525
12526fi
12527fi
12528OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12529if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12531$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12532else
5213506e
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
278a7a38
AO
12535fi
12536
5213506e 12537
278a7a38
AO
12538 done
12539fi
12540
12541if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12542 for ncn_progname in objdump; do
5213506e
RW
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12544$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12545 if test -x $with_build_time_tools/${ncn_progname}; then
12546 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548$as_echo "yes" >&6; }
e8b05380
PB
12549 break
12550 else
5213506e
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12552$as_echo "no" >&6; }
e8b05380
PB
12553 fi
12554 done
12555fi
12556
12557if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12558 for ncn_progname in objdump; do
12559 if test -n "$ncn_target_tool_prefix"; then
12560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12561set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12563$as_echo_n "checking for $ac_word... " >&6; }
12564if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12565 $as_echo_n "(cached) " >&6
d739199a
DJ
12566else
12567 if test -n "$OBJDUMP_FOR_TARGET"; then
12568 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12569else
1c710c3c
DJ
12570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12571for as_dir in $PATH
12572do
12573 IFS=$as_save_IFS
12574 test -z "$as_dir" && as_dir=.
5213506e
RW
12575 for ac_exec_ext in '' $ac_executable_extensions; do
12576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12577 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12579 break 2
12580 fi
12581done
5213506e
RW
12582 done
12583IFS=$as_save_IFS
1c710c3c 12584
d739199a
DJ
12585fi
12586fi
1c710c3c 12587OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12588if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12590$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12591else
5213506e
RW
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12593$as_echo "no" >&6; }
d739199a
DJ
12594fi
12595
5213506e 12596
e8b05380
PB
12597 fi
12598 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12600set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12602$as_echo_n "checking for $ac_word... " >&6; }
12603if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12604 $as_echo_n "(cached) " >&6
d739199a
DJ
12605else
12606 if test -n "$OBJDUMP_FOR_TARGET"; then
12607 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12608else
1c710c3c
DJ
12609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610for as_dir in $PATH
12611do
12612 IFS=$as_save_IFS
12613 test -z "$as_dir" && as_dir=.
5213506e
RW
12614 for ac_exec_ext in '' $ac_executable_extensions; do
12615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12616 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12618 break 2
12619 fi
12620done
5213506e
RW
12621 done
12622IFS=$as_save_IFS
1c710c3c 12623
d739199a
DJ
12624fi
12625fi
1c710c3c 12626OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12627if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12629$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12630else
5213506e
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
d739199a 12633fi
1c710c3c 12634
5213506e 12635
e8b05380
PB
12636 fi
12637 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12638 done
12639fi
1c710c3c 12640
d739199a
DJ
12641if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12642 set dummy objdump
12643 if test $build = $target ; then
12644 OBJDUMP_FOR_TARGET="$2"
12645 else
12646 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12647 fi
1c00b503
PB
12648else
12649 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12650fi
12651
d1f8db0c
PB
12652else
12653 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12654fi
12655
12656
12657
12658
12659if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12660 if test -n "$with_build_time_tools"; then
5213506e
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12662$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12663 if test -x $with_build_time_tools/ranlib; then
12664 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12665 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12667$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12668 else
5213506e
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; }
d1f8db0c 12671 fi
e8b05380
PB
12672 elif test $build != $host && test $have_gcc_for_target = yes; then
12673 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12674 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12675 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12676 fi
12677fi
3e19841a 12678if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12679 # Extract the first word of "ranlib", so it can be a program name with args.
12680set dummy ranlib; ac_word=$2
5213506e
RW
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
12683if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
e8b05380 12685else
1c710c3c
DJ
12686 case $RANLIB_FOR_TARGET in
12687 [\\/]* | ?:[\\/]*)
e8b05380
PB
12688 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12689 ;;
e8b05380 12690 *)
1c710c3c
DJ
12691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692for as_dir in $gcc_cv_tool_dirs
12693do
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
5213506e
RW
12696 for ac_exec_ext in '' $ac_executable_extensions; do
12697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12698 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12700 break 2
12701 fi
12702done
5213506e
RW
12703 done
12704IFS=$as_save_IFS
1c710c3c 12705
e8b05380
PB
12706 ;;
12707esac
12708fi
1c710c3c 12709RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12710if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12712$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12713else
5213506e
RW
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715$as_echo "no" >&6; }
e8b05380
PB
12716fi
12717
5213506e 12718
e8b05380
PB
12719fi
12720if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12721
12722
12723if test -n "$RANLIB_FOR_TARGET"; then
12724 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12725elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12726 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12727fi
12728
12729if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12730 for ncn_progname in ranlib; do
12731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12732set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734$as_echo_n "checking for $ac_word... " >&6; }
12735if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
278a7a38
AO
12737else
12738 if test -n "$RANLIB_FOR_TARGET"; then
12739 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12740else
12741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742for as_dir in $PATH
12743do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
5213506e
RW
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12748 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12750 break 2
12751 fi
12752done
5213506e
RW
12753 done
12754IFS=$as_save_IFS
278a7a38
AO
12755
12756fi
12757fi
12758RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12759if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12761$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12762else
5213506e
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
278a7a38
AO
12765fi
12766
5213506e 12767
278a7a38
AO
12768 done
12769fi
12770
12771if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12772 for ncn_progname in ranlib; do
5213506e
RW
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12774$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12775 if test -x $with_build_time_tools/${ncn_progname}; then
12776 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778$as_echo "yes" >&6; }
e8b05380
PB
12779 break
12780 else
5213506e
RW
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782$as_echo "no" >&6; }
e8b05380
PB
12783 fi
12784 done
12785fi
12786
12787if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12788 for ncn_progname in ranlib; do
12789 if test -n "$ncn_target_tool_prefix"; then
12790 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12791set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12793$as_echo_n "checking for $ac_word... " >&6; }
12794if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12795 $as_echo_n "(cached) " >&6
ca9f4b81 12796else
4de997d1
PB
12797 if test -n "$RANLIB_FOR_TARGET"; then
12798 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12799else
1c710c3c
DJ
12800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12801for as_dir in $PATH
12802do
12803 IFS=$as_save_IFS
12804 test -z "$as_dir" && as_dir=.
5213506e
RW
12805 for ac_exec_ext in '' $ac_executable_extensions; do
12806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12807 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12809 break 2
12810 fi
12811done
5213506e
RW
12812 done
12813IFS=$as_save_IFS
1c710c3c 12814
ca9f4b81
AO
12815fi
12816fi
1c710c3c 12817RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12818if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12820$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12821else
5213506e
RW
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12823$as_echo "no" >&6; }
ca9f4b81
AO
12824fi
12825
5213506e 12826
e8b05380
PB
12827 fi
12828 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12830set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12832$as_echo_n "checking for $ac_word... " >&6; }
12833if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12834 $as_echo_n "(cached) " >&6
ca9f4b81 12835else
2693c0b0
PB
12836 if test -n "$RANLIB_FOR_TARGET"; then
12837 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12838else
1c710c3c
DJ
12839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840for as_dir in $PATH
12841do
12842 IFS=$as_save_IFS
12843 test -z "$as_dir" && as_dir=.
5213506e
RW
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12846 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12848 break 2
12849 fi
12850done
5213506e
RW
12851 done
12852IFS=$as_save_IFS
1c710c3c 12853
ca9f4b81
AO
12854fi
12855fi
1c710c3c 12856RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12857if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12859$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12860else
5213506e
RW
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862$as_echo "no" >&6; }
ca9f4b81 12863fi
1c710c3c 12864
5213506e 12865
e8b05380
PB
12866 fi
12867 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12868 done
12869fi
1c710c3c 12870
e8b05380
PB
12871if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12872 set dummy ranlib
12873 if test $build = $target ; then
12874 RANLIB_FOR_TARGET="$2"
12875 else
12876 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12877 fi
1c00b503
PB
12878else
12879 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12880fi
2693c0b0 12881
d1f8db0c
PB
12882else
12883 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12884fi
12885
e8b05380
PB
12886
12887
12888
12889if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12890 if test -n "$with_build_time_tools"; then
5213506e
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12892$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12893 if test -x $with_build_time_tools/strip; then
12894 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12895 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12897$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12898 else
5213506e
RW
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900$as_echo "no" >&6; }
d1f8db0c 12901 fi
e8b05380
PB
12902 elif test $build != $host && test $have_gcc_for_target = yes; then
12903 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12904 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12905 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12906 fi
12907fi
3e19841a 12908if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12909 # Extract the first word of "strip", so it can be a program name with args.
12910set dummy strip; ac_word=$2
5213506e
RW
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912$as_echo_n "checking for $ac_word... " >&6; }
12913if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
e8b05380 12915else
1c710c3c
DJ
12916 case $STRIP_FOR_TARGET in
12917 [\\/]* | ?:[\\/]*)
e8b05380
PB
12918 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12919 ;;
e8b05380 12920 *)
1c710c3c
DJ
12921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922for as_dir in $gcc_cv_tool_dirs
12923do
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
5213506e
RW
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12928 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12930 break 2
12931 fi
12932done
5213506e
RW
12933 done
12934IFS=$as_save_IFS
1c710c3c 12935
e8b05380
PB
12936 ;;
12937esac
12938fi
1c710c3c 12939STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12940if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12942$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12943else
5213506e
RW
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945$as_echo "no" >&6; }
e8b05380
PB
12946fi
12947
5213506e 12948
e8b05380
PB
12949fi
12950if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12951
12952
12953if test -n "$STRIP_FOR_TARGET"; then
12954 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12955elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12956 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12957fi
12958
12959if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12960 for ncn_progname in strip; do
12961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12962set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964$as_echo_n "checking for $ac_word... " >&6; }
12965if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
278a7a38
AO
12967else
12968 if test -n "$STRIP_FOR_TARGET"; then
12969 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12970else
12971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972for as_dir in $PATH
12973do
12974 IFS=$as_save_IFS
12975 test -z "$as_dir" && as_dir=.
5213506e
RW
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12978 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12980 break 2
12981 fi
12982done
5213506e
RW
12983 done
12984IFS=$as_save_IFS
278a7a38
AO
12985
12986fi
12987fi
12988STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12989if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12991$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12992else
5213506e
RW
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
278a7a38
AO
12995fi
12996
5213506e 12997
278a7a38
AO
12998 done
12999fi
13000
13001if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13002 for ncn_progname in strip; do
5213506e
RW
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13004$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13005 if test -x $with_build_time_tools/${ncn_progname}; then
13006 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13008$as_echo "yes" >&6; }
e8b05380
PB
13009 break
13010 else
5213506e
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13012$as_echo "no" >&6; }
e8b05380
PB
13013 fi
13014 done
13015fi
13016
13017if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13018 for ncn_progname in strip; do
13019 if test -n "$ncn_target_tool_prefix"; then
13020 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13021set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13023$as_echo_n "checking for $ac_word... " >&6; }
13024if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13025 $as_echo_n "(cached) " >&6
af71363e
AS
13026else
13027 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13028 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13029else
13030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13031for as_dir in $PATH
13032do
13033 IFS=$as_save_IFS
13034 test -z "$as_dir" && as_dir=.
5213506e
RW
13035 for ac_exec_ext in '' $ac_executable_extensions; do
13036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13037 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13039 break 2
13040 fi
13041done
5213506e
RW
13042 done
13043IFS=$as_save_IFS
1c710c3c 13044
040b1c5a
GK
13045fi
13046fi
1c710c3c 13047STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13048if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13050$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13051else
5213506e
RW
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13053$as_echo "no" >&6; }
040b1c5a
GK
13054fi
13055
5213506e 13056
e8b05380
PB
13057 fi
13058 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13060set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13062$as_echo_n "checking for $ac_word... " >&6; }
13063if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13064 $as_echo_n "(cached) " >&6
040b1c5a
GK
13065else
13066 if test -n "$STRIP_FOR_TARGET"; then
13067 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13068else
1c710c3c
DJ
13069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070for as_dir in $PATH
13071do
13072 IFS=$as_save_IFS
13073 test -z "$as_dir" && as_dir=.
5213506e
RW
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13076 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13078 break 2
13079 fi
13080done
5213506e
RW
13081 done
13082IFS=$as_save_IFS
1c710c3c 13083
040b1c5a
GK
13084fi
13085fi
1c710c3c 13086STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13087if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13089$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13090else
5213506e
RW
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092$as_echo "no" >&6; }
040b1c5a 13093fi
1c710c3c 13094
5213506e 13095
e8b05380
PB
13096 fi
13097 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13098 done
13099fi
1c710c3c 13100
040b1c5a
GK
13101if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13102 set dummy strip
13103 if test $build = $target ; then
13104 STRIP_FOR_TARGET="$2"
13105 else
13106 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13107 fi
1c00b503
PB
13108else
13109 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13110fi
13111
d1f8db0c
PB
13112else
13113 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13114fi
13115
13116
13117
13118
13119if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13120 if test -n "$with_build_time_tools"; then
5213506e
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13122$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13123 if test -x $with_build_time_tools/windres; then
13124 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13125 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13127$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13128 else
5213506e
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130$as_echo "no" >&6; }
d1f8db0c 13131 fi
e8b05380
PB
13132 elif test $build != $host && test $have_gcc_for_target = yes; then
13133 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13134 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13135 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13136 fi
13137fi
3e19841a 13138if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13139 # Extract the first word of "windres", so it can be a program name with args.
13140set dummy windres; ac_word=$2
5213506e
RW
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142$as_echo_n "checking for $ac_word... " >&6; }
13143if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
e8b05380 13145else
1c710c3c
DJ
13146 case $WINDRES_FOR_TARGET in
13147 [\\/]* | ?:[\\/]*)
e8b05380
PB
13148 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13149 ;;
e8b05380 13150 *)
1c710c3c
DJ
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152for as_dir in $gcc_cv_tool_dirs
13153do
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
5213506e
RW
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13158 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13160 break 2
13161 fi
13162done
5213506e
RW
13163 done
13164IFS=$as_save_IFS
1c710c3c 13165
e8b05380
PB
13166 ;;
13167esac
13168fi
1c710c3c 13169WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13170if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13172$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13173else
5213506e
RW
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13175$as_echo "no" >&6; }
e8b05380
PB
13176fi
13177
5213506e 13178
e8b05380
PB
13179fi
13180if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13181
13182
13183if test -n "$WINDRES_FOR_TARGET"; then
13184 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13185elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13186 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13187fi
13188
13189if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13190 for ncn_progname in windres; do
13191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13192set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194$as_echo_n "checking for $ac_word... " >&6; }
13195if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
278a7a38
AO
13197else
13198 if test -n "$WINDRES_FOR_TARGET"; then
13199 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13200else
13201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202for as_dir in $PATH
13203do
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
5213506e
RW
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13208 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13210 break 2
13211 fi
13212done
5213506e
RW
13213 done
13214IFS=$as_save_IFS
278a7a38
AO
13215
13216fi
13217fi
13218WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13219if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13221$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13222else
5213506e
RW
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
278a7a38
AO
13225fi
13226
5213506e 13227
278a7a38
AO
13228 done
13229fi
13230
13231if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13232 for ncn_progname in windres; do
5213506e
RW
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13234$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13235 if test -x $with_build_time_tools/${ncn_progname}; then
13236 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13238$as_echo "yes" >&6; }
e8b05380
PB
13239 break
13240 else
5213506e
RW
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13242$as_echo "no" >&6; }
e8b05380
PB
13243 fi
13244 done
13245fi
13246
13247if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13248 for ncn_progname in windres; do
13249 if test -n "$ncn_target_tool_prefix"; then
13250 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13251set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13253$as_echo_n "checking for $ac_word... " >&6; }
13254if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
ca9f4b81 13256else
4de997d1
PB
13257 if test -n "$WINDRES_FOR_TARGET"; then
13258 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13259else
1c710c3c
DJ
13260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
5213506e
RW
13265 for ac_exec_ext in '' $ac_executable_extensions; do
13266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13267 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13269 break 2
13270 fi
13271done
5213506e
RW
13272 done
13273IFS=$as_save_IFS
1c710c3c 13274
ca9f4b81
AO
13275fi
13276fi
1c710c3c 13277WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13278if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13280$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13281else
5213506e
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13283$as_echo "no" >&6; }
ca9f4b81
AO
13284fi
13285
5213506e 13286
e8b05380
PB
13287 fi
13288 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13290set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292$as_echo_n "checking for $ac_word... " >&6; }
13293if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13294 $as_echo_n "(cached) " >&6
ca9f4b81 13295else
2693c0b0
PB
13296 if test -n "$WINDRES_FOR_TARGET"; then
13297 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13298else
1c710c3c
DJ
13299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300for as_dir in $PATH
13301do
13302 IFS=$as_save_IFS
13303 test -z "$as_dir" && as_dir=.
5213506e
RW
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13306 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13308 break 2
13309 fi
13310done
5213506e
RW
13311 done
13312IFS=$as_save_IFS
1c710c3c 13313
ca9f4b81
AO
13314fi
13315fi
1c710c3c 13316WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13317if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13319$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13320else
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
ca9f4b81 13323fi
1c710c3c 13324
5213506e 13325
e8b05380
PB
13326 fi
13327 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13328 done
13329fi
1c710c3c 13330
2693c0b0
PB
13331if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13332 set dummy windres
13333 if test $build = $target ; then
13334 WINDRES_FOR_TARGET="$2"
ca9f4b81 13335 else
2693c0b0 13336 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13337 fi
1c00b503
PB
13338else
13339 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13340fi
13341
d1f8db0c
PB
13342else
13343 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13344fi
13345
4977bab6 13346
901119ae
KT
13347
13348
13349if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13350 if test -n "$with_build_time_tools"; then
5213506e
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13352$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13353 if test -x $with_build_time_tools/windmc; then
13354 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13355 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13357$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13358 else
5213506e
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360$as_echo "no" >&6; }
901119ae
KT
13361 fi
13362 elif test $build != $host && test $have_gcc_for_target = yes; then
13363 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13364 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13365 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13366 fi
13367fi
13368if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13369 # Extract the first word of "windmc", so it can be a program name with args.
13370set dummy windmc; ac_word=$2
5213506e
RW
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372$as_echo_n "checking for $ac_word... " >&6; }
13373if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
901119ae
KT
13375else
13376 case $WINDMC_FOR_TARGET in
13377 [\\/]* | ?:[\\/]*)
13378 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13379 ;;
13380 *)
13381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382for as_dir in $gcc_cv_tool_dirs
13383do
13384 IFS=$as_save_IFS
13385 test -z "$as_dir" && as_dir=.
5213506e
RW
13386 for ac_exec_ext in '' $ac_executable_extensions; do
13387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13388 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13390 break 2
13391 fi
13392done
5213506e
RW
13393 done
13394IFS=$as_save_IFS
901119ae
KT
13395
13396 ;;
13397esac
13398fi
13399WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13400if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13402$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13403else
5213506e
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13405$as_echo "no" >&6; }
901119ae
KT
13406fi
13407
5213506e 13408
901119ae
KT
13409fi
13410if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13411
13412
13413if test -n "$WINDMC_FOR_TARGET"; then
13414 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13415elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13416 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13417fi
13418
13419if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13420 for ncn_progname in windmc; do
13421 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13422set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13424$as_echo_n "checking for $ac_word... " >&6; }
13425if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13426 $as_echo_n "(cached) " >&6
901119ae
KT
13427else
13428 if test -n "$WINDMC_FOR_TARGET"; then
13429 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13430else
13431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13432for as_dir in $PATH
13433do
13434 IFS=$as_save_IFS
13435 test -z "$as_dir" && as_dir=.
5213506e
RW
13436 for ac_exec_ext in '' $ac_executable_extensions; do
13437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13438 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13440 break 2
13441 fi
13442done
5213506e
RW
13443 done
13444IFS=$as_save_IFS
901119ae
KT
13445
13446fi
13447fi
13448WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13449if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13451$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13452else
5213506e
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13454$as_echo "no" >&6; }
901119ae
KT
13455fi
13456
5213506e 13457
901119ae
KT
13458 done
13459fi
13460
13461if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13462 for ncn_progname in windmc; do
5213506e
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13464$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13465 if test -x $with_build_time_tools/${ncn_progname}; then
13466 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13468$as_echo "yes" >&6; }
901119ae
KT
13469 break
13470 else
5213506e
RW
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472$as_echo "no" >&6; }
901119ae
KT
13473 fi
13474 done
13475fi
13476
13477if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13478 for ncn_progname in windmc; do
13479 if test -n "$ncn_target_tool_prefix"; then
13480 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13481set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13483$as_echo_n "checking for $ac_word... " >&6; }
13484if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13485 $as_echo_n "(cached) " >&6
901119ae
KT
13486else
13487 if test -n "$WINDMC_FOR_TARGET"; then
13488 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13489else
13490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13491for as_dir in $PATH
13492do
13493 IFS=$as_save_IFS
13494 test -z "$as_dir" && as_dir=.
5213506e
RW
13495 for ac_exec_ext in '' $ac_executable_extensions; do
13496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13497 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13499 break 2
13500 fi
13501done
5213506e
RW
13502 done
13503IFS=$as_save_IFS
901119ae
KT
13504
13505fi
13506fi
13507WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13508if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13510$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13511else
5213506e
RW
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513$as_echo "no" >&6; }
901119ae
KT
13514fi
13515
5213506e 13516
901119ae
KT
13517 fi
13518 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13520set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13522$as_echo_n "checking for $ac_word... " >&6; }
13523if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13524 $as_echo_n "(cached) " >&6
901119ae
KT
13525else
13526 if test -n "$WINDMC_FOR_TARGET"; then
13527 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13528else
13529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13530for as_dir in $PATH
13531do
13532 IFS=$as_save_IFS
13533 test -z "$as_dir" && as_dir=.
5213506e
RW
13534 for ac_exec_ext in '' $ac_executable_extensions; do
13535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13536 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13538 break 2
13539 fi
13540done
5213506e
RW
13541 done
13542IFS=$as_save_IFS
901119ae
KT
13543
13544fi
13545fi
13546WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13547if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13549$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13550else
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552$as_echo "no" >&6; }
901119ae
KT
13553fi
13554
5213506e 13555
901119ae
KT
13556 fi
13557 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13558 done
13559fi
13560
13561if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13562 set dummy windmc
13563 if test $build = $target ; then
13564 WINDMC_FOR_TARGET="$2"
13565 else
13566 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13567 fi
1c00b503
PB
13568else
13569 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13570fi
13571
13572else
13573 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13574fi
13575
13576
2abefe3d
PB
13577RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13578
5213506e
RW
13579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13580$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13581if test "x${build}" != "x${host}" ; then
e8b05380
PB
13582 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13583 # We already found the complete path
172e41aa 13584 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13586$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13587 else
13588 # Canadian cross, just use what we found
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13590$as_echo "pre-installed" >&6; }
e8b05380 13591 fi
2abefe3d
PB
13592else
13593 ok=yes
13594 case " ${configdirs} " in
13595 *" binutils "*) ;;
13596 *) ok=no ;;
13597 esac
1c710c3c 13598
2abefe3d
PB
13599 if test $ok = yes; then
13600 # An in-tree tool is available and we can use it
13601 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13603$as_echo "just compiled" >&6; }
e8b05380
PB
13604 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13605 # We already found the complete path
172e41aa 13606 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13608$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13609 elif test "x$target" = "x$host"; then
13610 # We can use an host tool
13611 AR_FOR_TARGET='$(AR)'
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13613$as_echo "host tool" >&6; }
2abefe3d
PB
13614 else
13615 # We need a cross tool
5213506e
RW
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13617$as_echo "pre-installed" >&6; }
2abefe3d
PB
13618 fi
13619fi
0b0dc272 13620
5213506e
RW
13621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13622$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13623if test "x${build}" != "x${host}" ; then
e8b05380
PB
13624 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13625 # We already found the complete path
172e41aa 13626 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13629 else
13630 # Canadian cross, just use what we found
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13632$as_echo "pre-installed" >&6; }
e8b05380 13633 fi
2abefe3d
PB
13634else
13635 ok=yes
13636 case " ${configdirs} " in
13637 *" gas "*) ;;
13638 *) ok=no ;;
13639 esac
1c710c3c 13640
2abefe3d
PB
13641 if test $ok = yes; then
13642 # An in-tree tool is available and we can use it
13643 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13645$as_echo "just compiled" >&6; }
e8b05380
PB
13646 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13647 # We already found the complete path
172e41aa 13648 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13650$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13651 elif test "x$target" = "x$host"; then
13652 # We can use an host tool
13653 AS_FOR_TARGET='$(AS)'
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13655$as_echo "host tool" >&6; }
2abefe3d
PB
13656 else
13657 # We need a cross tool
5213506e
RW
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659$as_echo "pre-installed" >&6; }
2abefe3d
PB
13660 fi
13661fi
0b0dc272 13662
5213506e
RW
13663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13664$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13665if test "x${build}" != "x${host}" ; then
e8b05380
PB
13666 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
172e41aa 13668 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13671 else
13672 # Canadian cross, just use what we found
5213506e
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13674$as_echo "pre-installed" >&6; }
e8b05380 13675 fi
2abefe3d
PB
13676else
13677 ok=yes
13678 case " ${configdirs} " in
13679 *" gcc "*) ;;
13680 *) ok=no ;;
13681 esac
1c710c3c 13682
2abefe3d
PB
13683 if test $ok = yes; then
13684 # An in-tree tool is available and we can use it
13685 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13687$as_echo "just compiled" >&6; }
e8b05380
PB
13688 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13689 # We already found the complete path
172e41aa 13690 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13692$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13693 elif test "x$target" = "x$host"; then
13694 # We can use an host tool
13695 CC_FOR_TARGET='$(CC)'
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13697$as_echo "host tool" >&6; }
2abefe3d
PB
13698 else
13699 # We need a cross tool
5213506e
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701$as_echo "pre-installed" >&6; }
2abefe3d
PB
13702 fi
13703fi
0b0dc272 13704
5213506e
RW
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13706$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13707if test "x${build}" != "x${host}" ; then
e8b05380
PB
13708 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13709 # We already found the complete path
172e41aa 13710 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13712$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13713 else
13714 # Canadian cross, just use what we found
5213506e
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13716$as_echo "pre-installed" >&6; }
e8b05380 13717 fi
2abefe3d
PB
13718else
13719 ok=yes
13720 case " ${configdirs} " in
13721 *" gcc "*) ;;
13722 *) ok=no ;;
13723 esac
13724 case ,${enable_languages}, in
13725 *,c++,*) ;;
13726 *) ok=no ;;
13727 esac
13728 if test $ok = yes; then
13729 # An in-tree tool is available and we can use it
13730 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
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13732$as_echo "just compiled" >&6; }
e8b05380
PB
13733 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13734 # We already found the complete path
172e41aa 13735 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13737$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13738 elif test "x$target" = "x$host"; then
13739 # We can use an host tool
13740 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13742$as_echo "host tool" >&6; }
2abefe3d
PB
13743 else
13744 # We need a cross tool
5213506e
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13746$as_echo "pre-installed" >&6; }
2abefe3d
PB
13747 fi
13748fi
0b0dc272 13749
5213506e
RW
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13751$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13752if test "x${build}" != "x${host}" ; then
e8b05380
PB
13753 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13754 # We already found the complete path
172e41aa 13755 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13757$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13758 else
13759 # Canadian cross, just use what we found
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761$as_echo "pre-installed" >&6; }
e8b05380 13762 fi
2abefe3d
PB
13763else
13764 ok=yes
13765 case " ${configdirs} " in
13766 *" gcc "*) ;;
13767 *) ok=no ;;
13768 esac
13769 case ,${enable_languages}, in
13770 *,c++,*) ;;
13771 *) ok=no ;;
13772 esac
13773 if test $ok = yes; then
13774 # An in-tree tool is available and we can use it
13775 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
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13777$as_echo "just compiled" >&6; }
e8b05380
PB
13778 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13779 # We already found the complete path
172e41aa 13780 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13782$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13783 elif test "x$target" = "x$host"; then
13784 # We can use an host tool
13785 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13787$as_echo "host tool" >&6; }
2abefe3d
PB
13788 else
13789 # We need a cross tool
5213506e
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13791$as_echo "pre-installed" >&6; }
2abefe3d
PB
13792 fi
13793fi
0b0dc272 13794
5213506e
RW
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13796$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13797if test "x${build}" != "x${host}" ; then
e8b05380
PB
13798 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13799 # We already found the complete path
172e41aa 13800 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13803 else
13804 # Canadian cross, just use what we found
5213506e
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806$as_echo "pre-installed" >&6; }
e8b05380 13807 fi
2abefe3d
PB
13808else
13809 ok=yes
13810 case " ${configdirs} " in
13811 *" binutils "*) ;;
13812 *) ok=no ;;
13813 esac
1c710c3c 13814
2abefe3d
PB
13815 if test $ok = yes; then
13816 # An in-tree tool is available and we can use it
13817 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13819$as_echo "just compiled" >&6; }
e8b05380
PB
13820 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13821 # We already found the complete path
172e41aa 13822 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13824$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13825 elif test "x$target" = "x$host"; then
13826 # We can use an host tool
13827 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13829$as_echo "host tool" >&6; }
2abefe3d
PB
13830 else
13831 # We need a cross tool
5213506e
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13833$as_echo "pre-installed" >&6; }
2abefe3d
PB
13834 fi
13835fi
0b0dc272 13836
5213506e
RW
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13838$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13839if test "x${build}" != "x${host}" ; then
e8b05380
PB
13840 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13841 # We already found the complete path
172e41aa 13842 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13845 else
13846 # Canadian cross, just use what we found
5213506e
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13848$as_echo "pre-installed" >&6; }
e8b05380 13849 fi
2abefe3d
PB
13850else
13851 ok=yes
13852 case " ${configdirs} " in
13853 *" gcc "*) ;;
13854 *) ok=no ;;
13855 esac
1c710c3c 13856
2abefe3d
PB
13857 if test $ok = yes; then
13858 # An in-tree tool is available and we can use it
13859 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13861$as_echo "just compiled" >&6; }
e8b05380
PB
13862 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13863 # We already found the complete path
172e41aa 13864 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13866$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13867 elif test "x$target" = "x$host"; then
13868 # We can use an host tool
13869 GCC_FOR_TARGET='$()'
5213506e
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13871$as_echo "host tool" >&6; }
2abefe3d
PB
13872 else
13873 # We need a cross tool
5213506e
RW
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13875$as_echo "pre-installed" >&6; }
2abefe3d
PB
13876 fi
13877fi
0b0dc272 13878
5213506e
RW
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13880$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13881if test "x${build}" != "x${host}" ; then
e8b05380
PB
13882 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13883 # We already found the complete path
172e41aa 13884 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13886$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13887 else
13888 # Canadian cross, just use what we found
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890$as_echo "pre-installed" >&6; }
e8b05380 13891 fi
2abefe3d
PB
13892else
13893 ok=yes
13894 case " ${configdirs} " in
13895 *" gcc "*) ;;
13896 *) ok=no ;;
13897 esac
13898 case ,${enable_languages}, in
13899 *,java,*) ;;
13900 *) ok=no ;;
13901 esac
13902 if test $ok = yes; then
13903 # An in-tree tool is available and we can use it
13904 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13906$as_echo "just compiled" >&6; }
e8b05380
PB
13907 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13908 # We already found the complete path
172e41aa 13909 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13911$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13912 elif test "x$target" = "x$host"; then
13913 # We can use an host tool
13914 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13916$as_echo "host tool" >&6; }
2abefe3d
PB
13917 else
13918 # We need a cross tool
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13920$as_echo "pre-installed" >&6; }
2abefe3d
PB
13921 fi
13922fi
0b0dc272 13923
5213506e
RW
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13925$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13926if test "x${build}" != "x${host}" ; then
e8b05380
PB
13927 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13928 # We already found the complete path
172e41aa 13929 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13931$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13932 else
13933 # Canadian cross, just use what we found
5213506e
RW
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13935$as_echo "pre-installed" >&6; }
e8b05380 13936 fi
2abefe3d
PB
13937else
13938 ok=yes
13939 case " ${configdirs} " in
13940 *" gcc "*) ;;
13941 *) ok=no ;;
13942 esac
13943 case ,${enable_languages}, in
13944 *,fortran,*) ;;
13945 *) ok=no ;;
13946 esac
13947 if test $ok = yes; then
13948 # An in-tree tool is available and we can use it
13949 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13951$as_echo "just compiled" >&6; }
e8b05380
PB
13952 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13953 # We already found the complete path
172e41aa 13954 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13956$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13957 elif test "x$target" = "x$host"; then
13958 # We can use an host tool
13959 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13961$as_echo "host tool" >&6; }
2abefe3d
PB
13962 else
13963 # We need a cross tool
5213506e
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13965$as_echo "pre-installed" >&6; }
2abefe3d
PB
13966 fi
13967fi
0b0dc272 13968
5213506e
RW
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13970$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13971if test "x${build}" != "x${host}" ; then
e8b05380
PB
13972 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13973 # We already found the complete path
172e41aa 13974 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13976$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13977 else
13978 # Canadian cross, just use what we found
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13980$as_echo "pre-installed" >&6; }
e8b05380 13981 fi
2abefe3d
PB
13982else
13983 ok=yes
13984 case " ${configdirs} " in
13985 *" ld "*) ;;
13986 *) ok=no ;;
13987 esac
1c710c3c 13988
2abefe3d
PB
13989 if test $ok = yes; then
13990 # An in-tree tool is available and we can use it
13991 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13993$as_echo "just compiled" >&6; }
e8b05380
PB
13994 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13995 # We already found the complete path
172e41aa 13996 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13998$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13999 elif test "x$target" = "x$host"; then
14000 # We can use an host tool
14001 LD_FOR_TARGET='$(LD)'
5213506e
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14003$as_echo "host tool" >&6; }
2abefe3d
PB
14004 else
14005 # We need a cross tool
5213506e
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14007$as_echo "pre-installed" >&6; }
2abefe3d
PB
14008 fi
14009fi
0b0dc272 14010
5213506e
RW
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14012$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14013if test "x${build}" != "x${host}" ; then
e8b05380
PB
14014 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14015 # We already found the complete path
172e41aa 14016 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14018$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14019 else
14020 # Canadian cross, just use what we found
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14022$as_echo "pre-installed" >&6; }
e8b05380 14023 fi
2abefe3d 14024else
e8b05380
PB
14025 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14026 # We already found the complete path
172e41aa 14027 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14029$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14030 elif test "x$target" = "x$host"; then
2abefe3d
PB
14031 # We can use an host tool
14032 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14034$as_echo "host tool" >&6; }
2abefe3d
PB
14035 else
14036 # We need a cross tool
5213506e
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14038$as_echo "pre-installed" >&6; }
2abefe3d
PB
14039 fi
14040fi
0b0dc272 14041
5213506e
RW
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14043$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14044if test "x${build}" != "x${host}" ; then
e8b05380
PB
14045 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14046 # We already found the complete path
172e41aa 14047 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14049$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14050 else
14051 # Canadian cross, just use what we found
5213506e
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14053$as_echo "pre-installed" >&6; }
e8b05380 14054 fi
2abefe3d
PB
14055else
14056 ok=yes
14057 case " ${configdirs} " in
14058 *" binutils "*) ;;
14059 *) ok=no ;;
14060 esac
1c710c3c 14061
2abefe3d
PB
14062 if test $ok = yes; then
14063 # An in-tree tool is available and we can use it
14064 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14066$as_echo "just compiled" >&6; }
e8b05380
PB
14067 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14068 # We already found the complete path
172e41aa 14069 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14071$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14072 elif test "x$target" = "x$host"; then
14073 # We can use an host tool
14074 NM_FOR_TARGET='$(NM)'
5213506e
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14076$as_echo "host tool" >&6; }
2abefe3d
PB
14077 else
14078 # We need a cross tool
5213506e
RW
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14080$as_echo "pre-installed" >&6; }
2abefe3d
PB
14081 fi
14082fi
0b0dc272 14083
5213506e
RW
14084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14085$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14086if test "x${build}" != "x${host}" ; then
e8b05380
PB
14087 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14088 # We already found the complete path
172e41aa 14089 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14091$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14092 else
14093 # Canadian cross, just use what we found
5213506e
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14095$as_echo "pre-installed" >&6; }
e8b05380 14096 fi
2abefe3d
PB
14097else
14098 ok=yes
14099 case " ${configdirs} " in
14100 *" binutils "*) ;;
14101 *) ok=no ;;
14102 esac
1c710c3c 14103
2abefe3d
PB
14104 if test $ok = yes; then
14105 # An in-tree tool is available and we can use it
14106 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14108$as_echo "just compiled" >&6; }
e8b05380
PB
14109 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14110 # We already found the complete path
172e41aa 14111 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14113$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14114 elif test "x$target" = "x$host"; then
14115 # We can use an host tool
14116 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14118$as_echo "host tool" >&6; }
2abefe3d
PB
14119 else
14120 # We need a cross tool
5213506e
RW
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14122$as_echo "pre-installed" >&6; }
2abefe3d
PB
14123 fi
14124fi
0b0dc272 14125
5213506e
RW
14126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14127$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14128if test "x${build}" != "x${host}" ; then
e8b05380
PB
14129 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
172e41aa 14131 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14134 else
14135 # Canadian cross, just use what we found
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14137$as_echo "pre-installed" >&6; }
e8b05380 14138 fi
2abefe3d
PB
14139else
14140 ok=yes
14141 case " ${configdirs} " in
14142 *" binutils "*) ;;
14143 *) ok=no ;;
14144 esac
1c710c3c 14145
2abefe3d
PB
14146 if test $ok = yes; then
14147 # An in-tree tool is available and we can use it
14148 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14150$as_echo "just compiled" >&6; }
e8b05380
PB
14151 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14152 # We already found the complete path
172e41aa 14153 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14155$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14156 elif test "x$target" = "x$host"; then
14157 # We can use an host tool
14158 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14160$as_echo "host tool" >&6; }
2abefe3d
PB
14161 else
14162 # We need a cross tool
5213506e
RW
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14164$as_echo "pre-installed" >&6; }
2abefe3d
PB
14165 fi
14166fi
0b0dc272 14167
5213506e
RW
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14169$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14170if test "x${build}" != "x${host}" ; then
e8b05380
PB
14171 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14172 # We already found the complete path
172e41aa 14173 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14175$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14176 else
14177 # Canadian cross, just use what we found
5213506e
RW
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14179$as_echo "pre-installed" >&6; }
e8b05380 14180 fi
2abefe3d
PB
14181else
14182 ok=yes
14183 case " ${configdirs} " in
14184 *" binutils "*) ;;
14185 *) ok=no ;;
14186 esac
1c710c3c 14187
2abefe3d
PB
14188 if test $ok = yes; then
14189 # An in-tree tool is available and we can use it
14190 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
5213506e
RW
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14192$as_echo "just compiled" >&6; }
e8b05380
PB
14193 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14194 # We already found the complete path
172e41aa 14195 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14197$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14198 elif test "x$target" = "x$host"; then
14199 # We can use an host tool
14200 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14202$as_echo "host tool" >&6; }
2abefe3d
PB
14203 else
14204 # We need a cross tool
5213506e
RW
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14206$as_echo "pre-installed" >&6; }
2abefe3d
PB
14207 fi
14208fi
0b0dc272 14209
5213506e
RW
14210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14211$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14212if test "x${build}" != "x${host}" ; then
e8b05380
PB
14213 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14214 # We already found the complete path
172e41aa 14215 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14217$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14218 else
14219 # Canadian cross, just use what we found
5213506e
RW
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14221$as_echo "pre-installed" >&6; }
e8b05380 14222 fi
2abefe3d
PB
14223else
14224 ok=yes
14225 case " ${configdirs} " in
14226 *" binutils "*) ;;
14227 *) ok=no ;;
14228 esac
1c710c3c 14229
2abefe3d
PB
14230 if test $ok = yes; then
14231 # An in-tree tool is available and we can use it
14232 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14234$as_echo "just compiled" >&6; }
e8b05380
PB
14235 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14236 # We already found the complete path
172e41aa 14237 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14239$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14240 elif test "x$target" = "x$host"; then
14241 # We can use an host tool
14242 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14244$as_echo "host tool" >&6; }
2abefe3d
PB
14245 else
14246 # We need a cross tool
5213506e
RW
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14248$as_echo "pre-installed" >&6; }
2abefe3d 14249 fi
671aa708 14250fi
be912515 14251
5213506e
RW
14252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14253$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14254if test "x${build}" != "x${host}" ; then
14255 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14256 # We already found the complete path
14257 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14259$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14260 else
14261 # Canadian cross, just use what we found
5213506e
RW
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14263$as_echo "pre-installed" >&6; }
901119ae
KT
14264 fi
14265else
14266 ok=yes
14267 case " ${configdirs} " in
14268 *" binutils "*) ;;
14269 *) ok=no ;;
14270 esac
14271
14272 if test $ok = yes; then
14273 # An in-tree tool is available and we can use it
14274 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14276$as_echo "just compiled" >&6; }
901119ae
KT
14277 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14278 # We already found the complete path
14279 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14281$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14282 elif test "x$target" = "x$host"; then
14283 # We can use an host tool
14284 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14286$as_echo "host tool" >&6; }
901119ae
KT
14287 else
14288 # We need a cross tool
5213506e
RW
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290$as_echo "pre-installed" >&6; }
901119ae
KT
14291 fi
14292fi
14293
be912515
NN
14294
14295
2abefe3d 14296
0b0dc272 14297
671aa708
NN
14298# Certain tools may need extra flags.
14299AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14300RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14301NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14302
2abefe3d
PB
14303# When building target libraries, except in a Canadian cross, we use
14304# the same toolchain as the compiler we just built.
14305COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14306COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14307COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14308if test $host = $build; then
14309 case " $configdirs " in
14310 *" gcc "*)
14311 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14312 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14313 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14314 ;;
14315 esac
14316fi
14317
14318
14319
14320
14321
5213506e
RW
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14323$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14324# Check whether --enable-maintainer-mode was given.
14325if test "${enable_maintainer_mode+set}" = set; then :
14326 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14327else
14328 USE_MAINTAINER_MODE=no
5213506e
RW
14329fi
14330
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14332$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14333
14334
14335if test "$USE_MAINTAINER_MODE" = yes; then
14336 MAINTAINER_MODE_TRUE=
14337 MAINTAINER_MODE_FALSE='#'
14338else
14339 MAINTAINER_MODE_TRUE='#'
14340 MAINTAINER_MODE_FALSE=
1c710c3c 14341fi
ee03dc5e
AO
14342MAINT=$MAINTAINER_MODE_TRUE
14343
2805b53a
NN
14344# ---------------------
14345# GCC bootstrap support
14346# ---------------------
14347
14348# Stage specific cflags for build.
14349stage1_cflags="-g"
14350case $build in
14351 vax-*-*)
14352 case ${GCC} in
14353 yes) stage1_cflags="-g -Wa,-J" ;;
14354 *) stage1_cflags="-g -J" ;;
14355 esac ;;
2805b53a
NN
14356esac
14357
0b50988a 14358# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 14359if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
14360 saved_CFLAGS="$CFLAGS"
14361
14362 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14363 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14365$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
14367/* end confdefs.h. */
14368
9cc1244e
JJ
14369#if (__GNUC__ < 3) \
14370 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14371 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14372#error http://gcc.gnu.org/PR29382
14373#endif
14374
1c710c3c
DJ
14375int
14376main ()
14377{
14378
14379 ;
14380 return 0;
14381}
14382_ACEOF
5213506e
RW
14383if ac_fn_c_try_compile "$LINENO"; then :
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14385$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14386else
5213506e
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14388$as_echo "no" >&6; }
1c710c3c 14389fi
5213506e 14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14391
14392 CFLAGS="$saved_CFLAGS"
14393fi
14394
14395
2805b53a 14396
8efea775 14397# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14398# Check whether --enable-stage1-checking was given.
14399if test "${enable_stage1_checking+set}" = set; then :
14400 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14401else
e643dc23 14402 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14403 stage1_checking=--enable-checking=yes,types
8efea775 14404else
e643dc23 14405 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14406fi
5213506e 14407fi
8efea775
PB
14408
14409
2aeb72e9 14410
5213506e
RW
14411# Enable -Werror in bootstrap stage2 and later.
14412# Check whether --enable-werror was given.
14413if test "${enable_werror+set}" = set; then :
14414 enableval=$enable_werror;
2805b53a 14415else
416cfb5e 14416 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14417 enable_werror=yes
88fceb68
PB
14418else
14419 enable_werror=no
14420fi
5213506e
RW
14421fi
14422
09a9c095
NN
14423case ${enable_werror} in
14424 yes) stage2_werror_flag="--enable-werror-always" ;;
14425 *) stage2_werror_flag="" ;;
2805b53a
NN
14426esac
14427
14428
f2689b09
SE
14429# Specify what files to not compare during bootstrap.
14430
14431compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14432case "$target" in
14433 hppa*64*-*-hpux*) ;;
14434 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14435esac
f61428ed
AO
14436case " $configdirs " in
14437*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14438esac
f2689b09
SE
14439
14440
5213506e
RW
14441ac_config_files="$ac_config_files Makefile"
14442
1c710c3c 14443cat >confcache <<\_ACEOF
671aa708
NN
14444# This file is a shell script that caches the results of configure
14445# tests run on this system so they can be shared between configure
1c710c3c
DJ
14446# scripts and configure runs, see configure's option --config-cache.
14447# It is not useful on other systems. If it contains results you don't
14448# want to keep, you may remove or edit it.
671aa708 14449#
1c710c3c
DJ
14450# config.status only pays attention to the cache file if you give it
14451# the --recheck option to rerun configure.
671aa708 14452#
1c710c3c
DJ
14453# `ac_cv_env_foo' variables (set or unset) will be overridden when
14454# loading this file, other *unset* `ac_cv_foo' will be assigned the
14455# following values.
14456
14457_ACEOF
14458
671aa708
NN
14459# The following way of writing the cache mishandles newlines in values,
14460# but we know of no workaround that is simple, portable, and efficient.
5213506e 14461# So, we kill variables containing newlines.
671aa708
NN
14462# Ultrix sh set writes to stderr and can't be redirected directly,
14463# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14464(
14465 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14466 eval ac_val=\$$ac_var
14467 case $ac_val in #(
14468 *${as_nl}*)
14469 case $ac_var in #(
14470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14472 esac
14473 case $ac_var in #(
14474 _ | IFS | as_nl) ;; #(
14475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14476 *) { eval $ac_var=; unset $ac_var;} ;;
14477 esac ;;
14478 esac
14479 done
14480
1c710c3c 14481 (set) 2>&1 |
5213506e
RW
14482 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14483 *${as_nl}ac_space=\ *)
14484 # `set' does not quote correctly, so add quotes: double-quote
14485 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14486 sed -n \
14487 "s/'/'\\\\''/g;
14488 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14489 ;; #(
1c710c3c
DJ
14490 *)
14491 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14492 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14493 ;;
5213506e
RW
14494 esac |
14495 sort
14496) |
1c710c3c 14497 sed '
5213506e 14498 /^ac_cv_env_/b end
1c710c3c 14499 t clear
5213506e 14500 :clear
1c710c3c
DJ
14501 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14502 t end
5213506e
RW
14503 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14504 :end' >>confcache
14505if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14506 if test -w "$cache_file"; then
14507 test "x$cache_file" != "x/dev/null" &&
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14509$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14510 cat confcache >$cache_file
671aa708 14511 else
5213506e
RW
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14513$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14514 fi
4977bab6 14515fi
671aa708 14516rm -f confcache
79c06341 14517
671aa708
NN
14518test "x$prefix" = xNONE && prefix=$ac_default_prefix
14519# Let make expand exec_prefix.
14520test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14521
671aa708
NN
14522# Transform confdefs.h into DEFS.
14523# Protect against shell expansion while executing Makefile rules.
14524# Protect against Makefile macro expansion.
1c710c3c
DJ
14525#
14526# If the first sed substitution is executed (which looks for macros that
5213506e 14527# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14528# look for a macro that doesn't take arguments.
5213506e
RW
14529ac_script='
14530:mline
14531/\\$/{
14532 N
14533 s,\\\n,,
14534 b mline
14535}
1c710c3c 14536t clear
5213506e
RW
14537:clear
14538s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14539t quote
5213506e 14540s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14541t quote
5213506e
RW
14542b any
14543:quote
14544s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14545s/\[/\\&/g
14546s/\]/\\&/g
14547s/\$/$$/g
14548H
14549:any
14550${
14551 g
14552 s/^\n//
14553 s/\n/ /g
14554 p
14555}
14556'
14557DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14558
14559
14560ac_libobjs=
14561ac_ltlibobjs=
14562for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14563 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14564 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14565 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14566 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14567 # will be set to the directory where LIBOBJS objects are built.
14568 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14569 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14570done
14571LIBOBJS=$ac_libobjs
fb0103e5 14572
1c710c3c 14573LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14574
af71363e 14575
1c710c3c
DJ
14576
14577: ${CONFIG_STATUS=./config.status}
5213506e 14578ac_write_fail=0
1c710c3c
DJ
14579ac_clean_files_save=$ac_clean_files
14580ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14581{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14582$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14583as_write_fail=0
14584cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14585#! $SHELL
14586# Generated by $as_me.
671aa708 14587# Run this file to recreate the current configuration.
671aa708 14588# Compiler output produced by configure, useful for debugging
1c710c3c 14589# configure, is in config.log if it exists.
0b0dc272 14590
1c710c3c
DJ
14591debug=false
14592ac_cs_recheck=false
14593ac_cs_silent=false
1c710c3c 14594
5213506e
RW
14595SHELL=\${CONFIG_SHELL-$SHELL}
14596export SHELL
14597_ASEOF
14598cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14599## -------------------- ##
14600## M4sh Initialization. ##
14601## -------------------- ##
14602
14603# Be more Bourne compatible
14604DUALCASE=1; export DUALCASE # for MKS sh
14605if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14606 emulate sh
14607 NULLCMD=:
5213506e 14608 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14609 # is contrary to our usage. Disable this feature.
14610 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14611 setopt NO_GLOB_SUBST
14612else
14613 case `(set -o) 2>/dev/null` in #(
14614 *posix*) :
14615 set -o posix ;; #(
14616 *) :
14617 ;;
14618esac
1c710c3c 14619fi
1c710c3c 14620
5213506e
RW
14621
14622as_nl='
14623'
14624export as_nl
14625# Printing a long string crashes Solaris 7 /usr/bin/printf.
14626as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14627as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14628as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14629# Prefer a ksh shell builtin over an external printf program on Solaris,
14630# but without wasting forks for bash or zsh.
14631if test -z "$BASH_VERSION$ZSH_VERSION" \
14632 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14633 as_echo='print -r --'
14634 as_echo_n='print -rn --'
14635elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14636 as_echo='printf %s\n'
14637 as_echo_n='printf %s'
14638else
14639 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14640 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14641 as_echo_n='/usr/ucb/echo -n'
14642 else
14643 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14644 as_echo_n_body='eval
14645 arg=$1;
14646 case $arg in #(
14647 *"$as_nl"*)
14648 expr "X$arg" : "X\\(.*\\)$as_nl";
14649 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14650 esac;
14651 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14652 '
14653 export as_echo_n_body
14654 as_echo_n='sh -c $as_echo_n_body as_echo'
14655 fi
14656 export as_echo_body
14657 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14658fi
14659
5213506e
RW
14660# The user is always right.
14661if test "${PATH_SEPARATOR+set}" != set; then
14662 PATH_SEPARATOR=:
14663 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14664 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14665 PATH_SEPARATOR=';'
14666 }
14667fi
14668
14669
14670# IFS
14671# We need space, tab and new line, in precisely that order. Quoting is
14672# there to prevent editors from complaining about space-tab.
14673# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14674# splitting by setting IFS to empty value.)
14675IFS=" "" $as_nl"
14676
14677# Find who we are. Look in the path if we contain no directory separator.
14678case $0 in #((
14679 *[\\/]* ) as_myself=$0 ;;
14680 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681for as_dir in $PATH
14682do
14683 IFS=$as_save_IFS
14684 test -z "$as_dir" && as_dir=.
14685 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14686 done
14687IFS=$as_save_IFS
14688
14689 ;;
14690esac
14691# We did not find ourselves, most probably we were run as `sh COMMAND'
14692# in which case we are not to be found in the path.
14693if test "x$as_myself" = x; then
14694 as_myself=$0
14695fi
14696if test ! -f "$as_myself"; then
14697 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14698 exit 1
14699fi
1c710c3c 14700
5213506e
RW
14701# Unset variables that we do not need and which cause bugs (e.g. in
14702# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14703# suppresses any "Segmentation fault" message there. '((' could
14704# trigger a bug in pdksh 5.2.14.
14705for as_var in BASH_ENV ENV MAIL MAILPATH
14706do eval test x\${$as_var+set} = xset \
14707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14708done
1c710c3c
DJ
14709PS1='$ '
14710PS2='> '
14711PS4='+ '
14712
14713# NLS nuisances.
5213506e
RW
14714LC_ALL=C
14715export LC_ALL
14716LANGUAGE=C
14717export LANGUAGE
14718
14719# CDPATH.
14720(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14721
14722
14723# as_fn_error ERROR [LINENO LOG_FD]
14724# ---------------------------------
14725# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14726# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14727# script with status $?, using 1 if that was 0.
14728as_fn_error ()
14729{
14730 as_status=$?; test $as_status -eq 0 && as_status=1
14731 if test "$3"; then
14732 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14733 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14734 fi
5213506e
RW
14735 $as_echo "$as_me: error: $1" >&2
14736 as_fn_exit $as_status
14737} # as_fn_error
14738
14739
14740# as_fn_set_status STATUS
14741# -----------------------
14742# Set $? to STATUS, without forking.
14743as_fn_set_status ()
14744{
14745 return $1
14746} # as_fn_set_status
14747
14748# as_fn_exit STATUS
14749# -----------------
14750# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14751as_fn_exit ()
14752{
14753 set +e
14754 as_fn_set_status $1
14755 exit $1
14756} # as_fn_exit
14757
14758# as_fn_unset VAR
14759# ---------------
14760# Portably unset VAR.
14761as_fn_unset ()
14762{
14763 { eval $1=; unset $1;}
14764}
14765as_unset=as_fn_unset
14766# as_fn_append VAR VALUE
14767# ----------------------
14768# Append the text in VALUE to the end of the definition contained in VAR. Take
14769# advantage of any shell optimizations that allow amortized linear growth over
14770# repeated appends, instead of the typical quadratic growth present in naive
14771# implementations.
14772if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14773 eval 'as_fn_append ()
14774 {
14775 eval $1+=\$2
14776 }'
14777else
14778 as_fn_append ()
14779 {
14780 eval $1=\$$1\$2
14781 }
14782fi # as_fn_append
14783
14784# as_fn_arith ARG...
14785# ------------------
14786# Perform arithmetic evaluation on the ARGs, and store the result in the
14787# global $as_val. Take advantage of shells that can avoid forks. The arguments
14788# must be portable across $(()) and expr.
14789if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14790 eval 'as_fn_arith ()
14791 {
14792 as_val=$(( $* ))
14793 }'
14794else
14795 as_fn_arith ()
14796 {
14797 as_val=`expr "$@" || test $? -eq 1`
14798 }
14799fi # as_fn_arith
14800
1c710c3c 14801
5213506e
RW
14802if expr a : '\(a\)' >/dev/null 2>&1 &&
14803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14804 as_expr=expr
14805else
14806 as_expr=false
14807fi
14808
5213506e 14809if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14810 as_basename=basename
14811else
14812 as_basename=false
14813fi
14814
5213506e
RW
14815if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14816 as_dirname=dirname
14817else
14818 as_dirname=false
14819fi
1c710c3c 14820
5213506e 14821as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14822$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14823 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14824 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14825$as_echo X/"$0" |
14826 sed '/^.*\/\([^/][^/]*\)\/*$/{
14827 s//\1/
14828 q
14829 }
14830 /^X\/\(\/\/\)$/{
14831 s//\1/
14832 q
14833 }
14834 /^X\/\(\/\).*/{
14835 s//\1/
14836 q
14837 }
14838 s/.*/./; q'`
2aeb72e9 14839
2aeb72e9
DD
14840# Avoid depending upon Character Ranges.
14841as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14842as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14843as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14844as_cr_digits='0123456789'
14845as_cr_alnum=$as_cr_Letters$as_cr_digits
14846
5213506e
RW
14847ECHO_C= ECHO_N= ECHO_T=
14848case `echo -n x` in #(((((
14849-n*)
14850 case `echo 'xy\c'` in
14851 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14852 xy) ECHO_C='\c';;
14853 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14854 ECHO_T=' ';;
14855 esac;;
14856*)
14857 ECHO_N='-n';;
1c710c3c
DJ
14858esac
14859
5213506e
RW
14860rm -f conf$$ conf$$.exe conf$$.file
14861if test -d conf$$.dir; then
14862 rm -f conf$$.dir/conf$$.file
1c710c3c 14863else
5213506e
RW
14864 rm -f conf$$.dir
14865 mkdir conf$$.dir 2>/dev/null
1c710c3c 14866fi
5213506e
RW
14867if (echo >conf$$.file) 2>/dev/null; then
14868 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14869 as_ln_s='ln -s'
5213506e
RW
14870 # ... but there are two gotchas:
14871 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14872 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14873 # In both cases, we have to default to `cp -p'.
14874 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14875 as_ln_s='cp -p'
14876 elif ln conf$$.file conf$$ 2>/dev/null; then
14877 as_ln_s=ln
14878 else
14879 as_ln_s='cp -p'
2aeb72e9 14880 fi
1c710c3c
DJ
14881else
14882 as_ln_s='cp -p'
14883fi
5213506e
RW
14884rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14885rmdir conf$$.dir 2>/dev/null
14886
14887
14888# as_fn_mkdir_p
14889# -------------
14890# Create "$as_dir" as a directory, including parents if necessary.
14891as_fn_mkdir_p ()
14892{
14893
14894 case $as_dir in #(
14895 -*) as_dir=./$as_dir;;
14896 esac
14897 test -d "$as_dir" || eval $as_mkdir_p || {
14898 as_dirs=
14899 while :; do
14900 case $as_dir in #(
14901 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14902 *) as_qdir=$as_dir;;
14903 esac
14904 as_dirs="'$as_qdir' $as_dirs"
14905 as_dir=`$as_dirname -- "$as_dir" ||
14906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14907 X"$as_dir" : 'X\(//\)[^/]' \| \
14908 X"$as_dir" : 'X\(//\)$' \| \
14909 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14910$as_echo X"$as_dir" |
14911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14912 s//\1/
14913 q
14914 }
14915 /^X\(\/\/\)[^/].*/{
14916 s//\1/
14917 q
14918 }
14919 /^X\(\/\/\)$/{
14920 s//\1/
14921 q
14922 }
14923 /^X\(\/\).*/{
14924 s//\1/
14925 q
14926 }
14927 s/.*/./; q'`
14928 test -d "$as_dir" && break
14929 done
14930 test -z "$as_dirs" || eval "mkdir $as_dirs"
14931 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14932
1c710c3c 14933
5213506e 14934} # as_fn_mkdir_p
1c710c3c 14935if mkdir -p . 2>/dev/null; then
5213506e 14936 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14937else
14938 test -d ./-p && rmdir ./-p
14939 as_mkdir_p=false
14940fi
14941
5213506e
RW
14942if test -x / >/dev/null 2>&1; then
14943 as_test_x='test -x'
14944else
14945 if ls -dL / >/dev/null 2>&1; then
14946 as_ls_L_option=L
14947 else
14948 as_ls_L_option=
14949 fi
14950 as_test_x='
14951 eval sh -c '\''
14952 if test -d "$1"; then
14953 test -d "$1/.";
14954 else
14955 case $1 in #(
14956 -*)set "./$1";;
14957 esac;
14958 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14959 ???[sx]*):;;*)false;;esac;fi
14960 '\'' sh
14961 '
14962fi
14963as_executable_p=$as_test_x
1c710c3c
DJ
14964
14965# Sed expression to map a string onto a valid CPP name.
14966as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14967
14968# Sed expression to map a string onto a valid variable name.
14969as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14970
14971
1c710c3c 14972exec 6>&1
5213506e
RW
14973## ----------------------------------- ##
14974## Main body of $CONFIG_STATUS script. ##
14975## ----------------------------------- ##
14976_ASEOF
14977test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14978
14979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14980# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14981# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14982# values after options handling.
14983ac_log="
1c710c3c 14984This file was extended by $as_me, which was
5213506e 14985generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14986
14987 CONFIG_FILES = $CONFIG_FILES
14988 CONFIG_HEADERS = $CONFIG_HEADERS
14989 CONFIG_LINKS = $CONFIG_LINKS
14990 CONFIG_COMMANDS = $CONFIG_COMMANDS
14991 $ $0 $@
14992
5213506e
RW
14993on `(hostname || uname -n) 2>/dev/null | sed 1q`
14994"
14995
1c710c3c
DJ
14996_ACEOF
14997
5213506e
RW
14998case $ac_config_files in *"
14999"*) set x $ac_config_files; shift; ac_config_files=$*;;
15000esac
1c710c3c 15001
2aeb72e9 15002
2aeb72e9 15003
5213506e
RW
15004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15005# Files that config.status was made for.
15006config_files="$ac_config_files"
1c710c3c 15007
5213506e 15008_ACEOF
2aeb72e9 15009
5213506e 15010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15011ac_cs_usage="\
5213506e
RW
15012\`$as_me' instantiates files and other configuration actions
15013from templates according to the current configuration. Unless the files
15014and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15015
5213506e 15016Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15017
15018 -h, --help print this help, then exit
5213506e
RW
15019 -V, --version print version number and configuration settings, then exit
15020 -q, --quiet, --silent
15021 do not print progress messages
1c710c3c
DJ
15022 -d, --debug don't remove temporary files
15023 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15024 --file=FILE[:TEMPLATE]
15025 instantiate the configuration file FILE
1c710c3c
DJ
15026
15027Configuration files:
15028$config_files
15029
5213506e 15030Report bugs to the package provider."
2aeb72e9 15031
5213506e
RW
15032_ACEOF
15033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15034ac_cs_version="\\
15035config.status
5213506e
RW
15036configured by $0, generated by GNU Autoconf 2.64,
15037 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15038
5213506e 15039Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15040This config.status script is free software; the Free Software Foundation
15041gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15042
15043ac_pwd='$ac_pwd'
15044srcdir='$srcdir'
15045INSTALL='$INSTALL'
87264276 15046AWK='$AWK'
5213506e 15047test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15048_ACEOF
15049
5213506e
RW
15050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15051# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15052ac_need_defaults=:
15053while test $# != 0
a4b9e93e 15054do
1c710c3c
DJ
15055 case $1 in
15056 --*=*)
5213506e
RW
15057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15059 ac_shift=:
15060 ;;
5213506e 15061 *)
1c710c3c
DJ
15062 ac_option=$1
15063 ac_optarg=$2
15064 ac_shift=shift
15065 ;;
1c710c3c
DJ
15066 esac
15067
15068 case $ac_option in
15069 # Handling of the options.
671aa708 15070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15071 ac_cs_recheck=: ;;
5213506e
RW
15072 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15073 $as_echo "$ac_cs_version"; exit ;;
15074 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15075 debug=: ;;
15076 --file | --fil | --fi | --f )
15077 $ac_shift
5213506e
RW
15078 case $ac_optarg in
15079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15080 esac
15081 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15082 ac_need_defaults=false;;
5213506e
RW
15083 --he | --h | --help | --hel | -h )
15084 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15086 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15087 ac_cs_silent=: ;;
15088
15089 # This is an error.
5213506e
RW
15090 -*) as_fn_error "unrecognized option: \`$1'
15091Try \`$0 --help' for more information." ;;
1c710c3c 15092
5213506e
RW
15093 *) as_fn_append ac_config_targets " $1"
15094 ac_need_defaults=false ;;
1c710c3c 15095
0b0dc272 15096 esac
1c710c3c 15097 shift
0b0dc272
AM
15098done
15099
1c710c3c 15100ac_configure_extra_args=
0b0dc272 15101
1c710c3c
DJ
15102if $ac_cs_silent; then
15103 exec 6>/dev/null
15104 ac_configure_extra_args="$ac_configure_extra_args --silent"
15105fi
0b0dc272 15106
1c710c3c 15107_ACEOF
5213506e 15108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15109if \$ac_cs_recheck; then
5213506e
RW
15110 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15111 shift
15112 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15113 CONFIG_SHELL='$SHELL'
15114 export CONFIG_SHELL
15115 exec "\$@"
1c710c3c
DJ
15116fi
15117
15118_ACEOF
5213506e
RW
15119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120exec 5>>config.log
15121{
15122 echo
15123 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15124## Running $as_me. ##
15125_ASBOX
15126 $as_echo "$ac_log"
15127} >&5
1c710c3c 15128
5213506e
RW
15129_ACEOF
15130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15131#
15132# INIT-COMMANDS
15133#
15134extrasub_build="$extrasub_build"
15135 extrasub_host="$extrasub_host"
15136 extrasub_target="$extrasub_target"
15137
5213506e 15138_ACEOF
1c710c3c 15139
5213506e 15140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15141
5213506e 15142# Handling of arguments.
1c710c3c
DJ
15143for ac_config_target in $ac_config_targets
15144do
5213506e
RW
15145 case $ac_config_target in
15146 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15147
15148 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15149 esac
15150done
15151
5213506e 15152
1c710c3c
DJ
15153# If the user did not use the arguments to specify the items to instantiate,
15154# then the envvar interface is used. Set only those that are not.
15155# We use the long form for the default assignment because of an extremely
15156# bizarre bug on SunOS 4.1.3.
15157if $ac_need_defaults; then
15158 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15159fi
15160
15161# Have a temporary directory for convenience. Make it in the build tree
5213506e 15162# simply because there is no reason against having it here, and in addition,
1c710c3c 15163# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15164# Hook for its removal unless debugging.
15165# Note that there is a small window in which the directory will not be cleaned:
15166# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15167$debug ||
15168{
5213506e
RW
15169 tmp=
15170 trap 'exit_status=$?
15171 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15172' 0
15173 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15174}
1c710c3c
DJ
15175# Create a (secure) tmp directory for tmp files.
15176
15177{
5213506e 15178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15179 test -n "$tmp" && test -d "$tmp"
15180} ||
15181{
5213506e
RW
15182 tmp=./conf$$-$RANDOM
15183 (umask 077 && mkdir "$tmp")
15184} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15185
15186# Set up the scripts for CONFIG_FILES section.
15187# No need to generate them if there are no CONFIG_FILES.
15188# This happens for instance with `./config.status config.h'.
15189if test -n "$CONFIG_FILES"; then
15190
15191if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15192 ac_cs_awk_getline=:
15193 ac_cs_awk_pipe_init=
15194 ac_cs_awk_read_file='
15195 while ((getline aline < (F[key])) > 0)
15196 print(aline)
15197 close(F[key])'
15198 ac_cs_awk_pipe_fini=
15199else
15200 ac_cs_awk_getline=false
15201 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15202 ac_cs_awk_read_file='
15203 print "|#_!!_#|"
15204 print "cat " F[key] " &&"
15205 '$ac_cs_awk_pipe_init
15206 # The final `:' finishes the AND list.
15207 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15208fi
15209ac_cr=`echo X | tr X '\015'`
15210# On cygwin, bash can eat \r inside `` if the user requested igncr.
15211# But we know of no other shell where ac_cr would be empty at this
15212# point, so we can use a bashism as a fallback.
15213if test "x$ac_cr" = x; then
15214 eval ac_cr=\$\'\\r\'
15215fi
15216ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15217if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15218 ac_cs_awk_cr='\r'
15219else
15220 ac_cs_awk_cr=$ac_cr
15221fi
15222
15223echo 'BEGIN {' >"$tmp/subs1.awk" &&
15224_ACEOF
15225
15226# Create commands to substitute file output variables.
1c710c3c 15227{
5213506e
RW
15228 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15229 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15230 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15231 echo "_ACAWK" &&
15232 echo "_ACEOF"
15233} >conf$$files.sh &&
15234. ./conf$$files.sh ||
15235 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15236rm -f conf$$files.sh
1c710c3c 15237
5213506e
RW
15238{
15239 echo "cat >conf$$subs.awk <<_ACEOF" &&
15240 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15241 echo "_ACEOF"
15242} >conf$$subs.sh ||
15243 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15244ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15245ac_delim='%!_!# '
15246for ac_last_try in false false false false false :; do
15247 . ./conf$$subs.sh ||
15248 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15249
15250 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15251 if test $ac_delim_n = $ac_delim_num; then
15252 break
15253 elif $ac_last_try; then
15254 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15255 else
15256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15257 fi
15258done
15259rm -f conf$$subs.sh
15260
15261cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15262cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15263_ACEOF
5213506e
RW
15264sed -n '
15265h
15266s/^/S["/; s/!.*/"]=/
15267p
15268g
15269s/^[^!]*!//
15270:repl
15271t repl
15272s/'"$ac_delim"'$//
15273t delim
15274:nl
15275h
15276s/\(.\{148\}\).*/\1/
15277t more1
15278s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15279p
15280n
15281b repl
15282:more1
15283s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15284p
15285g
15286s/.\{148\}//
15287t nl
15288:delim
15289h
15290s/\(.\{148\}\).*/\1/
15291t more2
15292s/["\\]/\\&/g; s/^/"/; s/$/"/
15293p
15294b
15295:more2
15296s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15297p
15298g
15299s/.\{148\}//
15300t delim
15301' <conf$$subs.awk | sed '
15302/^[^""]/{
15303 N
15304 s/\n//
15305}
15306' >>$CONFIG_STATUS || ac_write_fail=1
15307rm -f conf$$subs.awk
15308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15309_ACAWK
15310cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15311 for (key in S) S_is_set[key] = 1
15312 FS = "\a"
15313 \$ac_cs_awk_pipe_init
15314}
15315{
15316 line = $ 0
15317 nfields = split(line, field, "@")
15318 substed = 0
15319 len = length(field[1])
15320 for (i = 2; i < nfields; i++) {
15321 key = field[i]
15322 keylen = length(key)
15323 if (S_is_set[key]) {
15324 value = S[key]
15325 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15326 len += length(value) + length(field[++i])
15327 substed = 1
15328 } else
15329 len += 1 + keylen
15330 }
15331 if (nfields == 3 && !substed) {
15332 key = field[2]
15333 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15334 \$ac_cs_awk_read_file
15335 next
15336 }
15337 }
15338 print line
15339}
15340\$ac_cs_awk_pipe_fini
15341_ACAWK
15342_ACEOF
15343cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15344if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15345 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15346else
15347 cat
15348fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15349 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15350_ACEOF
15351
15352# VPATH may cause trouble with some makes, so we remove $(srcdir),
15353# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15354# trailing colons and then remove the whole line if VPATH becomes empty
15355# (actually we leave an empty line to preserve line numbers).
15356if test "x$srcdir" = x.; then
15357 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15358s/:*\$(srcdir):*/:/
15359s/:*\${srcdir}:*/:/
15360s/:*@srcdir@:*/:/
15361s/^\([^=]*=[ ]*\):*/\1/
15362s/:*$//
15363s/^[^=]*=[ ]*$//
15364}'
15365fi
2aeb72e9 15366
5213506e
RW
15367cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368fi # test -n "$CONFIG_FILES"
2aeb72e9 15369
1c710c3c 15370
5213506e
RW
15371eval set X " :F $CONFIG_FILES "
15372shift
15373for ac_tag
15374do
15375 case $ac_tag in
15376 :[FHLC]) ac_mode=$ac_tag; continue;;
15377 esac
15378 case $ac_mode$ac_tag in
15379 :[FHL]*:*);;
15380 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15381 :[FH]-) ac_tag=-:-;;
15382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15383 esac
15384 ac_save_IFS=$IFS
15385 IFS=:
15386 set x $ac_tag
15387 IFS=$ac_save_IFS
15388 shift
15389 ac_file=$1
15390 shift
79c06341 15391
5213506e
RW
15392 case $ac_mode in
15393 :L) ac_source=$1;;
15394 :[FH])
15395 ac_file_inputs=
15396 for ac_f
15397 do
15398 case $ac_f in
15399 -) ac_f="$tmp/stdin";;
15400 *) # Look for the file first in the build tree, then in the source tree
15401 # (if the path is not absolute). The absolute path cannot be DOS-style,
15402 # because $ac_f cannot contain `:'.
15403 test -f "$ac_f" ||
15404 case $ac_f in
15405 [\\/$]*) false;;
15406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15407 esac ||
15408 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15409 esac
15410 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15411 as_fn_append ac_file_inputs " '$ac_f'"
15412 done
1c710c3c 15413
5213506e
RW
15414 # Let's still pretend it is `configure' which instantiates (i.e., don't
15415 # use $as_me), people would be surprised to read:
15416 # /* config.h. Generated by config.status. */
15417 configure_input='Generated from '`
15418 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15419 `' by configure.'
15420 if test x"$ac_file" != x-; then
15421 configure_input="$ac_file. $configure_input"
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15423$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15424 fi
5213506e
RW
15425 # Neutralize special characters interpreted by sed in replacement strings.
15426 case $configure_input in #(
15427 *\&* | *\|* | *\\* )
15428 ac_sed_conf_input=`$as_echo "$configure_input" |
15429 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15430 *) ac_sed_conf_input=$configure_input;;
15431 esac
11a67599 15432
5213506e
RW
15433 case $ac_tag in
15434 *:-:* | *:-) cat >"$tmp/stdin" \
15435 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15436 esac
15437 ;;
11a67599
ZW
15438 esac
15439
5213506e 15440 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15441$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15442 X"$ac_file" : 'X\(//\)[^/]' \| \
15443 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15445$as_echo X"$ac_file" |
15446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15447 s//\1/
15448 q
15449 }
15450 /^X\(\/\/\)[^/].*/{
15451 s//\1/
15452 q
15453 }
15454 /^X\(\/\/\)$/{
15455 s//\1/
15456 q
15457 }
15458 /^X\(\/\).*/{
15459 s//\1/
15460 q
15461 }
15462 s/.*/./; q'`
15463 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15464 ac_builddir=.
0b0dc272 15465
5213506e
RW
15466case "$ac_dir" in
15467.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15468*)
15469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15470 # A ".." for each directory in $ac_dir_suffix.
15471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15472 case $ac_top_builddir_sub in
15473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15475 esac ;;
15476esac
15477ac_abs_top_builddir=$ac_pwd
15478ac_abs_builddir=$ac_pwd$ac_dir_suffix
15479# for backward compatibility:
15480ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15481
15482case $srcdir in
5213506e 15483 .) # We are building in place.
1c710c3c 15484 ac_srcdir=.
5213506e
RW
15485 ac_top_srcdir=$ac_top_builddir_sub
15486 ac_abs_top_srcdir=$ac_pwd ;;
15487 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15488 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15489 ac_top_srcdir=$srcdir
15490 ac_abs_top_srcdir=$srcdir ;;
15491 *) # Relative name.
15492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15493 ac_top_srcdir=$ac_top_build_prefix$srcdir
15494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15495esac
5213506e 15496ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15497
0b0dc272 15498
5213506e
RW
15499 case $ac_mode in
15500 :F)
15501 #
15502 # CONFIG_FILE
15503 #
1c710c3c
DJ
15504
15505 case $INSTALL in
15506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15507 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15508 esac
5213506e 15509_ACEOF
11a67599 15510
5213506e
RW
15511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15512# If the template does not know about datarootdir, expand it.
15513# FIXME: This hack should be removed a few years after 2.60.
15514ac_datarootdir_hack=; ac_datarootdir_seen=
15515ac_sed_dataroot='
15516/datarootdir/ {
15517 p
15518 q
15519}
15520/@datadir@/p
15521/@docdir@/p
15522/@infodir@/p
15523/@localedir@/p
15524/@mandir@/p'
15525case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15526*datarootdir*) ac_datarootdir_seen=yes;;
15527*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15529$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15530_ACEOF
5213506e
RW
15531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15532 ac_datarootdir_hack='
15533 s&@datadir@&$datadir&g
15534 s&@docdir@&$docdir&g
15535 s&@infodir@&$infodir&g
15536 s&@localedir@&$localedir&g
15537 s&@mandir@&$mandir&g
15538 s&\\\${datarootdir}&$datarootdir&g' ;;
15539esac
15540_ACEOF
15541
15542# Neutralize VPATH when `$srcdir' = `.'.
15543# Shell code in configure.ac might set extrasub.
15544# FIXME: do we really want to maintain this feature?
15545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15547$extrasub
15548_ACEOF
5213506e 15549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15550:t
15551/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15552s|@configure_input@|$ac_sed_conf_input|;t t
15553s&@top_builddir@&$ac_top_builddir_sub&;t t
15554s&@top_build_prefix@&$ac_top_build_prefix&;t t
15555s&@srcdir@&$ac_srcdir&;t t
15556s&@abs_srcdir@&$ac_abs_srcdir&;t t
15557s&@top_srcdir@&$ac_top_srcdir&;t t
15558s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15559s&@builddir@&$ac_builddir&;t t
15560s&@abs_builddir@&$ac_abs_builddir&;t t
15561s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15562s&@INSTALL@&$ac_INSTALL&;t t
15563$ac_datarootdir_hack
15564"
15565eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15566if $ac_cs_awk_getline; then
15567 $AWK -f "$tmp/subs.awk"
15568else
15569 $AWK -f "$tmp/subs.awk" | $SHELL
15570fi >$tmp/out \
15571 || as_fn_error "could not create $ac_file" "$LINENO" 5
15572
15573test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15577which seems to be undefined. Please make sure it is defined." >&5
15578$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15579which seems to be undefined. Please make sure it is defined." >&2;}
15580
15581 rm -f "$tmp/stdin"
15582 case $ac_file in
15583 -) cat "$tmp/out" && rm -f "$tmp/out";;
15584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15585 esac \
15586 || as_fn_error "could not create $ac_file" "$LINENO" 5
15587 ;;
11a67599 15588
11a67599 15589
79c06341 15590
5213506e
RW
15591 esac
15592
3e54529c
RW
15593
15594 case $ac_file$ac_mode in
15595 "Makefile":F) sed "$extrasub_build" Makefile |
15596 sed "$extrasub_host" |
15597 sed "$extrasub_target" > mf$$
15598 mv -f mf$$ Makefile ;;
15599
15600 esac
5213506e
RW
15601done # for ac_tag
15602
15603
15604as_fn_exit 0
1c710c3c 15605_ACEOF
1c710c3c
DJ
15606ac_clean_files=$ac_clean_files_save
15607
5213506e
RW
15608test $ac_write_fail = 0 ||
15609 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15610
1c710c3c
DJ
15611
15612# configure is writing to config.log, and then calls config.status.
15613# config.status does its own redirection, appending to config.log.
15614# Unfortunately, on DOS this fails, as config.log is still kept open
15615# by configure, so config.status won't be able to write to it; its
15616# output is simply discarded. So we exec the FD to /dev/null,
15617# effectively closing config.log, so it can be properly (re)opened and
15618# appended to by config.status. When coming back to configure, we
15619# need to make the FD available again.
15620if test "$no_create" != yes; then
15621 ac_cs_success=:
15622 ac_config_status_args=
15623 test "$silent" = yes &&
15624 ac_config_status_args="$ac_config_status_args --quiet"
15625 exec 5>/dev/null
15626 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15627 exec 5>>config.log
15628 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15629 # would make configure fail if this is the last instruction.
5213506e
RW
15630 $ac_cs_success || as_fn_exit $?
15631fi
15632if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15634$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15635fi
79c06341 15636