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