Add SSE4.2 support for strcspn, strpbrk, and strspn on x86-64.
[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.63 for GNU C Library (see version.h).
5 #
6 # Report bugs to <glibc>.
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86   as_unset=unset
87 else
88   as_unset=false
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order.  Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" ""        $as_nl"
98
99 # Find who we are.  Look in the path if we contain no directory separator.
100 case $0 in
101   *[\\/]* ) as_myself=$0 ;;
102   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105   IFS=$as_save_IFS
106   test -z "$as_dir" && as_dir=.
107   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111      ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116   as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120   { (exit 1); exit 1; }
121 fi
122
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139    test "X`expr 00001 : '.*\(...\)'`" = X001; then
140   as_expr=expr
141 else
142   as_expr=false
143 fi
144
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146   as_basename=basename
147 else
148   as_basename=false
149 fi
150
151
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155          X"$0" : 'X\(//\)$' \| \
156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158     sed '/^.*\/\([^/][^/]*\)\/*$/{
159             s//\1/
160             q
161           }
162           /^X\/\(\/\/\)$/{
163             s//\1/
164             q
165           }
166           /^X\/\(\/\).*/{
167             s//\1/
168             q
169           }
170           s/.*/./; q'`
171
172 # CDPATH.
173 $as_unset CDPATH
174
175
176 if test "x$CONFIG_SHELL" = x; then
177   if (eval ":") 2>/dev/null; then
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182
183   if test $as_have_required = yes &&     (eval ":
184 (as_func_return () {
185   (exit \$1)
186 }
187 as_func_success () {
188   as_func_return 0
189 }
190 as_func_failure () {
191   as_func_return 1
192 }
193 as_func_ret_success () {
194   return 0
195 }
196 as_func_ret_failure () {
197   return 1
198 }
199
200 exitcode=0
201 if as_func_success; then
202   :
203 else
204   exitcode=1
205   echo as_func_success failed.
206 fi
207
208 if as_func_failure; then
209   exitcode=1
210   echo as_func_failure succeeded.
211 fi
212
213 if as_func_ret_success; then
214   :
215 else
216   exitcode=1
217   echo as_func_ret_success failed.
218 fi
219
220 if as_func_ret_failure; then
221   exitcode=1
222   echo as_func_ret_failure succeeded.
223 fi
224
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226   :
227 else
228   exitcode=1
229   echo positional parameters were not saved.
230 fi
231
232 test \$exitcode = 0) || { (exit 1); exit 1; }
233
234 (
235   as_lineno_1=\$LINENO
236   as_lineno_2=\$LINENO
237   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
240   :
241 else
242   as_candidate_shells=
243     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 do
246   IFS=$as_save_IFS
247   test -z "$as_dir" && as_dir=.
248   case $as_dir in
249          /*)
250            for as_base in sh bash ksh sh5; do
251              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252            done;;
253        esac
254 done
255 IFS=$as_save_IFS
256
257
258       for as_shell in $as_candidate_shells $SHELL; do
259          # Try only shells that exist, to save several forks.
260          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261                 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 _ASEOF
279 }; then
280   CONFIG_SHELL=$as_shell
281                as_have_required=yes
282                if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284   emulate sh
285   NULLCMD=:
286   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287   # is contrary to our usage.  Disable this feature.
288   alias -g '${1+"$@"}'='"$@"'
289   setopt NO_GLOB_SUBST
290 else
291   case `(set -o) 2>/dev/null` in
292   *posix*) set -o posix ;;
293 esac
294
295 fi
296
297
298 :
299 (as_func_return () {
300   (exit $1)
301 }
302 as_func_success () {
303   as_func_return 0
304 }
305 as_func_failure () {
306   as_func_return 1
307 }
308 as_func_ret_success () {
309   return 0
310 }
311 as_func_ret_failure () {
312   return 1
313 }
314
315 exitcode=0
316 if as_func_success; then
317   :
318 else
319   exitcode=1
320   echo as_func_success failed.
321 fi
322
323 if as_func_failure; then
324   exitcode=1
325   echo as_func_failure succeeded.
326 fi
327
328 if as_func_ret_success; then
329   :
330 else
331   exitcode=1
332   echo as_func_ret_success failed.
333 fi
334
335 if as_func_ret_failure; then
336   exitcode=1
337   echo as_func_ret_failure succeeded.
338 fi
339
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
341   :
342 else
343   exitcode=1
344   echo positional parameters were not saved.
345 fi
346
347 test $exitcode = 0) || { (exit 1); exit 1; }
348
349 (
350   as_lineno_1=$LINENO
351   as_lineno_2=$LINENO
352   test "x$as_lineno_1" != "x$as_lineno_2" &&
353   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355 _ASEOF
356 }; then
357   break
358 fi
359
360 fi
361
362       done
363
364       if test "x$CONFIG_SHELL" != x; then
365   for as_var in BASH_ENV ENV
366         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367         done
368         export CONFIG_SHELL
369         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 fi
371
372
373     if test $as_have_required = no; then
374   echo This script requires a shell more modern than all the
375       echo shells that I found on your system.  Please install a
376       echo modern shell, or manually run the script under such a
377       echo shell if you do have one.
378       { (exit 1); exit 1; }
379 fi
380
381
382 fi
383
384 fi
385
386
387
388 (eval "as_func_return () {
389   (exit \$1)
390 }
391 as_func_success () {
392   as_func_return 0
393 }
394 as_func_failure () {
395   as_func_return 1
396 }
397 as_func_ret_success () {
398   return 0
399 }
400 as_func_ret_failure () {
401   return 1
402 }
403
404 exitcode=0
405 if as_func_success; then
406   :
407 else
408   exitcode=1
409   echo as_func_success failed.
410 fi
411
412 if as_func_failure; then
413   exitcode=1
414   echo as_func_failure succeeded.
415 fi
416
417 if as_func_ret_success; then
418   :
419 else
420   exitcode=1
421   echo as_func_ret_success failed.
422 fi
423
424 if as_func_ret_failure; then
425   exitcode=1
426   echo as_func_ret_failure succeeded.
427 fi
428
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430   :
431 else
432   exitcode=1
433   echo positional parameters were not saved.
434 fi
435
436 test \$exitcode = 0") || {
437   echo No shell found that supports shell functions.
438   echo Please tell bug-autoconf@gnu.org about your system,
439   echo including any error possibly output before this message.
440   echo This can help us improve future autoconf versions.
441   echo Configuration will now proceed without shell functions.
442 }
443
444
445
446   as_lineno_1=$LINENO
447   as_lineno_2=$LINENO
448   test "x$as_lineno_1" != "x$as_lineno_2" &&
449   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452   # uniformly replaced by the line number.  The first 'sed' inserts a
453   # line-number line after each line using $LINENO; the second 'sed'
454   # does the real work.  The second script uses 'N' to pair each
455   # line-number line with the line containing $LINENO, and appends
456   # trailing '-' during substitution so that $LINENO is not a special
457   # case at line end.
458   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459   # scripts with optimization help from Paolo Bonzini.  Blame Lee
460   # E. McMahon (1931-1989) for sed's syntax.  :-)
461   sed -n '
462     p
463     /[$]LINENO/=
464   ' <$as_myself |
465     sed '
466       s/[$]LINENO.*/&-/
467       t lineno
468       b
469       :lineno
470       N
471       :loop
472       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473       t loop
474       s/-\n.*//
475     ' >$as_me.lineno &&
476   chmod +x "$as_me.lineno" ||
477     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478    { (exit 1); exit 1; }; }
479
480   # Don't try to exec as it changes $[0], causing all sort of problems
481   # (the dirname of $[0] is not the place where we might find the
482   # original and so on.  Autoconf is especially sensitive to this).
483   . "./$as_me.lineno"
484   # Exit status is that of the last command.
485   exit
486 }
487
488
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490   as_dirname=dirname
491 else
492   as_dirname=false
493 fi
494
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498   case `echo 'x\c'` in
499   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
500   *)   ECHO_C='\c';;
501   esac;;
502 *)
503   ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
507   as_expr=expr
508 else
509   as_expr=false
510 fi
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514   rm -f conf$$.dir/conf$$.file
515 else
516   rm -f conf$$.dir
517   mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520   if ln -s conf$$.file conf$$ 2>/dev/null; then
521     as_ln_s='ln -s'
522     # ... but there are two gotchas:
523     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525     # In both cases, we have to default to `cp -p'.
526     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527       as_ln_s='cp -p'
528   elif ln conf$$.file conf$$ 2>/dev/null; then
529     as_ln_s=ln
530   else
531     as_ln_s='cp -p'
532   fi
533 else
534   as_ln_s='cp -p'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540   as_mkdir_p=:
541 else
542   test -d ./-p && rmdir ./-p
543   as_mkdir_p=false
544 fi
545
546 if test -x / >/dev/null 2>&1; then
547   as_test_x='test -x'
548 else
549   if ls -dL / >/dev/null 2>&1; then
550     as_ls_L_option=L
551   else
552     as_ls_L_option=
553   fi
554   as_test_x='
555     eval sh -c '\''
556       if test -d "$1"; then
557         test -d "$1/.";
558       else
559         case $1 in
560         -*)set "./$1";;
561         esac;
562         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563         ???[sx]*):;;*)false;;esac;fi
564     '\'' sh
565   '
566 fi
567 as_executable_p=$as_test_x
568
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577 exec 7<&0 </dev/null 6>&1
578
579 # Name of the host.
580 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
581 # so uname gets run too.
582 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
583
584 #
585 # Initializations.
586 #
587 ac_default_prefix=/usr/local
588 ac_clean_files=
589 ac_config_libobj_dir=.
590 LIBOBJS=
591 cross_compiling=no
592 subdirs=
593 MFLAGS=
594 MAKEFLAGS=
595 SHELL=${CONFIG_SHELL-/bin/sh}
596
597 # Identity of this package.
598 PACKAGE_NAME='GNU C Library'
599 PACKAGE_TARNAME='c-library'
600 PACKAGE_VERSION='(see version.h)'
601 PACKAGE_STRING='GNU C Library (see version.h)'
602 PACKAGE_BUGREPORT='glibc'
603
604 ac_unique_file="include/features.h"
605 enable_option_checking=no
606 # Factoring default headers for most tests.
607 ac_includes_default="\
608 #include <stdio.h>
609 #ifdef HAVE_SYS_TYPES_H
610 # include <sys/types.h>
611 #endif
612 #ifdef HAVE_SYS_STAT_H
613 # include <sys/stat.h>
614 #endif
615 #ifdef STDC_HEADERS
616 # include <stdlib.h>
617 # include <stddef.h>
618 #else
619 # ifdef HAVE_STDLIB_H
620 #  include <stdlib.h>
621 # endif
622 #endif
623 #ifdef HAVE_STRING_H
624 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #  include <memory.h>
626 # endif
627 # include <string.h>
628 #endif
629 #ifdef HAVE_STRINGS_H
630 # include <strings.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_UNISTD_H
639 # include <unistd.h>
640 #endif"
641
642 ac_subst_vars='LTLIBOBJS
643 LIBOBJS
644 RELEASE
645 VERSION
646 mach_interface_list
647 DEFINES
648 nopic_initfini
649 static_nss
650 bounded
651 omitfp
652 profile
653 libc_cv_pic_default
654 shared
655 static
656 xcoff
657 elf
658 ldd_rewrite_script
659 use_ldconfig
660 libc_cv_cc_sse4
661 libc_cv_cpp_asm_debuginfo
662 libc_cv_forced_unwind
663 libc_cv_rootsbindir
664 libc_cv_sysconfdir
665 libc_cv_localedir
666 libc_cv_slibdir
667 old_glibc_headers
668 uname_version
669 uname_release
670 uname_sysname
671 libc_cv_gcc_unwind_find_fde
672 sizeof_long_double
673 EGREP
674 GREP
675 have_selinux
676 have_libcap
677 have_libaudit
678 LIBGD
679 libc_cv_cc_submachine
680 exceptions
681 no_whole_archive
682 libc_cv_have_initfini
683 libc_cv_gnu89_inline
684 libc_cv_ssp
685 fno_unit_at_a_time
686 libc_cv_hashstyle
687 libc_cv_fpie
688 libc_cv_z_execstack
689 libc_cv_z_combreloc
690 ASFLAGS_config
691 libc_cv_as_needed
692 libc_cv_libgcc_s_suffix
693 libc_cv_Bgroup
694 libc_cv_cc_with_libunwind
695 VERSIONING
696 BISON
697 INSTALL_INFO
698 PERL
699 AWK
700 libc_cv_have_ksh
701 KSH
702 libc_cv_have_bash2
703 BASH_SHELL
704 libc_cv_gcc_static_libgcc
705 CXX_SYSINCLUDES
706 SYSINCLUDES
707 AUTOCONF
708 SED
709 MAKEINFO
710 MSGFMT
711 MAKE
712 PWD_P
713 LD
714 AS
715 MIG
716 RANLIB
717 OBJDUMP
718 AR
719 LN_S
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 sysdeps_add_ons
724 sysnames
725 submachine
726 base_machine
727 add_on_subdirs
728 add_ons
729 subdirs
730 libc_cv_nss_crypt
731 experimental_malloc
732 multi_arch
733 all_warnings
734 force_install
735 bindnow
736 oldest_abi
737 enable_check_abi
738 with_cvs
739 with_fp
740 ac_ct_CXX
741 CXXFLAGS
742 CXX
743 CPP
744 cross_compiling
745 BUILD_CC
746 OBJEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
751 CC
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 target_alias
761 host_alias
762 build_alias
763 LIBS
764 ECHO_T
765 ECHO_N
766 ECHO_C
767 DEFS
768 mandir
769 localedir
770 libdir
771 psdir
772 pdfdir
773 dvidir
774 htmldir
775 infodir
776 docdir
777 oldincludedir
778 includedir
779 localstatedir
780 sharedstatedir
781 sysconfdir
782 datadir
783 datarootdir
784 libexecdir
785 sbindir
786 bindir
787 program_transform_name
788 prefix
789 exec_prefix
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 with_gd
801 with_gd_include
802 with_gd_lib
803 with_fp
804 with_binutils
805 with_elf
806 with_selinux
807 with_xcoff
808 with_cvs
809 with_headers
810 enable_sanity_checks
811 enable_check_abi
812 enable_shared
813 enable_profile
814 enable_omitfp
815 enable_bounded
816 enable_versioning
817 enable_oldest_abi
818 enable_stackguard_randomization
819 enable_add_ons
820 with_tls
821 with___thread
822 enable_hidden_plt
823 enable_bind_now
824 enable_static_nss
825 enable_force_install
826 enable_kernel
827 enable_all_warnings
828 enable_multi_arch
829 enable_experimental_malloc
830 enable_nss_crypt
831 with_cpu
832 '
833       ac_precious_vars='build_alias
834 host_alias
835 target_alias
836 CC
837 CFLAGS
838 LDFLAGS
839 LIBS
840 CPPFLAGS
841 CPP
842 CXX
843 CXXFLAGS
844 CCC'
845 ac_subdirs_all=''
846
847 # Initialize some variables set by options.
848 ac_init_help=
849 ac_init_version=false
850 ac_unrecognized_opts=
851 ac_unrecognized_sep=
852 # The variables have the same names as the options, with
853 # dashes changed to underlines.
854 cache_file=/dev/null
855 exec_prefix=NONE
856 no_create=
857 no_recursion=
858 prefix=NONE
859 program_prefix=NONE
860 program_suffix=NONE
861 program_transform_name=s,x,x,
862 silent=
863 site=
864 srcdir=
865 verbose=
866 x_includes=NONE
867 x_libraries=NONE
868
869 # Installation directory options.
870 # These are left unexpanded so users can "make install exec_prefix=/foo"
871 # and all the variables that are supposed to be based on exec_prefix
872 # by default will actually change.
873 # Use braces instead of parens because sh, perl, etc. also accept them.
874 # (The list follows the same order as the GNU Coding Standards.)
875 bindir='${exec_prefix}/bin'
876 sbindir='${exec_prefix}/sbin'
877 libexecdir='${exec_prefix}/libexec'
878 datarootdir='${prefix}/share'
879 datadir='${datarootdir}'
880 sysconfdir='${prefix}/etc'
881 sharedstatedir='${prefix}/com'
882 localstatedir='${prefix}/var'
883 includedir='${prefix}/include'
884 oldincludedir='/usr/include'
885 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
886 infodir='${datarootdir}/info'
887 htmldir='${docdir}'
888 dvidir='${docdir}'
889 pdfdir='${docdir}'
890 psdir='${docdir}'
891 libdir='${exec_prefix}/lib'
892 localedir='${datarootdir}/locale'
893 mandir='${datarootdir}/man'
894
895 ac_prev=
896 ac_dashdash=
897 for ac_option
898 do
899   # If the previous option needs an argument, assign it.
900   if test -n "$ac_prev"; then
901     eval $ac_prev=\$ac_option
902     ac_prev=
903     continue
904   fi
905
906   case $ac_option in
907   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908   *)    ac_optarg=yes ;;
909   esac
910
911   # Accept the important Cygnus configure options, so we can diagnose typos.
912
913   case $ac_dashdash$ac_option in
914   --)
915     ac_dashdash=yes ;;
916
917   -bindir | --bindir | --bindi | --bind | --bin | --bi)
918     ac_prev=bindir ;;
919   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
920     bindir=$ac_optarg ;;
921
922   -build | --build | --buil | --bui | --bu)
923     ac_prev=build_alias ;;
924   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
925     build_alias=$ac_optarg ;;
926
927   -cache-file | --cache-file | --cache-fil | --cache-fi \
928   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929     ac_prev=cache_file ;;
930   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
932     cache_file=$ac_optarg ;;
933
934   --config-cache | -C)
935     cache_file=config.cache ;;
936
937   -datadir | --datadir | --datadi | --datad)
938     ac_prev=datadir ;;
939   -datadir=* | --datadir=* | --datadi=* | --datad=*)
940     datadir=$ac_optarg ;;
941
942   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943   | --dataroo | --dataro | --datar)
944     ac_prev=datarootdir ;;
945   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947     datarootdir=$ac_optarg ;;
948
949   -disable-* | --disable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
954    { (exit 1); exit 1; }; }
955     ac_useropt_orig=$ac_useropt
956     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
957     case $ac_user_opts in
958       *"
959 "enable_$ac_useropt"
960 "*) ;;
961       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
962          ac_unrecognized_sep=', ';;
963     esac
964     eval enable_$ac_useropt=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
981    { (exit 1); exit 1; }; }
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=\$ac_optarg ;;
992
993   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995   | --exec | --exe | --ex)
996     ac_prev=exec_prefix ;;
997   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999   | --exec=* | --exe=* | --ex=*)
1000     exec_prefix=$ac_optarg ;;
1001
1002   -gas | --gas | --ga | --g)
1003     # Obsolete; use --with-gas.
1004     with_gas=yes ;;
1005
1006   -help | --help | --hel | --he | -h)
1007     ac_init_help=long ;;
1008   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009     ac_init_help=recursive ;;
1010   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011     ac_init_help=short ;;
1012
1013   -host | --host | --hos | --ho)
1014     ac_prev=host_alias ;;
1015   -host=* | --host=* | --hos=* | --ho=*)
1016     host_alias=$ac_optarg ;;
1017
1018   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019     ac_prev=htmldir ;;
1020   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021   | --ht=*)
1022     htmldir=$ac_optarg ;;
1023
1024   -includedir | --includedir | --includedi | --included | --include \
1025   | --includ | --inclu | --incl | --inc)
1026     ac_prev=includedir ;;
1027   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028   | --includ=* | --inclu=* | --incl=* | --inc=*)
1029     includedir=$ac_optarg ;;
1030
1031   -infodir | --infodir | --infodi | --infod | --info | --inf)
1032     ac_prev=infodir ;;
1033   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1034     infodir=$ac_optarg ;;
1035
1036   -libdir | --libdir | --libdi | --libd)
1037     ac_prev=libdir ;;
1038   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1039     libdir=$ac_optarg ;;
1040
1041   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042   | --libexe | --libex | --libe)
1043     ac_prev=libexecdir ;;
1044   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045   | --libexe=* | --libex=* | --libe=*)
1046     libexecdir=$ac_optarg ;;
1047
1048   -localedir | --localedir | --localedi | --localed | --locale)
1049     ac_prev=localedir ;;
1050   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051     localedir=$ac_optarg ;;
1052
1053   -localstatedir | --localstatedir | --localstatedi | --localstated \
1054   | --localstate | --localstat | --localsta | --localst | --locals)
1055     ac_prev=localstatedir ;;
1056   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1057   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1058     localstatedir=$ac_optarg ;;
1059
1060   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061     ac_prev=mandir ;;
1062   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1063     mandir=$ac_optarg ;;
1064
1065   -nfp | --nfp | --nf)
1066     # Obsolete; use --without-fp.
1067     with_fp=no ;;
1068
1069   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1070   | --no-cr | --no-c | -n)
1071     no_create=yes ;;
1072
1073   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075     no_recursion=yes ;;
1076
1077   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079   | --oldin | --oldi | --old | --ol | --o)
1080     ac_prev=oldincludedir ;;
1081   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1084     oldincludedir=$ac_optarg ;;
1085
1086   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087     ac_prev=prefix ;;
1088   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1089     prefix=$ac_optarg ;;
1090
1091   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092   | --program-pre | --program-pr | --program-p)
1093     ac_prev=program_prefix ;;
1094   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1096     program_prefix=$ac_optarg ;;
1097
1098   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099   | --program-suf | --program-su | --program-s)
1100     ac_prev=program_suffix ;;
1101   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1103     program_suffix=$ac_optarg ;;
1104
1105   -program-transform-name | --program-transform-name \
1106   | --program-transform-nam | --program-transform-na \
1107   | --program-transform-n | --program-transform- \
1108   | --program-transform | --program-transfor \
1109   | --program-transfo | --program-transf \
1110   | --program-trans | --program-tran \
1111   | --progr-tra | --program-tr | --program-t)
1112     ac_prev=program_transform_name ;;
1113   -program-transform-name=* | --program-transform-name=* \
1114   | --program-transform-nam=* | --program-transform-na=* \
1115   | --program-transform-n=* | --program-transform-=* \
1116   | --program-transform=* | --program-transfor=* \
1117   | --program-transfo=* | --program-transf=* \
1118   | --program-trans=* | --program-tran=* \
1119   | --progr-tra=* | --program-tr=* | --program-t=*)
1120     program_transform_name=$ac_optarg ;;
1121
1122   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123     ac_prev=pdfdir ;;
1124   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125     pdfdir=$ac_optarg ;;
1126
1127   -psdir | --psdir | --psdi | --psd | --ps)
1128     ac_prev=psdir ;;
1129   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130     psdir=$ac_optarg ;;
1131
1132   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133   | -silent | --silent | --silen | --sile | --sil)
1134     silent=yes ;;
1135
1136   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137     ac_prev=sbindir ;;
1138   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139   | --sbi=* | --sb=*)
1140     sbindir=$ac_optarg ;;
1141
1142   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144   | --sharedst | --shareds | --shared | --share | --shar \
1145   | --sha | --sh)
1146     ac_prev=sharedstatedir ;;
1147   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150   | --sha=* | --sh=*)
1151     sharedstatedir=$ac_optarg ;;
1152
1153   -site | --site | --sit)
1154     ac_prev=site ;;
1155   -site=* | --site=* | --sit=*)
1156     site=$ac_optarg ;;
1157
1158   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159     ac_prev=srcdir ;;
1160   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1161     srcdir=$ac_optarg ;;
1162
1163   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164   | --syscon | --sysco | --sysc | --sys | --sy)
1165     ac_prev=sysconfdir ;;
1166   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1168     sysconfdir=$ac_optarg ;;
1169
1170   -target | --target | --targe | --targ | --tar | --ta | --t)
1171     ac_prev=target_alias ;;
1172   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1173     target_alias=$ac_optarg ;;
1174
1175   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176     verbose=yes ;;
1177
1178   -version | --version | --versio | --versi | --vers | -V)
1179     ac_init_version=: ;;
1180
1181   -with-* | --with-*)
1182     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1183     # Reject names that are not valid shell variable names.
1184     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1186    { (exit 1); exit 1; }; }
1187     ac_useropt_orig=$ac_useropt
1188     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189     case $ac_user_opts in
1190       *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1194          ac_unrecognized_sep=', ';;
1195     esac
1196     eval with_$ac_useropt=\$ac_optarg ;;
1197
1198   -without-* | --without-*)
1199     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1200     # Reject names that are not valid shell variable names.
1201     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203    { (exit 1); exit 1; }; }
1204     ac_useropt_orig=$ac_useropt
1205     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206     case $ac_user_opts in
1207       *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211          ac_unrecognized_sep=', ';;
1212     esac
1213     eval with_$ac_useropt=no ;;
1214
1215   --x)
1216     # Obsolete; use --with-x.
1217     with_x=yes ;;
1218
1219   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220   | --x-incl | --x-inc | --x-in | --x-i)
1221     ac_prev=x_includes ;;
1222   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224     x_includes=$ac_optarg ;;
1225
1226   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228     ac_prev=x_libraries ;;
1229   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231     x_libraries=$ac_optarg ;;
1232
1233   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235    { (exit 1); exit 1; }; }
1236     ;;
1237
1238   *=*)
1239     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243    { (exit 1); exit 1; }; }
1244     eval $ac_envvar=\$ac_optarg
1245     export $ac_envvar ;;
1246
1247   *)
1248     # FIXME: should be removed in autoconf 3.0.
1249     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253     ;;
1254
1255   esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1261    { (exit 1); exit 1; }; }
1262 fi
1263
1264 if test -n "$ac_unrecognized_opts"; then
1265   case $enable_option_checking in
1266     no) ;;
1267     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1268    { (exit 1); exit 1; }; } ;;
1269     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270   esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275                 datadir sysconfdir sharedstatedir localstatedir includedir \
1276                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277                 libdir localedir mandir
1278 do
1279   eval ac_val=\$$ac_var
1280   # Remove trailing slashes.
1281   case $ac_val in
1282     */ )
1283       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284       eval $ac_var=\$ac_val;;
1285   esac
1286   # Be sure to have absolute directory names.
1287   case $ac_val in
1288     [\\/$]* | ?:[\\/]* )  continue;;
1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290   esac
1291   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1292    { (exit 1); exit 1; }; }
1293 done
1294
1295 # There might be people who depend on the old broken behavior: `$host'
1296 # used to hold the argument of --host etc.
1297 # FIXME: To remove some day.
1298 build=$build_alias
1299 host=$host_alias
1300 target=$target_alias
1301
1302 # FIXME: To remove some day.
1303 if test "x$host_alias" != x; then
1304   if test "x$build_alias" = x; then
1305     cross_compiling=maybe
1306     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1307     If a cross compiler is detected then cross compile mode will be used." >&2
1308   elif test "x$build_alias" != "x$host_alias"; then
1309     cross_compiling=yes
1310   fi
1311 fi
1312
1313 ac_tool_prefix=
1314 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1315
1316 test "$silent" = yes && exec 6>/dev/null
1317
1318
1319 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1320 ac_ls_di=`ls -di .` &&
1321 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1322   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1323    { (exit 1); exit 1; }; }
1324 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1325   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1326    { (exit 1); exit 1; }; }
1327
1328
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331   ac_srcdir_defaulted=yes
1332   # Try the directory containing this script, then the parent directory.
1333   ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335          X"$as_myself" : 'X\(//\)[^/]' \| \
1336          X"$as_myself" : 'X\(//\)$' \| \
1337          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\/\)[^/].*/{
1344             s//\1/
1345             q
1346           }
1347           /^X\(\/\/\)$/{
1348             s//\1/
1349             q
1350           }
1351           /^X\(\/\).*/{
1352             s//\1/
1353             q
1354           }
1355           s/.*/./; q'`
1356   srcdir=$ac_confdir
1357   if test ! -r "$srcdir/$ac_unique_file"; then
1358     srcdir=..
1359   fi
1360 else
1361   ac_srcdir_defaulted=no
1362 fi
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1366    { (exit 1); exit 1; }; }
1367 fi
1368 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1369 ac_abs_confdir=`(
1370         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1371    { (exit 1); exit 1; }; }
1372         pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375   srcdir=.
1376 fi
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385   eval ac_env_${ac_var}_value=\$${ac_var}
1386   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1389
1390 #
1391 # Report the --help message.
1392 #
1393 if test "$ac_init_help" = "long"; then
1394   # Omit some internal or obsolete options to make the list less imposing.
1395   # This message is too long to be a string in the A/UX 3.1 sh.
1396   cat <<_ACEOF
1397 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1398
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE.  See below for descriptions of some of the useful variables.
1403
1404 Defaults for the options are specified in brackets.
1405
1406 Configuration:
1407   -h, --help              display this help and exit
1408       --help=short        display options specific to this package
1409       --help=recursive    display the short help of all the included packages
1410   -V, --version           display version information and exit
1411   -q, --quiet, --silent   do not print \`checking...' messages
1412       --cache-file=FILE   cache test results in FILE [disabled]
1413   -C, --config-cache      alias for \`--cache-file=config.cache'
1414   -n, --no-create         do not create output files
1415       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1416
1417 Installation directories:
1418   --prefix=PREFIX         install architecture-independent files in PREFIX
1419                           [$ac_default_prefix]
1420   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1421                           [PREFIX]
1422
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1427
1428 For better control, use the options below.
1429
1430 Fine tuning of the installation directories:
1431   --bindir=DIR            user executables [EPREFIX/bin]
1432   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1433   --libexecdir=DIR        program executables [EPREFIX/libexec]
1434   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1435   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1436   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1437   --libdir=DIR            object code libraries [EPREFIX/lib]
1438   --includedir=DIR        C header files [PREFIX/include]
1439   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1440   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1441   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1442   --infodir=DIR           info documentation [DATAROOTDIR/info]
1443   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1444   --mandir=DIR            man documentation [DATAROOTDIR/man]
1445   --docdir=DIR            documentation root [DATAROOTDIR/doc/c-library]
1446   --htmldir=DIR           html documentation [DOCDIR]
1447   --dvidir=DIR            dvi documentation [DOCDIR]
1448   --pdfdir=DIR            pdf documentation [DOCDIR]
1449   --psdir=DIR             ps documentation [DOCDIR]
1450 _ACEOF
1451
1452   cat <<\_ACEOF
1453
1454 System types:
1455   --build=BUILD     configure for building on BUILD [guessed]
1456   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1457 _ACEOF
1458 fi
1459
1460 if test -n "$ac_init_help"; then
1461   case $ac_init_help in
1462      short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1463    esac
1464   cat <<\_ACEOF
1465
1466 Optional Features:
1467   --disable-option-checking  ignore unrecognized --enable/--with options
1468   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470   --disable-sanity-checks really do not use threads (should not be used except
1471                           in special situations) [default=yes]
1472   --enable-check-abi      do "make check-abi" in "make check" (no/warn/yes)
1473                           [default=no]
1474   --enable-shared         build shared library [default=yes if GNU ld & ELF]
1475   --enable-profile        build profiled library [default=no]
1476   --enable-omitfp         build undebuggable optimized library [default=no]
1477   --enable-bounded        build with runtime bounds checking [default=no]
1478   --disable-versioning    do not include versioning information in the library
1479                           objects [default=yes if supported]
1480   --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1481                           [default=glibc default]
1482   --enable-stackguard-randomization
1483                           initialize __stack_chk_guard canary with a random
1484                           number at program start
1485   --enable-add-ons[=DIRS...]
1486                           configure and build add-ons in DIR1,DIR2,... search
1487                           for add-ons if no parameter given
1488   --disable-hidden-plt    do not hide internal function calls to avoid PLT
1489   --enable-bind-now       disable lazy relocations in DSOs
1490   --enable-static-nss     build static NSS modules [default=no]
1491   --disable-force-install don't force installation of files from this package,
1492                           even if they are older than the installed files
1493   --enable-kernel=VERSION compile for compatibility with kernel not older than
1494                           VERSION
1495   --enable-all-warnings   enable all useful warnings gcc can issue
1496   --enable-multi-arch     enable single DSO with optimizations for multiple
1497                           architectures
1498   --enable-experimental-malloc
1499                           enable experimental malloc features
1500   --enable-nss-crypt      enable libcrypt to use nss
1501
1502 Optional Packages:
1503   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1504   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1505   --with-gd=DIR           find libgd include dir and library with prefix DIR
1506   --with-gd-include=DIR   find libgd include files in DIR
1507   --with-gd-lib=DIR       find libgd library files in DIR
1508   --with-fp               if using floating-point hardware [default=yes]
1509   --with-binutils=PATH    specify location of binutils (as and ld)
1510   --with-elf              if using the ELF object format
1511   --with-selinux          if building with SELinux support
1512   --with-xcoff            if using the XCOFF object format
1513   --without-cvs           if CVS should not be used
1514   --with-headers=PATH     location of system headers to use (for example
1515                           /usr/src/linux/include) [default=compiler default]
1516   --with-tls              enable support for TLS
1517   --without-__thread      do not use TLS features even when supporting them
1518   --with-cpu=CPU          select code for CPU variant
1519
1520 Some influential environment variables:
1521   CC          C compiler command
1522   CFLAGS      C compiler flags
1523   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1524               nonstandard directory <lib dir>
1525   LIBS        libraries to pass to the linker, e.g. -l<library>
1526   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1527               you have headers in a nonstandard directory <include dir>
1528   CPP         C preprocessor
1529   CXX         C++ compiler command
1530   CXXFLAGS    C++ compiler flags
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to <glibc>.
1536 _ACEOF
1537 ac_status=$?
1538 fi
1539
1540 if test "$ac_init_help" = "recursive"; then
1541   # If there are subdirs, report their specific --help.
1542   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1543     test -d "$ac_dir" ||
1544       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1545       continue
1546     ac_builddir=.
1547
1548 case "$ac_dir" in
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *)
1551   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1552   # A ".." for each directory in $ac_dir_suffix.
1553   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1554   case $ac_top_builddir_sub in
1555   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557   esac ;;
1558 esac
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1563
1564 case $srcdir in
1565   .)  # We are building in place.
1566     ac_srcdir=.
1567     ac_top_srcdir=$ac_top_builddir_sub
1568     ac_abs_top_srcdir=$ac_pwd ;;
1569   [\\/]* | ?:[\\/]* )  # Absolute name.
1570     ac_srcdir=$srcdir$ac_dir_suffix;
1571     ac_top_srcdir=$srcdir
1572     ac_abs_top_srcdir=$srcdir ;;
1573   *) # Relative name.
1574     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575     ac_top_srcdir=$ac_top_build_prefix$srcdir
1576     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1577 esac
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1579
1580     cd "$ac_dir" || { ac_status=$?; continue; }
1581     # Check for guested configure.
1582     if test -f "$ac_srcdir/configure.gnu"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585     elif test -f "$ac_srcdir/configure"; then
1586       echo &&
1587       $SHELL "$ac_srcdir/configure" --help=recursive
1588     else
1589       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1590     fi || ac_status=$?
1591     cd "$ac_pwd" || { ac_status=$?; break; }
1592   done
1593 fi
1594
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1597   cat <<\_ACEOF
1598 GNU C Library configure (see version.h)
1599 generated by GNU Autoconf 2.63
1600
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608 cat >config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1611
1612 It was created by GNU C Library $as_me (see version.h), which was
1613 generated by GNU Autoconf 2.63.  Invocation command line was
1614
1615   $ $0 $@
1616
1617 _ACEOF
1618 exec 5>>config.log
1619 {
1620 cat <<_ASUNAME
1621 ## --------- ##
1622 ## Platform. ##
1623 ## --------- ##
1624
1625 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1630
1631 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1633
1634 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1635 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1636 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1638 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1639 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1640 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1641
1642 _ASUNAME
1643
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647   IFS=$as_save_IFS
1648   test -z "$as_dir" && as_dir=.
1649   $as_echo "PATH: $as_dir"
1650 done
1651 IFS=$as_save_IFS
1652
1653 } >&5
1654
1655 cat >&5 <<_ACEOF
1656
1657
1658 ## ----------- ##
1659 ## Core tests. ##
1660 ## ----------- ##
1661
1662 _ACEOF
1663
1664
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1670 ac_configure_args=
1671 ac_configure_args0=
1672 ac_configure_args1=
1673 ac_must_keep_next=false
1674 for ac_pass in 1 2
1675 do
1676   for ac_arg
1677   do
1678     case $ac_arg in
1679     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681     | -silent | --silent | --silen | --sile | --sil)
1682       continue ;;
1683     *\'*)
1684       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1685     esac
1686     case $ac_pass in
1687     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1688     2)
1689       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690       if test $ac_must_keep_next = true; then
1691         ac_must_keep_next=false # Got value, back to normal.
1692       else
1693         case $ac_arg in
1694           *=* | --config-cache | -C | -disable-* | --disable-* \
1695           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697           | -with-* | --with-* | -without-* | --without-* | --x)
1698             case "$ac_configure_args0 " in
1699               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700             esac
1701             ;;
1702           -* ) ac_must_keep_next=true ;;
1703         esac
1704       fi
1705       ac_configure_args="$ac_configure_args '$ac_arg'"
1706       ;;
1707     esac
1708   done
1709 done
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1712
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log.  We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719   # Save into config.log some information that might help in debugging.
1720   {
1721     echo
1722
1723     cat <<\_ASBOX
1724 ## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##
1727 _ASBOX
1728     echo
1729     # The following way of writing the cache mishandles newlines in values,
1730 (
1731   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732     eval ac_val=\$$ac_var
1733     case $ac_val in #(
1734     *${as_nl}*)
1735       case $ac_var in #(
1736       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738       esac
1739       case $ac_var in #(
1740       _ | IFS | as_nl) ;; #(
1741       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1742       *) $as_unset $ac_var ;;
1743       esac ;;
1744     esac
1745   done
1746   (set) 2>&1 |
1747     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1748     *${as_nl}ac_space=\ *)
1749       sed -n \
1750         "s/'\''/'\''\\\\'\'''\''/g;
1751           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752       ;; #(
1753     *)
1754       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755       ;;
1756     esac |
1757     sort
1758 )
1759     echo
1760
1761     cat <<\_ASBOX
1762 ## ----------------- ##
1763 ## Output variables. ##
1764 ## ----------------- ##
1765 _ASBOX
1766     echo
1767     for ac_var in $ac_subst_vars
1768     do
1769       eval ac_val=\$$ac_var
1770       case $ac_val in
1771       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772       esac
1773       $as_echo "$ac_var='\''$ac_val'\''"
1774     done | sort
1775     echo
1776
1777     if test -n "$ac_subst_files"; then
1778       cat <<\_ASBOX
1779 ## ------------------- ##
1780 ## File substitutions. ##
1781 ## ------------------- ##
1782 _ASBOX
1783       echo
1784       for ac_var in $ac_subst_files
1785       do
1786         eval ac_val=\$$ac_var
1787         case $ac_val in
1788         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789         esac
1790         $as_echo "$ac_var='\''$ac_val'\''"
1791       done | sort
1792       echo
1793     fi
1794
1795     if test -s confdefs.h; then
1796       cat <<\_ASBOX
1797 ## ----------- ##
1798 ## confdefs.h. ##
1799 ## ----------- ##
1800 _ASBOX
1801       echo
1802       cat confdefs.h
1803       echo
1804     fi
1805     test "$ac_signal" != 0 &&
1806       $as_echo "$as_me: caught signal $ac_signal"
1807     $as_echo "$as_me: exit $exit_status"
1808   } >&5
1809   rm -f core *.core core.conftest.* &&
1810     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811     exit $exit_status
1812 ' 0
1813 for ac_signal in 1 2 13 15; do
1814   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1815 done
1816 ac_signal=0
1817
1818 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1819 rm -f -r conftest* confdefs.h
1820
1821 # Predefined preprocessor variables.
1822
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_NAME "$PACKAGE_NAME"
1825 _ACEOF
1826
1827
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1830 _ACEOF
1831
1832
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1835 _ACEOF
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_STRING "$PACKAGE_STRING"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1845 _ACEOF
1846
1847
1848 # Let the site file select an alternate cache file if it wants to.
1849 # Prefer an explicitly selected file to automatically selected ones.
1850 ac_site_file1=NONE
1851 ac_site_file2=NONE
1852 if test -n "$CONFIG_SITE"; then
1853   ac_site_file1=$CONFIG_SITE
1854 elif test "x$prefix" != xNONE; then
1855   ac_site_file1=$prefix/share/config.site
1856   ac_site_file2=$prefix/etc/config.site
1857 else
1858   ac_site_file1=$ac_default_prefix/share/config.site
1859   ac_site_file2=$ac_default_prefix/etc/config.site
1860 fi
1861 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1862 do
1863   test "x$ac_site_file" = xNONE && continue
1864   if test -r "$ac_site_file"; then
1865     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1866 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1867     sed 's/^/| /' "$ac_site_file" >&5
1868     . "$ac_site_file"
1869   fi
1870 done
1871
1872 if test -r "$cache_file"; then
1873   # Some versions of bash will fail to source /dev/null (special
1874   # files actually), so we avoid doing that.
1875   if test -f "$cache_file"; then
1876     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1877 $as_echo "$as_me: loading cache $cache_file" >&6;}
1878     case $cache_file in
1879       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1880       *)                      . "./$cache_file";;
1881     esac
1882   fi
1883 else
1884   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1885 $as_echo "$as_me: creating cache $cache_file" >&6;}
1886   >$cache_file
1887 fi
1888
1889 # Check that the precious variables saved in the cache have kept the same
1890 # value.
1891 ac_cache_corrupted=false
1892 for ac_var in $ac_precious_vars; do
1893   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1894   eval ac_new_set=\$ac_env_${ac_var}_set
1895   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1896   eval ac_new_val=\$ac_env_${ac_var}_value
1897   case $ac_old_set,$ac_new_set in
1898     set,)
1899       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1900 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1901       ac_cache_corrupted=: ;;
1902     ,set)
1903       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1904 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1905       ac_cache_corrupted=: ;;
1906     ,);;
1907     *)
1908       if test "x$ac_old_val" != "x$ac_new_val"; then
1909         # differences in whitespace do not lead to failure.
1910         ac_old_val_w=`echo x $ac_old_val`
1911         ac_new_val_w=`echo x $ac_new_val`
1912         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1913           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1914 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1915           ac_cache_corrupted=:
1916         else
1917           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1918 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1919           eval $ac_var=\$ac_old_val
1920         fi
1921         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1922 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1923         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1924 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1925       fi;;
1926   esac
1927   # Pass precious variables to config.status.
1928   if test "$ac_new_set" = set; then
1929     case $ac_new_val in
1930     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1931     *) ac_arg=$ac_var=$ac_new_val ;;
1932     esac
1933     case " $ac_configure_args " in
1934       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1935       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1936     esac
1937   fi
1938 done
1939 if $ac_cache_corrupted; then
1940   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1942   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1943 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1944   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1945 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980
1981 ac_config_headers="$ac_config_headers config.h"
1982
1983 ac_aux_dir=
1984 for ac_dir in scripts "$srcdir"/scripts; do
1985   if test -f "$ac_dir/install-sh"; then
1986     ac_aux_dir=$ac_dir
1987     ac_install_sh="$ac_aux_dir/install-sh -c"
1988     break
1989   elif test -f "$ac_dir/install.sh"; then
1990     ac_aux_dir=$ac_dir
1991     ac_install_sh="$ac_aux_dir/install.sh -c"
1992     break
1993   elif test -f "$ac_dir/shtool"; then
1994     ac_aux_dir=$ac_dir
1995     ac_install_sh="$ac_aux_dir/shtool install -c"
1996     break
1997   fi
1998 done
1999 if test -z "$ac_aux_dir"; then
2000   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&5
2001 $as_echo "$as_me: error: cannot find install-sh or install.sh in scripts \"$srcdir\"/scripts" >&2;}
2002    { (exit 1); exit 1; }; }
2003 fi
2004
2005 # These three variables are undocumented and unsupported,
2006 # and are intended to be withdrawn in a future Autoconf release.
2007 # They can cause serious problems if a builder's source tree is in a directory
2008 # whose full name contains unusual characters.
2009 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2010 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2011 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2012
2013
2014
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019    { (exit 1); exit 1; }; }
2020
2021 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2022 $as_echo_n "checking build system type... " >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024   $as_echo_n "(cached) " >&6
2025 else
2026   ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032    { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036    { (exit 1); exit 1; }; }
2037
2038 fi
2039 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 $as_echo "$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2042 *-*-*) ;;
2043 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2045    { (exit 1); exit 1; }; };;
2046 esac
2047 build=$ac_cv_build
2048 ac_save_IFS=$IFS; IFS='-'
2049 set x $ac_cv_build
2050 shift
2051 build_cpu=$1
2052 build_vendor=$2
2053 shift; shift
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2056 build_os=$*
2057 IFS=$ac_save_IFS
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2059
2060
2061 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2062 $as_echo_n "checking host system type... " >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064   $as_echo_n "(cached) " >&6
2065 else
2066   if test "x$host_alias" = x; then
2067   ac_cv_host=$ac_cv_build
2068 else
2069   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072    { (exit 1); exit 1; }; }
2073 fi
2074
2075 fi
2076 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 $as_echo "$ac_cv_host" >&6; }
2078 case $ac_cv_host in
2079 *-*-*) ;;
2080 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2082    { (exit 1); exit 1; }; };;
2083 esac
2084 host=$ac_cv_host
2085 ac_save_IFS=$IFS; IFS='-'
2086 set x $ac_cv_host
2087 shift
2088 host_cpu=$1
2089 host_vendor=$2
2090 shift; shift
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2093 host_os=$*
2094 IFS=$ac_save_IFS
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2096
2097
2098
2099 ac_ext=c
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 if test -n "$ac_tool_prefix"; then
2105   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2107 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 $as_echo_n "checking for $ac_word... " >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110   $as_echo_n "(cached) " >&6
2111 else
2112   if test -n "$CC"; then
2113   ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2122     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2123     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128 IFS=$as_save_IFS
2129
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2135 $as_echo "$CC" >&6; }
2136 else
2137   { $as_echo "$as_me:$LINENO: result: no" >&5
2138 $as_echo "no" >&6; }
2139 fi
2140
2141
2142 fi
2143 if test -z "$ac_cv_prog_CC"; then
2144   ac_ct_CC=$CC
2145   # Extract the first word of "gcc", so it can be a program name with args.
2146 set dummy gcc; ac_word=$2
2147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 $as_echo_n "checking for $ac_word... " >&6; }
2149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2150   $as_echo_n "(cached) " >&6
2151 else
2152   if test -n "$ac_ct_CC"; then
2153   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162     ac_cv_prog_ac_ct_CC="gcc"
2163     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168 IFS=$as_save_IFS
2169
2170 fi
2171 fi
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 $as_echo "$ac_ct_CC" >&6; }
2176 else
2177   { $as_echo "$as_me:$LINENO: result: no" >&5
2178 $as_echo "no" >&6; }
2179 fi
2180
2181   if test "x$ac_ct_CC" = x; then
2182     CC=""
2183   else
2184     case $cross_compiling:$ac_tool_warned in
2185 yes:)
2186 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2188 ac_tool_warned=yes ;;
2189 esac
2190     CC=$ac_ct_CC
2191   fi
2192 else
2193   CC="$ac_cv_prog_CC"
2194 fi
2195
2196 if test -z "$CC"; then
2197           if test -n "$ac_tool_prefix"; then
2198     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}cc; ac_word=$2
2200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 $as_echo_n "checking for $ac_word... " >&6; }
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203   $as_echo_n "(cached) " >&6
2204 else
2205   if test -n "$CC"; then
2206   ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213   for ac_exec_ext in '' $ac_executable_extensions; do
2214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2215     ac_cv_prog_CC="${ac_tool_prefix}cc"
2216     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217     break 2
2218   fi
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2228 $as_echo "$CC" >&6; }
2229 else
2230   { $as_echo "$as_me:$LINENO: result: no" >&5
2231 $as_echo "no" >&6; }
2232 fi
2233
2234
2235   fi
2236 fi
2237 if test -z "$CC"; then
2238   # Extract the first word of "cc", so it can be a program name with args.
2239 set dummy cc; ac_word=$2
2240 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 $as_echo_n "checking for $ac_word... " >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243   $as_echo_n "(cached) " >&6
2244 else
2245   if test -n "$CC"; then
2246   ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248   ac_prog_rejected=no
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252   IFS=$as_save_IFS
2253   test -z "$as_dir" && as_dir=.
2254   for ac_exec_ext in '' $ac_executable_extensions; do
2255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2257        ac_prog_rejected=yes
2258        continue
2259      fi
2260     ac_cv_prog_CC="cc"
2261     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 if test $ac_prog_rejected = yes; then
2269   # We found a bogon in the path, so make sure we never use it.
2270   set dummy $ac_cv_prog_CC
2271   shift
2272   if test $# != 0; then
2273     # We chose a different compiler from the bogus one.
2274     # However, it has the same basename, so the bogon will be chosen
2275     # first if we set CC to just the basename; use the full file name.
2276     shift
2277     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2278   fi
2279 fi
2280 fi
2281 fi
2282 CC=$ac_cv_prog_CC
2283 if test -n "$CC"; then
2284   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2285 $as_echo "$CC" >&6; }
2286 else
2287   { $as_echo "$as_me:$LINENO: result: no" >&5
2288 $as_echo "no" >&6; }
2289 fi
2290
2291
2292 fi
2293 if test -z "$CC"; then
2294   if test -n "$ac_tool_prefix"; then
2295   for ac_prog in cl.exe
2296   do
2297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 $as_echo_n "checking for $ac_word... " >&6; }
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302   $as_echo_n "(cached) " >&6
2303 else
2304   if test -n "$CC"; then
2305   ac_cv_prog_CC="$CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310   IFS=$as_save_IFS
2311   test -z "$as_dir" && as_dir=.
2312   for ac_exec_ext in '' $ac_executable_extensions; do
2313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2315     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316     break 2
2317   fi
2318 done
2319 done
2320 IFS=$as_save_IFS
2321
2322 fi
2323 fi
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2327 $as_echo "$CC" >&6; }
2328 else
2329   { $as_echo "$as_me:$LINENO: result: no" >&5
2330 $as_echo "no" >&6; }
2331 fi
2332
2333
2334     test -n "$CC" && break
2335   done
2336 fi
2337 if test -z "$CC"; then
2338   ac_ct_CC=$CC
2339   for ac_prog in cl.exe
2340 do
2341   # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 $as_echo_n "checking for $ac_word... " >&6; }
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2346   $as_echo_n "(cached) " >&6
2347 else
2348   if test -n "$ac_ct_CC"; then
2349   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_ac_ct_CC="$ac_prog"
2359     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2369 if test -n "$ac_ct_CC"; then
2370   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2371 $as_echo "$ac_ct_CC" >&6; }
2372 else
2373   { $as_echo "$as_me:$LINENO: result: no" >&5
2374 $as_echo "no" >&6; }
2375 fi
2376
2377
2378   test -n "$ac_ct_CC" && break
2379 done
2380
2381   if test "x$ac_ct_CC" = x; then
2382     CC=""
2383   else
2384     case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2388 ac_tool_warned=yes ;;
2389 esac
2390     CC=$ac_ct_CC
2391   fi
2392 fi
2393
2394 fi
2395
2396
2397 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2399 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&5
2401 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&2;}
2403    { (exit 1); exit 1; }; }; }
2404
2405 # Provide some information about the compiler.
2406 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2407 set X $ac_compile
2408 ac_compiler=$2
2409 { (ac_try="$ac_compiler --version >&5"
2410 case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416   (eval "$ac_compiler --version >&5") 2>&5
2417   ac_status=$?
2418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }
2420 { (ac_try="$ac_compiler -v >&5"
2421 case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2426 $as_echo "$ac_try_echo") >&5
2427   (eval "$ac_compiler -v >&5") 2>&5
2428   ac_status=$?
2429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }
2431 { (ac_try="$ac_compiler -V >&5"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2437 $as_echo "$ac_try_echo") >&5
2438   (eval "$ac_compiler -V >&5") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441   (exit $ac_status); }
2442
2443 EXEEXT=
2444 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2445 $as_echo_n "checking for suffix of object files... " >&6; }
2446 if test "${ac_cv_objext+set}" = set; then
2447   $as_echo_n "(cached) " >&6
2448 else
2449   cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h.  */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h.  */
2455
2456 int
2457 main ()
2458 {
2459
2460   ;
2461   return 0;
2462 }
2463 _ACEOF
2464 rm -f conftest.o conftest.obj
2465 if { (ac_try="$ac_compile"
2466 case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2471 $as_echo "$ac_try_echo") >&5
2472   (eval "$ac_compile") 2>&5
2473   ac_status=$?
2474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475   (exit $ac_status); }; then
2476   for ac_file in conftest.o conftest.obj conftest.*; do
2477   test -f "$ac_file" || continue;
2478   case $ac_file in
2479     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2480     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2481        break;;
2482   esac
2483 done
2484 else
2485   $as_echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2491 See \`config.log' for more details." >&5
2492 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2493 See \`config.log' for more details." >&2;}
2494    { (exit 1); exit 1; }; }; }
2495 fi
2496
2497 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2498 fi
2499 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2500 $as_echo "$ac_cv_objext" >&6; }
2501 OBJEXT=$ac_cv_objext
2502 ac_objext=$OBJEXT
2503 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2504 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2505 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2506   $as_echo_n "(cached) " >&6
2507 else
2508   cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514
2515 int
2516 main ()
2517 {
2518 #ifndef __GNUC__
2519        choke me
2520 #endif
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 rm -f conftest.$ac_objext
2527 if { (ac_try="$ac_compile"
2528 case "(($ac_try" in
2529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530   *) ac_try_echo=$ac_try;;
2531 esac
2532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2533 $as_echo "$ac_try_echo") >&5
2534   (eval "$ac_compile") 2>conftest.er1
2535   ac_status=$?
2536   grep -v '^ *+' conftest.er1 >conftest.err
2537   rm -f conftest.er1
2538   cat conftest.err >&5
2539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); } && {
2541          test -z "$ac_c_werror_flag" ||
2542          test ! -s conftest.err
2543        } && test -s conftest.$ac_objext; then
2544   ac_compiler_gnu=yes
2545 else
2546   $as_echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549         ac_compiler_gnu=no
2550 fi
2551
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2554
2555 fi
2556 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2558 if test $ac_compiler_gnu = yes; then
2559   GCC=yes
2560 else
2561   GCC=
2562 fi
2563 ac_test_CFLAGS=${CFLAGS+set}
2564 ac_save_CFLAGS=$CFLAGS
2565 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2567 if test "${ac_cv_prog_cc_g+set}" = set; then
2568   $as_echo_n "(cached) " >&6
2569 else
2570   ac_save_c_werror_flag=$ac_c_werror_flag
2571    ac_c_werror_flag=yes
2572    ac_cv_prog_cc_g=no
2573    CFLAGS="-g"
2574    cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h.  */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h.  */
2580
2581 int
2582 main ()
2583 {
2584
2585   ;
2586   return 0;
2587 }
2588 _ACEOF
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2596 $as_echo "$ac_try_echo") >&5
2597   (eval "$ac_compile") 2>conftest.er1
2598   ac_status=$?
2599   grep -v '^ *+' conftest.er1 >conftest.err
2600   rm -f conftest.er1
2601   cat conftest.err >&5
2602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); } && {
2604          test -z "$ac_c_werror_flag" ||
2605          test ! -s conftest.err
2606        } && test -s conftest.$ac_objext; then
2607   ac_cv_prog_cc_g=yes
2608 else
2609   $as_echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2611
2612         CFLAGS=""
2613       cat >conftest.$ac_ext <<_ACEOF
2614 /* confdefs.h.  */
2615 _ACEOF
2616 cat confdefs.h >>conftest.$ac_ext
2617 cat >>conftest.$ac_ext <<_ACEOF
2618 /* end confdefs.h.  */
2619
2620 int
2621 main ()
2622 {
2623
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (ac_try="$ac_compile"
2630 case "(($ac_try" in
2631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632   *) ac_try_echo=$ac_try;;
2633 esac
2634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2635 $as_echo "$ac_try_echo") >&5
2636   (eval "$ac_compile") 2>conftest.er1
2637   ac_status=$?
2638   grep -v '^ *+' conftest.er1 >conftest.err
2639   rm -f conftest.er1
2640   cat conftest.err >&5
2641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); } && {
2643          test -z "$ac_c_werror_flag" ||
2644          test ! -s conftest.err
2645        } && test -s conftest.$ac_objext; then
2646   :
2647 else
2648   $as_echo "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651         ac_c_werror_flag=$ac_save_c_werror_flag
2652          CFLAGS="-g"
2653          cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659
2660 int
2661 main ()
2662 {
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2675 $as_echo "$ac_try_echo") >&5
2676   (eval "$ac_compile") 2>conftest.er1
2677   ac_status=$?
2678   grep -v '^ *+' conftest.er1 >conftest.err
2679   rm -f conftest.er1
2680   cat conftest.err >&5
2681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); } && {
2683          test -z "$ac_c_werror_flag" ||
2684          test ! -s conftest.err
2685        } && test -s conftest.$ac_objext; then
2686   ac_cv_prog_cc_g=yes
2687 else
2688   $as_echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691
2692 fi
2693
2694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2695 fi
2696
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 fi
2699
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701    ac_c_werror_flag=$ac_save_c_werror_flag
2702 fi
2703 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704 $as_echo "$ac_cv_prog_cc_g" >&6; }
2705 if test "$ac_test_CFLAGS" = set; then
2706   CFLAGS=$ac_save_CFLAGS
2707 elif test $ac_cv_prog_cc_g = yes; then
2708   if test "$GCC" = yes; then
2709     CFLAGS="-g -O2"
2710   else
2711     CFLAGS="-g"
2712   fi
2713 else
2714   if test "$GCC" = yes; then
2715     CFLAGS="-O2"
2716   else
2717     CFLAGS=
2718   fi
2719 fi
2720 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2721 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2722 if test "${ac_cv_prog_cc_c89+set}" = set; then
2723   $as_echo_n "(cached) " >&6
2724 else
2725   ac_cv_prog_cc_c89=no
2726 ac_save_CC=$CC
2727 cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733 #include <stdarg.h>
2734 #include <stdio.h>
2735 #include <sys/types.h>
2736 #include <sys/stat.h>
2737 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2738 struct buf { int x; };
2739 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740 static char *e (p, i)
2741      char **p;
2742      int i;
2743 {
2744   return p[i];
2745 }
2746 static char *f (char * (*g) (char **, int), char **p, ...)
2747 {
2748   char *s;
2749   va_list v;
2750   va_start (v,p);
2751   s = g (p, va_arg (v,int));
2752   va_end (v);
2753   return s;
2754 }
2755
2756 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2757    function prototypes and stuff, but not '\xHH' hex character constants.
2758    These don't provoke an error unfortunately, instead are silently treated
2759    as 'x'.  The following induces an error, until -std is added to get
2760    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2761    array size at least.  It's necessary to write '\x00'==0 to get something
2762    that's true only with -std.  */
2763 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2764
2765 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2766    inside strings and character constants.  */
2767 #define FOO(x) 'x'
2768 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2769
2770 int test (int i, double x);
2771 struct s1 {int (*f) (int a);};
2772 struct s2 {int (*f) (double a);};
2773 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2774 int argc;
2775 char **argv;
2776 int
2777 main ()
2778 {
2779 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2780   ;
2781   return 0;
2782 }
2783 _ACEOF
2784 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2785         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2786 do
2787   CC="$ac_save_CC $ac_arg"
2788   rm -f conftest.$ac_objext
2789 if { (ac_try="$ac_compile"
2790 case "(($ac_try" in
2791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2792   *) ac_try_echo=$ac_try;;
2793 esac
2794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2795 $as_echo "$ac_try_echo") >&5
2796   (eval "$ac_compile") 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } && {
2803          test -z "$ac_c_werror_flag" ||
2804          test ! -s conftest.err
2805        } && test -s conftest.$ac_objext; then
2806   ac_cv_prog_cc_c89=$ac_arg
2807 else
2808   $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811
2812 fi
2813
2814 rm -f core conftest.err conftest.$ac_objext
2815   test "x$ac_cv_prog_cc_c89" != "xno" && break
2816 done
2817 rm -f conftest.$ac_ext
2818 CC=$ac_save_CC
2819
2820 fi
2821 # AC_CACHE_VAL
2822 case "x$ac_cv_prog_cc_c89" in
2823   x)
2824     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2825 $as_echo "none needed" >&6; } ;;
2826   xno)
2827     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2828 $as_echo "unsupported" >&6; } ;;
2829   *)
2830     CC="$CC $ac_cv_prog_cc_c89"
2831     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2832 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2833 esac
2834
2835
2836 ac_ext=c
2837 ac_cpp='$CPP $CPPFLAGS'
2838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2841
2842 if test $host != $build; then
2843   for ac_prog in gcc cc
2844 do
2845   # Extract the first word of "$ac_prog", so it can be a program name with args.
2846 set dummy $ac_prog; ac_word=$2
2847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
2850   $as_echo_n "(cached) " >&6
2851 else
2852   if test -n "$BUILD_CC"; then
2853   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860   for ac_exec_ext in '' $ac_executable_extensions; do
2861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862     ac_cv_prog_BUILD_CC="$ac_prog"
2863     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864     break 2
2865   fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 BUILD_CC=$ac_cv_prog_BUILD_CC
2873 if test -n "$BUILD_CC"; then
2874   { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2875 $as_echo "$BUILD_CC" >&6; }
2876 else
2877   { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882   test -n "$BUILD_CC" && break
2883 done
2884
2885 fi
2886
2887 ac_ext=c
2888 ac_cpp='$CPP $CPPFLAGS'
2889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2892 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2893 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2894 # On Suns, sometimes $CPP names a directory.
2895 if test -n "$CPP" && test -d "$CPP"; then
2896   CPP=
2897 fi
2898 if test -z "$CPP"; then
2899   if test "${ac_cv_prog_CPP+set}" = set; then
2900   $as_echo_n "(cached) " >&6
2901 else
2902       # Double quotes because CPP needs to be expanded
2903     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2904     do
2905       ac_preproc_ok=false
2906 for ac_c_preproc_warn_flag in '' yes
2907 do
2908   # Use a header file that comes with gcc, so configuring glibc
2909   # with a fresh cross-compiler works.
2910   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2911   # <limits.h> exists even on freestanding compilers.
2912   # On the NeXT, cc -E runs the code through the compiler's parser,
2913   # not just through cpp. "Syntax error" is here to catch this case.
2914   cat >conftest.$ac_ext <<_ACEOF
2915 /* confdefs.h.  */
2916 _ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h.  */
2920 #ifdef __STDC__
2921 # include <limits.h>
2922 #else
2923 # include <assert.h>
2924 #endif
2925                      Syntax error
2926 _ACEOF
2927 if { (ac_try="$ac_cpp conftest.$ac_ext"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2933 $as_echo "$ac_try_echo") >&5
2934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2935   ac_status=$?
2936   grep -v '^ *+' conftest.er1 >conftest.err
2937   rm -f conftest.er1
2938   cat conftest.err >&5
2939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940   (exit $ac_status); } >/dev/null && {
2941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2942          test ! -s conftest.err
2943        }; then
2944   :
2945 else
2946   $as_echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2948
2949   # Broken: fails on valid input.
2950 continue
2951 fi
2952
2953 rm -f conftest.err conftest.$ac_ext
2954
2955   # OK, works on sane cases.  Now check whether nonexistent headers
2956   # can be detected and how.
2957   cat >conftest.$ac_ext <<_ACEOF
2958 /* confdefs.h.  */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h.  */
2963 #include <ac_nonexistent.h>
2964 _ACEOF
2965 if { (ac_try="$ac_cpp conftest.$ac_ext"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } >/dev/null && {
2979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2980          test ! -s conftest.err
2981        }; then
2982   # Broken: success on invalid input.
2983 continue
2984 else
2985   $as_echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2987
2988   # Passes both tests.
2989 ac_preproc_ok=:
2990 break
2991 fi
2992
2993 rm -f conftest.err conftest.$ac_ext
2994
2995 done
2996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2997 rm -f conftest.err conftest.$ac_ext
2998 if $ac_preproc_ok; then
2999   break
3000 fi
3001
3002     done
3003     ac_cv_prog_CPP=$CPP
3004
3005 fi
3006   CPP=$ac_cv_prog_CPP
3007 else
3008   ac_cv_prog_CPP=$CPP
3009 fi
3010 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3011 $as_echo "$CPP" >&6; }
3012 ac_preproc_ok=false
3013 for ac_c_preproc_warn_flag in '' yes
3014 do
3015   # Use a header file that comes with gcc, so configuring glibc
3016   # with a fresh cross-compiler works.
3017   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018   # <limits.h> exists even on freestanding compilers.
3019   # On the NeXT, cc -E runs the code through the compiler's parser,
3020   # not just through cpp. "Syntax error" is here to catch this case.
3021   cat >conftest.$ac_ext <<_ACEOF
3022 /* confdefs.h.  */
3023 _ACEOF
3024 cat confdefs.h >>conftest.$ac_ext
3025 cat >>conftest.$ac_ext <<_ACEOF
3026 /* end confdefs.h.  */
3027 #ifdef __STDC__
3028 # include <limits.h>
3029 #else
3030 # include <assert.h>
3031 #endif
3032                      Syntax error
3033 _ACEOF
3034 if { (ac_try="$ac_cpp conftest.$ac_ext"
3035 case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3040 $as_echo "$ac_try_echo") >&5
3041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3042   ac_status=$?
3043   grep -v '^ *+' conftest.er1 >conftest.err
3044   rm -f conftest.er1
3045   cat conftest.err >&5
3046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047   (exit $ac_status); } >/dev/null && {
3048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3049          test ! -s conftest.err
3050        }; then
3051   :
3052 else
3053   $as_echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3055
3056   # Broken: fails on valid input.
3057 continue
3058 fi
3059
3060 rm -f conftest.err conftest.$ac_ext
3061
3062   # OK, works on sane cases.  Now check whether nonexistent headers
3063   # can be detected and how.
3064   cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070 #include <ac_nonexistent.h>
3071 _ACEOF
3072 if { (ac_try="$ac_cpp conftest.$ac_ext"
3073 case "(($ac_try" in
3074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075   *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3078 $as_echo "$ac_try_echo") >&5
3079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3080   ac_status=$?
3081   grep -v '^ *+' conftest.er1 >conftest.err
3082   rm -f conftest.er1
3083   cat conftest.err >&5
3084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } >/dev/null && {
3086          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3087          test ! -s conftest.err
3088        }; then
3089   # Broken: success on invalid input.
3090 continue
3091 else
3092   $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095   # Passes both tests.
3096 ac_preproc_ok=:
3097 break
3098 fi
3099
3100 rm -f conftest.err conftest.$ac_ext
3101
3102 done
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3106   :
3107 else
3108   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3110 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3111 See \`config.log' for more details." >&5
3112 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3113 See \`config.log' for more details." >&2;}
3114    { (exit 1); exit 1; }; }; }
3115 fi
3116
3117 ac_ext=c
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122
3123 # We need the C++ compiler only for testing.
3124 ac_ext=cpp
3125 ac_cpp='$CXXCPP $CPPFLAGS'
3126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3129 if test -z "$CXX"; then
3130   if test -n "$CCC"; then
3131     CXX=$CCC
3132   else
3133     if test -n "$ac_tool_prefix"; then
3134   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3135   do
3136     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_CXX+set}" = set; then
3141   $as_echo_n "(cached) " >&6
3142 else
3143   if test -n "$CXX"; then
3144   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3148 do
3149   IFS=$as_save_IFS
3150   test -z "$as_dir" && as_dir=.
3151   for ac_exec_ext in '' $ac_executable_extensions; do
3152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158 done
3159 IFS=$as_save_IFS
3160
3161 fi
3162 fi
3163 CXX=$ac_cv_prog_CXX
3164 if test -n "$CXX"; then
3165   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3166 $as_echo "$CXX" >&6; }
3167 else
3168   { $as_echo "$as_me:$LINENO: result: no" >&5
3169 $as_echo "no" >&6; }
3170 fi
3171
3172
3173     test -n "$CXX" && break
3174   done
3175 fi
3176 if test -z "$CXX"; then
3177   ac_ct_CXX=$CXX
3178   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3179 do
3180   # Extract the first word of "$ac_prog", so it can be a program name with args.
3181 set dummy $ac_prog; ac_word=$2
3182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3183 $as_echo_n "checking for $ac_word... " >&6; }
3184 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3185   $as_echo_n "(cached) " >&6
3186 else
3187   if test -n "$ac_ct_CXX"; then
3188   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3189 else
3190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 for as_dir in $PATH
3192 do
3193   IFS=$as_save_IFS
3194   test -z "$as_dir" && as_dir=.
3195   for ac_exec_ext in '' $ac_executable_extensions; do
3196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197     ac_cv_prog_ac_ct_CXX="$ac_prog"
3198     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3199     break 2
3200   fi
3201 done
3202 done
3203 IFS=$as_save_IFS
3204
3205 fi
3206 fi
3207 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3208 if test -n "$ac_ct_CXX"; then
3209   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3210 $as_echo "$ac_ct_CXX" >&6; }
3211 else
3212   { $as_echo "$as_me:$LINENO: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217   test -n "$ac_ct_CXX" && break
3218 done
3219
3220   if test "x$ac_ct_CXX" = x; then
3221     CXX="g++"
3222   else
3223     case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229     CXX=$ac_ct_CXX
3230   fi
3231 fi
3232
3233   fi
3234 fi
3235 # Provide some information about the compiler.
3236 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3237 set X $ac_compile
3238 ac_compiler=$2
3239 { (ac_try="$ac_compiler --version >&5"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246   (eval "$ac_compiler --version >&5") 2>&5
3247   ac_status=$?
3248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }
3250 { (ac_try="$ac_compiler -v >&5"
3251 case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257   (eval "$ac_compiler -v >&5") 2>&5
3258   ac_status=$?
3259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }
3261 { (ac_try="$ac_compiler -V >&5"
3262 case "(($ac_try" in
3263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264   *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268   (eval "$ac_compiler -V >&5") 2>&5
3269   ac_status=$?
3270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); }
3272
3273 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3274 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3275 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3276   $as_echo_n "(cached) " >&6
3277 else
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284
3285 int
3286 main ()
3287 {
3288 #ifndef __GNUC__
3289        choke me
3290 #endif
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303 $as_echo "$ac_try_echo") >&5
3304   (eval "$ac_compile") 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } && {
3311          test -z "$ac_cxx_werror_flag" ||
3312          test ! -s conftest.err
3313        } && test -s conftest.$ac_objext; then
3314   ac_compiler_gnu=yes
3315 else
3316   $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319         ac_compiler_gnu=no
3320 fi
3321
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3324
3325 fi
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3328 if test $ac_compiler_gnu = yes; then
3329   GXX=yes
3330 else
3331   GXX=
3332 fi
3333 ac_test_CXXFLAGS=${CXXFLAGS+set}
3334 ac_save_CXXFLAGS=$CXXFLAGS
3335 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3337 if test "${ac_cv_prog_cxx_g+set}" = set; then
3338   $as_echo_n "(cached) " >&6
3339 else
3340   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3341    ac_cxx_werror_flag=yes
3342    ac_cv_prog_cxx_g=no
3343    CXXFLAGS="-g"
3344    cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350
3351 int
3352 main ()
3353 {
3354
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367   (eval "$ac_compile") 2>conftest.er1
3368   ac_status=$?
3369   grep -v '^ *+' conftest.er1 >conftest.err
3370   rm -f conftest.er1
3371   cat conftest.err >&5
3372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); } && {
3374          test -z "$ac_cxx_werror_flag" ||
3375          test ! -s conftest.err
3376        } && test -s conftest.$ac_objext; then
3377   ac_cv_prog_cxx_g=yes
3378 else
3379   $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382         CXXFLAGS=""
3383       cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (ac_try="$ac_compile"
3400 case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3405 $as_echo "$ac_try_echo") >&5
3406   (eval "$ac_compile") 2>conftest.er1
3407   ac_status=$?
3408   grep -v '^ *+' conftest.er1 >conftest.err
3409   rm -f conftest.er1
3410   cat conftest.err >&5
3411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412   (exit $ac_status); } && {
3413          test -z "$ac_cxx_werror_flag" ||
3414          test ! -s conftest.err
3415        } && test -s conftest.$ac_objext; then
3416   :
3417 else
3418   $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3420
3421         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3422          CXXFLAGS="-g"
3423          cat >conftest.$ac_ext <<_ACEOF
3424 /* confdefs.h.  */
3425 _ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h.  */
3429
3430 int
3431 main ()
3432 {
3433
3434   ;
3435   return 0;
3436 }
3437 _ACEOF
3438 rm -f conftest.$ac_objext
3439 if { (ac_try="$ac_compile"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3445 $as_echo "$ac_try_echo") >&5
3446   (eval "$ac_compile") 2>conftest.er1
3447   ac_status=$?
3448   grep -v '^ *+' conftest.er1 >conftest.err
3449   rm -f conftest.er1
3450   cat conftest.err >&5
3451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } && {
3453          test -z "$ac_cxx_werror_flag" ||
3454          test ! -s conftest.err
3455        } && test -s conftest.$ac_objext; then
3456   ac_cv_prog_cxx_g=yes
3457 else
3458   $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461
3462 fi
3463
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 fi
3466
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3472 fi
3473 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3474 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3475 if test "$ac_test_CXXFLAGS" = set; then
3476   CXXFLAGS=$ac_save_CXXFLAGS
3477 elif test $ac_cv_prog_cxx_g = yes; then
3478   if test "$GXX" = yes; then
3479     CXXFLAGS="-g -O2"
3480   else
3481     CXXFLAGS="-g"
3482   fi
3483 else
3484   if test "$GXX" = yes; then
3485     CXXFLAGS="-O2"
3486   else
3487     CXXFLAGS=
3488   fi
3489 fi
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3498   { { $as_echo "$as_me:$LINENO: error: you must configure in a separate build directory" >&5
3499 $as_echo "$as_me: error: you must configure in a separate build directory" >&2;}
3500    { (exit 1); exit 1; }; }
3501 fi
3502
3503 # This will get text that should go into config.make.
3504 config_vars=
3505
3506 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3507
3508 # Check whether --with-gd was given.
3509 if test "${with_gd+set}" = set; then
3510   withval=$with_gd; case "$with_gd" in
3511 yes|''|no) ;;
3512 *) libgd_include="-I$withval/include"
3513    libgd_ldflags="-L$withval/lib" ;;
3514 esac
3515
3516 fi
3517
3518
3519 # Check whether --with-gd-include was given.
3520 if test "${with_gd_include+set}" = set; then
3521   withval=$with_gd_include; case "$with_gd_include" in
3522 ''|no) ;;
3523 *) libgd_include="-I$withval" ;;
3524 esac
3525
3526 fi
3527
3528
3529 # Check whether --with-gd-lib was given.
3530 if test "${with_gd_lib+set}" = set; then
3531   withval=$with_gd_lib; case "$with_gd_lib" in
3532 ''|no) ;;
3533 *) libgd_ldflags="-L$withval" ;;
3534 esac
3535
3536 fi
3537
3538
3539 if test -n "$libgd_include"; then
3540   config_vars="$config_vars
3541 CFLAGS-memusagestat.c = $libgd_include"
3542 fi
3543 if test -n "$libgd_ldflags"; then
3544   config_vars="$config_vars
3545 libgd-LDFLAGS = $libgd_ldflags"
3546 fi
3547
3548
3549 # Check whether --with-fp was given.
3550 if test "${with_fp+set}" = set; then
3551   withval=$with_fp; with_fp=$withval
3552 else
3553   with_fp=yes
3554 fi
3555
3556
3557
3558 # Check whether --with-binutils was given.
3559 if test "${with_binutils+set}" = set; then
3560   withval=$with_binutils; path_binutils=$withval
3561 else
3562   path_binutils=''
3563 fi
3564
3565
3566 # Check whether --with-elf was given.
3567 if test "${with_elf+set}" = set; then
3568   withval=$with_elf; elf=$withval
3569 else
3570   elf=no
3571 fi
3572
3573
3574 # Check whether --with-selinux was given.
3575 if test "${with_selinux+set}" = set; then
3576   withval=$with_selinux; with_selinux=$withval
3577 else
3578   with_selinux=auto
3579 fi
3580
3581
3582 # Check whether --with-xcoff was given.
3583 if test "${with_xcoff+set}" = set; then
3584   withval=$with_xcoff; xcoff=$withval
3585 else
3586   xcoff=no
3587 fi
3588
3589
3590 # Check whether --with-cvs was given.
3591 if test "${with_cvs+set}" = set; then
3592   withval=$with_cvs; with_cvs=$withval
3593 else
3594   with_cvs=yes
3595 fi
3596
3597 if test "$with_cvs" = yes; then
3598   if test -d $srcdir/CVS && grep :pserver: $srcdir/CVS/Root > /dev/null
3599   then
3600     with_cvs=no
3601   fi
3602 fi
3603
3604
3605
3606 # Check whether --with-headers was given.
3607 if test "${with_headers+set}" = set; then
3608   withval=$with_headers; sysheaders=$withval
3609 else
3610   sysheaders=''
3611 fi
3612
3613
3614 # Check whether --enable-sanity-checks was given.
3615 if test "${enable_sanity_checks+set}" = set; then
3616   enableval=$enable_sanity_checks; enable_sanity=$enableval
3617 else
3618   enable_sanity=yes
3619 fi
3620
3621
3622
3623 # Check whether --enable-check-abi was given.
3624 if test "${enable_check_abi+set}" = set; then
3625   enableval=$enable_check_abi; enable_check_abi=$enableval
3626 else
3627   enable_check_abi=no
3628 fi
3629
3630
3631 static=yes
3632 # Check whether --enable-shared was given.
3633 if test "${enable_shared+set}" = set; then
3634   enableval=$enable_shared; shared=$enableval
3635 else
3636   shared=default
3637 fi
3638
3639 # Check whether --enable-profile was given.
3640 if test "${enable_profile+set}" = set; then
3641   enableval=$enable_profile; profile=$enableval
3642 else
3643   profile=no
3644 fi
3645
3646 # Check whether --enable-omitfp was given.
3647 if test "${enable_omitfp+set}" = set; then
3648   enableval=$enable_omitfp; omitfp=$enableval
3649 else
3650   omitfp=no
3651 fi
3652
3653 # Check whether --enable-bounded was given.
3654 if test "${enable_bounded+set}" = set; then
3655   enableval=$enable_bounded; bounded=$enableval
3656 else
3657   bounded=no
3658 fi
3659
3660 # Check whether --enable-versioning was given.
3661 if test "${enable_versioning+set}" = set; then
3662   enableval=$enable_versioning; enable_versioning=$enableval
3663 else
3664   enable_versioning=yes
3665 fi
3666
3667
3668 # Check whether --enable-oldest-abi was given.
3669 if test "${enable_oldest_abi+set}" = set; then
3670   enableval=$enable_oldest_abi; oldest_abi=$enableval
3671 else
3672   oldest_abi=no
3673 fi
3674
3675 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3676   oldest_abi=default
3677 else
3678   cat >>confdefs.h <<_ACEOF
3679 #define GLIBC_OLDEST_ABI "$oldest_abi"
3680 _ACEOF
3681
3682 fi
3683
3684
3685 # Check whether --enable-stackguard-randomization was given.
3686 if test "${enable_stackguard_randomization+set}" = set; then
3687   enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3688 else
3689   enable_stackguard_randomize=no
3690 fi
3691
3692 if test "$enable_stackguard_randomize" = yes; then
3693   cat >>confdefs.h <<\_ACEOF
3694 #define ENABLE_STACKGUARD_RANDOMIZE 1
3695 _ACEOF
3696
3697 fi
3698
3699 # Check whether --enable-add-ons was given.
3700 if test "${enable_add_ons+set}" = set; then
3701   enableval=$enable_add_ons;
3702 else
3703   enable_add_ons=yes
3704 fi
3705
3706
3707
3708 # Check whether --with-tls was given.
3709 if test "${with_tls+set}" = set; then
3710   withval=$with_tls; usetls=$withval
3711 else
3712   usetls=yes
3713 fi
3714
3715
3716
3717 # Check whether --with-__thread was given.
3718 if test "${with___thread+set}" = set; then
3719   withval=$with___thread; use__thread=$withval
3720 else
3721   use__thread=yes
3722 fi
3723
3724
3725 # Check whether --enable-hidden-plt was given.
3726 if test "${enable_hidden_plt+set}" = set; then
3727   enableval=$enable_hidden_plt; hidden=$enableval
3728 else
3729   hidden=yes
3730 fi
3731
3732 if test "x$hidden" = xno; then
3733   cat >>confdefs.h <<\_ACEOF
3734 #define NO_HIDDEN 1
3735 _ACEOF
3736
3737 fi
3738
3739 # Check whether --enable-bind-now was given.
3740 if test "${enable_bind_now+set}" = set; then
3741   enableval=$enable_bind_now; bindnow=$enableval
3742 else
3743   bindnow=no
3744 fi
3745
3746
3747
3748 # Check whether --enable-static-nss was given.
3749 if test "${enable_static_nss+set}" = set; then
3750   enableval=$enable_static_nss; static_nss=$enableval
3751 else
3752   static_nss=no
3753 fi
3754
3755 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3756   static_nss=yes
3757   cat >>confdefs.h <<\_ACEOF
3758 #define DO_STATIC_NSS 1
3759 _ACEOF
3760
3761 fi
3762
3763 # Check whether --enable-force-install was given.
3764 if test "${enable_force_install+set}" = set; then
3765   enableval=$enable_force_install; force_install=$enableval
3766 else
3767   force_install=yes
3768 fi
3769
3770
3771
3772 # Check whether --enable-kernel was given.
3773 if test "${enable_kernel+set}" = set; then
3774   enableval=$enable_kernel; minimum_kernel=$enableval
3775 fi
3776
3777 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3778   # Better nothing than this.
3779   minimum_kernel=""
3780 else
3781   if test "$minimum_kernel" = current; then
3782     minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3783   fi
3784 fi
3785
3786 # Check whether --enable-all-warnings was given.
3787 if test "${enable_all_warnings+set}" = set; then
3788   enableval=$enable_all_warnings; all_warnings=$enableval
3789 fi
3790
3791
3792
3793 # Check whether --enable-multi-arch was given.
3794 if test "${enable_multi_arch+set}" = set; then
3795   enableval=$enable_multi_arch; multi_arch=$enableval
3796 else
3797   multi_arch=no
3798 fi
3799
3800 if test x"$multi_arch" = xyes; then
3801   cat >>confdefs.h <<\_ACEOF
3802 #define USE_MULTIARCH 1
3803 _ACEOF
3804
3805   multi_arch_d=/multiarch
3806 fi
3807
3808
3809 # Check whether --enable-experimental-malloc was given.
3810 if test "${enable_experimental_malloc+set}" = set; then
3811   enableval=$enable_experimental_malloc; experimental_malloc=$enableval
3812 fi
3813
3814
3815
3816 # Check whether --enable-nss-crypt was given.
3817 if test "${enable_nss_crypt+set}" = set; then
3818   enableval=$enable_nss_crypt; nss_crypt=$enableval
3819 else
3820   nss_crypt=no
3821 fi
3822
3823 if test x$nss_crypt = xyes; then
3824   nss_includes=-I$(nss-config --includedir 2>/dev/null)
3825   if test $? -ne 0; then
3826     { { $as_echo "$as_me:$LINENO: error: cannot find include directory with nss-config" >&5
3827 $as_echo "$as_me: error: cannot find include directory with nss-config" >&2;}
3828    { (exit 1); exit 1; }; }
3829   fi
3830   old_CFLAGS="$CFLAGS"
3831   CFLAGS="$CFLAGS $nss_includes"
3832
3833 cat >conftest.$ac_ext <<_ACEOF
3834 typedef int PRBool;
3835 #include <hasht.h>
3836 #include <nsslowhash.h>
3837 void f (void) { NSSLOW_Init (); }
3838 _ACEOF
3839 rm -f conftest.$ac_objext
3840 if { (ac_try="$ac_compile"
3841 case "(($ac_try" in
3842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843   *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3846 $as_echo "$ac_try_echo") >&5
3847   (eval "$ac_compile") 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } && {
3854          test -z "$ac_c_werror_flag" ||
3855          test ! -s conftest.err
3856        } && test -s conftest.$ac_objext; then
3857   libc_cv_nss_crypt=yes
3858 else
3859   $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862         { { $as_echo "$as_me:$LINENO: error:
3863 cannot find NSS headers with lowlevel hash function interfaces" >&5
3864 $as_echo "$as_me: error:
3865 cannot find NSS headers with lowlevel hash function interfaces" >&2;}
3866    { (exit 1); exit 1; }; }
3867 fi
3868
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870   old_LIBS="$LIBS"
3871   LIBS="$LIBS -lfreebl3"
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878 typedef int PRBool;
3879 #include <hasht.h>
3880 #include <nsslowhash.h>
3881 int
3882 main ()
3883 {
3884 NSSLOW_Init();
3885   ;
3886   return 0;
3887 }
3888 _ACEOF
3889 rm -f conftest.$ac_objext conftest$ac_exeext
3890 if { (ac_try="$ac_link"
3891 case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3896 $as_echo "$ac_try_echo") >&5
3897   (eval "$ac_link") 2>conftest.er1
3898   ac_status=$?
3899   grep -v '^ *+' conftest.er1 >conftest.err
3900   rm -f conftest.er1
3901   cat conftest.err >&5
3902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903   (exit $ac_status); } && {
3904          test -z "$ac_c_werror_flag" ||
3905          test ! -s conftest.err
3906        } && test -s conftest$ac_exeext && {
3907          test "$cross_compiling" = yes ||
3908          $as_test_x conftest$ac_exeext
3909        }; then
3910   libc_cv_nss_crypt=yes
3911 else
3912   $as_echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3914
3915         { { $as_echo "$as_me:$LINENO: error:
3916 cannot link program using lowlevel NSS hash functions" >&5
3917 $as_echo "$as_me: error:
3918 cannot link program using lowlevel NSS hash functions" >&2;}
3919    { (exit 1); exit 1; }; }
3920 fi
3921
3922 rm -rf conftest.dSYM
3923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3924       conftest$ac_exeext conftest.$ac_ext
3925   CFLAGS="$old_CFLAGS"
3926   LIBS="$old_LIBS"
3927 else
3928   libc_cv_nss_crypt=no
3929 fi
3930
3931
3932 # The way shlib-versions is used to generate soversions.mk uses a
3933 # fairly simplistic model for name recognition that can't distinguish
3934 # i486-pc-linux-gnu fully from i486-pc-gnu.  So we mutate a $host_os
3935 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3936 # tell.  This doesn't get used much beyond that, so it's fairly safe.
3937 case "$host_os" in
3938 linux*)
3939   ;;
3940 gnu*)
3941   host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3942   ;;
3943 esac
3944
3945 # We keep the original values in `$config_*' and never modify them, so we
3946 # can write them unchanged into config.make.  Everything else uses
3947 # $machine, $vendor, and $os, and changes them whenever convenient.
3948 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3949
3950 # Don't allow vendor == "unknown"
3951 test "$config_vendor" = unknown && config_vendor=
3952 config_os="`echo $config_os | sed 's/^unknown-//'`"
3953
3954 # Some configurations imply other options.
3955 case "$host_os" in
3956 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3957 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3958   ;;
3959 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3960   # These systems (almost) always use the ELF format.
3961   elf=yes
3962   ;;
3963 aix*)
3964   # These systems are always xcoff
3965   xcoff=yes
3966   elf=no
3967   ;;
3968 esac
3969
3970 # The configure fragment of an add-on port can modify these to supplement
3971 # or override the table in the case statement below.  No fragment should
3972 # ever change the config_* variables, however.
3973 machine=$config_machine
3974 vendor=$config_vendor
3975 os=$config_os
3976 base_os=''
3977
3978 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3979 # Unify this here.
3980 if test "$machine" = rs6000; then
3981   machine="powerpc"
3982 fi
3983
3984 # Braindead PowerPC box with absolutely no FPU.
3985 case "$machine-$host_os" in
3986   powerpc*-*soft)
3987     with_fp=no
3988     ;;
3989 esac
3990
3991 submachine=
3992
3993 # Check whether --with-cpu was given.
3994 if test "${with_cpu+set}" = set; then
3995   withval=$with_cpu;   case "$withval" in
3996   yes|'') { { $as_echo "$as_me:$LINENO: error: --with-cpu requires an argument" >&5
3997 $as_echo "$as_me: error: --with-cpu requires an argument" >&2;}
3998    { (exit 1); exit 1; }; } ;;
3999   no) ;;
4000   *) submachine="$withval" ;;
4001   esac
4002
4003 fi
4004
4005
4006 # An add-on can set this when it wants to disable the sanity check below.
4007 libc_config_ok=no
4008
4009
4010
4011 subdirs="$subdirs "
4012
4013
4014 case "$enable_add_ons" in
4015 ''|no) add_ons= ;;
4016 yes|'*')
4017  add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
4018           sed 's@/[^/]*$@@' | sort | uniq`
4019          add_ons_automatic=yes
4020          ;;
4021 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
4022        add_ons_automatic=no ;;
4023 esac
4024
4025 configured_add_ons=
4026 add_ons_sfx=
4027 add_ons_pfx=
4028 if test x"$add_ons" != x; then
4029   for f in $add_ons; do
4030     # Some sanity checks
4031     case "$f" in
4032     crypt)
4033       { { $as_echo "$as_me:$LINENO: error:
4034 *** It seems that you're using an old \`crypt' add-on.  crypt is now
4035 *** part of glibc and using the old add-on will not work with this
4036 *** release.  Start again with fresh sources and without the old
4037 *** \`crypt' add-on." >&5
4038 $as_echo "$as_me: error:
4039 *** It seems that you're using an old \`crypt' add-on.  crypt is now
4040 *** part of glibc and using the old add-on will not work with this
4041 *** release.  Start again with fresh sources and without the old
4042 *** \`crypt' add-on." >&2;}
4043    { (exit 1); exit 1; }; }
4044     ;;
4045     localedata)
4046       { { $as_echo "$as_me:$LINENO: error:
4047 *** It seems that you're using an old \`localedata' add-on.  localedata
4048 *** is now part of glibc and using the old add-on will not work with
4049 *** this release.  Start again with fresh sources and without the old
4050 *** \`localedata' add-on." >&5
4051 $as_echo "$as_me: error:
4052 *** It seems that you're using an old \`localedata' add-on.  localedata
4053 *** is now part of glibc and using the old add-on will not work with
4054 *** this release.  Start again with fresh sources and without the old
4055 *** \`localedata' add-on." >&2;}
4056    { (exit 1); exit 1; }; }
4057     ;;
4058     esac
4059   done
4060
4061   # Now source each add-on's configure fragment.
4062   # The fragments can use $srcdir/$libc_add_on to find themselves,
4063   # and test $add_ons_automatic to see if they were explicitly requested.
4064   # A fragment can clear (or even change) $libc_add_on to affect
4065   # whether it goes into the list to be actually used in the build.
4066   use_add_ons=
4067   for libc_add_on in $add_ons; do
4068     # Test whether such a directory really exists.
4069     # It can be absolute, or relative to $srcdir, or relative to the build dir.
4070     case "$libc_add_on" in
4071     /*)
4072       libc_add_on_srcdir=$libc_add_on
4073       ;;
4074     *)
4075       test -d "$srcdir/$libc_add_on" || {
4076         if test -d "$libc_add_on"; then
4077           libc_add_on="`pwd`/$libc_add_on"
4078         else
4079           { { $as_echo "$as_me:$LINENO: error: add-on directory \"$libc_add_on\" does not exist" >&5
4080 $as_echo "$as_me: error: add-on directory \"$libc_add_on\" does not exist" >&2;}
4081    { (exit 1); exit 1; }; }
4082         fi
4083       }
4084       libc_add_on_srcdir=$srcdir/$libc_add_on
4085       ;;
4086     esac
4087
4088     libc_add_on_frag=$libc_add_on_srcdir/configure
4089     libc_add_on_canonical=
4090     if test -r "$libc_add_on_frag"; then
4091       { $as_echo "$as_me:$LINENO: running configure fragment for add-on $libc_add_on" >&5
4092 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
4093       libc_add_on_canonical=unknown
4094       libc_add_on_subdirs=
4095       . "$libc_add_on_frag"
4096       test -z "$libc_add_on" || {
4097         configured_add_ons="$configured_add_ons $libc_add_on"
4098         if test "x$libc_add_on_canonical" = xunknown; then
4099           { { $as_echo "$as_me:$LINENO: error: fragment must set \$libc_add_on_canonical" >&5
4100 $as_echo "$as_me: error: fragment must set \$libc_add_on_canonical" >&2;}
4101    { (exit 1); exit 1; }; }
4102         fi
4103         for d in $libc_add_on_subdirs; do
4104           case "$libc_add_on" in
4105           /*) subdir_srcdir="$libc_add_on" ;;
4106           *) subdir_srcdir="\$(..)$libc_add_on" ;;
4107           esac
4108           case "$d" in
4109           .)
4110             d="${libc_add_on_canonical:-$libc_add_on}"
4111             ;;
4112           /*)
4113             subdir_srcdir="$d"
4114             ;;
4115           *)
4116             subdir_srcdir="$subdir_srcdir/$d"
4117             ;;
4118           esac
4119           d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4120           add_on_subdirs="$add_on_subdirs $d"
4121           test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4122 $d-srcdir = $subdir_srcdir"
4123         done
4124       }
4125     fi
4126     if test -n "$libc_add_on"; then
4127       if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4128       then
4129         { $as_echo "$as_me:$LINENO: checking add-on $libc_add_on for preconfigure fragments" >&5
4130 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4131         for frag in $frags; do
4132           name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4133           echo $ECHO_N "$name $ECHO_C" >&6
4134           . "$frag"
4135         done
4136         { $as_echo "$as_me:$LINENO: result: " >&5
4137 $as_echo "" >&6; }
4138       fi
4139       use_add_ons="$use_add_ons $libc_add_on"
4140       add_ons_pfx="$add_ons_pfx $libc_add_on/"
4141       test -z "$libc_add_on_canonical" ||
4142       add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4143     fi
4144   done
4145   # Use echo to strip excess whitespace.
4146   add_ons="`echo $use_add_ons`"
4147 fi
4148
4149
4150
4151
4152 ###
4153 ### I put this here to prevent those annoying emails from people who cannot
4154 ### read and try to compile glibc on unsupported platforms.  --drepper
4155 ###
4156 ### By using the undocumented --enable-hacker-mode option for configure
4157 ### one can skip this test to make the configuration not fail for unsupported
4158 ### platforms.
4159 ###
4160 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4161   case "$machine-$host_os" in
4162   *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4163     ;;
4164   *)
4165     echo "*** The GNU C library is currently not available for this platform."
4166     echo "*** So far nobody cared to port it and if there is no volunteer it"
4167     echo "*** might never happen.  So, if you have interest to see glibc on"
4168     echo "*** this platform visit"
4169     echo "***   http://www.gnu.org/software/libc/porting.html"
4170     echo "*** and join the group of porters"
4171     exit 1
4172     ;;
4173   esac
4174 fi
4175
4176 # Expand the configuration machine name into a subdirectory by architecture
4177 # type and particular chip.  If an add-on configure fragment already set
4178 # base_machine, we don't change it.
4179 test -n "$base_machine" || case "$machine" in
4180 a29k | am29000) base_machine=a29k machine=a29k ;;
4181 c3[012])        base_machine=cx0 machine=cx0/c30 ;;
4182 c4[04])         base_machine=cx0 machine=cx0/c40 ;;
4183 i[34567]86)     base_machine=i386 machine=i386/$machine ;;
4184 ia64)           base_machine=ia64 machine=ia64 ;;
4185 m88???)         base_machine=m88k machine=m88k/$machine ;;
4186 m88k)           base_machine=m88k machine=m88k/m88100 ;;
4187 powerpc)        base_machine=powerpc machine=powerpc/powerpc32 ;;
4188 powerpc64)      base_machine=powerpc machine=powerpc/powerpc64 ;;
4189 s390)           base_machine=s390 machine=s390/s390-32 ;;
4190 s390x)          base_machine=s390 machine=s390/s390-64 ;;
4191 sh3*)           base_machine=sh machine=sh/sh3 ;;
4192 sh4*)           base_machine=sh machine=sh/sh4 ;;
4193 sparc | sparcv[67])
4194                 base_machine=sparc machine=sparc/sparc32 ;;
4195 sparcv8 | supersparc | hypersparc)
4196                 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4197 sparcv8plus | sparcv8plusa | sparcv9)
4198                 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4199 sparcv8plusb | sparcv9b)
4200                 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4201 sparcv9v)
4202                 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4203 sparcv9v2)
4204                 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4205 sparc64)
4206                 base_machine=sparc machine=sparc/sparc64 ;;
4207 sparc64b)
4208                 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4209 sparc64v)
4210                 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4211 sparc64v2)
4212                 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4213 *)              base_machine=$machine ;;
4214 esac
4215
4216
4217 if test "$base_machine" = "i386"; then
4218   cat >>confdefs.h <<\_ACEOF
4219 #define USE_REGPARMS 1
4220 _ACEOF
4221
4222 fi
4223
4224 # Compute the list of sysdep directories for this configuration.
4225 # This can take a while to compute.
4226 sysdep_dir=$srcdir/sysdeps
4227 { $as_echo "$as_me:$LINENO: checking sysdep dirs" >&5
4228 $as_echo_n "checking sysdep dirs... " >&6; }
4229 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4230 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4231
4232 test "x$base_os" != x || case "$os" in
4233 gnu*)
4234   base_os=mach/hurd ;;
4235 netbsd* | 386bsd* | freebsd* | bsdi*)
4236   base_os=unix/bsd/bsd4.4 ;;
4237 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4238   base_os=unix/bsd ;;
4239 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4240   base_os=unix/sysv ;;
4241 irix6*)
4242   base_os=unix/sysv/irix6/$os ;;
4243 solaris[2-9]*)
4244   base_os=unix/sysv/sysv4 ;;
4245 hpux*)
4246   base_os=unix/sysv/hpux/$os ;;
4247 aix4.3*)
4248   base_os=unix/sysv/aix/aix4.3 ;;
4249 none)
4250   base_os=standalone ;;
4251 esac
4252
4253 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4254 tail=$os
4255 ostry=$os
4256 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4257   ostry="$ostry /$o"
4258   tail=$o
4259 done
4260 o=`echo $tail | sed 's/[0-9]*$//'`
4261 if test $o != $tail; then
4262   ostry="$ostry /$o"
4263 fi
4264 # For linux-gnu, try linux-gnu, then linux.
4265 o=`echo $tail | sed 's/-.*$//'`
4266 if test $o != $tail; then
4267   ostry="$ostry /$o"
4268 fi
4269
4270 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4271 base=
4272 tail=$base_os
4273 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4274   set $b
4275   base="$base /$1"
4276   tail="$2"
4277 done
4278
4279 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4280 mach=
4281 tail=$machine${submachine:+/$submachine}
4282 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4283   set $m
4284   # Prepend the machine's FPU directory unless --without-fp.
4285   if test "$with_fp" = yes; then
4286     mach="$mach /$1/fpu"
4287   else
4288     mach="$mach /$1/nofpu"
4289   fi
4290   mach="$mach /$1"
4291   tail="$2"
4292 done
4293
4294
4295 # Find what sysdep directories exist.
4296 sysnames_add_ons=
4297 sysnames=
4298 for b in $base ''; do
4299   for m0 in $mach ''; do
4300     for v in /$vendor ''; do
4301       test "$v" = / && continue
4302       for o in /$ostry ''; do
4303         test "$o" = / && continue
4304         for m in $multi_arch_d $mach ''; do
4305           for d in $add_ons_pfx ''; do
4306             for a in $add_ons_sfx ''; do
4307               if test -n "$m0$m0sub$b$v$o$m$msub"; then
4308                 try_srcdir="${srcdir}/"
4309                 case "$d" in
4310                 /*) try_srcdir= ;;
4311                 esac
4312                 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4313                 test -n "$enable_debug_configure" &&
4314                 echo "$0 DEBUG: try $try" >&2
4315                 if test -d "$try_srcdir$try"; then
4316                   sysnames="$sysnames $try"
4317                   { test -n "$o" || test -n "$b"; } && os_used=t
4318                   { test -n "$m" || test -n "$m0"; } && machine_used=t
4319                   case x${m0:-$m} in
4320                   x*/$submachine) submachine_used=t ;;
4321                   esac
4322                   if test -n "$d"; then
4323                     case "$sysnames_add_ons" in
4324                     *" $d "*) ;;
4325                     *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4326                     esac
4327                   fi
4328                 fi
4329               fi
4330             done
4331           done
4332         done
4333       done
4334     done
4335   done
4336 done
4337
4338 if test -z "$os_used" && test "$os" != none; then
4339   { { $as_echo "$as_me:$LINENO: error: Operating system $os is not supported." >&5
4340 $as_echo "$as_me: error: Operating system $os is not supported." >&2;}
4341    { (exit 1); exit 1; }; }
4342 fi
4343 if test -z "$machine_used" && test "$machine" != none; then
4344   { { $as_echo "$as_me:$LINENO: error: The $machine is not supported." >&5
4345 $as_echo "$as_me: error: The $machine is not supported." >&2;}
4346    { (exit 1); exit 1; }; }
4347 fi
4348 if test -z "$submachine_used" && test -n "$submachine"; then
4349   { { $as_echo "$as_me:$LINENO: error: The $submachine subspecies of $host_cpu is not supported." >&5
4350 $as_echo "$as_me: error: The $submachine subspecies of $host_cpu is not supported." >&2;}
4351    { (exit 1); exit 1; }; }
4352 fi
4353
4354
4355 # We have now validated the configuration.
4356
4357
4358 # If using ELF, look for an `elf' subdirectory of each machine directory.
4359 # We prepend these rather than inserting them whereever the machine appears
4360 # because things specified by the machine's ELF ABI should override
4361 # OS-specific things, and should always be the same for any OS on the
4362 # machine (otherwise what's the point of an ABI?).
4363 if test "$elf" = yes; then
4364   elf_dirs=
4365   for d in $add_ons_pfx ''; do
4366     for m in $mach; do
4367       if test -d $srcdir/${d}sysdeps$m/elf; then
4368         elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4369       fi
4370     done
4371   done
4372   sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4373 fi
4374
4375
4376 # Expand the list of system names into a full list of directories
4377 # from each element's parent name and Implies file (if present).
4378 set $sysnames
4379 names=
4380 while test $# -gt 0; do
4381   name=$1
4382   shift
4383
4384   case " $names " in *" $name "*)
4385     # Already in the list.
4386     continue
4387   esac
4388
4389   # Report each name as we discover it, so there is no long pause in output.
4390   echo $ECHO_N "$name $ECHO_C" >&6
4391
4392   name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4393
4394   case $name in
4395     /*) xsrcdir= ;;
4396     *)  xsrcdir=$srcdir/ ;;
4397   esac
4398   test -n "$enable_debug_configure" &&
4399   echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4400
4401   if test -f $xsrcdir$name/Implies; then
4402     # Collect more names from the `Implies' file (removing comments).
4403     implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4404     implied=
4405     for x in $implied_candidate; do
4406       found=no
4407       if test -d $xsrcdir$name_base/$x; then
4408         implied="$implied $name_base/$x";
4409         found=yes
4410       fi
4411       for d in $add_ons_pfx ''; do
4412         try="${d}sysdeps/$x"
4413         case $d in
4414          /*) try_srcdir= ;;
4415          *) try_srcdir=$srcdir/ ;;
4416         esac
4417         test -n "$enable_debug_configure" &&
4418          echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4419         if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4420         then
4421           implied="$implied $try"
4422           found=yes
4423           case "$sysnames_add_ons" in
4424           *" $d "*) ;;
4425           *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4426           esac
4427         fi
4428       done
4429       if test $found = no; then
4430         { $as_echo "$as_me:$LINENO: WARNING: $name/Implies specifies nonexistent $x" >&5
4431 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4432       fi
4433     done
4434   else
4435     implied=
4436   fi
4437
4438   # Add NAME to the list of names.
4439   names="$names $name"
4440
4441   # Find the parent of NAME, using the empty string if it has none.
4442   parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4443
4444   # Add the names implied by NAME, and NAME's parent (if it has one), to
4445   # the list of names to be processed (the argument list).  We prepend the
4446   # implied names to the list and append the parent.  We want implied
4447   # directories to come before further directories inferred from the
4448   # configuration components; this ensures that for sysv4, unix/common
4449   # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4450   # after sysv4).
4451   sysnames="`echo $implied $* $parent`"
4452   test -n "$sysnames" && set $sysnames
4453 done
4454
4455 # Add the default directories.
4456 default_sysnames=sysdeps/generic
4457 if test "$elf" = yes; then
4458   default_sysnames="sysdeps/generic/elf $default_sysnames"
4459 fi
4460 sysnames="$names $default_sysnames"
4461
4462 # The other names were emitted during the scan.
4463 { $as_echo "$as_me:$LINENO: result: $default_sysnames" >&5
4464 $as_echo "$default_sysnames" >&6; }
4465
4466 # Collect the list of add-ons that supply partial sysdeps trees.
4467 sysdeps_add_ons=
4468 for add_on in $add_ons; do
4469   case "$add_on" in
4470   /*) xsrcdir= ;;
4471   *) xsrcdir="$srcdir/" ;;
4472   esac
4473
4474   test -d "$xsrcdir$add_on/sysdeps" || {
4475     case "$configured_add_ons " in
4476     *" $add_on "*) ;;
4477     *|'')
4478       { { $as_echo "$as_me:$LINENO: error: add-on $add_on has no configure fragment or sysdeps tree" >&5
4479 $as_echo "$as_me: error: add-on $add_on has no configure fragment or sysdeps tree" >&2;}
4480    { (exit 1); exit 1; }; }
4481       ;;
4482     esac
4483     continue
4484   }
4485
4486   sysdeps_add_ons="$sysdeps_add_ons $add_on"
4487   case "$sysnames_add_ons" in
4488   *" $add_on/ "*) ;;
4489   *|'')
4490     { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4491 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4492     continue ;;
4493   esac
4494
4495   found=no
4496   for d in $sysnames; do
4497     case "$d" in
4498     $add_on/sysdeps/*) ;;
4499     *) continue ;;
4500     esac
4501     (cd "$xsrcdir$d" && for f in *[!~]; do
4502        case "$f" in
4503        sys|bits)
4504          for ff in $f/*.h; do
4505            test -d "$ff" || { test -e "$ff" && exit 88; }
4506          done
4507          ;;
4508        *)
4509          test -d "$f" || { test -e "$f" && exit 88; }
4510          ;;
4511        esac
4512      done)
4513     if test $? -eq 88; then
4514       found=yes
4515       break
4516     fi
4517   done
4518   if test $found = no; then
4519     { $as_echo "$as_me:$LINENO: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4520 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4521   fi
4522 done
4523
4524
4525
4526 ### Locate tools.
4527
4528 # Find a good install program.  We prefer a C program (faster),
4529 # so one script is as good as another.  But avoid the broken or
4530 # incompatible versions:
4531 # SysV /etc/install, /usr/sbin/install
4532 # SunOS /usr/etc/install
4533 # IRIX /sbin/install
4534 # AIX /bin/install
4535 # AmigaOS /C/install, which installs bootblocks on floppy discs
4536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4539 # OS/2's system install, which has a completely different semantic
4540 # ./install, which can be erroneously created by make from ./install.sh.
4541 # Reject install programs that cannot install multiple files.
4542 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4543 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4544 if test -z "$INSTALL"; then
4545 if test "${ac_cv_path_install+set}" = set; then
4546   $as_echo_n "(cached) " >&6
4547 else
4548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553   # Account for people who put trailing slashes in PATH elements.
4554 case $as_dir/ in
4555   ./ | .// | /cC/* | \
4556   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4557   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4558   /usr/ucb/* ) ;;
4559   *)
4560     # OSF1 and SCO ODT 3.0 have their own names for install.
4561     # Don't use installbsd from OSF since it installs stuff as root
4562     # by default.
4563     for ac_prog in ginstall scoinst install; do
4564       for ac_exec_ext in '' $ac_executable_extensions; do
4565         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4566           if test $ac_prog = install &&
4567             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4568             # AIX install.  It has an incompatible calling convention.
4569             :
4570           elif test $ac_prog = install &&
4571             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4572             # program-specific install script used by HP pwplus--don't use.
4573             :
4574           else
4575             rm -rf conftest.one conftest.two conftest.dir
4576             echo one > conftest.one
4577             echo two > conftest.two
4578             mkdir conftest.dir
4579             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4580               test -s conftest.one && test -s conftest.two &&
4581               test -s conftest.dir/conftest.one &&
4582               test -s conftest.dir/conftest.two
4583             then
4584               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4585               break 3
4586             fi
4587           fi
4588         fi
4589       done
4590     done
4591     ;;
4592 esac
4593
4594 done
4595 IFS=$as_save_IFS
4596
4597 rm -rf conftest.one conftest.two conftest.dir
4598
4599 fi
4600   if test "${ac_cv_path_install+set}" = set; then
4601     INSTALL=$ac_cv_path_install
4602   else
4603     # As a last resort, use the slow shell script.  Don't cache a
4604     # value for INSTALL within a source directory, because that will
4605     # break other packages using the cache if that directory is
4606     # removed, or if the value is a relative name.
4607     INSTALL=$ac_install_sh
4608   fi
4609 fi
4610 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4611 $as_echo "$INSTALL" >&6; }
4612
4613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4614 # It thinks the first close brace ends the variable substitution.
4615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4616
4617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4618
4619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4620
4621 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4622   # The makefiles need to use a different form to find it in $srcdir.
4623   INSTALL='\$(..)./scripts/install-sh -c'
4624 fi
4625 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4626 $as_echo_n "checking whether ln -s works... " >&6; }
4627 LN_S=$as_ln_s
4628 if test "$LN_S" = "ln -s"; then
4629   { $as_echo "$as_me:$LINENO: result: yes" >&5
4630 $as_echo "yes" >&6; }
4631 else
4632   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4633 $as_echo "no, using $LN_S" >&6; }
4634 fi
4635
4636
4637 # Was a --with-binutils option given?
4638 if test -n "$path_binutils"; then
4639     # Make absolute; ensure a single trailing slash.
4640     path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4641     CC="$CC -B$path_binutils"
4642 fi
4643 AS=`$CC -print-prog-name=as`
4644 LD=`$CC -print-prog-name=ld`
4645 AR=`$CC -print-prog-name=ar`
4646
4647 OBJDUMP=`$CC -print-prog-name=objdump`
4648
4649
4650 # ranlib has to be treated a bit differently since it might not exist at all.
4651 ac_ranlib=`$CC -print-prog-name=ranlib`
4652 if test "x$ac_ranlib" = xranlib; then
4653 # This extra check has to happen since gcc simply echos the parameter in
4654 # case it cannot find the value in its own directories.
4655 if test -n "$ac_tool_prefix"; then
4656   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_RANLIB+set}" = set; then
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -n "$RANLIB"; then
4664   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4674     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 fi
4682 fi
4683 RANLIB=$ac_cv_prog_RANLIB
4684 if test -n "$RANLIB"; then
4685   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4686 $as_echo "$RANLIB" >&6; }
4687 else
4688   { $as_echo "$as_me:$LINENO: result: no" >&5
4689 $as_echo "no" >&6; }
4690 fi
4691
4692
4693 fi
4694 if test -z "$ac_cv_prog_RANLIB"; then
4695   ac_ct_RANLIB=$RANLIB
4696   # Extract the first word of "ranlib", so it can be a program name with args.
4697 set dummy ranlib; ac_word=$2
4698 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4701   $as_echo_n "(cached) " >&6
4702 else
4703   if test -n "$ac_ct_RANLIB"; then
4704   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711   for ac_exec_ext in '' $ac_executable_extensions; do
4712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713     ac_cv_prog_ac_ct_RANLIB="ranlib"
4714     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4715     break 2
4716   fi
4717 done
4718 done
4719 IFS=$as_save_IFS
4720
4721 fi
4722 fi
4723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4724 if test -n "$ac_ct_RANLIB"; then
4725   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4726 $as_echo "$ac_ct_RANLIB" >&6; }
4727 else
4728   { $as_echo "$as_me:$LINENO: result: no" >&5
4729 $as_echo "no" >&6; }
4730 fi
4731
4732   if test "x$ac_ct_RANLIB" = x; then
4733     RANLIB=":"
4734   else
4735     case $cross_compiling:$ac_tool_warned in
4736 yes:)
4737 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739 ac_tool_warned=yes ;;
4740 esac
4741     RANLIB=$ac_ct_RANLIB
4742   fi
4743 else
4744   RANLIB="$ac_cv_prog_RANLIB"
4745 fi
4746
4747 else
4748   RANLIB=$ac_ranlib
4749 fi
4750
4751
4752 # Determine whether we are using GNU binutils.
4753 { $as_echo "$as_me:$LINENO: checking whether $AS is GNU as" >&5
4754 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4755 if test "${libc_cv_prog_as_gnu+set}" = set; then
4756   $as_echo_n "(cached) " >&6
4757 else
4758   # Most GNU programs take a -v and spit out some text including
4759 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
4760 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4761   libc_cv_prog_as_gnu=yes
4762 else
4763   libc_cv_prog_as_gnu=no
4764 fi
4765 rm -fr contest*
4766 fi
4767 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_as_gnu" >&5
4768 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4769 rm -f a.out
4770 gnu_as=$libc_cv_prog_as_gnu
4771
4772 { $as_echo "$as_me:$LINENO: checking whether $LD is GNU ld" >&5
4773 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4774 if test "${libc_cv_prog_ld_gnu+set}" = set; then
4775   $as_echo_n "(cached) " >&6
4776 else
4777   # Most GNU programs take a -v and spit out some text including
4778 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
4779 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4780   libc_cv_prog_ld_gnu=yes
4781 else
4782   libc_cv_prog_ld_gnu=no
4783 fi
4784 rm -fr contest*
4785 fi
4786 { $as_echo "$as_me:$LINENO: result: $libc_cv_prog_ld_gnu" >&5
4787 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4788 gnu_ld=$libc_cv_prog_ld_gnu
4789
4790
4791 # Accept binutils 2.13 or newer.
4792 for ac_prog in $AS
4793 do
4794   # Extract the first word of "$ac_prog", so it can be a program name with args.
4795 set dummy $ac_prog; ac_word=$2
4796 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if test "${ac_cv_prog_AS+set}" = set; then
4799   $as_echo_n "(cached) " >&6
4800 else
4801   if test -n "$AS"; then
4802   ac_cv_prog_AS="$AS" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809   for ac_exec_ext in '' $ac_executable_extensions; do
4810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4811     ac_cv_prog_AS="$ac_prog"
4812     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813     break 2
4814   fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 fi
4820 fi
4821 AS=$ac_cv_prog_AS
4822 if test -n "$AS"; then
4823   { $as_echo "$as_me:$LINENO: result: $AS" >&5
4824 $as_echo "$AS" >&6; }
4825 else
4826   { $as_echo "$as_me:$LINENO: result: no" >&5
4827 $as_echo "no" >&6; }
4828 fi
4829
4830
4831   test -n "$AS" && break
4832 done
4833
4834 if test -z "$AS"; then
4835   ac_verc_fail=yes
4836 else
4837   # Found it, now check the version.
4838   { $as_echo "$as_me:$LINENO: checking version of $AS" >&5
4839 $as_echo_n "checking version of $AS... " >&6; }
4840   ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4841   case $ac_prog_version in
4842     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4843     2.1[3-9]*)
4844        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4845     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4846
4847   esac
4848   { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4849 $as_echo "$ac_prog_version" >&6; }
4850 fi
4851 if test $ac_verc_fail = yes; then
4852   AS=: critic_missing="$critic_missing as"
4853 fi
4854
4855 for ac_prog in $LD
4856 do
4857   # Extract the first word of "$ac_prog", so it can be a program name with args.
4858 set dummy $ac_prog; ac_word=$2
4859 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 $as_echo_n "checking for $ac_word... " >&6; }
4861 if test "${ac_cv_prog_LD+set}" = set; then
4862   $as_echo_n "(cached) " >&6
4863 else
4864   if test -n "$LD"; then
4865   ac_cv_prog_LD="$LD" # Let the user override the test.
4866 else
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872   for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     ac_cv_prog_LD="$ac_prog"
4875     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882 fi
4883 fi
4884 LD=$ac_cv_prog_LD
4885 if test -n "$LD"; then
4886   { $as_echo "$as_me:$LINENO: result: $LD" >&5
4887 $as_echo "$LD" >&6; }
4888 else
4889   { $as_echo "$as_me:$LINENO: result: no" >&5
4890 $as_echo "no" >&6; }
4891 fi
4892
4893
4894   test -n "$LD" && break
4895 done
4896
4897 if test -z "$LD"; then
4898   ac_verc_fail=yes
4899 else
4900   # Found it, now check the version.
4901   { $as_echo "$as_me:$LINENO: checking version of $LD" >&5
4902 $as_echo_n "checking version of $LD... " >&6; }
4903   ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4904   case $ac_prog_version in
4905     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4906     2.1[3-9]*)
4907        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4908     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4909
4910   esac
4911   { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
4912 $as_echo "$ac_prog_version" >&6; }
4913 fi
4914 if test $ac_verc_fail = yes; then
4915   LD=: critic_missing="$critic_missing ld"
4916 fi
4917
4918
4919 # We need the physical current working directory.  We cannot use the
4920 # "pwd -P" shell builtin since that's not portable.  Instead we try to
4921 # find a pwd binary.  Note that assigning to the PWD environment
4922 # variable might have some interesting side effects, so we don't do
4923 # that.
4924 # Extract the first word of "pwd", so it can be a program name with args.
4925 set dummy pwd; ac_word=$2
4926 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_path_PWD_P+set}" = set; then
4929   $as_echo_n "(cached) " >&6
4930 else
4931   case $PWD_P in
4932   [\\/]* | ?:[\\/]*)
4933   ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4934   ;;
4935   *)
4936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4938 do
4939   IFS=$as_save_IFS
4940   test -z "$as_dir" && as_dir=.
4941   for ac_exec_ext in '' $ac_executable_extensions; do
4942   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943     ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4944     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945     break 2
4946   fi
4947 done
4948 done
4949 IFS=$as_save_IFS
4950
4951   test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4952   ;;
4953 esac
4954 fi
4955 PWD_P=$ac_cv_path_PWD_P
4956 if test -n "$PWD_P"; then
4957   { $as_echo "$as_me:$LINENO: result: $PWD_P" >&5
4958 $as_echo "$PWD_P" >&6; }
4959 else
4960   { $as_echo "$as_me:$LINENO: result: no" >&5
4961 $as_echo "no" >&6; }
4962 fi
4963
4964
4965 if test "$PWD_P" = no; then
4966   { { $as_echo "$as_me:$LINENO: error: *** A pwd binary could not be found." >&5
4967 $as_echo "$as_me: error: *** A pwd binary could not be found." >&2;}
4968    { (exit 1); exit 1; }; }
4969 fi
4970
4971 # These programs are version sensitive.
4972
4973 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4974 do
4975   # Extract the first word of "$ac_prog", so it can be a program name with args.
4976 set dummy $ac_prog; ac_word=$2
4977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if test "${ac_cv_prog_CC+set}" = set; then
4980   $as_echo_n "(cached) " >&6
4981 else
4982   if test -n "$CC"; then
4983   ac_cv_prog_CC="$CC" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990   for ac_exec_ext in '' $ac_executable_extensions; do
4991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992     ac_cv_prog_CC="$ac_prog"
4993     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997 done
4998 IFS=$as_save_IFS
4999
5000 fi
5001 fi
5002 CC=$ac_cv_prog_CC
5003 if test -n "$CC"; then
5004   { $as_echo "$as_me:$LINENO: result: $CC" >&5
5005 $as_echo "$CC" >&6; }
5006 else
5007   { $as_echo "$as_me:$LINENO: result: no" >&5
5008 $as_echo "no" >&6; }
5009 fi
5010
5011
5012   test -n "$CC" && break
5013 done
5014
5015 if test -z "$CC"; then
5016   ac_verc_fail=yes
5017 else
5018   # Found it, now check the version.
5019   { $as_echo "$as_me:$LINENO: checking version of $CC" >&5
5020 $as_echo_n "checking version of $CC... " >&6; }
5021   ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
5022   case $ac_prog_version in
5023     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5024     3.4* | 4.[0-9]* )
5025        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5026     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5027
5028   esac
5029   { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5030 $as_echo "$ac_prog_version" >&6; }
5031 fi
5032 if test $ac_verc_fail = yes; then
5033   critic_missing="$critic_missing gcc"
5034 fi
5035
5036 for ac_prog in gnumake gmake make
5037 do
5038   # Extract the first word of "$ac_prog", so it can be a program name with args.
5039 set dummy $ac_prog; ac_word=$2
5040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 $as_echo_n "checking for $ac_word... " >&6; }
5042 if test "${ac_cv_prog_MAKE+set}" = set; then
5043   $as_echo_n "(cached) " >&6
5044 else
5045   if test -n "$MAKE"; then
5046   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051   IFS=$as_save_IFS
5052   test -z "$as_dir" && as_dir=.
5053   for ac_exec_ext in '' $ac_executable_extensions; do
5054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055     ac_cv_prog_MAKE="$ac_prog"
5056     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057     break 2
5058   fi
5059 done
5060 done
5061 IFS=$as_save_IFS
5062
5063 fi
5064 fi
5065 MAKE=$ac_cv_prog_MAKE
5066 if test -n "$MAKE"; then
5067   { $as_echo "$as_me:$LINENO: result: $MAKE" >&5
5068 $as_echo "$MAKE" >&6; }
5069 else
5070   { $as_echo "$as_me:$LINENO: result: no" >&5
5071 $as_echo "no" >&6; }
5072 fi
5073
5074
5075   test -n "$MAKE" && break
5076 done
5077
5078 if test -z "$MAKE"; then
5079   ac_verc_fail=yes
5080 else
5081   # Found it, now check the version.
5082   { $as_echo "$as_me:$LINENO: checking version of $MAKE" >&5
5083 $as_echo_n "checking version of $MAKE... " >&6; }
5084   ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5085   case $ac_prog_version in
5086     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5087     3.79* | 3.[89]*)
5088        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5089     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5090
5091   esac
5092   { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5093 $as_echo "$ac_prog_version" >&6; }
5094 fi
5095 if test $ac_verc_fail = yes; then
5096   critic_missing="$critic_missing make"
5097 fi
5098
5099
5100 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5101 do
5102   # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy $ac_prog; ac_word=$2
5104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_prog_MSGFMT+set}" = set; then
5107   $as_echo_n "(cached) " >&6
5108 else
5109   if test -n "$MSGFMT"; then
5110   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119     ac_cv_prog_MSGFMT="$ac_prog"
5120     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 MSGFMT=$ac_cv_prog_MSGFMT
5130 if test -n "$MSGFMT"; then
5131   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5132 $as_echo "$MSGFMT" >&6; }
5133 else
5134   { $as_echo "$as_me:$LINENO: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139   test -n "$MSGFMT" && break
5140 done
5141
5142 if test -z "$MSGFMT"; then
5143   ac_verc_fail=yes
5144 else
5145   # Found it, now check the version.
5146   { $as_echo "$as_me:$LINENO: checking version of $MSGFMT" >&5
5147 $as_echo_n "checking version of $MSGFMT... " >&6; }
5148   ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5149   case $ac_prog_version in
5150     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5151     0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5152        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5153     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5154
5155   esac
5156   { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5157 $as_echo "$ac_prog_version" >&6; }
5158 fi
5159 if test $ac_verc_fail = yes; then
5160   MSGFMT=: aux_missing="$aux_missing msgfmt"
5161 fi
5162
5163 for ac_prog in makeinfo
5164 do
5165   # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
5170   $as_echo_n "(cached) " >&6
5171 else
5172   if test -n "$MAKEINFO"; then
5173   ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180   for ac_exec_ext in '' $ac_executable_extensions; do
5181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182     ac_cv_prog_MAKEINFO="$ac_prog"
5183     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 MAKEINFO=$ac_cv_prog_MAKEINFO
5193 if test -n "$MAKEINFO"; then
5194   { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5195 $as_echo "$MAKEINFO" >&6; }
5196 else
5197   { $as_echo "$as_me:$LINENO: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202   test -n "$MAKEINFO" && break
5203 done
5204
5205 if test -z "$MAKEINFO"; then
5206   ac_verc_fail=yes
5207 else
5208   # Found it, now check the version.
5209   { $as_echo "$as_me:$LINENO: checking version of $MAKEINFO" >&5
5210 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5211   ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5212   case $ac_prog_version in
5213     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5214     4.*)
5215        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5216     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5217
5218   esac
5219   { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5220 $as_echo "$ac_prog_version" >&6; }
5221 fi
5222 if test $ac_verc_fail = yes; then
5223   MAKEINFO=: aux_missing="$aux_missing makeinfo"
5224 fi
5225
5226 for ac_prog in sed
5227 do
5228   # Extract the first word of "$ac_prog", so it can be a program name with args.
5229 set dummy $ac_prog; ac_word=$2
5230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5231 $as_echo_n "checking for $ac_word... " >&6; }
5232 if test "${ac_cv_prog_SED+set}" = set; then
5233   $as_echo_n "(cached) " >&6
5234 else
5235   if test -n "$SED"; then
5236   ac_cv_prog_SED="$SED" # Let the user override the test.
5237 else
5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243   for ac_exec_ext in '' $ac_executable_extensions; do
5244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245     ac_cv_prog_SED="$ac_prog"
5246     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250 done
5251 IFS=$as_save_IFS
5252
5253 fi
5254 fi
5255 SED=$ac_cv_prog_SED
5256 if test -n "$SED"; then
5257   { $as_echo "$as_me:$LINENO: result: $SED" >&5
5258 $as_echo "$SED" >&6; }
5259 else
5260   { $as_echo "$as_me:$LINENO: result: no" >&5
5261 $as_echo "no" >&6; }
5262 fi
5263
5264
5265   test -n "$SED" && break
5266 done
5267
5268 if test -z "$SED"; then
5269   ac_verc_fail=yes
5270 else
5271   # Found it, now check the version.
5272   { $as_echo "$as_me:$LINENO: checking version of $SED" >&5
5273 $as_echo_n "checking version of $SED... " >&6; }
5274   ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5275   case $ac_prog_version in
5276     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5277     3.0[2-9]*|3.[1-9]*|[4-9]*)
5278        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5279     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5280
5281   esac
5282   { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
5283 $as_echo "$ac_prog_version" >&6; }
5284 fi
5285 if test $ac_verc_fail = yes; then
5286   SED=: aux_missing="$aux_missing sed"
5287 fi
5288
5289
5290 for ac_prog in autoconf
5291 do
5292   # Extract the first word of "$ac_prog", so it can be a program name with args.
5293 set dummy $ac_prog; ac_word=$2
5294 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if test "${ac_cv_prog_AUTOCONF+set}" = set; then
5297   $as_echo_n "(cached) " >&6
5298 else
5299   if test -n "$AUTOCONF"; then
5300   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307   for ac_exec_ext in '' $ac_executable_extensions; do
5308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309     ac_cv_prog_AUTOCONF="$ac_prog"
5310     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5311     break 2
5312   fi
5313 done
5314 done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 AUTOCONF=$ac_cv_prog_AUTOCONF
5320 if test -n "$AUTOCONF"; then
5321   { $as_echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5322 $as_echo "$AUTOCONF" >&6; }
5323 else
5324   { $as_echo "$as_me:$LINENO: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328
5329   test -n "$AUTOCONF" && break
5330 done
5331 test -n "$AUTOCONF" || AUTOCONF="no"
5332
5333 case "x$AUTOCONF" in
5334 xno|x|x:) AUTOCONF=no ;;
5335 *)
5336   { $as_echo "$as_me:$LINENO: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5337 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5338 if test "${libc_cv_autoconf_works+set}" = set; then
5339   $as_echo_n "(cached) " >&6
5340 else
5341     if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5342     libc_cv_autoconf_works=yes
5343   else
5344     libc_cv_autoconf_works=no
5345   fi
5346 fi
5347 { $as_echo "$as_me:$LINENO: result: $libc_cv_autoconf_works" >&5
5348 $as_echo "$libc_cv_autoconf_works" >&6; }
5349   test $libc_cv_autoconf_works = yes || AUTOCONF=no
5350   ;;
5351 esac
5352 if test "x$with_cvs" = xyes && test "x$AUTOCONF" = xno; then
5353   # If --without-cvs they probably won't change configure.in, so no complaints.
5354   aux_missing="$aux_missing autoconf"
5355 fi
5356
5357 test -n "$critic_missing" && { { $as_echo "$as_me:$LINENO: error:
5358 *** These critical programs are missing or too old:$critic_missing
5359 *** Check the INSTALL file for required versions." >&5
5360 $as_echo "$as_me: error:
5361 *** These critical programs are missing or too old:$critic_missing
5362 *** Check the INSTALL file for required versions." >&2;}
5363    { (exit 1); exit 1; }; }
5364
5365 test -n "$aux_missing" && { $as_echo "$as_me:$LINENO: WARNING:
5366 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5367 *** some features will be disabled.
5368 *** Check the INSTALL file for required versions." >&5
5369 $as_echo "$as_me: WARNING:
5370 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5371 *** some features will be disabled.
5372 *** Check the INSTALL file for required versions." >&2;}
5373
5374 # if using special system headers, find out the compiler's sekrit
5375 # header directory and add that to the list.  NOTE: Only does the right
5376 # thing on a system that doesn't need fixincludes.  (Not presently a problem.)
5377 if test -n "$sysheaders"; then
5378   SYSINCLUDES=-nostdinc
5379   for d in include include-fixed; do
5380     i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5381     SYSINCLUDES="$SYSINCLUDES -isystem $i"
5382   done
5383   SYSINCLUDES="$SYSINCLUDES \
5384 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5385   if test -n "$CXX"; then
5386     cxxversion=`$CXX -dumpversion 2>&5` &&
5387     cxxmachine=`$CXX -dumpmachine 2>&5` &&
5388     cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5389     CXX_SYSINCLUDES="-isystem $cxxheaders \
5390 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5391   fi
5392 fi
5393
5394
5395
5396 # check if ranlib is necessary
5397 { $as_echo "$as_me:$LINENO: checking whether ranlib is necessary" >&5
5398 $as_echo_n "checking whether ranlib is necessary... " >&6; }
5399 if test "${libc_cv_ranlib_necessary+set}" = set; then
5400   $as_echo_n "(cached) " >&6
5401 else
5402   cat > conftest.c <<EOF
5403 int a;
5404 char b;
5405 void c(void) {}
5406 EOF
5407 $CC $CFLAGS $CPPFLAGS -c conftest.c
5408 $AR cr conftest.a conftest.o
5409 cp conftest.a conftest2.a
5410 $RANLIB conftest.a
5411 if cmp -s conftest.a conftest2.a; then
5412   libc_cv_ranlib_necessary=no
5413 else
5414   libc_cv_ranlib_necessary=yes
5415 fi
5416 rm -rf conftest*
5417 fi
5418 { $as_echo "$as_me:$LINENO: result: $libc_cv_ranlib_necessary" >&5
5419 $as_echo "$libc_cv_ranlib_necessary" >&6; }
5420 if test "$libc_cv_ranlib_necessary" = no; then
5421  RANLIB=:
5422 fi
5423
5424 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5425 # since this would lead to problems installing/building glibc.
5426 # LD_LIBRARY_PATH contains the current directory if one of the following
5427 # is true:
5428 # - one of the terminals (":" and ";") is the first or last sign
5429 # - two terminals occur directly after each other
5430 # - the path contains an element with a dot in it
5431 { $as_echo "$as_me:$LINENO: checking LD_LIBRARY_PATH variable" >&5
5432 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5433 case ${LD_LIBRARY_PATH} in
5434   [:\;]* | *[:\;] | *[:\;][:\;]* |  *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5435     ld_library_path_setting="contains current directory"
5436     ;;
5437   *)
5438     ld_library_path_setting="ok"
5439     ;;
5440 esac
5441 { $as_echo "$as_me:$LINENO: result: $ld_library_path_setting" >&5
5442 $as_echo "$ld_library_path_setting" >&6; }
5443 if test "$ld_library_path_setting" != "ok"; then
5444 { { $as_echo "$as_me:$LINENO: error:
5445 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5446 *** building glibc. Please change the environment variable
5447 *** and run configure again." >&5
5448 $as_echo "$as_me: error:
5449 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5450 *** building glibc. Please change the environment variable
5451 *** and run configure again." >&2;}
5452    { (exit 1); exit 1; }; }
5453 fi
5454
5455 { $as_echo "$as_me:$LINENO: checking whether GCC supports -static-libgcc" >&5
5456 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5457 if test "${libc_cv_gcc_static_libgcc+set}" = set; then
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5461   libc_cv_gcc_static_libgcc=
5462 else
5463   libc_cv_gcc_static_libgcc=-static-libgcc
5464 fi
5465 fi
5466 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_static_libgcc" >&5
5467 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5468
5469
5470 # Extract the first word of "bash", so it can be a program name with args.
5471 set dummy bash; ac_word=$2
5472 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if test "${ac_cv_path_BASH_SHELL+set}" = set; then
5475   $as_echo_n "(cached) " >&6
5476 else
5477   case $BASH_SHELL in
5478   [\\/]* | ?:[\\/]*)
5479   ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5480   ;;
5481   *)
5482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5483 for as_dir in $PATH
5484 do
5485   IFS=$as_save_IFS
5486   test -z "$as_dir" && as_dir=.
5487   for ac_exec_ext in '' $ac_executable_extensions; do
5488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5489     ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5491     break 2
5492   fi
5493 done
5494 done
5495 IFS=$as_save_IFS
5496
5497   test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5498   ;;
5499 esac
5500 fi
5501 BASH_SHELL=$ac_cv_path_BASH_SHELL
5502 if test -n "$BASH_SHELL"; then
5503   { $as_echo "$as_me:$LINENO: result: $BASH_SHELL" >&5
5504 $as_echo "$BASH_SHELL" >&6; }
5505 else
5506   { $as_echo "$as_me:$LINENO: result: no" >&5
5507 $as_echo "no" >&6; }
5508 fi
5509
5510
5511 if test "$BASH_SHELL" != no &&
5512    $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5513              && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5514   libc_cv_have_bash2=yes
5515 else
5516   libc_cv_have_bash2=no
5517 fi
5518
5519
5520 if test "$BASH_SHELL" = no; then
5521   # Extract the first word of "ksh", so it can be a program name with args.
5522 set dummy ksh; ac_word=$2
5523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_path_KSH+set}" = set; then
5526   $as_echo_n "(cached) " >&6
5527 else
5528   case $KSH in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538   for ac_exec_ext in '' $ac_executable_extensions; do
5539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540     ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5541     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548   test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5549   ;;
5550 esac
5551 fi
5552 KSH=$ac_cv_path_KSH
5553 if test -n "$KSH"; then
5554   { $as_echo "$as_me:$LINENO: result: $KSH" >&5
5555 $as_echo "$KSH" >&6; }
5556 else
5557   { $as_echo "$as_me:$LINENO: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562   if test "$KSH" = no; then
5563     libc_cv_have_ksh=no
5564   else
5565     libc_cv_have_ksh=yes
5566   fi
5567 else
5568   KSH="$BASH_SHELL"
5569
5570   libc_cv_have_ksh=yes
5571 fi
5572
5573
5574 for ac_prog in gawk mawk nawk awk
5575 do
5576   # Extract the first word of "$ac_prog", so it can be a program name with args.
5577 set dummy $ac_prog; ac_word=$2
5578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if test "${ac_cv_prog_AWK+set}" = set; then
5581   $as_echo_n "(cached) " >&6
5582 else
5583   if test -n "$AWK"; then
5584   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589   IFS=$as_save_IFS
5590   test -z "$as_dir" && as_dir=.
5591   for ac_exec_ext in '' $ac_executable_extensions; do
5592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593     ac_cv_prog_AWK="$ac_prog"
5594     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595     break 2
5596   fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 AWK=$ac_cv_prog_AWK
5604 if test -n "$AWK"; then
5605   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
5606 $as_echo "$AWK" >&6; }
5607 else
5608   { $as_echo "$as_me:$LINENO: result: no" >&5
5609 $as_echo "no" >&6; }
5610 fi
5611
5612
5613   test -n "$AWK" && break
5614 done
5615
5616 # Extract the first word of "perl", so it can be a program name with args.
5617 set dummy perl; ac_word=$2
5618 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if test "${ac_cv_path_PERL+set}" = set; then
5621   $as_echo_n "(cached) " >&6
5622 else
5623   case $PERL in
5624   [\\/]* | ?:[\\/]*)
5625   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5626   ;;
5627   *)
5628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633   for ac_exec_ext in '' $ac_executable_extensions; do
5634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5636     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640 done
5641 IFS=$as_save_IFS
5642
5643   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5644   ;;
5645 esac
5646 fi
5647 PERL=$ac_cv_path_PERL
5648 if test -n "$PERL"; then
5649   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
5650 $as_echo "$PERL" >&6; }
5651 else
5652   { $as_echo "$as_me:$LINENO: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656
5657 if test "$PERL" != no &&
5658    (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5659   PERL=no
5660 fi
5661 # Extract the first word of "install-info", so it can be a program name with args.
5662 set dummy install-info; ac_word=$2
5663 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5666   $as_echo_n "(cached) " >&6
5667 else
5668   case $INSTALL_INFO in
5669   [\\/]* | ?:[\\/]*)
5670   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5671   ;;
5672   *)
5673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5675 for as_dir in $as_dummy
5676 do
5677   IFS=$as_save_IFS
5678   test -z "$as_dir" && as_dir=.
5679   for ac_exec_ext in '' $ac_executable_extensions; do
5680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5681     ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5682     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5683     break 2
5684   fi
5685 done
5686 done
5687 IFS=$as_save_IFS
5688
5689   test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5690   ;;
5691 esac
5692 fi
5693 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5694 if test -n "$INSTALL_INFO"; then
5695   { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5696 $as_echo "$INSTALL_INFO" >&6; }
5697 else
5698   { $as_echo "$as_me:$LINENO: result: no" >&5
5699 $as_echo "no" >&6; }
5700 fi
5701
5702
5703 # Extract the first word of "bison", so it can be a program name with args.
5704 set dummy bison; ac_word=$2
5705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if test "${ac_cv_path_BISON+set}" = set; then
5708   $as_echo_n "(cached) " >&6
5709 else
5710   case $BISON in
5711   [\\/]* | ?:[\\/]*)
5712   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5713   ;;
5714   *)
5715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5717 for as_dir in $as_dummy
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721   for ac_exec_ext in '' $ac_executable_extensions; do
5722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5723     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5724     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728 done
5729 IFS=$as_save_IFS
5730
5731   test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5732   ;;
5733 esac
5734 fi
5735 BISON=$ac_cv_path_BISON
5736 if test -n "$BISON"; then
5737   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
5738 $as_echo "$BISON" >&6; }
5739 else
5740   { $as_echo "$as_me:$LINENO: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745
5746 { $as_echo "$as_me:$LINENO: checking for signed size_t type" >&5
5747 $as_echo_n "checking for signed size_t type... " >&6; }
5748 if test "${libc_cv_signed_size_t+set}" = set; then
5749   $as_echo_n "(cached) " >&6
5750 else
5751   echo '#include <stddef.h>
5752 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5753 if eval "$ac_cpp conftest.c 2>/dev/null" \
5754 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5755   libc_cv_signed_size_t=no
5756 else
5757   libc_cv_signed_size_t=yes
5758 fi
5759 rm -f conftest*
5760 fi
5761 { $as_echo "$as_me:$LINENO: result: $libc_cv_signed_size_t" >&5
5762 $as_echo "$libc_cv_signed_size_t" >&6; }
5763 if test $libc_cv_signed_size_t = yes; then
5764     cat >> confdefs.h <<\EOF
5765 #undef __SIZE_TYPE__
5766 #define __SIZE_TYPE__ unsigned
5767 EOF
5768 fi
5769
5770 { $as_echo "$as_me:$LINENO: checking for libc-friendly stddef.h" >&5
5771 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5772 if test "${libc_cv_friendly_stddef+set}" = set; then
5773   $as_echo_n "(cached) " >&6
5774 else
5775   cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 #define __need_size_t
5782 #define __need_wchar_t
5783 #include <stddef.h>
5784 #define __need_NULL
5785 #include <stddef.h>
5786 int
5787 main ()
5788 {
5789 size_t size; wchar_t wchar;
5790 #ifdef offsetof
5791 #error stddef.h ignored __need_*
5792 #endif
5793 if (&size == NULL || &wchar == NULL) abort ();
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802   *) ac_try_echo=$ac_try;;
5803 esac
5804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5805 $as_echo "$ac_try_echo") >&5
5806   (eval "$ac_compile") 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } && {
5813          test -z "$ac_c_werror_flag" ||
5814          test ! -s conftest.err
5815        } && test -s conftest.$ac_objext; then
5816   libc_cv_friendly_stddef=yes
5817 else
5818   $as_echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.$ac_ext >&5
5820
5821         libc_cv_friendly_stddef=no
5822 fi
5823
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 fi
5826 { $as_echo "$as_me:$LINENO: result: $libc_cv_friendly_stddef" >&5
5827 $as_echo "$libc_cv_friendly_stddef" >&6; }
5828 if test $libc_cv_friendly_stddef = yes; then
5829   config_vars="$config_vars
5830 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5831 fi
5832
5833 { $as_echo "$as_me:$LINENO: checking whether we need to use -P to assemble .S files" >&5
5834 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5835 if test "${libc_cv_need_minus_P+set}" = set; then
5836   $as_echo_n "(cached) " >&6
5837 else
5838   cat > conftest.S <<EOF
5839 #include "confdefs.h"
5840 /* Nothing whatsoever.  */
5841 EOF
5842 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5844   (eval $ac_try) 2>&5
5845   ac_status=$?
5846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847   (exit $ac_status); }; }; then
5848   libc_cv_need_minus_P=no
5849 else
5850   libc_cv_need_minus_P=yes
5851 fi
5852 rm -f conftest*
5853 fi
5854 { $as_echo "$as_me:$LINENO: result: $libc_cv_need_minus_P" >&5
5855 $as_echo "$libc_cv_need_minus_P" >&6; }
5856 if test $libc_cv_need_minus_P = yes; then
5857   config_vars="$config_vars
5858 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5859 fi
5860
5861 { $as_echo "$as_me:$LINENO: checking whether .text pseudo-op must be used" >&5
5862 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
5863 if test "${libc_cv_dot_text+set}" = set; then
5864   $as_echo_n "(cached) " >&6
5865 else
5866   cat > conftest.s <<EOF
5867 .text
5868 EOF
5869 libc_cv_dot_text=
5870 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; }; then
5876   libc_cv_dot_text=.text
5877 fi
5878 rm -f conftest*
5879 fi
5880
5881 if test -z "$libc_cv_dot_text"; then
5882   { $as_echo "$as_me:$LINENO: result: no" >&5
5883 $as_echo "no" >&6; }
5884 else
5885   { $as_echo "$as_me:$LINENO: result: yes" >&5
5886 $as_echo "yes" >&6; }
5887 fi
5888
5889 { $as_echo "$as_me:$LINENO: checking for assembler global-symbol directive" >&5
5890 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
5891 if test "${libc_cv_asm_global_directive+set}" = set; then
5892   $as_echo_n "(cached) " >&6
5893 else
5894   libc_cv_asm_global_directive=UNKNOWN
5895 for ac_globl in .globl .global .EXPORT; do
5896   cat > conftest.s <<EOF
5897         ${libc_cv_dot_text}
5898         ${ac_globl} foo
5899 foo:
5900 EOF
5901   if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903   (eval $ac_try) 2>&5
5904   ac_status=$?
5905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); }; }; then
5907     libc_cv_asm_global_directive=${ac_globl}
5908   fi
5909   rm -f conftest*
5910   test $libc_cv_asm_global_directive != UNKNOWN && break
5911 done
5912 fi
5913 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_global_directive" >&5
5914 $as_echo "$libc_cv_asm_global_directive" >&6; }
5915 if test $libc_cv_asm_global_directive = UNKNOWN; then
5916   { { $as_echo "$as_me:$LINENO: error: cannot determine asm global directive" >&5
5917 $as_echo "$as_me: error: cannot determine asm global directive" >&2;}
5918    { (exit 1); exit 1; }; }
5919 else
5920   cat >>confdefs.h <<_ACEOF
5921 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
5922 _ACEOF
5923
5924 fi
5925
5926 { $as_echo "$as_me:$LINENO: checking for .set assembler directive" >&5
5927 $as_echo_n "checking for .set assembler directive... " >&6; }
5928 if test "${libc_cv_asm_set_directive+set}" = set; then
5929   $as_echo_n "(cached) " >&6
5930 else
5931   cat > conftest.s <<EOF
5932 ${libc_cv_dot_text}
5933 foo:
5934 .set glibc_conftest_frobozz,foo
5935 $libc_cv_asm_global_directive glibc_conftest_frobozz
5936 EOF
5937 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5938 # (but it doesn't work), so we must do a linking check to be sure.
5939 cat > conftest1.c <<\EOF
5940 extern int glibc_conftest_frobozz;
5941 void _start() { glibc_conftest_frobozz = 1; }
5942 EOF
5943 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5944             -nostartfiles -nostdlib \
5945             -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5946   libc_cv_asm_set_directive=yes
5947 else
5948   libc_cv_asm_set_directive=no
5949 fi
5950 rm -f conftest*
5951 fi
5952 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_set_directive" >&5
5953 $as_echo "$libc_cv_asm_set_directive" >&6; }
5954 if test $libc_cv_asm_set_directive = yes; then
5955   cat >>confdefs.h <<\_ACEOF
5956 #define HAVE_ASM_SET_DIRECTIVE 1
5957 _ACEOF
5958
5959 fi
5960
5961 { $as_echo "$as_me:$LINENO: checking for assembler .type directive prefix" >&5
5962 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
5963 if test "${libc_cv_asm_type_prefix+set}" = set; then
5964   $as_echo_n "(cached) " >&6
5965 else
5966   libc_cv_asm_type_prefix=no
5967 for ac_try_prefix in '@' '%' '#'; do
5968   cat > conftest.s <<EOF
5969         ${libc_cv_dot_text}
5970         ${libc_cv_asm_global_directive} foo
5971         .type foo, ${ac_try_prefix}object
5972         .size foo, 1
5973 foo:
5974         .byte 1
5975 EOF
5976   if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
5977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5978   (eval $ac_try) 2>&5
5979   ac_status=$?
5980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981   (exit $ac_status); }; }; then
5982     libc_cv_asm_type_prefix=${ac_try_prefix}
5983   fi
5984   rm -f conftest*
5985   test "x$libc_cv_asm_type_prefix" != xno && break
5986 done
5987 fi
5988 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_type_prefix" >&5
5989 $as_echo "$libc_cv_asm_type_prefix" >&6; }
5990 if test "x$libc_cv_asm_type_prefix" != xno; then
5991   cat >>confdefs.h <<_ACEOF
5992 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
5993 _ACEOF
5994
5995 fi
5996
5997 # For the multi-arch option we need support in the assembler.
5998 if test "$multi_arch" = yes; then
5999   if test "x$libc_cv_asm_type_prefix" != xno; then
6000 { $as_echo "$as_me:$LINENO: checking for assembler gnu_indirect_function symbol type support" >&5
6001 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
6002 if test "${libc_cv_asm_gnu_indirect_function+set}" = set; then
6003   $as_echo_n "(cached) " >&6
6004 else
6005   cat > conftest.s <<EOF
6006 .type foo,%gnu_indirect_function
6007 EOF
6008 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
6009 then
6010   libc_cv_asm_gnu_indirect_function=yes
6011 else
6012   libc_cv_asm_gnu_indirect_function=no
6013 fi
6014 rm -f conftest*
6015 fi
6016 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_gnu_indirect_function" >&5
6017 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
6018   else
6019     libc_cv_asm_gnu_indirect_function=no
6020   fi
6021   if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
6022     { { $as_echo "$as_me:$LINENO: error: --enable-multi-arch support requires assembler and linker support" >&5
6023 $as_echo "$as_me: error: --enable-multi-arch support requires assembler and linker support" >&2;}
6024    { (exit 1); exit 1; }; }
6025   fi
6026 fi
6027
6028 { $as_echo "$as_me:$LINENO: checking for .symver assembler directive" >&5
6029 $as_echo_n "checking for .symver assembler directive... " >&6; }
6030 if test "${libc_cv_asm_symver_directive+set}" = set; then
6031   $as_echo_n "(cached) " >&6
6032 else
6033   cat > conftest.s <<EOF
6034 ${libc_cv_dot_text}
6035 _sym:
6036 .symver _sym,sym@VERS
6037 EOF
6038 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6039   libc_cv_asm_symver_directive=yes
6040 else
6041   libc_cv_asm_symver_directive=no
6042 fi
6043 rm -f conftest*
6044 fi
6045 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_symver_directive" >&5
6046 $as_echo "$libc_cv_asm_symver_directive" >&6; }
6047 { $as_echo "$as_me:$LINENO: checking for ld --version-script" >&5
6048 $as_echo_n "checking for ld --version-script... " >&6; }
6049 if test "${libc_cv_ld_version_script_option+set}" = set; then
6050   $as_echo_n "(cached) " >&6
6051 else
6052   if test $libc_cv_asm_symver_directive = yes; then
6053   cat > conftest.s <<EOF
6054 ${libc_cv_dot_text}
6055 _sym:
6056 .symver _sym,sym@VERS
6057 EOF
6058   cat > conftest.map <<EOF
6059 VERS_1 {
6060         global: sym;
6061 };
6062
6063 VERS_2 {
6064         global: sym;
6065 } VERS_1;
6066 EOF
6067   if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
6068     if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
6069                                 -o conftest.so conftest.o
6070                                 -nostartfiles -nostdlib
6071                                 -Wl,--version-script,conftest.map
6072                        1>&5'
6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074   (eval $ac_try) 2>&5
6075   ac_status=$?
6076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; };
6078     then
6079       libc_cv_ld_version_script_option=yes
6080     else
6081       libc_cv_ld_version_script_option=no
6082     fi
6083   else
6084     libc_cv_ld_version_script_option=no
6085   fi
6086 else
6087   libc_cv_ld_version_script_option=no
6088 fi
6089 rm -f conftest*
6090 fi
6091 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_version_script_option" >&5
6092 $as_echo "$libc_cv_ld_version_script_option" >&6; }
6093 if test $shared != no &&
6094    test $libc_cv_asm_symver_directive = yes &&
6095    test $libc_cv_ld_version_script_option = yes &&
6096    test $enable_versioning = yes; then
6097   VERSIONING=yes
6098   cat >>confdefs.h <<\_ACEOF
6099 #define DO_VERSIONING 1
6100 _ACEOF
6101
6102 else
6103   VERSIONING=no
6104 fi
6105
6106
6107 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
6108   echo "\
6109 *** WARNING: You should not compile GNU libc without versioning. Not using
6110 *** versioning will introduce incompatibilities so that old binaries
6111 *** will not run anymore.
6112 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
6113 fi
6114 if test $elf = yes; then
6115   { $as_echo "$as_me:$LINENO: checking for .previous assembler directive" >&5
6116 $as_echo_n "checking for .previous assembler directive... " >&6; }
6117 if test "${libc_cv_asm_previous_directive+set}" = set; then
6118   $as_echo_n "(cached) " >&6
6119 else
6120     cat > conftest.s <<EOF
6121 .section foo_section
6122 .previous
6123 EOF
6124   if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126   (eval $ac_try) 2>&5
6127   ac_status=$?
6128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129   (exit $ac_status); }; }; then
6130     libc_cv_asm_previous_directive=yes
6131   else
6132     libc_cv_asm_previous_directive=no
6133   fi
6134   rm -f conftest*
6135 fi
6136 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_previous_directive" >&5
6137 $as_echo "$libc_cv_asm_previous_directive" >&6; }
6138   if test $libc_cv_asm_previous_directive = yes; then
6139     cat >>confdefs.h <<\_ACEOF
6140 #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
6141 _ACEOF
6142
6143   else
6144     { $as_echo "$as_me:$LINENO: checking for .popsection assembler directive" >&5
6145 $as_echo_n "checking for .popsection assembler directive... " >&6; }
6146 if test "${libc_cv_asm_popsection_directive+set}" = set; then
6147   $as_echo_n "(cached) " >&6
6148 else
6149       cat > conftest.s <<EOF
6150 .pushsection foo_section
6151 .popsection
6152 EOF
6153     if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155   (eval $ac_try) 2>&5
6156   ac_status=$?
6157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); }; }; then
6159       libc_cv_asm_popsection_directive=yes
6160     else
6161       libc_cv_asm_popsection_directive=no
6162     fi
6163     rm -f conftest*
6164 fi
6165 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_popsection_directive" >&5
6166 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6167     if test $libc_cv_asm_popsection_directive = yes; then
6168       cat >>confdefs.h <<\_ACEOF
6169 #define HAVE_ASM_POPSECTION_DIRECTIVE 1
6170 _ACEOF
6171
6172     fi
6173   fi
6174   { $as_echo "$as_me:$LINENO: checking for .protected and .hidden assembler directive" >&5
6175 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6176 if test "${libc_cv_asm_protected_directive+set}" = set; then
6177   $as_echo_n "(cached) " >&6
6178 else
6179     cat > conftest.s <<EOF
6180 .protected foo
6181 foo:
6182 .hidden bar
6183 bar:
6184 EOF
6185   if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187   (eval $ac_try) 2>&5
6188   ac_status=$?
6189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190   (exit $ac_status); }; }; then
6191     libc_cv_asm_protected_directive=yes
6192   else
6193     { { $as_echo "$as_me:$LINENO: error: assembler support for symbol visibility is required" >&5
6194 $as_echo "$as_me: error: assembler support for symbol visibility is required" >&2;}
6195    { (exit 1); exit 1; }; }
6196   fi
6197   rm -f conftest*
6198 fi
6199 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_protected_directive" >&5
6200 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6201
6202   if test $libc_cv_asm_protected_directive = yes; then
6203     { $as_echo "$as_me:$LINENO: checking whether __attribute__((visibility())) is supported" >&5
6204 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6205 if test "${libc_cv_visibility_attribute+set}" = set; then
6206   $as_echo_n "(cached) " >&6
6207 else
6208   cat > conftest.c <<EOF
6209                   int foo __attribute__ ((visibility ("hidden"))) = 1;
6210                   int bar __attribute__ ((visibility ("protected"))) = 1;
6211 EOF
6212                   libc_cv_visibility_attribute=no
6213                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215   (eval $ac_try) 2>&5
6216   ac_status=$?
6217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); }; }; then
6219                     if grep '\.hidden.*foo' conftest.s >/dev/null; then
6220                       if grep '\.protected.*bar' conftest.s >/dev/null; then
6221                         libc_cv_visibility_attribute=yes
6222                       fi
6223                     fi
6224                   fi
6225                   rm -f conftest.cs
6226
6227 fi
6228 { $as_echo "$as_me:$LINENO: result: $libc_cv_visibility_attribute" >&5
6229 $as_echo "$libc_cv_visibility_attribute" >&6; }
6230     if test $libc_cv_visibility_attribute != yes; then
6231       { { $as_echo "$as_me:$LINENO: error: compiler support for visibility attribute is required" >&5
6232 $as_echo "$as_me: error: compiler support for visibility attribute is required" >&2;}
6233    { (exit 1); exit 1; }; }
6234     fi
6235   fi
6236
6237   if test $libc_cv_visibility_attribute = yes; then
6238     { $as_echo "$as_me:$LINENO: checking for broken __attribute__((visibility()))" >&5
6239 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6240 if test "${libc_cv_broken_visibility_attribute+set}" = set; then
6241   $as_echo_n "(cached) " >&6
6242 else
6243   cat > conftest.c <<EOF
6244                   int foo (int x);
6245                   int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6246                   int bar (int x) { return x; }
6247 EOF
6248                   libc_cv_broken_visibility_attribute=yes
6249                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s1>&5'
6250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251   (eval $ac_try) 2>&5
6252   ac_status=$?
6253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254   (exit $ac_status); }; }; then
6255                     if grep '\.hidden[  _]foo' conftest.s >/dev/null; then
6256                       libc_cv_broken_visibility_attribute=no
6257                     fi
6258                   fi
6259                   rm -f conftest.c conftest.s
6260
6261 fi
6262 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_visibility_attribute" >&5
6263 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6264     if test $libc_cv_broken_visibility_attribute = yes; then
6265       { { $as_echo "$as_me:$LINENO: error: working compiler support for visibility attribute is required" >&5
6266 $as_echo "$as_me: error: working compiler support for visibility attribute is required" >&2;}
6267    { (exit 1); exit 1; }; }
6268     fi
6269   fi
6270
6271   { $as_echo "$as_me:$LINENO: checking for broken __attribute__((alias()))" >&5
6272 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6273 if test "${libc_cv_broken_alias_attribute+set}" = set; then
6274   $as_echo_n "(cached) " >&6
6275 else
6276   cat > conftest.c <<EOF
6277                   extern int foo (int x) __asm ("xyzzy");
6278                   int bar (int x) { return x; }
6279                   extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6280                   extern int dfoo;
6281                   extern __typeof (dfoo) dfoo __asm ("abccb");
6282                   int dfoo = 1;
6283 EOF
6284                   libc_cv_broken_alias_attribute=yes
6285                   if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287   (eval $ac_try) 2>&5
6288   ac_status=$?
6289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); }; }; then
6291                     if grep 'xyzzy' conftest.s >/dev/null &&
6292                        grep 'abccb' conftest.s >/dev/null; then
6293                       libc_cv_broken_alias_attribute=no
6294                     fi
6295                   fi
6296                   rm -f conftest.c conftest.s
6297
6298 fi
6299 { $as_echo "$as_me:$LINENO: result: $libc_cv_broken_alias_attribute" >&5
6300 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6301   if test $libc_cv_broken_alias_attribute = yes; then
6302     { { $as_echo "$as_me:$LINENO: error: working alias attribute support required" >&5
6303 $as_echo "$as_me: error: working alias attribute support required" >&2;}
6304    { (exit 1); exit 1; }; }
6305   fi
6306
6307   if test $libc_cv_visibility_attribute = yes; then
6308     { $as_echo "$as_me:$LINENO: checking whether to put _rtld_local into .sdata section" >&5
6309 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6310 if test "${libc_cv_have_sdata_section+set}" = set; then
6311   $as_echo_n "(cached) " >&6
6312 else
6313   echo "int i;" > conftest.c
6314                   libc_cv_have_sdata_section=no
6315                   if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6316                      | grep '\.sdata' >/dev/null; then
6317                     libc_cv_have_sdata_section=yes
6318                   fi
6319                   rm -f conftest.c conftest.so
6320
6321 fi
6322 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_sdata_section" >&5
6323 $as_echo "$libc_cv_have_sdata_section" >&6; }
6324     if test $libc_cv_have_sdata_section = yes; then
6325       cat >>confdefs.h <<\_ACEOF
6326 #define HAVE_SDATA_SECTION 1
6327 _ACEOF
6328
6329     fi
6330   fi
6331
6332   { $as_echo "$as_me:$LINENO: checking for .preinit_array/.init_array/.fini_array support" >&5
6333 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6334 if test "${libc_cv_initfini_array+set}" = set; then
6335   $as_echo_n "(cached) " >&6
6336 else
6337     cat > conftest.c <<EOF
6338 int _start (void) { return 0; }
6339 int __start (void) { return 0; }
6340 int foo (void) { return 1; }
6341 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6342 EOF
6343   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6344                      -static -nostartfiles -nostdlib 1>&5'
6345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346   (eval $ac_try) 2>&5
6347   ac_status=$?
6348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349   (exit $ac_status); }; }
6350   then
6351     if readelf -S conftest | fgrep INIT_ARRAY > /dev/null; then
6352       libc_cv_initfini_array=yes
6353     else
6354       libc_cv_initfini_array=no
6355     fi
6356   else
6357     libc_cv_initfini_array=no
6358   fi
6359   rm -f conftest*
6360 fi
6361 { $as_echo "$as_me:$LINENO: result: $libc_cv_initfini_array" >&5
6362 $as_echo "$libc_cv_initfini_array" >&6; }
6363   if test $libc_cv_initfini_array != yes; then
6364     { { $as_echo "$as_me:$LINENO: error: Need linker with .init_array/.fini_array support." >&5
6365 $as_echo "$as_me: error: Need linker with .init_array/.fini_array support." >&2;}
6366    { (exit 1); exit 1; }; }
6367   fi
6368
6369   { $as_echo "$as_me:$LINENO: checking for libunwind-support in compiler" >&5
6370 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6371 if test "${libc_cv_cc_with_libunwind+set}" = set; then
6372   $as_echo_n "(cached) " >&6
6373 else
6374
6375     cat > conftest.c <<EOF
6376 int main (void) { return 0; }
6377 EOF
6378     if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6379        conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6380       libc_cv_cc_with_libunwind=yes
6381     else
6382       libc_cv_cc_with_libunwind=no
6383     fi
6384     rm -f conftest*
6385 fi
6386 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_with_libunwind" >&5
6387 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6388
6389   if test $libc_cv_cc_with_libunwind = yes; then
6390     cat >>confdefs.h <<\_ACEOF
6391 #define HAVE_CC_WITH_LIBUNWIND 1
6392 _ACEOF
6393
6394   fi
6395
6396   { $as_echo "$as_me:$LINENO: checking for -z nodelete option" >&5
6397 $as_echo_n "checking for -z nodelete option... " >&6; }
6398 if test "${libc_cv_z_nodelete+set}" = set; then
6399   $as_echo_n "(cached) " >&6
6400 else
6401     cat > conftest.c <<EOF
6402 int _start (void) { return 42; }
6403 EOF
6404   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6405                      -fPIC -shared -o conftest.so conftest.c
6406                      -nostartfiles -nostdlib
6407                      -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409   (eval $ac_try) 2>&5
6410   ac_status=$?
6411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); }; }
6413   then
6414     libc_cv_z_nodelete=yes
6415   else
6416     { { $as_echo "$as_me:$LINENO: error: linker with -z nodelete support required" >&5
6417 $as_echo "$as_me: error: linker with -z nodelete support required" >&2;}
6418    { (exit 1); exit 1; }; }
6419   fi
6420   rm -f conftest*
6421 fi
6422 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodelete" >&5
6423 $as_echo "$libc_cv_z_nodelete" >&6; }
6424
6425   { $as_echo "$as_me:$LINENO: checking for -z nodlopen option" >&5
6426 $as_echo_n "checking for -z nodlopen option... " >&6; }
6427 if test "${libc_cv_z_nodlopen+set}" = set; then
6428   $as_echo_n "(cached) " >&6
6429 else
6430     cat > conftest.c <<EOF
6431 int _start (void) { return 42; }
6432 EOF
6433   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6434                         -fPIC -shared -o conftest.so conftest.c
6435                         -nostartfiles -nostdlib
6436                         -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6438   (eval $ac_try) 2>&5
6439   ac_status=$?
6440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); }; }
6442   then
6443     libc_cv_z_nodlopen=yes
6444   else
6445     { { $as_echo "$as_me:$LINENO: error: linker with -z nodlopen support required" >&5
6446 $as_echo "$as_me: error: linker with -z nodlopen support required" >&2;}
6447    { (exit 1); exit 1; }; }
6448   fi
6449   rm -f conftest*
6450 fi
6451 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_nodlopen" >&5
6452 $as_echo "$libc_cv_z_nodlopen" >&6; }
6453
6454   { $as_echo "$as_me:$LINENO: checking for -z initfirst option" >&5
6455 $as_echo_n "checking for -z initfirst option... " >&6; }
6456 if test "${libc_cv_z_initfirst+set}" = set; then
6457   $as_echo_n "(cached) " >&6
6458 else
6459     cat > conftest.c <<EOF
6460 int _start (void) { return 42; }
6461 EOF
6462   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6463                         -fPIC -shared -o conftest.so conftest.c
6464                         -nostartfiles -nostdlib
6465                         -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467   (eval $ac_try) 2>&5
6468   ac_status=$?
6469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; }
6471   then
6472     libc_cv_z_initfirst=yes
6473   else
6474     { { $as_echo "$as_me:$LINENO: error: linker with -z initfirst support required" >&5
6475 $as_echo "$as_me: error: linker with -z initfirst support required" >&2;}
6476    { (exit 1); exit 1; }; }
6477   fi
6478   rm -f conftest*
6479 fi
6480 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_initfirst" >&5
6481 $as_echo "$libc_cv_z_initfirst" >&6; }
6482
6483   case "$base_machine" in
6484     i[34567]86 | x86_64 | powerpc* | s390* | sparc* | alpha*)
6485       { $as_echo "$as_me:$LINENO: checking for -z relro option" >&5
6486 $as_echo_n "checking for -z relro option... " >&6; }
6487 if test "${libc_cv_z_relro+set}" = set; then
6488   $as_echo_n "(cached) " >&6
6489 else
6490     libc_cv_z_relro=no
6491   if { ac_try='${CC-cc} -v --help 2>&1|grep "z relro" 1>&5'
6492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493   (eval $ac_try) 2>&5
6494   ac_status=$?
6495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496   (exit $ac_status); }; }
6497   then
6498     if { ac_try='${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&5'
6499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500   (eval $ac_try) 2>&5
6501   ac_status=$?
6502   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503   (exit $ac_status); }; }
6504     then
6505       libc_cv_z_relro=yes
6506     fi
6507   fi
6508 fi
6509 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_relro" >&5
6510 $as_echo "$libc_cv_z_relro" >&6; }
6511       if test "$libc_cv_z_relro" = no; then
6512         { { $as_echo "$as_me:$LINENO: error: linker with -z relro support required" >&5
6513 $as_echo "$as_me: error: linker with -z relro support required" >&2;}
6514    { (exit 1); exit 1; }; }
6515       fi
6516       ;;
6517     *) ;;
6518    esac
6519
6520   { $as_echo "$as_me:$LINENO: checking for -Bgroup option" >&5
6521 $as_echo_n "checking for -Bgroup option... " >&6; }
6522 if test "${libc_cv_Bgroup+set}" = set; then
6523   $as_echo_n "(cached) " >&6
6524 else
6525     cat > conftest.c <<EOF
6526 int _start (void) { return 42; }
6527 EOF
6528   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6529                               -fPIC -shared -o conftest.so conftest.c
6530                               -Wl,-Bgroup -nostdlib 1>&5'
6531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532   (eval $ac_try) 2>&5
6533   ac_status=$?
6534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535   (exit $ac_status); }; }
6536   then
6537     libc_cv_Bgroup=yes
6538   else
6539     libc_cv_Bgroup=no
6540   fi
6541   rm -f conftest*
6542 fi
6543 { $as_echo "$as_me:$LINENO: result: $libc_cv_Bgroup" >&5
6544 $as_echo "$libc_cv_Bgroup" >&6; }
6545
6546
6547   { $as_echo "$as_me:$LINENO: checking for libgcc_s suffix" >&5
6548 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6549 if test "${libc_cv_libgcc_s_suffix+set}" = set; then
6550   $as_echo_n "(cached) " >&6
6551 else
6552     cat > conftest.c <<EOF
6553 int main (void) { return 0; }
6554 EOF
6555   libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6556                            -fPIC -shared -shared-libgcc -o conftest.so \
6557                            conftest.c -v 2>&1 >/dev/null \
6558                            | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6559   rm -f conftest*
6560 fi
6561 { $as_echo "$as_me:$LINENO: result: $libc_cv_libgcc_s_suffix" >&5
6562 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6563
6564
6565   { $as_echo "$as_me:$LINENO: checking for --as-needed option" >&5
6566 $as_echo_n "checking for --as-needed option... " >&6; }
6567 if test "${libc_cv_as_needed+set}" = set; then
6568   $as_echo_n "(cached) " >&6
6569 else
6570     cat > conftest.c <<EOF
6571 int main (void) { return 0; }
6572 EOF
6573   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6574                               -fPIC -shared -o conftest.so conftest.c
6575                               -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6576                               -nostdlib 1>&5'
6577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578   (eval $ac_try) 2>&5
6579   ac_status=$?
6580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581   (exit $ac_status); }; }
6582   then
6583     libc_cv_as_needed=yes
6584   else
6585     libc_cv_as_needed=no
6586   fi
6587   rm -f conftest*
6588 fi
6589 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_needed" >&5
6590 $as_echo "$libc_cv_as_needed" >&6; }
6591
6592
6593   ASFLAGS_config=
6594   { $as_echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
6595 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6596 if test "${libc_cv_as_noexecstack+set}" = set; then
6597   $as_echo_n "(cached) " >&6
6598 else
6599     cat > conftest.c <<EOF
6600 void foo (void) { }
6601 EOF
6602   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6603                      -S -o conftest.s conftest.c 1>&5'
6604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605   (eval $ac_try) 2>&5
6606   ac_status=$?
6607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608   (exit $ac_status); }; } \
6609      && grep -q .note.GNU-stack conftest.s \
6610      && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6611                        -c -o conftest.o conftest.s 1>&5'
6612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613   (eval $ac_try) 2>&5
6614   ac_status=$?
6615   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; }
6617   then
6618     libc_cv_as_noexecstack=yes
6619   else
6620     libc_cv_as_noexecstack=no
6621   fi
6622   rm -f conftest*
6623 fi
6624 { $as_echo "$as_me:$LINENO: result: $libc_cv_as_noexecstack" >&5
6625 $as_echo "$libc_cv_as_noexecstack" >&6; }
6626   if test $libc_cv_as_noexecstack = yes; then
6627     ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6628   fi
6629
6630
6631   { $as_echo "$as_me:$LINENO: checking for -z combreloc" >&5
6632 $as_echo_n "checking for -z combreloc... " >&6; }
6633 if test "${libc_cv_z_combreloc+set}" = set; then
6634   $as_echo_n "(cached) " >&6
6635 else
6636     cat > conftest.c <<EOF
6637 extern int bar (int);
6638 extern int mumble;
6639 int foo (void) { return bar (mumble); }
6640 EOF
6641   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6642                         -fPIC -shared -o conftest.so conftest.c
6643                         -nostdlib -nostartfiles
6644                         -Wl,-z,combreloc 1>&5'
6645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646   (eval $ac_try) 2>&5
6647   ac_status=$?
6648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; }
6650   then
6651     if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6652       libc_cv_z_combreloc=yes
6653     else
6654       libc_cv_z_combreloc=no
6655     fi
6656   else
6657     libc_cv_z_combreloc=no
6658   fi
6659   rm -f conftest*
6660 fi
6661 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_combreloc" >&5
6662 $as_echo "$libc_cv_z_combreloc" >&6; }
6663   if test "$libc_cv_z_combreloc" = yes; then
6664     cat >>confdefs.h <<\_ACEOF
6665 #define HAVE_Z_COMBRELOC 1
6666 _ACEOF
6667
6668   fi
6669
6670
6671   { $as_echo "$as_me:$LINENO: checking for -z execstack" >&5
6672 $as_echo_n "checking for -z execstack... " >&6; }
6673 if test "${libc_cv_z_execstack+set}" = set; then
6674   $as_echo_n "(cached) " >&6
6675 else
6676     cat > conftest.c <<EOF
6677 int _start (void) { return 42; }
6678 EOF
6679   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6680                               -fPIC -shared -o conftest.so conftest.c
6681                               -Wl,-z,execstack -nostdlib
6682                               1>&5'
6683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684   (eval $ac_try) 2>&5
6685   ac_status=$?
6686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); }; }
6688   then
6689     libc_cv_z_execstack=yes
6690   else
6691     libc_cv_z_execstack=no
6692   fi
6693   rm -f conftest*
6694 fi
6695 { $as_echo "$as_me:$LINENO: result: $libc_cv_z_execstack" >&5
6696 $as_echo "$libc_cv_z_execstack" >&6; }
6697
6698
6699   { $as_echo "$as_me:$LINENO: checking for -fpie" >&5
6700 $as_echo_n "checking for -fpie... " >&6; }
6701 if test "${libc_cv_fpie+set}" = set; then
6702   $as_echo_n "(cached) " >&6
6703 else
6704     cat > conftest.c <<EOF
6705 int foo;
6706 main () { return 0;}
6707 EOF
6708   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6709                               -o conftest conftest.c 1>&5'
6710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711   (eval $ac_try) 2>&5
6712   ac_status=$?
6713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); }; }
6715   then
6716     libc_cv_fpie=yes
6717   else
6718     libc_cv_fpie=no
6719   fi
6720   rm -f conftest*
6721 fi
6722 { $as_echo "$as_me:$LINENO: result: $libc_cv_fpie" >&5
6723 $as_echo "$libc_cv_fpie" >&6; }
6724
6725
6726
6727   { $as_echo "$as_me:$LINENO: checking for --hash-style option" >&5
6728 $as_echo_n "checking for --hash-style option... " >&6; }
6729 if test "${libc_cv_hashstyle+set}" = set; then
6730   $as_echo_n "(cached) " >&6
6731 else
6732     cat > conftest.c <<EOF
6733 int _start (void) { return 42; }
6734 EOF
6735   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6736                               -fPIC -shared -o conftest.so conftest.c
6737                               -Wl,--hash-style=both -nostdlib 1>&5'
6738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6739   (eval $ac_try) 2>&5
6740   ac_status=$?
6741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); }; }
6743   then
6744     libc_cv_hashstyle=yes
6745   else
6746     libc_cv_hashstyle=no
6747   fi
6748   rm -f conftest*
6749 fi
6750 { $as_echo "$as_me:$LINENO: result: $libc_cv_hashstyle" >&5
6751 $as_echo "$libc_cv_hashstyle" >&6; }
6752
6753 fi
6754
6755 { $as_echo "$as_me:$LINENO: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6756 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6757 if test "${libc_cv_fno_toplevel_reorder+set}" = set; then
6758   $as_echo_n "(cached) " >&6
6759 else
6760   cat > conftest.c <<EOF
6761 int foo;
6762 EOF
6763 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6764                             conftest.c 1>&5'
6765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766   (eval $ac_try) 2>&5
6767   ac_status=$?
6768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769   (exit $ac_status); }; }
6770 then
6771   libc_cv_fno_toplevel_reorder=yes
6772 else
6773   libc_cv_fno_toplevel_reorder=no
6774 fi
6775 rm -f conftest*
6776 fi
6777 { $as_echo "$as_me:$LINENO: result: $libc_cv_fno_toplevel_reorder" >&5
6778 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6779 if test $libc_cv_fno_toplevel_reorder = yes; then
6780   fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6781 else
6782   fno_unit_at_a_time=-fno-unit-at-a-time
6783 fi
6784
6785
6786 { $as_echo "$as_me:$LINENO: checking for -fstack-protector" >&5
6787 $as_echo_n "checking for -fstack-protector... " >&6; }
6788 if test "${libc_cv_ssp+set}" = set; then
6789   $as_echo_n "(cached) " >&6
6790 else
6791   cat > conftest.c <<EOF
6792 int foo;
6793 main () { return 0;}
6794 EOF
6795 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6796                             -o conftest conftest.c 1>&5'
6797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6798   (eval $ac_try) 2>&5
6799   ac_status=$?
6800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801   (exit $ac_status); }; }
6802 then
6803   libc_cv_ssp=yes
6804 else
6805   libc_cv_ssp=no
6806 fi
6807 rm -f conftest*
6808 fi
6809 { $as_echo "$as_me:$LINENO: result: $libc_cv_ssp" >&5
6810 $as_echo "$libc_cv_ssp" >&6; }
6811
6812
6813 { $as_echo "$as_me:$LINENO: checking for -fgnu89-inline" >&5
6814 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6815 if test "${libc_cv_gnu89_inline+set}" = set; then
6816   $as_echo_n "(cached) " >&6
6817 else
6818   cat > conftest.c <<EOF
6819 int foo;
6820 #ifdef __GNUC_GNU_INLINE__
6821 main () { return 0;}
6822 #else
6823 #error
6824 #endif
6825 EOF
6826 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6827                             -o conftest.s conftest.c 1>&5'
6828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829   (eval $ac_try) 2>&5
6830   ac_status=$?
6831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832   (exit $ac_status); }; }
6833 then
6834   libc_cv_gnu89_inline=yes
6835 else
6836   libc_cv_gnu89_inline=no
6837 fi
6838 rm -f conftest*
6839 fi
6840 { $as_echo "$as_me:$LINENO: result: $libc_cv_gnu89_inline" >&5
6841 $as_echo "$libc_cv_gnu89_inline" >&6; }
6842 if test $libc_cv_gnu89_inline = yes; then
6843   libc_cv_gnu89_inline=-fgnu89-inline
6844 else
6845   libc_cv_gnu89_inline=
6846 fi
6847
6848
6849 if test $elf != yes; then
6850   { $as_echo "$as_me:$LINENO: checking for .init and .fini sections" >&5
6851 $as_echo_n "checking for .init and .fini sections... " >&6; }
6852 if test "${libc_cv_have_initfini+set}" = set; then
6853   $as_echo_n "(cached) " >&6
6854 else
6855   cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861
6862 int
6863 main ()
6864 {
6865 asm (".section .init");
6866                                     asm (".section .fini");
6867                                     asm ("${libc_cv_dot_text}");
6868   ;
6869   return 0;
6870 }
6871 _ACEOF
6872 rm -f conftest.$ac_objext
6873 if { (ac_try="$ac_compile"
6874 case "(($ac_try" in
6875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876   *) ac_try_echo=$ac_try;;
6877 esac
6878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6879 $as_echo "$ac_try_echo") >&5
6880   (eval "$ac_compile") 2>conftest.er1
6881   ac_status=$?
6882   grep -v '^ *+' conftest.er1 >conftest.err
6883   rm -f conftest.er1
6884   cat conftest.err >&5
6885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); } && {
6887          test -z "$ac_c_werror_flag" ||
6888          test ! -s conftest.err
6889        } && test -s conftest.$ac_objext; then
6890   libc_cv_have_initfini=yes
6891 else
6892   $as_echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895         libc_cv_have_initfini=no
6896 fi
6897
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 fi
6900 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_initfini" >&5
6901 $as_echo "$libc_cv_have_initfini" >&6; }
6902     if test $libc_cv_have_initfini = yes; then
6903     cat >>confdefs.h <<\_ACEOF
6904 #define HAVE_INITFINI 1
6905 _ACEOF
6906
6907   fi
6908 fi
6909
6910 if test $elf = yes; then
6911   { $as_echo "$as_me:$LINENO: checking whether cc puts quotes around section names" >&5
6912 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6913 if test "${libc_cv_have_section_quotes+set}" = set; then
6914   $as_echo_n "(cached) " >&6
6915 else
6916   cat > conftest.c <<EOF
6917                   static const int foo
6918                   __attribute__ ((section ("bar"))) = 1;
6919 EOF
6920                   if ${CC-cc} -S conftest.c -o conftest.s; then
6921                     if grep '\.section.*"bar"' conftest.s >/dev/null; then
6922                       libc_cv_have_section_quotes=yes
6923                     else
6924                       libc_cv_have_section_quotes=no
6925                     fi
6926                   else
6927                     libc_cv_have_section_quotes=unknown
6928                   fi
6929                   rm -f conftest.cs
6930
6931 fi
6932 { $as_echo "$as_me:$LINENO: result: $libc_cv_have_section_quotes" >&5
6933 $as_echo "$libc_cv_have_section_quotes" >&6; }
6934   if test $libc_cv_have_section_quotes = yes; then
6935     cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_SECTION_QUOTES 1
6937 _ACEOF
6938
6939   fi
6940 fi
6941
6942
6943
6944 if test $elf = yes; then
6945   libc_cv_asm_underscores=no
6946 else
6947   if test $ac_cv_prog_cc_works = yes; then
6948     { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
6949 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6950 if test "${libc_cv_asm_underscores+set}" = set; then
6951   $as_echo_n "(cached) " >&6
6952 else
6953   cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959 asm ("_glibc_foobar:");
6960 int
6961 main ()
6962 {
6963 glibc_foobar ();
6964   ;
6965   return 0;
6966 }
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (ac_try="$ac_link"
6970 case "(($ac_try" in
6971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972   *) ac_try_echo=$ac_try;;
6973 esac
6974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6975 $as_echo "$ac_try_echo") >&5
6976   (eval "$ac_link") 2>conftest.er1
6977   ac_status=$?
6978   grep -v '^ *+' conftest.er1 >conftest.err
6979   rm -f conftest.er1
6980   cat conftest.err >&5
6981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982   (exit $ac_status); } && {
6983          test -z "$ac_c_werror_flag" ||
6984          test ! -s conftest.err
6985        } && test -s conftest$ac_exeext && {
6986          test "$cross_compiling" = yes ||
6987          $as_test_x conftest$ac_exeext
6988        }; then
6989   libc_cv_asm_underscores=yes
6990 else
6991   $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994         libc_cv_asm_underscores=no
6995 fi
6996
6997 rm -rf conftest.dSYM
6998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6999       conftest$ac_exeext conftest.$ac_ext
7000 fi
7001 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7002 $as_echo "$libc_cv_asm_underscores" >&6; }
7003   else
7004     { $as_echo "$as_me:$LINENO: checking for _ prefix on C symbol names" >&5
7005 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
7006 if test "${libc_cv_asm_underscores+set}" = set; then
7007   $as_echo_n "(cached) " >&6
7008 else
7009   cat > conftest.$ac_ext <<EOF
7010 #line $LINENO "configure"
7011 #include "confdefs.h"
7012 void underscore_test(void) {
7013 return; }
7014 EOF
7015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016   (eval $ac_compile) 2>&5
7017   ac_status=$?
7018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; then
7020   if grep _underscore_test conftest* >/dev/null; then
7021     rm -f conftest*
7022     libc_cv_asm_underscores=yes
7023   else
7024     rm -f conftest*
7025     libc_cv_asm_underscores=no
7026   fi
7027 else
7028   echo "configure: failed program was:" >&5
7029   cat conftest.$ac_ext >&5
7030   rm -f conftest*
7031   libc_cv_asm_underscores=no
7032 fi
7033 rm -f conftest*
7034 fi
7035 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_underscores" >&5
7036 $as_echo "$libc_cv_asm_underscores" >&6; }
7037   fi
7038 fi
7039 if test $libc_cv_asm_underscores = no; then
7040   cat >>confdefs.h <<\_ACEOF
7041 #define NO_UNDERSCORES 1
7042 _ACEOF
7043
7044 fi
7045
7046 if test $elf = yes; then
7047   libc_cv_weak_symbols=yes
7048 fi
7049
7050 { $as_echo "$as_me:$LINENO: checking for assembler .weak directive" >&5
7051 $as_echo_n "checking for assembler .weak directive... " >&6; }
7052 if test "${libc_cv_asm_weak_directive+set}" = set; then
7053   $as_echo_n "(cached) " >&6
7054 else
7055   cat > conftest.s <<EOF
7056 ${libc_cv_dot_text}
7057 ${libc_cv_asm_global_directive} foo
7058 foo:
7059 .weak foo
7060 .weak bar; bar = foo
7061 EOF
7062 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; }; then
7068   libc_cv_asm_weak_directive=yes
7069 else
7070   libc_cv_asm_weak_directive=no
7071 fi
7072 rm -f conftest*
7073 fi
7074 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weak_directive" >&5
7075 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7076
7077 if test $libc_cv_asm_weak_directive = no; then
7078   { $as_echo "$as_me:$LINENO: checking for assembler .weakext directive" >&5
7079 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7080 if test "${libc_cv_asm_weakext_directive+set}" = set; then
7081   $as_echo_n "(cached) " >&6
7082 else
7083   cat > conftest.s <<EOF
7084 ${libc_cv_dot_text}
7085 ${libc_cv_asm_global_directive} foo
7086 foo:
7087 .weakext bar foo
7088 .weakext baz
7089 ${libc_cv_asm_global_directive} baz
7090 baz:
7091 EOF
7092   if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098     libc_cv_asm_weakext_directive=yes
7099   else
7100     libc_cv_asm_weakext_directive=no
7101   fi
7102   rm -f conftest*
7103 fi
7104 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_weakext_directive" >&5
7105 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7106
7107 fi # no .weak
7108
7109 if test $libc_cv_asm_weak_directive = yes; then
7110   cat >>confdefs.h <<\_ACEOF
7111 #define HAVE_ASM_WEAK_DIRECTIVE 1
7112 _ACEOF
7113
7114 elif test $libc_cv_asm_weakext_directive = yes; then
7115   cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_ASM_WEAKEXT_DIRECTIVE 1
7117 _ACEOF
7118
7119 fi
7120
7121 { $as_echo "$as_me:$LINENO: checking whether CFI directives are supported" >&5
7122 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7123 if test "${libc_cv_asm_cfi_directives+set}" = set; then
7124   $as_echo_n "(cached) " >&6
7125 else
7126   case $machine in
7127   sparc/sparc64*) cfi_offset=2047;;
7128   *) cfi_offset=0;;
7129 esac
7130 cat > conftest.s <<EOF
7131         .text
7132         .type   func,%function
7133 func:
7134         .cfi_startproc
7135         .cfi_remember_state
7136         .cfi_rel_offset 1, $cfi_offset
7137         .cfi_endproc
7138 EOF
7139 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7141   (eval $ac_try) 2>&5
7142   ac_status=$?
7143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; }; then
7145   libc_cv_asm_cfi_directives=yes
7146 else
7147   libc_cv_asm_cfi_directives=no
7148 fi
7149 rm -f conftest*
7150 fi
7151 { $as_echo "$as_me:$LINENO: result: $libc_cv_asm_cfi_directives" >&5
7152 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7153 if test $libc_cv_asm_cfi_directives = yes; then
7154   cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_ASM_CFI_DIRECTIVES 1
7156 _ACEOF
7157
7158 fi
7159
7160 { $as_echo "$as_me:$LINENO: checking for ld --no-whole-archive" >&5
7161 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7162 if test "${libc_cv_ld_no_whole_archive+set}" = set; then
7163   $as_echo_n "(cached) " >&6
7164 else
7165   cat > conftest.c <<\EOF
7166 _start () {}
7167 int __eh_pc;
7168 __throw () {}
7169 EOF
7170 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7171                             -nostdlib -nostartfiles -Wl,--no-whole-archive
7172                             -o conftest conftest.c 1>&5'
7173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174   (eval $ac_try) 2>&5
7175   ac_status=$?
7176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; }; then
7178   libc_cv_ld_no_whole_archive=yes
7179 else
7180   libc_cv_ld_no_whole_archive=no
7181 fi
7182 rm -f conftest*
7183 fi
7184 { $as_echo "$as_me:$LINENO: result: $libc_cv_ld_no_whole_archive" >&5
7185 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7186 if test $libc_cv_ld_no_whole_archive = yes; then
7187   no_whole_archive=-Wl,--no-whole-archive
7188 fi
7189
7190 { $as_echo "$as_me:$LINENO: checking for gcc -fexceptions" >&5
7191 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7192 if test "${libc_cv_gcc_exceptions+set}" = set; then
7193   $as_echo_n "(cached) " >&6
7194 else
7195   cat > conftest.c <<\EOF
7196 _start () {}
7197 int __eh_pc;
7198 __throw () {}
7199 EOF
7200 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7201                             -nostdlib -nostartfiles -fexceptions
7202                             -o conftest conftest.c 1>&5'
7203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7204   (eval $ac_try) 2>&5
7205   ac_status=$?
7206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207   (exit $ac_status); }; }; then
7208   libc_cv_gcc_exceptions=yes
7209 else
7210   libc_cv_gcc_exceptions=no
7211 fi
7212 rm -f conftest*
7213 fi
7214 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_exceptions" >&5
7215 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7216 if test $libc_cv_gcc_exceptions = yes; then
7217   exceptions=-fexceptions
7218 fi
7219
7220 if test "$host_cpu" = powerpc ; then
7221 # Check for a bug present in at least versions 2.8.x of GCC
7222 # and versions 1.0.x of EGCS.
7223 { $as_echo "$as_me:$LINENO: checking whether clobbering cr0 causes problems" >&5
7224 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7225 if test "${libc_cv_c_asmcr0_bug+set}" = set; then
7226   $as_echo_n "(cached) " >&6
7227 else
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7235 int
7236 main ()
7237 {
7238
7239   ;
7240   return 0;
7241 }
7242 _ACEOF
7243 rm -f conftest.$ac_objext
7244 if { (ac_try="$ac_compile"
7245 case "(($ac_try" in
7246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247   *) ac_try_echo=$ac_try;;
7248 esac
7249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7250 $as_echo "$ac_try_echo") >&5
7251   (eval "$ac_compile") 2>conftest.er1
7252   ac_status=$?
7253   grep -v '^ *+' conftest.er1 >conftest.err
7254   rm -f conftest.er1
7255   cat conftest.err >&5
7256   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); } && {
7258          test -z "$ac_c_werror_flag" ||
7259          test ! -s conftest.err
7260        } && test -s conftest.$ac_objext; then
7261   libc_cv_c_asmcr0_bug='no'
7262 else
7263   $as_echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266         libc_cv_c_asmcr0_bug='yes'
7267 fi
7268
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7270 fi
7271 { $as_echo "$as_me:$LINENO: result: $libc_cv_c_asmcr0_bug" >&5
7272 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7273 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7274   cat >>confdefs.h <<\_ACEOF
7275 #define BROKEN_PPC_ASM_CR0 1
7276 _ACEOF
7277
7278 fi
7279 fi
7280
7281 { $as_echo "$as_me:$LINENO: checking for __builtin_expect" >&5
7282 $as_echo_n "checking for __builtin_expect... " >&6; }
7283 if test "${libc_cv_gcc_builtin_expect+set}" = set; then
7284   $as_echo_n "(cached) " >&6
7285 else
7286   cat > conftest.c <<EOF
7287 #line $LINENO "configure"
7288 int foo (int a)
7289 {
7290   a = __builtin_expect (a, 10);
7291   return a == 10 ? 0 : 1;
7292 }
7293 EOF
7294 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7295                             -o conftest conftest.c -lgcc >&5'
7296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297   (eval $ac_try) 2>&5
7298   ac_status=$?
7299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; }; then
7301   libc_cv_gcc_builtin_expect=yes
7302 else
7303   libc_cv_gcc_builtin_expect=no
7304 fi
7305 rm -f conftest*
7306 fi
7307 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_expect" >&5
7308 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7309 if test "$libc_cv_gcc_builtin_expect" = yes; then
7310   cat >>confdefs.h <<\_ACEOF
7311 #define HAVE_BUILTIN_EXPECT 1
7312 _ACEOF
7313
7314 fi
7315
7316 { $as_echo "$as_me:$LINENO: checking for __builtin_memset" >&5
7317 $as_echo_n "checking for __builtin_memset... " >&6; }
7318 if test "${libc_cv_gcc_builtin_memset+set}" = set; then
7319   $as_echo_n "(cached) " >&6
7320 else
7321   cat > conftest.c <<\EOF
7322 void zero (void *x)
7323 {
7324   __builtin_memset (x, 0, 1000);
7325 }
7326 EOF
7327 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7328   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329   (eval $ac_try) 2>&5
7330   ac_status=$?
7331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332   (exit $ac_status); }; };
7333 then
7334   libc_cv_gcc_builtin_memset=no
7335 else
7336   libc_cv_gcc_builtin_memset=yes
7337 fi
7338 rm -f conftest*
7339 fi
7340 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_memset" >&5
7341 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7342 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7343   cat >>confdefs.h <<\_ACEOF
7344 #define HAVE_BUILTIN_MEMSET 1
7345 _ACEOF
7346
7347 fi
7348
7349 { $as_echo "$as_me:$LINENO: checking for redirection of built-in functions" >&5
7350 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7351 if test "${libc_cv_gcc_builtin_redirection+set}" = set; then
7352   $as_echo_n "(cached) " >&6
7353 else
7354   cat > conftest.c <<\EOF
7355 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7356 char *foo (const char *a, const char *b)
7357 {
7358   return __builtin_strstr (a, b);
7359 }
7360 EOF
7361 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363   (eval $ac_try) 2>&5
7364   ac_status=$?
7365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); }; };
7367 then
7368   libc_cv_gcc_builtin_redirection=yes
7369 else
7370   libc_cv_gcc_builtin_redirection=no
7371 fi
7372 rm -f conftest*
7373 fi
7374 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_builtin_redirection" >&5
7375 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7376 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7377   cat >>confdefs.h <<\_ACEOF
7378 #define HAVE_BUILTIN_REDIRECTION 1
7379 _ACEOF
7380
7381 fi
7382
7383 if test "x$use__thread" != xno; then
7384   { $as_echo "$as_me:$LINENO: checking for __thread" >&5
7385 $as_echo_n "checking for __thread... " >&6; }
7386 if test "${libc_cv_gcc___thread+set}" = set; then
7387   $as_echo_n "(cached) " >&6
7388 else
7389   cat > conftest.c <<\EOF
7390 __thread int a = 42;
7391 EOF
7392   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394   (eval $ac_try) 2>&5
7395   ac_status=$?
7396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397   (exit $ac_status); }; }; then
7398     libc_cv_gcc___thread=yes
7399   else
7400     libc_cv_gcc___thread=no
7401   fi
7402   rm -f conftest*
7403 fi
7404 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc___thread" >&5
7405 $as_echo "$libc_cv_gcc___thread" >&6; }
7406   if test "$libc_cv_gcc___thread" = yes; then
7407     cat >>confdefs.h <<\_ACEOF
7408 #define HAVE___THREAD 1
7409 _ACEOF
7410
7411   fi
7412 else
7413   libc_cv_gcc___thread=no
7414 fi
7415
7416 if test "$libc_cv_gcc___thread" = yes; then
7417     { $as_echo "$as_me:$LINENO: checking for tls_model attribute" >&5
7418 $as_echo_n "checking for tls_model attribute... " >&6; }
7419 if test "${libc_cv_gcc_tls_model_attr+set}" = set; then
7420   $as_echo_n "(cached) " >&6
7421 else
7422     cat > conftest.c <<\EOF
7423 extern __thread int a __attribute__((tls_model ("initial-exec")));
7424 EOF
7425   if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7427   (eval $ac_try) 2>&5
7428   ac_status=$?
7429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; }; then
7431     libc_cv_gcc_tls_model_attr=yes
7432   else
7433     libc_cv_gcc_tls_model_attr=no
7434   fi
7435   rm -f conftest*
7436 fi
7437 { $as_echo "$as_me:$LINENO: result: $libc_cv_gcc_tls_model_attr" >&5
7438 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7439   if test "$libc_cv_gcc_tls_model_attr" = yes; then
7440     cat >>confdefs.h <<\_ACEOF
7441 #define HAVE_TLS_MODEL_ATTRIBUTE 1
7442 _ACEOF
7443
7444   fi
7445 fi
7446
7447 if test -n "$submachine"; then
7448   { $as_echo "$as_me:$LINENO: checking for compiler option for CPU variant" >&5
7449 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7450 if test "${libc_cv_cc_submachine+set}" = set; then
7451   $as_echo_n "(cached) " >&6
7452 else
7453     libc_cv_cc_submachine=no
7454   for opt in "-march=$submachine" "-mcpu=$submachine"; do
7455     if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457   (eval $ac_try) 2>&5
7458   ac_status=$?
7459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; }; then
7461       libc_cv_cc_submachine="$opt"
7462       break
7463     fi
7464   done
7465 fi
7466 { $as_echo "$as_me:$LINENO: result: $libc_cv_cc_submachine" >&5
7467 $as_echo "$libc_cv_cc_submachine" >&6; }
7468   if test "x$libc_cv_cc_submachine" = xno; then
7469     { { $as_echo "$as_me:$LINENO: error: ${CC-cc} does not support $submachine" >&5
7470 $as_echo "$as_me: error: ${CC-cc} does not support $submachine" >&2;}
7471    { (exit 1); exit 1; }; }
7472   fi
7473 fi
7474
7475
7476 { $as_echo "$as_me:$LINENO: checking for libgd" >&5
7477 $as_echo_n "checking for libgd... " >&6; }
7478 if test "$with_gd" != "no"; then
7479   old_CFLAGS="$CFLAGS"
7480   CFLAGS="$CFLAGS $libgd_include"
7481   old_LDFLAGS="$LDFLAGS"
7482   LDFLAGS="$LDFLAGS $libgd_ldflags"
7483   old_LIBS="$LIBS"
7484   LIBS="$LIBS -lgd -lpng -lz -lm"
7485   cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h.  */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h.  */
7491 #include <gd.h>
7492 int
7493 main ()
7494 {
7495 gdImagePng (0, 0)
7496   ;
7497   return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (ac_try="$ac_link"
7502 case "(($ac_try" in
7503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504   *) ac_try_echo=$ac_try;;
7505 esac
7506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7507 $as_echo "$ac_try_echo") >&5
7508   (eval "$ac_link") 2>conftest.er1
7509   ac_status=$?
7510   grep -v '^ *+' conftest.er1 >conftest.err
7511   rm -f conftest.er1
7512   cat conftest.err >&5
7513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); } && {
7515          test -z "$ac_c_werror_flag" ||
7516          test ! -s conftest.err
7517        } && test -s conftest$ac_exeext && {
7518          test "$cross_compiling" = yes ||
7519          $as_test_x conftest$ac_exeext
7520        }; then
7521   LIBGD=yes
7522 else
7523   $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7525
7526         LIBGD=no
7527 fi
7528
7529 rm -rf conftest.dSYM
7530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7531       conftest$ac_exeext conftest.$ac_ext
7532   CFLAGS="$old_CFLAGS"
7533   LDFLAGS="$old_LDFLAGS"
7534   LIBS="$old_LIBS"
7535 else
7536   LIBGD=no
7537 fi
7538 { $as_echo "$as_me:$LINENO: result: $LIBGD" >&5
7539 $as_echo "$LIBGD" >&6; }
7540
7541
7542 # SELinux detection
7543 if test x$with_selinux = xno ; then
7544   have_selinux=no;
7545 else
7546   # See if we have the SELinux library
7547   { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
7548 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7549 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
7550   $as_echo_n "(cached) " >&6
7551 else
7552   ac_check_lib_save_LIBS=$LIBS
7553 LIBS="-lselinux  $LIBS"
7554 cat >conftest.$ac_ext <<_ACEOF
7555 /* confdefs.h.  */
7556 _ACEOF
7557 cat confdefs.h >>conftest.$ac_ext
7558 cat >>conftest.$ac_ext <<_ACEOF
7559 /* end confdefs.h.  */
7560
7561 /* Override any GCC internal prototype to avoid an error.
7562    Use char because int might match the return type of a GCC
7563    builtin and then its argument prototype would still apply.  */
7564 #ifdef __cplusplus
7565 extern "C"
7566 #endif
7567 char is_selinux_enabled ();
7568 int
7569 main ()
7570 {
7571 return is_selinux_enabled ();
7572   ;
7573   return 0;
7574 }
7575 _ACEOF
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (ac_try="$ac_link"
7578 case "(($ac_try" in
7579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7580   *) ac_try_echo=$ac_try;;
7581 esac
7582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7583 $as_echo "$ac_try_echo") >&5
7584   (eval "$ac_link") 2>conftest.er1
7585   ac_status=$?
7586   grep -v '^ *+' conftest.er1 >conftest.err
7587   rm -f conftest.er1
7588   cat conftest.err >&5
7589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590   (exit $ac_status); } && {
7591          test -z "$ac_c_werror_flag" ||
7592          test ! -s conftest.err
7593        } && test -s conftest$ac_exeext && {
7594          test "$cross_compiling" = yes ||
7595          $as_test_x conftest$ac_exeext
7596        }; then
7597   ac_cv_lib_selinux_is_selinux_enabled=yes
7598 else
7599   $as_echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7601
7602         ac_cv_lib_selinux_is_selinux_enabled=no
7603 fi
7604
7605 rm -rf conftest.dSYM
7606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7607       conftest$ac_exeext conftest.$ac_ext
7608 LIBS=$ac_check_lib_save_LIBS
7609 fi
7610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7611 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7612 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
7613   have_selinux=yes
7614 else
7615   have_selinux=no
7616 fi
7617
7618   # See if we have the SELinux header with the NSCD permissions in it.
7619   if test x$have_selinux = xyes ; then
7620     { $as_echo "$as_me:$LINENO: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7621 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7622     cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h.  */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h.  */
7628 #include <selinux/av_permissions.h>
7629 int
7630 main ()
7631 {
7632 #ifdef NSCD__SHMEMHOST
7633                      return 0;
7634                      #else
7635                      #error NSCD__SHMEMHOST not defined
7636                      #endif
7637   ;
7638   return 0;
7639 }
7640 _ACEOF
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7643 case "(($ac_try" in
7644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645   *) ac_try_echo=$ac_try;;
7646 esac
7647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7648 $as_echo "$ac_try_echo") >&5
7649   (eval "$ac_compile") 2>conftest.er1
7650   ac_status=$?
7651   grep -v '^ *+' conftest.er1 >conftest.err
7652   rm -f conftest.er1
7653   cat conftest.err >&5
7654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } && {
7656          test -z "$ac_c_werror_flag" ||
7657          test ! -s conftest.err
7658        } && test -s conftest.$ac_objext; then
7659   have_selinux=yes
7660 else
7661   $as_echo "$as_me: failed program was:" >&5
7662 sed 's/^/| /' conftest.$ac_ext >&5
7663
7664         have_selinux=no
7665 fi
7666
7667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668     { $as_echo "$as_me:$LINENO: result: $have_selinux" >&5
7669 $as_echo "$have_selinux" >&6; }
7670   fi
7671
7672   if test x$with_selinux = xyes ; then
7673     if test x$have_selinux = xno ; then
7674       { { $as_echo "$as_me:$LINENO: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&5
7675 $as_echo "$as_me: error: SELinux explicitly required, but sufficiently recent SELinux library not found" >&2;}
7676    { (exit 1); exit 1; }; }
7677     fi
7678   fi
7679 fi
7680 # Check if we're building with SELinux support.
7681 if test "x$have_selinux" = xyes; then
7682
7683 cat >>confdefs.h <<\_ACEOF
7684 #define HAVE_SELINUX 1
7685 _ACEOF
7686
7687
7688   # See if we have the libaudit library
7689   { $as_echo "$as_me:$LINENO: checking for audit_log_user_avc_message in -laudit" >&5
7690 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7691 if test "${ac_cv_lib_audit_audit_log_user_avc_message+set}" = set; then
7692   $as_echo_n "(cached) " >&6
7693 else
7694   ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-laudit  $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h.  */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h.  */
7702
7703 /* Override any GCC internal prototype to avoid an error.
7704    Use char because int might match the return type of a GCC
7705    builtin and then its argument prototype would still apply.  */
7706 #ifdef __cplusplus
7707 extern "C"
7708 #endif
7709 char audit_log_user_avc_message ();
7710 int
7711 main ()
7712 {
7713 return audit_log_user_avc_message ();
7714   ;
7715   return 0;
7716 }
7717 _ACEOF
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (ac_try="$ac_link"
7720 case "(($ac_try" in
7721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722   *) ac_try_echo=$ac_try;;
7723 esac
7724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7725 $as_echo "$ac_try_echo") >&5
7726   (eval "$ac_link") 2>conftest.er1
7727   ac_status=$?
7728   grep -v '^ *+' conftest.er1 >conftest.err
7729   rm -f conftest.er1
7730   cat conftest.err >&5
7731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); } && {
7733          test -z "$ac_c_werror_flag" ||
7734          test ! -s conftest.err
7735        } && test -s conftest$ac_exeext && {
7736          test "$cross_compiling" = yes ||
7737          $as_test_x conftest$ac_exeext
7738        }; then
7739   ac_cv_lib_audit_audit_log_user_avc_message=yes
7740 else
7741   $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744         ac_cv_lib_audit_audit_log_user_avc_message=no
7745 fi
7746
7747 rm -rf conftest.dSYM
7748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7749       conftest$ac_exeext conftest.$ac_ext
7750 LIBS=$ac_check_lib_save_LIBS
7751 fi
7752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7753 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7754 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = x""yes; then
7755   have_libaudit=yes
7756 else
7757   have_libaudit=no
7758 fi
7759
7760   if test "x$have_libaudit" = xyes; then
7761
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_LIBAUDIT 1
7764 _ACEOF
7765
7766   fi
7767
7768
7769   # See if we have the libcap library
7770   { $as_echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
7771 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7772 if test "${ac_cv_lib_cap_cap_init+set}" = set; then
7773   $as_echo_n "(cached) " >&6
7774 else
7775   ac_check_lib_save_LIBS=$LIBS
7776 LIBS="-lcap  $LIBS"
7777 cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783
7784 /* Override any GCC internal prototype to avoid an error.
7785    Use char because int might match the return type of a GCC
7786    builtin and then its argument prototype would still apply.  */
7787 #ifdef __cplusplus
7788 extern "C"
7789 #endif
7790 char cap_init ();
7791 int
7792 main ()
7793 {
7794 return cap_init ();
7795   ;
7796   return 0;
7797 }
7798 _ACEOF
7799 rm -f conftest.$ac_objext conftest$ac_exeext
7800 if { (ac_try="$ac_link"
7801 case "(($ac_try" in
7802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803   *) ac_try_echo=$ac_try;;
7804 esac
7805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7806 $as_echo "$ac_try_echo") >&5
7807   (eval "$ac_link") 2>conftest.er1
7808   ac_status=$?
7809   grep -v '^ *+' conftest.er1 >conftest.err
7810   rm -f conftest.er1
7811   cat conftest.err >&5
7812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813   (exit $ac_status); } && {
7814          test -z "$ac_c_werror_flag" ||
7815          test ! -s conftest.err
7816        } && test -s conftest$ac_exeext && {
7817          test "$cross_compiling" = yes ||
7818          $as_test_x conftest$ac_exeext
7819        }; then
7820   ac_cv_lib_cap_cap_init=yes
7821 else
7822   $as_echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7824
7825         ac_cv_lib_cap_cap_init=no
7826 fi
7827
7828 rm -rf conftest.dSYM
7829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7830       conftest$ac_exeext conftest.$ac_ext
7831 LIBS=$ac_check_lib_save_LIBS
7832 fi
7833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
7834 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7835 if test "x$ac_cv_lib_cap_cap_init" = x""yes; then
7836   have_libcap=yes
7837 else
7838   have_libcap=no
7839 fi
7840
7841   if test "x$have_libcap" = xyes; then
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_LIBCAP 1
7845 _ACEOF
7846
7847   fi
7848
7849 fi
7850
7851
7852
7853 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7854 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7855 if test "${ac_cv_path_GREP+set}" = set; then
7856   $as_echo_n "(cached) " >&6
7857 else
7858   if test -z "$GREP"; then
7859   ac_path_GREP_found=false
7860   # Loop through the user's path and test for each of PROGNAME-LIST
7861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7863 do
7864   IFS=$as_save_IFS
7865   test -z "$as_dir" && as_dir=.
7866   for ac_prog in grep ggrep; do
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7869       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7870 # Check for GNU ac_path_GREP and select it if it is found.
7871   # Check for GNU $ac_path_GREP
7872 case `"$ac_path_GREP" --version 2>&1` in
7873 *GNU*)
7874   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7875 *)
7876   ac_count=0
7877   $as_echo_n 0123456789 >"conftest.in"
7878   while :
7879   do
7880     cat "conftest.in" "conftest.in" >"conftest.tmp"
7881     mv "conftest.tmp" "conftest.in"
7882     cp "conftest.in" "conftest.nl"
7883     $as_echo 'GREP' >> "conftest.nl"
7884     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7885     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7886     ac_count=`expr $ac_count + 1`
7887     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7888       # Best one so far, save it but keep looking for a better one
7889       ac_cv_path_GREP="$ac_path_GREP"
7890       ac_path_GREP_max=$ac_count
7891     fi
7892     # 10*(2^10) chars as input seems more than enough
7893     test $ac_count -gt 10 && break
7894   done
7895   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7896 esac
7897
7898       $ac_path_GREP_found && break 3
7899     done
7900   done
7901 done
7902 IFS=$as_save_IFS
7903   if test -z "$ac_cv_path_GREP"; then
7904     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7905 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7906    { (exit 1); exit 1; }; }
7907   fi
7908 else
7909   ac_cv_path_GREP=$GREP
7910 fi
7911
7912 fi
7913 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7914 $as_echo "$ac_cv_path_GREP" >&6; }
7915  GREP="$ac_cv_path_GREP"
7916
7917
7918 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
7919 $as_echo_n "checking for egrep... " >&6; }
7920 if test "${ac_cv_path_EGREP+set}" = set; then
7921   $as_echo_n "(cached) " >&6
7922 else
7923   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7924    then ac_cv_path_EGREP="$GREP -E"
7925    else
7926      if test -z "$EGREP"; then
7927   ac_path_EGREP_found=false
7928   # Loop through the user's path and test for each of PROGNAME-LIST
7929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7931 do
7932   IFS=$as_save_IFS
7933   test -z "$as_dir" && as_dir=.
7934   for ac_prog in egrep; do
7935     for ac_exec_ext in '' $ac_executable_extensions; do
7936       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7937       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7938 # Check for GNU ac_path_EGREP and select it if it is found.
7939   # Check for GNU $ac_path_EGREP
7940 case `"$ac_path_EGREP" --version 2>&1` in
7941 *GNU*)
7942   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7943 *)
7944   ac_count=0
7945   $as_echo_n 0123456789 >"conftest.in"
7946   while :
7947   do
7948     cat "conftest.in" "conftest.in" >"conftest.tmp"
7949     mv "conftest.tmp" "conftest.in"
7950     cp "conftest.in" "conftest.nl"
7951     $as_echo 'EGREP' >> "conftest.nl"
7952     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7953     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7954     ac_count=`expr $ac_count + 1`
7955     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7956       # Best one so far, save it but keep looking for a better one
7957       ac_cv_path_EGREP="$ac_path_EGREP"
7958       ac_path_EGREP_max=$ac_count
7959     fi
7960     # 10*(2^10) chars as input seems more than enough
7961     test $ac_count -gt 10 && break
7962   done
7963   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7964 esac
7965
7966       $ac_path_EGREP_found && break 3
7967     done
7968   done
7969 done
7970 IFS=$as_save_IFS
7971   if test -z "$ac_cv_path_EGREP"; then
7972     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7973 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7974    { (exit 1); exit 1; }; }
7975   fi
7976 else
7977   ac_cv_path_EGREP=$EGREP
7978 fi
7979
7980    fi
7981 fi
7982 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7983 $as_echo "$ac_cv_path_EGREP" >&6; }
7984  EGREP="$ac_cv_path_EGREP"
7985
7986
7987 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7988 $as_echo_n "checking for ANSI C header files... " >&6; }
7989 if test "${ac_cv_header_stdc+set}" = set; then
7990   $as_echo_n "(cached) " >&6
7991 else
7992   cat >conftest.$ac_ext <<_ACEOF
7993 /* confdefs.h.  */
7994 _ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h.  */
7998 #include <stdlib.h>
7999 #include <stdarg.h>
8000 #include <string.h>
8001 #include <float.h>
8002
8003 int
8004 main ()
8005 {
8006
8007   ;
8008   return 0;
8009 }
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (ac_try="$ac_compile"
8013 case "(($ac_try" in
8014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015   *) ac_try_echo=$ac_try;;
8016 esac
8017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8018 $as_echo "$ac_try_echo") >&5
8019   (eval "$ac_compile") 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } && {
8026          test -z "$ac_c_werror_flag" ||
8027          test ! -s conftest.err
8028        } && test -s conftest.$ac_objext; then
8029   ac_cv_header_stdc=yes
8030 else
8031   $as_echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034         ac_cv_header_stdc=no
8035 fi
8036
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038
8039 if test $ac_cv_header_stdc = yes; then
8040   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8041   cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047 #include <string.h>
8048
8049 _ACEOF
8050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051   $EGREP "memchr" >/dev/null 2>&1; then
8052   :
8053 else
8054   ac_cv_header_stdc=no
8055 fi
8056 rm -f conftest*
8057
8058 fi
8059
8060 if test $ac_cv_header_stdc = yes; then
8061   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8062   cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h.  */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h.  */
8068 #include <stdlib.h>
8069
8070 _ACEOF
8071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8072   $EGREP "free" >/dev/null 2>&1; then
8073   :
8074 else
8075   ac_cv_header_stdc=no
8076 fi
8077 rm -f conftest*
8078
8079 fi
8080
8081 if test $ac_cv_header_stdc = yes; then
8082   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8083   if test "$cross_compiling" = yes; then
8084   :
8085 else
8086   cat >conftest.$ac_ext <<_ACEOF
8087 /* confdefs.h.  */
8088 _ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h.  */
8092 #include <ctype.h>
8093 #include <stdlib.h>
8094 #if ((' ' & 0x0FF) == 0x020)
8095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8097 #else
8098 # define ISLOWER(c) \
8099                    (('a' <= (c) && (c) <= 'i') \
8100                      || ('j' <= (c) && (c) <= 'r') \
8101                      || ('s' <= (c) && (c) <= 'z'))
8102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8103 #endif
8104
8105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8106 int
8107 main ()
8108 {
8109   int i;
8110   for (i = 0; i < 256; i++)
8111     if (XOR (islower (i), ISLOWER (i))
8112         || toupper (i) != TOUPPER (i))
8113       return 2;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest$ac_exeext
8118 if { (ac_try="$ac_link"
8119 case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8124 $as_echo "$ac_try_echo") >&5
8125   (eval "$ac_link") 2>&5
8126   ac_status=$?
8127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8129   { (case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8134 $as_echo "$ac_try_echo") >&5
8135   (eval "$ac_try") 2>&5
8136   ac_status=$?
8137   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); }; }; then
8139   :
8140 else
8141   $as_echo "$as_me: program exited with status $ac_status" >&5
8142 $as_echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8144
8145 ( exit $ac_status )
8146 ac_cv_header_stdc=no
8147 fi
8148 rm -rf conftest.dSYM
8149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8150 fi
8151
8152
8153 fi
8154 fi
8155 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8156 $as_echo "$ac_cv_header_stdc" >&6; }
8157 if test $ac_cv_header_stdc = yes; then
8158
8159 cat >>confdefs.h <<\_ACEOF
8160 #define STDC_HEADERS 1
8161 _ACEOF
8162
8163 fi
8164
8165 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8176                   inttypes.h stdint.h unistd.h
8177 do
8178 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8179 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8180 $as_echo_n "checking for $ac_header... " >&6; }
8181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8182   $as_echo_n "(cached) " >&6
8183 else
8184   cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190 $ac_includes_default
8191
8192 #include <$ac_header>
8193 _ACEOF
8194 rm -f conftest.$ac_objext
8195 if { (ac_try="$ac_compile"
8196 case "(($ac_try" in
8197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8198   *) ac_try_echo=$ac_try;;
8199 esac
8200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8201 $as_echo "$ac_try_echo") >&5
8202   (eval "$ac_compile") 2>conftest.er1
8203   ac_status=$?
8204   grep -v '^ *+' conftest.er1 >conftest.err
8205   rm -f conftest.er1
8206   cat conftest.err >&5
8207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208   (exit $ac_status); } && {
8209          test -z "$ac_c_werror_flag" ||
8210          test ! -s conftest.err
8211        } && test -s conftest.$ac_objext; then
8212   eval "$as_ac_Header=yes"
8213 else
8214   $as_echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217         eval "$as_ac_Header=no"
8218 fi
8219
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 fi
8222 ac_res=`eval 'as_val=${'$as_ac_Header'}
8223                  $as_echo "$as_val"'`
8224                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8225 $as_echo "$ac_res" >&6; }
8226 as_val=`eval 'as_val=${'$as_ac_Header'}
8227                  $as_echo "$as_val"'`
8228    if test "x$as_val" = x""yes; then
8229   cat >>confdefs.h <<_ACEOF
8230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8231 _ACEOF
8232
8233 fi
8234
8235 done
8236
8237
8238 # The cast to long int works around a bug in the HP C Compiler
8239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8241 # This bug is HP SR number 8606223364.
8242 { $as_echo "$as_me:$LINENO: checking size of long double" >&5
8243 $as_echo_n "checking size of long double... " >&6; }
8244 if test "${ac_cv_sizeof_long_double+set}" = set; then
8245   $as_echo_n "(cached) " >&6
8246 else
8247   if test "$cross_compiling" = yes; then
8248   # Depending upon the size, compute the lo and hi bounds.
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h.  */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h.  */
8255 $ac_includes_default
8256 int
8257 main ()
8258 {
8259 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= 0)];
8260 test_array [0] = 0
8261
8262   ;
8263   return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270   *) ac_try_echo=$ac_try;;
8271 esac
8272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8273 $as_echo "$ac_try_echo") >&5
8274   (eval "$ac_compile") 2>conftest.er1
8275   ac_status=$?
8276   grep -v '^ *+' conftest.er1 >conftest.err
8277   rm -f conftest.er1
8278   cat conftest.err >&5
8279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280   (exit $ac_status); } && {
8281          test -z "$ac_c_werror_flag" ||
8282          test ! -s conftest.err
8283        } && test -s conftest.$ac_objext; then
8284   ac_lo=0 ac_mid=0
8285   while :; do
8286     cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h.  */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h.  */
8292 $ac_includes_default
8293 int
8294 main ()
8295 {
8296 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8297 test_array [0] = 0
8298
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext
8304 if { (ac_try="$ac_compile"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310 $as_echo "$ac_try_echo") >&5
8311   (eval "$ac_compile") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest.$ac_objext; then
8321   ac_hi=$ac_mid; break
8322 else
8323   $as_echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         ac_lo=`expr $ac_mid + 1`
8327                         if test $ac_lo -le $ac_mid; then
8328                           ac_lo= ac_hi=
8329                           break
8330                         fi
8331                         ac_mid=`expr 2 '*' $ac_mid + 1`
8332 fi
8333
8334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8335   done
8336 else
8337   $as_echo "$as_me: failed program was:" >&5
8338 sed 's/^/| /' conftest.$ac_ext >&5
8339
8340         cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346 $ac_includes_default
8347 int
8348 main ()
8349 {
8350 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) < 0)];
8351 test_array [0] = 0
8352
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 rm -f conftest.$ac_objext
8358 if { (ac_try="$ac_compile"
8359 case "(($ac_try" in
8360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361   *) ac_try_echo=$ac_try;;
8362 esac
8363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8364 $as_echo "$ac_try_echo") >&5
8365   (eval "$ac_compile") 2>conftest.er1
8366   ac_status=$?
8367   grep -v '^ *+' conftest.er1 >conftest.err
8368   rm -f conftest.er1
8369   cat conftest.err >&5
8370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); } && {
8372          test -z "$ac_c_werror_flag" ||
8373          test ! -s conftest.err
8374        } && test -s conftest.$ac_objext; then
8375   ac_hi=-1 ac_mid=-1
8376   while :; do
8377     cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383 $ac_includes_default
8384 int
8385 main ()
8386 {
8387 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) >= $ac_mid)];
8388 test_array [0] = 0
8389
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398   *) ac_try_echo=$ac_try;;
8399 esac
8400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401 $as_echo "$ac_try_echo") >&5
8402   (eval "$ac_compile") 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } && {
8409          test -z "$ac_c_werror_flag" ||
8410          test ! -s conftest.err
8411        } && test -s conftest.$ac_objext; then
8412   ac_lo=$ac_mid; break
8413 else
8414   $as_echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417         ac_hi=`expr '(' $ac_mid ')' - 1`
8418                         if test $ac_mid -le $ac_hi; then
8419                           ac_lo= ac_hi=
8420                           break
8421                         fi
8422                         ac_mid=`expr 2 '*' $ac_mid`
8423 fi
8424
8425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8426   done
8427 else
8428   $as_echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8430
8431         ac_lo= ac_hi=
8432 fi
8433
8434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8435 fi
8436
8437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 # Binary search between lo and hi bounds.
8439 while test "x$ac_lo" != "x$ac_hi"; do
8440   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8441   cat >conftest.$ac_ext <<_ACEOF
8442 /* confdefs.h.  */
8443 _ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h.  */
8447 $ac_includes_default
8448 int
8449 main ()
8450 {
8451 static int test_array [1 - 2 * !(((long int) (sizeof (long double))) <= $ac_mid)];
8452 test_array [0] = 0
8453
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462   *) ac_try_echo=$ac_try;;
8463 esac
8464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8465 $as_echo "$ac_try_echo") >&5
8466   (eval "$ac_compile") 2>conftest.er1
8467   ac_status=$?
8468   grep -v '^ *+' conftest.er1 >conftest.err
8469   rm -f conftest.er1
8470   cat conftest.err >&5
8471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472   (exit $ac_status); } && {
8473          test -z "$ac_c_werror_flag" ||
8474          test ! -s conftest.err
8475        } && test -s conftest.$ac_objext; then
8476   ac_hi=$ac_mid
8477 else
8478   $as_echo "$as_me: failed program was:" >&5
8479 sed 's/^/| /' conftest.$ac_ext >&5
8480
8481         ac_lo=`expr '(' $ac_mid ')' + 1`
8482 fi
8483
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 done
8486 case $ac_lo in
8487 ?*) ac_cv_sizeof_long_double=$ac_lo;;
8488 '') if test "$ac_cv_type_long_double" = yes; then
8489      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8490 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8491 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8492 See \`config.log' for more details." >&5
8493 $as_echo "$as_me: error: cannot compute sizeof (long double)
8494 See \`config.log' for more details." >&2;}
8495    { (exit 77); exit 77; }; }; }
8496    else
8497      ac_cv_sizeof_long_double=0
8498    fi ;;
8499 esac
8500 else
8501   cat >conftest.$ac_ext <<_ACEOF
8502 /* confdefs.h.  */
8503 _ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h.  */
8507 $ac_includes_default
8508 static long int longval () { return (long int) (sizeof (long double)); }
8509 static unsigned long int ulongval () { return (long int) (sizeof (long double)); }
8510 #include <stdio.h>
8511 #include <stdlib.h>
8512 int
8513 main ()
8514 {
8515
8516   FILE *f = fopen ("conftest.val", "w");
8517   if (! f)
8518     return 1;
8519   if (((long int) (sizeof (long double))) < 0)
8520     {
8521       long int i = longval ();
8522       if (i != ((long int) (sizeof (long double))))
8523         return 1;
8524       fprintf (f, "%ld", i);
8525     }
8526   else
8527     {
8528       unsigned long int i = ulongval ();
8529       if (i != ((long int) (sizeof (long double))))
8530         return 1;
8531       fprintf (f, "%lu", i);
8532     }
8533   /* Do not output a trailing newline, as this causes \r\n confusion
8534      on some platforms.  */
8535   return ferror (f) || fclose (f) != 0;
8536
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest$ac_exeext
8542 if { (ac_try="$ac_link"
8543 case "(($ac_try" in
8544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545   *) ac_try_echo=$ac_try;;
8546 esac
8547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8548 $as_echo "$ac_try_echo") >&5
8549   (eval "$ac_link") 2>&5
8550   ac_status=$?
8551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8553   { (case "(($ac_try" in
8554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8555   *) ac_try_echo=$ac_try;;
8556 esac
8557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8558 $as_echo "$ac_try_echo") >&5
8559   (eval "$ac_try") 2>&5
8560   ac_status=$?
8561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562   (exit $ac_status); }; }; then
8563   ac_cv_sizeof_long_double=`cat conftest.val`
8564 else
8565   $as_echo "$as_me: program exited with status $ac_status" >&5
8566 $as_echo "$as_me: failed program was:" >&5
8567 sed 's/^/| /' conftest.$ac_ext >&5
8568
8569 ( exit $ac_status )
8570 if test "$ac_cv_type_long_double" = yes; then
8571      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8573 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long double)
8574 See \`config.log' for more details." >&5
8575 $as_echo "$as_me: error: cannot compute sizeof (long double)
8576 See \`config.log' for more details." >&2;}
8577    { (exit 77); exit 77; }; }; }
8578    else
8579      ac_cv_sizeof_long_double=0
8580    fi
8581 fi
8582 rm -rf conftest.dSYM
8583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8584 fi
8585 rm -f conftest.val
8586 fi
8587 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
8588 $as_echo "$ac_cv_sizeof_long_double" >&6; }
8589
8590
8591
8592 cat >>confdefs.h <<_ACEOF
8593 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8594 _ACEOF
8595
8596
8597 sizeof_long_double=$ac_cv_sizeof_long_double
8598
8599
8600 ### End of automated tests.
8601 ### Now run sysdeps configure fragments.
8602
8603 # They also can set these variables.
8604 use_ldconfig=no
8605 ldd_rewrite_script=no
8606 libc_cv_sysconfdir=$sysconfdir
8607 libc_cv_gcc_unwind_find_fde=no
8608 libc_cv_idn=no
8609
8610 # Iterate over all the sysdep directories we will use, running their
8611 # configure fragments, and looking for a uname implementation.
8612 uname=
8613 for dir in $sysnames; do
8614   case $dir in
8615     /*) dest=$dir ;;
8616     *)  dest=$srcdir/$dir ;;
8617   esac
8618   if test -r $dest/configure; then
8619     { $as_echo "$as_me:$LINENO: result: running configure fragment for $dir" >&5
8620 $as_echo "running configure fragment for $dir" >&6; }
8621     . $dest/configure
8622   fi
8623
8624   if test -z "$uname"; then
8625     if test -r $dest/uname.c ||
8626        test -r $dest/uname.S ||
8627        { test -r $dest/syscalls.list &&
8628          grep '^uname[  ]' $dest/syscalls.list >/dev/null; }; then
8629       uname=$dir
8630     fi
8631   fi
8632 done
8633
8634 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
8635   cat >>confdefs.h <<\_ACEOF
8636 #define EXPORT_UNWIND_FIND_FDE 1
8637 _ACEOF
8638
8639 fi
8640
8641
8642 # If we will use the generic uname implementation, we must figure out what
8643 # it will say by examining the system, and write the results in config-name.h.
8644 if test "$uname" = "sysdeps/generic"; then
8645
8646   uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
8647   if test $uname_sysname != $config_os; then
8648     config_release=`echo $config_os | sed s/$uname_sysname//`
8649   fi
8650
8651   { $as_echo "$as_me:$LINENO: checking OS release for uname" >&5
8652 $as_echo_n "checking OS release for uname... " >&6; }
8653 if test "${libc_cv_uname_release+set}" = set; then
8654   $as_echo_n "(cached) " >&6
8655 else
8656       if test -r /vmunix; then
8657       kernel_id=`strings /vmunix | grep UNIX`
8658     elif test -r /dynix; then
8659       kernel_id=`strings /dynix | grep DYNIX`
8660     else
8661       kernel_id=
8662     fi
8663
8664   kernel_release=`echo "$kernel_id" | sed 's/^[^0-9.]*\([0-9.]*\).*$/\1/'`
8665   if test x`echo "$config_release" | sed "s/^$kernel_release//"` \
8666          != x$config_release; then
8667     # The configuration release is a substring of the kernel release.
8668     libc_cv_uname_release=$kernel_release
8669   elif test x$config_release != x; then
8670     libc_cv_uname_release=$config_release
8671   elif test x$kernel_release != x; then
8672     libc_cv_uname_release=$kernel_release
8673   else
8674     libc_cv_uname_release=unknown
8675   fi
8676 fi
8677 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_release" >&5
8678 $as_echo "$libc_cv_uname_release" >&6; }
8679   uname_release="$libc_cv_uname_release"
8680
8681   { $as_echo "$as_me:$LINENO: checking OS version for uname" >&5
8682 $as_echo_n "checking OS version for uname... " >&6; }
8683 if test "${libc_cv_uname_version+set}" = set; then
8684   $as_echo_n "(cached) " >&6
8685 else
8686       if test -r /vmunix; then
8687       kernel_id=`strings /vmunix | grep UNIX`
8688     elif test -r /dynix; then
8689       kernel_id=`strings /dynix | grep DYNIX`
8690     else
8691       kernel_id=
8692     fi
8693
8694   kernel_version=`echo "$kernel_id" | sed 's/^[^#]*#\([0-9]*\).*$/\1/'`
8695   if test -n "$kernel_version"; then
8696     libc_cv_uname_version="$kernel_version"
8697   else
8698     libc_cv_uname_version=unknown
8699   fi
8700 fi
8701 { $as_echo "$as_me:$LINENO: result: $libc_cv_uname_version" >&5
8702 $as_echo "$libc_cv_uname_version" >&6; }
8703   uname_version="$libc_cv_uname_version"
8704
8705     config_uname=config-name.h:config-name.in
8706 else
8707   # For non-generic uname, we don't need to create config-name.h at all.
8708   config_uname=
8709 fi
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define USE_IN_LIBIO 1
8713 _ACEOF
8714
8715
8716 # Test for old glibc 2.0.x headers so that they can be removed properly
8717 # Search only in includedir.
8718 { $as_echo "$as_me:$LINENO: checking for old glibc 2.0.x headers" >&5
8719 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
8720 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
8721 then
8722   old_glibc_headers=yes
8723 else
8724   old_glibc_headers=no
8725 fi
8726 { $as_echo "$as_me:$LINENO: result: $old_glibc_headers" >&5
8727 $as_echo "$old_glibc_headers" >&6; }
8728 if test ${old_glibc_headers} = yes; then
8729   { $as_echo "$as_me:$LINENO: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
8730 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
8731   { $as_echo "$as_me:$LINENO: WARNING: *** be removed." >&5
8732 $as_echo "$as_me: WARNING: *** be removed." >&2;}
8733 fi
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749 if test $elf = yes; then
8750   cat >>confdefs.h <<\_ACEOF
8751 #define HAVE_ELF 1
8752 _ACEOF
8753
8754 fi
8755 if test $xcoff = yes; then
8756   cat >>confdefs.h <<\_ACEOF
8757 #define HAVE_XCOFF 1
8758 _ACEOF
8759
8760 fi
8761
8762
8763
8764 if test $shared = default; then
8765   shared=$elf
8766 fi
8767
8768 { $as_echo "$as_me:$LINENO: checking whether -fPIC is default" >&5
8769 $as_echo_n "checking whether -fPIC is default... " >&6; }
8770 if test "${libc_cv_pic_default+set}" = set; then
8771   $as_echo_n "(cached) " >&6
8772 else
8773   libc_cv_pic_default=yes
8774 cat > conftest.c <<EOF
8775 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8776 # error PIC is default.
8777 #endif
8778 EOF
8779 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8780   libc_cv_pic_default=no
8781 fi
8782 rm -f conftest.*
8783 fi
8784 { $as_echo "$as_me:$LINENO: result: $libc_cv_pic_default" >&5
8785 $as_echo "$libc_cv_pic_default" >&6; }
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8799   config_makefile=
8800 else
8801   config_makefile=Makefile
8802 fi
8803
8804 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8805 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8806
8807
8808
8809 ac_config_files="$ac_config_files config.make ${config_makefile} ${config_uname}"
8810
8811 ac_config_commands="$ac_config_commands default"
8812
8813 cat >confcache <<\_ACEOF
8814 # This file is a shell script that caches the results of configure
8815 # tests run on this system so they can be shared between configure
8816 # scripts and configure runs, see configure's option --config-cache.
8817 # It is not useful on other systems.  If it contains results you don't
8818 # want to keep, you may remove or edit it.
8819 #
8820 # config.status only pays attention to the cache file if you give it
8821 # the --recheck option to rerun configure.
8822 #
8823 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8824 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8825 # following values.
8826
8827 _ACEOF
8828
8829 # The following way of writing the cache mishandles newlines in values,
8830 # but we know of no workaround that is simple, portable, and efficient.
8831 # So, we kill variables containing newlines.
8832 # Ultrix sh set writes to stderr and can't be redirected directly,
8833 # and sets the high bit in the cache file unless we assign to the vars.
8834 (
8835   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8836     eval ac_val=\$$ac_var
8837     case $ac_val in #(
8838     *${as_nl}*)
8839       case $ac_var in #(
8840       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
8841 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8842       esac
8843       case $ac_var in #(
8844       _ | IFS | as_nl) ;; #(
8845       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8846       *) $as_unset $ac_var ;;
8847       esac ;;
8848     esac
8849   done
8850
8851   (set) 2>&1 |
8852     case $as_nl`(ac_space=' '; set) 2>&1` in #(
8853     *${as_nl}ac_space=\ *)
8854       # `set' does not quote correctly, so add quotes (double-quote
8855       # substitution turns \\\\ into \\, and sed turns \\ into \).
8856       sed -n \
8857         "s/'/'\\\\''/g;
8858           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8859       ;; #(
8860     *)
8861       # `set' quotes correctly as required by POSIX, so do not add quotes.
8862       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8863       ;;
8864     esac |
8865     sort
8866 ) |
8867   sed '
8868      /^ac_cv_env_/b end
8869      t clear
8870      :clear
8871      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8872      t end
8873      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8874      :end' >>confcache
8875 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8876   if test -w "$cache_file"; then
8877     test "x$cache_file" != "x/dev/null" &&
8878       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
8879 $as_echo "$as_me: updating cache $cache_file" >&6;}
8880     cat confcache >$cache_file
8881   else
8882     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8883 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8884   fi
8885 fi
8886 rm -f confcache
8887
8888 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8889 # Let make expand exec_prefix.
8890 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8891
8892 DEFS=-DHAVE_CONFIG_H
8893
8894 ac_libobjs=
8895 ac_ltlibobjs=
8896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8897   # 1. Remove the extension, and $U if already installed.
8898   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8899   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8900   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
8901   #    will be set to the directory where LIBOBJS objects are built.
8902   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8903   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8904 done
8905 LIBOBJS=$ac_libobjs
8906
8907 LTLIBOBJS=$ac_ltlibobjs
8908
8909
8910
8911 : ${CONFIG_STATUS=./config.status}
8912 ac_write_fail=0
8913 ac_clean_files_save=$ac_clean_files
8914 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8915 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8916 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8917 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8918 #! $SHELL
8919 # Generated by $as_me.
8920 # Run this file to recreate the current configuration.
8921 # Compiler output produced by configure, useful for debugging
8922 # configure, is in config.log if it exists.
8923
8924 debug=false
8925 ac_cs_recheck=false
8926 ac_cs_silent=false
8927 SHELL=\${CONFIG_SHELL-$SHELL}
8928 _ACEOF
8929
8930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8931 ## --------------------- ##
8932 ## M4sh Initialization.  ##
8933 ## --------------------- ##
8934
8935 # Be more Bourne compatible
8936 DUALCASE=1; export DUALCASE # for MKS sh
8937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8938   emulate sh
8939   NULLCMD=:
8940   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8941   # is contrary to our usage.  Disable this feature.
8942   alias -g '${1+"$@"}'='"$@"'
8943   setopt NO_GLOB_SUBST
8944 else
8945   case `(set -o) 2>/dev/null` in
8946   *posix*) set -o posix ;;
8947 esac
8948
8949 fi
8950
8951
8952
8953
8954 # PATH needs CR
8955 # Avoid depending upon Character Ranges.
8956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8959 as_cr_digits='0123456789'
8960 as_cr_alnum=$as_cr_Letters$as_cr_digits
8961
8962 as_nl='
8963 '
8964 export as_nl
8965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8969 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8970   as_echo='printf %s\n'
8971   as_echo_n='printf %s'
8972 else
8973   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8974     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8975     as_echo_n='/usr/ucb/echo -n'
8976   else
8977     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8978     as_echo_n_body='eval
8979       arg=$1;
8980       case $arg in
8981       *"$as_nl"*)
8982         expr "X$arg" : "X\\(.*\\)$as_nl";
8983         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8984       esac;
8985       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8986     '
8987     export as_echo_n_body
8988     as_echo_n='sh -c $as_echo_n_body as_echo'
8989   fi
8990   export as_echo_body
8991   as_echo='sh -c $as_echo_body as_echo'
8992 fi
8993
8994 # The user is always right.
8995 if test "${PATH_SEPARATOR+set}" != set; then
8996   PATH_SEPARATOR=:
8997   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8998     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8999       PATH_SEPARATOR=';'
9000   }
9001 fi
9002
9003 # Support unset when possible.
9004 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9005   as_unset=unset
9006 else
9007   as_unset=false
9008 fi
9009
9010
9011 # IFS
9012 # We need space, tab and new line, in precisely that order.  Quoting is
9013 # there to prevent editors from complaining about space-tab.
9014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9015 # splitting by setting IFS to empty value.)
9016 IFS=" ""        $as_nl"
9017
9018 # Find who we are.  Look in the path if we contain no directory separator.
9019 case $0 in
9020   *[\\/]* ) as_myself=$0 ;;
9021   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9023 do
9024   IFS=$as_save_IFS
9025   test -z "$as_dir" && as_dir=.
9026   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9027 done
9028 IFS=$as_save_IFS
9029
9030      ;;
9031 esac
9032 # We did not find ourselves, most probably we were run as `sh COMMAND'
9033 # in which case we are not to be found in the path.
9034 if test "x$as_myself" = x; then
9035   as_myself=$0
9036 fi
9037 if test ! -f "$as_myself"; then
9038   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9039   { (exit 1); exit 1; }
9040 fi
9041
9042 # Work around bugs in pre-3.0 UWIN ksh.
9043 for as_var in ENV MAIL MAILPATH
9044 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9045 done
9046 PS1='$ '
9047 PS2='> '
9048 PS4='+ '
9049
9050 # NLS nuisances.
9051 LC_ALL=C
9052 export LC_ALL
9053 LANGUAGE=C
9054 export LANGUAGE
9055
9056 # Required to use basename.
9057 if expr a : '\(a\)' >/dev/null 2>&1 &&
9058    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9059   as_expr=expr
9060 else
9061   as_expr=false
9062 fi
9063
9064 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9065   as_basename=basename
9066 else
9067   as_basename=false
9068 fi
9069
9070
9071 # Name of the executable.
9072 as_me=`$as_basename -- "$0" ||
9073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9074          X"$0" : 'X\(//\)$' \| \
9075          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9076 $as_echo X/"$0" |
9077     sed '/^.*\/\([^/][^/]*\)\/*$/{
9078             s//\1/
9079             q
9080           }
9081           /^X\/\(\/\/\)$/{
9082             s//\1/
9083             q
9084           }
9085           /^X\/\(\/\).*/{
9086             s//\1/
9087             q
9088           }
9089           s/.*/./; q'`
9090
9091 # CDPATH.
9092 $as_unset CDPATH
9093
9094
9095
9096   as_lineno_1=$LINENO
9097   as_lineno_2=$LINENO
9098   test "x$as_lineno_1" != "x$as_lineno_2" &&
9099   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9100
9101   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9102   # uniformly replaced by the line number.  The first 'sed' inserts a
9103   # line-number line after each line using $LINENO; the second 'sed'
9104   # does the real work.  The second script uses 'N' to pair each
9105   # line-number line with the line containing $LINENO, and appends
9106   # trailing '-' during substitution so that $LINENO is not a special
9107   # case at line end.
9108   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9109   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9110   # E. McMahon (1931-1989) for sed's syntax.  :-)
9111   sed -n '
9112     p
9113     /[$]LINENO/=
9114   ' <$as_myself |
9115     sed '
9116       s/[$]LINENO.*/&-/
9117       t lineno
9118       b
9119       :lineno
9120       N
9121       :loop
9122       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9123       t loop
9124       s/-\n.*//
9125     ' >$as_me.lineno &&
9126   chmod +x "$as_me.lineno" ||
9127     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9128    { (exit 1); exit 1; }; }
9129
9130   # Don't try to exec as it changes $[0], causing all sort of problems
9131   # (the dirname of $[0] is not the place where we might find the
9132   # original and so on.  Autoconf is especially sensitive to this).
9133   . "./$as_me.lineno"
9134   # Exit status is that of the last command.
9135   exit
9136 }
9137
9138
9139 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9140   as_dirname=dirname
9141 else
9142   as_dirname=false
9143 fi
9144
9145 ECHO_C= ECHO_N= ECHO_T=
9146 case `echo -n x` in
9147 -n*)
9148   case `echo 'x\c'` in
9149   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9150   *)   ECHO_C='\c';;
9151   esac;;
9152 *)
9153   ECHO_N='-n';;
9154 esac
9155 if expr a : '\(a\)' >/dev/null 2>&1 &&
9156    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9157   as_expr=expr
9158 else
9159   as_expr=false
9160 fi
9161
9162 rm -f conf$$ conf$$.exe conf$$.file
9163 if test -d conf$$.dir; then
9164   rm -f conf$$.dir/conf$$.file
9165 else
9166   rm -f conf$$.dir
9167   mkdir conf$$.dir 2>/dev/null
9168 fi
9169 if (echo >conf$$.file) 2>/dev/null; then
9170   if ln -s conf$$.file conf$$ 2>/dev/null; then
9171     as_ln_s='ln -s'
9172     # ... but there are two gotchas:
9173     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9174     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9175     # In both cases, we have to default to `cp -p'.
9176     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9177       as_ln_s='cp -p'
9178   elif ln conf$$.file conf$$ 2>/dev/null; then
9179     as_ln_s=ln
9180   else
9181     as_ln_s='cp -p'
9182   fi
9183 else
9184   as_ln_s='cp -p'
9185 fi
9186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9187 rmdir conf$$.dir 2>/dev/null
9188
9189 if mkdir -p . 2>/dev/null; then
9190   as_mkdir_p=:
9191 else
9192   test -d ./-p && rmdir ./-p
9193   as_mkdir_p=false
9194 fi
9195
9196 if test -x / >/dev/null 2>&1; then
9197   as_test_x='test -x'
9198 else
9199   if ls -dL / >/dev/null 2>&1; then
9200     as_ls_L_option=L
9201   else
9202     as_ls_L_option=
9203   fi
9204   as_test_x='
9205     eval sh -c '\''
9206       if test -d "$1"; then
9207         test -d "$1/.";
9208       else
9209         case $1 in
9210         -*)set "./$1";;
9211         esac;
9212         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9213         ???[sx]*):;;*)false;;esac;fi
9214     '\'' sh
9215   '
9216 fi
9217 as_executable_p=$as_test_x
9218
9219 # Sed expression to map a string onto a valid CPP name.
9220 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9221
9222 # Sed expression to map a string onto a valid variable name.
9223 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9224
9225
9226 exec 6>&1
9227
9228 # Save the log message, to keep $[0] and so on meaningful, and to
9229 # report actual input values of CONFIG_FILES etc. instead of their
9230 # values after options handling.
9231 ac_log="
9232 This file was extended by GNU C Library $as_me (see version.h), which was
9233 generated by GNU Autoconf 2.63.  Invocation command line was
9234
9235   CONFIG_FILES    = $CONFIG_FILES
9236   CONFIG_HEADERS  = $CONFIG_HEADERS
9237   CONFIG_LINKS    = $CONFIG_LINKS
9238   CONFIG_COMMANDS = $CONFIG_COMMANDS
9239   $ $0 $@
9240
9241 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9242 "
9243
9244 _ACEOF
9245
9246 case $ac_config_files in *"
9247 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9248 esac
9249
9250 case $ac_config_headers in *"
9251 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9252 esac
9253
9254
9255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9256 # Files that config.status was made for.
9257 config_files="$ac_config_files"
9258 config_headers="$ac_config_headers"
9259 config_commands="$ac_config_commands"
9260
9261 _ACEOF
9262
9263 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9264 ac_cs_usage="\
9265 \`$as_me' instantiates files from templates according to the
9266 current configuration.
9267
9268 Usage: $0 [OPTION]... [FILE]...
9269
9270   -h, --help       print this help, then exit
9271   -V, --version    print version number and configuration settings, then exit
9272   -q, --quiet, --silent
9273                    do not print progress messages
9274   -d, --debug      don't remove temporary files
9275       --recheck    update $as_me by reconfiguring in the same conditions
9276       --file=FILE[:TEMPLATE]
9277                    instantiate the configuration file FILE
9278       --header=FILE[:TEMPLATE]
9279                    instantiate the configuration header FILE
9280
9281 Configuration files:
9282 $config_files
9283
9284 Configuration headers:
9285 $config_headers
9286
9287 Configuration commands:
9288 $config_commands
9289
9290 Report bugs to <bug-autoconf@gnu.org>."
9291
9292 _ACEOF
9293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9294 ac_cs_version="\\
9295 GNU C Library config.status (see version.h)
9296 configured by $0, generated by GNU Autoconf 2.63,
9297   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9298
9299 Copyright (C) 2008 Free Software Foundation, Inc.
9300 This config.status script is free software; the Free Software Foundation
9301 gives unlimited permission to copy, distribute and modify it."
9302
9303 ac_pwd='$ac_pwd'
9304 srcdir='$srcdir'
9305 INSTALL='$INSTALL'
9306 AWK='$AWK'
9307 test -n "\$AWK" || AWK=awk
9308 _ACEOF
9309
9310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9311 # The default lists apply if the user does not specify any file.
9312 ac_need_defaults=:
9313 while test $# != 0
9314 do
9315   case $1 in
9316   --*=*)
9317     ac_option=`expr "X$1" : 'X\([^=]*\)='`
9318     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9319     ac_shift=:
9320     ;;
9321   *)
9322     ac_option=$1
9323     ac_optarg=$2
9324     ac_shift=shift
9325     ;;
9326   esac
9327
9328   case $ac_option in
9329   # Handling of the options.
9330   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9331     ac_cs_recheck=: ;;
9332   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9333     $as_echo "$ac_cs_version"; exit ;;
9334   --debug | --debu | --deb | --de | --d | -d )
9335     debug=: ;;
9336   --file | --fil | --fi | --f )
9337     $ac_shift
9338     case $ac_optarg in
9339     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9340     esac
9341     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
9342     ac_need_defaults=false;;
9343   --header | --heade | --head | --hea )
9344     $ac_shift
9345     case $ac_optarg in
9346     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9347     esac
9348     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
9349     ac_need_defaults=false;;
9350   --he | --h)
9351     # Conflict between --help and --header
9352     { $as_echo "$as_me: error: ambiguous option: $1
9353 Try \`$0 --help' for more information." >&2
9354    { (exit 1); exit 1; }; };;
9355   --help | --hel | -h )
9356     $as_echo "$ac_cs_usage"; exit ;;
9357   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9358   | -silent | --silent | --silen | --sile | --sil | --si | --s)
9359     ac_cs_silent=: ;;
9360
9361   # This is an error.
9362   -*) { $as_echo "$as_me: error: unrecognized option: $1
9363 Try \`$0 --help' for more information." >&2
9364    { (exit 1); exit 1; }; } ;;
9365
9366   *) ac_config_targets="$ac_config_targets $1"
9367      ac_need_defaults=false ;;
9368
9369   esac
9370   shift
9371 done
9372
9373 ac_configure_extra_args=
9374
9375 if $ac_cs_silent; then
9376   exec 6>/dev/null
9377   ac_configure_extra_args="$ac_configure_extra_args --silent"
9378 fi
9379
9380 _ACEOF
9381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9382 if \$ac_cs_recheck; then
9383   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9384   shift
9385   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9386   CONFIG_SHELL='$SHELL'
9387   export CONFIG_SHELL
9388   exec "\$@"
9389 fi
9390
9391 _ACEOF
9392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9393 exec 5>>config.log
9394 {
9395   echo
9396   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9397 ## Running $as_me. ##
9398 _ASBOX
9399   $as_echo "$ac_log"
9400 } >&5
9401
9402 _ACEOF
9403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9404 #
9405 # INIT-COMMANDS
9406 #
9407 config_vars='$config_vars'
9408
9409 _ACEOF
9410
9411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9412
9413 # Handling of arguments.
9414 for ac_config_target in $ac_config_targets
9415 do
9416   case $ac_config_target in
9417     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9418     "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
9419     "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
9420     "${config_uname}") CONFIG_FILES="$CONFIG_FILES ${config_uname}" ;;
9421     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
9422
9423   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9424 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9425    { (exit 1); exit 1; }; };;
9426   esac
9427 done
9428
9429
9430 # If the user did not use the arguments to specify the items to instantiate,
9431 # then the envvar interface is used.  Set only those that are not.
9432 # We use the long form for the default assignment because of an extremely
9433 # bizarre bug on SunOS 4.1.3.
9434 if $ac_need_defaults; then
9435   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9436   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9437   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9438 fi
9439
9440 # Have a temporary directory for convenience.  Make it in the build tree
9441 # simply because there is no reason against having it here, and in addition,
9442 # creating and moving files from /tmp can sometimes cause problems.
9443 # Hook for its removal unless debugging.
9444 # Note that there is a small window in which the directory will not be cleaned:
9445 # after its creation but before its name has been assigned to `$tmp'.
9446 $debug ||
9447 {
9448   tmp=
9449   trap 'exit_status=$?
9450   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9451 ' 0
9452   trap '{ (exit 1); exit 1; }' 1 2 13 15
9453 }
9454 # Create a (secure) tmp directory for tmp files.
9455
9456 {
9457   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9458   test -n "$tmp" && test -d "$tmp"
9459 }  ||
9460 {
9461   tmp=./conf$$-$RANDOM
9462   (umask 077 && mkdir "$tmp")
9463 } ||
9464 {
9465    $as_echo "$as_me: cannot create a temporary directory in ." >&2
9466    { (exit 1); exit 1; }
9467 }
9468
9469 # Set up the scripts for CONFIG_FILES section.
9470 # No need to generate them if there are no CONFIG_FILES.
9471 # This happens for instance with `./config.status config.h'.
9472 if test -n "$CONFIG_FILES"; then
9473
9474
9475 ac_cr='\r'
9476 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9477 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9478   ac_cs_awk_cr='\\r'
9479 else
9480   ac_cs_awk_cr=$ac_cr
9481 fi
9482
9483 echo 'BEGIN {' >"$tmp/subs1.awk" &&
9484 _ACEOF
9485
9486
9487 {
9488   echo "cat >conf$$subs.awk <<_ACEOF" &&
9489   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9490   echo "_ACEOF"
9491 } >conf$$subs.sh ||
9492   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9493 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9494    { (exit 1); exit 1; }; }
9495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9496 ac_delim='%!_!# '
9497 for ac_last_try in false false false false false :; do
9498   . ./conf$$subs.sh ||
9499     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9500 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9501    { (exit 1); exit 1; }; }
9502
9503   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9504   if test $ac_delim_n = $ac_delim_num; then
9505     break
9506   elif $ac_last_try; then
9507     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9508 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9509    { (exit 1); exit 1; }; }
9510   else
9511     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9512   fi
9513 done
9514 rm -f conf$$subs.sh
9515
9516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9517 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9518 _ACEOF
9519 sed -n '
9520 h
9521 s/^/S["/; s/!.*/"]=/
9522 p
9523 g
9524 s/^[^!]*!//
9525 :repl
9526 t repl
9527 s/'"$ac_delim"'$//
9528 t delim
9529 :nl
9530 h
9531 s/\(.\{148\}\).*/\1/
9532 t more1
9533 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9534 p
9535 n
9536 b repl
9537 :more1
9538 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9539 p
9540 g
9541 s/.\{148\}//
9542 t nl
9543 :delim
9544 h
9545 s/\(.\{148\}\).*/\1/
9546 t more2
9547 s/["\\]/\\&/g; s/^/"/; s/$/"/
9548 p
9549 b
9550 :more2
9551 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9552 p
9553 g
9554 s/.\{148\}//
9555 t delim
9556 ' <conf$$subs.awk | sed '
9557 /^[^""]/{
9558   N
9559   s/\n//
9560 }
9561 ' >>$CONFIG_STATUS || ac_write_fail=1
9562 rm -f conf$$subs.awk
9563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9564 _ACAWK
9565 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
9566   for (key in S) S_is_set[key] = 1
9567   FS = "\a"
9568
9569 }
9570 {
9571   line = $ 0
9572   nfields = split(line, field, "@")
9573   substed = 0
9574   len = length(field[1])
9575   for (i = 2; i < nfields; i++) {
9576     key = field[i]
9577     keylen = length(key)
9578     if (S_is_set[key]) {
9579       value = S[key]
9580       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9581       len += length(value) + length(field[++i])
9582       substed = 1
9583     } else
9584       len += 1 + keylen
9585   }
9586
9587   print line
9588 }
9589
9590 _ACAWK
9591 _ACEOF
9592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9593 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9594   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9595 else
9596   cat
9597 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
9598   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
9599 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
9600    { (exit 1); exit 1; }; }
9601 _ACEOF
9602
9603 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9604 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9605 # trailing colons and then remove the whole line if VPATH becomes empty
9606 # (actually we leave an empty line to preserve line numbers).
9607 if test "x$srcdir" = x.; then
9608   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9609 s/:*\$(srcdir):*/:/
9610 s/:*\${srcdir}:*/:/
9611 s/:*@srcdir@:*/:/
9612 s/^\([^=]*=[     ]*\):*/\1/
9613 s/:*$//
9614 s/^[^=]*=[       ]*$//
9615 }'
9616 fi
9617
9618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9619 fi # test -n "$CONFIG_FILES"
9620
9621 # Set up the scripts for CONFIG_HEADERS section.
9622 # No need to generate them if there are no CONFIG_HEADERS.
9623 # This happens for instance with `./config.status Makefile'.
9624 if test -n "$CONFIG_HEADERS"; then
9625 cat >"$tmp/defines.awk" <<\_ACAWK ||
9626 BEGIN {
9627 _ACEOF
9628
9629 # Transform confdefs.h into an awk script `defines.awk', embedded as
9630 # here-document in config.status, that substitutes the proper values into
9631 # config.h.in to produce config.h.
9632
9633 # Create a delimiter string that does not exist in confdefs.h, to ease
9634 # handling of long lines.
9635 ac_delim='%!_!# '
9636 for ac_last_try in false false :; do
9637   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
9638   if test -z "$ac_t"; then
9639     break
9640   elif $ac_last_try; then
9641     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
9642 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
9643    { (exit 1); exit 1; }; }
9644   else
9645     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9646   fi
9647 done
9648
9649 # For the awk script, D is an array of macro values keyed by name,
9650 # likewise P contains macro parameters if any.  Preserve backslash
9651 # newline sequences.
9652
9653 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9654 sed -n '
9655 s/.\{148\}/&'"$ac_delim"'/g
9656 t rset
9657 :rset
9658 s/^[     ]*#[    ]*define[       ][      ]*/ /
9659 t def
9660 d
9661 :def
9662 s/\\$//
9663 t bsnl
9664 s/["\\]/\\&/g
9665 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9666 D["\1"]=" \3"/p
9667 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
9668 d
9669 :bsnl
9670 s/["\\]/\\&/g
9671 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
9672 D["\1"]=" \3\\\\\\n"\\/p
9673 t cont
9674 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9675 t cont
9676 d
9677 :cont
9678 n
9679 s/.\{148\}/&'"$ac_delim"'/g
9680 t clear
9681 :clear
9682 s/\\$//
9683 t bsnlc
9684 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9685 d
9686 :bsnlc
9687 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9688 b cont
9689 ' <confdefs.h | sed '
9690 s/'"$ac_delim"'/"\\\
9691 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9692
9693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9694   for (key in D) D_is_set[key] = 1
9695   FS = "\a"
9696 }
9697 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9698   line = \$ 0
9699   split(line, arg, " ")
9700   if (arg[1] == "#") {
9701     defundef = arg[2]
9702     mac1 = arg[3]
9703   } else {
9704     defundef = substr(arg[1], 2)
9705     mac1 = arg[2]
9706   }
9707   split(mac1, mac2, "(") #)
9708   macro = mac2[1]
9709   prefix = substr(line, 1, index(line, defundef) - 1)
9710   if (D_is_set[macro]) {
9711     # Preserve the white space surrounding the "#".
9712     print prefix "define", macro P[macro] D[macro]
9713     next
9714   } else {
9715     # Replace #undef with comments.  This is necessary, for example,
9716     # in the case of _POSIX_SOURCE, which is predefined and required
9717     # on some systems where configure will not decide to define it.
9718     if (defundef == "undef") {
9719       print "/*", prefix defundef, macro, "*/"
9720       next
9721     }
9722   }
9723 }
9724 { print }
9725 _ACAWK
9726 _ACEOF
9727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9728   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
9729 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
9730    { (exit 1); exit 1; }; }
9731 fi # test -n "$CONFIG_HEADERS"
9732
9733
9734 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
9735 shift
9736 for ac_tag
9737 do
9738   case $ac_tag in
9739   :[FHLC]) ac_mode=$ac_tag; continue;;
9740   esac
9741   case $ac_mode$ac_tag in
9742   :[FHL]*:*);;
9743   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
9744 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
9745    { (exit 1); exit 1; }; };;
9746   :[FH]-) ac_tag=-:-;;
9747   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9748   esac
9749   ac_save_IFS=$IFS
9750   IFS=:
9751   set x $ac_tag
9752   IFS=$ac_save_IFS
9753   shift
9754   ac_file=$1
9755   shift
9756
9757   case $ac_mode in
9758   :L) ac_source=$1;;
9759   :[FH])
9760     ac_file_inputs=
9761     for ac_f
9762     do
9763       case $ac_f in
9764       -) ac_f="$tmp/stdin";;
9765       *) # Look for the file first in the build tree, then in the source tree
9766          # (if the path is not absolute).  The absolute path cannot be DOS-style,
9767          # because $ac_f cannot contain `:'.
9768          test -f "$ac_f" ||
9769            case $ac_f in
9770            [\\/$]*) false;;
9771            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9772            esac ||
9773            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9774 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9775    { (exit 1); exit 1; }; };;
9776       esac
9777       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9778       ac_file_inputs="$ac_file_inputs '$ac_f'"
9779     done
9780
9781     # Let's still pretend it is `configure' which instantiates (i.e., don't
9782     # use $as_me), people would be surprised to read:
9783     #    /* config.h.  Generated by config.status.  */
9784     configure_input='Generated from '`
9785           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9786         `' by configure.'
9787     if test x"$ac_file" != x-; then
9788       configure_input="$ac_file.  $configure_input"
9789       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
9790 $as_echo "$as_me: creating $ac_file" >&6;}
9791     fi
9792     # Neutralize special characters interpreted by sed in replacement strings.
9793     case $configure_input in #(
9794     *\&* | *\|* | *\\* )
9795        ac_sed_conf_input=`$as_echo "$configure_input" |
9796        sed 's/[\\\\&|]/\\\\&/g'`;; #(
9797     *) ac_sed_conf_input=$configure_input;;
9798     esac
9799
9800     case $ac_tag in
9801     *:-:* | *:-) cat >"$tmp/stdin" \
9802       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9803 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9804    { (exit 1); exit 1; }; } ;;
9805     esac
9806     ;;
9807   esac
9808
9809   ac_dir=`$as_dirname -- "$ac_file" ||
9810 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9811          X"$ac_file" : 'X\(//\)[^/]' \| \
9812          X"$ac_file" : 'X\(//\)$' \| \
9813          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9814 $as_echo X"$ac_file" |
9815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9816             s//\1/
9817             q
9818           }
9819           /^X\(\/\/\)[^/].*/{
9820             s//\1/
9821             q
9822           }
9823           /^X\(\/\/\)$/{
9824             s//\1/
9825             q
9826           }
9827           /^X\(\/\).*/{
9828             s//\1/
9829             q
9830           }
9831           s/.*/./; q'`
9832   { as_dir="$ac_dir"
9833   case $as_dir in #(
9834   -*) as_dir=./$as_dir;;
9835   esac
9836   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9837     as_dirs=
9838     while :; do
9839       case $as_dir in #(
9840       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9841       *) as_qdir=$as_dir;;
9842       esac
9843       as_dirs="'$as_qdir' $as_dirs"
9844       as_dir=`$as_dirname -- "$as_dir" ||
9845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9846          X"$as_dir" : 'X\(//\)[^/]' \| \
9847          X"$as_dir" : 'X\(//\)$' \| \
9848          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9849 $as_echo X"$as_dir" |
9850     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9851             s//\1/
9852             q
9853           }
9854           /^X\(\/\/\)[^/].*/{
9855             s//\1/
9856             q
9857           }
9858           /^X\(\/\/\)$/{
9859             s//\1/
9860             q
9861           }
9862           /^X\(\/\).*/{
9863             s//\1/
9864             q
9865           }
9866           s/.*/./; q'`
9867       test -d "$as_dir" && break
9868     done
9869     test -z "$as_dirs" || eval "mkdir $as_dirs"
9870   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9871 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
9872    { (exit 1); exit 1; }; }; }
9873   ac_builddir=.
9874
9875 case "$ac_dir" in
9876 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9877 *)
9878   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9879   # A ".." for each directory in $ac_dir_suffix.
9880   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9881   case $ac_top_builddir_sub in
9882   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9883   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9884   esac ;;
9885 esac
9886 ac_abs_top_builddir=$ac_pwd
9887 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9888 # for backward compatibility:
9889 ac_top_builddir=$ac_top_build_prefix
9890
9891 case $srcdir in
9892   .)  # We are building in place.
9893     ac_srcdir=.
9894     ac_top_srcdir=$ac_top_builddir_sub
9895     ac_abs_top_srcdir=$ac_pwd ;;
9896   [\\/]* | ?:[\\/]* )  # Absolute name.
9897     ac_srcdir=$srcdir$ac_dir_suffix;
9898     ac_top_srcdir=$srcdir
9899     ac_abs_top_srcdir=$srcdir ;;
9900   *) # Relative name.
9901     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9902     ac_top_srcdir=$ac_top_build_prefix$srcdir
9903     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9904 esac
9905 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9906
9907
9908   case $ac_mode in
9909   :F)
9910   #
9911   # CONFIG_FILE
9912   #
9913
9914   case $INSTALL in
9915   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9916   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9917   esac
9918 _ACEOF
9919
9920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9921 # If the template does not know about datarootdir, expand it.
9922 # FIXME: This hack should be removed a few years after 2.60.
9923 ac_datarootdir_hack=; ac_datarootdir_seen=
9924
9925 ac_sed_dataroot='
9926 /datarootdir/ {
9927   p
9928   q
9929 }
9930 /@datadir@/p
9931 /@docdir@/p
9932 /@infodir@/p
9933 /@localedir@/p
9934 /@mandir@/p
9935 '
9936 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9937 *datarootdir*) ac_datarootdir_seen=yes;;
9938 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9939   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9940 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9941 _ACEOF
9942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9943   ac_datarootdir_hack='
9944   s&@datadir@&$datadir&g
9945   s&@docdir@&$docdir&g
9946   s&@infodir@&$infodir&g
9947   s&@localedir@&$localedir&g
9948   s&@mandir@&$mandir&g
9949     s&\\\${datarootdir}&$datarootdir&g' ;;
9950 esac
9951 _ACEOF
9952
9953 # Neutralize VPATH when `$srcdir' = `.'.
9954 # Shell code in configure.ac might set extrasub.
9955 # FIXME: do we really want to maintain this feature?
9956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9957 ac_sed_extra="$ac_vpsub
9958 $extrasub
9959 _ACEOF
9960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9961 :t
9962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9963 s|@configure_input@|$ac_sed_conf_input|;t t
9964 s&@top_builddir@&$ac_top_builddir_sub&;t t
9965 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9966 s&@srcdir@&$ac_srcdir&;t t
9967 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9968 s&@top_srcdir@&$ac_top_srcdir&;t t
9969 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9970 s&@builddir@&$ac_builddir&;t t
9971 s&@abs_builddir@&$ac_abs_builddir&;t t
9972 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9973 s&@INSTALL@&$ac_INSTALL&;t t
9974 $ac_datarootdir_hack
9975 "
9976 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9977   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9978 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9979    { (exit 1); exit 1; }; }
9980
9981 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9982   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9983   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9984   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9985 which seems to be undefined.  Please make sure it is defined." >&5
9986 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9987 which seems to be undefined.  Please make sure it is defined." >&2;}
9988
9989   rm -f "$tmp/stdin"
9990   case $ac_file in
9991   -) cat "$tmp/out" && rm -f "$tmp/out";;
9992   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9993   esac \
9994   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
9995 $as_echo "$as_me: error: could not create $ac_file" >&2;}
9996    { (exit 1); exit 1; }; }
9997  ;;
9998   :H)
9999   #
10000   # CONFIG_HEADER
10001   #
10002   if test x"$ac_file" != x-; then
10003     {
10004       $as_echo "/* $configure_input  */" \
10005       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10006     } >"$tmp/config.h" \
10007       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10008 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10009    { (exit 1); exit 1; }; }
10010     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10011       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10012 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10013     else
10014       rm -f "$ac_file"
10015       mv "$tmp/config.h" "$ac_file" \
10016         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10017 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10018    { (exit 1); exit 1; }; }
10019     fi
10020   else
10021     $as_echo "/* $configure_input  */" \
10022       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10023       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10024 $as_echo "$as_me: error: could not create -" >&2;}
10025    { (exit 1); exit 1; }; }
10026   fi
10027  ;;
10028
10029   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10030 $as_echo "$as_me: executing $ac_file commands" >&6;}
10031  ;;
10032   esac
10033
10034
10035   case $ac_file$ac_mode in
10036     "default":C)
10037 case $CONFIG_FILES in *config.make*)
10038 echo "$config_vars" >> config.make;;
10039 esac
10040 test -d bits || mkdir bits ;;
10041
10042   esac
10043 done # for ac_tag
10044
10045
10046 { (exit 0); exit 0; }
10047 _ACEOF
10048 chmod +x $CONFIG_STATUS
10049 ac_clean_files=$ac_clean_files_save
10050
10051 test $ac_write_fail = 0 ||
10052   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10053 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10054    { (exit 1); exit 1; }; }
10055
10056
10057 # configure is writing to config.log, and then calls config.status.
10058 # config.status does its own redirection, appending to config.log.
10059 # Unfortunately, on DOS this fails, as config.log is still kept open
10060 # by configure, so config.status won't be able to write to it; its
10061 # output is simply discarded.  So we exec the FD to /dev/null,
10062 # effectively closing config.log, so it can be properly (re)opened and
10063 # appended to by config.status.  When coming back to configure, we
10064 # need to make the FD available again.
10065 if test "$no_create" != yes; then
10066   ac_cs_success=:
10067   ac_config_status_args=
10068   test "$silent" = yes &&
10069     ac_config_status_args="$ac_config_status_args --quiet"
10070   exec 5>/dev/null
10071   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10072   exec 5>>config.log
10073   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10074   # would make configure fail if this is the last instruction.
10075   $ac_cs_success || { (exit 1); exit 1; }
10076 fi
10077
10078 #
10079 # CONFIG_SUBDIRS section.
10080 #
10081 if test "$no_recursion" != yes; then
10082
10083   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10084   # so they do not pile up.
10085   ac_sub_configure_args=
10086   ac_prev=
10087   eval "set x $ac_configure_args"
10088   shift
10089   for ac_arg
10090   do
10091     if test -n "$ac_prev"; then
10092       ac_prev=
10093       continue
10094     fi
10095     case $ac_arg in
10096     -cache-file | --cache-file | --cache-fil | --cache-fi \
10097     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10098       ac_prev=cache_file ;;
10099     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10100     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10101     | --c=*)
10102       ;;
10103     --config-cache | -C)
10104       ;;
10105     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10106       ac_prev=srcdir ;;
10107     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10108       ;;
10109     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10110       ac_prev=prefix ;;
10111     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10112       ;;
10113     --disable-option-checking)
10114       ;;
10115     *)
10116       case $ac_arg in
10117       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10118       esac
10119       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
10120     esac
10121   done
10122
10123   # Always prepend --prefix to ensure using the same prefix
10124   # in subdir configurations.
10125   ac_arg="--prefix=$prefix"
10126   case $ac_arg in
10127   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10128   esac
10129   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10130
10131   # Pass --silent
10132   if test "$silent" = yes; then
10133     ac_sub_configure_args="--silent $ac_sub_configure_args"
10134   fi
10135
10136   # Always prepend --disable-option-checking to silence warnings, since
10137   # different subdirs can have different --enable and --with options.
10138   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10139
10140   ac_popdir=`pwd`
10141   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10142
10143     # Do not complain, so a configure script can configure whichever
10144     # parts of a large source tree are present.
10145     test -d "$srcdir/$ac_dir" || continue
10146
10147     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10148     $as_echo "$as_me:$LINENO: $ac_msg" >&5
10149     $as_echo "$ac_msg" >&6
10150     { as_dir="$ac_dir"
10151   case $as_dir in #(
10152   -*) as_dir=./$as_dir;;
10153   esac
10154   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10155     as_dirs=
10156     while :; do
10157       case $as_dir in #(
10158       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10159       *) as_qdir=$as_dir;;
10160       esac
10161       as_dirs="'$as_qdir' $as_dirs"
10162       as_dir=`$as_dirname -- "$as_dir" ||
10163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10164          X"$as_dir" : 'X\(//\)[^/]' \| \
10165          X"$as_dir" : 'X\(//\)$' \| \
10166          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10167 $as_echo X"$as_dir" |
10168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10169             s//\1/
10170             q
10171           }
10172           /^X\(\/\/\)[^/].*/{
10173             s//\1/
10174             q
10175           }
10176           /^X\(\/\/\)$/{
10177             s//\1/
10178             q
10179           }
10180           /^X\(\/\).*/{
10181             s//\1/
10182             q
10183           }
10184           s/.*/./; q'`
10185       test -d "$as_dir" && break
10186     done
10187     test -z "$as_dirs" || eval "mkdir $as_dirs"
10188   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10189 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10190    { (exit 1); exit 1; }; }; }
10191     ac_builddir=.
10192
10193 case "$ac_dir" in
10194 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10195 *)
10196   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10197   # A ".." for each directory in $ac_dir_suffix.
10198   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10199   case $ac_top_builddir_sub in
10200   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10201   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10202   esac ;;
10203 esac
10204 ac_abs_top_builddir=$ac_pwd
10205 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10206 # for backward compatibility:
10207 ac_top_builddir=$ac_top_build_prefix
10208
10209 case $srcdir in
10210   .)  # We are building in place.
10211     ac_srcdir=.
10212     ac_top_srcdir=$ac_top_builddir_sub
10213     ac_abs_top_srcdir=$ac_pwd ;;
10214   [\\/]* | ?:[\\/]* )  # Absolute name.
10215     ac_srcdir=$srcdir$ac_dir_suffix;
10216     ac_top_srcdir=$srcdir
10217     ac_abs_top_srcdir=$srcdir ;;
10218   *) # Relative name.
10219     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10220     ac_top_srcdir=$ac_top_build_prefix$srcdir
10221     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10222 esac
10223 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10224
10225
10226     cd "$ac_dir"
10227
10228     # Check for guested configure; otherwise get Cygnus style configure.
10229     if test -f "$ac_srcdir/configure.gnu"; then
10230       ac_sub_configure=$ac_srcdir/configure.gnu
10231     elif test -f "$ac_srcdir/configure"; then
10232       ac_sub_configure=$ac_srcdir/configure
10233     elif test -f "$ac_srcdir/configure.in"; then
10234       # This should be Cygnus configure.
10235       ac_sub_configure=$ac_aux_dir/configure
10236     else
10237       { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
10238 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10239       ac_sub_configure=
10240     fi
10241
10242     # The recursion is here.
10243     if test -n "$ac_sub_configure"; then
10244       # Make the cache file name correct relative to the subdirectory.
10245       case $cache_file in
10246       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10247       *) # Relative name.
10248         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10249       esac
10250
10251       { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
10252 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10253       # The eval makes quoting arguments work.
10254       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10255            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10256         { { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
10257 $as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
10258    { (exit 1); exit 1; }; }
10259     fi
10260
10261     cd "$ac_popdir"
10262   done
10263 fi
10264 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10265   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10266 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10267 fi
10268