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