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