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