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