2003-03-25 Roland McGrath <roland@redhat.com>
[platform/upstream/glibc.git] / configure
1 #! /bin/sh
2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57 for GNU C Library (see version.h).
5 #
6 # Report bugs to <glibc>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24   set -o posix
25 fi
26
27 # Support unset when possible.
28 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29   as_unset=unset
30 else
31   as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45   LC_TELEPHONE LC_TIME
46 do
47   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48     eval $as_var=C; export $as_var
49   else
50     $as_unset $as_var
51   fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56   as_expr=expr
57 else
58   as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62   as_basename=basename
63 else
64   as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71          X"$0" : 'X\(//\)$' \| \
72          X"$0" : 'X\(/\)$' \| \
73          .     : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76           /^X\/\(\/\/\)$/{ s//\1/; q; }
77           /^X\/\(\/\).*/{ s//\1/; q; }
78           s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91   echo "#! /bin/sh" >conf$$.sh
92   echo  "exit 0"   >>conf$$.sh
93   chmod +x conf$$.sh
94   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95     PATH_SEPARATOR=';'
96   else
97     PATH_SEPARATOR=:
98   fi
99   rm -f conf$$.sh
100 fi
101
102
103   as_lineno_1=$LINENO
104   as_lineno_2=$LINENO
105   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106   test "x$as_lineno_1" != "x$as_lineno_2" &&
107   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108   # Find who we are.  Look in the path if we contain no path at all
109   # relative or not.
110   case $0 in
111     *[\\/]* ) as_myself=$0 ;;
112     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115   IFS=$as_save_IFS
116   test -z "$as_dir" && as_dir=.
117   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120        ;;
121   esac
122   # We did not find ourselves, most probably we were run as `sh COMMAND'
123   # in which case we are not to be found in the path.
124   if test "x$as_myself" = x; then
125     as_myself=$0
126   fi
127   if test ! -f "$as_myself"; then
128     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129    { (exit 1); exit 1; }; }
130   fi
131   case $CONFIG_SHELL in
132   '')
133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136   IFS=$as_save_IFS
137   test -z "$as_dir" && as_dir=.
138   for as_base in sh bash ksh sh5; do
139          case $as_dir in
140          /*)
141            if ("$as_dir/$as_base" -c '
142   as_lineno_1=$LINENO
143   as_lineno_2=$LINENO
144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145   test "x$as_lineno_1" != "x$as_lineno_2" &&
146   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149              CONFIG_SHELL=$as_dir/$as_base
150              export CONFIG_SHELL
151              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152            fi;;
153          esac
154        done
155 done
156 ;;
157   esac
158
159   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160   # uniformly replaced by the line number.  The first 'sed' inserts a
161   # line-number line before each line; the second 'sed' does the real
162   # work.  The second script uses 'N' to pair each line-number line
163   # with the numbered line, and appends trailing '-' during
164   # substitution so that $LINENO is not a special case at line end.
165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167   sed '=' <$as_myself |
168     sed '
169       N
170       s,$,-,
171       : loop
172       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173       t loop
174       s,-$,,
175       s,^['$as_cr_digits']*\n,,
176     ' >$as_me.lineno &&
177   chmod +x $as_me.lineno ||
178     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179    { (exit 1); exit 1; }; }
180
181   # Don't try to exec as it changes $[0], causing all sort of problems
182   # (the dirname of $[0] is not the place where we might find the
183   # original and so on.  Autoconf is especially sensible to this).
184   . ./$as_me.lineno
185   # Exit status is that of the last command.
186   exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191   *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T='      ' ;;
193   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198   as_expr=expr
199 else
200   as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206   # We could just check for DJGPP; but this test a) works b) is more generic
207   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208   if test -f conf$$.exe; then
209     # Don't use ln at all; we don't have any links
210     as_ln_s='cp -p'
211   else
212     as_ln_s='ln -s'
213   fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215   as_ln_s=ln
216 else
217   as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222   as_mkdir_p=:
223 else
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='GNU C Library'
271 PACKAGE_TARNAME='c-library'
272 PACKAGE_VERSION='(see version.h)'
273 PACKAGE_STRING='GNU C Library (see version.h)'
274 PACKAGE_BUGREPORT='glibc'
275
276 ac_unique_file="include/features.h"
277 ac_subdirs_all="$ac_subdirs_all "
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 #  include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 #  include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 #  include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 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 with_fp with_cvs enable_check_abi oldest_abi subdirs force_install all_warnings build build_cpu build_vendor build_os host host_cpu host_vendor host_os base_machine sysnames INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC OBJEXT BUILD_CC cross_compiling CPP AR OBJDUMP RANLIB ac_ct_RANLIB MIG AS LD PWD_P MAKE MSGFMT MAKEINFO SED AUTOCONF CCVERSION SYSINCLUDES libc_cv_gcc_static_libgcc BASH libc_cv_have_bash2 KSH libc_cv_have_ksh AWK PERL INSTALL_INFO OLD_DEBIAN_INSTALL_INFO BISON VERSIONING libc_cv_asm_protected_directive libc_cv_initfinit_array libc_cv_z_nodelete libc_cv_z_nodlopen libc_cv_z_initfirst libc_cv_Bgroup libc_cv_z_combreloc libc_cv_have_initfini libc_cv_cpp_asm_debuginfo no_whole_archive exceptions LIBGD EGREP sizeof_long_double libc_cv_gcc_unwind_find_fde uname_sysname uname_release uname_version old_glibc_headers libc_cv_slibdir libc_cv_localedir libc_cv_sysconfdir libc_cv_rootsbindir use_ldconfig ldd_rewrite_script gnu_ld gnu_as elf xcoff static shared pic_default profile omitfp bounded static_nss nopic_initfini DEFINES linux_doors mach_interface_list VERSION RELEASE LIBOBJS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359   # If the previous option needs an argument, assign it.
360   if test -n "$ac_prev"; then
361     eval "$ac_prev=\$ac_option"
362     ac_prev=
363     continue
364   fi
365
366   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368   # Accept the important Cygnus configure options, so we can diagnose typos.
369
370   case $ac_option in
371
372   -bindir | --bindir | --bindi | --bind | --bin | --bi)
373     ac_prev=bindir ;;
374   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375     bindir=$ac_optarg ;;
376
377   -build | --build | --buil | --bui | --bu)
378     ac_prev=build_alias ;;
379   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380     build_alias=$ac_optarg ;;
381
382   -cache-file | --cache-file | --cache-fil | --cache-fi \
383   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384     ac_prev=cache_file ;;
385   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387     cache_file=$ac_optarg ;;
388
389   --config-cache | -C)
390     cache_file=config.cache ;;
391
392   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393     ac_prev=datadir ;;
394   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395   | --da=*)
396     datadir=$ac_optarg ;;
397
398   -disable-* | --disable-*)
399     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400     # Reject names that are not valid shell variable names.
401     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403    { (exit 1); exit 1; }; }
404     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405     eval "enable_$ac_feature=no" ;;
406
407   -enable-* | --enable-*)
408     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409     # Reject names that are not valid shell variable names.
410     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412    { (exit 1); exit 1; }; }
413     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414     case $ac_option in
415       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416       *) ac_optarg=yes ;;
417     esac
418     eval "enable_$ac_feature='$ac_optarg'" ;;
419
420   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422   | --exec | --exe | --ex)
423     ac_prev=exec_prefix ;;
424   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426   | --exec=* | --exe=* | --ex=*)
427     exec_prefix=$ac_optarg ;;
428
429   -gas | --gas | --ga | --g)
430     # Obsolete; use --with-gas.
431     with_gas=yes ;;
432
433   -help | --help | --hel | --he | -h)
434     ac_init_help=long ;;
435   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436     ac_init_help=recursive ;;
437   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438     ac_init_help=short ;;
439
440   -host | --host | --hos | --ho)
441     ac_prev=host_alias ;;
442   -host=* | --host=* | --hos=* | --ho=*)
443     host_alias=$ac_optarg ;;
444
445   -includedir | --includedir | --includedi | --included | --include \
446   | --includ | --inclu | --incl | --inc)
447     ac_prev=includedir ;;
448   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449   | --includ=* | --inclu=* | --incl=* | --inc=*)
450     includedir=$ac_optarg ;;
451
452   -infodir | --infodir | --infodi | --infod | --info | --inf)
453     ac_prev=infodir ;;
454   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455     infodir=$ac_optarg ;;
456
457   -libdir | --libdir | --libdi | --libd)
458     ac_prev=libdir ;;
459   -libdir=* | --libdir=* | --libdi=* | --libd=*)
460     libdir=$ac_optarg ;;
461
462   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463   | --libexe | --libex | --libe)
464     ac_prev=libexecdir ;;
465   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466   | --libexe=* | --libex=* | --libe=*)
467     libexecdir=$ac_optarg ;;
468
469   -localstatedir | --localstatedir | --localstatedi | --localstated \
470   | --localstate | --localstat | --localsta | --localst \
471   | --locals | --local | --loca | --loc | --lo)
472     ac_prev=localstatedir ;;
473   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476     localstatedir=$ac_optarg ;;
477
478   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479     ac_prev=mandir ;;
480   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481     mandir=$ac_optarg ;;
482
483   -nfp | --nfp | --nf)
484     # Obsolete; use --without-fp.
485     with_fp=no ;;
486
487   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488   | --no-cr | --no-c | -n)
489     no_create=yes ;;
490
491   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493     no_recursion=yes ;;
494
495   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497   | --oldin | --oldi | --old | --ol | --o)
498     ac_prev=oldincludedir ;;
499   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502     oldincludedir=$ac_optarg ;;
503
504   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505     ac_prev=prefix ;;
506   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507     prefix=$ac_optarg ;;
508
509   -program-prefix | --program-prefix | --program-prefi | --program-pref \
510   | --program-pre | --program-pr | --program-p)
511     ac_prev=program_prefix ;;
512   -program-prefix=* | --program-prefix=* | --program-prefi=* \
513   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514     program_prefix=$ac_optarg ;;
515
516   -program-suffix | --program-suffix | --program-suffi | --program-suff \
517   | --program-suf | --program-su | --program-s)
518     ac_prev=program_suffix ;;
519   -program-suffix=* | --program-suffix=* | --program-suffi=* \
520   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521     program_suffix=$ac_optarg ;;
522
523   -program-transform-name | --program-transform-name \
524   | --program-transform-nam | --program-transform-na \
525   | --program-transform-n | --program-transform- \
526   | --program-transform | --program-transfor \
527   | --program-transfo | --program-transf \
528   | --program-trans | --program-tran \
529   | --progr-tra | --program-tr | --program-t)
530     ac_prev=program_transform_name ;;
531   -program-transform-name=* | --program-transform-name=* \
532   | --program-transform-nam=* | --program-transform-na=* \
533   | --program-transform-n=* | --program-transform-=* \
534   | --program-transform=* | --program-transfor=* \
535   | --program-transfo=* | --program-transf=* \
536   | --program-trans=* | --program-tran=* \
537   | --progr-tra=* | --program-tr=* | --program-t=*)
538     program_transform_name=$ac_optarg ;;
539
540   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541   | -silent | --silent | --silen | --sile | --sil)
542     silent=yes ;;
543
544   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545     ac_prev=sbindir ;;
546   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547   | --sbi=* | --sb=*)
548     sbindir=$ac_optarg ;;
549
550   -sharedstatedir | --sharedstatedir | --sharedstatedi \
551   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552   | --sharedst | --shareds | --shared | --share | --shar \
553   | --sha | --sh)
554     ac_prev=sharedstatedir ;;
555   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558   | --sha=* | --sh=*)
559     sharedstatedir=$ac_optarg ;;
560
561   -site | --site | --sit)
562     ac_prev=site ;;
563   -site=* | --site=* | --sit=*)
564     site=$ac_optarg ;;
565
566   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567     ac_prev=srcdir ;;
568   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569     srcdir=$ac_optarg ;;
570
571   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572   | --syscon | --sysco | --sysc | --sys | --sy)
573     ac_prev=sysconfdir ;;
574   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576     sysconfdir=$ac_optarg ;;
577
578   -target | --target | --targe | --targ | --tar | --ta | --t)
579     ac_prev=target_alias ;;
580   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581     target_alias=$ac_optarg ;;
582
583   -v | -verbose | --verbose | --verbos | --verbo | --verb)
584     verbose=yes ;;
585
586   -version | --version | --versio | --versi | --vers | -V)
587     ac_init_version=: ;;
588
589   -with-* | --with-*)
590     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591     # Reject names that are not valid shell variable names.
592     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593       { echo "$as_me: error: invalid package name: $ac_package" >&2
594    { (exit 1); exit 1; }; }
595     ac_package=`echo $ac_package| sed 's/-/_/g'`
596     case $ac_option in
597       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598       *) ac_optarg=yes ;;
599     esac
600     eval "with_$ac_package='$ac_optarg'" ;;
601
602   -without-* | --without-*)
603     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604     # Reject names that are not valid shell variable names.
605     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606       { echo "$as_me: error: invalid package name: $ac_package" >&2
607    { (exit 1); exit 1; }; }
608     ac_package=`echo $ac_package | sed 's/-/_/g'`
609     eval "with_$ac_package=no" ;;
610
611   --x)
612     # Obsolete; use --with-x.
613     with_x=yes ;;
614
615   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616   | --x-incl | --x-inc | --x-in | --x-i)
617     ac_prev=x_includes ;;
618   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620     x_includes=$ac_optarg ;;
621
622   -x-libraries | --x-libraries | --x-librarie | --x-librari \
623   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624     ac_prev=x_libraries ;;
625   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627     x_libraries=$ac_optarg ;;
628
629   -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631    { (exit 1); exit 1; }; }
632     ;;
633
634   *=*)
635     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636     # Reject names that are not valid shell variable names.
637     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639    { (exit 1); exit 1; }; }
640     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641     eval "$ac_envvar='$ac_optarg'"
642     export $ac_envvar ;;
643
644   *)
645     # FIXME: should be removed in autoconf 3.0.
646     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650     ;;
651
652   esac
653 done
654
655 if test -n "$ac_prev"; then
656   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657   { echo "$as_me: error: missing argument to $ac_option" >&2
658    { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664   eval ac_val=$`echo $ac_var`
665   case $ac_val in
666     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668    { (exit 1); exit 1; }; };;
669   esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674               localstatedir libdir includedir oldincludedir infodir mandir
675 do
676   eval ac_val=$`echo $ac_var`
677   case $ac_val in
678     [\\/$]* | ?:[\\/]* ) ;;
679     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680    { (exit 1); exit 1; }; };;
681   esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693   if test "x$build_alias" = x; then
694     cross_compiling=maybe
695     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696     If a cross compiler is detected then cross compile mode will be used." >&2
697   elif test "x$build_alias" != "x$host_alias"; then
698     cross_compiling=yes
699   fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710   ac_srcdir_defaulted=yes
711   # Try the directory containing this script, then its parent.
712   ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714          X"$0" : 'X\(//\)[^/]' \| \
715          X"$0" : 'X\(//\)$' \| \
716          X"$0" : 'X\(/\)' \| \
717          .     : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721           /^X\(\/\/\)$/{ s//\1/; q; }
722           /^X\(\/\).*/{ s//\1/; q; }
723           s/.*/./; q'`
724   srcdir=$ac_confdir
725   if test ! -r $srcdir/$ac_unique_file; then
726     srcdir=..
727   fi
728 else
729   ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732   if test "$ac_srcdir_defaulted" = yes; then
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734    { (exit 1); exit 1; }; }
735   else
736     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737    { (exit 1); exit 1; }; }
738   fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742    { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781   # Omit some internal or obsolete options to make the list less imposing.
782   # This message is too long to be a string in the A/UX 3.1 sh.
783   cat <<_ACEOF
784 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE.  See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794   -h, --help              display this help and exit
795       --help=short        display options specific to this package
796       --help=recursive    display the short help of all the included packages
797   -V, --version           display version information and exit
798   -q, --quiet, --silent   do not print \`checking...' messages
799       --cache-file=FILE   cache test results in FILE [disabled]
800   -C, --config-cache      alias for \`--cache-file=config.cache'
801   -n, --no-create         do not create output files
802       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806   cat <<_ACEOF
807 Installation directories:
808   --prefix=PREFIX         install architecture-independent files in PREFIX
809                           [$ac_default_prefix]
810   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
811                           [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821   --bindir=DIR           user executables [EPREFIX/bin]
822   --sbindir=DIR          system admin executables [EPREFIX/sbin]
823   --libexecdir=DIR       program executables [EPREFIX/libexec]
824   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
825   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
826   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
827   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
828   --libdir=DIR           object code libraries [EPREFIX/lib]
829   --includedir=DIR       C header files [PREFIX/include]
830   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
831   --infodir=DIR          info documentation [PREFIX/info]
832   --mandir=DIR           man documentation [PREFIX/man]
833 _ACEOF
834
835   cat <<\_ACEOF
836
837 System types:
838   --build=BUILD     configure for building on BUILD [guessed]
839   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-sanity-checks really do not use threads (should not be used except
853                           in special situations) [default=yes]
854   --disable-check-abi     omit "make check-abi" from "make check"
855   --enable-shared         build shared library [default=yes if GNU ld &
856                           ELF]
857   --enable-profile        build profiled library [default=yes]
858   --enable-omitfp         build undebuggable optimized library
859                           [default=no]
860   --enable-bounded        build with runtime bounds checking
861                           [default=no]
862   --disable-versioning    do not include versioning information in the library
863                           objects [default=yes if supported]
864   --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
865                           [default=glibc default]
866   --enable-add-ons[=DIRS...]
867                           configure and build add-ons in DIR1,DIR2,... search
868                           for add-ons if no parameter given
869   --disable-hidden-plt    do not hide internal function calls to avoid PLT
870   --enable-static-nss     build static NSS modules [default=no]
871   --disable-force-install don't force installation of files from this package,
872                           even if they are older than the installed files
873   --enable-kernel=VERSION compile for compatibility with kernel not older than
874                           VERSION
875   --enable-all-warnings   enable all useful warnings gcc can issue
876
877 Optional Packages:
878   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880   --with-gmp=DIRECTORY    find GMP source code in DIRECTORY (not needed)
881   --with-gd=DIR           find libgd include dir and library with prefix DIR
882   --with-gd-include=DIR   find libgd include files in DIR
883   --with-gd-lib=DIR       find libgd library files in DIR
884   --with-fp               if using floating-point hardware [default=yes]
885   --with-binutils=PATH    specify location of binutils (as and ld)
886   --with-elf              if using the ELF object format
887   --with-xcoff            if using the XCOFF object format
888   --without-cvs           if CVS should not be used
889   --with-headers=PATH     location of system headers to use (for example
890                           /usr/src/linux/include) [default=compiler
891                           default]
892   --with-tls              enable support for TLS
893   --without-__thread      do not use TLS features even when supporting them
894
895 Some influential environment variables:
896   CC          C compiler command
897   CFLAGS      C compiler flags
898   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
899               nonstandard directory <lib dir>
900   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
901               headers in a nonstandard directory <include dir>
902   CPP         C preprocessor
903
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
906
907 Report bugs to <glibc>.
908 _ACEOF
909 fi
910
911 if test "$ac_init_help" = "recursive"; then
912   # If there are subdirs, report their specific --help.
913   ac_popdir=`pwd`
914   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915     test -d $ac_dir || continue
916     ac_builddir=.
917
918 if test "$ac_dir" != .; then
919   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920   # A "../" for each directory in $ac_dir_suffix.
921   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 else
923   ac_dir_suffix= ac_top_builddir=
924 fi
925
926 case $srcdir in
927   .)  # No --srcdir option.  We are building in place.
928     ac_srcdir=.
929     if test -z "$ac_top_builddir"; then
930        ac_top_srcdir=.
931     else
932        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933     fi ;;
934   [\\/]* | ?:[\\/]* )  # Absolute path.
935     ac_srcdir=$srcdir$ac_dir_suffix;
936     ac_top_srcdir=$srcdir ;;
937   *) # Relative path.
938     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939     ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 esac
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
942 # absolute.
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
947
948     cd $ac_dir
949     # Check for guested configure; otherwise get Cygnus style configure.
950     if test -f $ac_srcdir/configure.gnu; then
951       echo
952       $SHELL $ac_srcdir/configure.gnu  --help=recursive
953     elif test -f $ac_srcdir/configure; then
954       echo
955       $SHELL $ac_srcdir/configure  --help=recursive
956     elif test -f $ac_srcdir/configure.ac ||
957            test -f $ac_srcdir/configure.in; then
958       echo
959       $ac_configure --help
960     else
961       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962     fi
963     cd $ac_popdir
964   done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969   cat <<\_ACEOF
970 GNU C Library configure (see version.h)
971 generated by GNU Autoconf 2.57
972
973 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
974 Free Software Foundation, Inc.
975 This configure script is free software; the Free Software Foundation
976 gives unlimited permission to copy, distribute and modify it.
977 _ACEOF
978   exit 0
979 fi
980 exec 5>config.log
981 cat >&5 <<_ACEOF
982 This file contains any messages produced by compilers while
983 running configure, to aid debugging if configure makes a mistake.
984
985 It was created by GNU C Library $as_me (see version.h), which was
986 generated by GNU Autoconf 2.57.  Invocation command line was
987
988   $ $0 $@
989
990 _ACEOF
991 {
992 cat <<_ASUNAME
993 ## --------- ##
994 ## Platform. ##
995 ## --------- ##
996
997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002
1003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1004 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1005
1006 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1007 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1009 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1010 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1011 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1012 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1013
1014 _ASUNAME
1015
1016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 for as_dir in $PATH
1018 do
1019   IFS=$as_save_IFS
1020   test -z "$as_dir" && as_dir=.
1021   echo "PATH: $as_dir"
1022 done
1023
1024 } >&5
1025
1026 cat >&5 <<_ACEOF
1027
1028
1029 ## ----------- ##
1030 ## Core tests. ##
1031 ## ----------- ##
1032
1033 _ACEOF
1034
1035
1036 # Keep a trace of the command line.
1037 # Strip out --no-create and --no-recursion so they do not pile up.
1038 # Strip out --silent because we don't want to record it for future runs.
1039 # Also quote any args containing shell meta-characters.
1040 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_configure_args=
1042 ac_configure_args0=
1043 ac_configure_args1=
1044 ac_sep=
1045 ac_must_keep_next=false
1046 for ac_pass in 1 2
1047 do
1048   for ac_arg
1049   do
1050     case $ac_arg in
1051     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1052     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053     | -silent | --silent | --silen | --sile | --sil)
1054       continue ;;
1055     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1056       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057     esac
1058     case $ac_pass in
1059     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060     2)
1061       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1062       if test $ac_must_keep_next = true; then
1063         ac_must_keep_next=false # Got value, back to normal.
1064       else
1065         case $ac_arg in
1066           *=* | --config-cache | -C | -disable-* | --disable-* \
1067           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1068           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1069           | -with-* | --with-* | -without-* | --without-* | --x)
1070             case "$ac_configure_args0 " in
1071               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072             esac
1073             ;;
1074           -* ) ac_must_keep_next=true ;;
1075         esac
1076       fi
1077       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1078       # Get rid of the leading space.
1079       ac_sep=" "
1080       ;;
1081     esac
1082   done
1083 done
1084 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1085 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086
1087 # When interrupted or exit'd, cleanup temporary files, and complete
1088 # config.log.  We remove comments because anyway the quotes in there
1089 # would cause problems or look ugly.
1090 # WARNING: Be sure not to use single quotes in there, as some shells,
1091 # such as our DU 5.0 friend, will then `close' the trap.
1092 trap 'exit_status=$?
1093   # Save into config.log some information that might help in debugging.
1094   {
1095     echo
1096
1097     cat <<\_ASBOX
1098 ## ---------------- ##
1099 ## Cache variables. ##
1100 ## ---------------- ##
1101 _ASBOX
1102     echo
1103     # The following way of writing the cache mishandles newlines in values,
1104 {
1105   (set) 2>&1 |
1106     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107     *ac_space=\ *)
1108       sed -n \
1109         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1110           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111       ;;
1112     *)
1113       sed -n \
1114         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1115       ;;
1116     esac;
1117 }
1118     echo
1119
1120     cat <<\_ASBOX
1121 ## ----------------- ##
1122 ## Output variables. ##
1123 ## ----------------- ##
1124 _ASBOX
1125     echo
1126     for ac_var in $ac_subst_vars
1127     do
1128       eval ac_val=$`echo $ac_var`
1129       echo "$ac_var='"'"'$ac_val'"'"'"
1130     done | sort
1131     echo
1132
1133     if test -n "$ac_subst_files"; then
1134       cat <<\_ASBOX
1135 ## ------------- ##
1136 ## Output files. ##
1137 ## ------------- ##
1138 _ASBOX
1139       echo
1140       for ac_var in $ac_subst_files
1141       do
1142         eval ac_val=$`echo $ac_var`
1143         echo "$ac_var='"'"'$ac_val'"'"'"
1144       done | sort
1145       echo
1146     fi
1147
1148     if test -s confdefs.h; then
1149       cat <<\_ASBOX
1150 ## ----------- ##
1151 ## confdefs.h. ##
1152 ## ----------- ##
1153 _ASBOX
1154       echo
1155       sed "/^$/d" confdefs.h | sort
1156       echo
1157     fi
1158     test "$ac_signal" != 0 &&
1159       echo "$as_me: caught signal $ac_signal"
1160     echo "$as_me: exit $exit_status"
1161   } >&5
1162   rm -f core core.* *.core &&
1163   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164     exit $exit_status
1165      ' 0
1166 for ac_signal in 1 2 13 15; do
1167   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 done
1169 ac_signal=0
1170
1171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1172 rm -rf conftest* confdefs.h
1173 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 echo >confdefs.h
1175
1176 # Predefined preprocessor variables.
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 _ACEOF
1181
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 _ACEOF
1201
1202
1203 # Let the site file select an alternate cache file if it wants to.
1204 # Prefer explicitly selected file to automatically selected ones.
1205 if test -z "$CONFIG_SITE"; then
1206   if test "x$prefix" != xNONE; then
1207     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208   else
1209     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210   fi
1211 fi
1212 for ac_site_file in $CONFIG_SITE; do
1213   if test -r "$ac_site_file"; then
1214     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1215 echo "$as_me: loading site script $ac_site_file" >&6;}
1216     sed 's/^/| /' "$ac_site_file" >&5
1217     . "$ac_site_file"
1218   fi
1219 done
1220
1221 if test -r "$cache_file"; then
1222   # Some versions of bash will fail to source /dev/null (special
1223   # files actually), so we avoid doing that.
1224   if test -f "$cache_file"; then
1225     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1226 echo "$as_me: loading cache $cache_file" >&6;}
1227     case $cache_file in
1228       [\\/]* | ?:[\\/]* ) . $cache_file;;
1229       *)                      . ./$cache_file;;
1230     esac
1231   fi
1232 else
1233   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1234 echo "$as_me: creating cache $cache_file" >&6;}
1235   >$cache_file
1236 fi
1237
1238 # Check that the precious variables saved in the cache have kept the same
1239 # value.
1240 ac_cache_corrupted=false
1241 for ac_var in `(set) 2>&1 |
1242                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1243   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1244   eval ac_new_set=\$ac_env_${ac_var}_set
1245   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1246   eval ac_new_val="\$ac_env_${ac_var}_value"
1247   case $ac_old_set,$ac_new_set in
1248     set,)
1249       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1251       ac_cache_corrupted=: ;;
1252     ,set)
1253       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1254 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1255       ac_cache_corrupted=: ;;
1256     ,);;
1257     *)
1258       if test "x$ac_old_val" != "x$ac_new_val"; then
1259         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1260 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1261         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1262 echo "$as_me:   former value:  $ac_old_val" >&2;}
1263         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1264 echo "$as_me:   current value: $ac_new_val" >&2;}
1265         ac_cache_corrupted=:
1266       fi;;
1267   esac
1268   # Pass precious variables to config.status.
1269   if test "$ac_new_set" = set; then
1270     case $ac_new_val in
1271     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1273     *) ac_arg=$ac_var=$ac_new_val ;;
1274     esac
1275     case " $ac_configure_args " in
1276       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1277       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278     esac
1279   fi
1280 done
1281 if $ac_cache_corrupted; then
1282   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1283 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1284   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1285 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1286    { (exit 1); exit 1; }; }
1287 fi
1288
1289 ac_ext=c
1290 ac_cpp='$CPP $CPPFLAGS'
1291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322           ac_config_headers="$ac_config_headers config.h"
1323
1324 ac_aux_dir=
1325 for ac_dir in scripts $srcdir/scripts; do
1326   if test -f $ac_dir/install-sh; then
1327     ac_aux_dir=$ac_dir
1328     ac_install_sh="$ac_aux_dir/install-sh -c"
1329     break
1330   elif test -f $ac_dir/install.sh; then
1331     ac_aux_dir=$ac_dir
1332     ac_install_sh="$ac_aux_dir/install.sh -c"
1333     break
1334   elif test -f $ac_dir/shtool; then
1335     ac_aux_dir=$ac_dir
1336     ac_install_sh="$ac_aux_dir/shtool install -c"
1337     break
1338   fi
1339 done
1340 if test -z "$ac_aux_dir"; then
1341   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in scripts $srcdir/scripts" >&2;}
1343    { (exit 1); exit 1; }; }
1344 fi
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348
1349
1350 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
1351   { { echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
1352 echo "$as_me: error: you must configure in a separate build directory" >&2;}
1353    { (exit 1); exit 1; }; }
1354 fi
1355
1356 # This will get text that should go into config.make.
1357 config_vars=
1358
1359 # Check for a --with-gmp argument and set gmp-srcdir in config.make.
1360
1361 # Check whether --with-gmp or --without-gmp was given.
1362 if test "${with_gmp+set}" = set; then
1363   withval="$with_gmp"
1364
1365 case "$with_gmp" in
1366 yes) { { echo "$as_me:$LINENO: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&5
1367 echo "$as_me: error: --with-gmp requires an argument; use --with-gmp=DIRECTORY" >&2;}
1368    { (exit 1); exit 1; }; } ;;
1369 ''|no) ;;
1370 *) config_vars="$config_vars
1371 gmp-srcdir = $withval" ;;
1372 esac
1373
1374 fi;
1375 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
1376
1377 # Check whether --with-gd or --without-gd was given.
1378 if test "${with_gd+set}" = set; then
1379   withval="$with_gd"
1380   case "$with_gd" in
1381 yes|''|no) ;;
1382 *) libgd_include="-I$withval/include"
1383    libgd_ldflags="-L$withval/lib" ;;
1384 esac
1385
1386 fi;
1387
1388 # Check whether --with-gd-include or --without-gd-include was given.
1389 if test "${with_gd_include+set}" = set; then
1390   withval="$with_gd_include"
1391   case "$with_gd_include" in
1392 ''|no) ;;
1393 *) libgd_include="-I$withval" ;;
1394 esac
1395
1396 fi;
1397
1398 # Check whether --with-gd-lib or --without-gd-lib was given.
1399 if test "${with_gd_lib+set}" = set; then
1400   withval="$with_gd_lib"
1401   case "$with_gd_lib" in
1402 ''|no) ;;
1403 *) libgd_ldflags="-L$withval" ;;
1404 esac
1405
1406 fi;
1407
1408 if test -n "$libgd_include"; then
1409   config_vars="$config_vars
1410 CFLAGS-memusagestat.c = $libgd_include"
1411 fi
1412 if test -n "$libgd_ldflags"; then
1413   config_vars="$config_vars
1414 libgd-LDFLAGS = $libgd_ldflags"
1415 fi
1416
1417
1418 # Check whether --with-fp or --without-fp was given.
1419 if test "${with_fp+set}" = set; then
1420   withval="$with_fp"
1421   with_fp=$withval
1422 else
1423   with_fp=yes
1424 fi;
1425
1426
1427 # Check whether --with-binutils or --without-binutils was given.
1428 if test "${with_binutils+set}" = set; then
1429   withval="$with_binutils"
1430   path_binutils=$withval
1431 else
1432   path_binutils=''
1433 fi;
1434
1435 # Check whether --with-elf or --without-elf was given.
1436 if test "${with_elf+set}" = set; then
1437   withval="$with_elf"
1438   elf=$withval
1439 else
1440   elf=no
1441 fi;
1442
1443 # Check whether --with-xcoff or --without-xcoff was given.
1444 if test "${with_xcoff+set}" = set; then
1445   withval="$with_xcoff"
1446   xcoff=$withval
1447 else
1448   xcoff=no
1449 fi;
1450
1451 # Check whether --with-cvs or --without-cvs was given.
1452 if test "${with_cvs+set}" = set; then
1453   withval="$with_cvs"
1454   with_cvs=$withval
1455 else
1456   with_cvs=yes
1457 fi;
1458 if test "$with_cvs" = yes; then
1459   if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
1460   then
1461     with_cvs=no
1462   fi
1463 fi
1464
1465
1466
1467 # Check whether --with-headers or --without-headers was given.
1468 if test "${with_headers+set}" = set; then
1469   withval="$with_headers"
1470   sysheaders=$withval
1471 else
1472   sysheaders=''
1473 fi;
1474
1475 # Check whether --enable-sanity-checks or --disable-sanity-checks was given.
1476 if test "${enable_sanity_checks+set}" = set; then
1477   enableval="$enable_sanity_checks"
1478   enable_sanity=$enableval
1479 else
1480   enable_sanity=yes
1481 fi;
1482
1483
1484 # Check whether --enable-check-abi or --disable-check-abi was given.
1485 if test "${enable_check_abi+set}" = set; then
1486   enableval="$enable_check_abi"
1487   enable_check_abi=$enableval
1488 else
1489   enable_check_abi=yes
1490 fi;
1491
1492 static=yes
1493 # Check whether --enable-shared or --disable-shared was given.
1494 if test "${enable_shared+set}" = set; then
1495   enableval="$enable_shared"
1496   shared=$enableval
1497 else
1498   shared=default
1499 fi;
1500 # Check whether --enable-profile or --disable-profile was given.
1501 if test "${enable_profile+set}" = set; then
1502   enableval="$enable_profile"
1503   profile=$enableval
1504 else
1505   profile=yes
1506 fi;
1507 # Check whether --enable-omitfp or --disable-omitfp was given.
1508 if test "${enable_omitfp+set}" = set; then
1509   enableval="$enable_omitfp"
1510   omitfp=$enableval
1511 else
1512   omitfp=no
1513 fi;
1514 # Check whether --enable-bounded or --disable-bounded was given.
1515 if test "${enable_bounded+set}" = set; then
1516   enableval="$enable_bounded"
1517   bounded=$enableval
1518 else
1519   bounded=no
1520 fi;
1521 # Check whether --enable-versioning or --disable-versioning was given.
1522 if test "${enable_versioning+set}" = set; then
1523   enableval="$enable_versioning"
1524   enable_versioning=$enableval
1525 else
1526   enable_versioning=yes
1527 fi;
1528
1529 # Check whether --enable-oldest-abi or --disable-oldest-abi was given.
1530 if test "${enable_oldest_abi+set}" = set; then
1531   enableval="$enable_oldest_abi"
1532   oldest_abi=$enableval
1533 else
1534   oldest_abi=no
1535 fi;
1536 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
1537   oldest_abi=default
1538 else
1539   cat >>confdefs.h <<_ACEOF
1540 #define GLIBC_OLDEST_ABI "$oldest_abi"
1541 _ACEOF
1542
1543 fi
1544
1545
1546 # Check whether --enable-add-ons or --disable-add-ons was given.
1547 if test "${enable_add_ons+set}" = set; then
1548   enableval="$enable_add_ons"
1549   case "$enableval" in
1550     yes) add_ons=`cd $srcdir && echo */configure | sed -e 's!/configure!!g'`
1551          test "$add_ons" = "*" && add_ons= ;;
1552     *) add_ons=`echo "$enableval" | sed 's/,/ /g'`;;
1553    esac
1554 else
1555   add_ons=
1556 fi;
1557
1558
1559 # Check whether --with-tls or --without-tls was given.
1560 if test "${with_tls+set}" = set; then
1561   withval="$with_tls"
1562   usetls=$withval
1563 else
1564   usetls=no
1565 fi;
1566
1567
1568 # Check whether --with-__thread or --without-__thread was given.
1569 if test "${with___thread+set}" = set; then
1570   withval="$with___thread"
1571   use__thread=$withval
1572 else
1573   use__thread=yes
1574 fi;
1575
1576 # Check whether --enable-hidden-plt or --disable-hidden-plt was given.
1577 if test "${enable_hidden_plt+set}" = set; then
1578   enableval="$enable_hidden_plt"
1579   hidden=$enableval
1580 else
1581   hidden=yes
1582 fi;
1583 if test "x$hidden" = xno; then
1584   cat >>confdefs.h <<\_ACEOF
1585 #define NO_HIDDEN 1
1586 _ACEOF
1587
1588 fi
1589
1590
1591
1592 subdirs="$subdirs  "
1593 add_ons_pfx=
1594 if test x"$add_ons" != x; then
1595   for f in $add_ons; do
1596     # Some sanity checks
1597     if test "$f" = "crypt"; then
1598       { { echo "$as_me:$LINENO: error:
1599 *** It seems that you're using an old \`crypt' add-on.  crypt is now
1600 *** part of glibc and using the old add-on will not work with this
1601 *** release.  Start again with fresh sources and without the old
1602 *** \`crypt' add-on." >&5
1603 echo "$as_me: error:
1604 *** It seems that you're using an old \`crypt' add-on.  crypt is now
1605 *** part of glibc and using the old add-on will not work with this
1606 *** release.  Start again with fresh sources and without the old
1607 *** \`crypt' add-on." >&2;}
1608    { (exit 1); exit 1; }; }
1609     fi
1610     if test "$f" = "localedata"; then
1611       { { echo "$as_me:$LINENO: error:
1612 *** It seems that you're using an old \`localedata' add-on.  localedata
1613 *** is now part of glibc and using the old add-on will not work with
1614 *** this release.  Start again with fresh sources and without the old
1615 *** \`localedata' add-on." >&5
1616 echo "$as_me: error:
1617 *** It seems that you're using an old \`localedata' add-on.  localedata
1618 *** is now part of glibc and using the old add-on will not work with
1619 *** this release.  Start again with fresh sources and without the old
1620 *** \`localedata' add-on." >&2;}
1621    { (exit 1); exit 1; }; }
1622     fi
1623     # Test whether such a subdir really exists.
1624     if test -d $srcdir/$f; then
1625       add_ons_pfx="$add_ons_pfx $f/"
1626                         subdirs="$subdirs $f"
1627     else
1628       { { echo "$as_me:$LINENO: error: add-on directory \"$f\" does not exist" >&5
1629 echo "$as_me: error: add-on directory \"$f\" does not exist" >&2;}
1630    { (exit 1); exit 1; }; }
1631     fi
1632   done
1633 fi
1634
1635 # Check whether --enable-static-nss or --disable-static-nss was given.
1636 if test "${enable_static_nss+set}" = set; then
1637   enableval="$enable_static_nss"
1638   static_nss=$enableval
1639 else
1640   static_nss=no
1641 fi;
1642 if test x"$static_nss" = xyes || test x"$shared" = xno; then
1643   static_nss=yes
1644   cat >>confdefs.h <<\_ACEOF
1645 #define DO_STATIC_NSS 1
1646 _ACEOF
1647
1648 fi
1649
1650 # Check whether --enable-force-install or --disable-force-install was given.
1651 if test "${enable_force_install+set}" = set; then
1652   enableval="$enable_force_install"
1653   force_install=$enableval
1654 else
1655   force_install=yes
1656 fi;
1657
1658
1659 # Check whether --enable-kernel or --disable-kernel was given.
1660 if test "${enable_kernel+set}" = set; then
1661   enableval="$enable_kernel"
1662   minimum_kernel=$enableval
1663 fi;
1664 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
1665   # Better nothing than this.
1666   minimum_kernel=""
1667 else
1668   if test "$minimum_kernel" = current; then
1669     minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
1670   fi
1671 fi
1672
1673 # Check whether --enable-all-warnings or --disable-all-warnings was given.
1674 if test "${enable_all_warnings+set}" = set; then
1675   enableval="$enable_all_warnings"
1676   all_warnings=$enableval
1677 fi;
1678
1679
1680 # Make sure we can run config.sub.
1681 $ac_config_sub sun4 >/dev/null 2>&1 ||
1682   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1683 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1684    { (exit 1); exit 1; }; }
1685
1686 echo "$as_me:$LINENO: checking build system type" >&5
1687 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1688 if test "${ac_cv_build+set}" = set; then
1689   echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691   ac_cv_build_alias=$build_alias
1692 test -z "$ac_cv_build_alias" &&
1693   ac_cv_build_alias=`$ac_config_guess`
1694 test -z "$ac_cv_build_alias" &&
1695   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1696 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1697    { (exit 1); exit 1; }; }
1698 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1699   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1700 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1701    { (exit 1); exit 1; }; }
1702
1703 fi
1704 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1705 echo "${ECHO_T}$ac_cv_build" >&6
1706 build=$ac_cv_build
1707 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1708 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1709 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1710
1711
1712 echo "$as_me:$LINENO: checking host system type" >&5
1713 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1714 if test "${ac_cv_host+set}" = set; then
1715   echo $ECHO_N "(cached) $ECHO_C" >&6
1716 else
1717   ac_cv_host_alias=$host_alias
1718 test -z "$ac_cv_host_alias" &&
1719   ac_cv_host_alias=$ac_cv_build_alias
1720 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1721   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1722 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1723    { (exit 1); exit 1; }; }
1724
1725 fi
1726 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1727 echo "${ECHO_T}$ac_cv_host" >&6
1728 host=$ac_cv_host
1729 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1732
1733
1734
1735 # The way shlib-versions is used to generate soversions.mk uses a
1736 # fairly simplistic model for name recognition that can't distinguish
1737 # i486-pc-linux-gnu fully from i486-pc-gnu.  So we mutate a $host_os
1738 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
1739 # tell.  This doesn't get used much beyond that, so it's fairly safe.
1740 case "$host_os" in
1741 linux*)
1742   ;;
1743 gnu*)
1744   host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
1745   ;;
1746 esac
1747
1748 # We keep the original values in `$config_*' and never modify them, so we
1749 # can write them unchanged into config.make.  Everything else uses
1750 # $machine, $vendor, and $os, and changes them whenever convenient.
1751 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
1752
1753 # Don't allow vendor == "unknown"
1754 test "$config_vendor" = unknown && config_vendor=
1755 config_os="`echo $config_os | sed 's/^unknown-//'`"
1756
1757 # Some configurations imply other options.
1758 case "$host_os" in
1759 gnu* | linux* | bsd4.4* | netbsd* | freebsd*)
1760   # These systems always use GNU tools.
1761   gnu_ld=yes gnu_as=yes ;;
1762 esac
1763 case "$host_os" in
1764 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
1765 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
1766   ;;
1767 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
1768   # These systems (almost) always use the ELF format.
1769   elf=yes
1770   ;;
1771 aix*)
1772   # These systems are always xcoff
1773   xcoff=yes
1774   elf=no
1775   ;;
1776 esac
1777
1778 machine=$config_machine
1779 vendor=$config_vendor
1780 os=$config_os
1781
1782 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
1783 # Unify this here.
1784 if test "$machine" = rs6000; then
1785   machine="powerpc"
1786 fi
1787
1788 # Braindead PowerPC box with absolutely no FPU.
1789 case "$machine-$host_os" in
1790   powerpc*-*soft)
1791     with_fp=no
1792     ;;
1793 esac
1794
1795 ###
1796 ### I put this here to prevent those annoying emails from people who cannot
1797 ### read and try to compile glibc on unsupported platforms.  --drepper
1798 ###
1799 ### By using the undocumented --enable-hacker-mode option for configure
1800 ### one can skip this test to make the configuration not fail for unsupported
1801 ### platforms.
1802 ###
1803 if test -z "$enable_hacker_mode"; then
1804   case "$machine-$host_os" in
1805   *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
1806     ;;
1807   *)
1808     echo "*** The GNU C library is currently not available for this platform."
1809     echo "*** So far nobody cared to port it and if there is no volunteer it"
1810     echo "*** might never happen.  So, if you have interest to see glibc on"
1811     echo "*** this platform visit"
1812     echo "***   http://www.gnu.org/software/libc/porting.html"
1813     echo "*** and join the group of porters"
1814     exit 1
1815     ;;
1816   esac
1817 fi
1818
1819 # Expand the configuration machine name into a subdirectory by architecture
1820 # type and particular chip.
1821 case "$machine" in
1822 a29k | am29000) base_machine=a29k machine=a29k ;;
1823 alpha*)         base_machine=alpha machine=alpha/$machine ;;
1824 arm*)           base_machine=arm machine=arm/arm32/$machine ;;
1825 c3[012])        base_machine=cx0 machine=cx0/c30 ;;
1826 c4[04])         base_machine=cx0 machine=cx0/c40 ;;
1827 hppa*64*)       base_machine=hppa machine=hppa/hppa64 ;;
1828 hppa*)          base_machine=hppa machine=hppa/hppa1.1 ;;
1829 i[3456]86)      base_machine=i386 machine=i386/$machine ;;
1830 ia64)           base_machine=ia64 machine=ia64 ;;
1831 m680?0)         base_machine=m68k machine=m68k/$machine ;;
1832 m68k)           base_machine=m68k machine=m68k/m68020 ;;
1833 m88???)         base_machine=m88k machine=m88k/$machine ;;
1834 m88k)           base_machine=m88k machine=m88k/m88100 ;;
1835 mips64*)        base_machine=mips64 machine=mips/mips64/$machine ;;
1836 mips*)          base_machine=mips machine=mips/$machine ;;
1837 powerpc)        base_machine=powerpc machine=powerpc/powerpc32 ;;
1838 powerpc64)      base_machine=powerpc machine=powerpc/powerpc64 ;;
1839 s390)           base_machine=s390 machine=s390/s390-32 ;;
1840 s390x)          base_machine=s390 machine=s390/s390-64 ;;
1841 sh3*)           base_machine=sh machine=sh/sh3 ;;
1842 sh4*)           base_machine=sh machine=sh/sh4 ;;
1843 sparc | sparcv[67])
1844                 base_machine=sparc machine=sparc/sparc32 ;;
1845 sparcv8 | supersparc | hypersparc)
1846                 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
1847 sparcv8plus | sparcv8plusa | sparcv9)
1848                 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
1849 sparcv8plusb | sparcv9b)
1850                 base_machine=sparc machine=sparc/sparc32/sparcv9b ;;
1851 sparc64 | ultrasparc)
1852                 base_machine=sparc machine=sparc/sparc64 ;;
1853 sparc64b | ultrasparc3)
1854                 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
1855 thumb*)         base_machine=thumb machine=arm/thumb/$machine ;;
1856 *)              base_machine=$machine ;;
1857 esac
1858
1859
1860 if test "$base_machine" = "i386"; then
1861   cat >>confdefs.h <<\_ACEOF
1862 #define USE_REGPARMS 1
1863 _ACEOF
1864
1865 fi
1866
1867 # Compute the list of sysdep directories for this configuration.
1868 # This can take a while to compute.
1869 sysdep_dir=$srcdir/sysdeps
1870 echo "$as_me:$LINENO: checking sysdep dirs" >&5
1871 echo $ECHO_N "checking sysdep dirs... $ECHO_C" >&6
1872 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
1873 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
1874
1875 case "$os" in
1876 gnu*)
1877   base_os=mach/hurd ;;
1878 netbsd* | 386bsd* | freebsd* | bsdi*)
1879   base_os=unix/bsd/bsd4.4 ;;
1880 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
1881   base_os=unix/bsd ;;
1882 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
1883   base_os=unix/sysv ;;
1884 irix6*)
1885   base_os=unix/sysv/irix6/$os ;;
1886 solaris[2-9]*)
1887   base_os=unix/sysv/sysv4 ;;
1888 hpux*)
1889   base_os=unix/sysv/hpux/$os ;;
1890 aix4.3*)
1891   base_os=unix/sysv/aix/aix4.3 ;;
1892 none)
1893   base_os=standalone ;;
1894 *)
1895   base_os='' ;;
1896 esac
1897
1898 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
1899 tail=$os
1900 ostry=$os
1901 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
1902   ostry="$ostry /$o"
1903   tail=$o
1904 done
1905 o=`echo $tail | sed 's/[0-9]*$//'`
1906 if test $o != $tail; then
1907   ostry="$ostry /$o"
1908 fi
1909 # For linux-gnu, try linux-gnu, then linux.
1910 o=`echo $tail | sed 's/-.*$//'`
1911 if test $o != $tail; then
1912   ostry="$ostry /$o"
1913 fi
1914
1915 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
1916 base=
1917 tail=$base_os
1918 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
1919   set $b
1920   base="$base /$1"
1921   tail="$2"
1922 done
1923
1924 # For sparc/sparc32, try sparc/sparc32 and then sparc.
1925 mach=
1926 tail=$machine
1927 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
1928   set $m
1929   # Prepend the machine's FPU directory unless --without-fp.
1930   if test "$with_fp" = yes; then
1931     mach="$mach /$1/fpu"
1932   else
1933     mach="$mach /$1/nofpu"
1934   fi
1935   mach="$mach /$1"
1936   tail="$2"
1937 done
1938
1939
1940 # Find what sysdep directories exist.
1941 sysnames=
1942 IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1943 for d in $add_ons_pfx ''; do
1944   for b in $base ''; do
1945     for m0 in $mach ''; do
1946       for v in /$vendor ''; do
1947         test "$v" = / && continue
1948         for o in /$ostry ''; do
1949           test "$o" = / && continue
1950           for m in $mach ''; do
1951             if test "$m0$b$v$o$m"; then
1952               try="${d}sysdeps$m0$b$v$o$m"
1953               test -n "$enable_debug_configure" &&
1954               echo "$0 DEBUG: try $try" >&2
1955               if test -d $srcdir/$try; then
1956                 sysnames="$sysnames $try"
1957                 { test -n "$o" || test -n "$b"; } && os_used=t
1958                 { test -n "$m" || test -n "$m0"; } && machine_used=t
1959               fi
1960             fi
1961           done
1962         done
1963       done
1964     done
1965   done
1966 done
1967 IFS="$ac_save_ifs"
1968
1969 if test -z "$os_used" && test "$os" != none; then
1970   { { echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
1971 echo "$as_me: error: Operating system $os is not supported." >&2;}
1972    { (exit 1); exit 1; }; }
1973 fi
1974 if test -z "$machine_used" && test "$machine" != none; then
1975   { { echo "$as_me:$LINENO: error: The $machine is not supported." >&5
1976 echo "$as_me: error: The $machine is not supported." >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980 # We have now validated the configuration.
1981
1982
1983 # If using ELF, look for an `elf' subdirectory of each machine directory.
1984 # We prepend these rather than inserting them whereever the machine appears
1985 # because things specified by the machine's ELF ABI should override
1986 # OS-specific things, and should always be the same for any OS on the
1987 # machine (otherwise what's the point of an ABI?).
1988 if test "$elf" = yes; then
1989   elf_dirs=
1990   for d in $add_ons_pfx ''; do
1991     for m in $mach; do
1992       if test -d $srcdir/${d}sysdeps$m/elf; then
1993         elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
1994       fi
1995     done
1996   done
1997   sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
1998 fi
1999
2000
2001 # Expand the list of system names into a full list of directories
2002 # from each element's parent name and Implies file (if present).
2003 set $sysnames
2004 names=
2005 while test $# -gt 0; do
2006   name=$1
2007   shift
2008
2009   case " $names " in *" $name "*)
2010     # Already in the list.
2011     continue
2012   esac
2013
2014   # Report each name as we discover it, so there is no long pause in output.
2015   echo $ECHO_N "$name $ECHO_C" >&6
2016
2017   name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
2018
2019   case $name in
2020     /*) xsrcdir= ;;
2021     *)  xsrcdir=$srcdir/ ;;
2022   esac
2023   test -n "$enable_debug_configure" &&
2024   echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
2025
2026   if test -f $xsrcdir$name/Implies; then
2027     # Collect more names from the `Implies' file (removing comments).
2028     implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
2029     implied=
2030     for x in $implied_candidate; do
2031       found=no
2032       if test -d $xsrcdir$name_base/$x; then
2033         implied="$implied $name_base/$x";
2034         found=yes
2035       fi
2036       for d in $add_ons_pfx ''; do
2037         try="${d}sysdeps/$x"
2038         case $d in
2039          /*) try_srcdir= ;;
2040          *) try_srcdir=$srcdir/ ;;
2041         esac
2042         test -n "$enable_debug_configure" &&
2043          echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
2044         if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
2045         then
2046           implied="$implied $try"
2047           found=yes
2048         fi
2049       done
2050       if test $found = no; then
2051         { echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
2052 echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
2053       fi
2054     done
2055   else
2056     implied=
2057   fi
2058
2059   # Add NAME to the list of names.
2060   names="$names $name"
2061
2062   # Find the parent of NAME, using the empty string if it has none.
2063   parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
2064
2065   # Add the names implied by NAME, and NAME's parent (if it has one), to
2066   # the list of names to be processed (the argument list).  We prepend the
2067   # implied names to the list and append the parent.  We want implied
2068   # directories to come before further directories inferred from the
2069   # configuration components; this ensures that for sysv4, unix/common
2070   # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
2071   # after sysv4).
2072   sysnames="`echo $implied $* $parent`"
2073   test -n "$sysnames" && set $sysnames
2074 done
2075
2076 # Add the default directories.
2077 default_sysnames=sysdeps/generic
2078 if test "$elf" = yes; then
2079   default_sysnames="sysdeps/generic/elf $default_sysnames"
2080 fi
2081 sysnames="$names $default_sysnames"
2082
2083 # The other names were emitted during the scan.
2084 echo "$as_me:$LINENO: result: $default_sysnames" >&5
2085 echo "${ECHO_T}$default_sysnames" >&6
2086
2087
2088 ### Locate tools.
2089
2090 # Find a good install program.  We prefer a C program (faster),
2091 # so one script is as good as another.  But avoid the broken or
2092 # incompatible versions:
2093 # SysV /etc/install, /usr/sbin/install
2094 # SunOS /usr/etc/install
2095 # IRIX /sbin/install
2096 # AIX /bin/install
2097 # AmigaOS /C/install, which installs bootblocks on floppy discs
2098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101 # ./install, which can be erroneously created by make from ./install.sh.
2102 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2103 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2104 if test -z "$INSTALL"; then
2105 if test "${ac_cv_path_install+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 for as_dir in $PATH
2110 do
2111   IFS=$as_save_IFS
2112   test -z "$as_dir" && as_dir=.
2113   # Account for people who put trailing slashes in PATH elements.
2114 case $as_dir/ in
2115   ./ | .// | /cC/* | \
2116   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2117   /usr/ucb/* ) ;;
2118   *)
2119     # OSF1 and SCO ODT 3.0 have their own names for install.
2120     # Don't use installbsd from OSF since it installs stuff as root
2121     # by default.
2122     for ac_prog in ginstall scoinst install; do
2123       for ac_exec_ext in '' $ac_executable_extensions; do
2124         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2125           if test $ac_prog = install &&
2126             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2127             # AIX install.  It has an incompatible calling convention.
2128             :
2129           elif test $ac_prog = install &&
2130             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2131             # program-specific install script used by HP pwplus--don't use.
2132             :
2133           else
2134             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2135             break 3
2136           fi
2137         fi
2138       done
2139     done
2140     ;;
2141 esac
2142 done
2143
2144
2145 fi
2146   if test "${ac_cv_path_install+set}" = set; then
2147     INSTALL=$ac_cv_path_install
2148   else
2149     # As a last resort, use the slow shell script.  We don't cache a
2150     # path for INSTALL within a source directory, because that will
2151     # break other packages using the cache if that directory is
2152     # removed, or if the path is relative.
2153     INSTALL=$ac_install_sh
2154   fi
2155 fi
2156 echo "$as_me:$LINENO: result: $INSTALL" >&5
2157 echo "${ECHO_T}$INSTALL" >&6
2158
2159 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2160 # It thinks the first close brace ends the variable substitution.
2161 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2162
2163 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2164
2165 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2166
2167 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
2168   # The makefiles need to use a different form to find it in $srcdir.
2169   INSTALL='\$(..)./scripts/install-sh -c'
2170 fi
2171 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2172 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2173 LN_S=$as_ln_s
2174 if test "$LN_S" = "ln -s"; then
2175   echo "$as_me:$LINENO: result: yes" >&5
2176 echo "${ECHO_T}yes" >&6
2177 else
2178   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2179 echo "${ECHO_T}no, using $LN_S" >&6
2180 fi
2181
2182
2183 ac_ext=c
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 if test -n "$ac_tool_prefix"; then
2189   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2191 echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196   if test -n "$CC"; then
2197   ac_cv_prog_CC="$CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211 done
2212
2213 fi
2214 fi
2215 CC=$ac_cv_prog_CC
2216 if test -n "$CC"; then
2217   echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6
2219 else
2220   echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6
2222 fi
2223
2224 fi
2225 if test -z "$ac_cv_prog_CC"; then
2226   ac_ct_CC=$CC
2227   # Extract the first word of "gcc", so it can be a program name with args.
2228 set dummy gcc; ac_word=$2
2229 echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2231 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   if test -n "$ac_ct_CC"; then
2235   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242   for ac_exec_ext in '' $ac_executable_extensions; do
2243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2244     ac_cv_prog_ac_ct_CC="gcc"
2245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246     break 2
2247   fi
2248 done
2249 done
2250
2251 fi
2252 fi
2253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2254 if test -n "$ac_ct_CC"; then
2255   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2256 echo "${ECHO_T}$ac_ct_CC" >&6
2257 else
2258   echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6
2260 fi
2261
2262   CC=$ac_ct_CC
2263 else
2264   CC="$ac_cv_prog_CC"
2265 fi
2266
2267 if test -z "$CC"; then
2268   if test -n "$ac_tool_prefix"; then
2269   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}cc; ac_word=$2
2271 echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   if test -n "$CC"; then
2277   ac_cv_prog_CC="$CC" # Let the user override the test.
2278 else
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH
2281 do
2282   IFS=$as_save_IFS
2283   test -z "$as_dir" && as_dir=.
2284   for ac_exec_ext in '' $ac_executable_extensions; do
2285   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2286     ac_cv_prog_CC="${ac_tool_prefix}cc"
2287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288     break 2
2289   fi
2290 done
2291 done
2292
2293 fi
2294 fi
2295 CC=$ac_cv_prog_CC
2296 if test -n "$CC"; then
2297   echo "$as_me:$LINENO: result: $CC" >&5
2298 echo "${ECHO_T}$CC" >&6
2299 else
2300   echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2302 fi
2303
2304 fi
2305 if test -z "$ac_cv_prog_CC"; then
2306   ac_ct_CC=$CC
2307   # Extract the first word of "cc", so it can be a program name with args.
2308 set dummy cc; ac_word=$2
2309 echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312   echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314   if test -n "$ac_ct_CC"; then
2315   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322   for ac_exec_ext in '' $ac_executable_extensions; do
2323   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2324     ac_cv_prog_ac_ct_CC="cc"
2325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326     break 2
2327   fi
2328 done
2329 done
2330
2331 fi
2332 fi
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6
2337 else
2338   echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6
2340 fi
2341
2342   CC=$ac_ct_CC
2343 else
2344   CC="$ac_cv_prog_CC"
2345 fi
2346
2347 fi
2348 if test -z "$CC"; then
2349   # Extract the first word of "cc", so it can be a program name with args.
2350 set dummy cc; ac_word=$2
2351 echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   if test -n "$CC"; then
2357   ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359   ac_prog_rejected=no
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363   IFS=$as_save_IFS
2364   test -z "$as_dir" && as_dir=.
2365   for ac_exec_ext in '' $ac_executable_extensions; do
2366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2368        ac_prog_rejected=yes
2369        continue
2370      fi
2371     ac_cv_prog_CC="cc"
2372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373     break 2
2374   fi
2375 done
2376 done
2377
2378 if test $ac_prog_rejected = yes; then
2379   # We found a bogon in the path, so make sure we never use it.
2380   set dummy $ac_cv_prog_CC
2381   shift
2382   if test $# != 0; then
2383     # We chose a different compiler from the bogus one.
2384     # However, it has the same basename, so the bogon will be chosen
2385     # first if we set CC to just the basename; use the full file name.
2386     shift
2387     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2388   fi
2389 fi
2390 fi
2391 fi
2392 CC=$ac_cv_prog_CC
2393 if test -n "$CC"; then
2394   echo "$as_me:$LINENO: result: $CC" >&5
2395 echo "${ECHO_T}$CC" >&6
2396 else
2397   echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2399 fi
2400
2401 fi
2402 if test -z "$CC"; then
2403   if test -n "$ac_tool_prefix"; then
2404   for ac_prog in cl
2405   do
2406     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2408 echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411   echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413   if test -n "$CC"; then
2414   ac_cv_prog_CC="$CC" # Let the user override the test.
2415 else
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 for as_dir in $PATH
2418 do
2419   IFS=$as_save_IFS
2420   test -z "$as_dir" && as_dir=.
2421   for ac_exec_ext in '' $ac_executable_extensions; do
2422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2423     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2425     break 2
2426   fi
2427 done
2428 done
2429
2430 fi
2431 fi
2432 CC=$ac_cv_prog_CC
2433 if test -n "$CC"; then
2434   echo "$as_me:$LINENO: result: $CC" >&5
2435 echo "${ECHO_T}$CC" >&6
2436 else
2437   echo "$as_me:$LINENO: result: no" >&5
2438 echo "${ECHO_T}no" >&6
2439 fi
2440
2441     test -n "$CC" && break
2442   done
2443 fi
2444 if test -z "$CC"; then
2445   ac_ct_CC=$CC
2446   for ac_prog in cl
2447 do
2448   # Extract the first word of "$ac_prog", so it can be a program name with args.
2449 set dummy $ac_prog; ac_word=$2
2450 echo "$as_me:$LINENO: checking for $ac_word" >&5
2451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2452 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2453   echo $ECHO_N "(cached) $ECHO_C" >&6
2454 else
2455   if test -n "$ac_ct_CC"; then
2456   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2457 else
2458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 for as_dir in $PATH
2460 do
2461   IFS=$as_save_IFS
2462   test -z "$as_dir" && as_dir=.
2463   for ac_exec_ext in '' $ac_executable_extensions; do
2464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2465     ac_cv_prog_ac_ct_CC="$ac_prog"
2466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467     break 2
2468   fi
2469 done
2470 done
2471
2472 fi
2473 fi
2474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2475 if test -n "$ac_ct_CC"; then
2476   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2477 echo "${ECHO_T}$ac_ct_CC" >&6
2478 else
2479   echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6
2481 fi
2482
2483   test -n "$ac_ct_CC" && break
2484 done
2485
2486   CC=$ac_ct_CC
2487 fi
2488
2489 fi
2490
2491
2492 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&5
2494 echo "$as_me: error: no acceptable C compiler found in \$PATH
2495 See \`config.log' for more details." >&2;}
2496    { (exit 1); exit 1; }; }
2497
2498 # Provide some information about the compiler.
2499 echo "$as_me:$LINENO:" \
2500      "checking for C compiler version" >&5
2501 ac_compiler=`set X $ac_compile; echo $2`
2502 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2503   (eval $ac_compiler --version </dev/null >&5) 2>&5
2504   ac_status=$?
2505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506   (exit $ac_status); }
2507 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2508   (eval $ac_compiler -v </dev/null >&5) 2>&5
2509   ac_status=$?
2510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511   (exit $ac_status); }
2512 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2513   (eval $ac_compiler -V </dev/null >&5) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }
2517
2518 EXEEXT=
2519 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2520 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2521 if test "${ac_cv_objext+set}" = set; then
2522   echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524   cat >conftest.$ac_ext <<_ACEOF
2525 #line $LINENO "configure"
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531
2532 int
2533 main ()
2534 {
2535
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.o conftest.obj
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; then
2546   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2547   case $ac_file in
2548     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2549     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2550        break;;
2551   esac
2552 done
2553 else
2554   echo "$as_me: failed program was:" >&5
2555 sed 's/^/| /' conftest.$ac_ext >&5
2556
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2560 See \`config.log' for more details." >&2;}
2561    { (exit 1); exit 1; }; }
2562 fi
2563
2564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2565 fi
2566 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2567 echo "${ECHO_T}$ac_cv_objext" >&6
2568 OBJEXT=$ac_cv_objext
2569 ac_objext=$OBJEXT
2570 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2571 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2572 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2573   echo $ECHO_N "(cached) $ECHO_C" >&6
2574 else
2575   cat >conftest.$ac_ext <<_ACEOF
2576 #line $LINENO "configure"
2577 /* confdefs.h.  */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h.  */
2582
2583 int
2584 main ()
2585 {
2586 #ifndef __GNUC__
2587        choke me
2588 #endif
2589
2590   ;
2591   return 0;
2592 }
2593 _ACEOF
2594 rm -f conftest.$ac_objext
2595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2596   (eval $ac_compile) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } &&
2600          { ac_try='test -s conftest.$ac_objext'
2601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602   (eval $ac_try) 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606   ac_compiler_gnu=yes
2607 else
2608   echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_compiler_gnu=no
2612 fi
2613 rm -f conftest.$ac_objext conftest.$ac_ext
2614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2615
2616 fi
2617 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2618 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2619 GCC=`test $ac_compiler_gnu = yes && echo yes`
2620 ac_test_CFLAGS=${CFLAGS+set}
2621 ac_save_CFLAGS=$CFLAGS
2622 CFLAGS="-g"
2623 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2624 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2625 if test "${ac_cv_prog_cc_g+set}" = set; then
2626   echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628   cat >conftest.$ac_ext <<_ACEOF
2629 #line $LINENO "configure"
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646   (eval $ac_compile) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -s conftest.$ac_objext'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; }; then
2656   ac_cv_prog_cc_g=yes
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 ac_cv_prog_cc_g=no
2662 fi
2663 rm -f conftest.$ac_objext conftest.$ac_ext
2664 fi
2665 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2666 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2667 if test "$ac_test_CFLAGS" = set; then
2668   CFLAGS=$ac_save_CFLAGS
2669 elif test $ac_cv_prog_cc_g = yes; then
2670   if test "$GCC" = yes; then
2671     CFLAGS="-g -O2"
2672   else
2673     CFLAGS="-g"
2674   fi
2675 else
2676   if test "$GCC" = yes; then
2677     CFLAGS="-O2"
2678   else
2679     CFLAGS=
2680   fi
2681 fi
2682 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2683 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2684 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2685   echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687   ac_cv_prog_cc_stdc=no
2688 ac_save_CC=$CC
2689 cat >conftest.$ac_ext <<_ACEOF
2690 #line $LINENO "configure"
2691 /* confdefs.h.  */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h.  */
2696 #include <stdarg.h>
2697 #include <stdio.h>
2698 #include <sys/types.h>
2699 #include <sys/stat.h>
2700 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2701 struct buf { int x; };
2702 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2703 static char *e (p, i)
2704      char **p;
2705      int i;
2706 {
2707   return p[i];
2708 }
2709 static char *f (char * (*g) (char **, int), char **p, ...)
2710 {
2711   char *s;
2712   va_list v;
2713   va_start (v,p);
2714   s = g (p, va_arg (v,int));
2715   va_end (v);
2716   return s;
2717 }
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 int argc;
2723 char **argv;
2724 int
2725 main ()
2726 {
2727 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 # Don't try gcc -ansi; that turns off useful extensions and
2733 # breaks some systems' header files.
2734 # AIX                   -qlanglvl=ansi
2735 # Ultrix and OSF/1      -std1
2736 # HP-UX 10.20 and later -Ae
2737 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2738 # SVR4                  -Xc -D__EXTENSIONS__
2739 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2740 do
2741   CC="$ac_save_CC $ac_arg"
2742   rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744   (eval $ac_compile) 2>&5
2745   ac_status=$?
2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747   (exit $ac_status); } &&
2748          { ac_try='test -s conftest.$ac_objext'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; }; then
2754   ac_cv_prog_cc_stdc=$ac_arg
2755 break
2756 else
2757   echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.$ac_ext >&5
2759
2760 fi
2761 rm -f conftest.$ac_objext
2762 done
2763 rm -f conftest.$ac_ext conftest.$ac_objext
2764 CC=$ac_save_CC
2765
2766 fi
2767
2768 case "x$ac_cv_prog_cc_stdc" in
2769   x|xno)
2770     echo "$as_me:$LINENO: result: none needed" >&5
2771 echo "${ECHO_T}none needed" >&6 ;;
2772   *)
2773     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2774 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2775     CC="$CC $ac_cv_prog_cc_stdc" ;;
2776 esac
2777
2778 # Some people use a C++ compiler to compile C.  Since we use `exit',
2779 # in C++ we need to declare it.  In case someone uses the same compiler
2780 # for both compiling C and C++ we need to have the C++ compiler decide
2781 # the declaration of exit, since it's the most demanding environment.
2782 cat >conftest.$ac_ext <<_ACEOF
2783 #ifndef __cplusplus
2784   choke me
2785 #endif
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; }; then
2799   for ac_declaration in \
2800    ''\
2801    '#include <stdlib.h>' \
2802    'extern "C" void std::exit (int) throw (); using std::exit;' \
2803    'extern "C" void std::exit (int); using std::exit;' \
2804    'extern "C" void exit (int) throw ();' \
2805    'extern "C" void exit (int);' \
2806    'void exit (int);'
2807 do
2808   cat >conftest.$ac_ext <<_ACEOF
2809 #line $LINENO "configure"
2810 /* confdefs.h.  */
2811 _ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h.  */
2815 #include <stdlib.h>
2816 $ac_declaration
2817 int
2818 main ()
2819 {
2820 exit (42);
2821   ;
2822   return 0;
2823 }
2824 _ACEOF
2825 rm -f conftest.$ac_objext
2826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2827   (eval $ac_compile) 2>&5
2828   ac_status=$?
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } &&
2831          { ac_try='test -s conftest.$ac_objext'
2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833   (eval $ac_try) 2>&5
2834   ac_status=$?
2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836   (exit $ac_status); }; }; then
2837   :
2838 else
2839   echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 continue
2843 fi
2844 rm -f conftest.$ac_objext conftest.$ac_ext
2845   cat >conftest.$ac_ext <<_ACEOF
2846 #line $LINENO "configure"
2847 /* confdefs.h.  */
2848 _ACEOF
2849 cat confdefs.h >>conftest.$ac_ext
2850 cat >>conftest.$ac_ext <<_ACEOF
2851 /* end confdefs.h.  */
2852 $ac_declaration
2853 int
2854 main ()
2855 {
2856 exit (42);
2857   ;
2858   return 0;
2859 }
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863   (eval $ac_compile) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); } &&
2867          { ac_try='test -s conftest.$ac_objext'
2868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869   (eval $ac_try) 2>&5
2870   ac_status=$?
2871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872   (exit $ac_status); }; }; then
2873   break
2874 else
2875   echo "$as_me: failed program was:" >&5
2876 sed 's/^/| /' conftest.$ac_ext >&5
2877
2878 fi
2879 rm -f conftest.$ac_objext conftest.$ac_ext
2880 done
2881 rm -f conftest*
2882 if test -n "$ac_declaration"; then
2883   echo '#ifdef __cplusplus' >>confdefs.h
2884   echo $ac_declaration      >>confdefs.h
2885   echo '#endif'             >>confdefs.h
2886 fi
2887
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892 fi
2893 rm -f conftest.$ac_objext conftest.$ac_ext
2894 ac_ext=c
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899
2900 if test $host != $build; then
2901   for ac_prog in gcc cc
2902 do
2903   # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2907 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2908   echo $ECHO_N "(cached) $ECHO_C" >&6
2909 else
2910   if test -n "$BUILD_CC"; then
2911   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918   for ac_exec_ext in '' $ac_executable_extensions; do
2919   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2920     ac_cv_prog_BUILD_CC="$ac_prog"
2921     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925 done
2926
2927 fi
2928 fi
2929 BUILD_CC=$ac_cv_prog_BUILD_CC
2930 if test -n "$BUILD_CC"; then
2931   echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2932 echo "${ECHO_T}$BUILD_CC" >&6
2933 else
2934   echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6
2936 fi
2937
2938   test -n "$BUILD_CC" && break
2939 done
2940
2941 fi
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2949 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2950 # On Suns, sometimes $CPP names a directory.
2951 if test -n "$CPP" && test -d "$CPP"; then
2952   CPP=
2953 fi
2954 if test -z "$CPP"; then
2955   if test "${ac_cv_prog_CPP+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958       # Double quotes because CPP needs to be expanded
2959     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2960     do
2961       ac_preproc_ok=false
2962 for ac_c_preproc_warn_flag in '' yes
2963 do
2964   # Use a header file that comes with gcc, so configuring glibc
2965   # with a fresh cross-compiler works.
2966   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2967   # <limits.h> exists even on freestanding compilers.
2968   # On the NeXT, cc -E runs the code through the compiler's parser,
2969   # not just through cpp. "Syntax error" is here to catch this case.
2970   cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977 #ifdef __STDC__
2978 # include <limits.h>
2979 #else
2980 # include <assert.h>
2981 #endif
2982                      Syntax error
2983 _ACEOF
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } >/dev/null; then
2992   if test -s conftest.err; then
2993     ac_cpp_err=$ac_c_preproc_warn_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   :
3002 else
3003   echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3005
3006   # Broken: fails on valid input.
3007 continue
3008 fi
3009 rm -f conftest.err conftest.$ac_ext
3010
3011   # OK, works on sane cases.  Now check whether non-existent headers
3012   # can be detected and how.
3013   cat >conftest.$ac_ext <<_ACEOF
3014 #line $LINENO "configure"
3015 /* confdefs.h.  */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h.  */
3020 #include <ac_nonexistent.h>
3021 _ACEOF
3022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024   ac_status=$?
3025   grep -v '^ *+' conftest.er1 >conftest.err
3026   rm -f conftest.er1
3027   cat conftest.err >&5
3028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029   (exit $ac_status); } >/dev/null; then
3030   if test -s conftest.err; then
3031     ac_cpp_err=$ac_c_preproc_warn_flag
3032   else
3033     ac_cpp_err=
3034   fi
3035 else
3036   ac_cpp_err=yes
3037 fi
3038 if test -z "$ac_cpp_err"; then
3039   # Broken: success on invalid input.
3040 continue
3041 else
3042   echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3044
3045   # Passes both tests.
3046 ac_preproc_ok=:
3047 break
3048 fi
3049 rm -f conftest.err conftest.$ac_ext
3050
3051 done
3052 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3053 rm -f conftest.err conftest.$ac_ext
3054 if $ac_preproc_ok; then
3055   break
3056 fi
3057
3058     done
3059     ac_cv_prog_CPP=$CPP
3060
3061 fi
3062   CPP=$ac_cv_prog_CPP
3063 else
3064   ac_cv_prog_CPP=$CPP
3065 fi
3066 echo "$as_me:$LINENO: result: $CPP" >&5
3067 echo "${ECHO_T}$CPP" >&6
3068 ac_preproc_ok=false
3069 for ac_c_preproc_warn_flag in '' yes
3070 do
3071   # Use a header file that comes with gcc, so configuring glibc
3072   # with a fresh cross-compiler works.
3073   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3074   # <limits.h> exists even on freestanding compilers.
3075   # On the NeXT, cc -E runs the code through the compiler's parser,
3076   # not just through cpp. "Syntax error" is here to catch this case.
3077   cat >conftest.$ac_ext <<_ACEOF
3078 #line $LINENO "configure"
3079 /* confdefs.h.  */
3080 _ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h.  */
3084 #ifdef __STDC__
3085 # include <limits.h>
3086 #else
3087 # include <assert.h>
3088 #endif
3089                      Syntax error
3090 _ACEOF
3091 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3092   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3093   ac_status=$?
3094   grep -v '^ *+' conftest.er1 >conftest.err
3095   rm -f conftest.er1
3096   cat conftest.err >&5
3097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098   (exit $ac_status); } >/dev/null; then
3099   if test -s conftest.err; then
3100     ac_cpp_err=$ac_c_preproc_warn_flag
3101   else
3102     ac_cpp_err=
3103   fi
3104 else
3105   ac_cpp_err=yes
3106 fi
3107 if test -z "$ac_cpp_err"; then
3108   :
3109 else
3110   echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3112
3113   # Broken: fails on valid input.
3114 continue
3115 fi
3116 rm -f conftest.err conftest.$ac_ext
3117
3118   # OK, works on sane cases.  Now check whether non-existent headers
3119   # can be detected and how.
3120   cat >conftest.$ac_ext <<_ACEOF
3121 #line $LINENO "configure"
3122 /* confdefs.h.  */
3123 _ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h.  */
3127 #include <ac_nonexistent.h>
3128 _ACEOF
3129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131   ac_status=$?
3132   grep -v '^ *+' conftest.er1 >conftest.err
3133   rm -f conftest.er1
3134   cat conftest.err >&5
3135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); } >/dev/null; then
3137   if test -s conftest.err; then
3138     ac_cpp_err=$ac_c_preproc_warn_flag
3139   else
3140     ac_cpp_err=
3141   fi
3142 else
3143   ac_cpp_err=yes
3144 fi
3145 if test -z "$ac_cpp_err"; then
3146   # Broken: success on invalid input.
3147 continue
3148 else
3149   echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152   # Passes both tests.
3153 ac_preproc_ok=:
3154 break
3155 fi
3156 rm -f conftest.err conftest.$ac_ext
3157
3158 done
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.$ac_ext
3161 if $ac_preproc_ok; then
3162   :
3163 else
3164   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168    { (exit 1); exit 1; }; }
3169 fi
3170
3171 ac_ext=c
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176
3177 # Was a --with-binutils option given?
3178 if test -n "$path_binutils"; then
3179     # Make absolute; ensure a single trailing slash.
3180     path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
3181     CC="$CC -B$path_binutils"
3182 fi
3183 AS=`$CC -print-prog-name=as`
3184 LD=`$CC -print-prog-name=ld`
3185 AR=`$CC -print-prog-name=ar`
3186
3187 OBJDUMP=`$CC -print-prog-name=objdump`
3188
3189
3190 # ranlib has to be treated a bit differently since it might not exist at all.
3191 ac_ranlib=`$CC -print-prog-name=ranlib`
3192 if test "x$ac_ranlib" = xranlib; then
3193 # This extra check has to happen since gcc simply echos the parameter in
3194 # case it cannot find the value in its own directories.
3195 if test -n "$ac_tool_prefix"; then
3196   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3198 echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3200 if test "${ac_cv_prog_RANLIB+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if test -n "$RANLIB"; then
3204   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209   IFS=$as_save_IFS
3210   test -z "$as_dir" && as_dir=.
3211   for ac_exec_ext in '' $ac_executable_extensions; do
3212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3215     break 2
3216   fi
3217 done
3218 done
3219
3220 fi
3221 fi
3222 RANLIB=$ac_cv_prog_RANLIB
3223 if test -n "$RANLIB"; then
3224   echo "$as_me:$LINENO: result: $RANLIB" >&5
3225 echo "${ECHO_T}$RANLIB" >&6
3226 else
3227   echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6
3229 fi
3230
3231 fi
3232 if test -z "$ac_cv_prog_RANLIB"; then
3233   ac_ct_RANLIB=$RANLIB
3234   # Extract the first word of "ranlib", so it can be a program name with args.
3235 set dummy ranlib; ac_word=$2
3236 echo "$as_me:$LINENO: checking for $ac_word" >&5
3237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3238 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3239   echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241   if test -n "$ac_ct_RANLIB"; then
3242   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249   for ac_exec_ext in '' $ac_executable_extensions; do
3250   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251     ac_cv_prog_ac_ct_RANLIB="ranlib"
3252     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3253     break 2
3254   fi
3255 done
3256 done
3257
3258   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3259 fi
3260 fi
3261 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3262 if test -n "$ac_ct_RANLIB"; then
3263   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3264 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3265 else
3266   echo "$as_me:$LINENO: result: no" >&5
3267 echo "${ECHO_T}no" >&6
3268 fi
3269
3270   RANLIB=$ac_ct_RANLIB
3271 else
3272   RANLIB="$ac_cv_prog_RANLIB"
3273 fi
3274
3275 else
3276   RANLIB=$ac_ranlib
3277 fi
3278
3279
3280 # Determine whether we are using GNU binutils.
3281 echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
3282 echo $ECHO_N "checking whether $AS is GNU as... $ECHO_C" >&6
3283 if test "${libc_cv_prog_as_gnu+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286   # Most GNU programs take a -v and spit out some text including
3287 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
3288 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3289   libc_cv_prog_as_gnu=yes
3290 else
3291   libc_cv_prog_as_gnu=no
3292 fi
3293 rm -fr contest*
3294 fi
3295 echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
3296 echo "${ECHO_T}$libc_cv_prog_as_gnu" >&6
3297 rm -f a.out
3298 gnu_as=$libc_cv_prog_as_gnu
3299
3300 echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
3301 echo $ECHO_N "checking whether $LD is GNU ld... $ECHO_C" >&6
3302 if test "${libc_cv_prog_ld_gnu+set}" = set; then
3303   echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305   # Most GNU programs take a -v and spit out some text including
3306 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
3307 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
3308   libc_cv_prog_ld_gnu=yes
3309 else
3310   libc_cv_prog_ld_gnu=no
3311 fi
3312 rm -fr contest*
3313 fi
3314 echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
3315 echo "${ECHO_T}$libc_cv_prog_ld_gnu" >&6
3316 gnu_ld=$libc_cv_prog_ld_gnu
3317
3318
3319 # Accept binutils 2.13 or newer.
3320 for ac_prog in $AS
3321 do
3322   # Extract the first word of "$ac_prog", so it can be a program name with args.
3323 set dummy $ac_prog; ac_word=$2
3324 echo "$as_me:$LINENO: checking for $ac_word" >&5
3325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326 if test "${ac_cv_prog_AS+set}" = set; then
3327   echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329   if test -n "$AS"; then
3330   ac_cv_prog_AS="$AS" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335   IFS=$as_save_IFS
3336   test -z "$as_dir" && as_dir=.
3337   for ac_exec_ext in '' $ac_executable_extensions; do
3338   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339     ac_cv_prog_AS="$ac_prog"
3340     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341     break 2
3342   fi
3343 done
3344 done
3345
3346 fi
3347 fi
3348 AS=$ac_cv_prog_AS
3349 if test -n "$AS"; then
3350   echo "$as_me:$LINENO: result: $AS" >&5
3351 echo "${ECHO_T}$AS" >&6
3352 else
3353   echo "$as_me:$LINENO: result: no" >&5
3354 echo "${ECHO_T}no" >&6
3355 fi
3356
3357   test -n "$AS" && break
3358 done
3359
3360 if test -z "$AS"; then
3361   ac_verc_fail=yes
3362 else
3363   # Found it, now check the version.
3364   echo "$as_me:$LINENO: checking version of $AS" >&5
3365 echo $ECHO_N "checking version of $AS... $ECHO_C" >&6
3366   ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3367   case $ac_prog_version in
3368     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3369     2.1[3-9]*)
3370        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3371     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3372
3373   esac
3374   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3375 echo "${ECHO_T}$ac_prog_version" >&6
3376 fi
3377 if test $ac_verc_fail = yes; then
3378   AS=: critic_missing=t
3379 fi
3380
3381 for ac_prog in $LD
3382 do
3383   # Extract the first word of "$ac_prog", so it can be a program name with args.
3384 set dummy $ac_prog; ac_word=$2
3385 echo "$as_me:$LINENO: checking for $ac_word" >&5
3386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3387 if test "${ac_cv_prog_LD+set}" = set; then
3388   echo $ECHO_N "(cached) $ECHO_C" >&6
3389 else
3390   if test -n "$LD"; then
3391   ac_cv_prog_LD="$LD" # Let the user override the test.
3392 else
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH
3395 do
3396   IFS=$as_save_IFS
3397   test -z "$as_dir" && as_dir=.
3398   for ac_exec_ext in '' $ac_executable_extensions; do
3399   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400     ac_cv_prog_LD="$ac_prog"
3401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3402     break 2
3403   fi
3404 done
3405 done
3406
3407 fi
3408 fi
3409 LD=$ac_cv_prog_LD
3410 if test -n "$LD"; then
3411   echo "$as_me:$LINENO: result: $LD" >&5
3412 echo "${ECHO_T}$LD" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418   test -n "$LD" && break
3419 done
3420
3421 if test -z "$LD"; then
3422   ac_verc_fail=yes
3423 else
3424   # Found it, now check the version.
3425   echo "$as_me:$LINENO: checking version of $LD" >&5
3426 echo $ECHO_N "checking version of $LD... $ECHO_C" >&6
3427   ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
3428   case $ac_prog_version in
3429     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3430     2.1[3-9]*)
3431        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3432     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3433
3434   esac
3435   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3436 echo "${ECHO_T}$ac_prog_version" >&6
3437 fi
3438 if test $ac_verc_fail = yes; then
3439   LD=: critic_missing=t
3440 fi
3441
3442
3443 # We need the physical current working directory.  We cannot use the
3444 # "pwd -P" shell builtin since that's not portable.  Instead we try to
3445 # find a pwd binary.  Note that assigning to the PWD environment
3446 # variable might have some interesting side effects, so we don't do
3447 # that.
3448 # Extract the first word of "pwd", so it can be a program name with args.
3449 set dummy pwd; ac_word=$2
3450 echo "$as_me:$LINENO: checking for $ac_word" >&5
3451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3452 if test "${ac_cv_path_PWD_P+set}" = set; then
3453   echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455   case $PWD_P in
3456   [\\/]* | ?:[\\/]*)
3457   ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
3458   ;;
3459   *)
3460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 for as_dir in $PATH
3462 do
3463   IFS=$as_save_IFS
3464   test -z "$as_dir" && as_dir=.
3465   for ac_exec_ext in '' $ac_executable_extensions; do
3466   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3467     ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
3468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3469     break 2
3470   fi
3471 done
3472 done
3473
3474   test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
3475   ;;
3476 esac
3477 fi
3478 PWD_P=$ac_cv_path_PWD_P
3479
3480 if test -n "$PWD_P"; then
3481   echo "$as_me:$LINENO: result: $PWD_P" >&5
3482 echo "${ECHO_T}$PWD_P" >&6
3483 else
3484   echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6
3486 fi
3487
3488 if test "$PWD_P" = no; then
3489   { { echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
3490 echo "$as_me: error: *** A pwd binary could not be found." >&2;}
3491    { (exit 1); exit 1; }; }
3492 fi
3493
3494 # These programs are version sensitive.
3495
3496 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
3497 do
3498   # Extract the first word of "$ac_prog", so it can be a program name with args.
3499 set dummy $ac_prog; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_prog_CC+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   if test -n "$CC"; then
3506   ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513   for ac_exec_ext in '' $ac_executable_extensions; do
3514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515     ac_cv_prog_CC="$ac_prog"
3516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520 done
3521
3522 fi
3523 fi
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526   echo "$as_me:$LINENO: result: $CC" >&5
3527 echo "${ECHO_T}$CC" >&6
3528 else
3529   echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6
3531 fi
3532
3533   test -n "$CC" && break
3534 done
3535
3536 if test -z "$CC"; then
3537   ac_verc_fail=yes
3538 else
3539   # Found it, now check the version.
3540   echo "$as_me:$LINENO: checking version of $CC" >&5
3541 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
3542   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
3543   case $ac_prog_version in
3544     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3545     3.[2-9]*)
3546        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3547     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3548
3549   esac
3550   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3551 echo "${ECHO_T}$ac_prog_version" >&6
3552 fi
3553 if test $ac_verc_fail = yes; then
3554   critic_missing="$critic_missing gcc"
3555 fi
3556
3557 for ac_prog in gnumake gmake make
3558 do
3559   # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_prog_MAKE+set}" = set; then
3564   echo $ECHO_N "(cached) $ECHO_C" >&6
3565 else
3566   if test -n "$MAKE"; then
3567   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574   for ac_exec_ext in '' $ac_executable_extensions; do
3575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576     ac_cv_prog_MAKE="$ac_prog"
3577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581 done
3582
3583 fi
3584 fi
3585 MAKE=$ac_cv_prog_MAKE
3586 if test -n "$MAKE"; then
3587   echo "$as_me:$LINENO: result: $MAKE" >&5
3588 echo "${ECHO_T}$MAKE" >&6
3589 else
3590   echo "$as_me:$LINENO: result: no" >&5
3591 echo "${ECHO_T}no" >&6
3592 fi
3593
3594   test -n "$MAKE" && break
3595 done
3596
3597 if test -z "$MAKE"; then
3598   ac_verc_fail=yes
3599 else
3600   # Found it, now check the version.
3601   echo "$as_me:$LINENO: checking version of $MAKE" >&5
3602 echo $ECHO_N "checking version of $MAKE... $ECHO_C" >&6
3603   ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
3604   case $ac_prog_version in
3605     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3606     3.79* | 3.[89]*)
3607        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3608     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3609
3610   esac
3611   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3612 echo "${ECHO_T}$ac_prog_version" >&6
3613 fi
3614 if test $ac_verc_fail = yes; then
3615   critic_missing="$critic_missing make"
3616 fi
3617
3618
3619 for ac_prog in gnumsgfmt gmsgfmt msgfmt
3620 do
3621   # Extract the first word of "$ac_prog", so it can be a program name with args.
3622 set dummy $ac_prog; ac_word=$2
3623 echo "$as_me:$LINENO: checking for $ac_word" >&5
3624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3625 if test "${ac_cv_prog_MSGFMT+set}" = set; then
3626   echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628   if test -n "$MSGFMT"; then
3629   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634   IFS=$as_save_IFS
3635   test -z "$as_dir" && as_dir=.
3636   for ac_exec_ext in '' $ac_executable_extensions; do
3637   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638     ac_cv_prog_MSGFMT="$ac_prog"
3639     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3640     break 2
3641   fi
3642 done
3643 done
3644
3645 fi
3646 fi
3647 MSGFMT=$ac_cv_prog_MSGFMT
3648 if test -n "$MSGFMT"; then
3649   echo "$as_me:$LINENO: result: $MSGFMT" >&5
3650 echo "${ECHO_T}$MSGFMT" >&6
3651 else
3652   echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3654 fi
3655
3656   test -n "$MSGFMT" && break
3657 done
3658
3659 if test -z "$MSGFMT"; then
3660   ac_verc_fail=yes
3661 else
3662   # Found it, now check the version.
3663   echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
3664 echo $ECHO_N "checking version of $MSGFMT... $ECHO_C" >&6
3665   ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3666   case $ac_prog_version in
3667     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3668     0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
3669        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3670     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3671
3672   esac
3673   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3674 echo "${ECHO_T}$ac_prog_version" >&6
3675 fi
3676 if test $ac_verc_fail = yes; then
3677   MSGFMT=: aux_missing="$aux_missing msgfmt"
3678 fi
3679
3680 for ac_prog in makeinfo
3681 do
3682   # Extract the first word of "$ac_prog", so it can be a program name with args.
3683 set dummy $ac_prog; ac_word=$2
3684 echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
3687   echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689   if test -n "$MAKEINFO"; then
3690   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3691 else
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 for as_dir in $PATH
3694 do
3695   IFS=$as_save_IFS
3696   test -z "$as_dir" && as_dir=.
3697   for ac_exec_ext in '' $ac_executable_extensions; do
3698   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699     ac_cv_prog_MAKEINFO="$ac_prog"
3700     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3701     break 2
3702   fi
3703 done
3704 done
3705
3706 fi
3707 fi
3708 MAKEINFO=$ac_cv_prog_MAKEINFO
3709 if test -n "$MAKEINFO"; then
3710   echo "$as_me:$LINENO: result: $MAKEINFO" >&5
3711 echo "${ECHO_T}$MAKEINFO" >&6
3712 else
3713   echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3715 fi
3716
3717   test -n "$MAKEINFO" && break
3718 done
3719
3720 if test -z "$MAKEINFO"; then
3721   ac_verc_fail=yes
3722 else
3723   # Found it, now check the version.
3724   echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
3725 echo $ECHO_N "checking version of $MAKEINFO... $ECHO_C" >&6
3726   ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3727   case $ac_prog_version in
3728     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3729     4.*)
3730        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3731     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3732
3733   esac
3734   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3735 echo "${ECHO_T}$ac_prog_version" >&6
3736 fi
3737 if test $ac_verc_fail = yes; then
3738   MAKEINFO=: aux_missing="$aux_missing makeinfo"
3739 fi
3740
3741 for ac_prog in sed
3742 do
3743   # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_prog_SED+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   if test -n "$SED"; then
3751   ac_cv_prog_SED="$SED" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3755 do
3756   IFS=$as_save_IFS
3757   test -z "$as_dir" && as_dir=.
3758   for ac_exec_ext in '' $ac_executable_extensions; do
3759   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3760     ac_cv_prog_SED="$ac_prog"
3761     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762     break 2
3763   fi
3764 done
3765 done
3766
3767 fi
3768 fi
3769 SED=$ac_cv_prog_SED
3770 if test -n "$SED"; then
3771   echo "$as_me:$LINENO: result: $SED" >&5
3772 echo "${ECHO_T}$SED" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778   test -n "$SED" && break
3779 done
3780
3781 if test -z "$SED"; then
3782   ac_verc_fail=yes
3783 else
3784   # Found it, now check the version.
3785   echo "$as_me:$LINENO: checking version of $SED" >&5
3786 echo $ECHO_N "checking version of $SED... $ECHO_C" >&6
3787   ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
3788   case $ac_prog_version in
3789     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3790     3.0[2-9]*|3.[1-9]*|[4-9]*)
3791        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3792     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3793
3794   esac
3795   echo "$as_me:$LINENO: result: $ac_prog_version" >&5
3796 echo "${ECHO_T}$ac_prog_version" >&6
3797 fi
3798 if test $ac_verc_fail = yes; then
3799   SED=: aux_missing="$aux_missing sed"
3800 fi
3801
3802
3803 if test "x$with_cvs" != xyes; then
3804   for ac_prog in autoconf
3805 do
3806   # Extract the first word of "$ac_prog", so it can be a program name with args.
3807 set dummy $ac_prog; ac_word=$2
3808 echo "$as_me:$LINENO: checking for $ac_word" >&5
3809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3810 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   if test -n "$AUTOCONF"; then
3814   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
3815 else
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH
3818 do
3819   IFS=$as_save_IFS
3820   test -z "$as_dir" && as_dir=.
3821   for ac_exec_ext in '' $ac_executable_extensions; do
3822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823     ac_cv_prog_AUTOCONF="$ac_prog"
3824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825     break 2
3826   fi
3827 done
3828 done
3829
3830 fi
3831 fi
3832 AUTOCONF=$ac_cv_prog_AUTOCONF
3833 if test -n "$AUTOCONF"; then
3834   echo "$as_me:$LINENO: result: $AUTOCONF" >&5
3835 echo "${ECHO_T}$AUTOCONF" >&6
3836 else
3837   echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841   test -n "$AUTOCONF" && break
3842 done
3843 test -n "$AUTOCONF" || AUTOCONF="no"
3844
3845   case "x$AUTOCONF" in
3846   xno|x|x:) AUTOCONF=no ;;
3847   *)
3848     echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
3849 echo $ECHO_N "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... $ECHO_C" >&6
3850 if test "${libc_cv_autoconf_works+set}" = set; then
3851   echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853       if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
3854       libc_cv_autoconf_works=yes
3855     else
3856       libc_cv_autoconf_works=no
3857     fi
3858 fi
3859 echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
3860 echo "${ECHO_T}$libc_cv_autoconf_works" >&6
3861     test $libc_cv_autoconf_works = yes || AUTOCONF=no
3862     ;;
3863   esac
3864   test "x$AUTOCONF" != xno || aux_missing="$aux_missing autoconf"
3865 fi
3866
3867 test -n "$critic_missing" && { { echo "$as_me:$LINENO: error:
3868 *** These critical programs are missing or too old:$critic_missing
3869 *** Check the INSTALL file for required versions." >&5
3870 echo "$as_me: error:
3871 *** These critical programs are missing or too old:$critic_missing
3872 *** Check the INSTALL file for required versions." >&2;}
3873    { (exit 1); exit 1; }; }
3874
3875 test -n "$aux_missing" && { echo "$as_me:$LINENO: WARNING:
3876 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3877 *** some features will be disabled.
3878 *** Check the INSTALL file for required versions." >&5
3879 echo "$as_me: WARNING:
3880 *** These auxiliary programs are missing or incompatible versions:$aux_missing
3881 *** some features will be disabled.
3882 *** Check the INSTALL file for required versions." >&2;}
3883
3884 # glibcbug.in wants to know the compiler version.
3885 CCVERSION=`$CC -v 2>&1 | sed -n 's/gcc version //p'`
3886
3887
3888 # if using special system headers, find out the compiler's sekrit
3889 # header directory and add that to the list.  NOTE: Only does the right
3890 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
3891 if test -n "$sysheaders"; then
3892   ccheaders=`$CC -print-file-name=include`
3893   SYSINCLUDES="-nostdinc -isystem $ccheaders -isystem $sysheaders"
3894 fi
3895
3896
3897 # check if ranlib is necessary
3898 echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
3899 echo $ECHO_N "checking whether ranlib is necessary... $ECHO_C" >&6
3900 if test "${libc_cv_ranlib_necessary+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   cat > conftest.c <<EOF
3904 int a;
3905 char b;
3906 void c(void) {}
3907 EOF
3908 $CC $CFLAGS -c conftest.c
3909 $AR cr conftest.a conftest.o
3910 cp conftest.a conftest2.a
3911 $RANLIB conftest.a
3912 if cmp -s conftest.a conftest2.a; then
3913   libc_cv_ranlib_necessary=no
3914 else
3915   libc_cv_ranlib_necessary=yes
3916 fi
3917 rm -rf conftest*
3918 fi
3919 echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
3920 echo "${ECHO_T}$libc_cv_ranlib_necessary" >&6
3921 if test "$libc_cv_ranlib_necessary" = no; then
3922  RANLIB=:
3923 fi
3924
3925 # Test if LD_LIBRARY_PATH contains the notation for the current directory
3926 # since this would lead to problems installing/building glibc.
3927 # LD_LIBRARY_PATH contains the current directory if one of the following
3928 # is true:
3929 # - one of the terminals (":" and ";") is the first or last sign
3930 # - two terminals occur directly after each other
3931 # - the path contains an element with a dot in it
3932 echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
3933 echo $ECHO_N "checking LD_LIBRARY_PATH variable... $ECHO_C" >&6
3934 case ${LD_LIBRARY_PATH} in
3935   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3936     ld_library_path_setting="contains current directory"
3937     ;;
3938   *)
3939     ld_library_path_setting="ok"
3940     ;;
3941 esac
3942 echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
3943 echo "${ECHO_T}$ld_library_path_setting" >&6
3944 if test "$ld_library_path_setting" != "ok"; then
3945 { { echo "$as_me:$LINENO: error:
3946 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3947 *** building glibc. Please change the environment variable
3948 *** and run configure again." >&5
3949 echo "$as_me: error:
3950 *** LD_LIBRARY_PATH shouldn't contain the current directory when
3951 *** building glibc. Please change the environment variable
3952 *** and run configure again." >&2;}
3953    { (exit 1); exit 1; }; }
3954 fi
3955
3956 echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
3957 echo $ECHO_N "checking whether GCC supports -static-libgcc... $ECHO_C" >&6
3958 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
3959   echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961   if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
3962   libc_cv_gcc_static_libgcc=
3963 else
3964   libc_cv_gcc_static_libgcc=-static-libgcc
3965 fi
3966 fi
3967 echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
3968 echo "${ECHO_T}$libc_cv_gcc_static_libgcc" >&6
3969
3970
3971 # Extract the first word of "bash", so it can be a program name with args.
3972 set dummy bash; ac_word=$2
3973 echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3975 if test "${ac_cv_path_BASH+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   case $BASH in
3979   [\\/]* | ?:[\\/]*)
3980   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
3981   ;;
3982   *)
3983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986   IFS=$as_save_IFS
3987   test -z "$as_dir" && as_dir=.
3988   for ac_exec_ext in '' $ac_executable_extensions; do
3989   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3990     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
3991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992     break 2
3993   fi
3994 done
3995 done
3996
3997   test -z "$ac_cv_path_BASH" && ac_cv_path_BASH="no"
3998   ;;
3999 esac
4000 fi
4001 BASH=$ac_cv_path_BASH
4002
4003 if test -n "$BASH"; then
4004   echo "$as_me:$LINENO: result: $BASH" >&5
4005 echo "${ECHO_T}$BASH" >&6
4006 else
4007   echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6
4009 fi
4010
4011 if test "$BASH" != no &&
4012    $BASH -c 'test "$BASH_VERSINFO" \
4013              && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
4014   libc_cv_have_bash2=yes
4015 else
4016   libc_cv_have_bash2=no
4017 fi
4018
4019
4020 if test "$BASH" = no; then
4021   # Extract the first word of "ksh", so it can be a program name with args.
4022 set dummy ksh; ac_word=$2
4023 echo "$as_me:$LINENO: checking for $ac_word" >&5
4024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4025 if test "${ac_cv_path_KSH+set}" = set; then
4026   echo $ECHO_N "(cached) $ECHO_C" >&6
4027 else
4028   case $KSH in
4029   [\\/]* | ?:[\\/]*)
4030   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
4031   ;;
4032   *)
4033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036   IFS=$as_save_IFS
4037   test -z "$as_dir" && as_dir=.
4038   for ac_exec_ext in '' $ac_executable_extensions; do
4039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
4041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042     break 2
4043   fi
4044 done
4045 done
4046
4047   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
4048   ;;
4049 esac
4050 fi
4051 KSH=$ac_cv_path_KSH
4052
4053 if test -n "$KSH"; then
4054   echo "$as_me:$LINENO: result: $KSH" >&5
4055 echo "${ECHO_T}$KSH" >&6
4056 else
4057   echo "$as_me:$LINENO: result: no" >&5
4058 echo "${ECHO_T}no" >&6
4059 fi
4060
4061   if test "$KSH" = no; then
4062     libc_cv_have_ksh=no
4063   else
4064     libc_cv_have_ksh=yes
4065   fi
4066 else
4067   KSH="$BASH"
4068
4069   libc_cv_have_ksh=yes
4070 fi
4071
4072
4073 for ac_prog in gawk mawk nawk awk
4074 do
4075   # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 echo "$as_me:$LINENO: checking for $ac_word" >&5
4078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4079 if test "${ac_cv_prog_AWK+set}" = set; then
4080   echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082   if test -n "$AWK"; then
4083   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088   IFS=$as_save_IFS
4089   test -z "$as_dir" && as_dir=.
4090   for ac_exec_ext in '' $ac_executable_extensions; do
4091   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4092     ac_cv_prog_AWK="$ac_prog"
4093     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4094     break 2
4095   fi
4096 done
4097 done
4098
4099 fi
4100 fi
4101 AWK=$ac_cv_prog_AWK
4102 if test -n "$AWK"; then
4103   echo "$as_me:$LINENO: result: $AWK" >&5
4104 echo "${ECHO_T}$AWK" >&6
4105 else
4106   echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110   test -n "$AWK" && break
4111 done
4112
4113 # Extract the first word of "perl", so it can be a program name with args.
4114 set dummy perl; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_path_PERL+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   case $PERL in
4121   [\\/]* | ?:[\\/]*)
4122   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4123   ;;
4124   *)
4125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138
4139   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4140   ;;
4141 esac
4142 fi
4143 PERL=$ac_cv_path_PERL
4144
4145 if test -n "$PERL"; then
4146   echo "$as_me:$LINENO: result: $PERL" >&5
4147 echo "${ECHO_T}$PERL" >&6
4148 else
4149   echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6
4151 fi
4152
4153 if test "$PERL" != no &&
4154    (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
4155   PERL=no
4156 fi
4157 # Extract the first word of "install-info", so it can be a program name with args.
4158 set dummy install-info; ac_word=$2
4159 echo "$as_me:$LINENO: checking for $ac_word" >&5
4160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4161 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4162   echo $ECHO_N "(cached) $ECHO_C" >&6
4163 else
4164   case $INSTALL_INFO in
4165   [\\/]* | ?:[\\/]*)
4166   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4167   ;;
4168   *)
4169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4171 for as_dir in $as_dummy
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175   for ac_exec_ext in '' $ac_executable_extensions; do
4176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177     ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182 done
4183
4184   test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
4185   ;;
4186 esac
4187 fi
4188 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4189
4190 if test -n "$INSTALL_INFO"; then
4191   echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4192 echo "${ECHO_T}$INSTALL_INFO" >&6
4193 else
4194   echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6
4196 fi
4197
4198 if test "$INSTALL_INFO" != "no"; then
4199 echo "$as_me:$LINENO: checking for old Debian install-info" >&5
4200 echo $ECHO_N "checking for old Debian install-info... $ECHO_C" >&6
4201 if test "${libc_cv_old_debian_install_info+set}" = set; then
4202   echo $ECHO_N "(cached) $ECHO_C" >&6
4203 else
4204   mkdir conftest.d
4205   # There is a hard ^_ on the next line.  I am open to better ideas.
4206   (echo '\1f'
4207   echo 'File: dir       Node: Top       This is the top of the INFO tree'
4208   echo '* Menu:') >conftest.d/dir
4209   (echo 'INFO-DIR-SECTION i-d-s works'
4210   echo 'START-INFO-DIR-ENTRY'
4211   echo '* Prog: (prog).   Program.'
4212   echo 'END-INFO-DIR-ENTRY') >conftest.d/prog.info
4213   if $INSTALL_INFO --info-dir=conftest.d conftest.d/prog.info >&5 2>&1
4214   then
4215     if grep -s 'i-d-s works' conftest.d/dir >/dev/null
4216     then libc_cv_old_debian_install_info=no
4217     else libc_cv_old_debian_install_info=yes
4218     fi
4219   else libc_cv_old_debian_install_info=no testfailed=t
4220   fi
4221   rm -fr conftest.d
4222 fi
4223 echo "$as_me:$LINENO: result: $libc_cv_old_debian_install_info" >&5
4224 echo "${ECHO_T}$libc_cv_old_debian_install_info" >&6
4225 if test -n "$testfailed"
4226 then { echo "$as_me:$LINENO: WARNING: install-info errored out, check config.log" >&5
4227 echo "$as_me: WARNING: install-info errored out, check config.log" >&2;}
4228 fi
4229 OLD_DEBIAN_INSTALL_INFO=$libc_cv_old_debian_install_info
4230 fi
4231
4232
4233 # Extract the first word of "bison", so it can be a program name with args.
4234 set dummy bison; ac_word=$2
4235 echo "$as_me:$LINENO: checking for $ac_word" >&5
4236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237 if test "${ac_cv_path_BISON+set}" = set; then
4238   echo $ECHO_N "(cached) $ECHO_C" >&6
4239 else
4240   case $BISON in
4241   [\\/]* | ?:[\\/]*)
4242   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
4243   ;;
4244   *)
4245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
4247 for as_dir in $as_dummy
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259
4260   test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
4261   ;;
4262 esac
4263 fi
4264 BISON=$ac_cv_path_BISON
4265
4266 if test -n "$BISON"; then
4267   echo "$as_me:$LINENO: result: $BISON" >&5
4268 echo "${ECHO_T}$BISON" >&6
4269 else
4270   echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4272 fi
4273
4274
4275 echo "$as_me:$LINENO: checking for signed size_t type" >&5
4276 echo $ECHO_N "checking for signed size_t type... $ECHO_C" >&6
4277 if test "${libc_cv_signed_size_t+set}" = set; then
4278   echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280   echo '#include <stddef.h>
4281 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
4282 if eval "$ac_cpp conftest.c 2>/dev/null" \
4283 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
4284   libc_cv_signed_size_t=no
4285 else
4286   libc_cv_signed_size_t=yes
4287 fi
4288 rm -f conftest*
4289 fi
4290 echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
4291 echo "${ECHO_T}$libc_cv_signed_size_t" >&6
4292 if test $libc_cv_signed_size_t = yes; then
4293     cat >> confdefs.h <<\EOF
4294 #undef __SIZE_TYPE__
4295 #define __SIZE_TYPE__ unsigned
4296 EOF
4297 fi
4298
4299
4300 echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
4301 echo $ECHO_N "checking for libc-friendly stddef.h... $ECHO_C" >&6
4302 if test "${libc_cv_friendly_stddef+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   cat >conftest.$ac_ext <<_ACEOF
4306 #line $LINENO "configure"
4307 /* confdefs.h.  */
4308 _ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h.  */
4312 #define __need_size_t
4313 #define __need_wchar_t
4314 #include <stddef.h>
4315 #define __need_NULL
4316 #include <stddef.h>
4317 int
4318 main ()
4319 {
4320 size_t size; wchar_t wchar;
4321 #ifdef offsetof
4322 #error stddef.h ignored __need_*
4323 #endif
4324 if (&size == NULL || &wchar == NULL) abort ();
4325   ;
4326   return 0;
4327 }
4328 _ACEOF
4329 rm -f conftest.$ac_objext
4330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4331   (eval $ac_compile) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -s conftest.$ac_objext'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   libc_cv_friendly_stddef=yes
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 libc_cv_friendly_stddef=no
4347 fi
4348 rm -f conftest.$ac_objext conftest.$ac_ext
4349 fi
4350 echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
4351 echo "${ECHO_T}$libc_cv_friendly_stddef" >&6
4352 if test $libc_cv_friendly_stddef = yes; then
4353   config_vars="$config_vars
4354 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
4355 fi
4356
4357 echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
4358 echo $ECHO_N "checking whether we need to use -P to assemble .S files... $ECHO_C" >&6
4359 if test "${libc_cv_need_minus_P+set}" = set; then
4360   echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362   cat > conftest.S <<EOF
4363 #include "confdefs.h"
4364 /* Nothing whatsoever.  */
4365 EOF
4366 if { ac_try='${CC-cc} $CFLAGS -c conftest.S 1>&5'
4367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368   (eval $ac_try) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; }; then
4372   libc_cv_need_minus_P=no
4373 else
4374   libc_cv_need_minus_P=yes
4375 fi
4376 rm -f conftest*
4377 fi
4378 echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
4379 echo "${ECHO_T}$libc_cv_need_minus_P" >&6
4380 if test $libc_cv_need_minus_P = yes; then
4381   config_vars="$config_vars
4382 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
4383 fi
4384
4385 echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
4386 echo $ECHO_N "checking whether .text pseudo-op must be used... $ECHO_C" >&6
4387 if test "${libc_cv_dot_text+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   cat > conftest.s <<EOF
4391 .text
4392 EOF
4393 libc_cv_dot_text=
4394 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4396   (eval $ac_try) 2>&5
4397   ac_status=$?
4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399   (exit $ac_status); }; }; then
4400   libc_cv_dot_text=.text
4401 fi
4402 rm -f conftest*
4403 fi
4404
4405 if test -z "$libc_cv_dot_text"; then
4406   echo "$as_me:$LINENO: result: no" >&5
4407 echo "${ECHO_T}no" >&6
4408 else
4409   echo "$as_me:$LINENO: result: yes" >&5
4410 echo "${ECHO_T}yes" >&6
4411 fi
4412
4413 echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
4414 echo $ECHO_N "checking for assembler global-symbol directive... $ECHO_C" >&6
4415 if test "${libc_cv_asm_global_directive+set}" = set; then
4416   echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418   libc_cv_asm_global_directive=UNKNOWN
4419 for ac_globl in .globl .global .EXPORT; do
4420   cat > conftest.s <<EOF
4421         ${libc_cv_dot_text}
4422         ${ac_globl} foo
4423 foo:
4424 EOF
4425   if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427   (eval $ac_try) 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }; }; then
4431     libc_cv_asm_global_directive=${ac_globl}
4432   fi
4433   rm -f conftest*
4434   test $libc_cv_asm_global_directive != UNKNOWN && break
4435 done
4436 fi
4437 echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
4438 echo "${ECHO_T}$libc_cv_asm_global_directive" >&6
4439 if test $libc_cv_asm_global_directive = UNKNOWN; then
4440   { { echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
4441 echo "$as_me: error: cannot determine asm global directive" >&2;}
4442    { (exit 1); exit 1; }; }
4443 else
4444   cat >>confdefs.h <<_ACEOF
4445 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4446 _ACEOF
4447
4448 fi
4449
4450 echo "$as_me:$LINENO: checking for .set assembler directive" >&5
4451 echo $ECHO_N "checking for .set assembler directive... $ECHO_C" >&6
4452 if test "${libc_cv_asm_set_directive+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   cat > conftest.s <<EOF
4456 ${libc_cv_dot_text}
4457 foo:
4458 .set glibc_conftest_frobozz,foo
4459 $libc_cv_asm_global_directive glibc_conftest_frobozz
4460 EOF
4461 # The alpha-dec-osf1 assembler gives only a warning for `.set'
4462 # (but it doesn't work), so we must do a linking check to be sure.
4463 cat > conftest1.c <<\EOF
4464 extern int glibc_conftest_frobozz;
4465 main () { printf ("%d\n", glibc_conftest_frobozz); }
4466 EOF
4467 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4468             -o conftest conftest.s conftest1.c 1>&5 2>&5; then
4469   libc_cv_asm_set_directive=yes
4470 else
4471   libc_cv_asm_set_directive=no
4472 fi
4473 rm -f conftest*
4474 fi
4475 echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
4476 echo "${ECHO_T}$libc_cv_asm_set_directive" >&6
4477 if test $libc_cv_asm_set_directive = yes; then
4478   cat >>confdefs.h <<\_ACEOF
4479 #define HAVE_ASM_SET_DIRECTIVE 1
4480 _ACEOF
4481
4482 fi
4483
4484 echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
4485 echo $ECHO_N "checking for assembler .type directive prefix... $ECHO_C" >&6
4486 if test "${libc_cv_asm_type_prefix+set}" = set; then
4487   echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489   libc_cv_asm_type_prefix=no
4490 for ac_try_prefix in '@' '%' '#'; do
4491   cat > conftest.s <<EOF
4492         ${libc_cv_dot_text}
4493         ${libc_cv_asm_global_directive} foo
4494         .type foo, ${ac_try_prefix}object
4495         .size foo, 1
4496 foo:
4497         .byte 1
4498 EOF
4499   if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
4500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501   (eval $ac_try) 2>&5
4502   ac_status=$?
4503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504   (exit $ac_status); }; }; then
4505     libc_cv_asm_type_prefix=${ac_try_prefix}
4506   fi
4507   rm -f conftest*
4508   test "x$libc_cv_asm_type_prefix" != xno && break
4509 done
4510 fi
4511 echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
4512 echo "${ECHO_T}$libc_cv_asm_type_prefix" >&6
4513 if test "x$libc_cv_asm_type_prefix" != xno; then
4514   cat >>confdefs.h <<_ACEOF
4515 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4516 _ACEOF
4517
4518 fi
4519
4520 # The Aix ld uses global .symbol_names instead of symbol_names.
4521 # Unfortunately also used in the PPC64 ELF ABI.
4522 case "${os}${machine}" in
4523 aix4.3* | linux*powerpc/powerpc64*)
4524   cat >>confdefs.h <<\_ACEOF
4525 #define HAVE_ASM_GLOBAL_DOT_NAME 1
4526 _ACEOF
4527
4528 esac
4529
4530 echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
4531 echo $ECHO_N "checking for .symver assembler directive... $ECHO_C" >&6
4532 if test "${libc_cv_asm_symver_directive+set}" = set; then
4533   echo $ECHO_N "(cached) $ECHO_C" >&6
4534 else
4535   cat > conftest.s <<EOF
4536 ${libc_cv_dot_text}
4537 _sym:
4538 .symver _sym,sym@VERS
4539 EOF
4540 if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4541   libc_cv_asm_symver_directive=yes
4542 else
4543   libc_cv_asm_symver_directive=no
4544 fi
4545 rm -f conftest*
4546 fi
4547 echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
4548 echo "${ECHO_T}$libc_cv_asm_symver_directive" >&6
4549 echo "$as_me:$LINENO: checking for ld --version-script" >&5
4550 echo $ECHO_N "checking for ld --version-script... $ECHO_C" >&6
4551 if test "${libc_cv_ld_version_script_option+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   if test $libc_cv_asm_symver_directive = yes; then
4555   cat > conftest.s <<EOF
4556 ${libc_cv_dot_text}
4557 _sym:
4558 .symver _sym,sym@VERS
4559 EOF
4560   cat > conftest.map <<EOF
4561 VERS_1 {
4562         global: sym;
4563 };
4564
4565 VERS_2 {
4566         global: sym;
4567 } VERS_1;
4568 EOF
4569   if ${CC-cc} -c $CFLAGS $CPPFLAGS conftest.s 1>&5 2>&5; then
4570     if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
4571                                         -nostartfiles -nostdlib
4572                                         -Wl,--version-script,conftest.map
4573                        1>&5'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; };
4579     then
4580       libc_cv_ld_version_script_option=yes
4581     else
4582       libc_cv_ld_version_script_option=no
4583     fi
4584   else
4585     libc_cv_ld_version_script_option=no
4586   fi
4587 else
4588   libc_cv_ld_version_script_option=no
4589 fi
4590 rm -f conftest*
4591 fi
4592 echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
4593 echo "${ECHO_T}$libc_cv_ld_version_script_option" >&6
4594 if test $shared != no &&
4595    test $libc_cv_asm_symver_directive = yes &&
4596    test $libc_cv_ld_version_script_option = yes &&
4597    test $enable_versioning = yes; then
4598   VERSIONING=yes
4599   cat >>confdefs.h <<\_ACEOF
4600 #define DO_VERSIONING 1
4601 _ACEOF
4602
4603 else
4604   VERSIONING=no
4605 fi
4606
4607
4608 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
4609   echo "\
4610 *** WARNING: You should not compile GNU libc without versioning. Not using
4611 *** versioning will introduce incompatibilities so that old binaries
4612 *** will not run anymore.
4613 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
4614 fi
4615 if test $elf = yes; then
4616   echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
4617 echo $ECHO_N "checking for .previous assembler directive... $ECHO_C" >&6
4618 if test "${libc_cv_asm_previous_directive+set}" = set; then
4619   echo $ECHO_N "(cached) $ECHO_C" >&6
4620 else
4621     cat > conftest.s <<EOF
4622 .section foo_section
4623 .previous
4624 EOF
4625   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627   (eval $ac_try) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }; }; then
4631     libc_cv_asm_previous_directive=yes
4632   else
4633     libc_cv_asm_previous_directive=no
4634   fi
4635   rm -f conftest*
4636 fi
4637 echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
4638 echo "${ECHO_T}$libc_cv_asm_previous_directive" >&6
4639   if test $libc_cv_asm_previous_directive = yes; then
4640     cat >>confdefs.h <<\_ACEOF
4641 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
4642 _ACEOF
4643
4644   else
4645     echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
4646 echo $ECHO_N "checking for .popsection assembler directive... $ECHO_C" >&6
4647 if test "${libc_cv_asm_popsection_directive+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650       cat > conftest.s <<EOF
4651 .pushsection foo_section
4652 .popsection
4653 EOF
4654     if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656   (eval $ac_try) 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; }; then
4660       libc_cv_asm_popsection_directive=yes
4661     else
4662       libc_cv_asm_popsection_directive=no
4663     fi
4664     rm -f conftest*
4665 fi
4666 echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
4667 echo "${ECHO_T}$libc_cv_asm_popsection_directive" >&6
4668     if test $libc_cv_asm_popsection_directive = yes; then
4669       cat >>confdefs.h <<\_ACEOF
4670 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
4671 _ACEOF
4672
4673     fi
4674   fi
4675   echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
4676 echo $ECHO_N "checking for .protected and .hidden assembler directive... $ECHO_C" >&6
4677 if test "${libc_cv_asm_protected_directive+set}" = set; then
4678   echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680     cat > conftest.s <<EOF
4681 .protected foo
4682 foo:
4683 .hidden bar
4684 bar:
4685 EOF
4686   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
4687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688   (eval $ac_try) 2>&5
4689   ac_status=$?
4690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691   (exit $ac_status); }; }; then
4692     libc_cv_asm_protected_directive=yes
4693   else
4694     libc_cv_asm_protected_directive=no
4695   fi
4696   rm -f conftest*
4697 fi
4698 echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
4699 echo "${ECHO_T}$libc_cv_asm_protected_directive" >&6
4700
4701   cat >>confdefs.h <<\_ACEOF
4702 #define HAVE_PROTECTED 1
4703 _ACEOF
4704
4705   cat >>confdefs.h <<\_ACEOF
4706 #define HAVE_HIDDEN 1
4707 _ACEOF
4708
4709
4710   if test $libc_cv_asm_protected_directive = yes; then
4711     echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
4712 echo $ECHO_N "checking whether __attribute__((visibility())) is supported... $ECHO_C" >&6
4713 if test "${libc_cv_visibility_attribute+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   cat > conftest.c <<EOF
4717                   int foo __attribute__ ((visibility ("hidden"))) = 1;
4718                   int bar __attribute__ ((visibility ("protected"))) = 1;
4719 EOF
4720                   libc_cv_visibility_attribute=no
4721                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; }; then
4727                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
4728                       if grep '\.protected.*bar' conftest.s >/dev/null; then
4729                         libc_cv_visibility_attribute=yes
4730                       fi
4731                     fi
4732                   fi
4733                   rm -f conftest.cs
4734
4735 fi
4736 echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
4737 echo "${ECHO_T}$libc_cv_visibility_attribute" >&6
4738     if test $libc_cv_visibility_attribute = yes; then
4739       cat >>confdefs.h <<\_ACEOF
4740 #define HAVE_VISIBILITY_ATTRIBUTE 1
4741 _ACEOF
4742
4743     fi
4744   fi
4745
4746   if test $libc_cv_visibility_attribute = yes; then
4747     echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
4748 echo $ECHO_N "checking for broken __attribute__((visibility()))... $ECHO_C" >&6
4749 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
4750   echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752   cat > conftest.c <<EOF
4753                   int foo (int x);
4754                   int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
4755                   int bar (int x) { return x; }
4756 EOF
4757                   libc_cv_broken_visibility_attribute=yes
4758                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
4759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760   (eval $ac_try) 2>&5
4761   ac_status=$?
4762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763   (exit $ac_status); }; }; then
4764                     if grep '\.hidden[  _]foo' conftest.s >/dev/null; then
4765                       libc_cv_broken_visibility_attribute=no
4766                     fi
4767                   fi
4768                   rm -f conftest.c conftest.s
4769
4770 fi
4771 echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
4772 echo "${ECHO_T}$libc_cv_broken_visibility_attribute" >&6
4773     if test $libc_cv_broken_visibility_attribute = yes; then
4774       cat >>confdefs.h <<\_ACEOF
4775 #define HAVE_BROKEN_VISIBILITY_ATTRIBUTE 1
4776 _ACEOF
4777
4778     fi
4779   fi
4780
4781   echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
4782 echo $ECHO_N "checking for broken __attribute__((alias()))... $ECHO_C" >&6
4783 if test "${libc_cv_broken_alias_attribute+set}" = set; then
4784   echo $ECHO_N "(cached) $ECHO_C" >&6
4785 else
4786   cat > conftest.c <<EOF
4787                   extern int foo (int x) __asm ("xyzzy");
4788                   int bar (int x) { return x; }
4789                   extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
4790                   extern int dfoo;
4791                   extern __typeof (dfoo) dfoo __asm ("abccb");
4792                   int dfoo = 1;
4793 EOF
4794                   libc_cv_broken_alias_attribute=yes
4795                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
4796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797   (eval $ac_try) 2>&5
4798   ac_status=$?
4799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800   (exit $ac_status); }; }; then
4801                     if grep 'xyzzy' conftest.s >/dev/null &&
4802                        grep 'abccb' conftest.s >/dev/null; then
4803                       libc_cv_broken_alias_attribute=no
4804                     fi
4805                   fi
4806                   rm -f conftest.c conftest.s
4807
4808 fi
4809 echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
4810 echo "${ECHO_T}$libc_cv_broken_alias_attribute" >&6
4811   if test $libc_cv_broken_alias_attribute = yes; then
4812     cat >>confdefs.h <<\_ACEOF
4813 #define HAVE_BROKEN_ALIAS_ATTRIBUTE 1
4814 _ACEOF
4815
4816   fi
4817
4818   if test $libc_cv_visibility_attribute = yes -a $gnu_ld = yes; then
4819     echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
4820 echo $ECHO_N "checking whether to put _rtld_local into .sdata section... $ECHO_C" >&6
4821 if test "${libc_cv_have_sdata_section+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   echo "int i;" > conftest.c
4825                   libc_cv_have_sdata_section=no
4826                   if ${CC-cc} -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
4827                      | grep '\.sdata' >/dev/null; then
4828                     libc_cv_have_sdata_section=yes
4829                   fi
4830                   rm -f conftest.c conftest.so
4831
4832 fi
4833 echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
4834 echo "${ECHO_T}$libc_cv_have_sdata_section" >&6
4835     if test $libc_cv_have_sdata_section = yes; then
4836       cat >>confdefs.h <<\_ACEOF
4837 #define HAVE_SDATA_SECTION 1
4838 _ACEOF
4839
4840     fi
4841   fi
4842
4843   echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
4844 echo $ECHO_N "checking for .preinit_array/.init_array/.fini_array support... $ECHO_C" >&6
4845 if test "${libc_cv_initfinit_array+set}" = set; then
4846   echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848     cat > conftest.c <<EOF
4849 int _start (void) { return 0; }
4850 int __start (void) { return 0; }
4851 int foo (void) { return 1; }
4852 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
4853 EOF
4854   if { ac_try='${CC-cc} -o conftest conftest.c
4855                      -static -nostartfiles -nostdlib 1>&5'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; }
4861   then
4862     if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
4863       libc_cv_initfinit_array=yes
4864     else
4865       libc_cv_initfinit_array=no
4866     fi
4867   else
4868     libc_cv_initfinit_array=no
4869   fi
4870   rm -f conftest*
4871 fi
4872 echo "$as_me:$LINENO: result: $libc_cv_initfinit_array" >&5
4873 echo "${ECHO_T}$libc_cv_initfinit_array" >&6
4874
4875   if test $libc_cv_initfinit_array = yes; then
4876     cat >>confdefs.h <<\_ACEOF
4877 #define HAVE_INITFINI_ARRAY 1
4878 _ACEOF
4879
4880   fi
4881
4882   echo "$as_me:$LINENO: checking for -z nodelete option" >&5
4883 echo $ECHO_N "checking for -z nodelete option... $ECHO_C" >&6
4884 if test "${libc_cv_z_nodelete+set}" = set; then
4885   echo $ECHO_N "(cached) $ECHO_C" >&6
4886 else
4887     cat > conftest.c <<EOF
4888 int _start (void) { return 42; }
4889 EOF
4890   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4891                      -nostartfiles -nostdlib
4892                      -Wl,--enable-new-dtags,-z,nodelete 1>&5'
4893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4894   (eval $ac_try) 2>&5
4895   ac_status=$?
4896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); }; }
4898   then
4899     libc_cv_z_nodelete=yes
4900   else
4901     libc_cv_z_nodelete=no
4902   fi
4903   rm -f conftest*
4904 fi
4905 echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
4906 echo "${ECHO_T}$libc_cv_z_nodelete" >&6
4907
4908
4909   echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
4910 echo $ECHO_N "checking for -z nodlopen option... $ECHO_C" >&6
4911 if test "${libc_cv_z_nodlopen+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914     cat > conftest.c <<EOF
4915 int _start (void) { return 42; }
4916 EOF
4917   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4918                         -nostartfiles -nostdlib
4919                         -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
4920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921   (eval $ac_try) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); }; }
4925   then
4926     libc_cv_z_nodlopen=yes
4927   else
4928     libc_cv_z_nodlopen=no
4929   fi
4930   rm -f conftest*
4931 fi
4932 echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
4933 echo "${ECHO_T}$libc_cv_z_nodlopen" >&6
4934
4935
4936   echo "$as_me:$LINENO: checking for -z initfirst option" >&5
4937 echo $ECHO_N "checking for -z initfirst option... $ECHO_C" >&6
4938 if test "${libc_cv_z_initfirst+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941     cat > conftest.c <<EOF
4942 int _start (void) { return 42; }
4943 EOF
4944   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4945                         -nostartfiles -nostdlib
4946                         -Wl,--enable-new-dtags,-z,initfirst 1>&5'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; }
4952   then
4953     libc_cv_z_initfirst=yes
4954   else
4955     libc_cv_z_initfirst=no
4956   fi
4957   rm -f conftest*
4958 fi
4959 echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
4960 echo "${ECHO_T}$libc_cv_z_initfirst" >&6
4961
4962
4963   echo "$as_me:$LINENO: checking for -Bgroup option" >&5
4964 echo $ECHO_N "checking for -Bgroup option... $ECHO_C" >&6
4965 if test "${libc_cv_Bgroup+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968     cat > conftest.c <<EOF
4969 int _start (void) { return 42; }
4970 EOF
4971   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c -Wl,-Bgroup -nostdlib 1>&5'
4972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973   (eval $ac_try) 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; }
4977   then
4978     libc_cv_Bgroup=yes
4979   else
4980     libc_cv_Bgroup=no
4981   fi
4982   rm -f conftest*
4983 fi
4984 echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
4985 echo "${ECHO_T}$libc_cv_Bgroup" >&6
4986
4987
4988   echo "$as_me:$LINENO: checking for -z combreloc" >&5
4989 echo $ECHO_N "checking for -z combreloc... $ECHO_C" >&6
4990 if test "${libc_cv_z_combreloc+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993     cat > conftest.c <<EOF
4994 extern int bar (int);
4995 extern int mumble;
4996 int foo (void) { return bar (mumble); }
4997 EOF
4998   if { ac_try='${CC-cc} -shared -o conftest.so conftest.c
4999                         -nostdlib -nostartfiles
5000                         -Wl,-z,combreloc 1>&5'
5001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002   (eval $ac_try) 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }; }
5006   then
5007     if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5008       libc_cv_z_combreloc=yes
5009     else
5010       libc_cv_z_combreloc=no
5011     fi
5012   else
5013     libc_cv_z_combreloc=no
5014   fi
5015   rm -f conftest*
5016 fi
5017 echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
5018 echo "${ECHO_T}$libc_cv_z_combreloc" >&6
5019   if test "$libc_cv_z_combreloc" = yes; then
5020     cat >>confdefs.h <<\_ACEOF
5021 #define HAVE_Z_COMBRELOC 1
5022 _ACEOF
5023
5024   fi
5025 fi
5026
5027
5028 if test $elf != yes; then
5029   echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
5030 echo $ECHO_N "checking for .init and .fini sections... $ECHO_C" >&6
5031 if test "${libc_cv_have_initfini+set}" = set; then
5032   echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034   cat >conftest.$ac_ext <<_ACEOF
5035 #line $LINENO "configure"
5036 /* confdefs.h.  */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h.  */
5041
5042 int
5043 main ()
5044 {
5045 asm (".section .init");
5046                                     asm (".section .fini");
5047                                     asm ("${libc_cv_dot_text}");
5048   ;
5049   return 0;
5050 }
5051 _ACEOF
5052 rm -f conftest.$ac_objext
5053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5054   (eval $ac_compile) 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); } &&
5058          { ac_try='test -s conftest.$ac_objext'
5059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060   (eval $ac_try) 2>&5
5061   ac_status=$?
5062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063   (exit $ac_status); }; }; then
5064   libc_cv_have_initfini=yes
5065 else
5066   echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 libc_cv_have_initfini=no
5070 fi
5071 rm -f conftest.$ac_objext conftest.$ac_ext
5072 fi
5073 echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
5074 echo "${ECHO_T}$libc_cv_have_initfini" >&6
5075     if test $libc_cv_have_initfini = yes; then
5076     cat >>confdefs.h <<\_ACEOF
5077 #define HAVE_INITFINI 1
5078 _ACEOF
5079
5080   fi
5081 fi
5082
5083 if test $elf = yes -a $gnu_ld = yes; then
5084   echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
5085 echo $ECHO_N "checking whether cc puts quotes around section names... $ECHO_C" >&6
5086 if test "${libc_cv_have_section_quotes+set}" = set; then
5087   echo $ECHO_N "(cached) $ECHO_C" >&6
5088 else
5089   cat > conftest.c <<EOF
5090                   static const int foo
5091                   __attribute__ ((section ("bar"))) = 1;
5092 EOF
5093                   if ${CC-cc} -S conftest.c -o conftest.s; then
5094                     if grep '\.section.*"bar"' conftest.s >/dev/null; then
5095                       libc_cv_have_section_quotes=yes
5096                     else
5097                       libc_cv_have_section_quotes=no
5098                     fi
5099                   else
5100                     libc_cv_have_section_quotes=unknown
5101                   fi
5102                   rm -f conftest.cs
5103
5104 fi
5105 echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
5106 echo "${ECHO_T}$libc_cv_have_section_quotes" >&6
5107   if test $libc_cv_have_section_quotes = yes; then
5108     cat >>confdefs.h <<\_ACEOF
5109 #define HAVE_SECTION_QUOTES 1
5110 _ACEOF
5111
5112   fi
5113 fi
5114
5115
5116
5117 if test $elf = yes; then
5118   libc_cv_asm_underscores=no
5119 else
5120   if test $ac_cv_prog_cc_works = yes; then
5121     echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5122 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5123 if test "${libc_cv_asm_underscores+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   cat >conftest.$ac_ext <<_ACEOF
5127 #line $LINENO "configure"
5128 /* confdefs.h.  */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h.  */
5133 asm ("_glibc_foobar:");
5134 int
5135 main ()
5136 {
5137 glibc_foobar ();
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest.$ac_objext conftest$ac_exeext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5144   (eval $ac_link) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } &&
5148          { ac_try='test -s conftest$ac_exeext'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; }; then
5154   libc_cv_asm_underscores=yes
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 libc_cv_asm_underscores=no
5160 fi
5161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5162 fi
5163 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5164 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5165   else
5166     echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
5167 echo $ECHO_N "checking for _ prefix on C symbol names... $ECHO_C" >&6
5168 if test "${libc_cv_asm_underscores+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   cat > conftest.$ac_ext <<EOF
5172 #line 5172 "configure"
5173 #include "confdefs.h"
5174 void underscore_test(void) {
5175 return; }
5176 EOF
5177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5178   (eval $ac_compile) 2>&5
5179   ac_status=$?
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); }; then
5182   if grep _underscore_test conftest* >/dev/null; then
5183     rm -f conftest*
5184     libc_cv_asm_underscores=yes
5185   else
5186     rm -f conftest*
5187     libc_cv_asm_underscores=no
5188   fi
5189 else
5190   echo "configure: failed program was:" >&5
5191   cat conftest.$ac_ext >&5
5192   rm -f conftest*
5193   libc_cv_asm_underscores=no
5194 fi
5195 rm -f conftest*
5196 fi
5197 echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
5198 echo "${ECHO_T}$libc_cv_asm_underscores" >&6
5199   fi
5200 fi
5201 if test $libc_cv_asm_underscores = no; then
5202   cat >>confdefs.h <<\_ACEOF
5203 #define NO_UNDERSCORES 1
5204 _ACEOF
5205
5206 fi
5207
5208 if test $elf = yes; then
5209   libc_cv_weak_symbols=yes
5210 fi
5211
5212 echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
5213 echo $ECHO_N "checking for assembler .weak directive... $ECHO_C" >&6
5214 if test "${libc_cv_asm_weak_directive+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   cat > conftest.s <<EOF
5218 ${libc_cv_dot_text}
5219 ${libc_cv_asm_global_directive} foo
5220 foo:
5221 .weak foo
5222 .weak bar; bar = foo
5223 EOF
5224 if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226   (eval $ac_try) 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }; }; then
5230   libc_cv_asm_weak_directive=yes
5231 else
5232   libc_cv_asm_weak_directive=no
5233 fi
5234 rm -f conftest*
5235 fi
5236 echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
5237 echo "${ECHO_T}$libc_cv_asm_weak_directive" >&6
5238
5239 if test $libc_cv_asm_weak_directive = no; then
5240   echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
5241 echo $ECHO_N "checking for assembler .weakext directive... $ECHO_C" >&6
5242 if test "${libc_cv_asm_weakext_directive+set}" = set; then
5243   echo $ECHO_N "(cached) $ECHO_C" >&6
5244 else
5245   cat > conftest.s <<EOF
5246 ${libc_cv_dot_text}
5247 ${libc_cv_asm_global_directive} foo
5248 foo:
5249 .weakext bar foo
5250 .weakext baz
5251 ${libc_cv_asm_global_directive} baz
5252 baz:
5253 EOF
5254   if { ac_try='${CC-cc} $CFLAGS -c conftest.s 1>&5'
5255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256   (eval $ac_try) 2>&5
5257   ac_status=$?
5258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259   (exit $ac_status); }; }; then
5260     libc_cv_asm_weakext_directive=yes
5261   else
5262     libc_cv_asm_weakext_directive=no
5263   fi
5264   rm -f conftest*
5265 fi
5266 echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
5267 echo "${ECHO_T}$libc_cv_asm_weakext_directive" >&6
5268
5269 fi # no .weak
5270
5271 if test $libc_cv_asm_weak_directive = yes; then
5272   cat >>confdefs.h <<\_ACEOF
5273 #define HAVE_ASM_WEAK_DIRECTIVE 1
5274 _ACEOF
5275
5276 elif test $libc_cv_asm_weakext_directive = yes; then
5277   cat >>confdefs.h <<\_ACEOF
5278 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
5279 _ACEOF
5280
5281 fi
5282
5283 case "${host_cpu}-${host_os}" in
5284   cris*)
5285     libc_cv_asm_line_sep='@'
5286     cat >>confdefs.h <<_ACEOF
5287 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5288 _ACEOF
5289
5290     ;;
5291   hppa*linux*)
5292   echo "$as_me:$LINENO: checking for assembler line separator" >&5
5293 echo $ECHO_N "checking for assembler line separator... $ECHO_C" >&6
5294 if test "${libc_cv_asm_line_sep+set}" = set; then
5295   echo $ECHO_N "(cached) $ECHO_C" >&6
5296 else
5297     cat > conftest.s <<EOF
5298  nop ; is_old_puffin
5299 EOF
5300   if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
5301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302   (eval $ac_try) 2>&5
5303   ac_status=$?
5304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305   (exit $ac_status); }; }; then
5306     libc_cv_asm_line_sep='!'
5307   else
5308     if test -z "$enable_hacker_mode"; then
5309       echo "*** You need a newer assembler to compile glibc"
5310       rm -f conftest*
5311       exit 1
5312     fi
5313     libc_cv_asm_line_sep=';'
5314   fi
5315   rm -f conftest*
5316 fi
5317 echo "$as_me:$LINENO: result: $libc_cv_asm_line_sep" >&5
5318 echo "${ECHO_T}$libc_cv_asm_line_sep" >&6
5319   cat >>confdefs.h <<_ACEOF
5320 #define ASM_LINE_SEP $libc_cv_asm_line_sep
5321 _ACEOF
5322
5323   ;;
5324 esac
5325
5326 echo "$as_me:$LINENO: checking if -g produces usable source locations for assembler-with-cpp" >&5
5327 echo $ECHO_N "checking if -g produces usable source locations for assembler-with-cpp... $ECHO_C" >&6
5328 if test "${libc_cv_cpp_asm_debuginfo+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   cat > conftest.S <<EOF
5332 #include "confdefs.h"
5333
5334 /* comment on
5335    two lines */
5336         ${libc_cv_dot_text}
5337         ${libc_cv_asm_global_directive} foo
5338 foo:
5339         /* Unfortunately this test only works for a real instruction,
5340            not for any of the machine-independent pseudo-ops.
5341            So we just have to assume everybody has a "nop".  */
5342         nop
5343         /* comment */
5344         nop
5345         /* comment */
5346         nop
5347 EOF
5348 if { ac_try='${CC-cc} $CFLAGS -g -c conftest.S 1>&5'
5349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350   (eval $ac_try) 2>&5
5351   ac_status=$?
5352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353   (exit $ac_status); }; } &&
5354    ac_pattern='conftest\.S'
5355    { ac_try='readelf --debug-dump=line conftest.o |
5356                    grep $ac_pattern 1>&5'
5357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358   (eval $ac_try) 2>&5
5359   ac_status=$?
5360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361   (exit $ac_status); }; }; then
5362   libc_cv_cpp_asm_debuginfo=yes
5363 else
5364   libc_cv_cpp_asm_debuginfo=no
5365 fi
5366 rm -f conftest*
5367 fi
5368 echo "$as_me:$LINENO: result: $libc_cv_cpp_asm_debuginfo" >&5
5369 echo "${ECHO_T}$libc_cv_cpp_asm_debuginfo" >&6
5370 if test $libc_cv_cpp_asm_debuginfo = yes; then
5371   cat >>confdefs.h <<\_ACEOF
5372 #define HAVE_CPP_ASM_DEBUGINFO 1
5373 _ACEOF
5374
5375 fi
5376
5377 echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
5378 echo $ECHO_N "checking for ld --no-whole-archive... $ECHO_C" >&6
5379 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
5380   echo $ECHO_N "(cached) $ECHO_C" >&6
5381 else
5382   cat > conftest.c <<\EOF
5383 _start () {}
5384 int __eh_pc;
5385 __throw () {}
5386 EOF
5387 if { ac_try='${CC-cc} $CFLAGS
5388                             -nostdlib -nostartfiles -Wl,--no-whole-archive
5389                             -o conftest conftest.c 1>&5'
5390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391   (eval $ac_try) 2>&5
5392   ac_status=$?
5393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394   (exit $ac_status); }; }; then
5395   libc_cv_ld_no_whole_archive=yes
5396 else
5397   libc_cv_ld_no_whole_archive=no
5398 fi
5399 rm -f conftest*
5400 fi
5401 echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
5402 echo "${ECHO_T}$libc_cv_ld_no_whole_archive" >&6
5403 if test $libc_cv_ld_no_whole_archive = yes; then
5404   no_whole_archive=-Wl,--no-whole-archive
5405 fi
5406
5407 echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
5408 echo $ECHO_N "checking for gcc -fexceptions... $ECHO_C" >&6
5409 if test "${libc_cv_gcc_exceptions+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   cat > conftest.c <<\EOF
5413 _start () {}
5414 int __eh_pc;
5415 __throw () {}
5416 EOF
5417 if { ac_try='${CC-cc} $CFLAGS
5418                             -nostdlib -nostartfiles -fexceptions
5419                             -o conftest conftest.c 1>&5'
5420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421   (eval $ac_try) 2>&5
5422   ac_status=$?
5423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424   (exit $ac_status); }; }; then
5425   libc_cv_gcc_exceptions=yes
5426 else
5427   libc_cv_gcc_exceptions=no
5428 fi
5429 rm -f conftest*
5430 fi
5431 echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
5432 echo "${ECHO_T}$libc_cv_gcc_exceptions" >&6
5433 if test $libc_cv_gcc_exceptions = yes; then
5434   exceptions=-fexceptions
5435 fi
5436
5437 if test "$host_cpu" = powerpc ; then
5438 # Check for a bug present in at least versions 2.8.x of GCC
5439 # and versions 1.0.x of EGCS.
5440 echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
5441 echo $ECHO_N "checking whether clobbering cr0 causes problems... $ECHO_C" >&6
5442 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
5443   echo $ECHO_N "(cached) $ECHO_C" >&6
5444 else
5445   cat >conftest.$ac_ext <<_ACEOF
5446 #line $LINENO "configure"
5447 /* confdefs.h.  */
5448 _ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h.  */
5452 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
5453 int
5454 main ()
5455 {
5456
5457   ;
5458   return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463   (eval $ac_compile) 2>&5
5464   ac_status=$?
5465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); } &&
5467          { ac_try='test -s conftest.$ac_objext'
5468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469   (eval $ac_try) 2>&5
5470   ac_status=$?
5471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472   (exit $ac_status); }; }; then
5473   libc_cv_c_asmcr0_bug='no'
5474 else
5475   echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 libc_cv_c_asmcr0_bug='yes'
5479 fi
5480 rm -f conftest.$ac_objext conftest.$ac_ext
5481 fi
5482 echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
5483 echo "${ECHO_T}$libc_cv_c_asmcr0_bug" >&6
5484 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
5485   cat >>confdefs.h <<\_ACEOF
5486 #define BROKEN_PPC_ASM_CR0 1
5487 _ACEOF
5488
5489 fi
5490 fi
5491
5492 echo "$as_me:$LINENO: checking for DWARF2 unwind info support" >&5
5493 echo $ECHO_N "checking for DWARF2 unwind info support... $ECHO_C" >&6
5494 if test "${libc_cv_gcc_dwarf2_unwind_info+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497   cat > conftest.c <<EOF
5498 #line 5498 "configure"
5499 static char *__EH_FRAME_BEGIN__;
5500 _start ()
5501 {
5502 #ifdef CHECK__register_frame
5503   __register_frame (__EH_FRAME_BEGIN__);
5504   __deregister_frame (__EH_FRAME_BEGIN__);
5505 #endif
5506 #ifdef CHECK__register_frame_info
5507   __register_frame_info (__EH_FRAME_BEGIN__);
5508   __deregister_frame_info (__EH_FRAME_BEGIN__);
5509 #endif
5510 }
5511 int __eh_pc;
5512 __throw () {}
5513 /* FIXME: this is fragile.  */
5514 malloc () {}
5515 strcmp () {}
5516 strlen () {}
5517 memcpy () {}
5518 memset () {}
5519 free () {}
5520 abort () {}
5521 __bzero () {}
5522 dl_iterate_phdr () {}
5523 EOF
5524 if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame_info
5525                             -nostdlib -nostartfiles
5526                             -o conftest conftest.c -lgcc >&5'
5527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5528   (eval $ac_try) 2>&5
5529   ac_status=$?
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); }; }; then
5532   libc_cv_gcc_dwarf2_unwind_info=static
5533 else
5534   libc_cv_gcc_dwarf2_unwind_info=no
5535 fi
5536 # Some platforms' specs put -lgcc first.  The second one doesn't hurt.
5537 libc_unwind_check="${CC-cc} $CFLAGS -DCHECK__register_frame_info \
5538                             -nostdlib -nostartfiles -o conftest conftest.c \
5539                             -lgcc -lgcc_eh -lgcc"
5540 if { ac_try='$libc_unwind_check >&5'
5541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542   (eval $ac_try) 2>&5
5543   ac_status=$?
5544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545   (exit $ac_status); }; }; then
5546   if $libc_unwind_check -v 2>&1 >/dev/null \
5547      | grep -q -- --eh-frame-hdr; then
5548     libc_cv_gcc_dwarf2_unwind_info=no_registry_needed
5549   else
5550     libc_cv_gcc_dwarf2_unwind_info=static
5551   fi
5552 else
5553   libc_cv_gcc_dwarf2_unwind_info=no
5554 fi
5555 if test $libc_cv_gcc_dwarf2_unwind_info = no; then
5556   if { ac_try='${CC-cc} $CFLAGS -DCHECK__register_frame
5557                               -nostdlib -nostartfiles
5558                               -o conftest conftest.c -lgcc >&5'
5559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5560   (eval $ac_try) 2>&5
5561   ac_status=$?
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); }; }; then
5564     libc_cv_gcc_dwarf2_unwind_info=yes
5565   else
5566     libc_cv_gcc_dwarf2_unwind_info=no
5567   fi
5568 fi
5569 rm -f conftest*
5570 fi
5571 echo "$as_me:$LINENO: result: $libc_cv_gcc_dwarf2_unwind_info" >&5
5572 echo "${ECHO_T}$libc_cv_gcc_dwarf2_unwind_info" >&6
5573 case $libc_cv_gcc_dwarf2_unwind_info in
5574 yes)
5575   cat >>confdefs.h <<\_ACEOF
5576 #define HAVE_DWARF2_UNWIND_INFO 1
5577 _ACEOF
5578
5579   ;;
5580 static)
5581   cat >>confdefs.h <<\_ACEOF
5582 #define HAVE_DWARF2_UNWIND_INFO 1
5583 _ACEOF
5584
5585   cat >>confdefs.h <<\_ACEOF
5586 #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
5587 _ACEOF
5588
5589   ;;
5590 esac
5591
5592 echo "$as_me:$LINENO: checking for __builtin_expect" >&5
5593 echo $ECHO_N "checking for __builtin_expect... $ECHO_C" >&6
5594 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
5595   echo $ECHO_N "(cached) $ECHO_C" >&6
5596 else
5597   cat > conftest.c <<EOF
5598 #line 5598 "configure"
5599 int foo (int a)
5600 {
5601   a = __builtin_expect (a, 10);
5602   return a == 10 ? 0 : 1;
5603 }
5604 EOF
5605 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5606                             -o conftest conftest.c -lgcc >&5'
5607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5608   (eval $ac_try) 2>&5
5609   ac_status=$?
5610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611   (exit $ac_status); }; }; then
5612   libc_cv_gcc_builtin_expect=yes
5613 else
5614   libc_cv_gcc_builtin_expect=no
5615 fi
5616 rm -f conftest*
5617 fi
5618 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
5619 echo "${ECHO_T}$libc_cv_gcc_builtin_expect" >&6
5620 if test "$libc_cv_gcc_builtin_expect" = yes; then
5621   cat >>confdefs.h <<\_ACEOF
5622 #define HAVE_BUILTIN_EXPECT 1
5623 _ACEOF
5624
5625 fi
5626
5627 echo "$as_me:$LINENO: checking for __builtin_memset" >&5
5628 echo $ECHO_N "checking for __builtin_memset... $ECHO_C" >&6
5629 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
5630   echo $ECHO_N "(cached) $ECHO_C" >&6
5631 else
5632   cat > conftest.c <<\EOF
5633 void zero (void *x)
5634 {
5635   __builtin_memset (x, 0, 1000);
5636 }
5637 EOF
5638 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
5639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5640   (eval $ac_try) 2>&5
5641   ac_status=$?
5642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643   (exit $ac_status); }; };
5644 then
5645   libc_cv_gcc_builtin_memset=no
5646 else
5647   libc_cv_gcc_builtin_memset=yes
5648 fi
5649 rm -f conftest*
5650 fi
5651 echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
5652 echo "${ECHO_T}$libc_cv_gcc_builtin_memset" >&6
5653 if test "$libc_cv_gcc_builtin_memset" = yes ; then
5654   cat >>confdefs.h <<\_ACEOF
5655 #define HAVE_BUILTIN_MEMSET 1
5656 _ACEOF
5657
5658 fi
5659
5660 echo "$as_me:$LINENO: checking for local label subtraction" >&5
5661 echo $ECHO_N "checking for local label subtraction... $ECHO_C" >&6
5662 if test "${libc_cv_gcc_subtract_local_labels+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   cat > conftest.c <<EOF
5666 #line 5666 "configure"
5667 int foo (int a)
5668 {
5669   static const int ar[] = { &&l1 - &&l1, &&l2 - &&l1 };
5670   void *p = &&l1 + ar[a];
5671   goto *p;
5672  l1:
5673   return 1;
5674  l2:
5675   return 2;
5676 }
5677 EOF
5678 if { ac_try='${CC-cc} $CFLAGS -nostdlib -nostartfiles
5679                             -o conftest conftest.c -lgcc >&5'
5680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5681   (eval $ac_try) 2>&5
5682   ac_status=$?
5683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684   (exit $ac_status); }; }; then
5685   libc_cv_gcc_subtract_local_labels=yes
5686 else
5687   libc_cv_gcc_subtract_local_labels=no
5688 fi
5689 rm -f conftest*
5690 fi
5691 echo "$as_me:$LINENO: result: $libc_cv_gcc_subtract_local_labels" >&5
5692 echo "${ECHO_T}$libc_cv_gcc_subtract_local_labels" >&6
5693 if test "$libc_cv_gcc_subtract_local_labels" = yes; then
5694   cat >>confdefs.h <<\_ACEOF
5695 #define HAVE_SUBTRACT_LOCAL_LABELS 1
5696 _ACEOF
5697
5698 fi
5699
5700 if test "x$use__thread" != xno; then
5701   echo "$as_me:$LINENO: checking for __thread" >&5
5702 echo $ECHO_N "checking for __thread... $ECHO_C" >&6
5703 if test "${libc_cv_gcc___thread+set}" = set; then
5704   echo $ECHO_N "(cached) $ECHO_C" >&6
5705 else
5706   cat > conftest.c <<\EOF
5707 __thread int a = 42;
5708 EOF
5709   if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
5710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711   (eval $ac_try) 2>&5
5712   ac_status=$?
5713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714   (exit $ac_status); }; }; then
5715     libc_cv_gcc___thread=yes
5716   else
5717     libc_cv_gcc___thread=no
5718   fi
5719   rm -f conftest*
5720 fi
5721 echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
5722 echo "${ECHO_T}$libc_cv_gcc___thread" >&6
5723   if test "$libc_cv_gcc___thread" = yes; then
5724     cat >>confdefs.h <<\_ACEOF
5725 #define HAVE___THREAD 1
5726 _ACEOF
5727
5728   fi
5729 else
5730   libc_cv_gcc___thread=no
5731 fi
5732
5733 if test "$libc_cv_gcc___thread" = yes; then
5734     echo "$as_me:$LINENO: checking for tls_model attribute" >&5
5735 echo $ECHO_N "checking for tls_model attribute... $ECHO_C" >&6
5736 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739     cat > conftest.c <<\EOF
5740 extern __thread int a __attribute__((tls_model ("initial-exec")));
5741 EOF
5742   if { ac_try='${CC-cc} $CFLAGS -S -Werror conftest.c >&5'
5743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5744   (eval $ac_try) 2>&5
5745   ac_status=$?
5746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747   (exit $ac_status); }; }; then
5748     libc_cv_gcc_tls_model_attr=yes
5749   else
5750     libc_cv_gcc_tls_model_attr=no
5751   fi
5752   rm -f conftest*
5753 fi
5754 echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
5755 echo "${ECHO_T}$libc_cv_gcc_tls_model_attr" >&6
5756   if test "$libc_cv_gcc_tls_model_attr" = yes; then
5757     cat >>confdefs.h <<\_ACEOF
5758 #define HAVE_TLS_MODEL_ATTRIBUTE 1
5759 _ACEOF
5760
5761   fi
5762 fi
5763
5764 echo "$as_me:$LINENO: checking for libgd" >&5
5765 echo $ECHO_N "checking for libgd... $ECHO_C" >&6
5766 if test "$with_gd" != "no"; then
5767   old_CFLAGS="$CFLAGS"
5768   CFLAGS="$CFLAGS $libgd_include"
5769   old_LDFLAGS="$LDFLAGS"
5770   LDFLAGS="$LDFLAGS $libgd_ldflags"
5771   old_LIBS="$LIBS"
5772   LIBS="$LIBS -lgd -lpng -lz -lm"
5773   cat >conftest.$ac_ext <<_ACEOF
5774 #line $LINENO "configure"
5775 /* confdefs.h.  */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h.  */
5780 #include <gd.h>
5781 int
5782 main ()
5783 {
5784 gdImagePng (0, 0)
5785   ;
5786   return 0;
5787 }
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5791   (eval $ac_link) 2>&5
5792   ac_status=$?
5793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794   (exit $ac_status); } &&
5795          { ac_try='test -s conftest$ac_exeext'
5796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5797   (eval $ac_try) 2>&5
5798   ac_status=$?
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); }; }; then
5801   LIBGD=yes
5802 else
5803   echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 LIBGD=no
5807 fi
5808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5809   CFLAGS="$old_CFLAGS"
5810   LDFLAGS="$old_LDFLAGS"
5811   LIBS="$old_LIBS"
5812 else
5813   LIBGD=no
5814 fi
5815 echo "$as_me:$LINENO: result: $LIBGD" >&5
5816 echo "${ECHO_T}$LIBGD" >&6
5817
5818
5819
5820 echo "$as_me:$LINENO: checking for egrep" >&5
5821 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5822 if test "${ac_cv_prog_egrep+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5826     then ac_cv_prog_egrep='grep -E'
5827     else ac_cv_prog_egrep='egrep'
5828     fi
5829 fi
5830 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5831 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5832  EGREP=$ac_cv_prog_egrep
5833
5834
5835 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5837 if test "${ac_cv_header_stdc+set}" = set; then
5838   echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840   cat >conftest.$ac_ext <<_ACEOF
5841 #line $LINENO "configure"
5842 /* confdefs.h.  */
5843 _ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h.  */
5847 #include <stdlib.h>
5848 #include <stdarg.h>
5849 #include <string.h>
5850 #include <float.h>
5851
5852 int
5853 main ()
5854 {
5855
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862   (eval $ac_compile) 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); } &&
5866          { ac_try='test -s conftest.$ac_objext'
5867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5868   (eval $ac_try) 2>&5
5869   ac_status=$?
5870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871   (exit $ac_status); }; }; then
5872   ac_cv_header_stdc=yes
5873 else
5874   echo "$as_me: failed program was:" >&5
5875 sed 's/^/| /' conftest.$ac_ext >&5
5876
5877 ac_cv_header_stdc=no
5878 fi
5879 rm -f conftest.$ac_objext conftest.$ac_ext
5880
5881 if test $ac_cv_header_stdc = yes; then
5882   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5883   cat >conftest.$ac_ext <<_ACEOF
5884 #line $LINENO "configure"
5885 /* confdefs.h.  */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h.  */
5890 #include <string.h>
5891
5892 _ACEOF
5893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5894   $EGREP "memchr" >/dev/null 2>&1; then
5895   :
5896 else
5897   ac_cv_header_stdc=no
5898 fi
5899 rm -f conftest*
5900
5901 fi
5902
5903 if test $ac_cv_header_stdc = yes; then
5904   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5905   cat >conftest.$ac_ext <<_ACEOF
5906 #line $LINENO "configure"
5907 /* confdefs.h.  */
5908 _ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h.  */
5912 #include <stdlib.h>
5913
5914 _ACEOF
5915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5916   $EGREP "free" >/dev/null 2>&1; then
5917   :
5918 else
5919   ac_cv_header_stdc=no
5920 fi
5921 rm -f conftest*
5922
5923 fi
5924
5925 if test $ac_cv_header_stdc = yes; then
5926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5927   if test "$cross_compiling" = yes; then
5928   :
5929 else
5930   cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5932 /* confdefs.h.  */
5933 _ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h.  */
5937 #include <ctype.h>
5938 #if ((' ' & 0x0FF) == 0x020)
5939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5941 #else
5942 # define ISLOWER(c) \
5943                    (('a' <= (c) && (c) <= 'i') \
5944                      || ('j' <= (c) && (c) <= 'r') \
5945                      || ('s' <= (c) && (c) <= 'z'))
5946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5947 #endif
5948
5949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5950 int
5951 main ()
5952 {
5953   int i;
5954   for (i = 0; i < 256; i++)
5955     if (XOR (islower (i), ISLOWER (i))
5956         || toupper (i) != TOUPPER (i))
5957       exit(2);
5958   exit (0);
5959 }
5960 _ACEOF
5961 rm -f conftest$ac_exeext
5962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5963   (eval $ac_link) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968   (eval $ac_try) 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; }; then
5972   :
5973 else
5974   echo "$as_me: program exited with status $ac_status" >&5
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 ( exit $ac_status )
5979 ac_cv_header_stdc=no
5980 fi
5981 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5982 fi
5983 fi
5984 fi
5985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5987 if test $ac_cv_header_stdc = yes; then
5988
5989 cat >>confdefs.h <<\_ACEOF
5990 #define STDC_HEADERS 1
5991 _ACEOF
5992
5993 fi
5994
5995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6006                   inttypes.h stdint.h unistd.h
6007 do
6008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009 echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021 $ac_includes_default
6022
6023 #include <$ac_header>
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027   (eval $ac_compile) 2>&5
6028   ac_status=$?
6029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030   (exit $ac_status); } &&
6031          { ac_try='test -s conftest.$ac_objext'
6032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033   (eval $ac_try) 2>&5
6034   ac_status=$?
6035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036   (exit $ac_status); }; }; then
6037   eval "$as_ac_Header=yes"
6038 else
6039   echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.$ac_ext >&5
6041
6042 eval "$as_ac_Header=no"
6043 fi
6044 rm -f conftest.$ac_objext conftest.$ac_ext
6045 fi
6046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6049   cat >>confdefs.h <<_ACEOF
6050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051 _ACEOF
6052
6053 fi
6054
6055 done
6056
6057
6058 echo "$as_me:$LINENO: checking for long double" >&5
6059 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6060 if test "${ac_cv_type_long_double+set}" = set; then
6061   echo $ECHO_N "(cached) $ECHO_C" >&6
6062 else
6063   cat >conftest.$ac_ext <<_ACEOF
6064 #line $LINENO "configure"
6065 /* confdefs.h.  */
6066 _ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h.  */
6070 $ac_includes_default
6071 int
6072 main ()
6073 {
6074 if ((long double *) 0)
6075   return 0;
6076 if (sizeof (long double))
6077   return 0;
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084   (eval $ac_compile) 2>&5
6085   ac_status=$?
6086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087   (exit $ac_status); } &&
6088          { ac_try='test -s conftest.$ac_objext'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; }; then
6094   ac_cv_type_long_double=yes
6095 else
6096   echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.$ac_ext >&5
6098
6099 ac_cv_type_long_double=no
6100 fi
6101 rm -f conftest.$ac_objext conftest.$ac_ext
6102 fi
6103 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6104 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6105
6106 echo "$as_me:$LINENO: checking size of long double" >&5
6107 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6108 if test "${ac_cv_sizeof_long_double+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   if test "$ac_cv_type_long_double" = yes; then
6112   # The cast to unsigned long works around a bug in the HP C Compiler
6113   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6114   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6115   # This bug is HP SR number 8606223364.
6116   if test "$cross_compiling" = yes; then
6117   # Depending upon the size, compute the lo and hi bounds.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 #line $LINENO "configure"
6120 /* confdefs.h.  */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h.  */
6125 $ac_includes_default
6126 int
6127 main ()
6128 {
6129 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6130 test_array [0] = 0
6131
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138   (eval $ac_compile) 2>&5
6139   ac_status=$?
6140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141   (exit $ac_status); } &&
6142          { ac_try='test -s conftest.$ac_objext'
6143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144   (eval $ac_try) 2>&5
6145   ac_status=$?
6146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147   (exit $ac_status); }; }; then
6148   ac_lo=0 ac_mid=0
6149   while :; do
6150     cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 $ac_includes_default
6158 int
6159 main ()
6160 {
6161 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6162 test_array [0] = 0
6163
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6170   (eval $ac_compile) 2>&5
6171   ac_status=$?
6172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173   (exit $ac_status); } &&
6174          { ac_try='test -s conftest.$ac_objext'
6175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176   (eval $ac_try) 2>&5
6177   ac_status=$?
6178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); }; }; then
6180   ac_hi=$ac_mid; break
6181 else
6182   echo "$as_me: failed program was:" >&5
6183 sed 's/^/| /' conftest.$ac_ext >&5
6184
6185 ac_lo=`expr $ac_mid + 1`
6186                     if test $ac_lo -le $ac_mid; then
6187                       ac_lo= ac_hi=
6188                       break
6189                     fi
6190                     ac_mid=`expr 2 '*' $ac_mid + 1`
6191 fi
6192 rm -f conftest.$ac_objext conftest.$ac_ext
6193   done
6194 else
6195   echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6197
6198 cat >conftest.$ac_ext <<_ACEOF
6199 #line $LINENO "configure"
6200 /* confdefs.h.  */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h.  */
6205 $ac_includes_default
6206 int
6207 main ()
6208 {
6209 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6210 test_array [0] = 0
6211
6212   ;
6213   return 0;
6214 }
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6218   (eval $ac_compile) 2>&5
6219   ac_status=$?
6220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221   (exit $ac_status); } &&
6222          { ac_try='test -s conftest.$ac_objext'
6223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6224   (eval $ac_try) 2>&5
6225   ac_status=$?
6226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227   (exit $ac_status); }; }; then
6228   ac_hi=-1 ac_mid=-1
6229   while :; do
6230     cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237 $ac_includes_default
6238 int
6239 main ()
6240 {
6241 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
6242 test_array [0] = 0
6243
6244   ;
6245   return 0;
6246 }
6247 _ACEOF
6248 rm -f conftest.$ac_objext
6249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250   (eval $ac_compile) 2>&5
6251   ac_status=$?
6252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253   (exit $ac_status); } &&
6254          { ac_try='test -s conftest.$ac_objext'
6255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256   (eval $ac_try) 2>&5
6257   ac_status=$?
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); }; }; then
6260   ac_lo=$ac_mid; break
6261 else
6262   echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6264
6265 ac_hi=`expr '(' $ac_mid ')' - 1`
6266                        if test $ac_mid -le $ac_hi; then
6267                          ac_lo= ac_hi=
6268                          break
6269                        fi
6270                        ac_mid=`expr 2 '*' $ac_mid`
6271 fi
6272 rm -f conftest.$ac_objext conftest.$ac_ext
6273   done
6274 else
6275   echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_lo= ac_hi=
6279 fi
6280 rm -f conftest.$ac_objext conftest.$ac_ext
6281 fi
6282 rm -f conftest.$ac_objext conftest.$ac_ext
6283 # Binary search between lo and hi bounds.
6284 while test "x$ac_lo" != "x$ac_hi"; do
6285   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6286   cat >conftest.$ac_ext <<_ACEOF
6287 #line $LINENO "configure"
6288 /* confdefs.h.  */
6289 _ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h.  */
6293 $ac_includes_default
6294 int
6295 main ()
6296 {
6297 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6298 test_array [0] = 0
6299
6300   ;
6301   return 0;
6302 }
6303 _ACEOF
6304 rm -f conftest.$ac_objext
6305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306   (eval $ac_compile) 2>&5
6307   ac_status=$?
6308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309   (exit $ac_status); } &&
6310          { ac_try='test -s conftest.$ac_objext'
6311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312   (eval $ac_try) 2>&5
6313   ac_status=$?
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); }; }; then
6316   ac_hi=$ac_mid
6317 else
6318   echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6320
6321 ac_lo=`expr '(' $ac_mid ')' + 1`
6322 fi
6323 rm -f conftest.$ac_objext conftest.$ac_ext
6324 done
6325 case $ac_lo in
6326 ?*) ac_cv_sizeof_long_double=$ac_lo;;
6327 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6328 See \`config.log' for more details." >&5
6329 echo "$as_me: error: cannot compute sizeof (long double), 77
6330 See \`config.log' for more details." >&2;}
6331    { (exit 1); exit 1; }; } ;;
6332 esac
6333 else
6334   if test "$cross_compiling" = yes; then
6335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6336 See \`config.log' for more details." >&5
6337 echo "$as_me: error: cannot run test program while cross compiling
6338 See \`config.log' for more details." >&2;}
6339    { (exit 1); exit 1; }; }
6340 else
6341   cat >conftest.$ac_ext <<_ACEOF
6342 #line $LINENO "configure"
6343 /* confdefs.h.  */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h.  */
6348 $ac_includes_default
6349 long longval () { return (long) (sizeof (long double)); }
6350 unsigned long ulongval () { return (long) (sizeof (long double)); }
6351 #include <stdio.h>
6352 #include <stdlib.h>
6353 int
6354 main ()
6355 {
6356
6357   FILE *f = fopen ("conftest.val", "w");
6358   if (! f)
6359     exit (1);
6360   if (((long) (sizeof (long double))) < 0)
6361     {
6362       long i = longval ();
6363       if (i != ((long) (sizeof (long double))))
6364         exit (1);
6365       fprintf (f, "%ld\n", i);
6366     }
6367   else
6368     {
6369       unsigned long i = ulongval ();
6370       if (i != ((long) (sizeof (long double))))
6371         exit (1);
6372       fprintf (f, "%lu\n", i);
6373     }
6374   exit (ferror (f) || fclose (f) != 0);
6375
6376   ;
6377   return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest$ac_exeext
6381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6382   (eval $ac_link) 2>&5
6383   ac_status=$?
6384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387   (eval $ac_try) 2>&5
6388   ac_status=$?
6389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390   (exit $ac_status); }; }; then
6391   ac_cv_sizeof_long_double=`cat conftest.val`
6392 else
6393   echo "$as_me: program exited with status $ac_status" >&5
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6396
6397 ( exit $ac_status )
6398 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
6399 See \`config.log' for more details." >&5
6400 echo "$as_me: error: cannot compute sizeof (long double), 77
6401 See \`config.log' for more details." >&2;}
6402    { (exit 1); exit 1; }; }
6403 fi
6404 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6405 fi
6406 fi
6407 rm -f conftest.val
6408 else
6409   ac_cv_sizeof_long_double=0
6410 fi
6411 fi
6412 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
6413 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
6414 cat >>confdefs.h <<_ACEOF
6415 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
6416 _ACEOF
6417
6418
6419 sizeof_long_double=$ac_cv_sizeof_long_double
6420
6421
6422 ### End of automated tests.
6423 ### Now run sysdeps configure fragments.
6424
6425 # They also can set these variables.
6426 use_ldconfig=no
6427 ldd_rewrite_script=no
6428 libc_cv_sysconfdir=$sysconfdir
6429 libc_cv_gcc_unwind_find_fde=no
6430
6431 # Iterate over all the sysdep directories we will use, running their
6432 # configure fragments, and looking for a uname implementation.
6433 uname=
6434 for dir in $sysnames; do
6435   case $dir in
6436     /*) dest=$dir ;;
6437     *)  dest=$srcdir/$dir ;;
6438   esac
6439   if test -r $dest/configure; then
6440     echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
6441 echo "${ECHO_T}running configure fragment for $dir" >&6
6442     . $dest/configure
6443   fi
6444
6445   if test -z "$uname"; then
6446     if test -r $dest/uname.c ||
6447        test -r $dest/uname.S ||
6448        { test -r $dest/syscalls.list &&
6449          grep '^uname[  ]' $dest/syscalls.list >/dev/null; }; then
6450       uname=$dir
6451     fi
6452   fi
6453 done
6454
6455 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6456   cat >>confdefs.h <<\_ACEOF
6457 #define EXPORT_UNWIND_FIND_FDE 1
6458 _ACEOF
6459
6460 fi
6461
6462
6463 # If we will use the generic uname implementation, we must figure out what
6464 # it will say by examining the system, and write the results in config-name.h.
6465 if test "$uname" = "sysdeps/generic"; then
6466
6467   uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
6468   if test $uname_sysname != $config_os; then
6469     config_release=`echo $config_os | sed s/$uname_sysname//`
6470   fi
6471
6472   echo "$as_me:$LINENO: checking OS release for uname" >&5
6473 echo $ECHO_N "checking OS release for uname... $ECHO_C" >&6
6474 if test "${libc_cv_uname_release+set}" = set; then
6475   echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477       if test -r /vmunix; then
6478       kernel_id=`strings /vmunix | grep UNIX`
6479     elif test -r /dynix; then
6480       kernel_id=`strings /dynix | grep DYNIX`
6481     else
6482       kernel_id=
6483     fi
6484
6485   kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
6486   if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
6487          != x$config_release; then
6488     # The configuration release is a substring of the kernel release.
6489     libc_cv_uname_release=$kernel_release
6490   elif test x$config_release != x; then
6491     libc_cv_uname_release=$config_release
6492   elif test x$kernel_release != x; then
6493     libc_cv_uname_release=$kernel_release
6494   else
6495     libc_cv_uname_release=unknown
6496   fi
6497 fi
6498 echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
6499 echo "${ECHO_T}$libc_cv_uname_release" >&6
6500   uname_release="$libc_cv_uname_release"
6501
6502   echo "$as_me:$LINENO: checking OS version for uname" >&5
6503 echo $ECHO_N "checking OS version for uname... $ECHO_C" >&6
6504 if test "${libc_cv_uname_version+set}" = set; then
6505   echo $ECHO_N "(cached) $ECHO_C" >&6
6506 else
6507       if test -r /vmunix; then
6508       kernel_id=`strings /vmunix | grep UNIX`
6509     elif test -r /dynix; then
6510       kernel_id=`strings /dynix | grep DYNIX`
6511     else
6512       kernel_id=
6513     fi
6514
6515   kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
6516   if test -n "$kernel_version"; then
6517     libc_cv_uname_version="$kernel_version"
6518   else
6519     libc_cv_uname_version=unknown
6520   fi
6521 fi
6522 echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
6523 echo "${ECHO_T}$libc_cv_uname_version" >&6
6524   uname_version="$libc_cv_uname_version"
6525
6526     config_uname=config-name.h:config-name.in
6527 else
6528   # For non-generic uname, we don't need to create config-name.h at all.
6529   config_uname=
6530 fi
6531
6532 cat >>confdefs.h <<\_ACEOF
6533 #define USE_IN_LIBIO 1
6534 _ACEOF
6535
6536
6537 # Test for old glibc 2.0.x headers so that they can be removed properly
6538 # Search only in includedir.
6539 echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
6540 echo $ECHO_N "checking for old glibc 2.0.x headers... $ECHO_C" >&6
6541 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
6542 then
6543   old_glibc_headers=yes
6544 else
6545   old_glibc_headers=no
6546 fi
6547 echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
6548 echo "${ECHO_T}$old_glibc_headers" >&6
6549 if test ${old_glibc_headers} = yes; then
6550   { echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
6551 echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
6552   { echo "$as_me:$LINENO: WARNING: *** be removed." >&5
6553 echo "$as_me: WARNING: *** be removed." >&2;}
6554 fi
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566 if test $gnu_ld = yes; then
6567   cat >>confdefs.h <<\_ACEOF
6568 #define HAVE_GNU_LD 1
6569 _ACEOF
6570
6571 fi
6572 if test $gnu_as = yes; then
6573   cat >>confdefs.h <<\_ACEOF
6574 #define HAVE_GNU_AS 1
6575 _ACEOF
6576
6577 fi
6578 if test $elf = yes; then
6579   cat >>confdefs.h <<\_ACEOF
6580 #define HAVE_ELF 1
6581 _ACEOF
6582
6583 fi
6584 if test $xcoff = yes; then
6585   cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_XCOFF 1
6587 _ACEOF
6588
6589 fi
6590
6591
6592
6593 if test $shared = default; then
6594   if test $gnu_ld = yes; then
6595     shared=$elf
6596   else
6597     # For now we do not assume shared libs are available.  In future more
6598     # tests might become available.
6599     shared=no
6600   fi
6601 fi
6602
6603 echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
6604 echo $ECHO_N "checking whether -fPIC is default... $ECHO_C" >&6
6605 if test "${pic_default+set}" = set; then
6606   echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608   pic_default=yes
6609 cat > conftest.c <<EOF
6610 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6611 # error PIC is default.
6612 #endif
6613 EOF
6614 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6615   pic_default=no
6616 fi
6617 rm -f conftest.*
6618 fi
6619 echo "$as_me:$LINENO: result: $pic_default" >&5
6620 echo "${ECHO_T}$pic_default" >&6
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631 case "$add_ons" in
6632   *door*) linux_doors=yes ;;
6633   *) linux_doors=no ;;
6634 esac
6635
6636
6637
6638
6639 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
6640   config_makefile=
6641 else
6642   config_makefile=Makefile
6643 fi
6644
6645 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6646 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6647
6648
6649
6650                                         ac_config_files="$ac_config_files config.make glibcbug ${config_makefile} ${config_uname}"
6651
6652           ac_config_commands="$ac_config_commands default"
6653
6654 cat >confcache <<\_ACEOF
6655 # This file is a shell script that caches the results of configure
6656 # tests run on this system so they can be shared between configure
6657 # scripts and configure runs, see configure's option --config-cache.
6658 # It is not useful on other systems.  If it contains results you don't
6659 # want to keep, you may remove or edit it.
6660 #
6661 # config.status only pays attention to the cache file if you give it
6662 # the --recheck option to rerun configure.
6663 #
6664 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6665 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6666 # following values.
6667
6668 _ACEOF
6669
6670 # The following way of writing the cache mishandles newlines in values,
6671 # but we know of no workaround that is simple, portable, and efficient.
6672 # So, don't put newlines in cache variables' values.
6673 # Ultrix sh set writes to stderr and can't be redirected directly,
6674 # and sets the high bit in the cache file unless we assign to the vars.
6675 {
6676   (set) 2>&1 |
6677     case `(ac_space=' '; set | grep ac_space) 2>&1` in
6678     *ac_space=\ *)
6679       # `set' does not quote correctly, so add quotes (double-quote
6680       # substitution turns \\\\ into \\, and sed turns \\ into \).
6681       sed -n \
6682         "s/'/'\\\\''/g;
6683           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6684       ;;
6685     *)
6686       # `set' quotes correctly as required by POSIX, so do not add quotes.
6687       sed -n \
6688         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6689       ;;
6690     esac;
6691 } |
6692   sed '
6693      t clear
6694      : clear
6695      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6696      t end
6697      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6698      : end' >>confcache
6699 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6700   if test -w $cache_file; then
6701     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6702     cat confcache >$cache_file
6703   else
6704     echo "not updating unwritable cache $cache_file"
6705   fi
6706 fi
6707 rm -f confcache
6708
6709 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6710 # Let make expand exec_prefix.
6711 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6712
6713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6715 # trailing colons and then remove the whole line if VPATH becomes empty
6716 # (actually we leave an empty line to preserve line numbers).
6717 if test "x$srcdir" = x.; then
6718   ac_vpsub='/^[         ]*VPATH[        ]*=/{
6719 s/:*\$(srcdir):*/:/;
6720 s/:*\${srcdir}:*/:/;
6721 s/:*@srcdir@:*/:/;
6722 s/^\([^=]*=[    ]*\):*/\1/;
6723 s/:*$//;
6724 s/^[^=]*=[      ]*$//;
6725 }'
6726 fi
6727
6728 DEFS=-DHAVE_CONFIG_H
6729
6730 ac_libobjs=
6731 ac_ltlibobjs=
6732 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6733   # 1. Remove the extension, and $U if already installed.
6734   ac_i=`echo "$ac_i" |
6735          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6736   # 2. Add them.
6737   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6738   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6739 done
6740 LIBOBJS=$ac_libobjs
6741
6742 LTLIBOBJS=$ac_ltlibobjs
6743
6744
6745
6746 : ${CONFIG_STATUS=./config.status}
6747 ac_clean_files_save=$ac_clean_files
6748 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6749 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6750 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6751 cat >$CONFIG_STATUS <<_ACEOF
6752 #! $SHELL
6753 # Generated by $as_me.
6754 # Run this file to recreate the current configuration.
6755 # Compiler output produced by configure, useful for debugging
6756 # configure, is in config.log if it exists.
6757
6758 debug=false
6759 ac_cs_recheck=false
6760 ac_cs_silent=false
6761 SHELL=\${CONFIG_SHELL-$SHELL}
6762 _ACEOF
6763
6764 cat >>$CONFIG_STATUS <<\_ACEOF
6765 ## --------------------- ##
6766 ## M4sh Initialization.  ##
6767 ## --------------------- ##
6768
6769 # Be Bourne compatible
6770 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6771   emulate sh
6772   NULLCMD=:
6773   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6774   # is contrary to our usage.  Disable this feature.
6775   alias -g '${1+"$@"}'='"$@"'
6776 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6777   set -o posix
6778 fi
6779
6780 # Support unset when possible.
6781 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6782   as_unset=unset
6783 else
6784   as_unset=false
6785 fi
6786
6787
6788 # Work around bugs in pre-3.0 UWIN ksh.
6789 $as_unset ENV MAIL MAILPATH
6790 PS1='$ '
6791 PS2='> '
6792 PS4='+ '
6793
6794 # NLS nuisances.
6795 for as_var in \
6796   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6797   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6798   LC_TELEPHONE LC_TIME
6799 do
6800   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6801     eval $as_var=C; export $as_var
6802   else
6803     $as_unset $as_var
6804   fi
6805 done
6806
6807 # Required to use basename.
6808 if expr a : '\(a\)' >/dev/null 2>&1; then
6809   as_expr=expr
6810 else
6811   as_expr=false
6812 fi
6813
6814 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6815   as_basename=basename
6816 else
6817   as_basename=false
6818 fi
6819
6820
6821 # Name of the executable.
6822 as_me=`$as_basename "$0" ||
6823 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6824          X"$0" : 'X\(//\)$' \| \
6825          X"$0" : 'X\(/\)$' \| \
6826          .     : '\(.\)' 2>/dev/null ||
6827 echo X/"$0" |
6828     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6829           /^X\/\(\/\/\)$/{ s//\1/; q; }
6830           /^X\/\(\/\).*/{ s//\1/; q; }
6831           s/.*/./; q'`
6832
6833
6834 # PATH needs CR, and LINENO needs CR and PATH.
6835 # Avoid depending upon Character Ranges.
6836 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6837 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6838 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6839 as_cr_digits='0123456789'
6840 as_cr_alnum=$as_cr_Letters$as_cr_digits
6841
6842 # The user is always right.
6843 if test "${PATH_SEPARATOR+set}" != set; then
6844   echo "#! /bin/sh" >conf$$.sh
6845   echo  "exit 0"   >>conf$$.sh
6846   chmod +x conf$$.sh
6847   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6848     PATH_SEPARATOR=';'
6849   else
6850     PATH_SEPARATOR=:
6851   fi
6852   rm -f conf$$.sh
6853 fi
6854
6855
6856   as_lineno_1=$LINENO
6857   as_lineno_2=$LINENO
6858   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6859   test "x$as_lineno_1" != "x$as_lineno_2" &&
6860   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
6861   # Find who we are.  Look in the path if we contain no path at all
6862   # relative or not.
6863   case $0 in
6864     *[\\/]* ) as_myself=$0 ;;
6865     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6871 done
6872
6873        ;;
6874   esac
6875   # We did not find ourselves, most probably we were run as `sh COMMAND'
6876   # in which case we are not to be found in the path.
6877   if test "x$as_myself" = x; then
6878     as_myself=$0
6879   fi
6880   if test ! -f "$as_myself"; then
6881     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6882 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6883    { (exit 1); exit 1; }; }
6884   fi
6885   case $CONFIG_SHELL in
6886   '')
6887     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6889 do
6890   IFS=$as_save_IFS
6891   test -z "$as_dir" && as_dir=.
6892   for as_base in sh bash ksh sh5; do
6893          case $as_dir in
6894          /*)
6895            if ("$as_dir/$as_base" -c '
6896   as_lineno_1=$LINENO
6897   as_lineno_2=$LINENO
6898   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6899   test "x$as_lineno_1" != "x$as_lineno_2" &&
6900   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
6901              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6902              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6903              CONFIG_SHELL=$as_dir/$as_base
6904              export CONFIG_SHELL
6905              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6906            fi;;
6907          esac
6908        done
6909 done
6910 ;;
6911   esac
6912
6913   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6914   # uniformly replaced by the line number.  The first 'sed' inserts a
6915   # line-number line before each line; the second 'sed' does the real
6916   # work.  The second script uses 'N' to pair each line-number line
6917   # with the numbered line, and appends trailing '-' during
6918   # substitution so that $LINENO is not a special case at line end.
6919   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6920   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
6921   sed '=' <$as_myself |
6922     sed '
6923       N
6924       s,$,-,
6925       : loop
6926       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6927       t loop
6928       s,-$,,
6929       s,^['$as_cr_digits']*\n,,
6930     ' >$as_me.lineno &&
6931   chmod +x $as_me.lineno ||
6932     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6933 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6934    { (exit 1); exit 1; }; }
6935
6936   # Don't try to exec as it changes $[0], causing all sort of problems
6937   # (the dirname of $[0] is not the place where we might find the
6938   # original and so on.  Autoconf is especially sensible to this).
6939   . ./$as_me.lineno
6940   # Exit status is that of the last command.
6941   exit
6942 }
6943
6944
6945 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6946   *c*,-n*) ECHO_N= ECHO_C='
6947 ' ECHO_T='      ' ;;
6948   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6949   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
6950 esac
6951
6952 if expr a : '\(a\)' >/dev/null 2>&1; then
6953   as_expr=expr
6954 else
6955   as_expr=false
6956 fi
6957
6958 rm -f conf$$ conf$$.exe conf$$.file
6959 echo >conf$$.file
6960 if ln -s conf$$.file conf$$ 2>/dev/null; then
6961   # We could just check for DJGPP; but this test a) works b) is more generic
6962   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6963   if test -f conf$$.exe; then
6964     # Don't use ln at all; we don't have any links
6965     as_ln_s='cp -p'
6966   else
6967     as_ln_s='ln -s'
6968   fi
6969 elif ln conf$$.file conf$$ 2>/dev/null; then
6970   as_ln_s=ln
6971 else
6972   as_ln_s='cp -p'
6973 fi
6974 rm -f conf$$ conf$$.exe conf$$.file
6975
6976 if mkdir -p . 2>/dev/null; then
6977   as_mkdir_p=:
6978 else
6979   as_mkdir_p=false
6980 fi
6981
6982 as_executable_p="test -f"
6983
6984 # Sed expression to map a string onto a valid CPP name.
6985 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6986
6987 # Sed expression to map a string onto a valid variable name.
6988 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6989
6990
6991 # IFS
6992 # We need space, tab and new line, in precisely that order.
6993 as_nl='
6994 '
6995 IFS="   $as_nl"
6996
6997 # CDPATH.
6998 $as_unset CDPATH
6999
7000 exec 6>&1
7001
7002 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7003 # report actual input values of CONFIG_FILES etc. instead of their
7004 # values after options handling.  Logging --version etc. is OK.
7005 exec 5>>config.log
7006 {
7007   echo
7008   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7009 ## Running $as_me. ##
7010 _ASBOX
7011 } >&5
7012 cat >&5 <<_CSEOF
7013
7014 This file was extended by GNU C Library $as_me (see version.h), which was
7015 generated by GNU Autoconf 2.57.  Invocation command line was
7016
7017   CONFIG_FILES    = $CONFIG_FILES
7018   CONFIG_HEADERS  = $CONFIG_HEADERS
7019   CONFIG_LINKS    = $CONFIG_LINKS
7020   CONFIG_COMMANDS = $CONFIG_COMMANDS
7021   $ $0 $@
7022
7023 _CSEOF
7024 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7025 echo >&5
7026 _ACEOF
7027
7028 # Files that config.status was made for.
7029 if test -n "$ac_config_files"; then
7030   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7031 fi
7032
7033 if test -n "$ac_config_headers"; then
7034   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7035 fi
7036
7037 if test -n "$ac_config_links"; then
7038   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7039 fi
7040
7041 if test -n "$ac_config_commands"; then
7042   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7043 fi
7044
7045 cat >>$CONFIG_STATUS <<\_ACEOF
7046
7047 ac_cs_usage="\
7048 \`$as_me' instantiates files from templates according to the
7049 current configuration.
7050
7051 Usage: $0 [OPTIONS] [FILE]...
7052
7053   -h, --help       print this help, then exit
7054   -V, --version    print version number, then exit
7055   -q, --quiet      do not print progress messages
7056   -d, --debug      don't remove temporary files
7057       --recheck    update $as_me by reconfiguring in the same conditions
7058   --file=FILE[:TEMPLATE]
7059                    instantiate the configuration file FILE
7060   --header=FILE[:TEMPLATE]
7061                    instantiate the configuration header FILE
7062
7063 Configuration files:
7064 $config_files
7065
7066 Configuration headers:
7067 $config_headers
7068
7069 Configuration commands:
7070 $config_commands
7071
7072 Report bugs to <bug-autoconf@gnu.org>."
7073 _ACEOF
7074
7075 cat >>$CONFIG_STATUS <<_ACEOF
7076 ac_cs_version="\\
7077 GNU C Library config.status (see version.h)
7078 configured by $0, generated by GNU Autoconf 2.57,
7079   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7080
7081 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7082 Free Software Foundation, Inc.
7083 This config.status script is free software; the Free Software Foundation
7084 gives unlimited permission to copy, distribute and modify it."
7085 srcdir=$srcdir
7086 INSTALL="$INSTALL"
7087 _ACEOF
7088
7089 cat >>$CONFIG_STATUS <<\_ACEOF
7090 # If no file are specified by the user, then we need to provide default
7091 # value.  By we need to know if files were specified by the user.
7092 ac_need_defaults=:
7093 while test $# != 0
7094 do
7095   case $1 in
7096   --*=*)
7097     ac_option=`expr "x$1" : 'x\([^=]*\)='`
7098     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7099     ac_shift=:
7100     ;;
7101   -*)
7102     ac_option=$1
7103     ac_optarg=$2
7104     ac_shift=shift
7105     ;;
7106   *) # This is not an option, so the user has probably given explicit
7107      # arguments.
7108      ac_option=$1
7109      ac_need_defaults=false;;
7110   esac
7111
7112   case $ac_option in
7113   # Handling of the options.
7114 _ACEOF
7115 cat >>$CONFIG_STATUS <<\_ACEOF
7116   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7117     ac_cs_recheck=: ;;
7118   --version | --vers* | -V )
7119     echo "$ac_cs_version"; exit 0 ;;
7120   --he | --h)
7121     # Conflict between --help and --header
7122     { { echo "$as_me:$LINENO: error: ambiguous option: $1
7123 Try \`$0 --help' for more information." >&5
7124 echo "$as_me: error: ambiguous option: $1
7125 Try \`$0 --help' for more information." >&2;}
7126    { (exit 1); exit 1; }; };;
7127   --help | --hel | -h )
7128     echo "$ac_cs_usage"; exit 0 ;;
7129   --debug | --d* | -d )
7130     debug=: ;;
7131   --file | --fil | --fi | --f )
7132     $ac_shift
7133     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7134     ac_need_defaults=false;;
7135   --header | --heade | --head | --hea )
7136     $ac_shift
7137     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7138     ac_need_defaults=false;;
7139   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7140   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7141     ac_cs_silent=: ;;
7142
7143   # This is an error.
7144   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7145 Try \`$0 --help' for more information." >&5
7146 echo "$as_me: error: unrecognized option: $1
7147 Try \`$0 --help' for more information." >&2;}
7148    { (exit 1); exit 1; }; } ;;
7149
7150   *) ac_config_targets="$ac_config_targets $1" ;;
7151
7152   esac
7153   shift
7154 done
7155
7156 ac_configure_extra_args=
7157
7158 if $ac_cs_silent; then
7159   exec 6>/dev/null
7160   ac_configure_extra_args="$ac_configure_extra_args --silent"
7161 fi
7162
7163 _ACEOF
7164 cat >>$CONFIG_STATUS <<_ACEOF
7165 if \$ac_cs_recheck; then
7166   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7167   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7168 fi
7169
7170 _ACEOF
7171
7172 cat >>$CONFIG_STATUS <<_ACEOF
7173 #
7174 # INIT-COMMANDS section.
7175 #
7176
7177 config_vars='$config_vars'
7178
7179 _ACEOF
7180
7181
7182
7183 cat >>$CONFIG_STATUS <<\_ACEOF
7184 for ac_config_target in $ac_config_targets
7185 do
7186   case "$ac_config_target" in
7187   # Handling of arguments.
7188   "config.make" ) CONFIG_FILES="$CONFIG_FILES config.make" ;;
7189   "glibcbug" ) CONFIG_FILES="$CONFIG_FILES glibcbug" ;;
7190   "${config_makefile}" ) CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
7191   "${config_uname}" ) CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
7192   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7193   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7194   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7195 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7196    { (exit 1); exit 1; }; };;
7197   esac
7198 done
7199
7200 # If the user did not use the arguments to specify the items to instantiate,
7201 # then the envvar interface is used.  Set only those that are not.
7202 # We use the long form for the default assignment because of an extremely
7203 # bizarre bug on SunOS 4.1.3.
7204 if $ac_need_defaults; then
7205   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7206   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7207   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7208 fi
7209
7210 # Have a temporary directory for convenience.  Make it in the build tree
7211 # simply because there is no reason to put it here, and in addition,
7212 # creating and moving files from /tmp can sometimes cause problems.
7213 # Create a temporary directory, and hook for its removal unless debugging.
7214 $debug ||
7215 {
7216   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7217   trap '{ (exit 1); exit 1; }' 1 2 13 15
7218 }
7219
7220 # Create a (secure) tmp directory for tmp files.
7221
7222 {
7223   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7224   test -n "$tmp" && test -d "$tmp"
7225 }  ||
7226 {
7227   tmp=./confstat$$-$RANDOM
7228   (umask 077 && mkdir $tmp)
7229 } ||
7230 {
7231    echo "$me: cannot create a temporary directory in ." >&2
7232    { (exit 1); exit 1; }
7233 }
7234
7235 _ACEOF
7236
7237 cat >>$CONFIG_STATUS <<_ACEOF
7238
7239 #
7240 # CONFIG_FILES section.
7241 #
7242
7243 # No need to generate the scripts if there are no CONFIG_FILES.
7244 # This happens for instance when ./config.status config.h
7245 if test -n "\$CONFIG_FILES"; then
7246   # Protect against being on the right side of a sed subst in config.status.
7247   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7248    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7249 s,@SHELL@,$SHELL,;t t
7250 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7251 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7252 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7253 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7254 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7255 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7256 s,@exec_prefix@,$exec_prefix,;t t
7257 s,@prefix@,$prefix,;t t
7258 s,@program_transform_name@,$program_transform_name,;t t
7259 s,@bindir@,$bindir,;t t
7260 s,@sbindir@,$sbindir,;t t
7261 s,@libexecdir@,$libexecdir,;t t
7262 s,@datadir@,$datadir,;t t
7263 s,@sysconfdir@,$sysconfdir,;t t
7264 s,@sharedstatedir@,$sharedstatedir,;t t
7265 s,@localstatedir@,$localstatedir,;t t
7266 s,@libdir@,$libdir,;t t
7267 s,@includedir@,$includedir,;t t
7268 s,@oldincludedir@,$oldincludedir,;t t
7269 s,@infodir@,$infodir,;t t
7270 s,@mandir@,$mandir,;t t
7271 s,@build_alias@,$build_alias,;t t
7272 s,@host_alias@,$host_alias,;t t
7273 s,@target_alias@,$target_alias,;t t
7274 s,@DEFS@,$DEFS,;t t
7275 s,@ECHO_C@,$ECHO_C,;t t
7276 s,@ECHO_N@,$ECHO_N,;t t
7277 s,@ECHO_T@,$ECHO_T,;t t
7278 s,@LIBS@,$LIBS,;t t
7279 s,@with_fp@,$with_fp,;t t
7280 s,@with_cvs@,$with_cvs,;t t
7281 s,@enable_check_abi@,$enable_check_abi,;t t
7282 s,@oldest_abi@,$oldest_abi,;t t
7283 s,@subdirs@,$subdirs,;t t
7284 s,@force_install@,$force_install,;t t
7285 s,@all_warnings@,$all_warnings,;t t
7286 s,@build@,$build,;t t
7287 s,@build_cpu@,$build_cpu,;t t
7288 s,@build_vendor@,$build_vendor,;t t
7289 s,@build_os@,$build_os,;t t
7290 s,@host@,$host,;t t
7291 s,@host_cpu@,$host_cpu,;t t
7292 s,@host_vendor@,$host_vendor,;t t
7293 s,@host_os@,$host_os,;t t
7294 s,@base_machine@,$base_machine,;t t
7295 s,@sysnames@,$sysnames,;t t
7296 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7297 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7298 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7299 s,@LN_S@,$LN_S,;t t
7300 s,@CC@,$CC,;t t
7301 s,@CFLAGS@,$CFLAGS,;t t
7302 s,@LDFLAGS@,$LDFLAGS,;t t
7303 s,@CPPFLAGS@,$CPPFLAGS,;t t
7304 s,@ac_ct_CC@,$ac_ct_CC,;t t
7305 s,@OBJEXT@,$OBJEXT,;t t
7306 s,@BUILD_CC@,$BUILD_CC,;t t
7307 s,@cross_compiling@,$cross_compiling,;t t
7308 s,@CPP@,$CPP,;t t
7309 s,@AR@,$AR,;t t
7310 s,@OBJDUMP@,$OBJDUMP,;t t
7311 s,@RANLIB@,$RANLIB,;t t
7312 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7313 s,@MIG@,$MIG,;t t
7314 s,@AS@,$AS,;t t
7315 s,@LD@,$LD,;t t
7316 s,@PWD_P@,$PWD_P,;t t
7317 s,@MAKE@,$MAKE,;t t
7318 s,@MSGFMT@,$MSGFMT,;t t
7319 s,@MAKEINFO@,$MAKEINFO,;t t
7320 s,@SED@,$SED,;t t
7321 s,@AUTOCONF@,$AUTOCONF,;t t
7322 s,@CCVERSION@,$CCVERSION,;t t
7323 s,@SYSINCLUDES@,$SYSINCLUDES,;t t
7324 s,@libc_cv_gcc_static_libgcc@,$libc_cv_gcc_static_libgcc,;t t
7325 s,@BASH@,$BASH,;t t
7326 s,@libc_cv_have_bash2@,$libc_cv_have_bash2,;t t
7327 s,@KSH@,$KSH,;t t
7328 s,@libc_cv_have_ksh@,$libc_cv_have_ksh,;t t
7329 s,@AWK@,$AWK,;t t
7330 s,@PERL@,$PERL,;t t
7331 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
7332 s,@OLD_DEBIAN_INSTALL_INFO@,$OLD_DEBIAN_INSTALL_INFO,;t t
7333 s,@BISON@,$BISON,;t t
7334 s,@VERSIONING@,$VERSIONING,;t t
7335 s,@libc_cv_asm_protected_directive@,$libc_cv_asm_protected_directive,;t t
7336 s,@libc_cv_initfinit_array@,$libc_cv_initfinit_array,;t t
7337 s,@libc_cv_z_nodelete@,$libc_cv_z_nodelete,;t t
7338 s,@libc_cv_z_nodlopen@,$libc_cv_z_nodlopen,;t t
7339 s,@libc_cv_z_initfirst@,$libc_cv_z_initfirst,;t t
7340 s,@libc_cv_Bgroup@,$libc_cv_Bgroup,;t t
7341 s,@libc_cv_z_combreloc@,$libc_cv_z_combreloc,;t t
7342 s,@libc_cv_have_initfini@,$libc_cv_have_initfini,;t t
7343 s,@libc_cv_cpp_asm_debuginfo@,$libc_cv_cpp_asm_debuginfo,;t t
7344 s,@no_whole_archive@,$no_whole_archive,;t t
7345 s,@exceptions@,$exceptions,;t t
7346 s,@LIBGD@,$LIBGD,;t t
7347 s,@EGREP@,$EGREP,;t t
7348 s,@sizeof_long_double@,$sizeof_long_double,;t t
7349 s,@libc_cv_gcc_unwind_find_fde@,$libc_cv_gcc_unwind_find_fde,;t t
7350 s,@uname_sysname@,$uname_sysname,;t t
7351 s,@uname_release@,$uname_release,;t t
7352 s,@uname_version@,$uname_version,;t t
7353 s,@old_glibc_headers@,$old_glibc_headers,;t t
7354 s,@libc_cv_slibdir@,$libc_cv_slibdir,;t t
7355 s,@libc_cv_localedir@,$libc_cv_localedir,;t t
7356 s,@libc_cv_sysconfdir@,$libc_cv_sysconfdir,;t t
7357 s,@libc_cv_rootsbindir@,$libc_cv_rootsbindir,;t t
7358 s,@use_ldconfig@,$use_ldconfig,;t t
7359 s,@ldd_rewrite_script@,$ldd_rewrite_script,;t t
7360 s,@gnu_ld@,$gnu_ld,;t t
7361 s,@gnu_as@,$gnu_as,;t t
7362 s,@elf@,$elf,;t t
7363 s,@xcoff@,$xcoff,;t t
7364 s,@static@,$static,;t t
7365 s,@shared@,$shared,;t t
7366 s,@pic_default@,$pic_default,;t t
7367 s,@profile@,$profile,;t t
7368 s,@omitfp@,$omitfp,;t t
7369 s,@bounded@,$bounded,;t t
7370 s,@static_nss@,$static_nss,;t t
7371 s,@nopic_initfini@,$nopic_initfini,;t t
7372 s,@DEFINES@,$DEFINES,;t t
7373 s,@linux_doors@,$linux_doors,;t t
7374 s,@mach_interface_list@,$mach_interface_list,;t t
7375 s,@VERSION@,$VERSION,;t t
7376 s,@RELEASE@,$RELEASE,;t t
7377 s,@LIBOBJS@,$LIBOBJS,;t t
7378 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7379 CEOF
7380
7381 _ACEOF
7382
7383   cat >>$CONFIG_STATUS <<\_ACEOF
7384   # Split the substitutions into bite-sized pieces for seds with
7385   # small command number limits, like on Digital OSF/1 and HP-UX.
7386   ac_max_sed_lines=48
7387   ac_sed_frag=1 # Number of current file.
7388   ac_beg=1 # First line for current file.
7389   ac_end=$ac_max_sed_lines # Line after last line for current file.
7390   ac_more_lines=:
7391   ac_sed_cmds=
7392   while $ac_more_lines; do
7393     if test $ac_beg -gt 1; then
7394       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7395     else
7396       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7397     fi
7398     if test ! -s $tmp/subs.frag; then
7399       ac_more_lines=false
7400     else
7401       # The purpose of the label and of the branching condition is to
7402       # speed up the sed processing (if there are no `@' at all, there
7403       # is no need to browse any of the substitutions).
7404       # These are the two extra sed commands mentioned above.
7405       (echo ':t
7406   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7407       if test -z "$ac_sed_cmds"; then
7408         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7409       else
7410         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7411       fi
7412       ac_sed_frag=`expr $ac_sed_frag + 1`
7413       ac_beg=$ac_end
7414       ac_end=`expr $ac_end + $ac_max_sed_lines`
7415     fi
7416   done
7417   if test -z "$ac_sed_cmds"; then
7418     ac_sed_cmds=cat
7419   fi
7420 fi # test -n "$CONFIG_FILES"
7421
7422 _ACEOF
7423 cat >>$CONFIG_STATUS <<\_ACEOF
7424 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7425   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7426   case $ac_file in
7427   - | *:- | *:-:* ) # input from stdin
7428         cat >$tmp/stdin
7429         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7430         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7431   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7432         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7433   * )   ac_file_in=$ac_file.in ;;
7434   esac
7435
7436   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7437   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7438 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7439          X"$ac_file" : 'X\(//\)[^/]' \| \
7440          X"$ac_file" : 'X\(//\)$' \| \
7441          X"$ac_file" : 'X\(/\)' \| \
7442          .     : '\(.\)' 2>/dev/null ||
7443 echo X"$ac_file" |
7444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7445           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7446           /^X\(\/\/\)$/{ s//\1/; q; }
7447           /^X\(\/\).*/{ s//\1/; q; }
7448           s/.*/./; q'`
7449   { if $as_mkdir_p; then
7450     mkdir -p "$ac_dir"
7451   else
7452     as_dir="$ac_dir"
7453     as_dirs=
7454     while test ! -d "$as_dir"; do
7455       as_dirs="$as_dir $as_dirs"
7456       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7457 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7458          X"$as_dir" : 'X\(//\)[^/]' \| \
7459          X"$as_dir" : 'X\(//\)$' \| \
7460          X"$as_dir" : 'X\(/\)' \| \
7461          .     : '\(.\)' 2>/dev/null ||
7462 echo X"$as_dir" |
7463     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7464           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7465           /^X\(\/\/\)$/{ s//\1/; q; }
7466           /^X\(\/\).*/{ s//\1/; q; }
7467           s/.*/./; q'`
7468     done
7469     test ! -n "$as_dirs" || mkdir $as_dirs
7470   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7471 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7472    { (exit 1); exit 1; }; }; }
7473
7474   ac_builddir=.
7475
7476 if test "$ac_dir" != .; then
7477   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7478   # A "../" for each directory in $ac_dir_suffix.
7479   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7480 else
7481   ac_dir_suffix= ac_top_builddir=
7482 fi
7483
7484 case $srcdir in
7485   .)  # No --srcdir option.  We are building in place.
7486     ac_srcdir=.
7487     if test -z "$ac_top_builddir"; then
7488        ac_top_srcdir=.
7489     else
7490        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7491     fi ;;
7492   [\\/]* | ?:[\\/]* )  # Absolute path.
7493     ac_srcdir=$srcdir$ac_dir_suffix;
7494     ac_top_srcdir=$srcdir ;;
7495   *) # Relative path.
7496     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7497     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7498 esac
7499 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7500 # absolute.
7501 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7502 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7503 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7504 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7505
7506
7507   case $INSTALL in
7508   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7509   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7510   esac
7511
7512   if test x"$ac_file" != x-; then
7513     { echo "$as_me:$LINENO: creating $ac_file" >&5
7514 echo "$as_me: creating $ac_file" >&6;}
7515     rm -f "$ac_file"
7516   fi
7517   # Let's still pretend it is `configure' which instantiates (i.e., don't
7518   # use $as_me), people would be surprised to read:
7519   #    /* config.h.  Generated by config.status.  */
7520   if test x"$ac_file" = x-; then
7521     configure_input=
7522   else
7523     configure_input="$ac_file.  "
7524   fi
7525   configure_input=$configure_input"Generated from `echo $ac_file_in |
7526                                      sed 's,.*/,,'` by configure."
7527
7528   # First look for the input files in the build tree, otherwise in the
7529   # src tree.
7530   ac_file_inputs=`IFS=:
7531     for f in $ac_file_in; do
7532       case $f in
7533       -) echo $tmp/stdin ;;
7534       [\\/$]*)
7535          # Absolute (can't be DOS-style, as IFS=:)
7536          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7537 echo "$as_me: error: cannot find input file: $f" >&2;}
7538    { (exit 1); exit 1; }; }
7539          echo $f;;
7540       *) # Relative
7541          if test -f "$f"; then
7542            # Build tree
7543            echo $f
7544          elif test -f "$srcdir/$f"; then
7545            # Source tree
7546            echo $srcdir/$f
7547          else
7548            # /dev/null tree
7549            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7550 echo "$as_me: error: cannot find input file: $f" >&2;}
7551    { (exit 1); exit 1; }; }
7552          fi;;
7553       esac
7554     done` || { (exit 1); exit 1; }
7555 _ACEOF
7556 cat >>$CONFIG_STATUS <<_ACEOF
7557   sed "$ac_vpsub
7558 $extrasub
7559 _ACEOF
7560 cat >>$CONFIG_STATUS <<\_ACEOF
7561 :t
7562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7563 s,@configure_input@,$configure_input,;t t
7564 s,@srcdir@,$ac_srcdir,;t t
7565 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7566 s,@top_srcdir@,$ac_top_srcdir,;t t
7567 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7568 s,@builddir@,$ac_builddir,;t t
7569 s,@abs_builddir@,$ac_abs_builddir,;t t
7570 s,@top_builddir@,$ac_top_builddir,;t t
7571 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7572 s,@INSTALL@,$ac_INSTALL,;t t
7573 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7574   rm -f $tmp/stdin
7575   if test x"$ac_file" != x-; then
7576     mv $tmp/out $ac_file
7577   else
7578     cat $tmp/out
7579     rm -f $tmp/out
7580   fi
7581
7582 done
7583 _ACEOF
7584 cat >>$CONFIG_STATUS <<\_ACEOF
7585
7586 #
7587 # CONFIG_HEADER section.
7588 #
7589
7590 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7591 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7592 #
7593 # ac_d sets the value in "#define NAME VALUE" lines.
7594 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
7595 ac_dB='[        ].*$,\1#\2'
7596 ac_dC=' '
7597 ac_dD=',;t'
7598 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7599 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
7600 ac_uB='$,\1#\2define\3'
7601 ac_uC=' '
7602 ac_uD=',;t'
7603
7604 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7605   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7606   case $ac_file in
7607   - | *:- | *:-:* ) # input from stdin
7608         cat >$tmp/stdin
7609         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7610         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7611   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7612         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7613   * )   ac_file_in=$ac_file.in ;;
7614   esac
7615
7616   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7617 echo "$as_me: creating $ac_file" >&6;}
7618
7619   # First look for the input files in the build tree, otherwise in the
7620   # src tree.
7621   ac_file_inputs=`IFS=:
7622     for f in $ac_file_in; do
7623       case $f in
7624       -) echo $tmp/stdin ;;
7625       [\\/$]*)
7626          # Absolute (can't be DOS-style, as IFS=:)
7627          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7628 echo "$as_me: error: cannot find input file: $f" >&2;}
7629    { (exit 1); exit 1; }; }
7630          echo $f;;
7631       *) # Relative
7632          if test -f "$f"; then
7633            # Build tree
7634            echo $f
7635          elif test -f "$srcdir/$f"; then
7636            # Source tree
7637            echo $srcdir/$f
7638          else
7639            # /dev/null tree
7640            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7641 echo "$as_me: error: cannot find input file: $f" >&2;}
7642    { (exit 1); exit 1; }; }
7643          fi;;
7644       esac
7645     done` || { (exit 1); exit 1; }
7646   # Remove the trailing spaces.
7647   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
7648
7649 _ACEOF
7650
7651 # Transform confdefs.h into two sed scripts, `conftest.defines' and
7652 # `conftest.undefs', that substitutes the proper values into
7653 # config.h.in to produce config.h.  The first handles `#define'
7654 # templates, and the second `#undef' templates.
7655 # And first: Protect against being on the right side of a sed subst in
7656 # config.status.  Protect against being in an unquoted here document
7657 # in config.status.
7658 rm -f conftest.defines conftest.undefs
7659 # Using a here document instead of a string reduces the quoting nightmare.
7660 # Putting comments in sed scripts is not portable.
7661 #
7662 # `end' is used to avoid that the second main sed command (meant for
7663 # 0-ary CPP macros) applies to n-ary macro definitions.
7664 # See the Autoconf documentation for `clear'.
7665 cat >confdef2sed.sed <<\_ACEOF
7666 s/[\\&,]/\\&/g
7667 s,[\\$`],\\&,g
7668 t clear
7669 : clear
7670 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7671 t end
7672 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7673 : end
7674 _ACEOF
7675 # If some macros were called several times there might be several times
7676 # the same #defines, which is useless.  Nevertheless, we may not want to
7677 # sort them, since we want the *last* AC-DEFINE to be honored.
7678 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7679 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7680 rm -f confdef2sed.sed
7681
7682 # This sed command replaces #undef with comments.  This is necessary, for
7683 # example, in the case of _POSIX_SOURCE, which is predefined and required
7684 # on some systems where configure will not decide to define it.
7685 cat >>conftest.undefs <<\_ACEOF
7686 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7687 _ACEOF
7688
7689 # Break up conftest.defines because some shells have a limit on the size
7690 # of here documents, and old seds have small limits too (100 cmds).
7691 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7692 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7693 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7694 echo '  :' >>$CONFIG_STATUS
7695 rm -f conftest.tail
7696 while grep . conftest.defines >/dev/null
7697 do
7698   # Write a limited-size here document to $tmp/defines.sed.
7699   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7700   # Speed up: don't consider the non `#define' lines.
7701   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
7702   # Work around the forget-to-reset-the-flag bug.
7703   echo 't clr' >>$CONFIG_STATUS
7704   echo ': clr' >>$CONFIG_STATUS
7705   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7706   echo 'CEOF
7707   sed -f $tmp/defines.sed $tmp/in >$tmp/out
7708   rm -f $tmp/in
7709   mv $tmp/out $tmp/in
7710 ' >>$CONFIG_STATUS
7711   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7712   rm -f conftest.defines
7713   mv conftest.tail conftest.defines
7714 done
7715 rm -f conftest.defines
7716 echo '  fi # grep' >>$CONFIG_STATUS
7717 echo >>$CONFIG_STATUS
7718
7719 # Break up conftest.undefs because some shells have a limit on the size
7720 # of here documents, and old seds have small limits too (100 cmds).
7721 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
7722 rm -f conftest.tail
7723 while grep . conftest.undefs >/dev/null
7724 do
7725   # Write a limited-size here document to $tmp/undefs.sed.
7726   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7727   # Speed up: don't consider the non `#undef'
7728   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
7729   # Work around the forget-to-reset-the-flag bug.
7730   echo 't clr' >>$CONFIG_STATUS
7731   echo ': clr' >>$CONFIG_STATUS
7732   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7733   echo 'CEOF
7734   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7735   rm -f $tmp/in
7736   mv $tmp/out $tmp/in
7737 ' >>$CONFIG_STATUS
7738   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7739   rm -f conftest.undefs
7740   mv conftest.tail conftest.undefs
7741 done
7742 rm -f conftest.undefs
7743
7744 cat >>$CONFIG_STATUS <<\_ACEOF
7745   # Let's still pretend it is `configure' which instantiates (i.e., don't
7746   # use $as_me), people would be surprised to read:
7747   #    /* config.h.  Generated by config.status.  */
7748   if test x"$ac_file" = x-; then
7749     echo "/* Generated by configure.  */" >$tmp/config.h
7750   else
7751     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
7752   fi
7753   cat $tmp/in >>$tmp/config.h
7754   rm -f $tmp/in
7755   if test x"$ac_file" != x-; then
7756     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7757       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7758 echo "$as_me: $ac_file is unchanged" >&6;}
7759     else
7760       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7762          X"$ac_file" : 'X\(//\)[^/]' \| \
7763          X"$ac_file" : 'X\(//\)$' \| \
7764          X"$ac_file" : 'X\(/\)' \| \
7765          .     : '\(.\)' 2>/dev/null ||
7766 echo X"$ac_file" |
7767     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7768           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7769           /^X\(\/\/\)$/{ s//\1/; q; }
7770           /^X\(\/\).*/{ s//\1/; q; }
7771           s/.*/./; q'`
7772       { if $as_mkdir_p; then
7773     mkdir -p "$ac_dir"
7774   else
7775     as_dir="$ac_dir"
7776     as_dirs=
7777     while test ! -d "$as_dir"; do
7778       as_dirs="$as_dir $as_dirs"
7779       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7781          X"$as_dir" : 'X\(//\)[^/]' \| \
7782          X"$as_dir" : 'X\(//\)$' \| \
7783          X"$as_dir" : 'X\(/\)' \| \
7784          .     : '\(.\)' 2>/dev/null ||
7785 echo X"$as_dir" |
7786     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7787           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7788           /^X\(\/\/\)$/{ s//\1/; q; }
7789           /^X\(\/\).*/{ s//\1/; q; }
7790           s/.*/./; q'`
7791     done
7792     test ! -n "$as_dirs" || mkdir $as_dirs
7793   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7795    { (exit 1); exit 1; }; }; }
7796
7797       rm -f $ac_file
7798       mv $tmp/config.h $ac_file
7799     fi
7800   else
7801     cat $tmp/config.h
7802     rm -f $tmp/config.h
7803   fi
7804 done
7805 _ACEOF
7806 cat >>$CONFIG_STATUS <<\_ACEOF
7807
7808 #
7809 # CONFIG_COMMANDS section.
7810 #
7811 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7812   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7813   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7814   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7815 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7816          X"$ac_dest" : 'X\(//\)[^/]' \| \
7817          X"$ac_dest" : 'X\(//\)$' \| \
7818          X"$ac_dest" : 'X\(/\)' \| \
7819          .     : '\(.\)' 2>/dev/null ||
7820 echo X"$ac_dest" |
7821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7822           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7823           /^X\(\/\/\)$/{ s//\1/; q; }
7824           /^X\(\/\).*/{ s//\1/; q; }
7825           s/.*/./; q'`
7826   ac_builddir=.
7827
7828 if test "$ac_dir" != .; then
7829   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7830   # A "../" for each directory in $ac_dir_suffix.
7831   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7832 else
7833   ac_dir_suffix= ac_top_builddir=
7834 fi
7835
7836 case $srcdir in
7837   .)  # No --srcdir option.  We are building in place.
7838     ac_srcdir=.
7839     if test -z "$ac_top_builddir"; then
7840        ac_top_srcdir=.
7841     else
7842        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7843     fi ;;
7844   [\\/]* | ?:[\\/]* )  # Absolute path.
7845     ac_srcdir=$srcdir$ac_dir_suffix;
7846     ac_top_srcdir=$srcdir ;;
7847   *) # Relative path.
7848     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7849     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7850 esac
7851 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7852 # absolute.
7853 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7854 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7855 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7856 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7857
7858
7859   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7860 echo "$as_me: executing $ac_dest commands" >&6;}
7861   case $ac_dest in
7862     default )
7863 case $CONFIG_FILES in *config.make*)
7864 echo "$config_vars" >> config.make;;
7865 esac
7866 test -d bits || mkdir bits ;;
7867   esac
7868 done
7869 _ACEOF
7870
7871 cat >>$CONFIG_STATUS <<\_ACEOF
7872
7873 { (exit 0); exit 0; }
7874 _ACEOF
7875 chmod +x $CONFIG_STATUS
7876 ac_clean_files=$ac_clean_files_save
7877
7878
7879 # configure is writing to config.log, and then calls config.status.
7880 # config.status does its own redirection, appending to config.log.
7881 # Unfortunately, on DOS this fails, as config.log is still kept open
7882 # by configure, so config.status won't be able to write to it; its
7883 # output is simply discarded.  So we exec the FD to /dev/null,
7884 # effectively closing config.log, so it can be properly (re)opened and
7885 # appended to by config.status.  When coming back to configure, we
7886 # need to make the FD available again.
7887 if test "$no_create" != yes; then
7888   ac_cs_success=:
7889   ac_config_status_args=
7890   test "$silent" = yes &&
7891     ac_config_status_args="$ac_config_status_args --quiet"
7892   exec 5>/dev/null
7893   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7894   exec 5>>config.log
7895   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7896   # would make configure fail if this is the last instruction.
7897   $ac_cs_success || { (exit 1); exit 1; }
7898 fi
7899
7900 #
7901 # CONFIG_SUBDIRS section.
7902 #
7903 if test "$no_recursion" != yes; then
7904
7905   # Remove --cache-file and --srcdir arguments so they do not pile up.
7906   ac_sub_configure_args=
7907   ac_prev=
7908   for ac_arg in $ac_configure_args; do
7909     if test -n "$ac_prev"; then
7910       ac_prev=
7911       continue
7912     fi
7913     case $ac_arg in
7914     -cache-file | --cache-file | --cache-fil | --cache-fi \
7915     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
7916       ac_prev=cache_file ;;
7917     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
7918     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
7919     | --c=*)
7920       ;;
7921     --config-cache | -C)
7922       ;;
7923     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
7924       ac_prev=srcdir ;;
7925     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
7926       ;;
7927     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
7928       ac_prev=prefix ;;
7929     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
7930       ;;
7931     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
7932     esac
7933   done
7934
7935   # Always prepend --prefix to ensure using the same prefix
7936   # in subdir configurations.
7937   ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
7938
7939   ac_popdir=`pwd`
7940   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
7941
7942     # Do not complain, so a configure script can configure whichever
7943     # parts of a large source tree are present.
7944     test -d $srcdir/$ac_dir || continue
7945
7946     { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
7947 echo "$as_me: configuring in $ac_dir" >&6;}
7948     { if $as_mkdir_p; then
7949     mkdir -p "$ac_dir"
7950   else
7951     as_dir="$ac_dir"
7952     as_dirs=
7953     while test ! -d "$as_dir"; do
7954       as_dirs="$as_dir $as_dirs"
7955       as_dir=`(dirname "$as_dir") 2>/dev/null ||
7956 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7957          X"$as_dir" : 'X\(//\)[^/]' \| \
7958          X"$as_dir" : 'X\(//\)$' \| \
7959          X"$as_dir" : 'X\(/\)' \| \
7960          .     : '\(.\)' 2>/dev/null ||
7961 echo X"$as_dir" |
7962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7964           /^X\(\/\/\)$/{ s//\1/; q; }
7965           /^X\(\/\).*/{ s//\1/; q; }
7966           s/.*/./; q'`
7967     done
7968     test ! -n "$as_dirs" || mkdir $as_dirs
7969   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7970 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7971    { (exit 1); exit 1; }; }; }
7972
7973     ac_builddir=.
7974
7975 if test "$ac_dir" != .; then
7976   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7977   # A "../" for each directory in $ac_dir_suffix.
7978   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7979 else
7980   ac_dir_suffix= ac_top_builddir=
7981 fi
7982
7983 case $srcdir in
7984   .)  # No --srcdir option.  We are building in place.
7985     ac_srcdir=.
7986     if test -z "$ac_top_builddir"; then
7987        ac_top_srcdir=.
7988     else
7989        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7990     fi ;;
7991   [\\/]* | ?:[\\/]* )  # Absolute path.
7992     ac_srcdir=$srcdir$ac_dir_suffix;
7993     ac_top_srcdir=$srcdir ;;
7994   *) # Relative path.
7995     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7996     ac_top_srcdir=$ac_top_builddir$srcdir ;;
7997 esac
7998 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7999 # absolute.
8000 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8001 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8002 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8003 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8004
8005
8006     cd $ac_dir
8007
8008     # Check for guested configure; otherwise get Cygnus style configure.
8009     if test -f $ac_srcdir/configure.gnu; then
8010       ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
8011     elif test -f $ac_srcdir/configure; then
8012       ac_sub_configure="$SHELL '$ac_srcdir/configure'"
8013     elif test -f $ac_srcdir/configure.in; then
8014       ac_sub_configure=$ac_configure
8015     else
8016       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
8017 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8018       ac_sub_configure=
8019     fi
8020
8021     # The recursion is here.
8022     if test -n "$ac_sub_configure"; then
8023       # Make the cache file name correct relative to the subdirectory.
8024       case $cache_file in
8025       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8026       *) # Relative path.
8027         ac_sub_cache_file=$ac_top_builddir$cache_file ;;
8028       esac
8029
8030       { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
8031 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8032       # The eval makes quoting arguments work.
8033       eval $ac_sub_configure $ac_sub_configure_args \
8034            --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
8035         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
8036 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
8037    { (exit 1); exit 1; }; }
8038     fi
8039
8040     cd $ac_popdir
8041   done
8042 fi
8043