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