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