Add *.pyc to .gitignore
[glibc.git] / configure
blob1e4138b524ed3f2098de1a2cb805e65ccba61d43
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).
5 # Report bugs to <http://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 *) :
32 esac
36 as_nl='
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"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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
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 *) :
176 esac
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; }
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 :
192 else
193 exitcode=1; echo positional parameters were not saved.
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
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
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
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
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
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
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
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."
275 exit 1
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
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
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 ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
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/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
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"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
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 ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
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 ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
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 ()
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
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
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
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
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
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/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
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
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 '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
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; }
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
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;;
513 ECHO_N='-n';;
514 esac
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
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'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
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
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
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'"
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'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
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`
569 # Initializations.
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=
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/'
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_pic_default
600 shared
601 static
602 ldd_rewrite_script
603 use_ldconfig
604 libc_cv_forced_unwind
605 libc_cv_rootsbindir
606 libc_cv_localstatedir
607 libc_cv_sysconfdir
608 libc_cv_localedir
609 libc_cv_rtlddir
610 libc_cv_slibdir
611 old_glibc_headers
612 use_nscd
613 libc_cv_gcc_unwind_find_fde
614 libc_extra_cppflags
615 libc_extra_cflags
616 CPPUNDEFS
617 sizeof_long_double
618 have_selinux
619 have_libcap
620 have_libaudit
621 LIBGD
622 libc_cv_cc_loop_to_function
623 libc_cv_cc_submachine
624 libc_cv_cc_nofma
625 exceptions
626 gnu89_inline
627 libc_cv_ssp
628 fno_unit_at_a_time
629 libc_cv_output_format
630 libc_cv_hashstyle
631 libc_cv_fpie
632 libc_cv_z_execstack
633 libc_cv_z_combreloc
634 ASFLAGS_config
635 libc_cv_Bgroup
636 libc_cv_cc_with_libunwind
637 libc_cv_protected_data
638 BISON
639 INSTALL_INFO
640 PERL
641 BASH_SHELL
642 libc_cv_gcc_static_libgcc
643 CXX_SYSINCLUDES
644 SYSINCLUDES
645 AUTOCONF
649 MAKEINFO
650 MSGFMT
651 MAKE
654 OBJCOPY
655 OBJDUMP
657 LN_S
658 INSTALL_DATA
659 INSTALL_SCRIPT
660 INSTALL_PROGRAM
661 sysdeps_add_ons
662 sysnames
663 submachine
664 multi_arch
665 base_machine
666 add_on_subdirs
667 add_ons
668 build_pt_chown
669 build_nscd
670 link_obsolete_rpc
671 libc_cv_nss_crypt
672 enable_werror
673 all_warnings
674 force_install
675 bindnow
676 enable_lock_elision
677 hardcoded_path_in_tests
678 use_default_link
679 sysheaders
680 with_fp
681 ac_ct_CXX
682 CXXFLAGS
684 READELF
686 cross_compiling
687 BUILD_CC
688 OBJEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 subdirs
703 REPORT_BUGS_TEXI
704 REPORT_BUGS_TO
705 PKGVERSION_TEXI
706 PKGVERSION
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_URL
738 PACKAGE_BUGREPORT
739 PACKAGE_STRING
740 PACKAGE_VERSION
741 PACKAGE_TARNAME
742 PACKAGE_NAME
743 PATH_SEPARATOR
744 SHELL'
745 ac_subst_files=''
746 ac_user_opts='
747 enable_option_checking
748 with_pkgversion
749 with_bugurl
750 with_gd
751 with_gd_include
752 with_gd_lib
753 with_fp
754 with_binutils
755 with_selinux
756 with_headers
757 with_default_link
758 enable_sanity_checks
759 enable_shared
760 enable_profile
761 enable_hardcoded_path_in_tests
762 enable_stackguard_randomization
763 enable_lock_elision
764 enable_add_ons
765 enable_hidden_plt
766 enable_bind_now
767 enable_static_nss
768 enable_force_install
769 enable_maintainer_mode
770 enable_kernel
771 enable_all_warnings
772 enable_werror
773 enable_multi_arch
774 enable_nss_crypt
775 enable_obsolete_rpc
776 enable_systemtap
777 enable_build_nscd
778 enable_nscd
779 enable_pt_chown
780 enable_mathvec
781 with_cpu
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
793 CXXFLAGS
794 CCC'
795 ac_subdirs_all='
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
846 ac_prev=
847 ac_dashdash=
848 for ac_option
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
857 case $ac_option in
858 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *=) ac_optarg= ;;
860 *) ac_optarg=yes ;;
861 esac
863 # Accept the important Cygnus configure options, so we can diagnose typos.
865 case $ac_dashdash$ac_option in
867 ac_dashdash=yes ;;
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
886 --config-cache | -C)
887 cache_file=config.cache ;;
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: $ac_useropt"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1086 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 ac_prev=sbindir ;;
1088 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 | --sbi=* | --sb=*)
1090 sbindir=$ac_optarg ;;
1092 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1093 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1094 | --sharedst | --shareds | --shared | --share | --shar \
1095 | --sha | --sh)
1096 ac_prev=sharedstatedir ;;
1097 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1098 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1099 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 | --sha=* | --sh=*)
1101 sharedstatedir=$ac_optarg ;;
1103 -site | --site | --sit)
1104 ac_prev=site ;;
1105 -site=* | --site=* | --sit=*)
1106 site=$ac_optarg ;;
1108 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 ac_prev=srcdir ;;
1110 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1111 srcdir=$ac_optarg ;;
1113 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1114 | --syscon | --sysco | --sysc | --sys | --sy)
1115 ac_prev=sysconfdir ;;
1116 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1117 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1118 sysconfdir=$ac_optarg ;;
1120 -target | --target | --targe | --targ | --tar | --ta | --t)
1121 ac_prev=target_alias ;;
1122 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1123 target_alias=$ac_optarg ;;
1125 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1126 verbose=yes ;;
1128 -version | --version | --versio | --versi | --vers | -V)
1129 ac_init_version=: ;;
1131 -with-* | --with-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error $? "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=no ;;
1163 --x)
1164 # Obsolete; use --with-x.
1165 with_x=yes ;;
1167 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168 | --x-incl | --x-inc | --x-in | --x-i)
1169 ac_prev=x_includes ;;
1170 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172 x_includes=$ac_optarg ;;
1174 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176 ac_prev=x_libraries ;;
1177 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179 x_libraries=$ac_optarg ;;
1181 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1182 Try \`$0 --help' for more information"
1185 *=*)
1186 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1187 # Reject names that are not valid shell variable names.
1188 case $ac_envvar in #(
1189 '' | [0-9]* | *[!_$as_cr_alnum]* )
1190 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1191 esac
1192 eval $ac_envvar=\$ac_optarg
1193 export $ac_envvar ;;
1196 # FIXME: should be removed in autoconf 3.0.
1197 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 esac
1204 done
1206 if test -n "$ac_prev"; then
1207 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208 as_fn_error $? "missing argument to $ac_option"
1211 if test -n "$ac_unrecognized_opts"; then
1212 case $enable_option_checking in
1213 no) ;;
1214 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1215 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1216 esac
1219 # Check all directory arguments for consistency.
1220 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221 datadir sysconfdir sharedstatedir localstatedir includedir \
1222 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223 libdir localedir mandir
1225 eval ac_val=\$$ac_var
1226 # Remove trailing slashes.
1227 case $ac_val in
1228 */ )
1229 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1230 eval $ac_var=\$ac_val;;
1231 esac
1232 # Be sure to have absolute directory names.
1233 case $ac_val in
1234 [\\/$]* | ?:[\\/]* ) continue;;
1235 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1236 esac
1237 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1238 done
1240 # There might be people who depend on the old broken behavior: `$host'
1241 # used to hold the argument of --host etc.
1242 # FIXME: To remove some day.
1243 build=$build_alias
1244 host=$host_alias
1245 target=$target_alias
1247 # FIXME: To remove some day.
1248 if test "x$host_alias" != x; then
1249 if test "x$build_alias" = x; then
1250 cross_compiling=maybe
1251 elif test "x$build_alias" != "x$host_alias"; then
1252 cross_compiling=yes
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259 test "$silent" = yes && exec 6>/dev/null
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265 as_fn_error $? "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267 as_fn_error $? "pwd does not report name of working directory"
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272 ac_srcdir_defaulted=yes
1273 # Try the directory containing this script, then the parent directory.
1274 ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276 X"$as_myself" : 'X\(//\)[^/]' \| \
1277 X"$as_myself" : 'X\(//\)$' \| \
1278 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 s//\1/
1284 /^X\(\/\/\)[^/].*/{
1285 s//\1/
1288 /^X\(\/\/\)$/{
1289 s//\1/
1292 /^X\(\/\).*/{
1293 s//\1/
1296 s/.*/./; q'`
1297 srcdir=$ac_confdir
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 srcdir=..
1301 else
1302 ac_srcdir_defaulted=no
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1311 pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314 srcdir=.
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324 eval ac_env_${ac_var}_value=\$${ac_var}
1325 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1330 # Report the --help message.
1332 if test "$ac_init_help" = "long"; then
1333 # Omit some internal or obsolete options to make the list less imposing.
1334 # This message is too long to be a string in the A/UX 3.1 sh.
1335 cat <<_ACEOF
1336 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE. See below for descriptions of some of the useful variables.
1343 Defaults for the options are specified in brackets.
1345 Configuration:
1346 -h, --help display this help and exit
1347 --help=short display options specific to this package
1348 --help=recursive display the short help of all the included packages
1349 -V, --version display version information and exit
1350 -q, --quiet, --silent do not print \`checking ...' messages
1351 --cache-file=FILE cache test results in FILE [disabled]
1352 -C, --config-cache alias for \`--cache-file=config.cache'
1353 -n, --no-create do not create output files
1354 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356 Installation directories:
1357 --prefix=PREFIX install architecture-independent files in PREFIX
1358 [$ac_default_prefix]
1359 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360 [PREFIX]
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1367 For better control, use the options below.
1369 Fine tuning of the installation directories:
1370 --bindir=DIR user executables [EPREFIX/bin]
1371 --sbindir=DIR system admin executables [EPREFIX/sbin]
1372 --libexecdir=DIR program executables [EPREFIX/libexec]
1373 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1389 _ACEOF
1391 cat <<\_ACEOF
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1400 case $ac_init_help in
1401 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1402 esac
1403 cat <<\_ACEOF
1405 Optional Features:
1406 --disable-option-checking ignore unrecognized --enable/--with options
1407 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1408 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1409 --disable-sanity-checks really do not use threads (should not be used except
1410 in special situations) [default=yes]
1411 --enable-shared build shared library [default=yes if GNU ld]
1412 --enable-profile build profiled library [default=no]
1413 --enable-hardcoded-path-in-tests
1414 hardcode newly built glibc path in tests
1415 [default=no]
1416 --enable-stackguard-randomization
1417 initialize __stack_chk_guard canary with a random
1418 number at program start
1419 --enable-lock-elision=yes/no
1420 Enable lock elision for pthread mutexes by default
1421 --enable-add-ons[=DIRS...]
1422 configure and build add-ons in DIR1,DIR2,... search
1423 for add-ons if no parameter given
1424 --disable-hidden-plt do not hide internal function calls to avoid PLT
1425 --enable-bind-now disable lazy relocations in DSOs
1426 --enable-static-nss build static NSS modules [default=no]
1427 --disable-force-install don't force installation of files from this package,
1428 even if they are older than the installed files
1429 --enable-maintainer-mode
1430 enable make rules and dependencies not useful (and
1431 sometimes confusing) to the casual installer
1432 --enable-kernel=VERSION compile for compatibility with kernel not older than
1433 VERSION
1434 --enable-all-warnings enable all useful warnings gcc can issue
1435 --disable-werror do not build with -Werror
1436 --enable-multi-arch enable single DSO with optimizations for multiple
1437 architectures
1438 --enable-nss-crypt enable libcrypt to use nss
1439 --enable-obsolete-rpc build and install the obsolete RPC code for
1440 link-time usage
1441 --enable-systemtap enable systemtap static probe points [default=no]
1442 --disable-build-nscd disable building and installing the nscd daemon
1443 --disable-nscd library functions will not contact the nscd daemon
1444 --enable-pt_chown Enable building and installing pt_chown
1445 --enable-mathvec Enable building and installing mathvec [default
1446 depends on architecture]
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1452 --with-bugurl=URL Direct users to URL to report a bug
1453 --with-gd=DIR find libgd include dir and library with prefix DIR
1454 --with-gd-include=DIR find libgd include files in DIR
1455 --with-gd-lib=DIR find libgd library files in DIR
1456 --with-fp if using floating-point hardware [default=yes]
1457 --with-binutils=PATH specify location of binutils (as and ld)
1458 --with-selinux if building with SELinux support
1459 --with-headers=PATH location of system headers to use (for example
1460 /usr/src/linux/include) [default=compiler default]
1461 --with-default-link do not use explicit linker scripts
1462 --with-cpu=CPU select code for CPU variant
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1472 CPP C preprocessor
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to <http://sourceware.org/bugzilla/>.
1480 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1481 General help using GNU software: <http://www.gnu.org/gethelp/>.
1482 _ACEOF
1483 ac_status=$?
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 GNU C Library configure (see version.h)
1545 generated by GNU Autoconf 2.69
1547 Copyright (C) 2012 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1589 ac_retval=1
1591 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1592 as_fn_set_status $ac_retval
1594 } # ac_fn_c_try_compile
1596 # ac_fn_cxx_try_compile LINENO
1597 # ----------------------------
1598 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_cxx_try_compile ()
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext
1603 if { { ac_try="$ac_compile"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_compile") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_cxx_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest.$ac_objext; then :
1622 ac_retval=0
1623 else
1624 $as_echo "$as_me: failed program was:" >&5
1625 sed 's/^/| /' conftest.$ac_ext >&5
1627 ac_retval=1
1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630 as_fn_set_status $ac_retval
1632 } # ac_fn_cxx_try_compile
1634 # ac_fn_cxx_try_link LINENO
1635 # -------------------------
1636 # Try to link conftest.$ac_ext, and return whether this succeeded.
1637 ac_fn_cxx_try_link ()
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 rm -f conftest.$ac_objext conftest$ac_exeext
1641 if { { ac_try="$ac_link"
1642 case "(($ac_try" in
1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644 *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648 (eval "$ac_link") 2>conftest.err
1649 ac_status=$?
1650 if test -s conftest.err; then
1651 grep -v '^ *+' conftest.err >conftest.er1
1652 cat conftest.er1 >&5
1653 mv -f conftest.er1 conftest.err
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; } && {
1657 test -z "$ac_cxx_werror_flag" ||
1658 test ! -s conftest.err
1659 } && test -s conftest$ac_exeext && {
1660 test "$cross_compiling" = yes ||
1661 test -x conftest$ac_exeext
1662 }; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=1
1670 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1671 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1672 # interfere with the next link command; also delete a directory that is
1673 # left behind by Apple's compiler. We do this before executing the actions.
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1678 } # ac_fn_cxx_try_link
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1714 ac_retval=1
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_link
1726 # ac_fn_c_try_run LINENO
1727 # ----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1729 # that executables *can* be run.
1730 ac_fn_c_try_run ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_link"
1734 case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>&5
1741 ac_status=$?
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1744 { { case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747 esac
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_try") 2>&5
1751 ac_status=$?
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; }; }; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: program exited with status $ac_status" >&5
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1760 ac_retval=$ac_status
1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764 as_fn_set_status $ac_retval
1766 } # ac_fn_c_try_run
1768 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1769 # --------------------------------------------
1770 # Tries to find the compile-time value of EXPR in a program that includes
1771 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1772 # computed
1773 ac_fn_c_compute_int ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if test "$cross_compiling" = yes; then
1777 # Depending upon the size, compute the lo and hi bounds.
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1782 main ()
1784 static int test_array [1 - 2 * !(($2) >= 0)];
1785 test_array [0] = 0;
1786 return test_array [0];
1789 return 0;
1791 _ACEOF
1792 if ac_fn_c_try_compile "$LINENO"; then :
1793 ac_lo=0 ac_mid=0
1794 while :; do
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1799 main ()
1801 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1802 test_array [0] = 0;
1803 return test_array [0];
1806 return 0;
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"; then :
1810 ac_hi=$ac_mid; break
1811 else
1812 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1813 if test $ac_lo -le $ac_mid; then
1814 ac_lo= ac_hi=
1815 break
1817 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 done
1821 else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1826 main ()
1828 static int test_array [1 - 2 * !(($2) < 0)];
1829 test_array [0] = 0;
1830 return test_array [0];
1833 return 0;
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_hi=-1 ac_mid=-1
1838 while :; do
1839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840 /* end confdefs.h. */
1843 main ()
1845 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1846 test_array [0] = 0;
1847 return test_array [0];
1850 return 0;
1852 _ACEOF
1853 if ac_fn_c_try_compile "$LINENO"; then :
1854 ac_lo=$ac_mid; break
1855 else
1856 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1857 if test $ac_mid -le $ac_hi; then
1858 ac_lo= ac_hi=
1859 break
1861 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 done
1865 else
1866 ac_lo= ac_hi=
1868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 # Binary search between lo and hi bounds.
1872 while test "x$ac_lo" != "x$ac_hi"; do
1873 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1878 main ()
1880 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1881 test_array [0] = 0;
1882 return test_array [0];
1885 return 0;
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889 ac_hi=$ac_mid
1890 else
1891 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 done
1895 case $ac_lo in #((
1896 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1897 '') ac_retval=1 ;;
1898 esac
1899 else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1903 static long int longval () { return $2; }
1904 static unsigned long int ulongval () { return $2; }
1905 #include <stdio.h>
1906 #include <stdlib.h>
1908 main ()
1911 FILE *f = fopen ("conftest.val", "w");
1912 if (! f)
1913 return 1;
1914 if (($2) < 0)
1916 long int i = longval ();
1917 if (i != ($2))
1918 return 1;
1919 fprintf (f, "%ld", i);
1921 else
1923 unsigned long int i = ulongval ();
1924 if (i != ($2))
1925 return 1;
1926 fprintf (f, "%lu", i);
1928 /* Do not output a trailing newline, as this causes \r\n confusion
1929 on some platforms. */
1930 return ferror (f) || fclose (f) != 0;
1933 return 0;
1935 _ACEOF
1936 if ac_fn_c_try_run "$LINENO"; then :
1937 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1938 else
1939 ac_retval=1
1941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1942 conftest.$ac_objext conftest.beam conftest.$ac_ext
1943 rm -f conftest.val
1946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 as_fn_set_status $ac_retval
1949 } # ac_fn_c_compute_int
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1954 It was created by GNU C Library $as_me (see version.h), which was
1955 generated by GNU Autoconf 2.69. Invocation command line was
1957 $ $0 $@
1959 _ACEOF
1960 exec 5>>config.log
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1976 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1977 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1980 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1981 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1982 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1984 _ASUNAME
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1989 IFS=$as_save_IFS
1990 test -z "$as_dir" && as_dir=.
1991 $as_echo "PATH: $as_dir"
1992 done
1993 IFS=$as_save_IFS
1995 } >&5
1997 cat >&5 <<_ACEOF
2000 ## ----------- ##
2001 ## Core tests. ##
2002 ## ----------- ##
2004 _ACEOF
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2012 ac_configure_args=
2013 ac_configure_args0=
2014 ac_configure_args1=
2015 ac_must_keep_next=false
2016 for ac_pass in 1 2
2018 for ac_arg
2020 case $ac_arg in
2021 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2023 | -silent | --silent | --silen | --sile | --sil)
2024 continue ;;
2025 *\'*)
2026 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027 esac
2028 case $ac_pass in
2029 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2031 as_fn_append ac_configure_args1 " '$ac_arg'"
2032 if test $ac_must_keep_next = true; then
2033 ac_must_keep_next=false # Got value, back to normal.
2034 else
2035 case $ac_arg in
2036 *=* | --config-cache | -C | -disable-* | --disable-* \
2037 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2038 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2039 | -with-* | --with-* | -without-* | --without-* | --x)
2040 case "$ac_configure_args0 " in
2041 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042 esac
2044 -* ) ac_must_keep_next=true ;;
2045 esac
2047 as_fn_append ac_configure_args " '$ac_arg'"
2049 esac
2050 done
2051 done
2052 { ac_configure_args0=; unset ac_configure_args0;}
2053 { ac_configure_args1=; unset ac_configure_args1;}
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log. We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061 # Save into config.log some information that might help in debugging.
2063 echo
2065 $as_echo "## ---------------- ##
2066 ## Cache variables. ##
2067 ## ---------------- ##"
2068 echo
2069 # The following way of writing the cache mishandles newlines in values,
2071 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072 eval ac_val=\$$ac_var
2073 case $ac_val in #(
2074 *${as_nl}*)
2075 case $ac_var in #(
2076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078 esac
2079 case $ac_var in #(
2080 _ | IFS | as_nl) ;; #(
2081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082 *) { eval $ac_var=; unset $ac_var;} ;;
2083 esac ;;
2084 esac
2085 done
2086 (set) 2>&1 |
2087 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088 *${as_nl}ac_space=\ *)
2089 sed -n \
2090 "s/'\''/'\''\\\\'\'''\''/g;
2091 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092 ;; #(
2094 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096 esac |
2097 sort
2099 echo
2101 $as_echo "## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##"
2104 echo
2105 for ac_var in $ac_subst_vars
2107 eval ac_val=\$$ac_var
2108 case $ac_val in
2109 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110 esac
2111 $as_echo "$ac_var='\''$ac_val'\''"
2112 done | sort
2113 echo
2115 if test -n "$ac_subst_files"; then
2116 $as_echo "## ------------------- ##
2117 ## File substitutions. ##
2118 ## ------------------- ##"
2119 echo
2120 for ac_var in $ac_subst_files
2122 eval ac_val=\$$ac_var
2123 case $ac_val in
2124 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125 esac
2126 $as_echo "$ac_var='\''$ac_val'\''"
2127 done | sort
2128 echo
2131 if test -s confdefs.h; then
2132 $as_echo "## ----------- ##
2133 ## confdefs.h. ##
2134 ## ----------- ##"
2135 echo
2136 cat confdefs.h
2137 echo
2139 test "$ac_signal" != 0 &&
2140 $as_echo "$as_me: caught signal $ac_signal"
2141 $as_echo "$as_me: exit $exit_status"
2142 } >&5
2143 rm -f core *.core core.conftest.* &&
2144 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145 exit $exit_status
2147 for ac_signal in 1 2 13 15; do
2148 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2149 done
2150 ac_signal=0
2152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2153 rm -f -r conftest* confdefs.h
2155 $as_echo "/* confdefs.h */" > confdefs.h
2157 # Predefined preprocessor variables.
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_NAME "$PACKAGE_NAME"
2161 _ACEOF
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165 _ACEOF
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2169 _ACEOF
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 _ACEOF
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177 _ACEOF
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_URL "$PACKAGE_URL"
2181 _ACEOF
2184 # Let the site file select an alternate cache file if it wants to.
2185 # Prefer an explicitly selected file to automatically selected ones.
2186 ac_site_file1=NONE
2187 ac_site_file2=NONE
2188 if test -n "$CONFIG_SITE"; then
2189 # We do not want a PATH search for config.site.
2190 case $CONFIG_SITE in #((
2191 -*) ac_site_file1=./$CONFIG_SITE;;
2192 */*) ac_site_file1=$CONFIG_SITE;;
2193 *) ac_site_file1=./$CONFIG_SITE;;
2194 esac
2195 elif test "x$prefix" != xNONE; then
2196 ac_site_file1=$prefix/share/config.site
2197 ac_site_file2=$prefix/etc/config.site
2198 else
2199 ac_site_file1=$ac_default_prefix/share/config.site
2200 ac_site_file2=$ac_default_prefix/etc/config.site
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2204 test "x$ac_site_file" = xNONE && continue
2205 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208 sed 's/^/| /' "$ac_site_file" >&5
2209 . "$ac_site_file" \
2210 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 as_fn_error $? "failed to load site script $ac_site_file
2213 See \`config.log' for more details" "$LINENO" 5; }
2215 done
2217 if test -r "$cache_file"; then
2218 # Some versions of bash will fail to source /dev/null (special files
2219 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2220 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2222 $as_echo "$as_me: loading cache $cache_file" >&6;}
2223 case $cache_file in
2224 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2225 *) . "./$cache_file";;
2226 esac
2228 else
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2230 $as_echo "$as_me: creating cache $cache_file" >&6;}
2231 >$cache_file
2234 # Check that the precious variables saved in the cache have kept the same
2235 # value.
2236 ac_cache_corrupted=false
2237 for ac_var in $ac_precious_vars; do
2238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2239 eval ac_new_set=\$ac_env_${ac_var}_set
2240 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2241 eval ac_new_val=\$ac_env_${ac_var}_value
2242 case $ac_old_set,$ac_new_set in
2243 set,)
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2246 ac_cache_corrupted=: ;;
2247 ,set)
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2249 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2250 ac_cache_corrupted=: ;;
2251 ,);;
2253 if test "x$ac_old_val" != "x$ac_new_val"; then
2254 # differences in whitespace do not lead to failure.
2255 ac_old_val_w=`echo x $ac_old_val`
2256 ac_new_val_w=`echo x $ac_new_val`
2257 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2259 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2260 ac_cache_corrupted=:
2261 else
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2263 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2264 eval $ac_var=\$ac_old_val
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2267 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2269 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2270 fi;;
2271 esac
2272 # Pass precious variables to config.status.
2273 if test "$ac_new_set" = set; then
2274 case $ac_new_val in
2275 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2276 *) ac_arg=$ac_var=$ac_new_val ;;
2277 esac
2278 case " $ac_configure_args " in
2279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2280 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2281 esac
2283 done
2284 if $ac_cache_corrupted; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2288 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2289 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2291 ## -------------------- ##
2292 ## Main body of script. ##
2293 ## -------------------- ##
2295 ac_ext=c
2296 ac_cpp='$CPP $CPPFLAGS'
2297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303 ac_config_headers="$ac_config_headers config.h"
2305 ac_aux_dir=
2306 for ac_dir in scripts "$srcdir"/scripts; do
2307 if test -f "$ac_dir/install-sh"; then
2308 ac_aux_dir=$ac_dir
2309 ac_install_sh="$ac_aux_dir/install-sh -c"
2310 break
2311 elif test -f "$ac_dir/install.sh"; then
2312 ac_aux_dir=$ac_dir
2313 ac_install_sh="$ac_aux_dir/install.sh -c"
2314 break
2315 elif test -f "$ac_dir/shtool"; then
2316 ac_aux_dir=$ac_dir
2317 ac_install_sh="$ac_aux_dir/shtool install -c"
2318 break
2320 done
2321 if test -z "$ac_aux_dir"; then
2322 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2325 # These three variables are undocumented and unsupported,
2326 # and are intended to be withdrawn in a future Autoconf release.
2327 # They can cause serious problems if a builder's source tree is in a directory
2328 # whose full name contains unusual characters.
2329 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2330 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2331 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2337 # Check whether --with-pkgversion was given.
2338 if test "${with_pkgversion+set}" = set; then :
2339 withval=$with_pkgversion; case "$withval" in
2340 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2341 no) PKGVERSION= ;;
2342 *) PKGVERSION="($withval) " ;;
2343 esac
2344 else
2345 PKGVERSION="(GNU libc) "
2349 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2355 # Check whether --with-bugurl was given.
2356 if test "${with_bugurl+set}" = set; then :
2357 withval=$with_bugurl; case "$withval" in
2358 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2359 no) BUGURL=
2361 *) BUGURL="$withval"
2363 esac
2364 else
2365 BUGURL="http://www.gnu.org/software/libc/bugs.html"
2369 case ${BUGURL} in
2371 REPORT_BUGS_TO=
2372 REPORT_BUGS_TEXI=
2375 REPORT_BUGS_TO="<$BUGURL>"
2376 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2378 esac;
2383 cat >>confdefs.h <<_ACEOF
2384 #define PKGVERSION "$PKGVERSION"
2385 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2390 _ACEOF
2393 # Glibc should not depend on any header files
2396 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2397 # here to work around the Autoconf issue discussed in
2398 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2399 # AC_PROG_CPP
2401 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2402 # issue discussed in
2403 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2408 subdirs="$subdirs "
2411 # Make sure we can run config.sub.
2412 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2413 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2416 $as_echo_n "checking build system type... " >&6; }
2417 if ${ac_cv_build+:} false; then :
2418 $as_echo_n "(cached) " >&6
2419 else
2420 ac_build_alias=$build_alias
2421 test "x$ac_build_alias" = x &&
2422 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2423 test "x$ac_build_alias" = x &&
2424 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2425 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2426 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2430 $as_echo "$ac_cv_build" >&6; }
2431 case $ac_cv_build in
2432 *-*-*) ;;
2433 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2434 esac
2435 build=$ac_cv_build
2436 ac_save_IFS=$IFS; IFS='-'
2437 set x $ac_cv_build
2438 shift
2439 build_cpu=$1
2440 build_vendor=$2
2441 shift; shift
2442 # Remember, the first character of IFS is used to create $*,
2443 # except with old shells:
2444 build_os=$*
2445 IFS=$ac_save_IFS
2446 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2450 $as_echo_n "checking host system type... " >&6; }
2451 if ${ac_cv_host+:} false; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 if test "x$host_alias" = x; then
2455 ac_cv_host=$ac_cv_build
2456 else
2457 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2458 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2463 $as_echo "$ac_cv_host" >&6; }
2464 case $ac_cv_host in
2465 *-*-*) ;;
2466 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2467 esac
2468 host=$ac_cv_host
2469 ac_save_IFS=$IFS; IFS='-'
2470 set x $ac_cv_host
2471 shift
2472 host_cpu=$1
2473 host_vendor=$2
2474 shift; shift
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2477 host_os=$*
2478 IFS=$ac_save_IFS
2479 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2492 $as_echo_n "checking for $ac_word... " >&6; }
2493 if ${ac_cv_prog_CC+:} false; then :
2494 $as_echo_n "(cached) " >&6
2495 else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2506 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2510 done
2511 done
2512 IFS=$as_save_IFS
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2519 $as_echo "$CC" >&6; }
2520 else
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2522 $as_echo "no" >&6; }
2527 if test -z "$ac_cv_prog_CC"; then
2528 ac_ct_CC=$CC
2529 # Extract the first word of "gcc", so it can be a program name with args.
2530 set dummy gcc; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 if test -n "$ac_ct_CC"; then
2537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_ac_ct_CC="gcc"
2547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2550 done
2551 done
2552 IFS=$as_save_IFS
2556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557 if test -n "$ac_ct_CC"; then
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2559 $as_echo "$ac_ct_CC" >&6; }
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2565 if test "x$ac_ct_CC" = x; then
2566 CC=""
2567 else
2568 case $cross_compiling:$ac_tool_warned in
2569 yes:)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2572 ac_tool_warned=yes ;;
2573 esac
2574 CC=$ac_ct_CC
2576 else
2577 CC="$ac_cv_prog_CC"
2580 if test -z "$CC"; then
2581 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2583 set dummy ${ac_tool_prefix}cc; ac_word=$2
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585 $as_echo_n "checking for $ac_word... " >&6; }
2586 if ${ac_cv_prog_CC+:} false; then :
2587 $as_echo_n "(cached) " >&6
2588 else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591 else
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 for as_dir in $PATH
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2599 ac_cv_prog_CC="${ac_tool_prefix}cc"
2600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
2603 done
2604 done
2605 IFS=$as_save_IFS
2609 CC=$ac_cv_prog_CC
2610 if test -n "$CC"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2612 $as_echo "$CC" >&6; }
2613 else
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2621 if test -z "$CC"; then
2622 # Extract the first word of "cc", so it can be a program name with args.
2623 set dummy cc; ac_word=$2
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625 $as_echo_n "checking for $ac_word... " >&6; }
2626 if ${ac_cv_prog_CC+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628 else
2629 if test -n "$CC"; then
2630 ac_cv_prog_CC="$CC" # Let the user override the test.
2631 else
2632 ac_prog_rejected=no
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2640 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2641 ac_prog_rejected=yes
2642 continue
2644 ac_cv_prog_CC="cc"
2645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2646 break 2
2648 done
2649 done
2650 IFS=$as_save_IFS
2652 if test $ac_prog_rejected = yes; then
2653 # We found a bogon in the path, so make sure we never use it.
2654 set dummy $ac_cv_prog_CC
2655 shift
2656 if test $# != 0; then
2657 # We chose a different compiler from the bogus one.
2658 # However, it has the same basename, so the bogon will be chosen
2659 # first if we set CC to just the basename; use the full file name.
2660 shift
2661 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2666 CC=$ac_cv_prog_CC
2667 if test -n "$CC"; then
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2669 $as_echo "$CC" >&6; }
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2672 $as_echo "no" >&6; }
2677 if test -z "$CC"; then
2678 if test -n "$ac_tool_prefix"; then
2679 for ac_prog in cl.exe
2681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_CC+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 else
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2702 done
2703 done
2704 IFS=$as_save_IFS
2708 CC=$ac_cv_prog_CC
2709 if test -n "$CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2711 $as_echo "$CC" >&6; }
2712 else
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2718 test -n "$CC" && break
2719 done
2721 if test -z "$CC"; then
2722 ac_ct_CC=$CC
2723 for ac_prog in cl.exe
2725 # Extract the first word of "$ac_prog", so it can be a program name with args.
2726 set dummy $ac_prog; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$ac_ct_CC"; then
2733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_ac_ct_CC="$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2746 done
2747 done
2748 IFS=$as_save_IFS
2752 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2753 if test -n "$ac_ct_CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2755 $as_echo "$ac_ct_CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2762 test -n "$ac_ct_CC" && break
2763 done
2765 if test "x$ac_ct_CC" = x; then
2766 CC=""
2767 else
2768 case $cross_compiling:$ac_tool_warned in
2769 yes:)
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2772 ac_tool_warned=yes ;;
2773 esac
2774 CC=$ac_ct_CC
2781 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2783 as_fn_error $? "no acceptable C compiler found in \$PATH
2784 See \`config.log' for more details" "$LINENO" 5; }
2786 # Provide some information about the compiler.
2787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2788 set X $ac_compile
2789 ac_compiler=$2
2790 for ac_option in --version -v -V -qversion; do
2791 { { ac_try="$ac_compiler $ac_option >&5"
2792 case "(($ac_try" in
2793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2794 *) ac_try_echo=$ac_try;;
2795 esac
2796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2797 $as_echo "$ac_try_echo"; } >&5
2798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2799 ac_status=$?
2800 if test -s conftest.err; then
2801 sed '10a\
2802 ... rest of stderr output deleted ...
2803 10q' conftest.err >conftest.er1
2804 cat conftest.er1 >&5
2806 rm -f conftest.er1 conftest.err
2807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2808 test $ac_status = 0; }
2809 done
2811 EXEEXT=
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2813 $as_echo_n "checking for suffix of object files... " >&6; }
2814 if ${ac_cv_objext+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2821 main ()
2825 return 0;
2827 _ACEOF
2828 rm -f conftest.o conftest.obj
2829 if { { ac_try="$ac_compile"
2830 case "(($ac_try" in
2831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2832 *) ac_try_echo=$ac_try;;
2833 esac
2834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2835 $as_echo "$ac_try_echo"; } >&5
2836 (eval "$ac_compile") 2>&5
2837 ac_status=$?
2838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2839 test $ac_status = 0; }; then :
2840 for ac_file in conftest.o conftest.obj conftest.*; do
2841 test -f "$ac_file" || continue;
2842 case $ac_file in
2843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2844 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2845 break;;
2846 esac
2847 done
2848 else
2849 $as_echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2854 as_fn_error $? "cannot compute suffix of object files: cannot compile
2855 See \`config.log' for more details" "$LINENO" 5; }
2857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2860 $as_echo "$ac_cv_objext" >&6; }
2861 OBJEXT=$ac_cv_objext
2862 ac_objext=$OBJEXT
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2864 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2865 if ${ac_cv_c_compiler_gnu+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2872 main ()
2874 #ifndef __GNUC__
2875 choke me
2876 #endif
2879 return 0;
2881 _ACEOF
2882 if ac_fn_c_try_compile "$LINENO"; then :
2883 ac_compiler_gnu=yes
2884 else
2885 ac_compiler_gnu=no
2887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2892 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2893 if test $ac_compiler_gnu = yes; then
2894 GCC=yes
2895 else
2896 GCC=
2898 ac_test_CFLAGS=${CFLAGS+set}
2899 ac_save_CFLAGS=$CFLAGS
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2901 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2902 if ${ac_cv_prog_cc_g+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904 else
2905 ac_save_c_werror_flag=$ac_c_werror_flag
2906 ac_c_werror_flag=yes
2907 ac_cv_prog_cc_g=no
2908 CFLAGS="-g"
2909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2910 /* end confdefs.h. */
2913 main ()
2917 return 0;
2919 _ACEOF
2920 if ac_fn_c_try_compile "$LINENO"; then :
2921 ac_cv_prog_cc_g=yes
2922 else
2923 CFLAGS=""
2924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2928 main ()
2932 return 0;
2934 _ACEOF
2935 if ac_fn_c_try_compile "$LINENO"; then :
2937 else
2938 ac_c_werror_flag=$ac_save_c_werror_flag
2939 CFLAGS="-g"
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2944 main ()
2948 return 0;
2950 _ACEOF
2951 if ac_fn_c_try_compile "$LINENO"; then :
2952 ac_cv_prog_cc_g=yes
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959 ac_c_werror_flag=$ac_save_c_werror_flag
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2962 $as_echo "$ac_cv_prog_cc_g" >&6; }
2963 if test "$ac_test_CFLAGS" = set; then
2964 CFLAGS=$ac_save_CFLAGS
2965 elif test $ac_cv_prog_cc_g = yes; then
2966 if test "$GCC" = yes; then
2967 CFLAGS="-g -O2"
2968 else
2969 CFLAGS="-g"
2971 else
2972 if test "$GCC" = yes; then
2973 CFLAGS="-O2"
2974 else
2975 CFLAGS=
2979 ac_ext=c
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985 if test $host != $build; then
2986 for ac_prog in gcc cc
2988 # Extract the first word of "$ac_prog", so it can be a program name with args.
2989 set dummy $ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_BUILD_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$BUILD_CC"; then
2996 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3005 ac_cv_prog_BUILD_CC="$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3009 done
3010 done
3011 IFS=$as_save_IFS
3015 BUILD_CC=$ac_cv_prog_BUILD_CC
3016 if test -n "$BUILD_CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3018 $as_echo "$BUILD_CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3025 test -n "$BUILD_CC" && break
3026 done
3030 # On Suns, sometimes $CPP names a directory.
3031 if test -n "$CPP" && test -d "$CPP"; then
3032 CPP=
3034 if test -z "$CPP"; then
3035 CPP="$CC -E"
3038 if test -n "$ac_tool_prefix"; then
3039 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_READELF+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if test -n "$READELF"; then
3047 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3052 IFS=$as_save_IFS
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3056 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058 break 2
3060 done
3061 done
3062 IFS=$as_save_IFS
3066 READELF=$ac_cv_prog_READELF
3067 if test -n "$READELF"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3069 $as_echo "$READELF" >&6; }
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3077 if test -z "$ac_cv_prog_READELF"; then
3078 ac_ct_READELF=$READELF
3079 # Extract the first word of "readelf", so it can be a program name with args.
3080 set dummy readelf; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$ac_ct_READELF"; then
3087 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096 ac_cv_prog_ac_ct_READELF="readelf"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3107 if test -n "$ac_ct_READELF"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3109 $as_echo "$ac_ct_READELF" >&6; }
3110 else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112 $as_echo "no" >&6; }
3115 if test "x$ac_ct_READELF" = x; then
3116 READELF="false"
3117 else
3118 case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124 READELF=$ac_ct_READELF
3126 else
3127 READELF="$ac_cv_prog_READELF"
3131 # We need the C++ compiler only for testing.
3132 ac_ext=cpp
3133 ac_cpp='$CXXCPP $CPPFLAGS'
3134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3137 if test -z "$CXX"; then
3138 if test -n "$CCC"; then
3139 CXX=$CCC
3140 else
3141 if test -n "$ac_tool_prefix"; then
3142 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_CXX+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CXX"; then
3152 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3167 IFS=$as_save_IFS
3171 CXX=$ac_cv_prog_CXX
3172 if test -n "$CXX"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3174 $as_echo "$CXX" >&6; }
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3181 test -n "$CXX" && break
3182 done
3184 if test -z "$CXX"; then
3185 ac_ct_CXX=$CXX
3186 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3193 $as_echo_n "(cached) " >&6
3194 else
3195 if test -n "$ac_ct_CXX"; then
3196 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_prog_ac_ct_CXX="$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3209 done
3210 done
3211 IFS=$as_save_IFS
3215 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3216 if test -n "$ac_ct_CXX"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3218 $as_echo "$ac_ct_CXX" >&6; }
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$ac_ct_CXX" && break
3226 done
3228 if test "x$ac_ct_CXX" = x; then
3229 CXX="g++"
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CXX=$ac_ct_CXX
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 for ac_option in --version -v -V -qversion; do
3248 { { ac_try="$ac_compiler $ac_option >&5"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3256 ac_status=$?
3257 if test -s conftest.err; then
3258 sed '10a\
3259 ... rest of stderr output deleted ...
3260 10q' conftest.err >conftest.er1
3261 cat conftest.er1 >&5
3263 rm -f conftest.er1 conftest.err
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }
3266 done
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3269 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3270 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3277 main ()
3279 #ifndef __GNUC__
3280 choke me
3281 #endif
3284 return 0;
3286 _ACEOF
3287 if ac_fn_cxx_try_compile "$LINENO"; then :
3288 ac_compiler_gnu=yes
3289 else
3290 ac_compiler_gnu=no
3292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3293 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3297 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3298 if test $ac_compiler_gnu = yes; then
3299 GXX=yes
3300 else
3301 GXX=
3303 ac_test_CXXFLAGS=${CXXFLAGS+set}
3304 ac_save_CXXFLAGS=$CXXFLAGS
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3306 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3307 if ${ac_cv_prog_cxx_g+:} false; then :
3308 $as_echo_n "(cached) " >&6
3309 else
3310 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3311 ac_cxx_werror_flag=yes
3312 ac_cv_prog_cxx_g=no
3313 CXXFLAGS="-g"
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 if ac_fn_cxx_try_compile "$LINENO"; then :
3326 ac_cv_prog_cxx_g=yes
3327 else
3328 CXXFLAGS=""
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3333 main ()
3337 return 0;
3339 _ACEOF
3340 if ac_fn_cxx_try_compile "$LINENO"; then :
3342 else
3343 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3344 CXXFLAGS="-g"
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3349 main ()
3353 return 0;
3355 _ACEOF
3356 if ac_fn_cxx_try_compile "$LINENO"; then :
3357 ac_cv_prog_cxx_g=yes
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3367 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3368 if test "$ac_test_CXXFLAGS" = set; then
3369 CXXFLAGS=$ac_save_CXXFLAGS
3370 elif test $ac_cv_prog_cxx_g = yes; then
3371 if test "$GXX" = yes; then
3372 CXXFLAGS="-g -O2"
3373 else
3374 CXXFLAGS="-g"
3376 else
3377 if test "$GXX" = yes; then
3378 CXXFLAGS="-O2"
3379 else
3380 CXXFLAGS=
3383 ac_ext=c
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3392 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3393 if ${libc_cv_cxx_link_ok+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 ac_ext=cpp
3397 ac_cpp='$CXXCPP $CPPFLAGS'
3398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403 /* end confdefs.h. */
3406 main ()
3410 return 0;
3412 _ACEOF
3413 if ac_fn_cxx_try_link "$LINENO"; then :
3414 libc_cv_cxx_link_ok=yes
3415 else
3416 libc_cv_cxx_link_ok=no
3418 rm -f core conftest.err conftest.$ac_objext \
3419 conftest$ac_exeext conftest.$ac_ext
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3428 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3429 if test $libc_cv_cxx_link_ok != yes; then :
3430 CXX=
3433 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3434 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3437 # This will get text that should go into config.make.
3438 config_vars=
3440 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3442 # Check whether --with-gd was given.
3443 if test "${with_gd+set}" = set; then :
3444 withval=$with_gd; case "$with_gd" in
3445 yes|''|no) ;;
3446 *) libgd_include="-I$withval/include"
3447 libgd_ldflags="-L$withval/lib" ;;
3448 esac
3453 # Check whether --with-gd-include was given.
3454 if test "${with_gd_include+set}" = set; then :
3455 withval=$with_gd_include; case "$with_gd_include" in
3456 ''|no) ;;
3457 *) libgd_include="-I$withval" ;;
3458 esac
3463 # Check whether --with-gd-lib was given.
3464 if test "${with_gd_lib+set}" = set; then :
3465 withval=$with_gd_lib; case "$with_gd_lib" in
3466 ''|no) ;;
3467 *) libgd_ldflags="-L$withval" ;;
3468 esac
3473 if test -n "$libgd_include"; then
3474 config_vars="$config_vars
3475 CFLAGS-memusagestat.c = $libgd_include"
3477 if test -n "$libgd_ldflags"; then
3478 config_vars="$config_vars
3479 libgd-LDFLAGS = $libgd_ldflags"
3483 # Check whether --with-fp was given.
3484 if test "${with_fp+set}" = set; then :
3485 withval=$with_fp; with_fp=$withval
3486 else
3487 with_fp=yes
3492 # Check whether --with-binutils was given.
3493 if test "${with_binutils+set}" = set; then :
3494 withval=$with_binutils; path_binutils=$withval
3495 else
3496 path_binutils=''
3500 # Check whether --with-selinux was given.
3501 if test "${with_selinux+set}" = set; then :
3502 withval=$with_selinux; with_selinux=$withval
3503 else
3504 with_selinux=auto
3509 # Check whether --with-headers was given.
3510 if test "${with_headers+set}" = set; then :
3511 withval=$with_headers; sysheaders=$withval
3512 else
3513 sysheaders=''
3520 # Check whether --with-default-link was given.
3521 if test "${with_default_link+set}" = set; then :
3522 withval=$with_default_link; use_default_link=$withval
3523 else
3524 use_default_link=default
3528 # Check whether --enable-sanity-checks was given.
3529 if test "${enable_sanity_checks+set}" = set; then :
3530 enableval=$enable_sanity_checks; enable_sanity=$enableval
3531 else
3532 enable_sanity=yes
3536 # Check whether --enable-shared was given.
3537 if test "${enable_shared+set}" = set; then :
3538 enableval=$enable_shared; shared=$enableval
3539 else
3540 shared=yes
3543 # Check whether --enable-profile was given.
3544 if test "${enable_profile+set}" = set; then :
3545 enableval=$enable_profile; profile=$enableval
3546 else
3547 profile=no
3551 # Check whether --enable-hardcoded-path-in-tests was given.
3552 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3553 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3554 else
3555 hardcoded_path_in_tests=no
3560 # Check whether --enable-stackguard-randomization was given.
3561 if test "${enable_stackguard_randomization+set}" = set; then :
3562 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3563 else
3564 enable_stackguard_randomize=no
3567 if test "$enable_stackguard_randomize" = yes; then
3568 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3572 # Check whether --enable-lock-elision was given.
3573 if test "${enable_lock_elision+set}" = set; then :
3574 enableval=$enable_lock_elision; enable_lock_elision=$enableval
3575 else
3576 enable_lock_elision=no
3580 if test "$enable_lock_elision" = yes ; then
3581 $as_echo "#define ENABLE_LOCK_ELISION 1" >>confdefs.h
3585 # Check whether --enable-add-ons was given.
3586 if test "${enable_add_ons+set}" = set; then :
3587 enableval=$enable_add_ons;
3588 else
3589 enable_add_ons=yes
3593 # Check whether --enable-hidden-plt was given.
3594 if test "${enable_hidden_plt+set}" = set; then :
3595 enableval=$enable_hidden_plt; hidden=$enableval
3596 else
3597 hidden=yes
3600 if test "x$hidden" = xno; then
3601 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3605 # Check whether --enable-bind-now was given.
3606 if test "${enable_bind_now+set}" = set; then :
3607 enableval=$enable_bind_now; bindnow=$enableval
3608 else
3609 bindnow=no
3614 # Check whether --enable-static-nss was given.
3615 if test "${enable_static_nss+set}" = set; then :
3616 enableval=$enable_static_nss; static_nss=$enableval
3617 else
3618 static_nss=no
3621 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3622 static_nss=yes
3623 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3627 # Check whether --enable-force-install was given.
3628 if test "${enable_force_install+set}" = set; then :
3629 enableval=$enable_force_install; force_install=$enableval
3630 else
3631 force_install=yes
3636 # Check whether --enable-maintainer-mode was given.
3637 if test "${enable_maintainer_mode+set}" = set; then :
3638 enableval=$enable_maintainer_mode; maintainer=$enableval
3639 else
3640 maintainer=no
3644 # Check whether --enable-kernel was given.
3645 if test "${enable_kernel+set}" = set; then :
3646 enableval=$enable_kernel; minimum_kernel=$enableval
3649 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3650 # Better nothing than this.
3651 minimum_kernel=""
3652 else
3653 if test "$minimum_kernel" = current; then
3654 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3658 # Check whether --enable-all-warnings was given.
3659 if test "${enable_all_warnings+set}" = set; then :
3660 enableval=$enable_all_warnings; all_warnings=$enableval
3665 # Check whether --enable-werror was given.
3666 if test "${enable_werror+set}" = set; then :
3667 enableval=$enable_werror; enable_werror=$enableval
3668 else
3669 enable_werror=yes
3674 # Check whether --enable-multi-arch was given.
3675 if test "${enable_multi_arch+set}" = set; then :
3676 enableval=$enable_multi_arch; multi_arch=$enableval
3677 else
3678 multi_arch=default
3682 # Check whether --enable-nss-crypt was given.
3683 if test "${enable_nss_crypt+set}" = set; then :
3684 enableval=$enable_nss_crypt; nss_crypt=$enableval
3685 else
3686 nss_crypt=no
3689 if test x$nss_crypt = xyes; then
3690 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3691 if test $? -ne 0; then
3692 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3694 old_CFLAGS="$CFLAGS"
3695 CFLAGS="$CFLAGS $nss_includes"
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699 typedef int PRBool;
3700 #include <hasht.h>
3701 #include <nsslowhash.h>
3702 void f (void) { NSSLOW_Init (); }
3704 main ()
3708 return 0;
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 libc_cv_nss_crypt=yes
3713 else
3714 as_fn_error $? "
3715 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 old_LIBS="$LIBS"
3719 LIBS="$LIBS -lfreebl3"
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722 typedef int PRBool;
3723 #include <hasht.h>
3724 #include <nsslowhash.h>
3726 main ()
3728 NSSLOW_Init();
3730 return 0;
3732 _ACEOF
3733 if ac_fn_c_try_link "$LINENO"; then :
3734 libc_cv_nss_crypt=yes
3735 else
3736 as_fn_error $? "
3737 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3739 rm -f core conftest.err conftest.$ac_objext \
3740 conftest$ac_exeext conftest.$ac_ext
3741 CFLAGS="$old_CFLAGS"
3742 LIBS="$old_LIBS"
3743 else
3744 libc_cv_nss_crypt=no
3749 # Check whether --enable-obsolete-rpc was given.
3750 if test "${enable_obsolete_rpc+set}" = set; then :
3751 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3752 else
3753 link_obsolete_rpc=no
3758 if test "$link_obsolete_rpc" = yes; then
3759 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3763 # Check whether --enable-systemtap was given.
3764 if test "${enable_systemtap+set}" = set; then :
3765 enableval=$enable_systemtap; systemtap=$enableval
3766 else
3767 systemtap=no
3770 if test "x$systemtap" != xno; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3772 $as_echo_n "checking for systemtap static probe support... " >&6; }
3773 if ${libc_cv_sdt+:} false; then :
3774 $as_echo_n "(cached) " >&6
3775 else
3776 old_CFLAGS="$CFLAGS"
3777 CFLAGS="-std=gnu99 $CFLAGS"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3780 #include <sys/sdt.h>
3781 void foo (int i, void *p)
3783 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3784 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 libc_cv_sdt=yes
3789 else
3790 libc_cv_sdt=no
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 CFLAGS="$old_CFLAGS"
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3796 $as_echo "$libc_cv_sdt" >&6; }
3797 if test $libc_cv_sdt = yes; then
3798 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3800 elif test "x$systemtap" != xauto; then
3801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3804 See \`config.log' for more details" "$LINENO" 5; }
3808 # Check whether --enable-build-nscd was given.
3809 if test "${enable_build_nscd+set}" = set; then :
3810 enableval=$enable_build_nscd; build_nscd=$enableval
3811 else
3812 build_nscd=default
3817 # Note the use of $use_nscd is near the bottom of the file.
3818 # Check whether --enable-nscd was given.
3819 if test "${enable_nscd+set}" = set; then :
3820 enableval=$enable_nscd; use_nscd=$enableval
3821 else
3822 use_nscd=yes
3826 # Check whether --enable-pt_chown was given.
3827 if test "${enable_pt_chown+set}" = set; then :
3828 enableval=$enable_pt_chown; build_pt_chown=$enableval
3829 else
3830 build_pt_chown=no
3834 if test "$build_pt_chown" = yes; then
3835 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3839 # The abi-tags file uses a fairly simplistic model for name recognition that
3840 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3841 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3842 # This doesn't get used much beyond that, so it's fairly safe.
3843 case "$host_os" in
3844 linux*)
3846 gnu*)
3847 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3849 esac
3851 # Check whether --enable-mathvec was given.
3852 if test "${enable_mathvec+set}" = set; then :
3853 enableval=$enable_mathvec; build_mathvec=$enableval
3854 else
3855 build_mathvec=notset
3859 # We keep the original values in `$config_*' and never modify them, so we
3860 # can write them unchanged into config.make. Everything else uses
3861 # $machine, $vendor, and $os, and changes them whenever convenient.
3862 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3864 # Don't allow vendor == "unknown"
3865 test "$config_vendor" = unknown && config_vendor=
3866 config_os="`echo $config_os | sed 's/^unknown-//'`"
3868 # Some configurations imply other options.
3869 elf=yes
3871 # The configure fragment of an add-on port can modify these to supplement
3872 # or override the table in the case statement below. No fragment should
3873 # ever change the config_* variables, however.
3874 machine=$config_machine
3875 vendor=$config_vendor
3876 os=$config_os
3877 base_os=''
3879 submachine=
3881 # Check whether --with-cpu was given.
3882 if test "${with_cpu+set}" = set; then :
3883 withval=$with_cpu; case "$withval" in
3884 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3885 no) ;;
3886 *) submachine="$withval" ;;
3887 esac
3892 # An preconfigure script can set this when it wants to disable the sanity
3893 # check below.
3894 libc_config_ok=no
3896 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3897 then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3899 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3900 for frag in $frags; do
3901 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3902 echo $ECHO_N "$name $ECHO_C" >&6
3903 . "$frag"
3904 done
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3906 $as_echo "" >&6; }
3909 subdirs="$subdirs "
3912 case "$enable_add_ons" in
3913 ''|no) add_ons= ;;
3914 yes|'*')
3915 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3916 sed 's@/[^/]*$@@' | sort | uniq`
3917 add_ons_automatic=yes
3919 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3920 add_ons_automatic=no ;;
3921 esac
3923 configured_add_ons=
3924 add_ons_sfx=
3925 add_ons_pfx=
3926 if test x"$add_ons" != x; then
3927 for f in $add_ons; do
3928 # Some sanity checks
3929 case "$f" in
3930 crypt)
3931 as_fn_error $? "
3932 *** It seems that you're using an old \`crypt' add-on. crypt is now
3933 *** part of glibc and using the old add-on will not work with this
3934 *** release. Start again with fresh sources and without the old
3935 *** \`crypt' add-on." "$LINENO" 5
3937 localedata)
3938 as_fn_error $? "
3939 *** It seems that you're using an old \`localedata' add-on. localedata
3940 *** is now part of glibc and using the old add-on will not work with
3941 *** this release. Start again with fresh sources and without the old
3942 *** \`localedata' add-on." "$LINENO" 5
3944 esac
3945 done
3947 # Now source each add-on's configure fragment.
3948 # The fragments can use $srcdir/$libc_add_on to find themselves,
3949 # and test $add_ons_automatic to see if they were explicitly requested.
3950 # A fragment can clear (or even change) $libc_add_on to affect
3951 # whether it goes into the list to be actually used in the build.
3952 use_add_ons=
3953 for libc_add_on in $add_ons; do
3954 # Test whether such a directory really exists.
3955 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3956 case "$libc_add_on" in
3958 libc_add_on_srcdir=$libc_add_on
3961 test -d "$srcdir/$libc_add_on" || {
3962 if test -d "$libc_add_on"; then
3963 libc_add_on="`pwd`/$libc_add_on"
3964 else
3965 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3968 libc_add_on_srcdir=$srcdir/$libc_add_on
3970 esac
3972 libc_add_on_frag=$libc_add_on_srcdir/configure
3973 libc_add_on_canonical=
3974 libc_add_on_config_subdirs=
3975 if test -r "$libc_add_on_frag"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3977 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3978 libc_add_on_canonical=unknown
3979 libc_add_on_subdirs=
3980 . "$libc_add_on_frag"
3981 test -z "$libc_add_on" || {
3982 configured_add_ons="$configured_add_ons $libc_add_on"
3983 if test "x$libc_add_on_canonical" = xunknown; then
3984 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3986 for d in $libc_add_on_subdirs; do
3987 case "$libc_add_on" in
3988 /*) subdir_srcdir="$libc_add_on" ;;
3989 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3990 esac
3991 case "$d" in
3993 d="${libc_add_on_canonical:-$libc_add_on}"
3996 subdir_srcdir="$d"
3999 subdir_srcdir="$subdir_srcdir/$d"
4001 esac
4002 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4003 add_on_subdirs="$add_on_subdirs $d"
4004 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4005 $d-srcdir = $subdir_srcdir"
4006 done
4007 for d in $libc_add_on_config_subdirs; do
4008 case "$d" in
4009 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4010 esac
4011 if test ! -d "$libc_add_on_srcdir/$d"; then
4012 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
4014 case "$libc_add_on" in
4015 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4016 esac
4017 subdirs="$subdirs $libc_add_on/$d"
4018 done
4021 if test -n "$libc_add_on"; then
4022 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4023 then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
4025 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4026 for frag in $frags; do
4027 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4028 echo $ECHO_N "$name $ECHO_C" >&6
4029 . "$frag"
4030 done
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4032 $as_echo "" >&6; }
4034 use_add_ons="$use_add_ons $libc_add_on"
4035 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4036 test -z "$libc_add_on_canonical" ||
4037 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4039 done
4040 # Use echo to strip excess whitespace.
4041 add_ons="`echo $use_add_ons`"
4048 ### I put this here to prevent those annoying emails from people who cannot
4049 ### read and try to compile glibc on unsupported platforms. --drepper
4051 ### By using the undocumented --enable-hacker-mode option for configure
4052 ### one can skip this test to make the configuration not fail for unsupported
4053 ### platforms.
4055 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4056 case "$machine-$host_os" in
4057 *-linux* | *-gnu*)
4060 echo "*** The GNU C library is currently not available for this platform."
4061 echo "*** So far nobody cared to port it and if there is no volunteer it"
4062 echo "*** might never happen. So, if you have interest to see glibc on"
4063 echo "*** this platform visit"
4064 echo "*** http://www.gnu.org/software/libc/porting.html"
4065 echo "*** and join the group of porters"
4066 exit 1
4068 esac
4071 # Set base_machine if not set by a preconfigure fragment.
4072 test -n "$base_machine" || base_machine=$machine
4075 # For the multi-arch option we need support in the assembler & linker.
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4077 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4078 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 cat > conftest.S <<EOF
4082 .type foo,%gnu_indirect_function
4083 foo:
4084 .globl _start
4085 _start:
4086 .globl __start
4087 __start:
4088 .data
4089 #ifdef _LP64
4090 .quad foo
4091 #else
4092 .long foo
4093 #endif
4095 libc_cv_ld_gnu_indirect_function=no
4096 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4097 -nostartfiles -nostdlib \
4098 -o conftest conftest.S 1>&5 2>&5; then
4099 # Do a link to see if the backend supports IFUNC relocs.
4100 $READELF -r conftest 1>&5
4101 LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || {
4102 libc_cv_ld_gnu_indirect_function=yes
4105 rm -f conftest*
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4108 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4111 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4112 if ${libc_cv_dot_text+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 cat > conftest.s <<EOF
4116 .text
4118 libc_cv_dot_text=
4119 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4121 (eval $ac_try) 2>&5
4122 ac_status=$?
4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124 test $ac_status = 0; }; }; then
4125 libc_cv_dot_text=.text
4127 rm -f conftest*
4130 if test -z "$libc_cv_dot_text"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4133 else
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4135 $as_echo "yes" >&6; }
4138 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
4139 if test x"$multi_arch" = xyes; then
4140 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4141 else
4142 multi_arch=no
4145 multi_arch_d=
4146 if test x"$multi_arch" != xno; then
4147 multi_arch_d=/multiarch
4150 # Compute the list of sysdep directories for this configuration.
4151 # This can take a while to compute.
4152 sysdep_dir=$srcdir/sysdeps
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4154 $as_echo_n "checking sysdep dirs... " >&6; }
4155 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4156 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4158 test "x$base_os" != x || case "$os" in
4159 gnu*)
4160 base_os=mach/hurd ;;
4161 linux*)
4162 base_os=unix/sysv ;;
4163 esac
4165 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4166 tail=$os
4167 ostry=$os
4168 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4169 ostry="$ostry /$o"
4170 tail=$o
4171 done
4172 o=`echo $tail | sed 's/[0-9]*$//'`
4173 if test $o != $tail; then
4174 ostry="$ostry /$o"
4176 # For linux-gnu, try linux-gnu, then linux.
4177 o=`echo $tail | sed 's/-.*$//'`
4178 if test $o != $tail; then
4179 ostry="$ostry /$o"
4182 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4183 base=
4184 tail=$base_os
4185 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4186 set $b
4187 base="$base /$1"
4188 tail="$2"
4189 done
4191 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4192 mach=
4193 tail=$machine${submachine:+/$submachine}
4194 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4195 set $m
4196 # Prepend the machine's FPU directory unless --without-fp.
4197 if test "$with_fp" = yes; then
4198 maybe_fpu=/fpu
4199 else
4200 maybe_fpu=/nofpu
4202 # For each machine term, try it with and then without /multiarch.
4203 for try_fpu in $maybe_fpu ''; do
4204 for try_multi in $multi_arch_d ''; do
4205 mach="$mach /$1$try_fpu$try_multi"
4206 done
4207 done
4208 tail="$2"
4209 done
4212 # Find what sysdep directories exist.
4213 sysnames_add_ons=
4214 sysnames=
4215 for b in $base ''; do
4216 for m0 in $mach ''; do
4217 for v in /$vendor ''; do
4218 test "$v" = / && continue
4219 for o in /$ostry ''; do
4220 test "$o" = / && continue
4221 for m in $mach ''; do
4222 for d in $add_ons_pfx ''; do
4223 for a in $add_ons_sfx ''; do
4224 try_suffix="$m0$b$v$o$m"
4225 if test -n "$try_suffix"; then
4226 try_srcdir="${srcdir}/"
4227 case "$d" in
4228 /*) try_srcdir= ;;
4229 esac
4230 try="${d}sysdeps$try_suffix$a"
4231 test -n "$enable_debug_configure" &&
4232 echo "$0 DEBUG: try $try" >&2
4233 if test -d "$try_srcdir$try"; then
4234 sysnames="$sysnames $try"
4235 { test -n "$o" || test -n "$b"; } && os_used=t
4236 { test -n "$m" || test -n "$m0"; } && machine_used=t
4237 case x${m0:-$m} in
4238 x*/$submachine) submachine_used=t ;;
4239 esac
4240 if test -n "$d"; then
4241 case "$sysnames_add_ons" in
4242 *" $d "*) ;;
4243 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4244 esac
4248 done
4249 done
4250 done
4251 done
4252 done
4253 done
4254 done
4256 # If the assembler supports gnu_indirect_function symbol type and the
4257 # architecture supports multi-arch, we enable multi-arch by default.
4258 case $sysnames_add_ons$sysnames in
4259 *"$multi_arch_d"*)
4262 test x"$multi_arch" = xdefault && multi_arch=no
4264 esac
4265 if test x"$multi_arch" != xno; then
4266 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4271 if test -z "$os_used" && test "$os" != none; then
4272 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4274 if test -z "$machine_used" && test "$machine" != none; then
4275 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4277 if test -z "$submachine_used" && test -n "$submachine"; then
4278 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4282 # We have now validated the configuration.
4284 # Expand the list of system names into a full list of directories
4285 # from each element's parent name and Implies file (if present).
4286 set $sysnames
4287 names=
4288 while test $# -gt 0; do
4289 name=$1
4290 shift
4292 case " $names " in *" $name "*)
4293 # Already in the list.
4294 continue
4295 esac
4297 # Report each name as we discover it, so there is no long pause in output.
4298 echo $ECHO_N "$name $ECHO_C" >&6
4300 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4302 case $name in
4303 /*) xsrcdir= ;;
4304 *) xsrcdir=$srcdir/ ;;
4305 esac
4306 test -n "$enable_debug_configure" &&
4307 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4309 for implies_file in Implies Implies-before Implies-after; do
4310 implies_type=`echo $implies_file | sed s/-/_/`
4311 eval ${implies_type}=
4312 if test -f $xsrcdir$name/$implies_file; then
4313 # Collect more names from the `Implies' file (removing comments).
4314 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4315 for x in $implied_candidate; do
4316 found=no
4317 if test -d $xsrcdir$name_base/$x; then
4318 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
4319 found=yes
4321 for d in $add_ons_pfx ''; do
4322 try="${d}sysdeps/$x"
4323 case $d in
4324 /*) try_srcdir= ;;
4325 *) try_srcdir=$srcdir/ ;;
4326 esac
4327 test -n "$enable_debug_configure" &&
4328 echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
4329 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4330 then
4331 eval "${implies_type}=\"\$${implies_type} \$try\""
4332 found=yes
4333 case "$sysnames_add_ons" in
4334 *" $d "*) ;;
4335 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4336 esac
4338 done
4339 if test $found = no; then
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4341 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
4343 done
4345 done
4347 # Add NAME to the list of names.
4348 names="$names $name"
4350 # Find the parent of NAME, using the empty string if it has none.
4351 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4353 test -n "$enable_debug_configure" &&
4354 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
4355 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
4357 # Add the names implied by NAME, and NAME's parent (if it has one), to
4358 # the list of names to be processed (the argument list). We prepend the
4359 # implied names to the list and append the parent. We want implied
4360 # directories to come before further directories inferred from the
4361 # configuration components; this ensures that for sysv4, unix/common
4362 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4363 # after sysv4).
4364 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
4365 test -n "$sysnames" && set $sysnames
4366 done
4368 # Add the default directories.
4369 default_sysnames="sysdeps/generic"
4370 sysnames="$names $default_sysnames"
4372 # The other names were emitted during the scan.
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4374 $as_echo "$default_sysnames" >&6; }
4376 # Collect the list of add-ons that supply partial sysdeps trees.
4377 sysdeps_add_ons=
4378 for add_on in $add_ons; do
4379 case "$add_on" in
4380 /*) xsrcdir= ;;
4381 *) xsrcdir="$srcdir/" ;;
4382 esac
4384 test -d "$xsrcdir$add_on/sysdeps" || {
4385 case "$configured_add_ons " in
4386 *" $add_on "*) ;;
4387 *|'')
4388 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4390 esac
4391 continue
4394 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4395 case "$sysnames_add_ons" in
4396 *" $add_on/ "*) ;;
4397 *|'')
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4399 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4400 continue ;;
4401 esac
4403 found=no
4404 for d in $sysnames; do
4405 case "$d" in
4406 $add_on/sysdeps/*) ;;
4407 *) continue ;;
4408 esac
4409 (cd "$xsrcdir$d" && for f in *[!~]; do
4410 case "$f" in
4411 sys|bits)
4412 for ff in $f/*.h; do
4413 test -d "$ff" || { test -e "$ff" && exit 88; }
4414 done
4417 test -d "$f" || { test -e "$f" && exit 88; }
4419 esac
4420 done)
4421 if test $? -eq 88; then
4422 found=yes
4423 break
4425 done
4426 if test $found = no; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4428 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4430 done
4434 ### Locate tools.
4436 # Find a good install program. We prefer a C program (faster),
4437 # so one script is as good as another. But avoid the broken or
4438 # incompatible versions:
4439 # SysV /etc/install, /usr/sbin/install
4440 # SunOS /usr/etc/install
4441 # IRIX /sbin/install
4442 # AIX /bin/install
4443 # AmigaOS /C/install, which installs bootblocks on floppy discs
4444 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4445 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4446 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4447 # OS/2's system install, which has a completely different semantic
4448 # ./install, which can be erroneously created by make from ./install.sh.
4449 # Reject install programs that cannot install multiple files.
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4451 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4452 if test -z "$INSTALL"; then
4453 if ${ac_cv_path_install+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 # Account for people who put trailing slashes in PATH elements.
4462 case $as_dir/ in #((
4463 ./ | .// | /[cC]/* | \
4464 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4465 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4466 /usr/ucb/* ) ;;
4468 # OSF1 and SCO ODT 3.0 have their own names for install.
4469 # Don't use installbsd from OSF since it installs stuff as root
4470 # by default.
4471 for ac_prog in ginstall scoinst install; do
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4474 if test $ac_prog = install &&
4475 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4476 # AIX install. It has an incompatible calling convention.
4478 elif test $ac_prog = install &&
4479 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4480 # program-specific install script used by HP pwplus--don't use.
4482 else
4483 rm -rf conftest.one conftest.two conftest.dir
4484 echo one > conftest.one
4485 echo two > conftest.two
4486 mkdir conftest.dir
4487 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4488 test -s conftest.one && test -s conftest.two &&
4489 test -s conftest.dir/conftest.one &&
4490 test -s conftest.dir/conftest.two
4491 then
4492 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4493 break 3
4497 done
4498 done
4500 esac
4502 done
4503 IFS=$as_save_IFS
4505 rm -rf conftest.one conftest.two conftest.dir
4508 if test "${ac_cv_path_install+set}" = set; then
4509 INSTALL=$ac_cv_path_install
4510 else
4511 # As a last resort, use the slow shell script. Don't cache a
4512 # value for INSTALL within a source directory, because that will
4513 # break other packages using the cache if that directory is
4514 # removed, or if the value is a relative name.
4515 INSTALL=$ac_install_sh
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4519 $as_echo "$INSTALL" >&6; }
4521 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4522 # It thinks the first close brace ends the variable substitution.
4523 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4525 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4527 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4529 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4530 # The makefiles need to use a different form to find it in $srcdir.
4531 INSTALL='\$(..)./scripts/install-sh -c'
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4534 $as_echo_n "checking whether ln -s works... " >&6; }
4535 LN_S=$as_ln_s
4536 if test "$LN_S" = "ln -s"; then
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4538 $as_echo "yes" >&6; }
4539 else
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4541 $as_echo "no, using $LN_S" >&6; }
4545 # Was a --with-binutils option given?
4546 if test -n "$path_binutils"; then
4547 # Make absolute; ensure a single trailing slash.
4548 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4549 CC="$CC -B$path_binutils"
4551 AS=`$CC -print-prog-name=as`
4552 LD=`$CC -print-prog-name=ld`
4553 AR=`$CC -print-prog-name=ar`
4555 OBJDUMP=`$CC -print-prog-name=objdump`
4557 OBJCOPY=`$CC -print-prog-name=objcopy`
4560 # Determine whether we are using GNU binutils.
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4562 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4563 if ${libc_cv_prog_as_gnu+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 # Most GNU programs take a -v and spit out some text including
4567 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4568 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4569 libc_cv_prog_as_gnu=yes
4570 else
4571 libc_cv_prog_as_gnu=no
4573 rm -fr contest*
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4576 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4577 rm -f a.out
4578 gnu_as=$libc_cv_prog_as_gnu
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4581 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4582 if ${libc_cv_prog_ld_gnu+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584 else
4585 # Most GNU programs take a -v and spit out some text including
4586 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4587 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4588 libc_cv_prog_ld_gnu=yes
4589 else
4590 libc_cv_prog_ld_gnu=no
4592 rm -fr contest*
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4595 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4596 gnu_ld=$libc_cv_prog_ld_gnu
4599 # Accept binutils 2.22 or newer.
4600 for ac_prog in $AS
4602 # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_prog_AS+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -n "$AS"; then
4610 ac_cv_prog_AS="$AS" # Let the user override the test.
4611 else
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_AS="$ac_prog"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4623 done
4624 done
4625 IFS=$as_save_IFS
4629 AS=$ac_cv_prog_AS
4630 if test -n "$AS"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4632 $as_echo "$AS" >&6; }
4633 else
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4639 test -n "$AS" && break
4640 done
4642 if test -z "$AS"; then
4643 ac_verc_fail=yes
4644 else
4645 # Found it, now check the version.
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4647 $as_echo_n "checking version of $AS... " >&6; }
4648 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4649 case $ac_prog_version in
4650 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4651 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4652 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4653 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4655 esac
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4657 $as_echo "$ac_prog_version" >&6; }
4659 if test $ac_verc_fail = yes; then
4660 AS=: critic_missing="$critic_missing as"
4663 for ac_prog in $LD
4665 # Extract the first word of "$ac_prog", so it can be a program name with args.
4666 set dummy $ac_prog; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if ${ac_cv_prog_LD+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -n "$LD"; then
4673 ac_cv_prog_LD="$LD" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4682 ac_cv_prog_LD="$ac_prog"
4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 break 2
4686 done
4687 done
4688 IFS=$as_save_IFS
4692 LD=$ac_cv_prog_LD
4693 if test -n "$LD"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4695 $as_echo "$LD" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4702 test -n "$LD" && break
4703 done
4705 if test -z "$LD"; then
4706 ac_verc_fail=yes
4707 else
4708 # Found it, now check the version.
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4710 $as_echo_n "checking version of $LD... " >&6; }
4711 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4712 case $ac_prog_version in
4713 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4714 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4715 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4716 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4718 esac
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4720 $as_echo "$ac_prog_version" >&6; }
4722 if test $ac_verc_fail = yes; then
4723 LD=: critic_missing="$critic_missing ld"
4727 # These programs are version sensitive.
4729 for ac_prog in gnumake gmake make
4731 # Extract the first word of "$ac_prog", so it can be a program name with args.
4732 set dummy $ac_prog; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if ${ac_cv_prog_MAKE+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$MAKE"; then
4739 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748 ac_cv_prog_MAKE="$ac_prog"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 MAKE=$ac_cv_prog_MAKE
4759 if test -n "$MAKE"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4761 $as_echo "$MAKE" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4768 test -n "$MAKE" && break
4769 done
4771 if test -z "$MAKE"; then
4772 ac_verc_fail=yes
4773 else
4774 # Found it, now check the version.
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4776 $as_echo_n "checking version of $MAKE... " >&6; }
4777 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4778 case $ac_prog_version in
4779 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4780 3.79* | 3.[89]* | [4-9].* | [1-9][0-9]*)
4781 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4782 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4784 esac
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4786 $as_echo "$ac_prog_version" >&6; }
4788 if test $ac_verc_fail = yes; then
4789 critic_missing="$critic_missing make"
4793 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4795 # Extract the first word of "$ac_prog", so it can be a program name with args.
4796 set dummy $ac_prog; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_prog_MSGFMT+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -n "$MSGFMT"; then
4803 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812 ac_cv_prog_MSGFMT="$ac_prog"
4813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4816 done
4817 done
4818 IFS=$as_save_IFS
4822 MSGFMT=$ac_cv_prog_MSGFMT
4823 if test -n "$MSGFMT"; then
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4825 $as_echo "$MSGFMT" >&6; }
4826 else
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4832 test -n "$MSGFMT" && break
4833 done
4835 if test -z "$MSGFMT"; then
4836 ac_verc_fail=yes
4837 else
4838 # Found it, now check the version.
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4840 $as_echo_n "checking version of $MSGFMT... " >&6; }
4841 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4842 case $ac_prog_version in
4843 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4844 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4845 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4846 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4848 esac
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4850 $as_echo "$ac_prog_version" >&6; }
4852 if test $ac_verc_fail = yes; then
4853 MSGFMT=: aux_missing="$aux_missing msgfmt"
4856 for ac_prog in makeinfo
4858 # Extract the first word of "$ac_prog", so it can be a program name with args.
4859 set dummy $ac_prog; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if ${ac_cv_prog_MAKEINFO+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$MAKEINFO"; then
4866 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4875 ac_cv_prog_MAKEINFO="$ac_prog"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4879 done
4880 done
4881 IFS=$as_save_IFS
4885 MAKEINFO=$ac_cv_prog_MAKEINFO
4886 if test -n "$MAKEINFO"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4888 $as_echo "$MAKEINFO" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4895 test -n "$MAKEINFO" && break
4896 done
4898 if test -z "$MAKEINFO"; then
4899 ac_verc_fail=yes
4900 else
4901 # Found it, now check the version.
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4903 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4904 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4905 case $ac_prog_version in
4906 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4907 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4908 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4909 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4911 esac
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4913 $as_echo "$ac_prog_version" >&6; }
4915 if test $ac_verc_fail = yes; then
4916 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4919 for ac_prog in sed
4921 # Extract the first word of "$ac_prog", so it can be a program name with args.
4922 set dummy $ac_prog; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if ${ac_cv_prog_SED+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$SED"; then
4929 ac_cv_prog_SED="$SED" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4938 ac_cv_prog_SED="$ac_prog"
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 SED=$ac_cv_prog_SED
4949 if test -n "$SED"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4951 $as_echo "$SED" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 test -n "$SED" && break
4959 done
4961 if test -z "$SED"; then
4962 ac_verc_fail=yes
4963 else
4964 # Found it, now check the version.
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4966 $as_echo_n "checking version of $SED... " >&6; }
4967 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4968 case $ac_prog_version in
4969 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4970 3.0[2-9]*|3.[1-9]*|[4-9]*)
4971 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4972 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4974 esac
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4976 $as_echo "$ac_prog_version" >&6; }
4978 if test $ac_verc_fail = yes; then
4979 SED=: aux_missing="$aux_missing sed"
4982 for ac_prog in gawk
4984 # Extract the first word of "$ac_prog", so it can be a program name with args.
4985 set dummy $ac_prog; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if ${ac_cv_prog_AWK+:} false; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$AWK"; then
4992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5001 ac_cv_prog_AWK="$ac_prog"
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 AWK=$ac_cv_prog_AWK
5012 if test -n "$AWK"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5014 $as_echo "$AWK" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 test -n "$AWK" && break
5022 done
5024 if test -z "$AWK"; then
5025 ac_verc_fail=yes
5026 else
5027 # Found it, now check the version.
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5029 $as_echo_n "checking version of $AWK... " >&6; }
5030 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5031 case $ac_prog_version in
5032 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5033 3.1.[2-9]*|3.[2-9]*|[4-9]*)
5034 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5035 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5037 esac
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5039 $as_echo "$ac_prog_version" >&6; }
5041 if test $ac_verc_fail = yes; then
5042 critic_missing="$critic_missing gawk"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5047 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
5048 if ${libc_cv_compiler_ok+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5056 main ()
5059 #if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)
5060 #error insufficient compiler
5061 #endif
5063 return 0;
5065 _ACEOF
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 libc_cv_compiler_ok=yes
5068 else
5069 libc_cv_compiler_ok=no
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5074 $as_echo "$libc_cv_compiler_ok" >&6; }
5075 if test $libc_cv_compiler_ok != yes; then :
5076 critic_missing="$critic_missing compiler"
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}nm; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_NM+:} false; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$NM"; then
5088 ac_cv_prog_NM="$NM" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_NM="${ac_tool_prefix}nm"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 NM=$ac_cv_prog_NM
5108 if test -n "$NM"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5110 $as_echo "$NM" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5118 if test -z "$ac_cv_prog_NM"; then
5119 ac_ct_NM=$NM
5120 # Extract the first word of "nm", so it can be a program name with args.
5121 set dummy nm; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$ac_ct_NM"; then
5128 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5129 else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 for as_dir in $PATH
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_ac_ct_NM="nm"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 break 2
5141 done
5142 done
5143 IFS=$as_save_IFS
5147 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5148 if test -n "$ac_ct_NM"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5150 $as_echo "$ac_ct_NM" >&6; }
5151 else
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5156 if test "x$ac_ct_NM" = x; then
5157 NM="false"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160 yes:)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5164 esac
5165 NM=$ac_ct_NM
5167 else
5168 NM="$ac_cv_prog_NM"
5172 if test "x$maintainer" = "xyes"; then
5173 for ac_prog in autoconf
5175 # Extract the first word of "$ac_prog", so it can be a program name with args.
5176 set dummy $ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_AUTOCONF+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$AUTOCONF"; then
5183 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_AUTOCONF="$ac_prog"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 AUTOCONF=$ac_cv_prog_AUTOCONF
5203 if test -n "$AUTOCONF"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5205 $as_echo "$AUTOCONF" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 test -n "$AUTOCONF" && break
5213 done
5214 test -n "$AUTOCONF" || AUTOCONF="no"
5216 case "x$AUTOCONF" in
5217 xno|x|x:) AUTOCONF=no ;;
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5220 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5221 if ${libc_cv_autoconf_works+:} false; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5225 libc_cv_autoconf_works=yes
5226 else
5227 libc_cv_autoconf_works=no
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5231 $as_echo "$libc_cv_autoconf_works" >&6; }
5232 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5234 esac
5235 if test "x$AUTOCONF" = xno; then
5236 aux_missing="$aux_missing autoconf"
5238 else
5239 AUTOCONF=no
5242 test -n "$critic_missing" && as_fn_error $? "
5243 *** These critical programs are missing or too old:$critic_missing
5244 *** Check the INSTALL file for required versions." "$LINENO" 5
5246 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5247 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5248 *** some features will be disabled.
5249 *** Check the INSTALL file for required versions." >&5
5250 $as_echo "$as_me: WARNING:
5251 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5252 *** some features will be disabled.
5253 *** Check the INSTALL file for required versions." >&2;}
5255 # if using special system headers, find out the compiler's sekrit
5256 # header directory and add that to the list. NOTE: Only does the right
5257 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5258 if test -n "$sysheaders"; then
5259 SYSINCLUDES=-nostdinc
5260 for d in include include-fixed; do
5261 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5262 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5263 done
5264 SYSINCLUDES="$SYSINCLUDES \
5265 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5266 if test -n "$CXX"; then
5267 CXX_SYSINCLUDES=
5268 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5269 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5270 test "x$cxxheaders" != x &&
5271 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5272 done
5278 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5279 # since this would lead to problems installing/building glibc.
5280 # LD_LIBRARY_PATH contains the current directory if one of the following
5281 # is true:
5282 # - one of the terminals (":" and ";") is the first or last sign
5283 # - two terminals occur directly after each other
5284 # - the path contains an element with a dot in it
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5286 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5287 case ${LD_LIBRARY_PATH} in
5288 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5289 ld_library_path_setting="contains current directory"
5292 ld_library_path_setting="ok"
5294 esac
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5296 $as_echo "$ld_library_path_setting" >&6; }
5297 if test "$ld_library_path_setting" != "ok"; then
5298 as_fn_error $? "
5299 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5300 *** building glibc. Please change the environment variable
5301 *** and run configure again." "$LINENO" 5
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5305 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5306 if ${libc_cv_gcc_static_libgcc+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
5310 libc_cv_gcc_static_libgcc=
5311 else
5312 libc_cv_gcc_static_libgcc=-static-libgcc
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5316 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5319 # Extract the first word of "bash", so it can be a program name with args.
5320 set dummy bash; ac_word=$2
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if ${ac_cv_path_BASH_SHELL+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325 else
5326 case $BASH_SHELL in
5327 [\\/]* | ?:[\\/]*)
5328 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332 for as_dir in $PATH
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
5342 done
5343 done
5344 IFS=$as_save_IFS
5346 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5348 esac
5350 BASH_SHELL=$ac_cv_path_BASH_SHELL
5351 if test -n "$BASH_SHELL"; then
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5353 $as_echo "$BASH_SHELL" >&6; }
5354 else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356 $as_echo "no" >&6; }
5361 # Extract the first word of "perl", so it can be a program name with args.
5362 set dummy perl; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_path_PERL+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 case $PERL in
5369 [\\/]* | ?:[\\/]*)
5370 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5376 IFS=$as_save_IFS
5377 test -z "$as_dir" && as_dir=.
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5380 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 break 2
5384 done
5385 done
5386 IFS=$as_save_IFS
5388 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5390 esac
5392 PERL=$ac_cv_path_PERL
5393 if test -n "$PERL"; then
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5395 $as_echo "$PERL" >&6; }
5396 else
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398 $as_echo "no" >&6; }
5402 if test "$PERL" != no &&
5403 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5404 PERL=no
5406 # Extract the first word of "install-info", so it can be a program name with args.
5407 set dummy install-info; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 case $INSTALL_INFO in
5414 [\\/]* | ?:[\\/]*)
5415 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5420 for as_dir in $as_dummy
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5434 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5436 esac
5438 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5439 if test -n "$INSTALL_INFO"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5441 $as_echo "$INSTALL_INFO" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5448 for ac_prog in bison
5450 # Extract the first word of "$ac_prog", so it can be a program name with args.
5451 set dummy $ac_prog; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_BISON+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5457 if test -n "$BISON"; then
5458 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5459 else
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 for as_dir in $PATH
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_BISON="$ac_prog"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 break 2
5471 done
5472 done
5473 IFS=$as_save_IFS
5477 BISON=$ac_cv_prog_BISON
5478 if test -n "$BISON"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5480 $as_echo "$BISON" >&6; }
5481 else
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5487 test -n "$BISON" && break
5488 done
5490 if test -z "$BISON"; then
5491 ac_verc_fail=yes
5492 else
5493 # Found it, now check the version.
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5495 $as_echo_n "checking version of $BISON... " >&6; }
5496 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5497 case $ac_prog_version in
5498 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5499 2.7*|[3-9].*|[1-9][0-9]*)
5500 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5501 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5503 esac
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5505 $as_echo "$ac_prog_version" >&6; }
5507 if test $ac_verc_fail = yes; then
5508 BISON=no
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5513 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5514 if ${libc_cv_friendly_stddef+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519 #define __need_size_t
5520 #define __need_wchar_t
5521 #include <stddef.h>
5522 #define __need_NULL
5523 #include <stddef.h>
5525 main ()
5527 size_t size; wchar_t wchar;
5528 #ifdef offsetof
5529 #error stddef.h ignored __need_*
5530 #endif
5531 if (&size == NULL || &wchar == NULL) abort ();
5533 return 0;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 libc_cv_friendly_stddef=yes
5538 else
5539 libc_cv_friendly_stddef=no
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5544 $as_echo "$libc_cv_friendly_stddef" >&6; }
5545 if test $libc_cv_friendly_stddef = yes; then
5546 config_vars="$config_vars
5547 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5551 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5552 if ${libc_cv_need_minus_P+:} false; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 cat > conftest.S <<EOF
5556 #include "confdefs.h"
5557 /* Nothing whatsoever. */
5559 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5561 (eval $ac_try) 2>&5
5562 ac_status=$?
5563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5564 test $ac_status = 0; }; }; then
5565 libc_cv_need_minus_P=no
5566 else
5567 libc_cv_need_minus_P=yes
5569 rm -f conftest*
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5572 $as_echo "$libc_cv_need_minus_P" >&6; }
5573 if test $libc_cv_need_minus_P = yes; then
5574 config_vars="$config_vars
5575 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5579 $as_echo_n "checking for .set assembler directive... " >&6; }
5580 if ${libc_cv_asm_set_directive+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 cat > conftest.s <<EOF
5584 ${libc_cv_dot_text}
5585 foo:
5586 .set glibc_conftest_frobozz,foo
5587 .globl glibc_conftest_frobozz
5589 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5590 # (but it doesn't work), so we must do a linking check to be sure.
5591 cat > conftest1.c <<\EOF
5592 extern int glibc_conftest_frobozz;
5593 void _start() { glibc_conftest_frobozz = 1; }
5595 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5596 -nostartfiles -nostdlib \
5597 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5598 libc_cv_asm_set_directive=yes
5599 else
5600 libc_cv_asm_set_directive=no
5602 rm -f conftest*
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5605 $as_echo "$libc_cv_asm_set_directive" >&6; }
5606 if test $libc_cv_asm_set_directive = yes; then
5607 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5612 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5613 if ${libc_cv_asm_unique_object+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 cat > conftest.s <<EOF
5617 ${libc_cv_dot_text}
5618 _sym:
5619 .type _sym, %gnu_unique_object
5621 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5622 libc_cv_asm_unique_object=yes
5623 else
5624 libc_cv_asm_unique_object=no
5626 rm -f conftest*
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5629 $as_echo "$libc_cv_asm_unique_object" >&6; }
5630 if test $libc_cv_asm_unique_object = yes; then
5631 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5636 $as_echo_n "checking for .previous assembler directive... " >&6; }
5637 if ${libc_cv_asm_previous_directive+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 cat > conftest.s <<EOF
5641 .section foo_section
5642 .previous
5644 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5646 (eval $ac_try) 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; }; }; then
5650 libc_cv_asm_previous_directive=yes
5651 else
5652 libc_cv_asm_previous_directive=no
5654 rm -f conftest*
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5657 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5658 if test $libc_cv_asm_previous_directive = yes; then
5659 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5663 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5664 if ${libc_cv_asm_popsection_directive+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 cat > conftest.s <<EOF
5668 .pushsection foo_section
5669 .popsection
5671 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; }; }; then
5677 libc_cv_asm_popsection_directive=yes
5678 else
5679 libc_cv_asm_popsection_directive=no
5681 rm -f conftest*
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5684 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5685 if test $libc_cv_asm_popsection_directive = yes; then
5686 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
5691 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
5692 if ${libc_cv_asm_protected_directive+:} false; then :
5693 $as_echo_n "(cached) " >&6
5694 else
5695 cat > conftest.s <<EOF
5696 .protected foo
5697 foo:
5698 .hidden bar
5699 bar:
5701 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5703 (eval $ac_try) 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; }; }; then
5707 libc_cv_asm_protected_directive=yes
5708 else
5709 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
5711 rm -f conftest*
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
5714 $as_echo "$libc_cv_asm_protected_directive" >&6; }
5716 if test $libc_cv_asm_protected_directive = yes; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
5718 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
5719 if ${libc_cv_visibility_attribute+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat > conftest.c <<EOF
5723 int foo __attribute__ ((visibility ("hidden"))) = 1;
5724 int bar __attribute__ ((visibility ("protected"))) = 1;
5726 libc_cv_visibility_attribute=no
5727 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5729 (eval $ac_try) 2>&5
5730 ac_status=$?
5731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5732 test $ac_status = 0; }; }; then
5733 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5734 if grep '\.protected.*bar' conftest.s >/dev/null; then
5735 libc_cv_visibility_attribute=yes
5739 rm -f conftest.{c,s}
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
5743 $as_echo "$libc_cv_visibility_attribute" >&6; }
5744 if test $libc_cv_visibility_attribute != yes; then
5745 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
5749 if test $libc_cv_visibility_attribute = yes; then
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5751 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5752 if ${libc_cv_protected_data+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755 cat > conftest.c <<EOF
5756 int bar __attribute__ ((visibility ("protected"))) = 1;
5758 libc_cv_protected_data=no
5759 if { ac_try='${CC-cc} -nostdlib -nostartfiles -fPIC -shared conftest.c -o conftest.so'
5760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5761 (eval $ac_try) 2>&5
5762 ac_status=$?
5763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5764 test $ac_status = 0; }; }; then
5765 cat > conftest.c <<EOF
5766 extern int bar;
5767 int main (void) { return bar; }
5769 if { ac_try='${CC-cc} -nostdlib -nostartfiles conftest.c -o conftest conftest.so'
5770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5771 (eval $ac_try) 2>&5
5772 ac_status=$?
5773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774 test $ac_status = 0; }; }; then
5775 libc_cv_protected_data=yes
5778 rm -f conftest.*
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5782 $as_echo "$libc_cv_protected_data" >&6; }
5783 else
5784 libc_cv_protected_data=no
5788 if test $libc_cv_visibility_attribute = yes; then
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
5790 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
5791 if ${libc_cv_broken_visibility_attribute+:} false; then :
5792 $as_echo_n "(cached) " >&6
5793 else
5794 cat > conftest.c <<EOF
5795 int foo (int x);
5796 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5797 int bar (int x) { return x; }
5799 libc_cv_broken_visibility_attribute=yes
5800 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5802 (eval $ac_try) 2>&5
5803 ac_status=$?
5804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5805 test $ac_status = 0; }; }; then
5806 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5807 libc_cv_broken_visibility_attribute=no
5810 rm -f conftest.c conftest.s
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
5814 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
5815 if test $libc_cv_broken_visibility_attribute = yes; then
5816 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5821 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5822 if ${libc_cv_broken_alias_attribute+:} false; then :
5823 $as_echo_n "(cached) " >&6
5824 else
5825 cat > conftest.c <<EOF
5826 extern int foo (int x) __asm ("xyzzy");
5827 int bar (int x) { return x; }
5828 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5829 extern int dfoo;
5830 extern __typeof (dfoo) dfoo __asm ("abccb");
5831 int dfoo = 1;
5833 libc_cv_broken_alias_attribute=yes
5834 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5836 (eval $ac_try) 2>&5
5837 ac_status=$?
5838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5839 test $ac_status = 0; }; }; then
5840 if grep 'xyzzy' conftest.s >/dev/null &&
5841 grep 'abccb' conftest.s >/dev/null; then
5842 libc_cv_broken_alias_attribute=no
5845 rm -f conftest.c conftest.s
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5849 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5850 if test $libc_cv_broken_alias_attribute = yes; then
5851 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5854 if test $libc_cv_visibility_attribute = yes; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5856 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5857 if ${libc_cv_have_sdata_section+:} false; then :
5858 $as_echo_n "(cached) " >&6
5859 else
5860 echo "int i;" > conftest.c
5861 libc_cv_have_sdata_section=no
5862 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5863 | grep '\.sdata' >/dev/null; then
5864 libc_cv_have_sdata_section=yes
5866 rm -f conftest.c conftest.so
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5870 $as_echo "$libc_cv_have_sdata_section" >&6; }
5871 if test $libc_cv_have_sdata_section = yes; then
5872 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
5878 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
5879 if ${libc_cv_initfini_array+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 cat > conftest.c <<EOF
5883 int _start (void) { return 0; }
5884 int __start (void) { return 0; }
5886 int foo (void) { return 1; }
5887 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
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 -S conftest | fgrep INIT_ARRAY > /dev/null; then
5899 libc_cv_initfini_array=yes
5900 else
5901 libc_cv_initfini_array=no
5903 else
5904 libc_cv_initfini_array=no
5906 rm -f conftest*
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
5910 $as_echo "$libc_cv_initfini_array" >&6; }
5911 if test $libc_cv_initfini_array != yes; then
5912 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
5916 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
5917 if ${libc_cv_ctors_header+:} false; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5920 libc_cv_ctors_header=yes
5921 cat > conftest.c <<EOF
5922 int _start (void) { return 0; }
5923 int __start (void) { return 0; }
5925 __attribute__ ((constructor)) void ctor (void) { asm (""); }
5926 __attribute__ ((destructor)) void dtor (void) { asm (""); }
5929 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5930 conftest.c -static -nostartfiles -nostdlib
5931 1>&5'
5932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5933 (eval $ac_try) 2>&5
5934 ac_status=$?
5935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5936 test $ac_status = 0; }; }; then :
5937 if $READELF -WS conftest$ac_exeext | $AWK '
5938 { gsub(/\[ */, "[") }
5939 $2 == ".ctors" || $2 == ".dtors" {
5940 size = strtonum("0x" $6)
5941 align = strtonum("0x" $NF)
5942 seen[$2] = 1
5943 stub[$2] = size == align * 2
5945 END {
5946 ctors_ok = !seen[".ctors"] || stub[".ctors"]
5947 dtors_ok = !seen[".dtors"] || stub[".dtors"]
5948 exit ((ctors_ok && dtors_ok) ? 0 : 1)
5950 '; then :
5951 libc_cv_ctors_header=no
5954 else
5955 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
5958 rm -f conftest*
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
5962 $as_echo "$libc_cv_ctors_header" >&6; }
5963 if test $libc_cv_ctors_header = no; then
5964 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5969 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5970 if ${libc_cv_cc_with_libunwind+:} false; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5974 cat > conftest.c <<EOF
5975 int main (void) { return 0; }
5977 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5978 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5979 libc_cv_cc_with_libunwind=yes
5980 else
5981 libc_cv_cc_with_libunwind=no
5983 rm -f conftest*
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5986 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5988 if test $libc_cv_cc_with_libunwind = yes; then
5989 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodelete" >&5
5994 $as_echo_n "checking for linker that supports -z nodelete... " >&6; }
5995 libc_linker_feature=no
5996 if test x"$gnu_ld" = x"yes"; then
5997 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodelete"`
5998 if test -n "$libc_linker_check"; then
5999 cat > conftest.c <<EOF
6000 int _start (void) { return 42; }
6002 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6003 -Wl,--enable-new-dtags,-z,nodelete -nostdlib -nostartfiles
6004 -fPIC -shared -o conftest.so conftest.c
6005 1>&5'
6006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6007 (eval $ac_try) 2>&5
6008 ac_status=$?
6009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6010 test $ac_status = 0; }; }
6011 then
6012 libc_linker_feature=yes
6014 rm -f conftest*
6017 if test $libc_linker_feature = yes; then
6018 libc_cv_z_nodelete=yes
6019 else
6020 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6023 $as_echo "$libc_linker_feature" >&6; }
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodlopen" >&5
6026 $as_echo_n "checking for linker that supports -z nodlopen... " >&6; }
6027 libc_linker_feature=no
6028 if test x"$gnu_ld" = x"yes"; then
6029 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodlopen"`
6030 if test -n "$libc_linker_check"; then
6031 cat > conftest.c <<EOF
6032 int _start (void) { return 42; }
6034 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6035 -Wl,--enable-new-dtags,-z,nodlopen -nostdlib -nostartfiles
6036 -fPIC -shared -o conftest.so conftest.c
6037 1>&5'
6038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6039 (eval $ac_try) 2>&5
6040 ac_status=$?
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042 test $ac_status = 0; }; }
6043 then
6044 libc_linker_feature=yes
6046 rm -f conftest*
6049 if test $libc_linker_feature = yes; then
6050 libc_cv_z_nodlopen=yes
6051 else
6052 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6055 $as_echo "$libc_linker_feature" >&6; }
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z initfirst" >&5
6058 $as_echo_n "checking for linker that supports -z initfirst... " >&6; }
6059 libc_linker_feature=no
6060 if test x"$gnu_ld" = x"yes"; then
6061 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z initfirst"`
6062 if test -n "$libc_linker_check"; then
6063 cat > conftest.c <<EOF
6064 int _start (void) { return 42; }
6066 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6067 -Wl,--enable-new-dtags,-z,initfirst -nostdlib -nostartfiles
6068 -fPIC -shared -o conftest.so conftest.c
6069 1>&5'
6070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }; }
6075 then
6076 libc_linker_feature=yes
6078 rm -f conftest*
6081 if test $libc_linker_feature = yes; then
6082 libc_cv_z_initfirst=yes
6083 else
6084 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6087 $as_echo "$libc_linker_feature" >&6; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6090 $as_echo_n "checking for -Bgroup option... " >&6; }
6091 if ${libc_cv_Bgroup+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat > conftest.c <<EOF
6095 int _start (void) { return 42; }
6097 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6098 -fPIC -shared -o conftest.so conftest.c
6099 -Wl,-Bgroup -nostdlib 1>&5'
6100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6101 (eval $ac_try) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }; }
6105 then
6106 libc_cv_Bgroup=yes
6107 else
6108 libc_cv_Bgroup=no
6110 rm -f conftest*
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6113 $as_echo "$libc_cv_Bgroup" >&6; }
6116 ASFLAGS_config=
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6118 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6119 if ${libc_cv_as_noexecstack+:} false; then :
6120 $as_echo_n "(cached) " >&6
6121 else
6122 cat > conftest.c <<EOF
6123 void foo (void) { }
6125 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6126 -S -o conftest.s conftest.c 1>&5'
6127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6131 test $ac_status = 0; }; } \
6132 && grep .note.GNU-stack conftest.s >/dev/null \
6133 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6134 -c -o conftest.o conftest.s 1>&5'
6135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; }; }
6140 then
6141 libc_cv_as_noexecstack=yes
6142 else
6143 libc_cv_as_noexecstack=no
6145 rm -f conftest*
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6148 $as_echo "$libc_cv_as_noexecstack" >&6; }
6149 if test $libc_cv_as_noexecstack = yes; then
6150 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6155 $as_echo_n "checking for -z combreloc... " >&6; }
6156 if ${libc_cv_z_combreloc+:} false; then :
6157 $as_echo_n "(cached) " >&6
6158 else
6159 cat > conftest.c <<EOF
6160 extern int bar (int);
6161 extern int mumble;
6162 int foo (void) { return bar (mumble); }
6164 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6165 -fPIC -shared -o conftest.so conftest.c
6166 -nostdlib -nostartfiles
6167 -Wl,-z,combreloc 1>&5'
6168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6169 (eval $ac_try) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; }; }
6173 then
6174 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6175 libc_cv_z_combreloc=yes
6176 else
6177 libc_cv_z_combreloc=no
6179 else
6180 libc_cv_z_combreloc=no
6182 rm -f conftest*
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6185 $as_echo "$libc_cv_z_combreloc" >&6; }
6186 if test "$libc_cv_z_combreloc" = yes; then
6187 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6193 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
6194 libc_linker_feature=no
6195 if test x"$gnu_ld" = x"yes"; then
6196 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
6197 if test -n "$libc_linker_check"; then
6198 cat > conftest.c <<EOF
6199 int _start (void) { return 42; }
6201 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6202 -Wl,-z,execstack -nostdlib -nostartfiles
6203 -fPIC -shared -o conftest.so conftest.c
6204 1>&5'
6205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6206 (eval $ac_try) 2>&5
6207 ac_status=$?
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; }; }
6210 then
6211 libc_linker_feature=yes
6213 rm -f conftest*
6216 if test $libc_linker_feature = yes; then
6217 libc_cv_z_execstack=yes
6218 else
6219 libc_cv_z_execstack=no
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6222 $as_echo "$libc_linker_feature" >&6; }
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6226 $as_echo_n "checking for -fpie... " >&6; }
6227 if ${libc_cv_fpie+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229 else
6230 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
6231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6232 (eval $ac_try) 2>&5
6233 ac_status=$?
6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6235 test $ac_status = 0; }; }; then :
6236 libc_cv_fpie=yes
6237 else
6238 libc_cv_fpie=no
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6243 $as_echo "$libc_cv_fpie" >&6; }
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6248 $as_echo_n "checking for --hash-style option... " >&6; }
6249 if ${libc_cv_hashstyle+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 cat > conftest.c <<EOF
6253 int _start (void) { return 42; }
6255 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6256 -fPIC -shared -o conftest.so conftest.c
6257 -Wl,--hash-style=both -nostdlib 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 then
6264 libc_cv_hashstyle=yes
6265 else
6266 libc_cv_hashstyle=no
6268 rm -f conftest*
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6271 $as_echo "$libc_cv_hashstyle" >&6; }
6274 # The linker's default -shared behavior is good enough if it
6275 # does these things that our custom linker scripts ensure that
6276 # all allocated NOTE sections come first.
6277 if test "$use_default_link" = default; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6279 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6280 if ${libc_cv_use_default_link+:} false; then :
6281 $as_echo_n "(cached) " >&6
6282 else
6283 libc_cv_use_default_link=no
6284 cat > conftest.s <<\EOF
6285 .section .note.a,"a",%note
6286 .balign 4
6287 .long 4,4,9
6288 .string "GNU"
6289 .string "foo"
6290 .section .note.b,"a",%note
6291 .balign 4
6292 .long 4,4,9
6293 .string "GNU"
6294 .string "bar"
6296 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301 test $ac_status = 0; }; } &&
6302 ac_try=`$READELF -S conftest.so | sed -n \
6303 '${x;p;}
6304 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6309 then
6310 libc_seen_a=no libc_seen_b=no
6311 set -- $ac_try
6312 while test $# -ge 2 -a "$1" = NOTE; do
6313 case "$2" in
6314 .note.a) libc_seen_a=yes ;;
6315 .note.b) libc_seen_b=yes ;;
6316 esac
6317 shift 2
6318 done
6319 case "$libc_seen_a$libc_seen_b" in
6320 yesyes)
6321 libc_cv_use_default_link=yes
6324 echo >&5 "\
6325 $libc_seen_a$libc_seen_b from:
6326 $ac_try"
6328 esac
6330 rm -f conftest*
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6333 $as_echo "$libc_cv_use_default_link" >&6; }
6334 use_default_link=$libc_cv_use_default_link
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6338 $as_echo_n "checking linker output format... " >&6; }
6339 if ${libc_cv_output_format+:} false; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342 if libc_cv_output_format=`
6343 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6344 then
6346 else
6347 libc_cv_output_format=
6349 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6352 $as_echo "$libc_cv_output_format" >&6; }
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6356 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6357 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 cat > conftest.c <<EOF
6361 int foo;
6363 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6364 conftest.c 1>&5'
6365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6369 test $ac_status = 0; }; }
6370 then
6371 libc_cv_fno_toplevel_reorder=yes
6372 else
6373 libc_cv_fno_toplevel_reorder=no
6375 rm -f conftest*
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6378 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6379 if test $libc_cv_fno_toplevel_reorder = yes; then
6380 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6381 else
6382 fno_unit_at_a_time=-fno-unit-at-a-time
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6387 $as_echo_n "checking for -fstack-protector... " >&6; }
6388 if ${libc_cv_ssp+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6391 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6393 (eval $ac_try) 2>&5
6394 ac_status=$?
6395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6396 test $ac_status = 0; }; }; then :
6397 libc_cv_ssp=yes
6398 else
6399 libc_cv_ssp=no
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6404 $as_echo "$libc_cv_ssp" >&6; }
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6408 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6409 if ${libc_cv_gnu89_inline+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 cat > conftest.c <<EOF
6413 int foo;
6414 #ifdef __GNUC_GNU_INLINE__
6415 main () { return 0;}
6416 #else
6417 #error
6418 #endif
6420 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6421 -o conftest.s conftest.c 1>&5'
6422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6423 (eval $ac_try) 2>&5
6424 ac_status=$?
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }; }
6427 then
6428 libc_cv_gnu89_inline=yes
6429 else
6430 libc_cv_gnu89_inline=no
6432 rm -f conftest*
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6435 $as_echo "$libc_cv_gnu89_inline" >&6; }
6436 if test $libc_cv_gnu89_inline = yes; then
6437 gnu89_inline=-fgnu89-inline
6438 else
6439 gnu89_inline=
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6444 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6445 if ${libc_cv_have_section_quotes+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat > conftest.c <<EOF
6449 static const int foo
6450 __attribute__ ((section ("bar"))) = 1;
6452 if ${CC-cc} -S conftest.c -o conftest.s; then
6453 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6454 libc_cv_have_section_quotes=yes
6455 else
6456 libc_cv_have_section_quotes=no
6458 else
6459 libc_cv_have_section_quotes=unknown
6461 rm -f conftest.{c,s}
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6465 $as_echo "$libc_cv_have_section_quotes" >&6; }
6466 if test $libc_cv_have_section_quotes = yes; then
6467 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6472 $as_echo_n "checking for assembler .weak directive... " >&6; }
6473 if ${libc_cv_asm_weak_directive+:} false; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 cat > conftest.s <<EOF
6477 ${libc_cv_dot_text}
6478 .globl foo
6479 foo:
6480 .weak foo
6481 .weak bar; bar = foo
6483 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6485 (eval $ac_try) 2>&5
6486 ac_status=$?
6487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6488 test $ac_status = 0; }; }; then
6489 libc_cv_asm_weak_directive=yes
6490 else
6491 libc_cv_asm_weak_directive=no
6493 rm -f conftest*
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6496 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6498 if test $libc_cv_asm_weak_directive = no; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6500 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6501 if ${libc_cv_asm_weakext_directive+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 cat > conftest.s <<EOF
6505 ${libc_cv_dot_text}
6506 .globl foo
6507 foo:
6508 .weakext bar foo
6509 .weakext baz
6510 .globl baz
6511 baz:
6513 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6515 (eval $ac_try) 2>&5
6516 ac_status=$?
6517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518 test $ac_status = 0; }; }; then
6519 libc_cv_asm_weakext_directive=yes
6520 else
6521 libc_cv_asm_weakext_directive=no
6523 rm -f conftest*
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6526 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
6528 fi # no .weak
6530 if test $libc_cv_asm_weak_directive = yes; then
6531 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
6533 elif test $libc_cv_asm_weakext_directive = yes; then
6534 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
6539 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
6540 if ${libc_cv_ld_no_whole_archive+:} false; then :
6541 $as_echo_n "(cached) " >&6
6542 else
6543 cat > conftest.c <<\EOF
6544 _start () {}
6545 int __eh_pc;
6546 __throw () {}
6548 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6549 -nostdlib -nostartfiles -Wl,--no-whole-archive
6550 -o conftest conftest.c 1>&5'
6551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6552 (eval $ac_try) 2>&5
6553 ac_status=$?
6554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555 test $ac_status = 0; }; }; then
6556 libc_cv_ld_no_whole_archive=yes
6557 else
6558 libc_cv_ld_no_whole_archive=no
6560 rm -f conftest*
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
6563 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
6564 if test $libc_cv_ld_no_whole_archive = no; then
6565 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
6569 $as_echo_n "checking for gcc -fexceptions... " >&6; }
6570 if ${libc_cv_gcc_exceptions+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 cat > conftest.c <<\EOF
6574 _start () {}
6575 int __eh_pc;
6576 __throw () {}
6578 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6579 -nostdlib -nostartfiles -fexceptions
6580 -o conftest conftest.c 1>&5'
6581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6582 (eval $ac_try) 2>&5
6583 ac_status=$?
6584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585 test $ac_status = 0; }; }; then
6586 libc_cv_gcc_exceptions=yes
6587 else
6588 libc_cv_gcc_exceptions=no
6590 rm -f conftest*
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
6593 $as_echo "$libc_cv_gcc_exceptions" >&6; }
6594 if test $libc_cv_gcc_exceptions = yes; then
6595 exceptions=-fexceptions
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6599 $as_echo_n "checking for __builtin_memset... " >&6; }
6600 if ${libc_cv_gcc_builtin_memset+:} false; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat > conftest.c <<\EOF
6604 void zero (void *x)
6606 __builtin_memset (x, 0, 1000);
6609 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614 test $ac_status = 0; }; };
6615 then
6616 libc_cv_gcc_builtin_memset=no
6617 else
6618 libc_cv_gcc_builtin_memset=yes
6620 rm -f conftest*
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6623 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6624 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6625 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6630 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6631 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 cat > conftest.c <<\EOF
6635 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6636 char *foo (const char *a, const char *b)
6638 return __builtin_strstr (a, b);
6641 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6643 (eval $ac_try) 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646 test $ac_status = 0; }; };
6647 then
6648 libc_cv_gcc_builtin_redirection=yes
6649 else
6650 libc_cv_gcc_builtin_redirection=no
6652 rm -f conftest*
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6655 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6656 if test "$libc_cv_gcc_builtin_redirection" = no; then
6657 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
6661 $as_echo_n "checking for __thread... " >&6; }
6662 if ${libc_cv_gcc___thread+:} false; then :
6663 $as_echo_n "(cached) " >&6
6664 else
6665 cat > conftest.c <<\EOF
6666 __thread int a = 42;
6668 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6670 (eval $ac_try) 2>&5
6671 ac_status=$?
6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673 test $ac_status = 0; }; }; then
6674 libc_cv_gcc___thread=yes
6675 else
6676 libc_cv_gcc___thread=no
6678 rm -f conftest*
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
6681 $as_echo "$libc_cv_gcc___thread" >&6; }
6682 if test "$libc_cv_gcc___thread" = no; then
6683 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
6687 $as_echo_n "checking for tls_model attribute... " >&6; }
6688 if ${libc_cv_gcc_tls_model_attr+:} false; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 cat > conftest.c <<\EOF
6692 extern __thread int a __attribute__((tls_model ("initial-exec")));
6694 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; }; }; then
6700 libc_cv_gcc_tls_model_attr=yes
6701 else
6702 libc_cv_gcc_tls_model_attr=no
6704 rm -f conftest*
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
6707 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
6708 if test "$libc_cv_gcc_tls_model_attr" = no; then
6709 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6713 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6714 if ${libc_cv_cc_nofma+:} false; then :
6715 $as_echo_n "(cached) " >&6
6716 else
6717 libc_cv_cc_nofma=
6718 for opt in -ffp-contract=off -mno-fused-madd; do
6719 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6721 (eval $ac_try) 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; }; }; then :
6725 libc_cv_cc_nofma=$opt; break
6727 done
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6730 $as_echo "$libc_cv_cc_nofma" >&6; }
6733 if test -n "$submachine"; then
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6735 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6736 if ${libc_cv_cc_submachine+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 libc_cv_cc_submachine=no
6740 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6741 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6743 (eval $ac_try) 2>&5
6744 ac_status=$?
6745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6746 test $ac_status = 0; }; }; then :
6748 libc_cv_cc_submachine="$opt"
6749 break
6751 done
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6754 $as_echo "$libc_cv_cc_submachine" >&6; }
6755 if test "x$libc_cv_cc_submachine" = xno; then
6756 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6762 __attribute__ ((__optimize__))" >&5
6763 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6764 __attribute__ ((__optimize__))... " >&6; }
6765 if ${libc_cv_cc_loop_to_function+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 cat > conftest.c <<EOF
6769 void
6770 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6771 foo (void) {}
6773 libc_cv_cc_loop_to_function=no
6774 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6776 (eval $ac_try) 2>&5
6777 ac_status=$?
6778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6779 test $ac_status = 0; }; }
6780 then
6781 libc_cv_cc_loop_to_function=yes
6783 rm -f conftest*
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6786 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6787 if test $libc_cv_cc_loop_to_function = yes; then
6788 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6794 $as_echo_n "checking for libgd... " >&6; }
6795 if test "$with_gd" != "no"; then
6796 old_CFLAGS="$CFLAGS"
6797 CFLAGS="$CFLAGS $libgd_include"
6798 old_LDFLAGS="$LDFLAGS"
6799 LDFLAGS="$LDFLAGS $libgd_ldflags"
6800 old_LIBS="$LIBS"
6801 LIBS="$LIBS -lgd -lpng -lz -lm"
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 #include <gd.h>
6806 main ()
6808 gdImagePng (0, 0)
6810 return 0;
6812 _ACEOF
6813 if ac_fn_c_try_link "$LINENO"; then :
6814 LIBGD=yes
6815 else
6816 LIBGD=no
6818 rm -f core conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 CFLAGS="$old_CFLAGS"
6821 LDFLAGS="$old_LDFLAGS"
6822 LIBS="$old_LIBS"
6823 else
6824 LIBGD=no
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6827 $as_echo "$LIBGD" >&6; }
6830 # SELinux detection
6831 if test x$with_selinux = xno ; then
6832 have_selinux=no;
6833 else
6834 # See if we have the SELinux library
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6836 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6837 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 ac_check_lib_save_LIBS=$LIBS
6841 LIBS="-lselinux $LIBS"
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6845 /* Override any GCC internal prototype to avoid an error.
6846 Use char because int might match the return type of a GCC
6847 builtin and then its argument prototype would still apply. */
6848 #ifdef __cplusplus
6849 extern "C"
6850 #endif
6851 char is_selinux_enabled ();
6853 main ()
6855 return is_selinux_enabled ();
6857 return 0;
6859 _ACEOF
6860 if ac_fn_c_try_link "$LINENO"; then :
6861 ac_cv_lib_selinux_is_selinux_enabled=yes
6862 else
6863 ac_cv_lib_selinux_is_selinux_enabled=no
6865 rm -f core conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6867 LIBS=$ac_check_lib_save_LIBS
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6870 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6871 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6872 have_selinux=yes
6873 else
6874 have_selinux=no
6877 if test x$with_selinux = xyes ; then
6878 if test x$have_selinux = xno ; then
6879 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6883 # Check if we're building with SELinux support.
6884 if test "x$have_selinux" = xyes; then
6886 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6889 # See if we have the libaudit library
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6891 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6892 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 ac_check_lib_save_LIBS=$LIBS
6896 LIBS="-laudit $LIBS"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6900 /* Override any GCC internal prototype to avoid an error.
6901 Use char because int might match the return type of a GCC
6902 builtin and then its argument prototype would still apply. */
6903 #ifdef __cplusplus
6904 extern "C"
6905 #endif
6906 char audit_log_user_avc_message ();
6908 main ()
6910 return audit_log_user_avc_message ();
6912 return 0;
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 ac_cv_lib_audit_audit_log_user_avc_message=yes
6917 else
6918 ac_cv_lib_audit_audit_log_user_avc_message=no
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 LIBS=$ac_check_lib_save_LIBS
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6925 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6926 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6927 have_libaudit=yes
6928 else
6929 have_libaudit=no
6932 if test "x$have_libaudit" = xyes; then
6934 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6939 # See if we have the libcap library
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6941 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6942 if ${ac_cv_lib_cap_cap_init+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 ac_check_lib_save_LIBS=$LIBS
6946 LIBS="-lcap $LIBS"
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6950 /* Override any GCC internal prototype to avoid an error.
6951 Use char because int might match the return type of a GCC
6952 builtin and then its argument prototype would still apply. */
6953 #ifdef __cplusplus
6954 extern "C"
6955 #endif
6956 char cap_init ();
6958 main ()
6960 return cap_init ();
6962 return 0;
6964 _ACEOF
6965 if ac_fn_c_try_link "$LINENO"; then :
6966 ac_cv_lib_cap_cap_init=yes
6967 else
6968 ac_cv_lib_cap_cap_init=no
6970 rm -f core conftest.err conftest.$ac_objext \
6971 conftest$ac_exeext conftest.$ac_ext
6972 LIBS=$ac_check_lib_save_LIBS
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6975 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6976 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6977 have_libcap=yes
6978 else
6979 have_libcap=no
6982 if test "x$have_libcap" = xyes; then
6984 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6992 # The cast to long int works around a bug in the HP C Compiler
6993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6995 # This bug is HP SR number 8606223364.
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
6997 $as_echo_n "checking size of long double... " >&6; }
6998 if ${ac_cv_sizeof_long_double+:} false; then :
6999 $as_echo_n "(cached) " >&6
7000 else
7001 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7003 else
7004 if test "$ac_cv_type_long_double" = yes; then
7005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7007 as_fn_error 77 "cannot compute sizeof (long double)
7008 See \`config.log' for more details" "$LINENO" 5; }
7009 else
7010 ac_cv_sizeof_long_double=0
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7016 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7020 cat >>confdefs.h <<_ACEOF
7021 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7022 _ACEOF
7025 sizeof_long_double=$ac_cv_sizeof_long_double
7028 CPPUNDEFS=
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
7030 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
7031 if ${libc_cv_predef_fortify_source+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033 else
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7038 main ()
7041 #ifdef _FORTIFY_SOURCE
7042 # error bogon
7043 #endif
7045 return 0;
7047 _ACEOF
7048 if ac_fn_c_try_compile "$LINENO"; then :
7049 libc_cv_predef_fortify_source=no
7050 else
7051 libc_cv_predef_fortify_source=yes
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
7056 $as_echo "$libc_cv_predef_fortify_source" >&6; }
7057 if test $libc_cv_predef_fortify_source = yes; then
7058 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5
7063 $as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; }
7064 if ${libc_cv_predef_stack_protector+:} false; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 extern void foobar (char *);
7072 main ()
7074 char large_array[2048]; foobar (large_array);
7076 return 0;
7078 _ACEOF
7079 if ac_fn_c_try_compile "$LINENO"; then :
7081 libc_undefs=`$NM -u conftest.o |
7082 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7083 2>&5` || {
7084 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7086 echo >&5 "libc_undefs='$libc_undefs'"
7087 # On some architectures, there are architecture-specific undefined
7088 # symbols (resolved by the linker), so filter out unknown symbols.
7089 # This will fail to produce the correct result if the compiler
7090 # defaults to -fstack-protector but this produces an undefined symbol
7091 # other than __stack_chk_fail. However, compilers like that have not
7092 # been encountered in practice.
7093 libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'`
7094 case "$libc_undefs" in
7095 foobar) libc_cv_predef_stack_protector=no ;;
7096 '__stack_chk_fail
7097 foobar') libc_cv_predef_stack_protector=yes ;;
7098 *) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;;
7099 esac
7100 else
7101 as_fn_error $? "test compilation failed" "$LINENO" 5
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5
7107 $as_echo "$libc_cv_predef_stack_protector" >&6; }
7108 libc_extra_cflags=
7109 if test $libc_cv_predef_stack_protector = yes; then
7110 libc_extra_cflags="$libc_extra_cflags -fno-stack-protector"
7112 libc_extra_cppflags=
7114 # Some linkers on some architectures support __ehdr_start but with
7115 # bugs. Make sure usage of it does not create relocations in the
7116 # output (as the linker should resolve them all for us).
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker provides working __ehdr_start" >&5
7118 $as_echo_n "checking whether the linker provides working __ehdr_start... " >&6; }
7119 if ${libc_cv_ehdr_start+:} false; then :
7120 $as_echo_n "(cached) " >&6
7121 else
7123 old_CFLAGS="$CFLAGS"
7124 old_LDFLAGS="$LDFLAGS"
7125 old_LIBS="$LIBS"
7126 CFLAGS="$CFLAGS -fPIC"
7127 LDFLAGS="$LDFLAGS -nostdlib -nostartfiles -shared"
7128 LIBS=
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7132 typedef struct {
7133 char foo;
7134 long val;
7135 } Ehdr;
7136 extern const Ehdr __ehdr_start __attribute__ ((visibility ("hidden")));
7137 long ehdr (void) { return __ehdr_start.val; }
7139 _ACEOF
7140 if ac_fn_c_try_link "$LINENO"; then :
7141 if $READELF -r conftest | fgrep __ehdr_start >/dev/null; then
7142 libc_cv_ehdr_start=broken
7143 else
7144 libc_cv_ehdr_start=yes
7146 else
7147 libc_cv_ehdr_start=no
7149 rm -f core conftest.err conftest.$ac_objext \
7150 conftest$ac_exeext conftest.$ac_ext
7151 CFLAGS="$old_CFLAGS"
7152 LDFLAGS="$old_LDFLAGS"
7153 LIBS="$old_LIBS"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ehdr_start" >&5
7157 $as_echo "$libc_cv_ehdr_start" >&6; }
7158 if test "$libc_cv_ehdr_start" = yes; then
7159 $as_echo "#define HAVE_EHDR_START 1" >>confdefs.h
7161 elif test "$libc_cv_ehdr_start" = broken; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker is broken -- you should upgrade" >&5
7163 $as_echo "$as_me: WARNING: linker is broken -- you should upgrade" >&2;}
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
7167 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
7168 if ${libc_cv_builtin_trap+:} false; then :
7169 $as_echo_n "(cached) " >&6
7170 else
7171 libc_cv_builtin_trap=no
7172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h. */
7176 main ()
7178 __builtin_trap ()
7180 return 0;
7182 _ACEOF
7183 if ac_fn_c_try_compile "$LINENO"; then :
7185 libc_undefs=`$NM -u conftest.o |
7186 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7187 2>&5` || {
7188 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7190 echo >&5 "libc_undefs='$libc_undefs'"
7191 if test -z "$libc_undefs"; then
7192 libc_cv_builtin_trap=yes
7195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7198 $as_echo "$libc_cv_builtin_trap" >&6; }
7199 if test $libc_cv_builtin_trap = yes; then
7200 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7204 ### End of automated tests.
7205 ### Now run sysdeps configure fragments.
7207 # They also can set these variables.
7208 use_ldconfig=no
7209 ldd_rewrite_script=no
7210 libc_cv_sysconfdir=$sysconfdir
7211 libc_cv_localstatedir=$localstatedir
7212 libc_cv_gcc_unwind_find_fde=no
7213 libc_cv_idn=no
7215 # Iterate over all the sysdep directories we will use, running their
7216 # configure fragments.
7217 for dir in $sysnames; do
7218 case $dir in
7219 /*) dest=$dir ;;
7220 *) dest=$srcdir/$dir ;;
7221 esac
7222 if test -r $dest/configure; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7224 $as_echo "running configure fragment for $dir" >&6; }
7225 . $dest/configure
7227 done
7229 if test x"$build_mathvec" = xnotset; then
7230 build_mathvec=no
7232 config_vars="$config_vars
7233 build-mathvec = $build_mathvec"
7238 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7239 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7244 # A sysdeps configure fragment can reset this if IFUNC is not actually
7245 # usable even though the assembler knows how to generate the symbol type.
7246 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
7247 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
7251 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7252 # configure fragment can override the value to prevent this AC_DEFINE.
7254 if test "x$use_nscd" != xno; then
7255 $as_echo "#define USE_NSCD 1" >>confdefs.h
7258 if test "x$build_nscd" = xdefault; then
7259 build_nscd=$use_nscd
7262 # Test for old glibc 2.0.x headers so that they can be removed properly
7263 # Search only in includedir.
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7265 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7266 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7267 then
7268 old_glibc_headers=yes
7269 else
7270 old_glibc_headers=no
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7273 $as_echo "$old_glibc_headers" >&6; }
7274 if test ${old_glibc_headers} = yes; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7276 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7278 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7290 if test x$use_ldconfig = xyes; then
7291 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7301 $as_echo_n "checking whether -fPIC is default... " >&6; }
7302 if ${libc_cv_pic_default+:} false; then :
7303 $as_echo_n "(cached) " >&6
7304 else
7305 libc_cv_pic_default=yes
7306 cat > conftest.c <<EOF
7307 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7308 # error PIC is default.
7309 #endif
7311 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7312 libc_cv_pic_default=no
7314 rm -f conftest.*
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7317 $as_echo "$libc_cv_pic_default" >&6; }
7327 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7328 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7332 ac_config_files="$ac_config_files config.make Makefile"
7334 ac_config_commands="$ac_config_commands default"
7336 cat >confcache <<\_ACEOF
7337 # This file is a shell script that caches the results of configure
7338 # tests run on this system so they can be shared between configure
7339 # scripts and configure runs, see configure's option --config-cache.
7340 # It is not useful on other systems. If it contains results you don't
7341 # want to keep, you may remove or edit it.
7343 # config.status only pays attention to the cache file if you give it
7344 # the --recheck option to rerun configure.
7346 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7347 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7348 # following values.
7350 _ACEOF
7352 # The following way of writing the cache mishandles newlines in values,
7353 # but we know of no workaround that is simple, portable, and efficient.
7354 # So, we kill variables containing newlines.
7355 # Ultrix sh set writes to stderr and can't be redirected directly,
7356 # and sets the high bit in the cache file unless we assign to the vars.
7358 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7359 eval ac_val=\$$ac_var
7360 case $ac_val in #(
7361 *${as_nl}*)
7362 case $ac_var in #(
7363 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7364 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7365 esac
7366 case $ac_var in #(
7367 _ | IFS | as_nl) ;; #(
7368 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7369 *) { eval $ac_var=; unset $ac_var;} ;;
7370 esac ;;
7371 esac
7372 done
7374 (set) 2>&1 |
7375 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7376 *${as_nl}ac_space=\ *)
7377 # `set' does not quote correctly, so add quotes: double-quote
7378 # substitution turns \\\\ into \\, and sed turns \\ into \.
7379 sed -n \
7380 "s/'/'\\\\''/g;
7381 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7382 ;; #(
7384 # `set' quotes correctly as required by POSIX, so do not add quotes.
7385 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7387 esac |
7388 sort
7390 sed '
7391 /^ac_cv_env_/b end
7392 t clear
7393 :clear
7394 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7395 t end
7396 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7397 :end' >>confcache
7398 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7399 if test -w "$cache_file"; then
7400 if test "x$cache_file" != "x/dev/null"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7402 $as_echo "$as_me: updating cache $cache_file" >&6;}
7403 if test ! -f "$cache_file" || test -h "$cache_file"; then
7404 cat confcache >"$cache_file"
7405 else
7406 case $cache_file in #(
7407 */* | ?:*)
7408 mv -f confcache "$cache_file"$$ &&
7409 mv -f "$cache_file"$$ "$cache_file" ;; #(
7411 mv -f confcache "$cache_file" ;;
7412 esac
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7417 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7420 rm -f confcache
7422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7423 # Let make expand exec_prefix.
7424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7426 DEFS=-DHAVE_CONFIG_H
7428 ac_libobjs=
7429 ac_ltlibobjs=
7431 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7432 # 1. Remove the extension, and $U if already installed.
7433 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7434 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7435 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7436 # will be set to the directory where LIBOBJS objects are built.
7437 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7438 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7439 done
7440 LIBOBJS=$ac_libobjs
7442 LTLIBOBJS=$ac_ltlibobjs
7446 : "${CONFIG_STATUS=./config.status}"
7447 ac_write_fail=0
7448 ac_clean_files_save=$ac_clean_files
7449 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7451 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7452 as_write_fail=0
7453 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7454 #! $SHELL
7455 # Generated by $as_me.
7456 # Run this file to recreate the current configuration.
7457 # Compiler output produced by configure, useful for debugging
7458 # configure, is in config.log if it exists.
7460 debug=false
7461 ac_cs_recheck=false
7462 ac_cs_silent=false
7464 SHELL=\${CONFIG_SHELL-$SHELL}
7465 export SHELL
7466 _ASEOF
7467 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7468 ## -------------------- ##
7469 ## M4sh Initialization. ##
7470 ## -------------------- ##
7472 # Be more Bourne compatible
7473 DUALCASE=1; export DUALCASE # for MKS sh
7474 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7475 emulate sh
7476 NULLCMD=:
7477 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7478 # is contrary to our usage. Disable this feature.
7479 alias -g '${1+"$@"}'='"$@"'
7480 setopt NO_GLOB_SUBST
7481 else
7482 case `(set -o) 2>/dev/null` in #(
7483 *posix*) :
7484 set -o posix ;; #(
7485 *) :
7487 esac
7491 as_nl='
7493 export as_nl
7494 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7495 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7497 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7498 # Prefer a ksh shell builtin over an external printf program on Solaris,
7499 # but without wasting forks for bash or zsh.
7500 if test -z "$BASH_VERSION$ZSH_VERSION" \
7501 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7502 as_echo='print -r --'
7503 as_echo_n='print -rn --'
7504 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7505 as_echo='printf %s\n'
7506 as_echo_n='printf %s'
7507 else
7508 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7509 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7510 as_echo_n='/usr/ucb/echo -n'
7511 else
7512 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7513 as_echo_n_body='eval
7514 arg=$1;
7515 case $arg in #(
7516 *"$as_nl"*)
7517 expr "X$arg" : "X\\(.*\\)$as_nl";
7518 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7519 esac;
7520 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7522 export as_echo_n_body
7523 as_echo_n='sh -c $as_echo_n_body as_echo'
7525 export as_echo_body
7526 as_echo='sh -c $as_echo_body as_echo'
7529 # The user is always right.
7530 if test "${PATH_SEPARATOR+set}" != set; then
7531 PATH_SEPARATOR=:
7532 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7533 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7534 PATH_SEPARATOR=';'
7539 # IFS
7540 # We need space, tab and new line, in precisely that order. Quoting is
7541 # there to prevent editors from complaining about space-tab.
7542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7543 # splitting by setting IFS to empty value.)
7544 IFS=" "" $as_nl"
7546 # Find who we are. Look in the path if we contain no directory separator.
7547 as_myself=
7548 case $0 in #((
7549 *[\\/]* ) as_myself=$0 ;;
7550 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7553 IFS=$as_save_IFS
7554 test -z "$as_dir" && as_dir=.
7555 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7556 done
7557 IFS=$as_save_IFS
7560 esac
7561 # We did not find ourselves, most probably we were run as `sh COMMAND'
7562 # in which case we are not to be found in the path.
7563 if test "x$as_myself" = x; then
7564 as_myself=$0
7566 if test ! -f "$as_myself"; then
7567 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7568 exit 1
7571 # Unset variables that we do not need and which cause bugs (e.g. in
7572 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7573 # suppresses any "Segmentation fault" message there. '((' could
7574 # trigger a bug in pdksh 5.2.14.
7575 for as_var in BASH_ENV ENV MAIL MAILPATH
7576 do eval test x\${$as_var+set} = xset \
7577 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7578 done
7579 PS1='$ '
7580 PS2='> '
7581 PS4='+ '
7583 # NLS nuisances.
7584 LC_ALL=C
7585 export LC_ALL
7586 LANGUAGE=C
7587 export LANGUAGE
7589 # CDPATH.
7590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7593 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7594 # ----------------------------------------
7595 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7596 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7597 # script with STATUS, using 1 if that was 0.
7598 as_fn_error ()
7600 as_status=$1; test $as_status -eq 0 && as_status=1
7601 if test "$4"; then
7602 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7603 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7605 $as_echo "$as_me: error: $2" >&2
7606 as_fn_exit $as_status
7607 } # as_fn_error
7610 # as_fn_set_status STATUS
7611 # -----------------------
7612 # Set $? to STATUS, without forking.
7613 as_fn_set_status ()
7615 return $1
7616 } # as_fn_set_status
7618 # as_fn_exit STATUS
7619 # -----------------
7620 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7621 as_fn_exit ()
7623 set +e
7624 as_fn_set_status $1
7625 exit $1
7626 } # as_fn_exit
7628 # as_fn_unset VAR
7629 # ---------------
7630 # Portably unset VAR.
7631 as_fn_unset ()
7633 { eval $1=; unset $1;}
7635 as_unset=as_fn_unset
7636 # as_fn_append VAR VALUE
7637 # ----------------------
7638 # Append the text in VALUE to the end of the definition contained in VAR. Take
7639 # advantage of any shell optimizations that allow amortized linear growth over
7640 # repeated appends, instead of the typical quadratic growth present in naive
7641 # implementations.
7642 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7643 eval 'as_fn_append ()
7645 eval $1+=\$2
7647 else
7648 as_fn_append ()
7650 eval $1=\$$1\$2
7652 fi # as_fn_append
7654 # as_fn_arith ARG...
7655 # ------------------
7656 # Perform arithmetic evaluation on the ARGs, and store the result in the
7657 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7658 # must be portable across $(()) and expr.
7659 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7660 eval 'as_fn_arith ()
7662 as_val=$(( $* ))
7664 else
7665 as_fn_arith ()
7667 as_val=`expr "$@" || test $? -eq 1`
7669 fi # as_fn_arith
7672 if expr a : '\(a\)' >/dev/null 2>&1 &&
7673 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7674 as_expr=expr
7675 else
7676 as_expr=false
7679 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7680 as_basename=basename
7681 else
7682 as_basename=false
7685 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7686 as_dirname=dirname
7687 else
7688 as_dirname=false
7691 as_me=`$as_basename -- "$0" ||
7692 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7693 X"$0" : 'X\(//\)$' \| \
7694 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7695 $as_echo X/"$0" |
7696 sed '/^.*\/\([^/][^/]*\)\/*$/{
7697 s//\1/
7700 /^X\/\(\/\/\)$/{
7701 s//\1/
7704 /^X\/\(\/\).*/{
7705 s//\1/
7708 s/.*/./; q'`
7710 # Avoid depending upon Character Ranges.
7711 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7712 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7713 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7714 as_cr_digits='0123456789'
7715 as_cr_alnum=$as_cr_Letters$as_cr_digits
7717 ECHO_C= ECHO_N= ECHO_T=
7718 case `echo -n x` in #(((((
7719 -n*)
7720 case `echo 'xy\c'` in
7721 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7722 xy) ECHO_C='\c';;
7723 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7724 ECHO_T=' ';;
7725 esac;;
7727 ECHO_N='-n';;
7728 esac
7730 rm -f conf$$ conf$$.exe conf$$.file
7731 if test -d conf$$.dir; then
7732 rm -f conf$$.dir/conf$$.file
7733 else
7734 rm -f conf$$.dir
7735 mkdir conf$$.dir 2>/dev/null
7737 if (echo >conf$$.file) 2>/dev/null; then
7738 if ln -s conf$$.file conf$$ 2>/dev/null; then
7739 as_ln_s='ln -s'
7740 # ... but there are two gotchas:
7741 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7742 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7743 # In both cases, we have to default to `cp -pR'.
7744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7745 as_ln_s='cp -pR'
7746 elif ln conf$$.file conf$$ 2>/dev/null; then
7747 as_ln_s=ln
7748 else
7749 as_ln_s='cp -pR'
7751 else
7752 as_ln_s='cp -pR'
7754 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7755 rmdir conf$$.dir 2>/dev/null
7758 # as_fn_mkdir_p
7759 # -------------
7760 # Create "$as_dir" as a directory, including parents if necessary.
7761 as_fn_mkdir_p ()
7764 case $as_dir in #(
7765 -*) as_dir=./$as_dir;;
7766 esac
7767 test -d "$as_dir" || eval $as_mkdir_p || {
7768 as_dirs=
7769 while :; do
7770 case $as_dir in #(
7771 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7772 *) as_qdir=$as_dir;;
7773 esac
7774 as_dirs="'$as_qdir' $as_dirs"
7775 as_dir=`$as_dirname -- "$as_dir" ||
7776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7777 X"$as_dir" : 'X\(//\)[^/]' \| \
7778 X"$as_dir" : 'X\(//\)$' \| \
7779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7780 $as_echo X"$as_dir" |
7781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7782 s//\1/
7785 /^X\(\/\/\)[^/].*/{
7786 s//\1/
7789 /^X\(\/\/\)$/{
7790 s//\1/
7793 /^X\(\/\).*/{
7794 s//\1/
7797 s/.*/./; q'`
7798 test -d "$as_dir" && break
7799 done
7800 test -z "$as_dirs" || eval "mkdir $as_dirs"
7801 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7804 } # as_fn_mkdir_p
7805 if mkdir -p . 2>/dev/null; then
7806 as_mkdir_p='mkdir -p "$as_dir"'
7807 else
7808 test -d ./-p && rmdir ./-p
7809 as_mkdir_p=false
7813 # as_fn_executable_p FILE
7814 # -----------------------
7815 # Test if FILE is an executable regular file.
7816 as_fn_executable_p ()
7818 test -f "$1" && test -x "$1"
7819 } # as_fn_executable_p
7820 as_test_x='test -x'
7821 as_executable_p=as_fn_executable_p
7823 # Sed expression to map a string onto a valid CPP name.
7824 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7826 # Sed expression to map a string onto a valid variable name.
7827 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7830 exec 6>&1
7831 ## ----------------------------------- ##
7832 ## Main body of $CONFIG_STATUS script. ##
7833 ## ----------------------------------- ##
7834 _ASEOF
7835 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7838 # Save the log message, to keep $0 and so on meaningful, and to
7839 # report actual input values of CONFIG_FILES etc. instead of their
7840 # values after options handling.
7841 ac_log="
7842 This file was extended by GNU C Library $as_me (see version.h), which was
7843 generated by GNU Autoconf 2.69. Invocation command line was
7845 CONFIG_FILES = $CONFIG_FILES
7846 CONFIG_HEADERS = $CONFIG_HEADERS
7847 CONFIG_LINKS = $CONFIG_LINKS
7848 CONFIG_COMMANDS = $CONFIG_COMMANDS
7849 $ $0 $@
7851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7854 _ACEOF
7856 case $ac_config_files in *"
7857 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7858 esac
7860 case $ac_config_headers in *"
7861 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7862 esac
7865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7866 # Files that config.status was made for.
7867 config_files="$ac_config_files"
7868 config_headers="$ac_config_headers"
7869 config_commands="$ac_config_commands"
7871 _ACEOF
7873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7874 ac_cs_usage="\
7875 \`$as_me' instantiates files and other configuration actions
7876 from templates according to the current configuration. Unless the files
7877 and actions are specified as TAGs, all are instantiated by default.
7879 Usage: $0 [OPTION]... [TAG]...
7881 -h, --help print this help, then exit
7882 -V, --version print version number and configuration settings, then exit
7883 --config print configuration, then exit
7884 -q, --quiet, --silent
7885 do not print progress messages
7886 -d, --debug don't remove temporary files
7887 --recheck update $as_me by reconfiguring in the same conditions
7888 --file=FILE[:TEMPLATE]
7889 instantiate the configuration file FILE
7890 --header=FILE[:TEMPLATE]
7891 instantiate the configuration header FILE
7893 Configuration files:
7894 $config_files
7896 Configuration headers:
7897 $config_headers
7899 Configuration commands:
7900 $config_commands
7902 Report bugs to <http://sourceware.org/bugzilla/>.
7903 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
7904 General help using GNU software: <http://www.gnu.org/gethelp/>."
7906 _ACEOF
7907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7908 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7909 ac_cs_version="\\
7910 GNU C Library config.status (see version.h)
7911 configured by $0, generated by GNU Autoconf 2.69,
7912 with options \\"\$ac_cs_config\\"
7914 Copyright (C) 2012 Free Software Foundation, Inc.
7915 This config.status script is free software; the Free Software Foundation
7916 gives unlimited permission to copy, distribute and modify it."
7918 ac_pwd='$ac_pwd'
7919 srcdir='$srcdir'
7920 INSTALL='$INSTALL'
7921 test -n "\$AWK" || AWK=awk
7922 _ACEOF
7924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7925 # The default lists apply if the user does not specify any file.
7926 ac_need_defaults=:
7927 while test $# != 0
7929 case $1 in
7930 --*=?*)
7931 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7933 ac_shift=:
7935 --*=)
7936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7937 ac_optarg=
7938 ac_shift=:
7941 ac_option=$1
7942 ac_optarg=$2
7943 ac_shift=shift
7945 esac
7947 case $ac_option in
7948 # Handling of the options.
7949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7950 ac_cs_recheck=: ;;
7951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7952 $as_echo "$ac_cs_version"; exit ;;
7953 --config | --confi | --conf | --con | --co | --c )
7954 $as_echo "$ac_cs_config"; exit ;;
7955 --debug | --debu | --deb | --de | --d | -d )
7956 debug=: ;;
7957 --file | --fil | --fi | --f )
7958 $ac_shift
7959 case $ac_optarg in
7960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7961 '') as_fn_error $? "missing file argument" ;;
7962 esac
7963 as_fn_append CONFIG_FILES " '$ac_optarg'"
7964 ac_need_defaults=false;;
7965 --header | --heade | --head | --hea )
7966 $ac_shift
7967 case $ac_optarg in
7968 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7969 esac
7970 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7971 ac_need_defaults=false;;
7972 --he | --h)
7973 # Conflict between --help and --header
7974 as_fn_error $? "ambiguous option: \`$1'
7975 Try \`$0 --help' for more information.";;
7976 --help | --hel | -h )
7977 $as_echo "$ac_cs_usage"; exit ;;
7978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7979 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7980 ac_cs_silent=: ;;
7982 # This is an error.
7983 -*) as_fn_error $? "unrecognized option: \`$1'
7984 Try \`$0 --help' for more information." ;;
7986 *) as_fn_append ac_config_targets " $1"
7987 ac_need_defaults=false ;;
7989 esac
7990 shift
7991 done
7993 ac_configure_extra_args=
7995 if $ac_cs_silent; then
7996 exec 6>/dev/null
7997 ac_configure_extra_args="$ac_configure_extra_args --silent"
8000 _ACEOF
8001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8002 if \$ac_cs_recheck; then
8003 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8004 shift
8005 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8006 CONFIG_SHELL='$SHELL'
8007 export CONFIG_SHELL
8008 exec "\$@"
8011 _ACEOF
8012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8013 exec 5>>config.log
8015 echo
8016 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8017 ## Running $as_me. ##
8018 _ASBOX
8019 $as_echo "$ac_log"
8020 } >&5
8022 _ACEOF
8023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8025 # INIT-COMMANDS
8027 config_vars='$config_vars'
8029 _ACEOF
8031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8033 # Handling of arguments.
8034 for ac_config_target in $ac_config_targets
8036 case $ac_config_target in
8037 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8038 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8039 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8040 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8042 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8043 esac
8044 done
8047 # If the user did not use the arguments to specify the items to instantiate,
8048 # then the envvar interface is used. Set only those that are not.
8049 # We use the long form for the default assignment because of an extremely
8050 # bizarre bug on SunOS 4.1.3.
8051 if $ac_need_defaults; then
8052 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8053 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8054 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8057 # Have a temporary directory for convenience. Make it in the build tree
8058 # simply because there is no reason against having it here, and in addition,
8059 # creating and moving files from /tmp can sometimes cause problems.
8060 # Hook for its removal unless debugging.
8061 # Note that there is a small window in which the directory will not be cleaned:
8062 # after its creation but before its name has been assigned to `$tmp'.
8063 $debug ||
8065 tmp= ac_tmp=
8066 trap 'exit_status=$?
8067 : "${ac_tmp:=$tmp}"
8068 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8070 trap 'as_fn_exit 1' 1 2 13 15
8072 # Create a (secure) tmp directory for tmp files.
8075 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8076 test -d "$tmp"
8077 } ||
8079 tmp=./conf$$-$RANDOM
8080 (umask 077 && mkdir "$tmp")
8081 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8082 ac_tmp=$tmp
8084 # Set up the scripts for CONFIG_FILES section.
8085 # No need to generate them if there are no CONFIG_FILES.
8086 # This happens for instance with `./config.status config.h'.
8087 if test -n "$CONFIG_FILES"; then
8090 ac_cr=`echo X | tr X '\015'`
8091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8092 # But we know of no other shell where ac_cr would be empty at this
8093 # point, so we can use a bashism as a fallback.
8094 if test "x$ac_cr" = x; then
8095 eval ac_cr=\$\'\\r\'
8097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8099 ac_cs_awk_cr='\\r'
8100 else
8101 ac_cs_awk_cr=$ac_cr
8104 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8105 _ACEOF
8109 echo "cat >conf$$subs.awk <<_ACEOF" &&
8110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8111 echo "_ACEOF"
8112 } >conf$$subs.sh ||
8113 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8115 ac_delim='%!_!# '
8116 for ac_last_try in false false false false false :; do
8117 . ./conf$$subs.sh ||
8118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8121 if test $ac_delim_n = $ac_delim_num; then
8122 break
8123 elif $ac_last_try; then
8124 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8125 else
8126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8128 done
8129 rm -f conf$$subs.sh
8131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8132 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8133 _ACEOF
8134 sed -n '
8136 s/^/S["/; s/!.*/"]=/
8139 s/^[^!]*!//
8140 :repl
8141 t repl
8142 s/'"$ac_delim"'$//
8143 t delim
8146 s/\(.\{148\}\)..*/\1/
8147 t more1
8148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8151 b repl
8152 :more1
8153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8156 s/.\{148\}//
8157 t nl
8158 :delim
8160 s/\(.\{148\}\)..*/\1/
8161 t more2
8162 s/["\\]/\\&/g; s/^/"/; s/$/"/
8165 :more2
8166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8169 s/.\{148\}//
8170 t delim
8171 ' <conf$$subs.awk | sed '
8172 /^[^""]/{
8174 s/\n//
8176 ' >>$CONFIG_STATUS || ac_write_fail=1
8177 rm -f conf$$subs.awk
8178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8179 _ACAWK
8180 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8181 for (key in S) S_is_set[key] = 1
8182 FS = "\a"
8186 line = $ 0
8187 nfields = split(line, field, "@")
8188 substed = 0
8189 len = length(field[1])
8190 for (i = 2; i < nfields; i++) {
8191 key = field[i]
8192 keylen = length(key)
8193 if (S_is_set[key]) {
8194 value = S[key]
8195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8196 len += length(value) + length(field[++i])
8197 substed = 1
8198 } else
8199 len += 1 + keylen
8202 print line
8205 _ACAWK
8206 _ACEOF
8207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8209 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8210 else
8212 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8213 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8214 _ACEOF
8216 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8217 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8218 # trailing colons and then remove the whole line if VPATH becomes empty
8219 # (actually we leave an empty line to preserve line numbers).
8220 if test "x$srcdir" = x.; then
8221 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8223 s///
8224 s/^/:/
8225 s/[ ]*$/:/
8226 s/:\$(srcdir):/:/g
8227 s/:\${srcdir}:/:/g
8228 s/:@srcdir@:/:/g
8229 s/^:*//
8230 s/:*$//
8232 s/\(=[ ]*\).*/\1/
8234 s/\n//
8235 s/^[^=]*=[ ]*$//
8239 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8240 fi # test -n "$CONFIG_FILES"
8242 # Set up the scripts for CONFIG_HEADERS section.
8243 # No need to generate them if there are no CONFIG_HEADERS.
8244 # This happens for instance with `./config.status Makefile'.
8245 if test -n "$CONFIG_HEADERS"; then
8246 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8247 BEGIN {
8248 _ACEOF
8250 # Transform confdefs.h into an awk script `defines.awk', embedded as
8251 # here-document in config.status, that substitutes the proper values into
8252 # config.h.in to produce config.h.
8254 # Create a delimiter string that does not exist in confdefs.h, to ease
8255 # handling of long lines.
8256 ac_delim='%!_!# '
8257 for ac_last_try in false false :; do
8258 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8259 if test -z "$ac_tt"; then
8260 break
8261 elif $ac_last_try; then
8262 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8263 else
8264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8266 done
8268 # For the awk script, D is an array of macro values keyed by name,
8269 # likewise P contains macro parameters if any. Preserve backslash
8270 # newline sequences.
8272 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8273 sed -n '
8274 s/.\{148\}/&'"$ac_delim"'/g
8275 t rset
8276 :rset
8277 s/^[ ]*#[ ]*define[ ][ ]*/ /
8278 t def
8280 :def
8281 s/\\$//
8282 t bsnl
8283 s/["\\]/\\&/g
8284 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8285 D["\1"]=" \3"/p
8286 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8288 :bsnl
8289 s/["\\]/\\&/g
8290 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8291 D["\1"]=" \3\\\\\\n"\\/p
8292 t cont
8293 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8294 t cont
8296 :cont
8298 s/.\{148\}/&'"$ac_delim"'/g
8299 t clear
8300 :clear
8301 s/\\$//
8302 t bsnlc
8303 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8305 :bsnlc
8306 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8307 b cont
8308 ' <confdefs.h | sed '
8309 s/'"$ac_delim"'/"\\\
8310 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8313 for (key in D) D_is_set[key] = 1
8314 FS = "\a"
8316 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8317 line = \$ 0
8318 split(line, arg, " ")
8319 if (arg[1] == "#") {
8320 defundef = arg[2]
8321 mac1 = arg[3]
8322 } else {
8323 defundef = substr(arg[1], 2)
8324 mac1 = arg[2]
8326 split(mac1, mac2, "(") #)
8327 macro = mac2[1]
8328 prefix = substr(line, 1, index(line, defundef) - 1)
8329 if (D_is_set[macro]) {
8330 # Preserve the white space surrounding the "#".
8331 print prefix "define", macro P[macro] D[macro]
8332 next
8333 } else {
8334 # Replace #undef with comments. This is necessary, for example,
8335 # in the case of _POSIX_SOURCE, which is predefined and required
8336 # on some systems where configure will not decide to define it.
8337 if (defundef == "undef") {
8338 print "/*", prefix defundef, macro, "*/"
8339 next
8343 { print }
8344 _ACAWK
8345 _ACEOF
8346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8347 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8348 fi # test -n "$CONFIG_HEADERS"
8351 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8352 shift
8353 for ac_tag
8355 case $ac_tag in
8356 :[FHLC]) ac_mode=$ac_tag; continue;;
8357 esac
8358 case $ac_mode$ac_tag in
8359 :[FHL]*:*);;
8360 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8361 :[FH]-) ac_tag=-:-;;
8362 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8363 esac
8364 ac_save_IFS=$IFS
8365 IFS=:
8366 set x $ac_tag
8367 IFS=$ac_save_IFS
8368 shift
8369 ac_file=$1
8370 shift
8372 case $ac_mode in
8373 :L) ac_source=$1;;
8374 :[FH])
8375 ac_file_inputs=
8376 for ac_f
8378 case $ac_f in
8379 -) ac_f="$ac_tmp/stdin";;
8380 *) # Look for the file first in the build tree, then in the source tree
8381 # (if the path is not absolute). The absolute path cannot be DOS-style,
8382 # because $ac_f cannot contain `:'.
8383 test -f "$ac_f" ||
8384 case $ac_f in
8385 [\\/$]*) false;;
8386 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8387 esac ||
8388 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8389 esac
8390 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8391 as_fn_append ac_file_inputs " '$ac_f'"
8392 done
8394 # Let's still pretend it is `configure' which instantiates (i.e., don't
8395 # use $as_me), people would be surprised to read:
8396 # /* config.h. Generated by config.status. */
8397 configure_input='Generated from '`
8398 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8399 `' by configure.'
8400 if test x"$ac_file" != x-; then
8401 configure_input="$ac_file. $configure_input"
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8403 $as_echo "$as_me: creating $ac_file" >&6;}
8405 # Neutralize special characters interpreted by sed in replacement strings.
8406 case $configure_input in #(
8407 *\&* | *\|* | *\\* )
8408 ac_sed_conf_input=`$as_echo "$configure_input" |
8409 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8410 *) ac_sed_conf_input=$configure_input;;
8411 esac
8413 case $ac_tag in
8414 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8415 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8416 esac
8418 esac
8420 ac_dir=`$as_dirname -- "$ac_file" ||
8421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8422 X"$ac_file" : 'X\(//\)[^/]' \| \
8423 X"$ac_file" : 'X\(//\)$' \| \
8424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8425 $as_echo X"$ac_file" |
8426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8427 s//\1/
8430 /^X\(\/\/\)[^/].*/{
8431 s//\1/
8434 /^X\(\/\/\)$/{
8435 s//\1/
8438 /^X\(\/\).*/{
8439 s//\1/
8442 s/.*/./; q'`
8443 as_dir="$ac_dir"; as_fn_mkdir_p
8444 ac_builddir=.
8446 case "$ac_dir" in
8447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8450 # A ".." for each directory in $ac_dir_suffix.
8451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8452 case $ac_top_builddir_sub in
8453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8455 esac ;;
8456 esac
8457 ac_abs_top_builddir=$ac_pwd
8458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8459 # for backward compatibility:
8460 ac_top_builddir=$ac_top_build_prefix
8462 case $srcdir in
8463 .) # We are building in place.
8464 ac_srcdir=.
8465 ac_top_srcdir=$ac_top_builddir_sub
8466 ac_abs_top_srcdir=$ac_pwd ;;
8467 [\\/]* | ?:[\\/]* ) # Absolute name.
8468 ac_srcdir=$srcdir$ac_dir_suffix;
8469 ac_top_srcdir=$srcdir
8470 ac_abs_top_srcdir=$srcdir ;;
8471 *) # Relative name.
8472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8473 ac_top_srcdir=$ac_top_build_prefix$srcdir
8474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8475 esac
8476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8479 case $ac_mode in
8482 # CONFIG_FILE
8485 case $INSTALL in
8486 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8487 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8488 esac
8489 _ACEOF
8491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8492 # If the template does not know about datarootdir, expand it.
8493 # FIXME: This hack should be removed a few years after 2.60.
8494 ac_datarootdir_hack=; ac_datarootdir_seen=
8495 ac_sed_dataroot='
8496 /datarootdir/ {
8500 /@datadir@/p
8501 /@docdir@/p
8502 /@infodir@/p
8503 /@localedir@/p
8504 /@mandir@/p'
8505 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8506 *datarootdir*) ac_datarootdir_seen=yes;;
8507 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8509 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8510 _ACEOF
8511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8512 ac_datarootdir_hack='
8513 s&@datadir@&$datadir&g
8514 s&@docdir@&$docdir&g
8515 s&@infodir@&$infodir&g
8516 s&@localedir@&$localedir&g
8517 s&@mandir@&$mandir&g
8518 s&\\\${datarootdir}&$datarootdir&g' ;;
8519 esac
8520 _ACEOF
8522 # Neutralize VPATH when `$srcdir' = `.'.
8523 # Shell code in configure.ac might set extrasub.
8524 # FIXME: do we really want to maintain this feature?
8525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8526 ac_sed_extra="$ac_vpsub
8527 $extrasub
8528 _ACEOF
8529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8531 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8532 s|@configure_input@|$ac_sed_conf_input|;t t
8533 s&@top_builddir@&$ac_top_builddir_sub&;t t
8534 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8535 s&@srcdir@&$ac_srcdir&;t t
8536 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8537 s&@top_srcdir@&$ac_top_srcdir&;t t
8538 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8539 s&@builddir@&$ac_builddir&;t t
8540 s&@abs_builddir@&$ac_abs_builddir&;t t
8541 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8542 s&@INSTALL@&$ac_INSTALL&;t t
8543 $ac_datarootdir_hack
8545 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8546 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8549 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8551 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8553 which seems to be undefined. Please make sure it is defined" >&5
8554 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8555 which seems to be undefined. Please make sure it is defined" >&2;}
8557 rm -f "$ac_tmp/stdin"
8558 case $ac_file in
8559 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8560 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8561 esac \
8562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8566 # CONFIG_HEADER
8568 if test x"$ac_file" != x-; then
8570 $as_echo "/* $configure_input */" \
8571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8572 } >"$ac_tmp/config.h" \
8573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8574 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8576 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8577 else
8578 rm -f "$ac_file"
8579 mv "$ac_tmp/config.h" "$ac_file" \
8580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8582 else
8583 $as_echo "/* $configure_input */" \
8584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8585 || as_fn_error $? "could not create -" "$LINENO" 5
8589 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8590 $as_echo "$as_me: executing $ac_file commands" >&6;}
8592 esac
8595 case $ac_file$ac_mode in
8596 "default":C)
8597 case $CONFIG_FILES in *config.make*)
8598 echo "$config_vars" >> config.make;;
8599 esac
8600 test -d bits || mkdir bits ;;
8602 esac
8603 done # for ac_tag
8606 as_fn_exit 0
8607 _ACEOF
8608 ac_clean_files=$ac_clean_files_save
8610 test $ac_write_fail = 0 ||
8611 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8614 # configure is writing to config.log, and then calls config.status.
8615 # config.status does its own redirection, appending to config.log.
8616 # Unfortunately, on DOS this fails, as config.log is still kept open
8617 # by configure, so config.status won't be able to write to it; its
8618 # output is simply discarded. So we exec the FD to /dev/null,
8619 # effectively closing config.log, so it can be properly (re)opened and
8620 # appended to by config.status. When coming back to configure, we
8621 # need to make the FD available again.
8622 if test "$no_create" != yes; then
8623 ac_cs_success=:
8624 ac_config_status_args=
8625 test "$silent" = yes &&
8626 ac_config_status_args="$ac_config_status_args --quiet"
8627 exec 5>/dev/null
8628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8629 exec 5>>config.log
8630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8631 # would make configure fail if this is the last instruction.
8632 $ac_cs_success || as_fn_exit 1
8636 # CONFIG_SUBDIRS section.
8638 if test "$no_recursion" != yes; then
8640 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8641 # so they do not pile up.
8642 ac_sub_configure_args=
8643 ac_prev=
8644 eval "set x $ac_configure_args"
8645 shift
8646 for ac_arg
8648 if test -n "$ac_prev"; then
8649 ac_prev=
8650 continue
8652 case $ac_arg in
8653 -cache-file | --cache-file | --cache-fil | --cache-fi \
8654 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8655 ac_prev=cache_file ;;
8656 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8657 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8658 | --c=*)
8660 --config-cache | -C)
8662 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8663 ac_prev=srcdir ;;
8664 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8667 ac_prev=prefix ;;
8668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8670 --disable-option-checking)
8673 case $ac_arg in
8674 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8675 esac
8676 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8677 esac
8678 done
8680 # Always prepend --prefix to ensure using the same prefix
8681 # in subdir configurations.
8682 ac_arg="--prefix=$prefix"
8683 case $ac_arg in
8684 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8685 esac
8686 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8688 # Pass --silent
8689 if test "$silent" = yes; then
8690 ac_sub_configure_args="--silent $ac_sub_configure_args"
8693 # Always prepend --disable-option-checking to silence warnings, since
8694 # different subdirs can have different --enable and --with options.
8695 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8697 ac_popdir=`pwd`
8698 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8700 # Do not complain, so a configure script can configure whichever
8701 # parts of a large source tree are present.
8702 test -d "$srcdir/$ac_dir" || continue
8704 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8706 $as_echo "$ac_msg" >&6
8707 as_dir="$ac_dir"; as_fn_mkdir_p
8708 ac_builddir=.
8710 case "$ac_dir" in
8711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8714 # A ".." for each directory in $ac_dir_suffix.
8715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8716 case $ac_top_builddir_sub in
8717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8719 esac ;;
8720 esac
8721 ac_abs_top_builddir=$ac_pwd
8722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8723 # for backward compatibility:
8724 ac_top_builddir=$ac_top_build_prefix
8726 case $srcdir in
8727 .) # We are building in place.
8728 ac_srcdir=.
8729 ac_top_srcdir=$ac_top_builddir_sub
8730 ac_abs_top_srcdir=$ac_pwd ;;
8731 [\\/]* | ?:[\\/]* ) # Absolute name.
8732 ac_srcdir=$srcdir$ac_dir_suffix;
8733 ac_top_srcdir=$srcdir
8734 ac_abs_top_srcdir=$srcdir ;;
8735 *) # Relative name.
8736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8737 ac_top_srcdir=$ac_top_build_prefix$srcdir
8738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8739 esac
8740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8743 cd "$ac_dir"
8745 # Check for guested configure; otherwise get Cygnus style configure.
8746 if test -f "$ac_srcdir/configure.gnu"; then
8747 ac_sub_configure=$ac_srcdir/configure.gnu
8748 elif test -f "$ac_srcdir/configure"; then
8749 ac_sub_configure=$ac_srcdir/configure
8750 elif test -f "$ac_srcdir/configure.in"; then
8751 # This should be Cygnus configure.
8752 ac_sub_configure=$ac_aux_dir/configure
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8755 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8756 ac_sub_configure=
8759 # The recursion is here.
8760 if test -n "$ac_sub_configure"; then
8761 # Make the cache file name correct relative to the subdirectory.
8762 case $cache_file in
8763 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8764 *) # Relative name.
8765 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8766 esac
8768 { $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
8769 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8770 # The eval makes quoting arguments work.
8771 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8772 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8773 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8776 cd "$ac_popdir"
8777 done
8779 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8781 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}