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