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