OSDN Git Service

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