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