]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgcc/configure
patch_tester.sh (nopristinecache): New shell var, set according to presence or absenc...
[thirdparty/gcc.git] / libgcc / configure
CommitLineData
fa958513
DJ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64 for GNU C Runtime Library 1.0.
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.
fa958513 8#
fa958513
DJ
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## -------------------- ##
fa958513 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 :
fa958513
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fa958513
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
fa958513 31fi
fa958513 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'
fa958513 50else
5213506e
RW
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 }
fa958513
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
fa958513
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'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
172 if (eval "$as_required") 2>/dev/null; then :
173 as_have_required=yes
174else
175 as_have_required=no
176fi
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
178
179else
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181as_found=false
182for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
fa958513 183do
5213506e
RW
184 IFS=$as_save_IFS
185 test -z "$as_dir" && as_dir=.
186 as_found=:
187 case $as_dir in #(
188 /*)
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 break 2
197fi
198fi
199 done;;
200 esac
201 as_found=false
202done
203$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
206fi; }
207IFS=$as_save_IFS
208
209
210 if test "x$CONFIG_SHELL" != x; then :
211 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables.
214 BASH_ENV=/dev/null
215 ENV=/dev/null
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217 export CONFIG_SHELL
218 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
219fi
220
221 if test x$as_have_required = xno; then :
222 $as_echo "$0: This script requires a shell more modern than all"
223 $as_echo "$0: the shells that I found on your system."
224 if test x${ZSH_VERSION+set} = xset ; then
225 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
fa958513 227 else
5213506e
RW
228 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229$0: including any error possibly output before this
230$0: message. Then install a modern shell, or manually run
231$0: the script under such a shell if you do have one."
fa958513 232 fi
5213506e
RW
233 exit 1
234fi
235fi
236fi
237SHELL=${CONFIG_SHELL-/bin/sh}
238export SHELL
239# Unset more variables known to interfere with behavior of common tools.
240CLICOLOR_FORCE= GREP_OPTIONS=
241unset CLICOLOR_FORCE GREP_OPTIONS
242
243## --------------------- ##
244## M4sh Shell Functions. ##
245## --------------------- ##
246# as_fn_unset VAR
247# ---------------
248# Portably unset VAR.
249as_fn_unset ()
250{
251 { eval $1=; unset $1;}
252}
253as_unset=as_fn_unset
254
255# as_fn_set_status STATUS
256# -----------------------
257# Set $? to STATUS, without forking.
258as_fn_set_status ()
259{
260 return $1
261} # as_fn_set_status
262
263# as_fn_exit STATUS
264# -----------------
265# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266as_fn_exit ()
267{
268 set +e
269 as_fn_set_status $1
270 exit $1
271} # as_fn_exit
272
273# as_fn_mkdir_p
274# -------------
275# Create "$as_dir" as a directory, including parents if necessary.
276as_fn_mkdir_p ()
277{
278
279 case $as_dir in #(
280 -*) as_dir=./$as_dir;;
281 esac
282 test -d "$as_dir" || eval $as_mkdir_p || {
283 as_dirs=
284 while :; do
285 case $as_dir in #(
286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287 *) as_qdir=$as_dir;;
288 esac
289 as_dirs="'$as_qdir' $as_dirs"
290 as_dir=`$as_dirname -- "$as_dir" ||
291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292 X"$as_dir" : 'X\(//\)[^/]' \| \
293 X"$as_dir" : 'X\(//\)$' \| \
294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295$as_echo X"$as_dir" |
296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297 s//\1/
298 q
299 }
300 /^X\(\/\/\)[^/].*/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)$/{
305 s//\1/
306 q
307 }
308 /^X\(\/\).*/{
309 s//\1/
310 q
311 }
312 s/.*/./; q'`
313 test -d "$as_dir" && break
314 done
315 test -z "$as_dirs" || eval "mkdir $as_dirs"
316 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
317
318
319} # as_fn_mkdir_p
320# as_fn_append VAR VALUE
321# ----------------------
322# Append the text in VALUE to the end of the definition contained in VAR. Take
323# advantage of any shell optimizations that allow amortized linear growth over
324# repeated appends, instead of the typical quadratic growth present in naive
325# implementations.
326if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327 eval 'as_fn_append ()
328 {
329 eval $1+=\$2
330 }'
331else
332 as_fn_append ()
333 {
334 eval $1=\$$1\$2
335 }
336fi # as_fn_append
337
338# as_fn_arith ARG...
339# ------------------
340# Perform arithmetic evaluation on the ARGs, and store the result in the
341# global $as_val. Take advantage of shells that can avoid forks. The arguments
342# must be portable across $(()) and expr.
343if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344 eval 'as_fn_arith ()
345 {
346 as_val=$(( $* ))
347 }'
348else
349 as_fn_arith ()
350 {
351 as_val=`expr "$@" || test $? -eq 1`
352 }
353fi # as_fn_arith
354
355
356# as_fn_error ERROR [LINENO LOG_FD]
357# ---------------------------------
358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360# script with status $?, using 1 if that was 0.
361as_fn_error ()
362{
363 as_status=$?; test $as_status -eq 0 && as_status=1
364 if test "$3"; then
365 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
367 fi
368 $as_echo "$as_me: error: $1" >&2
369 as_fn_exit $as_status
370} # as_fn_error
fa958513 371
5213506e
RW
372if expr a : '\(a\)' >/dev/null 2>&1 &&
373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fa958513
DJ
374 as_expr=expr
375else
376 as_expr=false
377fi
378
5213506e 379if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fa958513
DJ
380 as_basename=basename
381else
382 as_basename=false
383fi
384
5213506e
RW
385if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386 as_dirname=dirname
387else
388 as_dirname=false
389fi
fa958513 390
5213506e 391as_me=`$as_basename -- "$0" ||
fa958513
DJ
392$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393 X"$0" : 'X\(//\)$' \| \
5213506e
RW
394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395$as_echo X/"$0" |
396 sed '/^.*\/\([^/][^/]*\)\/*$/{
397 s//\1/
398 q
399 }
400 /^X\/\(\/\/\)$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\).*/{
405 s//\1/
406 q
407 }
408 s/.*/./; q'`
fa958513 409
d6efbf5a
DJ
410# Avoid depending upon Character Ranges.
411as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414as_cr_digits='0123456789'
415as_cr_alnum=$as_cr_Letters$as_cr_digits
14e8fc8b 416
fa958513 417
5213506e
RW
418 as_lineno_1=$LINENO as_lineno_1a=$LINENO
419 as_lineno_2=$LINENO as_lineno_2a=$LINENO
420 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
423 sed -n '
424 p
425 /[$]LINENO/=
426 ' <$as_myself |
fa958513 427 sed '
5213506e
RW
428 s/[$]LINENO.*/&-/
429 t lineno
430 b
431 :lineno
fa958513 432 N
5213506e
RW
433 :loop
434 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
fa958513 435 t loop
5213506e 436 s/-\n.*//
fa958513 437 ' >$as_me.lineno &&
5213506e
RW
438 chmod +x "$as_me.lineno" ||
439 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
fa958513
DJ
440
441 # Don't try to exec as it changes $[0], causing all sort of problems
442 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
443 # original and so on. Autoconf is especially sensitive to this).
444 . "./$as_me.lineno"
fa958513
DJ
445 # Exit status is that of the last command.
446 exit
447}
448
5213506e
RW
449ECHO_C= ECHO_N= ECHO_T=
450case `echo -n x` in #(((((
451-n*)
452 case `echo 'xy\c'` in
453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
454 xy) ECHO_C='\c';;
455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
456 ECHO_T=' ';;
457 esac;;
458*)
459 ECHO_N='-n';;
fa958513
DJ
460esac
461
5213506e
RW
462rm -f conf$$ conf$$.exe conf$$.file
463if test -d conf$$.dir; then
464 rm -f conf$$.dir/conf$$.file
fa958513 465else
5213506e
RW
466 rm -f conf$$.dir
467 mkdir conf$$.dir 2>/dev/null
fa958513 468fi
5213506e
RW
469if (echo >conf$$.file) 2>/dev/null; then
470 if ln -s conf$$.file conf$$ 2>/dev/null; then
d6efbf5a 471 as_ln_s='ln -s'
5213506e
RW
472 # ... but there are two gotchas:
473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475 # In both cases, we have to default to `cp -p'.
476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477 as_ln_s='cp -p'
478 elif ln conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s=ln
480 else
481 as_ln_s='cp -p'
d6efbf5a 482 fi
fa958513
DJ
483else
484 as_ln_s='cp -p'
485fi
5213506e
RW
486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487rmdir conf$$.dir 2>/dev/null
fa958513
DJ
488
489if mkdir -p . 2>/dev/null; then
5213506e 490 as_mkdir_p='mkdir -p "$as_dir"'
fa958513
DJ
491else
492 test -d ./-p && rmdir ./-p
493 as_mkdir_p=false
494fi
495
5213506e
RW
496if test -x / >/dev/null 2>&1; then
497 as_test_x='test -x'
498else
499 if ls -dL / >/dev/null 2>&1; then
500 as_ls_L_option=L
501 else
502 as_ls_L_option=
503 fi
504 as_test_x='
505 eval sh -c '\''
506 if test -d "$1"; then
507 test -d "$1/.";
508 else
509 case $1 in #(
510 -*)set "./$1";;
511 esac;
512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513 ???[sx]*):;;*)false;;esac;fi
514 '\'' sh
515 '
516fi
517as_executable_p=$as_test_x
fa958513
DJ
518
519# Sed expression to map a string onto a valid CPP name.
520as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
521
522# Sed expression to map a string onto a valid variable name.
523as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
524
525
5213506e 526exec 7<&0 </dev/null 6>&1
fa958513
DJ
527
528# Name of the host.
529# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530# so uname gets run too.
531ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
532
fa958513
DJ
533#
534# Initializations.
535#
536ac_default_prefix=/usr/local
5213506e 537ac_clean_files=
fa958513 538ac_config_libobj_dir=.
5213506e 539LIBOBJS=
fa958513
DJ
540cross_compiling=no
541subdirs=
542MFLAGS=
543MAKEFLAGS=
d6efbf5a 544
fa958513
DJ
545# Identity of this package.
546PACKAGE_NAME='GNU C Runtime Library'
547PACKAGE_TARNAME='libgcc'
548PACKAGE_VERSION='1.0'
549PACKAGE_STRING='GNU C Runtime Library 1.0'
550PACKAGE_BUGREPORT=''
5213506e 551PACKAGE_URL='http://www.gnu.org/software/libgcc/'
fa958513
DJ
552
553ac_unique_file="static-object.mk"
5213506e
RW
554ac_subst_vars='LTLIBOBJS
555LIBOBJS
556asm_hidden_op
557extra_parts
558tmake_file
368fabd5 559set_use_emutls
5213506e
RW
560set_have_cc_tls
561vis_hide
562fixed_point
563enable_decimal_float
564decimal_float
565CPP
566OBJEXT
567EXEEXT
568ac_ct_CC
569CPPFLAGS
570LDFLAGS
571CFLAGS
572CC
573LN_S
574STRIP
575RANLIB
576NM
577LIPO
578AR
579target_subdir
580host_subdir
581build_subdir
582build_libsubdir
583host_noncanonical
584host_os
585host_vendor
586host_cpu
587host
588build_os
589build_vendor
590build_cpu
591build
592AWK
593INSTALL_DATA
594INSTALL_SCRIPT
595INSTALL_PROGRAM
596MAINT
597slibdir
598enable_shared
599libgcc_topdir
600target_alias
601host_alias
602build_alias
603LIBS
604ECHO_T
605ECHO_N
606ECHO_C
607DEFS
608mandir
609localedir
610libdir
611psdir
612pdfdir
613dvidir
614htmldir
615infodir
616docdir
617oldincludedir
618includedir
619localstatedir
620sharedstatedir
621sysconfdir
622datadir
623datarootdir
624libexecdir
625sbindir
626bindir
627program_transform_name
628prefix
629exec_prefix
630PACKAGE_URL
631PACKAGE_BUGREPORT
632PACKAGE_STRING
633PACKAGE_VERSION
634PACKAGE_TARNAME
635PACKAGE_NAME
636PATH_SEPARATOR
637SHELL'
fa958513 638ac_subst_files=''
5213506e
RW
639ac_user_opts='
640enable_option_checking
641with_target_subdir
642with_cross_host
643with_ld
644enable_shared
645enable_version_specific_runtime_libs
646with_slibdir
647enable_maintainer_mode
648with_build_libsubdir
649enable_decimal_float
650enable_tls
651'
652 ac_precious_vars='build_alias
653host_alias
654target_alias
655CC
656CFLAGS
657LDFLAGS
658LIBS
659CPPFLAGS
660CPP'
661
fa958513
DJ
662
663# Initialize some variables set by options.
664ac_init_help=
665ac_init_version=false
5213506e
RW
666ac_unrecognized_opts=
667ac_unrecognized_sep=
fa958513
DJ
668# The variables have the same names as the options, with
669# dashes changed to underlines.
670cache_file=/dev/null
671exec_prefix=NONE
672no_create=
673no_recursion=
674prefix=NONE
675program_prefix=NONE
676program_suffix=NONE
677program_transform_name=s,x,x,
678silent=
679site=
680srcdir=
681verbose=
682x_includes=NONE
683x_libraries=NONE
684
685# Installation directory options.
686# These are left unexpanded so users can "make install exec_prefix=/foo"
687# and all the variables that are supposed to be based on exec_prefix
688# by default will actually change.
689# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 690# (The list follows the same order as the GNU Coding Standards.)
fa958513
DJ
691bindir='${exec_prefix}/bin'
692sbindir='${exec_prefix}/sbin'
693libexecdir='${exec_prefix}/libexec'
5213506e
RW
694datarootdir='${prefix}/share'
695datadir='${datarootdir}'
fa958513
DJ
696sysconfdir='${prefix}/etc'
697sharedstatedir='${prefix}/com'
698localstatedir='${prefix}/var'
fa958513
DJ
699includedir='${prefix}/include'
700oldincludedir='/usr/include'
5213506e
RW
701docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
702infodir='${datarootdir}/info'
703htmldir='${docdir}'
704dvidir='${docdir}'
705pdfdir='${docdir}'
706psdir='${docdir}'
707libdir='${exec_prefix}/lib'
708localedir='${datarootdir}/locale'
709mandir='${datarootdir}/man'
fa958513
DJ
710
711ac_prev=
5213506e 712ac_dashdash=
fa958513
DJ
713for ac_option
714do
715 # If the previous option needs an argument, assign it.
716 if test -n "$ac_prev"; then
5213506e 717 eval $ac_prev=\$ac_option
fa958513
DJ
718 ac_prev=
719 continue
720 fi
721
5213506e
RW
722 case $ac_option in
723 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
724 *) ac_optarg=yes ;;
725 esac
fa958513
DJ
726
727 # Accept the important Cygnus configure options, so we can diagnose typos.
728
5213506e
RW
729 case $ac_dashdash$ac_option in
730 --)
731 ac_dashdash=yes ;;
fa958513
DJ
732
733 -bindir | --bindir | --bindi | --bind | --bin | --bi)
734 ac_prev=bindir ;;
735 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
736 bindir=$ac_optarg ;;
737
738 -build | --build | --buil | --bui | --bu)
739 ac_prev=build_alias ;;
740 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
741 build_alias=$ac_optarg ;;
742
743 -cache-file | --cache-file | --cache-fil | --cache-fi \
744 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
745 ac_prev=cache_file ;;
746 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
747 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
748 cache_file=$ac_optarg ;;
749
750 --config-cache | -C)
751 cache_file=config.cache ;;
752
5213506e 753 -datadir | --datadir | --datadi | --datad)
fa958513 754 ac_prev=datadir ;;
5213506e 755 -datadir=* | --datadir=* | --datadi=* | --datad=*)
fa958513
DJ
756 datadir=$ac_optarg ;;
757
5213506e
RW
758 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
759 | --dataroo | --dataro | --datar)
760 ac_prev=datarootdir ;;
761 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
762 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
763 datarootdir=$ac_optarg ;;
764
fa958513 765 -disable-* | --disable-*)
5213506e 766 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
fa958513 767 # Reject names that are not valid shell variable names.
5213506e
RW
768 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
769 as_fn_error "invalid feature name: $ac_useropt"
770 ac_useropt_orig=$ac_useropt
771 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
772 case $ac_user_opts in
773 *"
774"enable_$ac_useropt"
775"*) ;;
776 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
777 ac_unrecognized_sep=', ';;
778 esac
779 eval enable_$ac_useropt=no ;;
780
781 -docdir | --docdir | --docdi | --doc | --do)
782 ac_prev=docdir ;;
783 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
784 docdir=$ac_optarg ;;
785
786 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
787 ac_prev=dvidir ;;
788 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
789 dvidir=$ac_optarg ;;
fa958513
DJ
790
791 -enable-* | --enable-*)
5213506e 792 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
fa958513 793 # Reject names that are not valid shell variable names.
5213506e
RW
794 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
795 as_fn_error "invalid feature name: $ac_useropt"
796 ac_useropt_orig=$ac_useropt
797 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
798 case $ac_user_opts in
799 *"
800"enable_$ac_useropt"
801"*) ;;
802 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
803 ac_unrecognized_sep=', ';;
d6efbf5a 804 esac
5213506e 805 eval enable_$ac_useropt=\$ac_optarg ;;
fa958513
DJ
806
807 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
808 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
809 | --exec | --exe | --ex)
810 ac_prev=exec_prefix ;;
811 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
812 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
813 | --exec=* | --exe=* | --ex=*)
814 exec_prefix=$ac_optarg ;;
815
816 -gas | --gas | --ga | --g)
817 # Obsolete; use --with-gas.
818 with_gas=yes ;;
819
820 -help | --help | --hel | --he | -h)
821 ac_init_help=long ;;
822 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
823 ac_init_help=recursive ;;
824 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
825 ac_init_help=short ;;
826
827 -host | --host | --hos | --ho)
828 ac_prev=host_alias ;;
829 -host=* | --host=* | --hos=* | --ho=*)
830 host_alias=$ac_optarg ;;
831
5213506e
RW
832 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
833 ac_prev=htmldir ;;
834 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
835 | --ht=*)
836 htmldir=$ac_optarg ;;
837
fa958513
DJ
838 -includedir | --includedir | --includedi | --included | --include \
839 | --includ | --inclu | --incl | --inc)
840 ac_prev=includedir ;;
841 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
842 | --includ=* | --inclu=* | --incl=* | --inc=*)
843 includedir=$ac_optarg ;;
844
845 -infodir | --infodir | --infodi | --infod | --info | --inf)
846 ac_prev=infodir ;;
847 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
848 infodir=$ac_optarg ;;
849
850 -libdir | --libdir | --libdi | --libd)
851 ac_prev=libdir ;;
852 -libdir=* | --libdir=* | --libdi=* | --libd=*)
853 libdir=$ac_optarg ;;
854
855 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
856 | --libexe | --libex | --libe)
857 ac_prev=libexecdir ;;
858 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
859 | --libexe=* | --libex=* | --libe=*)
860 libexecdir=$ac_optarg ;;
861
5213506e
RW
862 -localedir | --localedir | --localedi | --localed | --locale)
863 ac_prev=localedir ;;
864 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
865 localedir=$ac_optarg ;;
866
fa958513 867 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 868 | --localstate | --localstat | --localsta | --localst | --locals)
fa958513
DJ
869 ac_prev=localstatedir ;;
870 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 871 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
fa958513
DJ
872 localstatedir=$ac_optarg ;;
873
874 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
875 ac_prev=mandir ;;
876 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
877 mandir=$ac_optarg ;;
878
879 -nfp | --nfp | --nf)
880 # Obsolete; use --without-fp.
881 with_fp=no ;;
882
883 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
884 | --no-cr | --no-c | -n)
885 no_create=yes ;;
886
887 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
888 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
889 no_recursion=yes ;;
890
891 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
892 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
893 | --oldin | --oldi | --old | --ol | --o)
894 ac_prev=oldincludedir ;;
895 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
896 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
897 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
898 oldincludedir=$ac_optarg ;;
899
900 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
901 ac_prev=prefix ;;
902 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
903 prefix=$ac_optarg ;;
904
905 -program-prefix | --program-prefix | --program-prefi | --program-pref \
906 | --program-pre | --program-pr | --program-p)
907 ac_prev=program_prefix ;;
908 -program-prefix=* | --program-prefix=* | --program-prefi=* \
909 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
910 program_prefix=$ac_optarg ;;
911
912 -program-suffix | --program-suffix | --program-suffi | --program-suff \
913 | --program-suf | --program-su | --program-s)
914 ac_prev=program_suffix ;;
915 -program-suffix=* | --program-suffix=* | --program-suffi=* \
916 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
917 program_suffix=$ac_optarg ;;
918
919 -program-transform-name | --program-transform-name \
920 | --program-transform-nam | --program-transform-na \
921 | --program-transform-n | --program-transform- \
922 | --program-transform | --program-transfor \
923 | --program-transfo | --program-transf \
924 | --program-trans | --program-tran \
925 | --progr-tra | --program-tr | --program-t)
926 ac_prev=program_transform_name ;;
927 -program-transform-name=* | --program-transform-name=* \
928 | --program-transform-nam=* | --program-transform-na=* \
929 | --program-transform-n=* | --program-transform-=* \
930 | --program-transform=* | --program-transfor=* \
931 | --program-transfo=* | --program-transf=* \
932 | --program-trans=* | --program-tran=* \
933 | --progr-tra=* | --program-tr=* | --program-t=*)
934 program_transform_name=$ac_optarg ;;
935
5213506e
RW
936 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
937 ac_prev=pdfdir ;;
938 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
939 pdfdir=$ac_optarg ;;
940
941 -psdir | --psdir | --psdi | --psd | --ps)
942 ac_prev=psdir ;;
943 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
944 psdir=$ac_optarg ;;
945
fa958513
DJ
946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
947 | -silent | --silent | --silen | --sile | --sil)
948 silent=yes ;;
949
950 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
951 ac_prev=sbindir ;;
952 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
953 | --sbi=* | --sb=*)
954 sbindir=$ac_optarg ;;
955
956 -sharedstatedir | --sharedstatedir | --sharedstatedi \
957 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
958 | --sharedst | --shareds | --shared | --share | --shar \
959 | --sha | --sh)
960 ac_prev=sharedstatedir ;;
961 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
962 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
963 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
964 | --sha=* | --sh=*)
965 sharedstatedir=$ac_optarg ;;
966
967 -site | --site | --sit)
968 ac_prev=site ;;
969 -site=* | --site=* | --sit=*)
970 site=$ac_optarg ;;
971
972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
973 ac_prev=srcdir ;;
974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
975 srcdir=$ac_optarg ;;
976
977 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
978 | --syscon | --sysco | --sysc | --sys | --sy)
979 ac_prev=sysconfdir ;;
980 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
981 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
982 sysconfdir=$ac_optarg ;;
983
984 -target | --target | --targe | --targ | --tar | --ta | --t)
985 ac_prev=target_alias ;;
986 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
987 target_alias=$ac_optarg ;;
988
989 -v | -verbose | --verbose | --verbos | --verbo | --verb)
990 verbose=yes ;;
991
992 -version | --version | --versio | --versi | --vers | -V)
993 ac_init_version=: ;;
994
995 -with-* | --with-*)
5213506e 996 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
fa958513 997 # Reject names that are not valid shell variable names.
5213506e
RW
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error "invalid package name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004"with_$ac_useropt"
1005"*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
d6efbf5a 1008 esac
5213506e 1009 eval with_$ac_useropt=\$ac_optarg ;;
fa958513
DJ
1010
1011 -without-* | --without-*)
5213506e 1012 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
fa958513 1013 # Reject names that are not valid shell variable names.
5213506e
RW
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error "invalid package name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020"with_$ac_useropt"
1021"*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval with_$ac_useropt=no ;;
fa958513
DJ
1026
1027 --x)
1028 # Obsolete; use --with-x.
1029 with_x=yes ;;
1030
1031 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1032 | --x-incl | --x-inc | --x-in | --x-i)
1033 ac_prev=x_includes ;;
1034 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1035 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1036 x_includes=$ac_optarg ;;
1037
1038 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1039 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1040 ac_prev=x_libraries ;;
1041 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1042 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1043 x_libraries=$ac_optarg ;;
1044
5213506e
RW
1045 -*) as_fn_error "unrecognized option: \`$ac_option'
1046Try \`$0 --help' for more information."
fa958513
DJ
1047 ;;
1048
1049 *=*)
1050 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1051 # Reject names that are not valid shell variable names.
5213506e
RW
1052 case $ac_envvar in #(
1053 '' | [0-9]* | *[!_$as_cr_alnum]* )
1054 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1055 esac
1056 eval $ac_envvar=\$ac_optarg
fa958513
DJ
1057 export $ac_envvar ;;
1058
1059 *)
1060 # FIXME: should be removed in autoconf 3.0.
5213506e 1061 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
fa958513 1062 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1063 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
fa958513
DJ
1064 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1065 ;;
1066
1067 esac
1068done
1069
1070if test -n "$ac_prev"; then
1071 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1072 as_fn_error "missing argument to $ac_option"
fa958513
DJ
1073fi
1074
5213506e
RW
1075if test -n "$ac_unrecognized_opts"; then
1076 case $enable_option_checking in
1077 no) ;;
1078 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1079 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
d6efbf5a 1080 esac
5213506e 1081fi
d6efbf5a 1082
5213506e
RW
1083# Check all directory arguments for consistency.
1084for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1085 datadir sysconfdir sharedstatedir localstatedir includedir \
1086 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1087 libdir localedir mandir
d6efbf5a 1088do
5213506e
RW
1089 eval ac_val=\$$ac_var
1090 # Remove trailing slashes.
1091 case $ac_val in
1092 */ )
1093 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1094 eval $ac_var=\$ac_val;;
1095 esac
1096 # Be sure to have absolute directory names.
d6efbf5a 1097 case $ac_val in
5213506e
RW
1098 [\\/$]* | ?:[\\/]* ) continue;;
1099 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
fa958513 1100 esac
5213506e 1101 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
fa958513
DJ
1102done
1103
1104# There might be people who depend on the old broken behavior: `$host'
1105# used to hold the argument of --host etc.
1106# FIXME: To remove some day.
1107build=$build_alias
1108host=$host_alias
1109target=$target_alias
1110
1111# FIXME: To remove some day.
1112if test "x$host_alias" != x; then
1113 if test "x$build_alias" = x; then
1114 cross_compiling=maybe
5213506e 1115 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
fa958513
DJ
1116 If a cross compiler is detected then cross compile mode will be used." >&2
1117 elif test "x$build_alias" != "x$host_alias"; then
1118 cross_compiling=yes
1119 fi
1120fi
1121
1122ac_tool_prefix=
1123test -n "$host_alias" && ac_tool_prefix=$host_alias-
1124
1125test "$silent" = yes && exec 6>/dev/null
1126
1127
5213506e
RW
1128ac_pwd=`pwd` && test -n "$ac_pwd" &&
1129ac_ls_di=`ls -di .` &&
1130ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1131 as_fn_error "working directory cannot be determined"
1132test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1133 as_fn_error "pwd does not report name of working directory"
1134
1135
fa958513
DJ
1136# Find the source files, if location was not specified.
1137if test -z "$srcdir"; then
1138 ac_srcdir_defaulted=yes
5213506e
RW
1139 # Try the directory containing this script, then the parent directory.
1140 ac_confdir=`$as_dirname -- "$as_myself" ||
1141$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1142 X"$as_myself" : 'X\(//\)[^/]' \| \
1143 X"$as_myself" : 'X\(//\)$' \| \
1144 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1145$as_echo X"$as_myself" |
1146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1147 s//\1/
1148 q
1149 }
1150 /^X\(\/\/\)[^/].*/{
1151 s//\1/
1152 q
1153 }
1154 /^X\(\/\/\)$/{
1155 s//\1/
1156 q
1157 }
1158 /^X\(\/\).*/{
1159 s//\1/
1160 q
1161 }
1162 s/.*/./; q'`
fa958513 1163 srcdir=$ac_confdir
5213506e 1164 if test ! -r "$srcdir/$ac_unique_file"; then
fa958513
DJ
1165 srcdir=..
1166 fi
1167else
1168 ac_srcdir_defaulted=no
1169fi
5213506e
RW
1170if test ! -r "$srcdir/$ac_unique_file"; then
1171 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1172 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1173fi
1174ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1175ac_abs_confdir=`(
1176 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1177 pwd)`
1178# When building in place, set srcdir=.
1179if test "$ac_abs_confdir" = "$ac_pwd"; then
1180 srcdir=.
1181fi
1182# Remove unnecessary trailing slashes from srcdir.
1183# Double slashes in file names in object file debugging info
1184# mess up M-x gdb in Emacs.
1185case $srcdir in
1186*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1187esac
1188for ac_var in $ac_precious_vars; do
1189 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1190 eval ac_env_${ac_var}_value=\$${ac_var}
1191 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1192 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1193done
14e8fc8b 1194
fa958513
DJ
1195#
1196# Report the --help message.
1197#
1198if test "$ac_init_help" = "long"; then
1199 # Omit some internal or obsolete options to make the list less imposing.
1200 # This message is too long to be a string in the A/UX 3.1 sh.
1201 cat <<_ACEOF
1202\`configure' configures GNU C Runtime Library 1.0 to adapt to many kinds of systems.
1203
1204Usage: $0 [OPTION]... [VAR=VALUE]...
1205
1206To assign environment variables (e.g., CC, CFLAGS...), specify them as
1207VAR=VALUE. See below for descriptions of some of the useful variables.
1208
1209Defaults for the options are specified in brackets.
1210
1211Configuration:
1212 -h, --help display this help and exit
1213 --help=short display options specific to this package
1214 --help=recursive display the short help of all the included packages
1215 -V, --version display version information and exit
1216 -q, --quiet, --silent do not print \`checking...' messages
1217 --cache-file=FILE cache test results in FILE [disabled]
1218 -C, --config-cache alias for \`--cache-file=config.cache'
1219 -n, --no-create do not create output files
1220 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1221
fa958513
DJ
1222Installation directories:
1223 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1224 [$ac_default_prefix]
fa958513 1225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1226 [PREFIX]
fa958513
DJ
1227
1228By default, \`make install' will install all the files in
1229\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1230an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1231for instance \`--prefix=\$HOME'.
1232
1233For better control, use the options below.
1234
1235Fine tuning of the installation directories:
5213506e
RW
1236 --bindir=DIR user executables [EPREFIX/bin]
1237 --sbindir=DIR system admin executables [EPREFIX/sbin]
1238 --libexecdir=DIR program executables [EPREFIX/libexec]
1239 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1240 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1241 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1242 --libdir=DIR object code libraries [EPREFIX/lib]
1243 --includedir=DIR C header files [PREFIX/include]
1244 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1245 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1246 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1247 --infodir=DIR info documentation [DATAROOTDIR/info]
1248 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1249 --mandir=DIR man documentation [DATAROOTDIR/man]
1250 --docdir=DIR documentation root [DATAROOTDIR/doc/libgcc]
1251 --htmldir=DIR html documentation [DOCDIR]
1252 --dvidir=DIR dvi documentation [DOCDIR]
1253 --pdfdir=DIR pdf documentation [DOCDIR]
1254 --psdir=DIR ps documentation [DOCDIR]
fa958513
DJ
1255_ACEOF
1256
1257 cat <<\_ACEOF
1258
1259System types:
1260 --build=BUILD configure for building on BUILD [guessed]
1261 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1262_ACEOF
1263fi
1264
1265if test -n "$ac_init_help"; then
1266 case $ac_init_help in
1267 short | recursive ) echo "Configuration of GNU C Runtime Library 1.0:";;
1268 esac
1269 cat <<\_ACEOF
1270
1271Optional Features:
5213506e 1272 --disable-option-checking ignore unrecognized --enable/--with options
fa958513
DJ
1273 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1274 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1275 --disable-shared don't provide a shared libgcc
d6efbf5a 1276 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
6efbd53f
RW
1277 --enable-maintainer-mode
1278 enable make rules and dependencies not useful (and
1279 sometimes confusing) to the casual installer
79b87c74
MM
1280 --enable-decimal-float={no,yes,bid,dpd}
1281 enable decimal float extension to C. Selecting 'bid'
1282 or 'dpd' choses which decimal floating point format
1283 to use
6f461e76 1284 --enable-tls Use thread-local storage [default=yes]
fa958513
DJ
1285
1286Optional Packages:
1287 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1288 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1289 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1290 --with-cross-host=HOST Configuring with a cross compiler
1291 --with-ld arrange to use the specified ld (full pathname)
1292 --with-slibdir=DIR shared libraries in DIR LIBDIR
14e8fc8b 1293 --with-build-libsubdir=DIR Directory where to find libraries for build system
fa958513
DJ
1294
1295Some influential environment variables:
1296 CC C compiler command
1297 CFLAGS C compiler flags
1298 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1299 nonstandard directory <lib dir>
5213506e
RW
1300 LIBS libraries to pass to the linker, e.g. -l<library>
1301 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1302 you have headers in a nonstandard directory <include dir>
fa958513
DJ
1303 CPP C preprocessor
1304
1305Use these variables to override the choices made by `configure' or to help
1306it to find libraries and programs with nonstandard names/locations.
1307
5213506e
RW
1308Report bugs to the package provider.
1309GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
1310General help using GNU software: <http://www.gnu.org/gethelp/>.
fa958513 1311_ACEOF
5213506e 1312ac_status=$?
fa958513
DJ
1313fi
1314
1315if test "$ac_init_help" = "recursive"; then
1316 # If there are subdirs, report their specific --help.
fa958513 1317 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1318 test -d "$ac_dir" ||
1319 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1320 continue
fa958513
DJ
1321 ac_builddir=.
1322
5213506e
RW
1323case "$ac_dir" in
1324.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325*)
1326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1327 # A ".." for each directory in $ac_dir_suffix.
1328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1329 case $ac_top_builddir_sub in
1330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1332 esac ;;
1333esac
1334ac_abs_top_builddir=$ac_pwd
1335ac_abs_builddir=$ac_pwd$ac_dir_suffix
1336# for backward compatibility:
1337ac_top_builddir=$ac_top_build_prefix
fa958513
DJ
1338
1339case $srcdir in
5213506e 1340 .) # We are building in place.
fa958513 1341 ac_srcdir=.
5213506e
RW
1342 ac_top_srcdir=$ac_top_builddir_sub
1343 ac_abs_top_srcdir=$ac_pwd ;;
1344 [\\/]* | ?:[\\/]* ) # Absolute name.
fa958513 1345 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1346 ac_top_srcdir=$srcdir
1347 ac_abs_top_srcdir=$srcdir ;;
1348 *) # Relative name.
1349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1350 ac_top_srcdir=$ac_top_build_prefix$srcdir
1351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fa958513 1352esac
5213506e
RW
1353ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1354
1355 cd "$ac_dir" || { ac_status=$?; continue; }
1356 # Check for guested configure.
1357 if test -f "$ac_srcdir/configure.gnu"; then
1358 echo &&
1359 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1360 elif test -f "$ac_srcdir/configure"; then
1361 echo &&
1362 $SHELL "$ac_srcdir/configure" --help=recursive
fa958513 1363 else
5213506e
RW
1364 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1365 fi || ac_status=$?
1366 cd "$ac_pwd" || { ac_status=$?; break; }
fa958513
DJ
1367 done
1368fi
1369
5213506e 1370test -n "$ac_init_help" && exit $ac_status
fa958513
DJ
1371if $ac_init_version; then
1372 cat <<\_ACEOF
1373GNU C Runtime Library configure 1.0
5213506e 1374generated by GNU Autoconf 2.64
fa958513 1375
5213506e 1376Copyright (C) 2009 Free Software Foundation, Inc.
fa958513
DJ
1377This configure script is free software; the Free Software Foundation
1378gives unlimited permission to copy, distribute and modify it.
1379_ACEOF
5213506e 1380 exit
fa958513 1381fi
5213506e
RW
1382
1383## ------------------------ ##
1384## Autoconf initialization. ##
1385## ------------------------ ##
1386
1387# ac_fn_c_try_compile LINENO
1388# --------------------------
1389# Try to compile conftest.$ac_ext, and return whether this succeeded.
1390ac_fn_c_try_compile ()
1391{
1392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1393 rm -f conftest.$ac_objext
1394 if { { ac_try="$ac_compile"
1395case "(($ac_try" in
1396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1397 *) ac_try_echo=$ac_try;;
1398esac
1399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1400$as_echo "$ac_try_echo"; } >&5
1401 (eval "$ac_compile") 2>conftest.err
1402 ac_status=$?
1403 if test -s conftest.err; then
1404 grep -v '^ *+' conftest.err >conftest.er1
1405 cat conftest.er1 >&5
1406 mv -f conftest.er1 conftest.err
1407 fi
1408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1409 test $ac_status = 0; } && {
1410 test -z "$ac_c_werror_flag" ||
1411 test ! -s conftest.err
1412 } && test -s conftest.$ac_objext; then :
1413 ac_retval=0
1414else
1415 $as_echo "$as_me: failed program was:" >&5
1416sed 's/^/| /' conftest.$ac_ext >&5
1417
1418 ac_retval=1
1419fi
1420 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1421 return $ac_retval
1422
1423} # ac_fn_c_try_compile
1424
1425# ac_fn_c_try_cpp LINENO
1426# ----------------------
1427# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1428ac_fn_c_try_cpp ()
1429{
1430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431 if { { ac_try="$ac_cpp conftest.$ac_ext"
1432case "(($ac_try" in
1433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1434 *) ac_try_echo=$ac_try;;
1435esac
1436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1437$as_echo "$ac_try_echo"; } >&5
1438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1439 ac_status=$?
1440 if test -s conftest.err; then
1441 grep -v '^ *+' conftest.err >conftest.er1
1442 cat conftest.er1 >&5
1443 mv -f conftest.er1 conftest.err
1444 fi
1445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1446 test $ac_status = 0; } >/dev/null && {
1447 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1448 test ! -s conftest.err
1449 }; then :
1450 ac_retval=0
1451else
1452 $as_echo "$as_me: failed program was:" >&5
1453sed 's/^/| /' conftest.$ac_ext >&5
1454
1455 ac_retval=1
1456fi
1457 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1458 return $ac_retval
1459
1460} # ac_fn_c_try_cpp
1461cat >config.log <<_ACEOF
fa958513
DJ
1462This file contains any messages produced by compilers while
1463running configure, to aid debugging if configure makes a mistake.
1464
1465It was created by GNU C Runtime Library $as_me 1.0, which was
5213506e 1466generated by GNU Autoconf 2.64. Invocation command line was
fa958513
DJ
1467
1468 $ $0 $@
1469
1470_ACEOF
5213506e 1471exec 5>>config.log
fa958513
DJ
1472{
1473cat <<_ASUNAME
1474## --------- ##
1475## Platform. ##
1476## --------- ##
1477
1478hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1479uname -m = `(uname -m) 2>/dev/null || echo unknown`
1480uname -r = `(uname -r) 2>/dev/null || echo unknown`
1481uname -s = `(uname -s) 2>/dev/null || echo unknown`
1482uname -v = `(uname -v) 2>/dev/null || echo unknown`
1483
1484/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1485/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1486
1487/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1488/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1489/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1490/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
fa958513
DJ
1491/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1492/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1493/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1494
1495_ASUNAME
1496
1497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498for as_dir in $PATH
1499do
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
5213506e
RW
1502 $as_echo "PATH: $as_dir"
1503 done
1504IFS=$as_save_IFS
fa958513
DJ
1505
1506} >&5
1507
1508cat >&5 <<_ACEOF
1509
1510
1511## ----------- ##
1512## Core tests. ##
1513## ----------- ##
1514
1515_ACEOF
1516
1517
1518# Keep a trace of the command line.
1519# Strip out --no-create and --no-recursion so they do not pile up.
1520# Strip out --silent because we don't want to record it for future runs.
1521# Also quote any args containing shell meta-characters.
1522# Make two passes to allow for proper duplicate-argument suppression.
1523ac_configure_args=
1524ac_configure_args0=
1525ac_configure_args1=
fa958513
DJ
1526ac_must_keep_next=false
1527for ac_pass in 1 2
1528do
1529 for ac_arg
1530 do
1531 case $ac_arg in
1532 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534 | -silent | --silent | --silen | --sile | --sil)
1535 continue ;;
5213506e
RW
1536 *\'*)
1537 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
fa958513
DJ
1538 esac
1539 case $ac_pass in
5213506e 1540 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
fa958513 1541 2)
5213506e 1542 as_fn_append ac_configure_args1 " '$ac_arg'"
fa958513
DJ
1543 if test $ac_must_keep_next = true; then
1544 ac_must_keep_next=false # Got value, back to normal.
1545 else
1546 case $ac_arg in
1547 *=* | --config-cache | -C | -disable-* | --disable-* \
1548 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1549 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1550 | -with-* | --with-* | -without-* | --without-* | --x)
1551 case "$ac_configure_args0 " in
1552 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1553 esac
1554 ;;
1555 -* ) ac_must_keep_next=true ;;
1556 esac
1557 fi
5213506e 1558 as_fn_append ac_configure_args " '$ac_arg'"
fa958513
DJ
1559 ;;
1560 esac
1561 done
1562done
5213506e
RW
1563{ ac_configure_args0=; unset ac_configure_args0;}
1564{ ac_configure_args1=; unset ac_configure_args1;}
fa958513
DJ
1565
1566# When interrupted or exit'd, cleanup temporary files, and complete
1567# config.log. We remove comments because anyway the quotes in there
1568# would cause problems or look ugly.
5213506e
RW
1569# WARNING: Use '\'' to represent an apostrophe within the trap.
1570# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
fa958513
DJ
1571trap 'exit_status=$?
1572 # Save into config.log some information that might help in debugging.
1573 {
1574 echo
1575
1576 cat <<\_ASBOX
1577## ---------------- ##
1578## Cache variables. ##
1579## ---------------- ##
1580_ASBOX
1581 echo
1582 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1583(
1584 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1585 eval ac_val=\$$ac_var
1586 case $ac_val in #(
1587 *${as_nl}*)
1588 case $ac_var in #(
1589 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1590$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1591 esac
1592 case $ac_var in #(
1593 _ | IFS | as_nl) ;; #(
1594 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1595 *) { eval $ac_var=; unset $ac_var;} ;;
1596 esac ;;
1597 esac
1598 done
fa958513 1599 (set) 2>&1 |
5213506e
RW
1600 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
fa958513 1602 sed -n \
5213506e
RW
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1605 ;; #(
fa958513 1606 *)
5213506e 1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fa958513 1608 ;;
5213506e
RW
1609 esac |
1610 sort
1611)
fa958513
DJ
1612 echo
1613
1614 cat <<\_ASBOX
1615## ----------------- ##
1616## Output variables. ##
1617## ----------------- ##
1618_ASBOX
1619 echo
1620 for ac_var in $ac_subst_vars
1621 do
5213506e
RW
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 $as_echo "$ac_var='\''$ac_val'\''"
fa958513
DJ
1627 done | sort
1628 echo
1629
1630 if test -n "$ac_subst_files"; then
1631 cat <<\_ASBOX
5213506e
RW
1632## ------------------- ##
1633## File substitutions. ##
1634## ------------------- ##
fa958513
DJ
1635_ASBOX
1636 echo
1637 for ac_var in $ac_subst_files
1638 do
5213506e
RW
1639 eval ac_val=\$$ac_var
1640 case $ac_val in
1641 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1642 esac
1643 $as_echo "$ac_var='\''$ac_val'\''"
fa958513
DJ
1644 done | sort
1645 echo
1646 fi
1647
1648 if test -s confdefs.h; then
1649 cat <<\_ASBOX
1650## ----------- ##
1651## confdefs.h. ##
1652## ----------- ##
1653_ASBOX
1654 echo
5213506e 1655 cat confdefs.h
fa958513
DJ
1656 echo
1657 fi
1658 test "$ac_signal" != 0 &&
5213506e
RW
1659 $as_echo "$as_me: caught signal $ac_signal"
1660 $as_echo "$as_me: exit $exit_status"
fa958513 1661 } >&5
5213506e
RW
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
fa958513 1664 exit $exit_status
5213506e 1665' 0
fa958513 1666for ac_signal in 1 2 13 15; do
5213506e 1667 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
fa958513
DJ
1668done
1669ac_signal=0
1670
1671# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
1672rm -f -r conftest* confdefs.h
1673
1674$as_echo "/* confdefs.h */" > confdefs.h
fa958513
DJ
1675
1676# Predefined preprocessor variables.
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_NAME "$PACKAGE_NAME"
1680_ACEOF
1681
fa958513
DJ
1682cat >>confdefs.h <<_ACEOF
1683#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684_ACEOF
1685
fa958513
DJ
1686cat >>confdefs.h <<_ACEOF
1687#define PACKAGE_VERSION "$PACKAGE_VERSION"
1688_ACEOF
1689
fa958513
DJ
1690cat >>confdefs.h <<_ACEOF
1691#define PACKAGE_STRING "$PACKAGE_STRING"
1692_ACEOF
1693
fa958513
DJ
1694cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1696_ACEOF
1697
5213506e
RW
1698cat >>confdefs.h <<_ACEOF
1699#define PACKAGE_URL "$PACKAGE_URL"
1700_ACEOF
1701
fa958513
DJ
1702
1703# Let the site file select an alternate cache file if it wants to.
5213506e
RW
1704# Prefer an explicitly selected file to automatically selected ones.
1705ac_site_file1=NONE
1706ac_site_file2=NONE
1707if test -n "$CONFIG_SITE"; then
1708 ac_site_file1=$CONFIG_SITE
1709elif test "x$prefix" != xNONE; then
1710 ac_site_file1=$prefix/share/config.site
1711 ac_site_file2=$prefix/etc/config.site
1712else
1713 ac_site_file1=$ac_default_prefix/share/config.site
1714 ac_site_file2=$ac_default_prefix/etc/config.site
fa958513 1715fi
5213506e
RW
1716for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1717do
1718 test "x$ac_site_file" = xNONE && continue
fa958513 1719 if test -r "$ac_site_file"; then
5213506e
RW
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1721$as_echo "$as_me: loading site script $ac_site_file" >&6;}
fa958513
DJ
1722 sed 's/^/| /' "$ac_site_file" >&5
1723 . "$ac_site_file"
1724 fi
1725done
1726
1727if test -r "$cache_file"; then
1728 # Some versions of bash will fail to source /dev/null (special
1729 # files actually), so we avoid doing that.
1730 if test -f "$cache_file"; then
5213506e
RW
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1732$as_echo "$as_me: loading cache $cache_file" >&6;}
fa958513 1733 case $cache_file in
5213506e
RW
1734 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1735 *) . "./$cache_file";;
fa958513
DJ
1736 esac
1737 fi
1738else
5213506e
RW
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1740$as_echo "$as_me: creating cache $cache_file" >&6;}
fa958513
DJ
1741 >$cache_file
1742fi
1743
1744# Check that the precious variables saved in the cache have kept the same
1745# value.
1746ac_cache_corrupted=false
5213506e 1747for ac_var in $ac_precious_vars; do
fa958513
DJ
1748 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1749 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
1750 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1751 eval ac_new_val=\$ac_env_${ac_var}_value
fa958513
DJ
1752 case $ac_old_set,$ac_new_set in
1753 set,)
5213506e
RW
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
fa958513
DJ
1756 ac_cache_corrupted=: ;;
1757 ,set)
5213506e
RW
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1759$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
fa958513
DJ
1760 ac_cache_corrupted=: ;;
1761 ,);;
1762 *)
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
1764 # differences in whitespace do not lead to failure.
1765 ac_old_val_w=`echo x $ac_old_val`
1766 ac_new_val_w=`echo x $ac_new_val`
1767 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1769$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1770 ac_cache_corrupted=:
1771 else
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1773$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1774 eval $ac_var=\$ac_old_val
1775 fi
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1777$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1779$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
fa958513
DJ
1780 fi;;
1781 esac
1782 # Pass precious variables to config.status.
1783 if test "$ac_new_set" = set; then
1784 case $ac_new_val in
5213506e 1785 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
fa958513
DJ
1786 *) ac_arg=$ac_var=$ac_new_val ;;
1787 esac
1788 case " $ac_configure_args " in
1789 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 1790 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
fa958513
DJ
1791 esac
1792 fi
1793done
1794if $ac_cache_corrupted; then
5213506e
RW
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1796$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1798$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1799 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fa958513 1800fi
5213506e
RW
1801## -------------------- ##
1802## Main body of script. ##
1803## -------------------- ##
fa958513 1804
d6efbf5a
DJ
1805ac_ext=c
1806ac_cpp='$CPP $CPPFLAGS'
1807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809ac_compiler_gnu=$ac_cv_c_compiler_gnu
1810
fa958513
DJ
1811
1812
1813
1814
1815
1816
1817
5213506e
RW
1818# Check whether --with-target-subdir was given.
1819if test "${with_target_subdir+set}" = set; then :
1820 withval=$with_target_subdir;
1821fi
fa958513
DJ
1822
1823
5213506e
RW
1824# Check whether --with-cross-host was given.
1825if test "${with_cross_host+set}" = set; then :
1826 withval=$with_cross_host;
1827fi
fa958513
DJ
1828
1829
5213506e
RW
1830# Check whether --with-ld was given.
1831if test "${with_ld+set}" = set; then :
1832 withval=$with_ld;
1833fi
fa958513
DJ
1834
1835
fa958513
DJ
1836if test "${srcdir}" = "."; then
1837 if test -n "${with_build_subdir}"; then
1838 libgcc_topdir="${srcdir}/../.."
1839 with_target_subdir=
1840 elif test -z "${with_target_subdir}"; then
1841 libgcc_topdir="${srcdir}/.."
1842 else
1843 if test "${with_target_subdir}" != "."; then
1844 libgcc_topdir="${srcdir}/${with_multisrctop}../.."
1845 else
1846 libgcc_topdir="${srcdir}/${with_multisrctop}.."
1847 fi
1848 fi
1849else
1850 libgcc_topdir="${srcdir}/.."
1851fi
1852
1853ac_aux_dir=
5213506e
RW
1854for ac_dir in $libgcc_topdir "$srcdir"/$libgcc_topdir; do
1855 for ac_t in install-sh install.sh shtool; do
1856 if test -f "$ac_dir/$ac_t"; then
1857 ac_aux_dir=$ac_dir
1858 ac_install_sh="$ac_aux_dir/$ac_t -c"
1859 break 2
1860 fi
1861 done
fa958513
DJ
1862done
1863if test -z "$ac_aux_dir"; then
5213506e 1864 as_fn_error "cannot find install-sh, install.sh, or shtool in $libgcc_topdir \"$srcdir\"/$libgcc_topdir" "$LINENO" 5
fa958513 1865fi
5213506e
RW
1866
1867# These three variables are undocumented and unsupported,
1868# and are intended to be withdrawn in a future Autoconf release.
1869# They can cause serious problems if a builder's source tree is in a directory
1870# whose full name contains unusual characters.
1871ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1872ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1873ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
fa958513 1874
fa958513 1875
d6efbf5a 1876
5213506e
RW
1877# Check whether --enable-shared was given.
1878if test "${enable_shared+set}" = set; then :
1879 enableval=$enable_shared;
fa958513
DJ
1880 case $enable_shared in
1881 yes | no) ;;
1882 *)
1883 enable_shared=no
1884 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1885 for pkg in $enableval; do
1886 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
1887 enable_shared=yes
1888 fi
1889 done
1890 IFS="$ac_save_ifs"
1891 ;;
1892 esac
1893
1894else
1895 enable_shared=yes
5213506e
RW
1896fi
1897
d6efbf5a
DJ
1898
1899
5213506e
RW
1900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
1901$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
1902# Check whether --enable-version-specific-runtime-libs was given.
1903if test "${enable_version_specific_runtime_libs+set}" = set; then :
1904 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
d6efbf5a
DJ
1905 yes) version_specific_libs=yes ;;
1906 no) version_specific_libs=no ;;
5213506e 1907 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
d6efbf5a
DJ
1908 esac
1909else
1910 version_specific_libs=no
5213506e
RW
1911fi
1912
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
1914$as_echo "$version_specific_libs" >&6; }
fa958513 1915
14e8fc8b 1916
5213506e
RW
1917# Check whether --with-slibdir was given.
1918if test "${with_slibdir+set}" = set; then :
1919 withval=$with_slibdir; slibdir="$with_slibdir"
fa958513 1920else
d6efbf5a 1921 if test "${version_specific_libs}" = yes; then
fa958513 1922 slibdir='$(libsubdir)'
d6efbf5a
DJ
1923elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
1924 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
fa958513
DJ
1925else
1926 slibdir='$(libdir)'
1927fi
5213506e
RW
1928fi
1929
fa958513
DJ
1930
1931
6efbd53f
RW
1932# Command-line options.
1933# Very limited version of AC_MAINTAINER_MODE.
5213506e
RW
1934# Check whether --enable-maintainer-mode was given.
1935if test "${enable_maintainer_mode+set}" = set; then :
1936 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
6efbd53f
RW
1937 yes) MAINT='' ;;
1938 no) MAINT='#' ;;
5213506e 1939 *) as_fn_error "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
6efbd53f
RW
1940 esac
1941 maintainer_mode=${enableval}
1942else
1943 MAINT='#'
5213506e
RW
1944fi
1945
6efbd53f 1946
fa958513
DJ
1947# Find a good install program. We prefer a C program (faster),
1948# so one script is as good as another. But avoid the broken or
1949# incompatible versions:
1950# SysV /etc/install, /usr/sbin/install
1951# SunOS /usr/etc/install
1952# IRIX /sbin/install
1953# AIX /bin/install
1954# AmigaOS /C/install, which installs bootblocks on floppy discs
1955# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1956# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1957# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1958# OS/2's system install, which has a completely different semantic
1959# ./install, which can be erroneously created by make from ./install.sh.
5213506e
RW
1960# Reject install programs that cannot install multiple files.
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1962$as_echo_n "checking for a BSD-compatible install... " >&6; }
fa958513 1963if test -z "$INSTALL"; then
5213506e
RW
1964if test "${ac_cv_path_install+set}" = set; then :
1965 $as_echo_n "(cached) " >&6
fa958513
DJ
1966else
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
5213506e
RW
1972 # Account for people who put trailing slashes in PATH elements.
1973case $as_dir/ in #((
1974 ./ | .// | /[cC]/* | \
fa958513 1975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 1976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
fa958513
DJ
1977 /usr/ucb/* ) ;;
1978 *)
1979 # OSF1 and SCO ODT 3.0 have their own names for install.
1980 # Don't use installbsd from OSF since it installs stuff as root
1981 # by default.
1982 for ac_prog in ginstall scoinst install; do
1983 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 1984 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
fa958513
DJ
1985 if test $ac_prog = install &&
1986 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1987 # AIX install. It has an incompatible calling convention.
1988 :
1989 elif test $ac_prog = install &&
1990 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1991 # program-specific install script used by HP pwplus--don't use.
1992 :
1993 else
5213506e
RW
1994 rm -rf conftest.one conftest.two conftest.dir
1995 echo one > conftest.one
1996 echo two > conftest.two
1997 mkdir conftest.dir
1998 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1999 test -s conftest.one && test -s conftest.two &&
2000 test -s conftest.dir/conftest.one &&
2001 test -s conftest.dir/conftest.two
2002 then
2003 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2004 break 3
2005 fi
fa958513
DJ
2006 fi
2007 fi
2008 done
2009 done
2010 ;;
2011esac
fa958513 2012
5213506e
RW
2013 done
2014IFS=$as_save_IFS
2015
2016rm -rf conftest.one conftest.two conftest.dir
fa958513
DJ
2017
2018fi
2019 if test "${ac_cv_path_install+set}" = set; then
2020 INSTALL=$ac_cv_path_install
2021 else
5213506e
RW
2022 # As a last resort, use the slow shell script. Don't cache a
2023 # value for INSTALL within a source directory, because that will
fa958513 2024 # break other packages using the cache if that directory is
5213506e 2025 # removed, or if the value is a relative name.
fa958513
DJ
2026 INSTALL=$ac_install_sh
2027 fi
2028fi
5213506e
RW
2029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2030$as_echo "$INSTALL" >&6; }
fa958513
DJ
2031
2032# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2033# It thinks the first close brace ends the variable substitution.
2034test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2035
2036test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2037
2038test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2039
2040
2041for ac_prog in gawk mawk nawk awk
2042do
2043 # Extract the first word of "$ac_prog", so it can be a program name with args.
2044set dummy $ac_prog; ac_word=$2
5213506e
RW
2045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2046$as_echo_n "checking for $ac_word... " >&6; }
2047if test "${ac_cv_prog_AWK+set}" = set; then :
2048 $as_echo_n "(cached) " >&6
fa958513
DJ
2049else
2050 if test -n "$AWK"; then
2051 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2052else
2053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054for as_dir in $PATH
2055do
2056 IFS=$as_save_IFS
2057 test -z "$as_dir" && as_dir=.
5213506e
RW
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2060 ac_cv_prog_AWK="$ac_prog"
5213506e 2061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2062 break 2
2063 fi
2064done
5213506e
RW
2065 done
2066IFS=$as_save_IFS
fa958513
DJ
2067
2068fi
2069fi
2070AWK=$ac_cv_prog_AWK
2071if test -n "$AWK"; then
5213506e
RW
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2073$as_echo "$AWK" >&6; }
fa958513 2074else
5213506e
RW
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2076$as_echo "no" >&6; }
fa958513
DJ
2077fi
2078
5213506e 2079
fa958513
DJ
2080 test -n "$AWK" && break
2081done
2082
2083# We need awk; bail out if it's missing.
2084case ${AWK} in
5213506e 2085 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
fa958513
DJ
2086esac
2087
2088# Make sure we can run config.sub.
5213506e
RW
2089$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2090 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
d6efbf5a 2091
5213506e
RW
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2093$as_echo_n "checking build system type... " >&6; }
2094if test "${ac_cv_build+set}" = set; then :
2095 $as_echo_n "(cached) " >&6
2096else
2097 ac_build_alias=$build_alias
2098test "x$ac_build_alias" = x &&
2099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100test "x$ac_build_alias" = x &&
2101 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2102ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2103 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2104
2105fi
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2107$as_echo "$ac_cv_build" >&6; }
2108case $ac_cv_build in
2109*-*-*) ;;
2110*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2111esac
2112build=$ac_cv_build
2113ac_save_IFS=$IFS; IFS='-'
2114set x $ac_cv_build
2115shift
2116build_cpu=$1
2117build_vendor=$2
2118shift; shift
2119# Remember, the first character of IFS is used to create $*,
2120# except with old shells:
2121build_os=$*
2122IFS=$ac_save_IFS
2123case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2124
2125
2126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2127$as_echo_n "checking host system type... " >&6; }
2128if test "${ac_cv_host+set}" = set; then :
2129 $as_echo_n "(cached) " >&6
fa958513 2130else
5213506e
RW
2131 if test "x$host_alias" = x; then
2132 ac_cv_host=$ac_cv_build
2133else
2134 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2135 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2136fi
fa958513
DJ
2137
2138fi
5213506e
RW
2139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2140$as_echo "$ac_cv_host" >&6; }
2141case $ac_cv_host in
2142*-*-*) ;;
2143*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2144esac
fa958513 2145host=$ac_cv_host
5213506e
RW
2146ac_save_IFS=$IFS; IFS='-'
2147set x $ac_cv_host
2148shift
2149host_cpu=$1
2150host_vendor=$2
2151shift; shift
2152# Remember, the first character of IFS is used to create $*,
2153# except with old shells:
2154host_os=$*
2155IFS=$ac_save_IFS
2156case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
fa958513
DJ
2157
2158
2159 case ${build_alias} in
2160 "") build_noncanonical=${build} ;;
2161 *) build_noncanonical=${build_alias} ;;
2162esac
2163
2164 case ${host_alias} in
2165 "") host_noncanonical=${build_noncanonical} ;;
2166 *) host_noncanonical=${host_alias} ;;
2167esac
2168
2169
2170
14e8fc8b
PB
2171 case ${target_alias} in
2172 "") target_noncanonical=${host_noncanonical} ;;
2173 *) target_noncanonical=${target_alias} ;;
2174esac
2175
2176
2177# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2178# have matching libraries, they should use host libraries: Makefile.tpl
2179# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2180# However, they still use the build modules, because the corresponding
2181# host modules (e.g. bison) are only built for the host when bootstrap
2182# finishes. So:
2183# - build_subdir is where we find build modules, and never changes.
2184# - build_libsubdir is where we find build libraries, and can be overridden.
2185
2186# Prefix 'build-' so this never conflicts with target_subdir.
2187build_subdir="build-${build_noncanonical}"
2188
5213506e
RW
2189# Check whether --with-build-libsubdir was given.
2190if test "${with_build_libsubdir+set}" = set; then :
2191 withval=$with_build_libsubdir; build_libsubdir="$withval"
14e8fc8b
PB
2192else
2193 build_libsubdir="$build_subdir"
5213506e
RW
2194fi
2195
14e8fc8b
PB
2196# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2197if ( test $srcdir = . && test -d gcc ) \
2198 || test -d $srcdir/../host-${host_noncanonical}; then
2199 host_subdir="host-${host_noncanonical}"
2200else
2201 host_subdir=.
2202fi
2203# No prefix.
2204target_subdir=${target_noncanonical}
2205
fa958513
DJ
2206
2207if test -n "$ac_tool_prefix"; then
2208 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2209set dummy ${ac_tool_prefix}ar; ac_word=$2
5213506e
RW
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2211$as_echo_n "checking for $ac_word... " >&6; }
2212if test "${ac_cv_prog_AR+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
fa958513
DJ
2214else
2215 if test -n "$AR"; then
2216 ac_cv_prog_AR="$AR" # Let the user override the test.
2217else
2218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2219for as_dir in $PATH
2220do
2221 IFS=$as_save_IFS
2222 test -z "$as_dir" && as_dir=.
5213506e
RW
2223 for ac_exec_ext in '' $ac_executable_extensions; do
2224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2225 ac_cv_prog_AR="${ac_tool_prefix}ar"
5213506e 2226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2227 break 2
2228 fi
2229done
5213506e
RW
2230 done
2231IFS=$as_save_IFS
fa958513
DJ
2232
2233fi
2234fi
2235AR=$ac_cv_prog_AR
2236if test -n "$AR"; then
5213506e
RW
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
2238$as_echo "$AR" >&6; }
fa958513 2239else
5213506e
RW
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2241$as_echo "no" >&6; }
fa958513
DJ
2242fi
2243
5213506e 2244
fa958513
DJ
2245fi
2246if test -z "$ac_cv_prog_AR"; then
2247 ac_ct_AR=$AR
2248 # Extract the first word of "ar", so it can be a program name with args.
2249set dummy ar; ac_word=$2
5213506e
RW
2250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2251$as_echo_n "checking for $ac_word... " >&6; }
2252if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
2253 $as_echo_n "(cached) " >&6
fa958513
DJ
2254else
2255 if test -n "$ac_ct_AR"; then
2256 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2257else
2258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259for as_dir in $PATH
2260do
2261 IFS=$as_save_IFS
2262 test -z "$as_dir" && as_dir=.
5213506e
RW
2263 for ac_exec_ext in '' $ac_executable_extensions; do
2264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2265 ac_cv_prog_ac_ct_AR="ar"
5213506e 2266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2267 break 2
2268 fi
2269done
5213506e
RW
2270 done
2271IFS=$as_save_IFS
fa958513
DJ
2272
2273fi
2274fi
2275ac_ct_AR=$ac_cv_prog_ac_ct_AR
2276if test -n "$ac_ct_AR"; then
5213506e
RW
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
2278$as_echo "$ac_ct_AR" >&6; }
fa958513 2279else
5213506e
RW
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2281$as_echo "no" >&6; }
fa958513
DJ
2282fi
2283
5213506e
RW
2284 if test "x$ac_ct_AR" = x; then
2285 AR=""
2286 else
2287 case $cross_compiling:$ac_tool_warned in
2288yes:)
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2291ac_tool_warned=yes ;;
2292esac
2293 AR=$ac_ct_AR
2294 fi
fa958513
DJ
2295else
2296 AR="$ac_cv_prog_AR"
2297fi
2298
2299if test -n "$ac_tool_prefix"; then
2300 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
2301set dummy ${ac_tool_prefix}lipo; ac_word=$2
5213506e
RW
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2303$as_echo_n "checking for $ac_word... " >&6; }
2304if test "${ac_cv_prog_LIPO+set}" = set; then :
2305 $as_echo_n "(cached) " >&6
fa958513
DJ
2306else
2307 if test -n "$LIPO"; then
2308 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
2309else
2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313 IFS=$as_save_IFS
2314 test -z "$as_dir" && as_dir=.
5213506e
RW
2315 for ac_exec_ext in '' $ac_executable_extensions; do
2316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2317 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5213506e 2318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2319 break 2
2320 fi
2321done
5213506e
RW
2322 done
2323IFS=$as_save_IFS
fa958513
DJ
2324
2325fi
2326fi
2327LIPO=$ac_cv_prog_LIPO
2328if test -n "$LIPO"; then
5213506e
RW
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
2330$as_echo "$LIPO" >&6; }
fa958513 2331else
5213506e
RW
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2333$as_echo "no" >&6; }
fa958513
DJ
2334fi
2335
5213506e 2336
fa958513
DJ
2337fi
2338if test -z "$ac_cv_prog_LIPO"; then
2339 ac_ct_LIPO=$LIPO
2340 # Extract the first word of "lipo", so it can be a program name with args.
2341set dummy lipo; ac_word=$2
5213506e
RW
2342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2343$as_echo_n "checking for $ac_word... " >&6; }
2344if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
2345 $as_echo_n "(cached) " >&6
fa958513
DJ
2346else
2347 if test -n "$ac_ct_LIPO"; then
2348 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
2349else
2350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2351for as_dir in $PATH
2352do
2353 IFS=$as_save_IFS
2354 test -z "$as_dir" && as_dir=.
5213506e
RW
2355 for ac_exec_ext in '' $ac_executable_extensions; do
2356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2357 ac_cv_prog_ac_ct_LIPO="lipo"
5213506e 2358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2359 break 2
2360 fi
2361done
5213506e
RW
2362 done
2363IFS=$as_save_IFS
fa958513 2364
fa958513
DJ
2365fi
2366fi
2367ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
2368if test -n "$ac_ct_LIPO"; then
5213506e
RW
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
2370$as_echo "$ac_ct_LIPO" >&6; }
fa958513 2371else
5213506e
RW
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2373$as_echo "no" >&6; }
fa958513
DJ
2374fi
2375
5213506e
RW
2376 if test "x$ac_ct_LIPO" = x; then
2377 LIPO=":"
2378 else
2379 case $cross_compiling:$ac_tool_warned in
2380yes:)
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2383ac_tool_warned=yes ;;
2384esac
2385 LIPO=$ac_ct_LIPO
2386 fi
fa958513
DJ
2387else
2388 LIPO="$ac_cv_prog_LIPO"
2389fi
2390
2391if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2393set dummy ${ac_tool_prefix}nm; ac_word=$2
5213506e
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2395$as_echo_n "checking for $ac_word... " >&6; }
2396if test "${ac_cv_prog_NM+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
fa958513
DJ
2398else
2399 if test -n "$NM"; then
2400 ac_cv_prog_NM="$NM" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
5213506e
RW
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2409 ac_cv_prog_NM="${ac_tool_prefix}nm"
5213506e 2410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2411 break 2
2412 fi
2413done
5213506e
RW
2414 done
2415IFS=$as_save_IFS
fa958513
DJ
2416
2417fi
2418fi
2419NM=$ac_cv_prog_NM
2420if test -n "$NM"; then
5213506e
RW
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
2422$as_echo "$NM" >&6; }
fa958513 2423else
5213506e
RW
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2425$as_echo "no" >&6; }
fa958513
DJ
2426fi
2427
5213506e 2428
fa958513
DJ
2429fi
2430if test -z "$ac_cv_prog_NM"; then
2431 ac_ct_NM=$NM
2432 # Extract the first word of "nm", so it can be a program name with args.
2433set dummy nm; ac_word=$2
5213506e
RW
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435$as_echo_n "checking for $ac_word... " >&6; }
2436if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
2437 $as_echo_n "(cached) " >&6
fa958513
DJ
2438else
2439 if test -n "$ac_ct_NM"; then
2440 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2441else
2442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443for as_dir in $PATH
2444do
2445 IFS=$as_save_IFS
2446 test -z "$as_dir" && as_dir=.
5213506e
RW
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2449 ac_cv_prog_ac_ct_NM="nm"
5213506e 2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2451 break 2
2452 fi
2453done
5213506e
RW
2454 done
2455IFS=$as_save_IFS
fa958513
DJ
2456
2457fi
2458fi
2459ac_ct_NM=$ac_cv_prog_ac_ct_NM
2460if test -n "$ac_ct_NM"; then
5213506e
RW
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
2462$as_echo "$ac_ct_NM" >&6; }
fa958513 2463else
5213506e
RW
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465$as_echo "no" >&6; }
fa958513
DJ
2466fi
2467
5213506e
RW
2468 if test "x$ac_ct_NM" = x; then
2469 NM=""
2470 else
2471 case $cross_compiling:$ac_tool_warned in
2472yes:)
2473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2475ac_tool_warned=yes ;;
2476esac
2477 NM=$ac_ct_NM
2478 fi
fa958513
DJ
2479else
2480 NM="$ac_cv_prog_NM"
2481fi
2482
2483if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2485set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5213506e
RW
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
2488if test "${ac_cv_prog_RANLIB+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
fa958513
DJ
2490else
2491 if test -n "$RANLIB"; then
2492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
5213506e
RW
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5213506e 2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2503 break 2
2504 fi
2505done
5213506e
RW
2506 done
2507IFS=$as_save_IFS
fa958513
DJ
2508
2509fi
2510fi
2511RANLIB=$ac_cv_prog_RANLIB
2512if test -n "$RANLIB"; then
5213506e
RW
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
2514$as_echo "$RANLIB" >&6; }
fa958513 2515else
5213506e
RW
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
fa958513
DJ
2518fi
2519
5213506e 2520
fa958513
DJ
2521fi
2522if test -z "$ac_cv_prog_RANLIB"; then
2523 ac_ct_RANLIB=$RANLIB
2524 # Extract the first word of "ranlib", so it can be a program name with args.
2525set dummy ranlib; ac_word=$2
5213506e
RW
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
2528if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
2529 $as_echo_n "(cached) " >&6
fa958513
DJ
2530else
2531 if test -n "$ac_ct_RANLIB"; then
2532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
5213506e
RW
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2541 ac_cv_prog_ac_ct_RANLIB="ranlib"
5213506e 2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2543 break 2
2544 fi
2545done
5213506e
RW
2546 done
2547IFS=$as_save_IFS
fa958513 2548
fa958513
DJ
2549fi
2550fi
2551ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2552if test -n "$ac_ct_RANLIB"; then
5213506e
RW
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
2554$as_echo "$ac_ct_RANLIB" >&6; }
fa958513 2555else
5213506e
RW
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557$as_echo "no" >&6; }
fa958513
DJ
2558fi
2559
5213506e
RW
2560 if test "x$ac_ct_RANLIB" = x; then
2561 RANLIB=":"
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564yes:)
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2567ac_tool_warned=yes ;;
2568esac
2569 RANLIB=$ac_ct_RANLIB
2570 fi
fa958513
DJ
2571else
2572 RANLIB="$ac_cv_prog_RANLIB"
2573fi
2574
2575if test -n "$ac_tool_prefix"; then
2576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2577set dummy ${ac_tool_prefix}strip; ac_word=$2
5213506e
RW
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2579$as_echo_n "checking for $ac_word... " >&6; }
2580if test "${ac_cv_prog_STRIP+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
fa958513
DJ
2582else
2583 if test -n "$STRIP"; then
2584 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2585else
2586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587for as_dir in $PATH
2588do
2589 IFS=$as_save_IFS
2590 test -z "$as_dir" && as_dir=.
5213506e
RW
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2593 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5213506e 2594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2595 break 2
2596 fi
2597done
5213506e
RW
2598 done
2599IFS=$as_save_IFS
fa958513
DJ
2600
2601fi
2602fi
2603STRIP=$ac_cv_prog_STRIP
2604if test -n "$STRIP"; then
5213506e
RW
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2606$as_echo "$STRIP" >&6; }
fa958513 2607else
5213506e
RW
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2609$as_echo "no" >&6; }
fa958513
DJ
2610fi
2611
5213506e 2612
fa958513
DJ
2613fi
2614if test -z "$ac_cv_prog_STRIP"; then
2615 ac_ct_STRIP=$STRIP
2616 # Extract the first word of "strip", so it can be a program name with args.
2617set dummy strip; ac_word=$2
5213506e
RW
2618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2619$as_echo_n "checking for $ac_word... " >&6; }
2620if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2621 $as_echo_n "(cached) " >&6
fa958513
DJ
2622else
2623 if test -n "$ac_ct_STRIP"; then
2624 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2625else
2626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627for as_dir in $PATH
2628do
2629 IFS=$as_save_IFS
2630 test -z "$as_dir" && as_dir=.
5213506e
RW
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2633 ac_cv_prog_ac_ct_STRIP="strip"
5213506e 2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2635 break 2
2636 fi
2637done
5213506e
RW
2638 done
2639IFS=$as_save_IFS
fa958513 2640
fa958513
DJ
2641fi
2642fi
2643ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2644if test -n "$ac_ct_STRIP"; then
5213506e
RW
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2646$as_echo "$ac_ct_STRIP" >&6; }
fa958513 2647else
5213506e
RW
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2649$as_echo "no" >&6; }
fa958513
DJ
2650fi
2651
5213506e
RW
2652 if test "x$ac_ct_STRIP" = x; then
2653 STRIP=":"
2654 else
2655 case $cross_compiling:$ac_tool_warned in
2656yes:)
2657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2659ac_tool_warned=yes ;;
2660esac
2661 STRIP=$ac_ct_STRIP
2662 fi
fa958513
DJ
2663else
2664 STRIP="$ac_cv_prog_STRIP"
2665fi
2666
5213506e
RW
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2668$as_echo_n "checking whether ln -s works... " >&6; }
fa958513
DJ
2669LN_S=$as_ln_s
2670if test "$LN_S" = "ln -s"; then
5213506e
RW
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2672$as_echo "yes" >&6; }
fa958513 2673else
5213506e
RW
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2675$as_echo "no, using $LN_S" >&6; }
fa958513
DJ
2676fi
2677
2678
2679
2680ac_ext=c
2681ac_cpp='$CPP $CPPFLAGS'
2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2687set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if test "${ac_cv_prog_CC+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
fa958513
DJ
2692else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
5213506e
RW
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2705 break 2
2706 fi
2707done
5213506e
RW
2708 done
2709IFS=$as_save_IFS
fa958513
DJ
2710
2711fi
2712fi
2713CC=$ac_cv_prog_CC
2714if test -n "$CC"; then
5213506e
RW
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716$as_echo "$CC" >&6; }
fa958513 2717else
5213506e
RW
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
fa958513
DJ
2720fi
2721
5213506e 2722
fa958513
DJ
2723fi
2724if test -z "$ac_cv_prog_CC"; then
2725 ac_ct_CC=$CC
2726 # Extract the first word of "gcc", so it can be a program name with args.
2727set dummy gcc; ac_word=$2
5213506e
RW
2728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729$as_echo_n "checking for $ac_word... " >&6; }
2730if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2731 $as_echo_n "(cached) " >&6
fa958513
DJ
2732else
2733 if test -n "$ac_ct_CC"; then
2734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
5213506e
RW
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2743 ac_cv_prog_ac_ct_CC="gcc"
5213506e 2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2745 break 2
2746 fi
2747done
5213506e
RW
2748 done
2749IFS=$as_save_IFS
fa958513
DJ
2750
2751fi
2752fi
2753ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754if test -n "$ac_ct_CC"; then
5213506e
RW
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2756$as_echo "$ac_ct_CC" >&6; }
fa958513 2757else
5213506e
RW
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759$as_echo "no" >&6; }
fa958513
DJ
2760fi
2761
5213506e
RW
2762 if test "x$ac_ct_CC" = x; then
2763 CC=""
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766yes:)
2767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2769ac_tool_warned=yes ;;
2770esac
2771 CC=$ac_ct_CC
2772 fi
fa958513
DJ
2773else
2774 CC="$ac_cv_prog_CC"
2775fi
2776
2777if test -z "$CC"; then
5213506e
RW
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
fa958513 2780set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if test "${ac_cv_prog_CC+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
fa958513
DJ
2785else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
2789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790for as_dir in $PATH
2791do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
5213506e
RW
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2796 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2798 break 2
2799 fi
2800done
5213506e
RW
2801 done
2802IFS=$as_save_IFS
fa958513
DJ
2803
2804fi
2805fi
2806CC=$ac_cv_prog_CC
2807if test -n "$CC"; then
5213506e
RW
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809$as_echo "$CC" >&6; }
d6efbf5a 2810else
5213506e
RW
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812$as_echo "no" >&6; }
d6efbf5a
DJ
2813fi
2814
d6efbf5a 2815
5213506e 2816 fi
fa958513
DJ
2817fi
2818if test -z "$CC"; then
2819 # Extract the first word of "cc", so it can be a program name with args.
2820set dummy cc; ac_word=$2
5213506e
RW
2821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822$as_echo_n "checking for $ac_word... " >&6; }
2823if test "${ac_cv_prog_CC+set}" = set; then :
2824 $as_echo_n "(cached) " >&6
fa958513
DJ
2825else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828else
2829 ac_prog_rejected=no
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
5213506e
RW
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513
DJ
2837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2838 ac_prog_rejected=yes
2839 continue
2840 fi
2841 ac_cv_prog_CC="cc"
5213506e 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2843 break 2
2844 fi
2845done
5213506e
RW
2846 done
2847IFS=$as_save_IFS
fa958513
DJ
2848
2849if test $ac_prog_rejected = yes; then
2850 # We found a bogon in the path, so make sure we never use it.
2851 set dummy $ac_cv_prog_CC
2852 shift
2853 if test $# != 0; then
2854 # We chose a different compiler from the bogus one.
2855 # However, it has the same basename, so the bogon will be chosen
2856 # first if we set CC to just the basename; use the full file name.
2857 shift
2858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2859 fi
2860fi
2861fi
2862fi
2863CC=$ac_cv_prog_CC
2864if test -n "$CC"; then
5213506e
RW
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866$as_echo "$CC" >&6; }
fa958513 2867else
5213506e
RW
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
fa958513
DJ
2870fi
2871
5213506e 2872
fa958513
DJ
2873fi
2874if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
5213506e 2876 for ac_prog in cl.exe
fa958513
DJ
2877 do
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
2880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881$as_echo_n "checking for $ac_word... " >&6; }
2882if test "${ac_cv_prog_CC+set}" = set; then :
2883 $as_echo_n "(cached) " >&6
fa958513
DJ
2884else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887else
2888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889for as_dir in $PATH
2890do
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
5213506e
RW
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2897 break 2
2898 fi
2899done
5213506e
RW
2900 done
2901IFS=$as_save_IFS
fa958513
DJ
2902
2903fi
2904fi
2905CC=$ac_cv_prog_CC
2906if test -n "$CC"; then
5213506e
RW
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908$as_echo "$CC" >&6; }
fa958513 2909else
5213506e
RW
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911$as_echo "no" >&6; }
fa958513
DJ
2912fi
2913
5213506e 2914
fa958513
DJ
2915 test -n "$CC" && break
2916 done
2917fi
2918if test -z "$CC"; then
2919 ac_ct_CC=$CC
5213506e 2920 for ac_prog in cl.exe
fa958513
DJ
2921do
2922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2923set dummy $ac_prog; ac_word=$2
5213506e
RW
2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925$as_echo_n "checking for $ac_word... " >&6; }
2926if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
fa958513
DJ
2928else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
5213506e
RW
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
fa958513 2939 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
fa958513
DJ
2941 break 2
2942 fi
2943done
5213506e
RW
2944 done
2945IFS=$as_save_IFS
fa958513
DJ
2946
2947fi
2948fi
2949ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950if test -n "$ac_ct_CC"; then
5213506e
RW
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952$as_echo "$ac_ct_CC" >&6; }
fa958513 2953else
5213506e
RW
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955$as_echo "no" >&6; }
fa958513
DJ
2956fi
2957
5213506e 2958
fa958513
DJ
2959 test -n "$ac_ct_CC" && break
2960done
2961
5213506e
RW
2962 if test "x$ac_ct_CC" = x; then
2963 CC=""
2964 else
2965 case $cross_compiling:$ac_tool_warned in
2966yes:)
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969ac_tool_warned=yes ;;
2970esac
2971 CC=$ac_ct_CC
2972 fi
fa958513
DJ
2973fi
2974
2975fi
2976
2977
5213506e
RW
2978test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error "no acceptable C compiler found in \$PATH
2981See \`config.log' for more details." "$LINENO" 5; }
fa958513
DJ
2982
2983# Provide some information about the compiler.
5213506e
RW
2984$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2985set X $ac_compile
2986ac_compiler=$2
2987for ac_option in --version -v -V -qversion; do
2988 { { ac_try="$ac_compiler $ac_option >&5"
2989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994$as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
fa958513 2996 ac_status=$?
5213506e
RW
2997 if test -s conftest.err; then
2998 sed '10a\
2999... rest of stderr output deleted ...
3000 10q' conftest.err >conftest.er1
3001 cat conftest.er1 >&5
3002 rm -f conftest.er1 conftest.err
3003 fi
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }
3006done
fa958513 3007
5213506e 3008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3009/* end confdefs.h. */
3010
3011int
3012main ()
3013{
3014
3015 ;
3016 return 0;
3017}
3018_ACEOF
3019# FIXME: Cleanup?
5213506e 3020if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
fa958513
DJ
3021 (eval $ac_link) 2>&5
3022 ac_status=$?
5213506e
RW
3023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3024 test $ac_status = 0; }; then :
fa958513
DJ
3025 gcc_no_link=no
3026else
3027 gcc_no_link=yes
3028fi
fa958513
DJ
3029if test x$gcc_no_link = xyes; then
3030 # Setting cross_compile will disable run tests; it will
3031 # also disable AC_CHECK_FILE but that's generally
3032 # correct if we can't link.
3033 cross_compiling=yes
3034 EXEEXT=
3035else
5213506e 3036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3037/* end confdefs.h. */
3038
3039int
3040main ()
3041{
3042
3043 ;
3044 return 0;
3045}
3046_ACEOF
3047ac_clean_files_save=$ac_clean_files
5213506e 3048ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
fa958513
DJ
3049# Try to create an executable without -o first, disregard a.out.
3050# It will help us diagnose broken compilers, and finding out an intuition
3051# of exeext.
5213506e
RW
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3053$as_echo_n "checking for C compiler default output file name... " >&6; }
3054ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3055
3056# The possible output files:
3057ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3058
3059ac_rmfiles=
3060for ac_file in $ac_files
3061do
3062 case $ac_file in
3063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3064 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3065 esac
3066done
3067rm -f $ac_rmfiles
3068
3069if { { ac_try="$ac_link_default"
3070case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073esac
3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075$as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_link_default") 2>&5
fa958513 3077 ac_status=$?
5213506e
RW
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; then :
3080 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3081# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3082# in a Makefile. We should not override ac_cv_exeext if it was cached,
3083# so that the user can short-circuit this test for compilers unknown to
3084# Autoconf.
3085for ac_file in $ac_files ''
fa958513
DJ
3086do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
5213506e 3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
fa958513
DJ
3090 ;;
3091 [ab].out )
3092 # We found the default executable, but exeext='' is most
3093 # certainly right.
3094 break;;
3095 *.* )
5213506e
RW
3096 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3097 then :; else
3098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099 fi
3100 # We set ac_cv_exeext here because the later test for it is not
3101 # safe: cross compilers may not add the suffix if given an `-o'
3102 # argument, so we may need to know it at that point already.
3103 # Even if this section looks crufty: it has the advantage of
3104 # actually working.
fa958513
DJ
3105 break;;
3106 * )
3107 break;;
3108 esac
3109done
5213506e
RW
3110test "$ac_cv_exeext" = no && ac_cv_exeext=
3111
fa958513 3112else
5213506e
RW
3113 ac_file=''
3114fi
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3116$as_echo "$ac_file" >&6; }
3117if test -z "$ac_file"; then :
3118 $as_echo "$as_me: failed program was:" >&5
fa958513
DJ
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
5213506e
RW
3121{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123{ as_fn_set_status 77
3124as_fn_error "C compiler cannot create executables
3125See \`config.log' for more details." "$LINENO" 5; }; }
fa958513 3126fi
fa958513 3127ac_exeext=$ac_cv_exeext
fa958513 3128
5213506e 3129# Check that the compiler produces executables we can run. If not, either
fa958513 3130# the compiler is broken, or we cross compile.
5213506e
RW
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3132$as_echo_n "checking whether the C compiler works... " >&6; }
fa958513
DJ
3133# If not cross compiling, check that we can run a simple program.
3134if test "$cross_compiling" != yes; then
3135 if { ac_try='./$ac_file'
5213506e
RW
3136 { { case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139esac
3140eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141$as_echo "$ac_try_echo"; } >&5
3142 (eval "$ac_try") 2>&5
fa958513 3143 ac_status=$?
5213506e
RW
3144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145 test $ac_status = 0; }; }; then
fa958513
DJ
3146 cross_compiling=no
3147 else
3148 if test "$cross_compiling" = maybe; then
3149 cross_compiling=yes
3150 else
5213506e
RW
3151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153as_fn_error "cannot run C compiled programs.
fa958513 3154If you meant to cross compile, use \`--host'.
5213506e 3155See \`config.log' for more details." "$LINENO" 5; }
fa958513
DJ
3156 fi
3157 fi
3158fi
5213506e
RW
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160$as_echo "yes" >&6; }
fa958513 3161
5213506e 3162rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
fa958513 3163ac_clean_files=$ac_clean_files_save
5213506e 3164# Check that the compiler produces executables we can run. If not, either
fa958513 3165# the compiler is broken, or we cross compile.
5213506e
RW
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3167$as_echo_n "checking whether we are cross compiling... " >&6; }
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3169$as_echo "$cross_compiling" >&6; }
3170
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3172$as_echo_n "checking for suffix of executables... " >&6; }
3173if { { ac_try="$ac_link"
3174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
3178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179$as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_link") 2>&5
fa958513 3181 ac_status=$?
5213506e
RW
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }; then :
fa958513
DJ
3184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3185# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3186# work properly (i.e., refer to `conftest.exe'), while it won't with
3187# `rm'.
3188for ac_file in conftest.exe conftest conftest.*; do
3189 test -f "$ac_file" || continue
3190 case $ac_file in
5213506e 3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
fa958513 3192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
fa958513
DJ
3193 break;;
3194 * ) break;;
3195 esac
3196done
3197else
5213506e
RW
3198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200as_fn_error "cannot compute suffix of executables: cannot compile and link
3201See \`config.log' for more details." "$LINENO" 5; }
fa958513 3202fi
fa958513 3203rm -f conftest$ac_cv_exeext
5213506e
RW
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3205$as_echo "$ac_cv_exeext" >&6; }
fa958513
DJ
3206
3207rm -f conftest.$ac_ext
3208EXEEXT=$ac_cv_exeext
3209ac_exeext=$EXEEXT
3210fi
5213506e
RW
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3212$as_echo_n "checking for suffix of object files... " >&6; }
3213if test "${ac_cv_objext+set}" = set; then :
3214 $as_echo_n "(cached) " >&6
fa958513 3215else
5213506e 3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3217/* end confdefs.h. */
3218
3219int
3220main ()
3221{
3222
3223 ;
3224 return 0;
3225}
3226_ACEOF
3227rm -f conftest.o conftest.obj
5213506e
RW
3228if { { ac_try="$ac_compile"
3229case "(($ac_try" in
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3232esac
3233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3234$as_echo "$ac_try_echo"; } >&5
3235 (eval "$ac_compile") 2>&5
fa958513 3236 ac_status=$?
5213506e
RW
3237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }; then :
3239 for ac_file in conftest.o conftest.obj conftest.*; do
3240 test -f "$ac_file" || continue;
fa958513 3241 case $ac_file in
5213506e 3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
fa958513
DJ
3243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3244 break;;
3245 esac
3246done
3247else
5213506e 3248 $as_echo "$as_me: failed program was:" >&5
fa958513
DJ
3249sed 's/^/| /' conftest.$ac_ext >&5
3250
5213506e
RW
3251{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253as_fn_error "cannot compute suffix of object files: cannot compile
3254See \`config.log' for more details." "$LINENO" 5; }
fa958513 3255fi
fa958513
DJ
3256rm -f conftest.$ac_cv_objext conftest.$ac_ext
3257fi
5213506e
RW
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3259$as_echo "$ac_cv_objext" >&6; }
fa958513
DJ
3260OBJEXT=$ac_cv_objext
3261ac_objext=$OBJEXT
5213506e
RW
3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3263$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3264if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3265 $as_echo_n "(cached) " >&6
fa958513 3266else
5213506e 3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3268/* end confdefs.h. */
3269
3270int
3271main ()
3272{
3273#ifndef __GNUC__
3274 choke me
3275#endif
3276
3277 ;
3278 return 0;
3279}
3280_ACEOF
5213506e 3281if ac_fn_c_try_compile "$LINENO"; then :
fa958513
DJ
3282 ac_compiler_gnu=yes
3283else
5213506e 3284 ac_compiler_gnu=no
fa958513 3285fi
5213506e 3286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513
DJ
3287ac_cv_c_compiler_gnu=$ac_compiler_gnu
3288
3289fi
5213506e
RW
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3291$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3292if test $ac_compiler_gnu = yes; then
3293 GCC=yes
3294else
3295 GCC=
3296fi
fa958513
DJ
3297ac_test_CFLAGS=${CFLAGS+set}
3298ac_save_CFLAGS=$CFLAGS
5213506e
RW
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3300$as_echo_n "checking whether $CC accepts -g... " >&6; }
3301if test "${ac_cv_prog_cc_g+set}" = set; then :
3302 $as_echo_n "(cached) " >&6
3303else
3304 ac_save_c_werror_flag=$ac_c_werror_flag
3305 ac_c_werror_flag=yes
3306 ac_cv_prog_cc_g=no
3307 CFLAGS="-g"
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3309/* end confdefs.h. */
3310
3311int
3312main ()
3313{
3314
3315 ;
3316 return 0;
3317}
3318_ACEOF
5213506e 3319if ac_fn_c_try_compile "$LINENO"; then :
fa958513
DJ
3320 ac_cv_prog_cc_g=yes
3321else
5213506e
RW
3322 CFLAGS=""
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324/* end confdefs.h. */
3325
3326int
3327main ()
3328{
3329
3330 ;
3331 return 0;
3332}
3333_ACEOF
3334if ac_fn_c_try_compile "$LINENO"; then :
3335
3336else
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3338 CFLAGS="-g"
3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h. */
3341
3342int
3343main ()
3344{
fa958513 3345
5213506e
RW
3346 ;
3347 return 0;
3348}
3349_ACEOF
3350if ac_fn_c_try_compile "$LINENO"; then :
3351 ac_cv_prog_cc_g=yes
3352fi
3353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 3354fi
5213506e 3355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 3356fi
5213506e
RW
3357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_c_werror_flag=$ac_save_c_werror_flag
3359fi
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3361$as_echo "$ac_cv_prog_cc_g" >&6; }
fa958513
DJ
3362if test "$ac_test_CFLAGS" = set; then
3363 CFLAGS=$ac_save_CFLAGS
3364elif test $ac_cv_prog_cc_g = yes; then
3365 if test "$GCC" = yes; then
3366 CFLAGS="-g -O2"
3367 else
3368 CFLAGS="-g"
3369 fi
3370else
3371 if test "$GCC" = yes; then
3372 CFLAGS="-O2"
3373 else
3374 CFLAGS=
3375 fi
3376fi
5213506e
RW
3377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3378$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3379if test "${ac_cv_prog_cc_c89+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
fa958513 3381else
5213506e 3382 ac_cv_prog_cc_c89=no
fa958513 3383ac_save_CC=$CC
5213506e 3384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3385/* end confdefs.h. */
3386#include <stdarg.h>
3387#include <stdio.h>
3388#include <sys/types.h>
3389#include <sys/stat.h>
3390/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3391struct buf { int x; };
3392FILE * (*rcsopen) (struct buf *, struct stat *, int);
3393static char *e (p, i)
3394 char **p;
3395 int i;
3396{
3397 return p[i];
3398}
3399static char *f (char * (*g) (char **, int), char **p, ...)
3400{
3401 char *s;
3402 va_list v;
3403 va_start (v,p);
3404 s = g (p, va_arg (v,int));
3405 va_end (v);
3406 return s;
3407}
3408
3409/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3410 function prototypes and stuff, but not '\xHH' hex character constants.
3411 These don't provoke an error unfortunately, instead are silently treated
5213506e 3412 as 'x'. The following induces an error, until -std is added to get
fa958513
DJ
3413 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3414 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 3415 that's true only with -std. */
fa958513
DJ
3416int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3417
5213506e
RW
3418/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3419 inside strings and character constants. */
3420#define FOO(x) 'x'
3421int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3422
fa958513
DJ
3423int test (int i, double x);
3424struct s1 {int (*f) (int a);};
3425struct s2 {int (*f) (double a);};
3426int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3427int argc;
3428char **argv;
3429int
3430main ()
3431{
3432return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3433 ;
3434 return 0;
3435}
3436_ACEOF
5213506e
RW
3437for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3438 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
fa958513
DJ
3439do
3440 CC="$ac_save_CC $ac_arg"
5213506e
RW
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_cv_prog_cc_c89=$ac_arg
fa958513 3443fi
5213506e
RW
3444rm -f core conftest.err conftest.$ac_objext
3445 test "x$ac_cv_prog_cc_c89" != "xno" && break
fa958513 3446done
5213506e 3447rm -f conftest.$ac_ext
fa958513
DJ
3448CC=$ac_save_CC
3449
3450fi
5213506e
RW
3451# AC_CACHE_VAL
3452case "x$ac_cv_prog_cc_c89" in
3453 x)
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3455$as_echo "none needed" >&6; } ;;
3456 xno)
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3458$as_echo "unsupported" >&6; } ;;
fa958513 3459 *)
5213506e
RW
3460 CC="$CC $ac_cv_prog_cc_c89"
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3462$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
fa958513 3463esac
5213506e 3464if test "x$ac_cv_prog_cc_c89" != xno; then :
fa958513 3465
d6efbf5a 3466fi
d6efbf5a 3467
fa958513
DJ
3468ac_ext=c
3469ac_cpp='$CPP $CPPFLAGS'
3470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473
3474ac_ext=c
3475ac_cpp='$CPP $CPPFLAGS'
3476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3478ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213506e
RW
3479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3480$as_echo_n "checking how to run the C preprocessor... " >&6; }
fa958513
DJ
3481# On Suns, sometimes $CPP names a directory.
3482if test -n "$CPP" && test -d "$CPP"; then
3483 CPP=
3484fi
3485if test -z "$CPP"; then
5213506e
RW
3486 if test "${ac_cv_prog_CPP+set}" = set; then :
3487 $as_echo_n "(cached) " >&6
fa958513
DJ
3488else
3489 # Double quotes because CPP needs to be expanded
3490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3491 do
3492 ac_preproc_ok=false
3493for ac_c_preproc_warn_flag in '' yes
3494do
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3502/* end confdefs.h. */
3503#ifdef __STDC__
3504# include <limits.h>
3505#else
3506# include <assert.h>
3507#endif
3508 Syntax error
3509_ACEOF
5213506e 3510if ac_fn_c_try_cpp "$LINENO"; then :
fa958513 3511
5213506e 3512else
fa958513
DJ
3513 # Broken: fails on valid input.
3514continue
3515fi
3516rm -f conftest.err conftest.$ac_ext
3517
5213506e 3518 # OK, works on sane cases. Now check whether nonexistent headers
fa958513 3519 # can be detected and how.
5213506e 3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3521/* end confdefs.h. */
3522#include <ac_nonexistent.h>
3523_ACEOF
5213506e 3524if ac_fn_c_try_cpp "$LINENO"; then :
fa958513
DJ
3525 # Broken: success on invalid input.
3526continue
3527else
fa958513
DJ
3528 # Passes both tests.
3529ac_preproc_ok=:
3530break
3531fi
3532rm -f conftest.err conftest.$ac_ext
3533
3534done
3535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536rm -f conftest.err conftest.$ac_ext
5213506e 3537if $ac_preproc_ok; then :
fa958513
DJ
3538 break
3539fi
3540
3541 done
3542 ac_cv_prog_CPP=$CPP
3543
3544fi
3545 CPP=$ac_cv_prog_CPP
3546else
3547 ac_cv_prog_CPP=$CPP
3548fi
5213506e
RW
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3550$as_echo "$CPP" >&6; }
fa958513
DJ
3551ac_preproc_ok=false
3552for ac_c_preproc_warn_flag in '' yes
3553do
3554 # Use a header file that comes with gcc, so configuring glibc
3555 # with a fresh cross-compiler works.
3556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3557 # <limits.h> exists even on freestanding compilers.
3558 # On the NeXT, cc -E runs the code through the compiler's parser,
3559 # not just through cpp. "Syntax error" is here to catch this case.
5213506e 3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3561/* end confdefs.h. */
3562#ifdef __STDC__
3563# include <limits.h>
3564#else
3565# include <assert.h>
3566#endif
3567 Syntax error
3568_ACEOF
5213506e 3569if ac_fn_c_try_cpp "$LINENO"; then :
fa958513 3570
5213506e 3571else
fa958513
DJ
3572 # Broken: fails on valid input.
3573continue
3574fi
3575rm -f conftest.err conftest.$ac_ext
3576
5213506e 3577 # OK, works on sane cases. Now check whether nonexistent headers
fa958513 3578 # can be detected and how.
5213506e 3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
fa958513
DJ
3580/* end confdefs.h. */
3581#include <ac_nonexistent.h>
3582_ACEOF
5213506e 3583if ac_fn_c_try_cpp "$LINENO"; then :
fa958513
DJ
3584 # Broken: success on invalid input.
3585continue
3586else
fa958513
DJ
3587 # Passes both tests.
3588ac_preproc_ok=:
3589break
3590fi
3591rm -f conftest.err conftest.$ac_ext
3592
3593done
3594# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3595rm -f conftest.err conftest.$ac_ext
5213506e
RW
3596if $ac_preproc_ok; then :
3597
fa958513 3598else
5213506e
RW
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601as_fn_error "C preprocessor \"$CPP\" fails sanity check
3602See \`config.log' for more details." "$LINENO" 5; }
fa958513
DJ
3603fi
3604
3605ac_ext=c
3606ac_cpp='$CPP $CPPFLAGS'
3607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3609ac_compiler_gnu=$ac_cv_c_compiler_gnu
3610
3611
3612ac_c_preproc_warn_flag=yes
3613
3614# Check for decimal float support.
3615
5213506e
RW
3616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether decimal floating point is supported" >&5
3617$as_echo_n "checking whether decimal floating point is supported... " >&6; }
3618if test "${libgcc_cv_dfp+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
fa958513 3620else
5213506e
RW
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622/* end confdefs.h. */
fa958513
DJ
3623_Decimal32 x;
3624_ACEOF
5213506e 3625if ac_fn_c_try_compile "$LINENO"; then :
fa958513
DJ
3626 libgcc_cv_dfp=yes
3627else
5213506e 3628 libgcc_cv_dfp=no
fa958513 3629fi
5213506e 3630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fa958513 3631fi
5213506e
RW
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_dfp" >&5
3633$as_echo "$libgcc_cv_dfp" >&6; }
fa958513
DJ
3634decimal_float=$libgcc_cv_dfp
3635
3636
f4dae9fc 3637
5213506e
RW
3638# Check whether --enable-decimal-float was given.
3639if test "${enable_decimal_float+set}" = set; then :
3640 enableval=$enable_decimal_float;
79b87c74 3641 case $enable_decimal_float in
cc0ae0ca 3642 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
5213506e
RW
3643 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
3644Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
79b87c74
MM
3645 esac
3646
3647else
3648
96fccd0d 3649 case $host in
996b42ef 3650 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
b93cf342
L
3651 i?86*-*-mingw* | x86_64*-*-mingw* | \
3652 i?86*-*-cygwin*)
79b87c74
MM
3653 enable_decimal_float=yes
3654 ;;
3655 *)
84f47d20
AS
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
3657$as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
79b87c74
MM
3658 enable_decimal_float=no
3659 ;;
3660 esac
3661
5213506e
RW
3662fi
3663
79b87c74
MM
3664
3665# x86's use BID format instead of DPD
f4dae9fc
AK
3666case x$enable_decimal_float in
3667 xyes)
3668 case $host in
3669 i?86*-*-* | x86_64*-*-*)
3670 enable_decimal_float=bid
3671 ;;
3672 *)
3673 enable_decimal_float=dpd
3674 ;;
3675 esac
cc0ae0ca 3676 default_decimal_float=$enable_decimal_float
f4dae9fc
AK
3677 ;;
3678 xno)
3679 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
3680 # dependency on libdecnumber.
cc0ae0ca 3681 default_decimal_float=dpd
f4dae9fc
AK
3682 ;;
3683esac
3684
3685
79b87c74
MM
3686
3687
8d2a9e0e 3688# Check for fixed-point support.
5213506e
RW
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fixed-point is supported" >&5
3690$as_echo_n "checking whether fixed-point is supported... " >&6; }
3691if test "${libgcc_cv_fixed_point+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
8d2a9e0e 3693else
5213506e
RW
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695/* end confdefs.h. */
8d2a9e0e
CF
3696_Sat _Fract x;
3697_ACEOF
5213506e 3698if ac_fn_c_try_compile "$LINENO"; then :
8d2a9e0e
CF
3699 libgcc_cv_fixed_point=yes
3700else
5213506e 3701 libgcc_cv_fixed_point=no
8d2a9e0e 3702fi
5213506e 3703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8d2a9e0e 3704fi
5213506e
RW
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_fixed_point" >&5
3706$as_echo "$libgcc_cv_fixed_point" >&6; }
8d2a9e0e
CF
3707fixed_point=$libgcc_cv_fixed_point
3708
3709
b6110d6d
ILT
3710# Check for assembler CFI support.
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5
3712$as_echo_n "checking whether assembler supports CFI directives... " >&6; }
3713if test "${libgcc_cv_cfi+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
3715else
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717/* end confdefs.h. */
6dace308
ILT
3718asm("\n\
3719 .text\n\
3720 .cfi_startproc\n\
3721 .cfi_personality 0, symbol\n\
3722 .cfi_endproc");
b6110d6d
ILT
3723_ACEOF
3724if ac_fn_c_try_compile "$LINENO"; then :
3725 libgcc_cv_cfi=yes
3726else
3727 libgcc_cv_cfi=no
3728fi
3729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730fi
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5
3732$as_echo "$libgcc_cv_cfi" >&6; }
3733
ff473280
L
3734# Check 32bit or 64bit for x86.
3735case ${host} in
3736i?86*-*-* | x86_64*-*-*)
3737 cat > conftest.c <<EOF
3738#ifdef __x86_64__
3739host_address=64
3740#else
3741host_address=32
3742#endif
3743EOF
3744 eval `${CC-cc} -E conftest.c | grep host_address=`
3745 rm -f conftest.c
3746 ;;
3747esac
3748
fa958513
DJ
3749# Collect host-machine-specific information.
3750. ${srcdir}/config.host
3751
19523300
RO
3752# Check if Solaris/x86 linker supports ZERO terminator unwind entries.
3753# This is after config.host so we can augment tmake_file.
3754# Link with -nostartfiles -nodefaultlibs since neither are present while
3755# building libgcc.
3756case ${host} in
b595b1a1 3757i?86-*-solaris2*)
19523300
RO
3758 cat > conftest.s <<EOF
3759 .section .eh_frame,"a",@unwind
3760 .zero 4
3761 .section .jcr,"aw",@progbits
3762 .zero 8
3763EOF
3764 if { ac_try='${CC-cc} -shared -nostartfiles -nodefaultlibs -o conftest.so conftest.s 1>&5'
5213506e 3765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19523300
RO
3766 (eval $ac_try) 2>&5
3767 ac_status=$?
5213506e
RW
3768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3769 test $ac_status = 0; }; }; then
19523300
RO
3770 # configure expects config files in libgcc/config, so need a relative
3771 # path here.
3772 tmake_file="${tmake_file} ../../gcc/config/i386/t-crtstuff"
3773 fi
3774 ;;
3775esac
3776
fa958513
DJ
3777# Check for visibility support. This is after config.host so that
3778# we can check for asm_hidden_op.
5213506e
RW
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
3780$as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
3781if test "${libgcc_cv_hidden_visibility_attribute+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
fa958513
DJ
3783else
3784
3785 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
3786 libgcc_cv_hidden_visibility_attribute=no
3787 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5213506e 3788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
fa958513
DJ
3789 (eval $ac_try) 2>&5
3790 ac_status=$?
5213506e
RW
3791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792 test $ac_status = 0; }; }; then
fa958513
DJ
3793 if grep "\\$asm_hidden_op.*foo" conftest.s >/dev/null; then
3794 libgcc_cv_hidden_visibility_attribute=yes
3795 fi
3796 fi
3797 rm -f conftest.*
3798
3799fi
5213506e
RW
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_hidden_visibility_attribute" >&5
3801$as_echo "$libgcc_cv_hidden_visibility_attribute" >&6; }
fa958513
DJ
3802
3803if test $libgcc_cv_hidden_visibility_attribute = yes; then
3804 vis_hide='-fvisibility=hidden -DHIDE_EXPORTS'
3805else
3806 vis_hide=
3807fi
3808
3809
6f461e76
L
3810# See if we have thread-local storage. We can only test assembler
3811# sicne link-time and run-time tests require the newly built
3812# gcc, which can't be used to build executable due to that libgcc
3813# is yet to be built here.
3814
5213506e
RW
3815 # Check whether --enable-tls was given.
3816if test "${enable_tls+set}" = set; then :
3817 enableval=$enable_tls;
6f461e76
L
3818 case "$enableval" in
3819 yes|no) ;;
5213506e 3820 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
6f461e76
L
3821 esac
3822
3823else
3824 enable_tls=yes
5213506e 3825fi
6f461e76 3826
5213506e
RW
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target assembler supports thread-local storage" >&5
3829$as_echo_n "checking whether the target assembler supports thread-local storage... " >&6; }
3830if test "${gcc_cv_have_cc_tls+set}" = set; then :
3831 $as_echo_n "(cached) " >&6
6f461e76
L
3832else
3833
5213506e
RW
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
6f461e76
L
3836__thread int a; int b; int main() { return a = b; }
3837_ACEOF
5213506e 3838if ac_fn_c_try_compile "$LINENO"; then :
b4e9c2c6 3839 gcc_cv_have_cc_tls=yes
6f461e76 3840else
5213506e 3841 gcc_cv_have_cc_tls=no
6f461e76 3842fi
5213506e 3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6f461e76
L
3844
3845fi
5213506e
RW
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_cc_tls" >&5
3847$as_echo "$gcc_cv_have_cc_tls" >&6; }
22867d02 3848set_have_cc_tls=
b4e9c2c6 3849if test "$enable_tls $gcc_cv_have_cc_tls" = "yes yes"; then
6f461e76
L
3850 set_have_cc_tls="-DHAVE_CC_TLS"
3851fi
3852
3853
368fabd5
JH
3854# See if we have emulated thread-local storage.
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
3857$as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
3858if test "${gcc_cv_use_emutls+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860else
3861
3862 gcc_cv_use_emutls=no
3863 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
3864 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
3865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869 test $ac_status = 0; }; }; then
3870 if grep __emutls_get_address conftest.s > /dev/null; then
3871 gcc_cv_use_emutls=yes
3872 fi
3873 fi
3874 rm -f conftest.*
3875
3876fi
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
3878$as_echo "$gcc_cv_use_emutls" >&6; }
3879 if test "$gcc_cv_use_emutls" = "yes" ; then
3880
3881$as_echo "#define USE_EMUTLS 1" >>confdefs.h
3882
3883 fi
3884set_use_emutls=
3885if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
3886 set_use_emutls="-DUSE_EMUTLS"
3887fi
3888
3889
fa958513
DJ
3890# Conditionalize the makefile for this target machine.
3891tmake_file_=
3892for f in ${tmake_file}
3893do
3894 if test -f ${srcdir}/config/$f
3895 then
3896 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
3897 fi
3898done
3899tmake_file="${tmake_file_}"
3900
3901
3902# Substitute configuration variables
3903
3904
3905
3906# We need multilib support.
5213506e 3907ac_config_files="$ac_config_files Makefile"
fa958513 3908
5213506e 3909ac_config_commands="$ac_config_commands default"
fa958513
DJ
3910
3911cat >confcache <<\_ACEOF
3912# This file is a shell script that caches the results of configure
3913# tests run on this system so they can be shared between configure
3914# scripts and configure runs, see configure's option --config-cache.
3915# It is not useful on other systems. If it contains results you don't
3916# want to keep, you may remove or edit it.
3917#
3918# config.status only pays attention to the cache file if you give it
3919# the --recheck option to rerun configure.
3920#
3921# `ac_cv_env_foo' variables (set or unset) will be overridden when
3922# loading this file, other *unset* `ac_cv_foo' will be assigned the
3923# following values.
3924
3925_ACEOF
3926
3927# The following way of writing the cache mishandles newlines in values,
3928# but we know of no workaround that is simple, portable, and efficient.
5213506e 3929# So, we kill variables containing newlines.
fa958513
DJ
3930# Ultrix sh set writes to stderr and can't be redirected directly,
3931# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
3932(
3933 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3934 eval ac_val=\$$ac_var
3935 case $ac_val in #(
3936 *${as_nl}*)
3937 case $ac_var in #(
3938 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3939$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3940 esac
3941 case $ac_var in #(
3942 _ | IFS | as_nl) ;; #(
3943 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3944 *) { eval $ac_var=; unset $ac_var;} ;;
3945 esac ;;
3946 esac
3947 done
3948
fa958513 3949 (set) 2>&1 |
5213506e
RW
3950 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3951 *${as_nl}ac_space=\ *)
3952 # `set' does not quote correctly, so add quotes: double-quote
3953 # substitution turns \\\\ into \\, and sed turns \\ into \.
fa958513
DJ
3954 sed -n \
3955 "s/'/'\\\\''/g;
3956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 3957 ;; #(
fa958513
DJ
3958 *)
3959 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 3960 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
fa958513 3961 ;;
5213506e
RW
3962 esac |
3963 sort
3964) |
fa958513 3965 sed '
5213506e 3966 /^ac_cv_env_/b end
fa958513 3967 t clear
5213506e 3968 :clear
fa958513
DJ
3969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3970 t end
5213506e
RW
3971 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3972 :end' >>confcache
3973if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3974 if test -w "$cache_file"; then
3975 test "x$cache_file" != "x/dev/null" &&
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3977$as_echo "$as_me: updating cache $cache_file" >&6;}
fa958513
DJ
3978 cat confcache >$cache_file
3979 else
5213506e
RW
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3981$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
fa958513
DJ
3982 fi
3983fi
3984rm -f confcache
3985
3986test "x$prefix" = xNONE && prefix=$ac_default_prefix
3987# Let make expand exec_prefix.
3988test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3989
fa958513
DJ
3990# Transform confdefs.h into DEFS.
3991# Protect against shell expansion while executing Makefile rules.
3992# Protect against Makefile macro expansion.
3993#
3994# If the first sed substitution is executed (which looks for macros that
5213506e 3995# take arguments), then branch to the quote section. Otherwise,
fa958513 3996# look for a macro that doesn't take arguments.
5213506e
RW
3997ac_script='
3998:mline
3999/\\$/{
4000 N
4001 s,\\\n,,
4002 b mline
4003}
fa958513 4004t clear
5213506e
RW
4005:clear
4006s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
fa958513 4007t quote
5213506e 4008s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
fa958513 4009t quote
5213506e
RW
4010b any
4011:quote
4012s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4013s/\[/\\&/g
4014s/\]/\\&/g
4015s/\$/$$/g
4016H
4017:any
4018${
4019 g
4020 s/^\n//
4021 s/\n/ /g
4022 p
4023}
4024'
4025DEFS=`sed -n "$ac_script" confdefs.h`
fa958513
DJ
4026
4027
4028ac_libobjs=
4029ac_ltlibobjs=
4030for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4031 # 1. Remove the extension, and $U if already installed.
5213506e
RW
4032 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4033 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4034 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4035 # will be set to the directory where LIBOBJS objects are built.
4036 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4037 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
fa958513
DJ
4038done
4039LIBOBJS=$ac_libobjs
4040
4041LTLIBOBJS=$ac_ltlibobjs
4042
4043
4044
4045: ${CONFIG_STATUS=./config.status}
5213506e 4046ac_write_fail=0
fa958513
DJ
4047ac_clean_files_save=$ac_clean_files
4048ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
4049{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4050$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4051as_write_fail=0
4052cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
fa958513
DJ
4053#! $SHELL
4054# Generated by $as_me.
4055# Run this file to recreate the current configuration.
4056# Compiler output produced by configure, useful for debugging
4057# configure, is in config.log if it exists.
4058
4059debug=false
4060ac_cs_recheck=false
4061ac_cs_silent=false
fa958513 4062
5213506e
RW
4063SHELL=\${CONFIG_SHELL-$SHELL}
4064export SHELL
4065_ASEOF
4066cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4067## -------------------- ##
4068## M4sh Initialization. ##
4069## -------------------- ##
4070
4071# Be more Bourne compatible
4072DUALCASE=1; export DUALCASE # for MKS sh
4073if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
fa958513
DJ
4074 emulate sh
4075 NULLCMD=:
5213506e 4076 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
fa958513
DJ
4077 # is contrary to our usage. Disable this feature.
4078 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
4079 setopt NO_GLOB_SUBST
4080else
4081 case `(set -o) 2>/dev/null` in #(
4082 *posix*) :
4083 set -o posix ;; #(
4084 *) :
4085 ;;
4086esac
fa958513 4087fi
fa958513 4088
5213506e
RW
4089
4090as_nl='
4091'
4092export as_nl
4093# Printing a long string crashes Solaris 7 /usr/bin/printf.
4094as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4095as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4096as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4097# Prefer a ksh shell builtin over an external printf program on Solaris,
4098# but without wasting forks for bash or zsh.
4099if test -z "$BASH_VERSION$ZSH_VERSION" \
4100 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4101 as_echo='print -r --'
4102 as_echo_n='print -rn --'
4103elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4104 as_echo='printf %s\n'
4105 as_echo_n='printf %s'
fa958513 4106else
5213506e
RW
4107 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4108 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4109 as_echo_n='/usr/ucb/echo -n'
4110 else
4111 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4112 as_echo_n_body='eval
4113 arg=$1;
4114 case $arg in #(
4115 *"$as_nl"*)
4116 expr "X$arg" : "X\\(.*\\)$as_nl";
4117 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4118 esac;
4119 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4120 '
4121 export as_echo_n_body
4122 as_echo_n='sh -c $as_echo_n_body as_echo'
4123 fi
4124 export as_echo_body
4125 as_echo='sh -c $as_echo_body as_echo'
4126fi
4127
4128# The user is always right.
4129if test "${PATH_SEPARATOR+set}" != set; then
4130 PATH_SEPARATOR=:
4131 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4132 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4133 PATH_SEPARATOR=';'
4134 }
fa958513
DJ
4135fi
4136
4137
5213506e
RW
4138# IFS
4139# We need space, tab and new line, in precisely that order. Quoting is
4140# there to prevent editors from complaining about space-tab.
4141# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4142# splitting by setting IFS to empty value.)
4143IFS=" "" $as_nl"
4144
4145# Find who we are. Look in the path if we contain no directory separator.
4146case $0 in #((
4147 *[\\/]* ) as_myself=$0 ;;
4148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4154 done
4155IFS=$as_save_IFS
4156
4157 ;;
4158esac
4159# We did not find ourselves, most probably we were run as `sh COMMAND'
4160# in which case we are not to be found in the path.
4161if test "x$as_myself" = x; then
4162 as_myself=$0
4163fi
4164if test ! -f "$as_myself"; then
4165 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4166 exit 1
4167fi
4168
4169# Unset variables that we do not need and which cause bugs (e.g. in
4170# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4171# suppresses any "Segmentation fault" message there. '((' could
4172# trigger a bug in pdksh 5.2.14.
4173for as_var in BASH_ENV ENV MAIL MAILPATH
4174do eval test x\${$as_var+set} = xset \
4175 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4176done
fa958513
DJ
4177PS1='$ '
4178PS2='> '
4179PS4='+ '
4180
4181# NLS nuisances.
5213506e
RW
4182LC_ALL=C
4183export LC_ALL
4184LANGUAGE=C
4185export LANGUAGE
4186
4187# CDPATH.
4188(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4189
4190
4191# as_fn_error ERROR [LINENO LOG_FD]
4192# ---------------------------------
4193# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4194# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4195# script with status $?, using 1 if that was 0.
4196as_fn_error ()
4197{
4198 as_status=$?; test $as_status -eq 0 && as_status=1
4199 if test "$3"; then
4200 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4201 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
fa958513 4202 fi
5213506e
RW
4203 $as_echo "$as_me: error: $1" >&2
4204 as_fn_exit $as_status
4205} # as_fn_error
4206
fa958513 4207
5213506e
RW
4208# as_fn_set_status STATUS
4209# -----------------------
4210# Set $? to STATUS, without forking.
4211as_fn_set_status ()
4212{
4213 return $1
4214} # as_fn_set_status
4215
4216# as_fn_exit STATUS
4217# -----------------
4218# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4219as_fn_exit ()
4220{
4221 set +e
4222 as_fn_set_status $1
4223 exit $1
4224} # as_fn_exit
4225
4226# as_fn_unset VAR
4227# ---------------
4228# Portably unset VAR.
4229as_fn_unset ()
4230{
4231 { eval $1=; unset $1;}
4232}
4233as_unset=as_fn_unset
4234# as_fn_append VAR VALUE
4235# ----------------------
4236# Append the text in VALUE to the end of the definition contained in VAR. Take
4237# advantage of any shell optimizations that allow amortized linear growth over
4238# repeated appends, instead of the typical quadratic growth present in naive
4239# implementations.
4240if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4241 eval 'as_fn_append ()
4242 {
4243 eval $1+=\$2
4244 }'
4245else
4246 as_fn_append ()
4247 {
4248 eval $1=\$$1\$2
4249 }
4250fi # as_fn_append
4251
4252# as_fn_arith ARG...
4253# ------------------
4254# Perform arithmetic evaluation on the ARGs, and store the result in the
4255# global $as_val. Take advantage of shells that can avoid forks. The arguments
4256# must be portable across $(()) and expr.
4257if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4258 eval 'as_fn_arith ()
4259 {
4260 as_val=$(( $* ))
4261 }'
4262else
4263 as_fn_arith ()
4264 {
4265 as_val=`expr "$@" || test $? -eq 1`
4266 }
4267fi # as_fn_arith
4268
4269
4270if expr a : '\(a\)' >/dev/null 2>&1 &&
4271 test "X`expr 00001 : '.*\(...\)'`" = X001; then
fa958513
DJ
4272 as_expr=expr
4273else
4274 as_expr=false
4275fi
4276
5213506e 4277if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
fa958513
DJ
4278 as_basename=basename
4279else
4280 as_basename=false
4281fi
4282
5213506e
RW
4283if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4284 as_dirname=dirname
4285else
4286 as_dirname=false
4287fi
fa958513 4288
5213506e 4289as_me=`$as_basename -- "$0" ||
fa958513
DJ
4290$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4291 X"$0" : 'X\(//\)$' \| \
5213506e
RW
4292 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4293$as_echo X/"$0" |
4294 sed '/^.*\/\([^/][^/]*\)\/*$/{
4295 s//\1/
4296 q
4297 }
4298 /^X\/\(\/\/\)$/{
4299 s//\1/
4300 q
4301 }
4302 /^X\/\(\/\).*/{
4303 s//\1/
4304 q
4305 }
4306 s/.*/./; q'`
fa958513 4307
d6efbf5a
DJ
4308# Avoid depending upon Character Ranges.
4309as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4310as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4311as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4312as_cr_digits='0123456789'
4313as_cr_alnum=$as_cr_Letters$as_cr_digits
fa958513 4314
5213506e
RW
4315ECHO_C= ECHO_N= ECHO_T=
4316case `echo -n x` in #(((((
4317-n*)
4318 case `echo 'xy\c'` in
4319 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4320 xy) ECHO_C='\c';;
4321 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4322 ECHO_T=' ';;
4323 esac;;
4324*)
4325 ECHO_N='-n';;
fa958513
DJ
4326esac
4327
5213506e
RW
4328rm -f conf$$ conf$$.exe conf$$.file
4329if test -d conf$$.dir; then
4330 rm -f conf$$.dir/conf$$.file
fa958513 4331else
5213506e
RW
4332 rm -f conf$$.dir
4333 mkdir conf$$.dir 2>/dev/null
fa958513 4334fi
5213506e
RW
4335if (echo >conf$$.file) 2>/dev/null; then
4336 if ln -s conf$$.file conf$$ 2>/dev/null; then
d6efbf5a 4337 as_ln_s='ln -s'
5213506e
RW
4338 # ... but there are two gotchas:
4339 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4340 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4341 # In both cases, we have to default to `cp -p'.
4342 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4343 as_ln_s='cp -p'
4344 elif ln conf$$.file conf$$ 2>/dev/null; then
4345 as_ln_s=ln
4346 else
4347 as_ln_s='cp -p'
d6efbf5a 4348 fi
fa958513
DJ
4349else
4350 as_ln_s='cp -p'
4351fi
5213506e
RW
4352rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4353rmdir conf$$.dir 2>/dev/null
4354
4355
4356# as_fn_mkdir_p
4357# -------------
4358# Create "$as_dir" as a directory, including parents if necessary.
4359as_fn_mkdir_p ()
4360{
4361
4362 case $as_dir in #(
4363 -*) as_dir=./$as_dir;;
4364 esac
4365 test -d "$as_dir" || eval $as_mkdir_p || {
4366 as_dirs=
4367 while :; do
4368 case $as_dir in #(
4369 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4370 *) as_qdir=$as_dir;;
4371 esac
4372 as_dirs="'$as_qdir' $as_dirs"
4373 as_dir=`$as_dirname -- "$as_dir" ||
4374$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4375 X"$as_dir" : 'X\(//\)[^/]' \| \
4376 X"$as_dir" : 'X\(//\)$' \| \
4377 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4378$as_echo X"$as_dir" |
4379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4380 s//\1/
4381 q
4382 }
4383 /^X\(\/\/\)[^/].*/{
4384 s//\1/
4385 q
4386 }
4387 /^X\(\/\/\)$/{
4388 s//\1/
4389 q
4390 }
4391 /^X\(\/\).*/{
4392 s//\1/
4393 q
4394 }
4395 s/.*/./; q'`
4396 test -d "$as_dir" && break
4397 done
4398 test -z "$as_dirs" || eval "mkdir $as_dirs"
4399 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
fa958513 4400
5213506e
RW
4401
4402} # as_fn_mkdir_p
fa958513 4403if mkdir -p . 2>/dev/null; then
5213506e 4404 as_mkdir_p='mkdir -p "$as_dir"'
fa958513
DJ
4405else
4406 test -d ./-p && rmdir ./-p
4407 as_mkdir_p=false
4408fi
4409
5213506e
RW
4410if test -x / >/dev/null 2>&1; then
4411 as_test_x='test -x'
4412else
4413 if ls -dL / >/dev/null 2>&1; then
4414 as_ls_L_option=L
4415 else
4416 as_ls_L_option=
4417 fi
4418 as_test_x='
4419 eval sh -c '\''
4420 if test -d "$1"; then
4421 test -d "$1/.";
4422 else
4423 case $1 in #(
4424 -*)set "./$1";;
4425 esac;
4426 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4427 ???[sx]*):;;*)false;;esac;fi
4428 '\'' sh
4429 '
4430fi
4431as_executable_p=$as_test_x
fa958513
DJ
4432
4433# Sed expression to map a string onto a valid CPP name.
4434as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4435
4436# Sed expression to map a string onto a valid variable name.
4437as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4438
4439
fa958513 4440exec 6>&1
5213506e
RW
4441## ----------------------------------- ##
4442## Main body of $CONFIG_STATUS script. ##
4443## ----------------------------------- ##
4444_ASEOF
4445test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4446
4447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4448# Save the log message, to keep $0 and so on meaningful, and to
fa958513 4449# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
4450# values after options handling.
4451ac_log="
fa958513 4452This file was extended by GNU C Runtime Library $as_me 1.0, which was
5213506e 4453generated by GNU Autoconf 2.64. Invocation command line was
fa958513
DJ
4454
4455 CONFIG_FILES = $CONFIG_FILES
4456 CONFIG_HEADERS = $CONFIG_HEADERS
4457 CONFIG_LINKS = $CONFIG_LINKS
4458 CONFIG_COMMANDS = $CONFIG_COMMANDS
4459 $ $0 $@
4460
5213506e
RW
4461on `(hostname || uname -n) 2>/dev/null | sed 1q`
4462"
4463
fa958513
DJ
4464_ACEOF
4465
5213506e
RW
4466case $ac_config_files in *"
4467"*) set x $ac_config_files; shift; ac_config_files=$*;;
4468esac
fa958513 4469
d6efbf5a 4470
d6efbf5a 4471
5213506e
RW
4472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4473# Files that config.status was made for.
4474config_files="$ac_config_files"
4475config_commands="$ac_config_commands"
fa958513 4476
5213506e 4477_ACEOF
d6efbf5a 4478
5213506e 4479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fa958513 4480ac_cs_usage="\
5213506e
RW
4481\`$as_me' instantiates files and other configuration actions
4482from templates according to the current configuration. Unless the files
4483and actions are specified as TAGs, all are instantiated by default.
fa958513 4484
5213506e 4485Usage: $0 [OPTION]... [TAG]...
fa958513
DJ
4486
4487 -h, --help print this help, then exit
5213506e
RW
4488 -V, --version print version number and configuration settings, then exit
4489 -q, --quiet, --silent
4490 do not print progress messages
fa958513
DJ
4491 -d, --debug don't remove temporary files
4492 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
4493 --file=FILE[:TEMPLATE]
4494 instantiate the configuration file FILE
fa958513
DJ
4495
4496Configuration files:
4497$config_files
4498
4499Configuration commands:
4500$config_commands
4501
5213506e
RW
4502Report bugs to the package provider.
4503GNU C Runtime Library home page: <http://www.gnu.org/software/libgcc/>.
4504General help using GNU software: <http://www.gnu.org/gethelp/>."
d6efbf5a 4505
5213506e
RW
4506_ACEOF
4507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fa958513
DJ
4508ac_cs_version="\\
4509GNU C Runtime Library config.status 1.0
5213506e
RW
4510configured by $0, generated by GNU Autoconf 2.64,
4511 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
fa958513 4512
5213506e 4513Copyright (C) 2009 Free Software Foundation, Inc.
fa958513
DJ
4514This config.status script is free software; the Free Software Foundation
4515gives unlimited permission to copy, distribute and modify it."
5213506e
RW
4516
4517ac_pwd='$ac_pwd'
4518srcdir='$srcdir'
4519INSTALL='$INSTALL'
4520AWK='$AWK'
4521test -n "\$AWK" || AWK=awk
fa958513
DJ
4522_ACEOF
4523
5213506e
RW
4524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4525# The default lists apply if the user does not specify any file.
fa958513
DJ
4526ac_need_defaults=:
4527while test $# != 0
4528do
4529 case $1 in
4530 --*=*)
5213506e
RW
4531 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4532 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
fa958513
DJ
4533 ac_shift=:
4534 ;;
5213506e 4535 *)
fa958513
DJ
4536 ac_option=$1
4537 ac_optarg=$2
4538 ac_shift=shift
4539 ;;
fa958513
DJ
4540 esac
4541
4542 case $ac_option in
4543 # Handling of the options.
fa958513
DJ
4544 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4545 ac_cs_recheck=: ;;
5213506e
RW
4546 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4547 $as_echo "$ac_cs_version"; exit ;;
4548 --debug | --debu | --deb | --de | --d | -d )
fa958513
DJ
4549 debug=: ;;
4550 --file | --fil | --fi | --f )
4551 $ac_shift
5213506e
RW
4552 case $ac_optarg in
4553 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4554 esac
4555 as_fn_append CONFIG_FILES " '$ac_optarg'"
d6efbf5a 4556 ac_need_defaults=false;;
5213506e
RW
4557 --he | --h | --help | --hel | -h )
4558 $as_echo "$ac_cs_usage"; exit ;;
fa958513
DJ
4559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4560 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4561 ac_cs_silent=: ;;
4562
4563 # This is an error.
5213506e
RW
4564 -*) as_fn_error "unrecognized option: \`$1'
4565Try \`$0 --help' for more information." ;;
fa958513 4566
5213506e
RW
4567 *) as_fn_append ac_config_targets " $1"
4568 ac_need_defaults=false ;;
fa958513
DJ
4569
4570 esac
4571 shift
4572done
4573
4574ac_configure_extra_args=
4575
4576if $ac_cs_silent; then
4577 exec 6>/dev/null
4578 ac_configure_extra_args="$ac_configure_extra_args --silent"
4579fi
4580
4581_ACEOF
5213506e 4582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fa958513 4583if \$ac_cs_recheck; then
5213506e
RW
4584 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4585 shift
4586 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4587 CONFIG_SHELL='$SHELL'
4588 export CONFIG_SHELL
4589 exec "\$@"
fa958513
DJ
4590fi
4591
4592_ACEOF
5213506e
RW
4593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4594exec 5>>config.log
4595{
4596 echo
4597 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4598## Running $as_me. ##
4599_ASBOX
4600 $as_echo "$ac_log"
4601} >&5
fa958513 4602
5213506e
RW
4603_ACEOF
4604cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
fa958513 4605#
5213506e 4606# INIT-COMMANDS
fa958513 4607#
fa958513
DJ
4608srcdir=${srcdir}
4609host=${host}
fa958513
DJ
4610with_target_subdir=${with_target_subdir}
4611with_multisubdir=${with_multisubdir}
4612ac_configure_args="--enable-multilib ${ac_configure_args}"
4613CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4614libgcc_topdir=${libgcc_topdir}
4615CC="${CC}"
4616
4617
4618_ACEOF
4619
5213506e 4620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14e8fc8b 4621
5213506e 4622# Handling of arguments.
fa958513
DJ
4623for ac_config_target in $ac_config_targets
4624do
5213506e
RW
4625 case $ac_config_target in
4626 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4627 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4628
4629 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
fa958513
DJ
4630 esac
4631done
4632
5213506e 4633
fa958513
DJ
4634# If the user did not use the arguments to specify the items to instantiate,
4635# then the envvar interface is used. Set only those that are not.
4636# We use the long form for the default assignment because of an extremely
4637# bizarre bug on SunOS 4.1.3.
4638if $ac_need_defaults; then
4639 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4641fi
4642
4643# Have a temporary directory for convenience. Make it in the build tree
5213506e 4644# simply because there is no reason against having it here, and in addition,
fa958513 4645# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
4646# Hook for its removal unless debugging.
4647# Note that there is a small window in which the directory will not be cleaned:
4648# after its creation but before its name has been assigned to `$tmp'.
fa958513
DJ
4649$debug ||
4650{
5213506e
RW
4651 tmp=
4652 trap 'exit_status=$?
4653 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
4654' 0
4655 trap 'as_fn_exit 1' 1 2 13 15
fa958513 4656}
fa958513
DJ
4657# Create a (secure) tmp directory for tmp files.
4658
4659{
5213506e 4660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
fa958513
DJ
4661 test -n "$tmp" && test -d "$tmp"
4662} ||
4663{
5213506e
RW
4664 tmp=./conf$$-$RANDOM
4665 (umask 077 && mkdir "$tmp")
4666} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
4667
4668# Set up the scripts for CONFIG_FILES section.
4669# No need to generate them if there are no CONFIG_FILES.
4670# This happens for instance with `./config.status config.h'.
4671if test -n "$CONFIG_FILES"; then
4672
4673
4674ac_cr=`echo X | tr X '\015'`
4675# On cygwin, bash can eat \r inside `` if the user requested igncr.
4676# But we know of no other shell where ac_cr would be empty at this
4677# point, so we can use a bashism as a fallback.
4678if test "x$ac_cr" = x; then
4679 eval ac_cr=\$\'\\r\'
4680fi
4681ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4682if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4683 ac_cs_awk_cr='\r'
4684else
4685 ac_cs_awk_cr=$ac_cr
4686fi
4687
4688echo 'BEGIN {' >"$tmp/subs1.awk" &&
4689_ACEOF
4690
4691
4692{
4693 echo "cat >conf$$subs.awk <<_ACEOF" &&
4694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4695 echo "_ACEOF"
4696} >conf$$subs.sh ||
4697 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4698ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
4699ac_delim='%!_!# '
4700for ac_last_try in false false false false false :; do
4701 . ./conf$$subs.sh ||
4702 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4703
4704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4705 if test $ac_delim_n = $ac_delim_num; then
4706 break
4707 elif $ac_last_try; then
4708 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
4709 else
4710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4711 fi
4712done
4713rm -f conf$$subs.sh
4714
4715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4716cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
4717_ACEOF
4718sed -n '
4719h
4720s/^/S["/; s/!.*/"]=/
4721p
4722g
4723s/^[^!]*!//
4724:repl
4725t repl
4726s/'"$ac_delim"'$//
4727t delim
4728:nl
4729h
4730s/\(.\{148\}\).*/\1/
4731t more1
4732s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4733p
4734n
4735b repl
4736:more1
4737s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4738p
4739g
4740s/.\{148\}//
4741t nl
4742:delim
4743h
4744s/\(.\{148\}\).*/\1/
4745t more2
4746s/["\\]/\\&/g; s/^/"/; s/$/"/
4747p
4748b
4749:more2
4750s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4751p
4752g
4753s/.\{148\}//
4754t delim
4755' <conf$$subs.awk | sed '
4756/^[^""]/{
4757 N
4758 s/\n//
4759}
4760' >>$CONFIG_STATUS || ac_write_fail=1
4761rm -f conf$$subs.awk
4762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4763_ACAWK
4764cat >>"\$tmp/subs1.awk" <<_ACAWK &&
4765 for (key in S) S_is_set[key] = 1
4766 FS = "\a"
4767
4768}
fa958513 4769{
5213506e
RW
4770 line = $ 0
4771 nfields = split(line, field, "@")
4772 substed = 0
4773 len = length(field[1])
4774 for (i = 2; i < nfields; i++) {
4775 key = field[i]
4776 keylen = length(key)
4777 if (S_is_set[key]) {
4778 value = S[key]
4779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4780 len += length(value) + length(field[++i])
4781 substed = 1
4782 } else
4783 len += 1 + keylen
4784 }
4785
4786 print line
fa958513
DJ
4787}
4788
5213506e
RW
4789_ACAWK
4790_ACEOF
4791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4792if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4793 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4794else
4795 cat
4796fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
4797 || as_fn_error "could not setup config files machinery" "$LINENO" 5
d6efbf5a
DJ
4798_ACEOF
4799
5213506e
RW
4800# VPATH may cause trouble with some makes, so we remove $(srcdir),
4801# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4802# trailing colons and then remove the whole line if VPATH becomes empty
4803# (actually we leave an empty line to preserve line numbers).
4804if test "x$srcdir" = x.; then
4805 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4806s/:*\$(srcdir):*/:/
4807s/:*\${srcdir}:*/:/
4808s/:*@srcdir@:*/:/
4809s/^\([^=]*=[ ]*\):*/\1/
4810s/:*$//
4811s/^[^=]*=[ ]*$//
4812}'
4813fi
d6efbf5a 4814
5213506e
RW
4815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4816fi # test -n "$CONFIG_FILES"
fa958513 4817
fa958513 4818
5213506e
RW
4819eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
4820shift
4821for ac_tag
4822do
4823 case $ac_tag in
4824 :[FHLC]) ac_mode=$ac_tag; continue;;
4825 esac
4826 case $ac_mode$ac_tag in
4827 :[FHL]*:*);;
4828 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
4829 :[FH]-) ac_tag=-:-;;
4830 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4831 esac
4832 ac_save_IFS=$IFS
4833 IFS=:
4834 set x $ac_tag
4835 IFS=$ac_save_IFS
4836 shift
4837 ac_file=$1
4838 shift
fa958513 4839
5213506e
RW
4840 case $ac_mode in
4841 :L) ac_source=$1;;
4842 :[FH])
4843 ac_file_inputs=
4844 for ac_f
4845 do
4846 case $ac_f in
4847 -) ac_f="$tmp/stdin";;
4848 *) # Look for the file first in the build tree, then in the source tree
4849 # (if the path is not absolute). The absolute path cannot be DOS-style,
4850 # because $ac_f cannot contain `:'.
4851 test -f "$ac_f" ||
4852 case $ac_f in
4853 [\\/$]*) false;;
4854 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4855 esac ||
4856 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4857 esac
4858 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4859 as_fn_append ac_file_inputs " '$ac_f'"
4860 done
4861
4862 # Let's still pretend it is `configure' which instantiates (i.e., don't
4863 # use $as_me), people would be surprised to read:
4864 # /* config.h. Generated by config.status. */
4865 configure_input='Generated from '`
4866 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4867 `' by configure.'
4868 if test x"$ac_file" != x-; then
4869 configure_input="$ac_file. $configure_input"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4871$as_echo "$as_me: creating $ac_file" >&6;}
d6efbf5a 4872 fi
5213506e
RW
4873 # Neutralize special characters interpreted by sed in replacement strings.
4874 case $configure_input in #(
4875 *\&* | *\|* | *\\* )
4876 ac_sed_conf_input=`$as_echo "$configure_input" |
4877 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4878 *) ac_sed_conf_input=$configure_input;;
4879 esac
14e8fc8b 4880
5213506e
RW
4881 case $ac_tag in
4882 *:-:* | *:-) cat >"$tmp/stdin" \
4883 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
4884 esac
4885 ;;
14e8fc8b
PB
4886 esac
4887
5213506e 4888 ac_dir=`$as_dirname -- "$ac_file" ||
fa958513
DJ
4889$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4890 X"$ac_file" : 'X\(//\)[^/]' \| \
4891 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
4892 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4893$as_echo X"$ac_file" |
4894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4895 s//\1/
4896 q
4897 }
4898 /^X\(\/\/\)[^/].*/{
4899 s//\1/
4900 q
4901 }
4902 /^X\(\/\/\)$/{
4903 s//\1/
4904 q
4905 }
4906 /^X\(\/\).*/{
4907 s//\1/
4908 q
4909 }
4910 s/.*/./; q'`
4911 as_dir="$ac_dir"; as_fn_mkdir_p
fa958513
DJ
4912 ac_builddir=.
4913
5213506e
RW
4914case "$ac_dir" in
4915.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4916*)
4917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4918 # A ".." for each directory in $ac_dir_suffix.
4919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4920 case $ac_top_builddir_sub in
4921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4923 esac ;;
4924esac
4925ac_abs_top_builddir=$ac_pwd
4926ac_abs_builddir=$ac_pwd$ac_dir_suffix
4927# for backward compatibility:
4928ac_top_builddir=$ac_top_build_prefix
fa958513
DJ
4929
4930case $srcdir in
5213506e 4931 .) # We are building in place.
fa958513 4932 ac_srcdir=.
5213506e
RW
4933 ac_top_srcdir=$ac_top_builddir_sub
4934 ac_abs_top_srcdir=$ac_pwd ;;
4935 [\\/]* | ?:[\\/]* ) # Absolute name.
fa958513 4936 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
4937 ac_top_srcdir=$srcdir
4938 ac_abs_top_srcdir=$srcdir ;;
4939 *) # Relative name.
4940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4941 ac_top_srcdir=$ac_top_build_prefix$srcdir
4942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
fa958513 4943esac
5213506e 4944ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
fa958513 4945
fa958513 4946
5213506e
RW
4947 case $ac_mode in
4948 :F)
4949 #
4950 # CONFIG_FILE
4951 #
fa958513
DJ
4952
4953 case $INSTALL in
4954 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 4955 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
fa958513 4956 esac
5213506e 4957_ACEOF
14e8fc8b 4958
5213506e
RW
4959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4960# If the template does not know about datarootdir, expand it.
4961# FIXME: This hack should be removed a few years after 2.60.
4962ac_datarootdir_hack=; ac_datarootdir_seen=
4963ac_sed_dataroot='
4964/datarootdir/ {
4965 p
4966 q
4967}
4968/@datadir@/p
4969/@docdir@/p
4970/@infodir@/p
4971/@localedir@/p
4972/@mandir@/p'
4973case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
4974*datarootdir*) ac_datarootdir_seen=yes;;
4975*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4977$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4978_ACEOF
4979cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4980 ac_datarootdir_hack='
4981 s&@datadir@&$datadir&g
4982 s&@docdir@&$docdir&g
4983 s&@infodir@&$infodir&g
4984 s&@localedir@&$localedir&g
4985 s&@mandir@&$mandir&g
4986 s&\\\${datarootdir}&$datarootdir&g' ;;
4987esac
fa958513 4988_ACEOF
5213506e
RW
4989
4990# Neutralize VPATH when `$srcdir' = `.'.
4991# Shell code in configure.ac might set extrasub.
4992# FIXME: do we really want to maintain this feature?
4993cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4994ac_sed_extra="$ac_vpsub
fa958513
DJ
4995$extrasub
4996_ACEOF
5213506e 4997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
fa958513
DJ
4998:t
4999/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
5000s|@configure_input@|$ac_sed_conf_input|;t t
5001s&@top_builddir@&$ac_top_builddir_sub&;t t
5002s&@top_build_prefix@&$ac_top_build_prefix&;t t
5003s&@srcdir@&$ac_srcdir&;t t
5004s&@abs_srcdir@&$ac_abs_srcdir&;t t
5005s&@top_srcdir@&$ac_top_srcdir&;t t
5006s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5007s&@builddir@&$ac_builddir&;t t
5008s&@abs_builddir@&$ac_abs_builddir&;t t
5009s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5010s&@INSTALL@&$ac_INSTALL&;t t
5011$ac_datarootdir_hack
5012"
5013eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5014 || as_fn_error "could not create $ac_file" "$LINENO" 5
5015
5016test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5017 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5018 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5020which seems to be undefined. Please make sure it is defined." >&5
5021$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5022which seems to be undefined. Please make sure it is defined." >&2;}
5023
5024 rm -f "$tmp/stdin"
5025 case $ac_file in
5026 -) cat "$tmp/out" && rm -f "$tmp/out";;
5027 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5028 esac \
5029 || as_fn_error "could not create $ac_file" "$LINENO" 5
5030 ;;
d6efbf5a 5031
d6efbf5a 5032
5213506e
RW
5033 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5034$as_echo "$as_me: executing $ac_file commands" >&6;}
5035 ;;
5036 esac
d6efbf5a
DJ
5037
5038
5213506e
RW
5039 case $ac_file$ac_mode in
5040 "default":C) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
fa958513
DJ
5041if test -n "$CONFIG_FILES"; then
5042 # FIXME: We shouldn't need to set ac_file
5043 ac_file=Makefile
5044 . ${libgcc_topdir}/config-ml.in
5045fi ;;
5213506e 5046
fa958513 5047 esac
5213506e 5048done # for ac_tag
fa958513 5049
fa958513 5050
5213506e 5051as_fn_exit 0
fa958513 5052_ACEOF
fa958513
DJ
5053ac_clean_files=$ac_clean_files_save
5054
5213506e
RW
5055test $ac_write_fail = 0 ||
5056 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5057
fa958513
DJ
5058
5059# configure is writing to config.log, and then calls config.status.
5060# config.status does its own redirection, appending to config.log.
5061# Unfortunately, on DOS this fails, as config.log is still kept open
5062# by configure, so config.status won't be able to write to it; its
5063# output is simply discarded. So we exec the FD to /dev/null,
5064# effectively closing config.log, so it can be properly (re)opened and
5065# appended to by config.status. When coming back to configure, we
5066# need to make the FD available again.
5067if test "$no_create" != yes; then
5068 ac_cs_success=:
5069 ac_config_status_args=
5070 test "$silent" = yes &&
5071 ac_config_status_args="$ac_config_status_args --quiet"
5072 exec 5>/dev/null
5073 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5074 exec 5>>config.log
5075 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5076 # would make configure fail if this is the last instruction.
5213506e
RW
5077 $ac_cs_success || as_fn_exit $?
5078fi
5079if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5081$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fa958513
DJ
5082fi
5083