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