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