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