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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 :
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir=.
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 :
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
240 if test "x$CONFIG_SHELL" != x; then :
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.
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
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."
279 SHELL=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir=./$as_dir;;
324 test -d "$as_dir" || eval $as_mkdir_p || {
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
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
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
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 :
401 as_val=`expr "$@" || test $? -eq 1`
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.
413 as_status=$1; test $as_status -eq 0 && as_status=1
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
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
499 # Exit status is that of the last command.
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
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
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 ||
532 elif ln conf$$.file conf$$ 2>/dev/null; then
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"'
546 test -d ./-p && rmdir ./-p
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
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`
571 ac_default_prefix=/usr/local
573 ac_config_libobj_dir=.
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
605 libc_cv_forced_unwind
607 libc_cv_localstatedir
614 libc_cv_gcc_unwind_find_fde
617 libc_cv_cxx_thread_local
624 libc_cv_cc_loop_to_function
625 libc_cv_cc_submachine
631 libc_cv_output_format
638 libc_cv_cc_with_libunwind
639 libc_cv_protected_data
644 libc_cv_gcc_static_libgcc
679 hardcoded_path_in_tests
680 enable_timezone_tools
737 program_transform_name
750 enable_option_checking
764 enable_timezone_tools
765 enable_hardcoded_path_in_tests
766 enable_stackguard_randomization
773 enable_maintainer_mode
787 ac_precious_vars='build_alias
802 # Initialize some variables set by options.
804 ac_init_version=false
805 ac_unrecognized_opts=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
816 program_transform_name=s,x,x,
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 # Accept the important Cygnus configure options, so we can diagnose typos.
869 case $ac_dashdash$ac_option in
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
891 cache_file=config.cache ;;
893 -datadir | --datadir | --datadi | --datad)
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
919 eval enable_$ac_useropt=no ;;
921 -docdir | --docdir | --docdi | --doc | --do)
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
945 eval enable_$ac_useropt=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1149 eval with_$ac_useropt=\$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1165 eval with_$ac_useropt=no ;;
1168 # Obsolete; use --with-x.
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1236 # Be sure to have absolute directory names.
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1249 target=$target_alias
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1261 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1263 test "$silent" = yes && exec 6>/dev/null
1266 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267 ac_ls_di=`ls -di .` &&
1268 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1274 # Find the source files, if location was not specified.
1275 if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283 $as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1306 ac_srcdir_defaulted=no
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 # When building in place, set srcdir=.
1317 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 # Remove unnecessary trailing slashes from srcdir.
1321 # Double slashes in file names in object file debugging info
1322 # mess up M-x gdb in Emacs.
1324 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 # Report the --help message.
1336 if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1340 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1342 Usage: $0 [OPTION]... [VAR=VALUE]...
1344 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345 VAR=VALUE. See below for descriptions of some of the useful variables.
1347 Defaults for the options are specified in brackets.
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1360 Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 By default, \`make install' will install all the files in
1367 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369 for instance \`--prefix=\$HOME'.
1371 For better control, use the options below.
1373 Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --libdir=DIR object code libraries [EPREFIX/lib]
1381 --includedir=DIR C header files [PREFIX/include]
1382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1383 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1384 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1385 --infodir=DIR info documentation [DATAROOTDIR/info]
1386 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1387 --mandir=DIR man documentation [DATAROOTDIR/man]
1388 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1389 --htmldir=DIR html documentation [DOCDIR]
1390 --dvidir=DIR dvi documentation [DOCDIR]
1391 --pdfdir=DIR pdf documentation [DOCDIR]
1392 --psdir=DIR ps documentation [DOCDIR]
1398 --build=BUILD configure for building on BUILD [guessed]
1399 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 if test -n "$ac_init_help"; then
1404 case $ac_init_help in
1405 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1410 --disable-option-checking ignore unrecognized --enable/--with options
1411 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1412 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1413 --disable-sanity-checks really do not use threads (should not be used except
1414 in special situations) [default=yes]
1415 --enable-shared build shared library [default=yes if GNU ld]
1416 --enable-profile build profiled library [default=no]
1417 --disable-timezone-tools
1418 do not install timezone tools (if using external
1419 ones) [default=install]
1420 --enable-hardcoded-path-in-tests
1421 hardcode newly built glibc path in tests
1423 --enable-stackguard-randomization
1424 initialize __stack_chk_guard canary with a random
1425 number at program start
1426 --enable-lock-elision=yes/no
1427 Enable lock elision for pthread mutexes by default
1428 --enable-add-ons[=DIRS...]
1429 configure and build add-ons in DIR1,DIR2,... search
1430 for add-ons if no parameter given
1431 --disable-hidden-plt do not hide internal function calls to avoid PLT
1432 --enable-bind-now disable lazy relocations in DSOs
1433 --enable-static-nss build static NSS modules [default=no]
1434 --disable-force-install don't force installation of files from this package,
1435 even if they are older than the installed files
1436 --enable-maintainer-mode
1437 enable make rules and dependencies not useful (and
1438 sometimes confusing) to the casual installer
1439 --enable-kernel=VERSION compile for compatibility with kernel not older than
1441 --enable-all-warnings enable all useful warnings gcc can issue
1442 --disable-werror do not build with -Werror
1443 --enable-multi-arch enable single DSO with optimizations for multiple
1445 --enable-nss-crypt enable libcrypt to use nss
1446 --enable-obsolete-rpc build and install the obsolete RPC code for
1448 --enable-systemtap enable systemtap static probe points [default=no]
1449 --disable-build-nscd disable building and installing the nscd daemon
1450 --disable-nscd library functions will not contact the nscd daemon
1451 --enable-pt_chown Enable building and installing pt_chown
1452 --enable-mathvec Enable building and installing mathvec [default
1453 depends on architecture]
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1459 --with-bugurl=URL Direct users to URL to report a bug
1460 --with-gd=DIR find libgd include dir and library with prefix DIR
1461 --with-gd-include=DIR find libgd include files in DIR
1462 --with-gd-lib=DIR find libgd library files in DIR
1463 --with-fp if using floating-point hardware [default=yes]
1464 --with-binutils=PATH specify location of binutils (as and ld)
1465 --with-selinux if building with SELinux support
1466 --with-headers=PATH location of system headers to use (for example
1467 /usr/src/linux/include) [default=compiler default]
1468 --with-default-link do not use explicit linker scripts
1469 --with-cpu=CPU select code for CPU variant
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1483 Use these variables to override the choices made by `configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1486 Report bugs to <http://sourceware.org/bugzilla/>.
1487 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1488 General help using GNU software: <http://www.gnu.org/gethelp/>.
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d "$ac_dir" ||
1497 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505 # A ".." for each directory in $ac_dir_suffix.
1506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507 case $ac_top_builddir_sub in
1508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1518 .) # We are building in place.
1520 ac_top_srcdir=$ac_top_builddir_sub
1521 ac_abs_top_srcdir=$ac_pwd ;;
1522 [\\/]* | ?:[\\/]* ) # Absolute name.
1523 ac_srcdir=$srcdir$ac_dir_suffix;
1524 ac_top_srcdir=$srcdir
1525 ac_abs_top_srcdir=$srcdir ;;
1527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528 ac_top_srcdir=$ac_top_build_prefix$srcdir
1529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1533 cd "$ac_dir" || { ac_status=$?; continue; }
1534 # Check for guested configure.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1542 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1551 GNU C Library configure (see version.h)
1552 generated by GNU Autoconf 2.69
1554 Copyright (C) 2012 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1561 ## ------------------------ ##
1562 ## Autoconf initialization. ##
1563 ## ------------------------ ##
1565 # ac_fn_c_try_compile LINENO
1566 # --------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_compile ()
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext
1572 if { { ac_try="$ac_compile"
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext; then :
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1598 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599 as_fn_set_status $ac_retval
1601 } # ac_fn_c_try_compile
1603 # ac_fn_cxx_try_compile LINENO
1604 # ----------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_cxx_try_compile ()
1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609 rm -f conftest.$ac_objext
1610 if { { ac_try="$ac_compile"
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_compile") 2>conftest.err
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } && {
1626 test -z "$ac_cxx_werror_flag" ||
1627 test ! -s conftest.err
1628 } && test -s conftest.$ac_objext; then :
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_cxx_try_compile
1641 # ac_fn_cxx_try_link LINENO
1642 # -------------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_cxx_try_link ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_cxx_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 test -x conftest$ac_exeext
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_cxx_try_link
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 test -x conftest$ac_exeext
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1723 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1724 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1725 # interfere with the next link command; also delete a directory that is
1726 # left behind by Apple's compiler. We do this before executing the actions.
1727 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729 as_fn_set_status $ac_retval
1731 } # ac_fn_c_try_link
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_link"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_link") 2>&5
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751 { { case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_try") 2>&5
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; }; }; then :
1763 $as_echo "$as_me: program exited with status $ac_status" >&5
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1767 ac_retval=$ac_status
1769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771 as_fn_set_status $ac_retval
1775 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1776 # --------------------------------------------
1777 # Tries to find the compile-time value of EXPR in a program that includes
1778 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1780 ac_fn_c_compute_int ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if test "$cross_compiling" = yes; then
1784 # Depending upon the size, compute the lo and hi bounds.
1785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786 /* end confdefs.h. */
1791 static int test_array [1 - 2 * !(($2) >= 0)];
1793 return test_array [0];
1799 if ac_fn_c_try_compile "$LINENO"; then :
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1808 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1810 return test_array [0];
1816 if ac_fn_c_try_compile "$LINENO"; then :
1817 ac_hi=$ac_mid; break
1819 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1820 if test $ac_lo -le $ac_mid; then
1824 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h. */
1835 static int test_array [1 - 2 * !(($2) < 0)];
1837 return test_array [0];
1843 if ac_fn_c_try_compile "$LINENO"; then :
1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h. */
1852 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1854 return test_array [0];
1860 if ac_fn_c_try_compile "$LINENO"; then :
1861 ac_lo=$ac_mid; break
1863 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1864 if test $ac_mid -le $ac_hi; then
1868 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 # Binary search between lo and hi bounds.
1879 while test "x$ac_lo" != "x$ac_hi"; do
1880 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1887 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1889 return test_array [0];
1895 if ac_fn_c_try_compile "$LINENO"; then :
1898 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1910 static long int longval () { return $2; }
1911 static unsigned long int ulongval () { return $2; }
1918 FILE *f = fopen ("conftest.val", "w");
1923 long int i = longval ();
1926 fprintf (f, "%ld", i);
1930 unsigned long int i = ulongval ();
1933 fprintf (f, "%lu", i);
1935 /* Do not output a trailing newline, as this causes \r\n confusion
1936 on some platforms. */
1937 return ferror (f) || fclose (f) != 0;
1943 if ac_fn_c_try_run "$LINENO"; then :
1944 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1949 conftest.$ac_objext conftest.beam conftest.$ac_ext
1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 as_fn_set_status $ac_retval
1956 } # ac_fn_c_compute_int
1957 cat >config.log <<_ACEOF
1958 This file contains any messages produced by compilers while
1959 running configure, to aid debugging if configure makes a mistake.
1961 It was created by GNU C Library $as_me (see version.h), which was
1962 generated by GNU Autoconf 2.69. Invocation command line was
1974 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1975 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1976 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1977 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1978 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1981 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1983 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1984 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1985 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1986 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1987 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1988 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1989 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 test -z "$as_dir" && as_dir=.
1998 $as_echo "PATH: $as_dir"
2014 # Keep a trace of the command line.
2015 # Strip out --no-create and --no-recursion so they do not pile up.
2016 # Strip out --silent because we don't want to record it for future runs.
2017 # Also quote any args containing shell meta-characters.
2018 # Make two passes to allow for proper duplicate-argument suppression.
2022 ac_must_keep_next=false
2028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2030 | -silent | --silent | --silen | --sile | --sil)
2033 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2036 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2038 as_fn_append ac_configure_args1 " '$ac_arg'"
2039 if test $ac_must_keep_next = true; then
2040 ac_must_keep_next=false # Got value, back to normal.
2043 *=* | --config-cache | -C | -disable-* | --disable-* \
2044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2046 | -with-* | --with-* | -without-* | --without-* | --x)
2047 case "$ac_configure_args0 " in
2048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2051 -* ) ac_must_keep_next=true ;;
2054 as_fn_append ac_configure_args " '$ac_arg'"
2059 { ac_configure_args0=; unset ac_configure_args0;}
2060 { ac_configure_args1=; unset ac_configure_args1;}
2062 # When interrupted or exit'd, cleanup temporary files, and complete
2063 # config.log. We remove comments because anyway the quotes in there
2064 # would cause problems or look ugly.
2065 # WARNING: Use '\'' to represent an apostrophe within the trap.
2066 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2067 trap 'exit_status=$?
2068 # Save into config.log some information that might help in debugging.
2072 $as_echo "## ---------------- ##
2073 ## Cache variables. ##
2074 ## ---------------- ##"
2076 # The following way of writing the cache mishandles newlines in values,
2078 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2079 eval ac_val=\$$ac_var
2083 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2084 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2087 _ | IFS | as_nl) ;; #(
2088 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2089 *) { eval $ac_var=; unset $ac_var;} ;;
2094 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2095 *${as_nl}ac_space=\ *)
2097 "s/'\''/'\''\\\\'\'''\''/g;
2098 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2108 $as_echo "## ----------------- ##
2109 ## Output variables. ##
2110 ## ----------------- ##"
2112 for ac_var in $ac_subst_vars
2114 eval ac_val=\$$ac_var
2116 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2118 $as_echo "$ac_var='\''$ac_val'\''"
2122 if test -n "$ac_subst_files"; then
2123 $as_echo "## ------------------- ##
2124 ## File substitutions. ##
2125 ## ------------------- ##"
2127 for ac_var in $ac_subst_files
2129 eval ac_val=\$$ac_var
2131 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 $as_echo "$ac_var='\''$ac_val'\''"
2138 if test -s confdefs.h; then
2139 $as_echo "## ----------- ##
2146 test "$ac_signal" != 0 &&
2147 $as_echo "$as_me: caught signal $ac_signal"
2148 $as_echo "$as_me: exit $exit_status"
2150 rm -f core *.core core.conftest.* &&
2151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2154 for ac_signal in 1 2 13 15; do
2155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2160 rm -f -r conftest* confdefs.h
2162 $as_echo "/* confdefs.h */" > confdefs.h
2164 # Predefined preprocessor variables.
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_NAME "$PACKAGE_NAME"
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_STRING "$PACKAGE_STRING"
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_URL "$PACKAGE_URL"
2191 # Let the site file select an alternate cache file if it wants to.
2192 # Prefer an explicitly selected file to automatically selected ones.
2195 if test -n "$CONFIG_SITE"; then
2196 # We do not want a PATH search for config.site.
2197 case $CONFIG_SITE in #((
2198 -*) ac_site_file1=./$CONFIG_SITE;;
2199 */*) ac_site_file1=$CONFIG_SITE;;
2200 *) ac_site_file1=./$CONFIG_SITE;;
2202 elif test "x$prefix" != xNONE; then
2203 ac_site_file1=$prefix/share/config.site
2204 ac_site_file2=$prefix/etc/config.site
2206 ac_site_file1=$ac_default_prefix/share/config.site
2207 ac_site_file2=$ac_default_prefix/etc/config.site
2209 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2211 test "x$ac_site_file" = xNONE && continue
2212 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2214 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2215 sed 's/^/| /' "$ac_site_file" >&5
2217 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 as_fn_error $? "failed to load site script $ac_site_file
2220 See \`config.log' for more details" "$LINENO" 5; }
2224 if test -r "$cache_file"; then
2225 # Some versions of bash will fail to source /dev/null (special files
2226 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2227 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2229 $as_echo "$as_me: loading cache $cache_file" >&6;}
2231 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2232 *) . "./$cache_file";;
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2237 $as_echo "$as_me: creating cache $cache_file" >&6;}
2241 # Check that the precious variables saved in the cache have kept the same
2243 ac_cache_corrupted=false
2244 for ac_var in $ac_precious_vars; do
2245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2246 eval ac_new_set=\$ac_env_${ac_var}_set
2247 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2248 eval ac_new_val=\$ac_env_${ac_var}_value
2249 case $ac_old_set,$ac_new_set in
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2253 ac_cache_corrupted=: ;;
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2256 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2257 ac_cache_corrupted=: ;;
2260 if test "x$ac_old_val" != "x$ac_new_val"; then
2261 # differences in whitespace do not lead to failure.
2262 ac_old_val_w=`echo x $ac_old_val`
2263 ac_new_val_w=`echo x $ac_new_val`
2264 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2266 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2267 ac_cache_corrupted=:
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2270 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2271 eval $ac_var=\$ac_old_val
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2274 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2276 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2279 # Pass precious variables to config.status.
2280 if test "$ac_new_set" = set; then
2282 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2283 *) ac_arg=$ac_var=$ac_new_val ;;
2285 case " $ac_configure_args " in
2286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2287 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2291 if $ac_cache_corrupted; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2295 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2296 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2298 ## -------------------- ##
2299 ## Main body of script. ##
2300 ## -------------------- ##
2303 ac_cpp='$CPP $CPPFLAGS'
2304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2310 ac_config_headers="$ac_config_headers config.h"
2313 for ac_dir in scripts "$srcdir"/scripts; do
2314 if test -f "$ac_dir/install-sh"; then
2316 ac_install_sh="$ac_aux_dir/install-sh -c"
2318 elif test -f "$ac_dir/install.sh"; then
2320 ac_install_sh="$ac_aux_dir/install.sh -c"
2322 elif test -f "$ac_dir/shtool"; then
2324 ac_install_sh="$ac_aux_dir/shtool install -c"
2328 if test -z "$ac_aux_dir"; then
2329 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2332 # These three variables are undocumented and unsupported,
2333 # and are intended to be withdrawn in a future Autoconf release.
2334 # They can cause serious problems if a builder's source tree is in a directory
2335 # whose full name contains unusual characters.
2336 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2337 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2338 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2344 # Check whether --with-pkgversion was given.
2345 if test "${with_pkgversion+set}" = set; then :
2346 withval=$with_pkgversion; case "$withval" in
2347 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2349 *) PKGVERSION="($withval) " ;;
2352 PKGVERSION="(GNU libc) "
2356 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2362 # Check whether --with-bugurl was given.
2363 if test "${with_bugurl+set}" = set; then :
2364 withval=$with_bugurl; case "$withval" in
2365 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2368 *) BUGURL="$withval"
2372 BUGURL="http://www.gnu.org/software/libc/bugs.html"
2382 REPORT_BUGS_TO="<$BUGURL>"
2383 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2390 cat >>confdefs.h <<_ACEOF
2391 #define PKGVERSION "$PKGVERSION"
2395 cat >>confdefs.h <<_ACEOF
2396 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2400 # Glibc should not depend on any header files
2403 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2404 # here to work around the Autoconf issue discussed in
2405 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2408 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2409 # issue discussed in
2410 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2418 # Make sure we can run config.sub.
2419 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2420 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2423 $as_echo_n "checking build system type... " >&6; }
2424 if ${ac_cv_build+:} false; then :
2425 $as_echo_n "(cached) " >&6
2427 ac_build_alias=$build_alias
2428 test "x$ac_build_alias" = x &&
2429 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2430 test "x$ac_build_alias" = x &&
2431 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2432 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2433 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2437 $as_echo "$ac_cv_build" >&6; }
2438 case $ac_cv_build in
2440 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2443 ac_save_IFS=$IFS; IFS='-'
2449 # Remember, the first character of IFS is used to create $*,
2450 # except with old shells:
2453 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2457 $as_echo_n "checking host system type... " >&6; }
2458 if ${ac_cv_host+:} false; then :
2459 $as_echo_n "(cached) " >&6
2461 if test "x$host_alias" = x; then
2462 ac_cv_host=$ac_cv_build
2464 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2465 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2470 $as_echo "$ac_cv_host" >&6; }
2473 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2476 ac_save_IFS=$IFS; IFS='-'
2482 # Remember, the first character of IFS is used to create $*,
2483 # except with old shells:
2486 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2491 ac_cpp='$CPP $CPPFLAGS'
2492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2495 if test -n "$ac_tool_prefix"; then
2496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2497 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2499 $as_echo_n "checking for $ac_word... " >&6; }
2500 if ${ac_cv_prog_CC+:} false; then :
2501 $as_echo_n "(cached) " >&6
2503 if test -n "$CC"; then
2504 ac_cv_prog_CC="$CC" # Let the user override the test.
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2510 test -z "$as_dir" && as_dir=.
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2513 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 if test -n "$CC"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2526 $as_echo "$CC" >&6; }
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2529 $as_echo "no" >&6; }
2534 if test -z "$ac_cv_prog_CC"; then
2536 # Extract the first word of "gcc", so it can be a program name with args.
2537 set dummy gcc; ac_word=$2
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2539 $as_echo_n "checking for $ac_word... " >&6; }
2540 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2541 $as_echo_n "(cached) " >&6
2543 if test -n "$ac_ct_CC"; then
2544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550 test -z "$as_dir" && as_dir=.
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553 ac_cv_prog_ac_ct_CC="gcc"
2554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2564 if test -n "$ac_ct_CC"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2566 $as_echo "$ac_ct_CC" >&6; }
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2569 $as_echo "no" >&6; }
2572 if test "x$ac_ct_CC" = x; then
2575 case $cross_compiling:$ac_tool_warned in
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2579 ac_tool_warned=yes ;;
2587 if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}cc; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_CC+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_CC="${ac_tool_prefix}cc"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$CC"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2619 $as_echo "$CC" >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2628 if test -z "$CC"; then
2629 # Extract the first word of "cc", so it can be a program name with args.
2630 set dummy cc; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_CC+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 if test -n "$CC"; then
2637 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2648 ac_prog_rejected=yes
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 if test $ac_prog_rejected = yes; then
2660 # We found a bogon in the path, so make sure we never use it.
2661 set dummy $ac_cv_prog_CC
2663 if test $# != 0; then
2664 # We chose a different compiler from the bogus one.
2665 # However, it has the same basename, so the bogon will be chosen
2666 # first if we set CC to just the basename; use the full file name.
2668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2674 if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2684 if test -z "$CC"; then
2685 if test -n "$ac_tool_prefix"; then
2686 for ac_prog in cl.exe
2688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2691 $as_echo_n "checking for $ac_word... " >&6; }
2692 if ${ac_cv_prog_CC+:} false; then :
2693 $as_echo_n "(cached) " >&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702 test -z "$as_dir" && as_dir=.
2703 for ac_exec_ext in '' $ac_executable_extensions; do
2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2725 test -n "$CC" && break
2728 if test -z "$CC"; then
2730 for ac_prog in cl.exe
2732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2737 $as_echo_n "(cached) " >&6
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_CC="$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762 $as_echo "$ac_ct_CC" >&6; }
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2769 test -n "$ac_ct_CC" && break
2772 if test "x$ac_ct_CC" = x; then
2775 case $cross_compiling:$ac_tool_warned in
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2779 ac_tool_warned=yes ;;
2788 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790 as_fn_error $? "no acceptable C compiler found in \$PATH
2791 See \`config.log' for more details" "$LINENO" 5; }
2793 # Provide some information about the compiler.
2794 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2797 for ac_option in --version -v -V -qversion; do
2798 { { ac_try="$ac_compiler $ac_option >&5"
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2804 $as_echo "$ac_try_echo"; } >&5
2805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2807 if test -s conftest.err; then
2809 ... rest of stderr output deleted ...
2810 10q' conftest.err >conftest.er1
2811 cat conftest.er1 >&5
2813 rm -f conftest.er1 conftest.err
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; }
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2820 $as_echo_n "checking for suffix of object files... " >&6; }
2821 if ${ac_cv_objext+:} false; then :
2822 $as_echo_n "(cached) " >&6
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2835 rm -f conftest.o conftest.obj
2836 if { { ac_try="$ac_compile"
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842 $as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_compile") 2>&5
2845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2846 test $ac_status = 0; }; then :
2847 for ac_file in conftest.o conftest.obj conftest.*; do
2848 test -f "$ac_file" || continue;
2850 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2851 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2856 $as_echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details" "$LINENO" 5; }
2864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2867 $as_echo "$ac_cv_objext" >&6; }
2868 OBJEXT=$ac_cv_objext
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2872 if ${ac_cv_c_compiler_gnu+:} false; then :
2873 $as_echo_n "(cached) " >&6
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2889 if ac_fn_c_try_compile "$LINENO"; then :
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2900 if test $ac_compiler_gnu = yes; then
2905 ac_test_CFLAGS=${CFLAGS+set}
2906 ac_save_CFLAGS=$CFLAGS
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2909 if ${ac_cv_prog_cc_g+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 ac_save_c_werror_flag=$ac_c_werror_flag
2913 ac_c_werror_flag=yes
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917 /* end confdefs.h. */
2927 if ac_fn_c_try_compile "$LINENO"; then :
2931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2942 if ac_fn_c_try_compile "$LINENO"; then :
2945 ac_c_werror_flag=$ac_save_c_werror_flag
2947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2948 /* end confdefs.h. */
2958 if ac_fn_c_try_compile "$LINENO"; then :
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 ac_c_werror_flag=$ac_save_c_werror_flag
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2969 $as_echo "$ac_cv_prog_cc_g" >&6; }
2970 if test "$ac_test_CFLAGS" = set; then
2971 CFLAGS=$ac_save_CFLAGS
2972 elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2979 if test "$GCC" = yes; then
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 if test $host != $build; then
2993 for ac_prog in gcc cc
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_BUILD_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$BUILD_CC"; then
3003 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_BUILD_CC="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 BUILD_CC=$ac_cv_prog_BUILD_CC
3023 if test -n "$BUILD_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3025 $as_echo "$BUILD_CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$BUILD_CC" && break
3037 # On Suns, sometimes $CPP names a directory.
3038 if test -n "$CPP" && test -d "$CPP"; then
3041 if test -z "$CPP"; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_READELF+:} false; then :
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$READELF"; then
3054 ac_cv_prog_READELF="$READELF" # Let the user override the test.
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3073 READELF=$ac_cv_prog_READELF
3074 if test -n "$READELF"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3076 $as_echo "$READELF" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 if test -z "$ac_cv_prog_READELF"; then
3085 ac_ct_READELF=$READELF
3086 # Extract the first word of "readelf", so it can be a program name with args.
3087 set dummy readelf; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$ac_ct_READELF"; then
3094 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_READELF="readelf"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3114 if test -n "$ac_ct_READELF"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3116 $as_echo "$ac_ct_READELF" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3122 if test "x$ac_ct_READELF" = x; then
3125 case $cross_compiling:$ac_tool_warned in
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3131 READELF=$ac_ct_READELF
3134 READELF="$ac_cv_prog_READELF"
3138 # We need the C++ compiler only for testing.
3140 ac_cpp='$CXXCPP $CPPFLAGS'
3141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3144 if test -z "$CXX"; then
3145 if test -n "$CCC"; then
3148 if test -n "$ac_tool_prefix"; then
3149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_prog_CXX+:} false; then :
3156 $as_echo_n "(cached) " >&6
3158 if test -n "$CXX"; then
3159 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 if test -n "$CXX"; then
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3181 $as_echo "$CXX" >&6; }
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3184 $as_echo "no" >&6; }
3188 test -n "$CXX" && break
3191 if test -z "$CXX"; then
3193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 $as_echo_n "checking for $ac_word... " >&6; }
3199 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3200 $as_echo_n "(cached) " >&6
3202 if test -n "$ac_ct_CXX"; then
3203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_prog_ac_ct_CXX="$ac_prog"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3223 if test -n "$ac_ct_CXX"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3225 $as_echo "$ac_ct_CXX" >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3232 test -n "$ac_ct_CXX" && break
3235 if test "x$ac_ct_CXX" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3242 ac_tool_warned=yes ;;
3250 # Provide some information about the compiler.
3251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3254 for ac_option in --version -v -V -qversion; do
3255 { { ac_try="$ac_compiler $ac_option >&5"
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3264 if test -s conftest.err; then
3266 ... rest of stderr output deleted ...
3267 10q' conftest.err >conftest.er1
3268 cat conftest.er1 >&5
3270 rm -f conftest.er1 conftest.err
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3276 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3277 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3278 $as_echo_n "(cached) " >&6
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3294 if ac_fn_cxx_try_compile "$LINENO"; then :
3299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3300 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3304 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3305 if test $ac_compiler_gnu = yes; then
3310 ac_test_CXXFLAGS=${CXXFLAGS+set}
3311 ac_save_CXXFLAGS=$CXXFLAGS
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3313 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3314 if ${ac_cv_prog_cxx_g+:} false; then :
3315 $as_echo_n "(cached) " >&6
3317 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3318 ac_cxx_werror_flag=yes
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3332 if ac_fn_cxx_try_compile "$LINENO"; then :
3333 ac_cv_prog_cxx_g=yes
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3347 if ac_fn_cxx_try_compile "$LINENO"; then :
3350 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3363 if ac_fn_cxx_try_compile "$LINENO"; then :
3364 ac_cv_prog_cxx_g=yes
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3374 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3375 if test "$ac_test_CXXFLAGS" = set; then
3376 CXXFLAGS=$ac_save_CXXFLAGS
3377 elif test $ac_cv_prog_cxx_g = yes; then
3378 if test "$GXX" = yes; then
3384 if test "$GXX" = yes; then
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3396 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3399 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3400 if ${libc_cv_cxx_link_ok+:} false; then :
3401 $as_echo_n "(cached) " >&6
3404 ac_cpp='$CXXCPP $CPPFLAGS'
3405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3420 if ac_fn_cxx_try_link "$LINENO"; then :
3421 libc_cv_cxx_link_ok=yes
3423 libc_cv_cxx_link_ok=no
3425 rm -f core conftest.err conftest.$ac_objext \
3426 conftest$ac_exeext conftest.$ac_ext
3428 ac_cpp='$CPP $CPPFLAGS'
3429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3435 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3436 if test $libc_cv_cxx_link_ok != yes; then :
3440 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3441 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3444 # This will get text that should go into config.make.
3447 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3449 # Check whether --with-gd was given.
3450 if test "${with_gd+set}" = set; then :
3451 withval=$with_gd; case "$with_gd" in
3453 *) libgd_include="-I$withval/include"
3454 libgd_ldflags="-L$withval/lib" ;;
3460 # Check whether --with-gd-include was given.
3461 if test "${with_gd_include+set}" = set; then :
3462 withval=$with_gd_include; case "$with_gd_include" in
3464 *) libgd_include="-I$withval" ;;
3470 # Check whether --with-gd-lib was given.
3471 if test "${with_gd_lib+set}" = set; then :
3472 withval=$with_gd_lib; case "$with_gd_lib" in
3474 *) libgd_ldflags="-L$withval" ;;
3480 if test -n "$libgd_include"; then
3481 config_vars="$config_vars
3482 CFLAGS-memusagestat.c = $libgd_include"
3484 if test -n "$libgd_ldflags"; then
3485 config_vars="$config_vars
3486 libgd-LDFLAGS = $libgd_ldflags"
3490 # Check whether --with-fp was given.
3491 if test "${with_fp+set}" = set; then :
3492 withval=$with_fp; with_fp=$withval
3499 # Check whether --with-binutils was given.
3500 if test "${with_binutils+set}" = set; then :
3501 withval=$with_binutils; path_binutils=$withval
3507 # Check whether --with-selinux was given.
3508 if test "${with_selinux+set}" = set; then :
3509 withval=$with_selinux; with_selinux=$withval
3516 # Check whether --with-headers was given.
3517 if test "${with_headers+set}" = set; then :
3518 withval=$with_headers; sysheaders=$withval
3527 # Check whether --with-default-link was given.
3528 if test "${with_default_link+set}" = set; then :
3529 withval=$with_default_link; use_default_link=$withval
3531 use_default_link=default
3535 # Check whether --enable-sanity-checks was given.
3536 if test "${enable_sanity_checks+set}" = set; then :
3537 enableval=$enable_sanity_checks; enable_sanity=$enableval
3543 # Check whether --enable-shared was given.
3544 if test "${enable_shared+set}" = set; then :
3545 enableval=$enable_shared; shared=$enableval
3550 # Check whether --enable-profile was given.
3551 if test "${enable_profile+set}" = set; then :
3552 enableval=$enable_profile; profile=$enableval
3557 # Check whether --enable-timezone-tools was given.
3558 if test "${enable_timezone_tools+set}" = set; then :
3559 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
3561 enable_timezone_tools=yes
3566 # Check whether --enable-hardcoded-path-in-tests was given.
3567 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3568 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3570 hardcoded_path_in_tests=no
3575 # Check whether --enable-stackguard-randomization was given.
3576 if test "${enable_stackguard_randomization+set}" = set; then :
3577 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3579 enable_stackguard_randomize=no
3582 if test "$enable_stackguard_randomize" = yes; then
3583 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3587 # Check whether --enable-lock-elision was given.
3588 if test "${enable_lock_elision+set}" = set; then :
3589 enableval=$enable_lock_elision; enable_lock_elision=$enableval
3591 enable_lock_elision=no
3595 if test "$enable_lock_elision" = yes ; then
3596 $as_echo "#define ENABLE_LOCK_ELISION 1" >>confdefs.h
3600 # Check whether --enable-add-ons was given.
3601 if test "${enable_add_ons+set}" = set; then :
3602 enableval=$enable_add_ons;
3608 # Check whether --enable-hidden-plt was given.
3609 if test "${enable_hidden_plt+set}" = set; then :
3610 enableval=$enable_hidden_plt; hidden=$enableval
3615 if test "x$hidden" = xno; then
3616 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3620 # Check whether --enable-bind-now was given.
3621 if test "${enable_bind_now+set}" = set; then :
3622 enableval=$enable_bind_now; bindnow=$enableval
3629 # Check whether --enable-static-nss was given.
3630 if test "${enable_static_nss+set}" = set; then :
3631 enableval=$enable_static_nss; static_nss=$enableval
3636 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3638 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3642 # Check whether --enable-force-install was given.
3643 if test "${enable_force_install+set}" = set; then :
3644 enableval=$enable_force_install; force_install=$enableval
3651 # Check whether --enable-maintainer-mode was given.
3652 if test "${enable_maintainer_mode+set}" = set; then :
3653 enableval=$enable_maintainer_mode; maintainer=$enableval
3659 # Check whether --enable-kernel was given.
3660 if test "${enable_kernel+set}" = set; then :
3661 enableval=$enable_kernel; minimum_kernel=$enableval
3664 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3665 # Better nothing than this.
3668 if test "$minimum_kernel" = current; then
3669 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3673 # Check whether --enable-all-warnings was given.
3674 if test "${enable_all_warnings+set}" = set; then :
3675 enableval=$enable_all_warnings; all_warnings=$enableval
3680 # Check whether --enable-werror was given.
3681 if test "${enable_werror+set}" = set; then :
3682 enableval=$enable_werror; enable_werror=$enableval
3689 # Check whether --enable-multi-arch was given.
3690 if test "${enable_multi_arch+set}" = set; then :
3691 enableval=$enable_multi_arch; multi_arch=$enableval
3697 # Check whether --enable-nss-crypt was given.
3698 if test "${enable_nss_crypt+set}" = set; then :
3699 enableval=$enable_nss_crypt; nss_crypt=$enableval
3704 if test x$nss_crypt = xyes; then
3705 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3706 if test $? -ne 0; then
3707 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3709 old_CFLAGS="$CFLAGS"
3710 CFLAGS="$CFLAGS $nss_includes"
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 #include <nsslowhash.h>
3717 void f (void) { NSSLOW_Init (); }
3726 if ac_fn_c_try_compile "$LINENO"; then :
3727 libc_cv_nss_crypt=yes
3730 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 LIBS="$LIBS -lfreebl3"
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3739 #include <nsslowhash.h>
3748 if ac_fn_c_try_link "$LINENO"; then :
3749 libc_cv_nss_crypt=yes
3752 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3754 rm -f core conftest.err conftest.$ac_objext \
3755 conftest$ac_exeext conftest.$ac_ext
3756 CFLAGS="$old_CFLAGS"
3759 libc_cv_nss_crypt=no
3764 # Check whether --enable-obsolete-rpc was given.
3765 if test "${enable_obsolete_rpc+set}" = set; then :
3766 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3768 link_obsolete_rpc=no
3773 if test "$link_obsolete_rpc" = yes; then
3774 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3778 # Check whether --enable-systemtap was given.
3779 if test "${enable_systemtap+set}" = set; then :
3780 enableval=$enable_systemtap; systemtap=$enableval
3785 if test "x$systemtap" != xno; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3787 $as_echo_n "checking for systemtap static probe support... " >&6; }
3788 if ${libc_cv_sdt+:} false; then :
3789 $as_echo_n "(cached) " >&6
3791 old_CFLAGS="$CFLAGS"
3792 CFLAGS="-std=gnu99 $CFLAGS"
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <sys/sdt.h>
3796 void foo (int i, void *p)
3798 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3799 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3802 if ac_fn_c_try_compile "$LINENO"; then :
3807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3808 CFLAGS="$old_CFLAGS"
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3811 $as_echo "$libc_cv_sdt" >&6; }
3812 if test $libc_cv_sdt = yes; then
3813 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3815 elif test "x$systemtap" != xauto; then
3816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3818 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3819 See \`config.log' for more details" "$LINENO" 5; }
3823 # Check whether --enable-build-nscd was given.
3824 if test "${enable_build_nscd+set}" = set; then :
3825 enableval=$enable_build_nscd; build_nscd=$enableval
3832 # Note the use of $use_nscd is near the bottom of the file.
3833 # Check whether --enable-nscd was given.
3834 if test "${enable_nscd+set}" = set; then :
3835 enableval=$enable_nscd; use_nscd=$enableval
3841 # Check whether --enable-pt_chown was given.
3842 if test "${enable_pt_chown+set}" = set; then :
3843 enableval=$enable_pt_chown; build_pt_chown=$enableval
3849 if test "$build_pt_chown" = yes; then
3850 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3854 # The abi-tags file uses a fairly simplistic model for name recognition that
3855 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3856 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3857 # This doesn't get used much beyond that, so it's fairly safe.
3862 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3866 # Check whether --enable-mathvec was given.
3867 if test "${enable_mathvec+set}" = set; then :
3868 enableval=$enable_mathvec; build_mathvec=$enableval
3870 build_mathvec=notset
3874 # We keep the original values in `$config_*' and never modify them, so we
3875 # can write them unchanged into config.make. Everything else uses
3876 # $machine, $vendor, and $os, and changes them whenever convenient.
3877 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3879 # Don't allow vendor == "unknown"
3880 test "$config_vendor" = unknown && config_vendor=
3881 config_os="`echo $config_os | sed 's/^unknown-//'`"
3883 # Some configurations imply other options.
3886 # The configure fragment of an add-on port can modify these to supplement
3887 # or override the table in the case statement below. No fragment should
3888 # ever change the config_* variables, however.
3889 machine=$config_machine
3890 vendor=$config_vendor
3896 # Check whether --with-cpu was given.
3897 if test "${with_cpu+set}" = set; then :
3898 withval=$with_cpu; case "$withval" in
3899 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3901 *) submachine="$withval" ;;
3907 # An preconfigure script can set this when it wants to disable the sanity
3911 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3914 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3915 for frag in $frags; do
3916 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3917 echo $ECHO_N "$name $ECHO_C" >&6
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3927 case "$enable_add_ons" in
3930 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3931 sed 's@/[^/]*$@@' | sort | uniq`
3932 add_ons_automatic=yes
3934 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3935 add_ons_automatic=no ;;
3941 if test x"$add_ons" != x; then
3942 for f in $add_ons; do
3943 # Some sanity checks
3947 *** It seems that you're using an old \`crypt' add-on. crypt is now
3948 *** part of glibc and using the old add-on will not work with this
3949 *** release. Start again with fresh sources and without the old
3950 *** \`crypt' add-on." "$LINENO" 5
3954 *** It seems that you're using an old \`localedata' add-on. localedata
3955 *** is now part of glibc and using the old add-on will not work with
3956 *** this release. Start again with fresh sources and without the old
3957 *** \`localedata' add-on." "$LINENO" 5
3962 # Now source each add-on's configure fragment.
3963 # The fragments can use $srcdir/$libc_add_on to find themselves,
3964 # and test $add_ons_automatic to see if they were explicitly requested.
3965 # A fragment can clear (or even change) $libc_add_on to affect
3966 # whether it goes into the list to be actually used in the build.
3968 for libc_add_on in $add_ons; do
3969 # Test whether such a directory really exists.
3970 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3971 case "$libc_add_on" in
3973 libc_add_on_srcdir=$libc_add_on
3976 test -d "$srcdir/$libc_add_on" || {
3977 if test -d "$libc_add_on"; then
3978 libc_add_on="`pwd`/$libc_add_on"
3980 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3983 libc_add_on_srcdir=$srcdir/$libc_add_on
3987 libc_add_on_frag=$libc_add_on_srcdir/configure
3988 libc_add_on_canonical=
3989 libc_add_on_config_subdirs=
3990 if test -r "$libc_add_on_frag"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3992 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3993 libc_add_on_canonical=unknown
3994 libc_add_on_subdirs=
3995 . "$libc_add_on_frag"
3996 test -z "$libc_add_on" || {
3997 configured_add_ons="$configured_add_ons $libc_add_on"
3998 if test "x$libc_add_on_canonical" = xunknown; then
3999 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
4001 for d in $libc_add_on_subdirs; do
4002 case "$libc_add_on" in
4003 /*) subdir_srcdir="$libc_add_on" ;;
4004 *) subdir_srcdir="\$(..)$libc_add_on" ;;
4008 d="${libc_add_on_canonical:-$libc_add_on}"
4014 subdir_srcdir="$subdir_srcdir/$d"
4017 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
4018 add_on_subdirs="$add_on_subdirs $d"
4019 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4020 $d-srcdir = $subdir_srcdir"
4022 for d in $libc_add_on_config_subdirs; do
4024 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4026 if test ! -d "$libc_add_on_srcdir/$d"; then
4027 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
4029 case "$libc_add_on" in
4030 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4032 subdirs="$subdirs $libc_add_on/$d"
4036 if test -n "$libc_add_on"; then
4037 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
4040 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4041 for frag in $frags; do
4042 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4043 echo $ECHO_N "$name $ECHO_C" >&6
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4049 use_add_ons="$use_add_ons $libc_add_on"
4050 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4051 test -z "$libc_add_on_canonical" ||
4052 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4055 # Use echo to strip excess whitespace.
4056 add_ons="`echo $use_add_ons`"
4063 ### I put this here to prevent those annoying emails from people who cannot
4064 ### read and try to compile glibc on unsupported platforms. --drepper
4066 ### By using the undocumented --enable-hacker-mode option for configure
4067 ### one can skip this test to make the configuration not fail for unsupported
4070 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4071 case "$machine-$host_os" in
4075 echo "*** The GNU C library is currently not available for this platform."
4076 echo "*** So far nobody cared to port it and if there is no volunteer it"
4077 echo "*** might never happen. So, if you have interest to see glibc on"
4078 echo "*** this platform visit"
4079 echo "*** http://www.gnu.org/software/libc/porting.html"
4080 echo "*** and join the group of porters"
4086 # Set base_machine if not set by a preconfigure fragment.
4087 test -n "$base_machine" || base_machine=$machine
4090 # For the multi-arch option we need support in the assembler & linker.
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
4092 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
4093 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
4094 $as_echo_n "(cached) " >&6
4096 cat > conftest.S <<EOF
4097 .type foo,%gnu_indirect_function
4110 libc_cv_ld_gnu_indirect_function=no
4111 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
4112 -nostartfiles -nostdlib \
4113 -o conftest conftest.S 1>&5 2>&5; then
4114 # Do a link to see if the backend supports IFUNC relocs.
4115 $READELF -r conftest 1>&5
4116 LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || {
4117 libc_cv_ld_gnu_indirect_function=yes
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
4123 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4126 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4127 if ${libc_cv_dot_text+:} false; then :
4128 $as_echo_n "(cached) " >&6
4130 cat > conftest.s <<EOF
4134 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4140 libc_cv_dot_text=.text
4145 if test -z "$libc_cv_dot_text"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4150 $as_echo "yes" >&6; }
4153 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
4154 if test x"$multi_arch" = xyes; then
4155 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4161 if test x"$multi_arch" != xno; then
4162 multi_arch_d=/multiarch
4165 # Compute the list of sysdep directories for this configuration.
4166 # This can take a while to compute.
4167 sysdep_dir=$srcdir/sysdeps
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4169 $as_echo_n "checking sysdep dirs... " >&6; }
4170 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4171 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4173 test "x$base_os" != x || case "$os" in
4175 base_os=mach/hurd ;;
4177 base_os=unix/sysv ;;
4180 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4183 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4187 o=`echo $tail | sed 's/[0-9]*$//'`
4188 if test $o != $tail; then
4191 # For linux-gnu, try linux-gnu, then linux.
4192 o=`echo $tail | sed 's/-.*$//'`
4193 if test $o != $tail; then
4197 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4200 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4206 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4208 tail=$machine${submachine:+/$submachine}
4209 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4211 # Prepend the machine's FPU directory unless --without-fp.
4212 if test "$with_fp" = yes; then
4217 # For each machine term, try it with and then without /multiarch.
4218 for try_fpu in $maybe_fpu ''; do
4219 for try_multi in $multi_arch_d ''; do
4220 mach="$mach /$1$try_fpu$try_multi"
4227 # Find what sysdep directories exist.
4230 for b in $base ''; do
4231 for m0 in $mach ''; do
4232 for v in /$vendor ''; do
4233 test "$v" = / && continue
4234 for o in /$ostry ''; do
4235 test "$o" = / && continue
4236 for m in $mach ''; do
4237 for d in $add_ons_pfx ''; do
4238 for a in $add_ons_sfx ''; do
4239 try_suffix="$m0$b$v$o$m"
4240 if test -n "$try_suffix"; then
4241 try_srcdir="${srcdir}/"
4245 try="${d}sysdeps$try_suffix$a"
4246 test -n "$enable_debug_configure" &&
4247 echo "$0 DEBUG: try $try" >&2
4248 if test -d "$try_srcdir$try"; then
4249 sysnames="$sysnames $try"
4250 { test -n "$o" || test -n "$b"; } && os_used=t
4251 { test -n "$m" || test -n "$m0"; } && machine_used=t
4253 x*/$submachine) submachine_used=t ;;
4255 if test -n "$d"; then
4256 case "$sysnames_add_ons" in
4258 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4271 # If the assembler supports gnu_indirect_function symbol type and the
4272 # architecture supports multi-arch, we enable multi-arch by default.
4273 case $sysnames_add_ons$sysnames in
4277 test x"$multi_arch" = xdefault && multi_arch=no
4280 if test x"$multi_arch" != xno; then
4281 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4286 if test -z "$os_used" && test "$os" != none; then
4287 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4289 if test -z "$machine_used" && test "$machine" != none; then
4290 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4292 if test -z "$submachine_used" && test -n "$submachine"; then
4293 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4297 # We have now validated the configuration.
4299 # Expand the list of system names into a full list of directories
4300 # from each element's parent name and Implies file (if present).
4303 while test $# -gt 0; do
4307 case " $names " in *" $name "*)
4308 # Already in the list.
4312 # Report each name as we discover it, so there is no long pause in output.
4313 echo $ECHO_N "$name $ECHO_C" >&6
4315 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4319 *) xsrcdir=$srcdir/ ;;
4321 test -n "$enable_debug_configure" &&
4322 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4324 for implies_file in Implies Implies-before Implies-after; do
4325 implies_type=`echo $implies_file | sed s/-/_/`
4326 eval ${implies_type}=
4327 if test -f $xsrcdir$name/$implies_file; then
4328 # Collect more names from the `Implies' file (removing comments).
4329 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4330 for x in $implied_candidate; do
4332 if test -d $xsrcdir$name_base/$x; then
4333 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
4336 for d in $add_ons_pfx ''; do
4337 try="${d}sysdeps/$x"
4340 *) try_srcdir=$srcdir/ ;;
4342 test -n "$enable_debug_configure" &&
4343 echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
4344 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4346 eval "${implies_type}=\"\$${implies_type} \$try\""
4348 case "$sysnames_add_ons" in
4350 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4354 if test $found = no; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4356 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
4362 # Add NAME to the list of names.
4363 names="$names $name"
4365 # Find the parent of NAME, using the empty string if it has none.
4366 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4368 test -n "$enable_debug_configure" &&
4369 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
4370 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
4372 # Add the names implied by NAME, and NAME's parent (if it has one), to
4373 # the list of names to be processed (the argument list). We prepend the
4374 # implied names to the list and append the parent. We want implied
4375 # directories to come before further directories inferred from the
4376 # configuration components; this ensures that for sysv4, unix/common
4377 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4379 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
4380 test -n "$sysnames" && set $sysnames
4383 # Add the default directories.
4384 default_sysnames="sysdeps/generic"
4385 sysnames="$names $default_sysnames"
4387 # The other names were emitted during the scan.
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4389 $as_echo "$default_sysnames" >&6; }
4391 # Collect the list of add-ons that supply partial sysdeps trees.
4393 for add_on in $add_ons; do
4396 *) xsrcdir="$srcdir/" ;;
4399 test -d "$xsrcdir$add_on/sysdeps" || {
4400 case "$configured_add_ons " in
4403 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4409 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4410 case "$sysnames_add_ons" in
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4414 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4419 for d in $sysnames; do
4421 $add_on/sysdeps/*) ;;
4424 (cd "$xsrcdir$d" && for f in *[!~]; do
4427 for ff in $f/*.h; do
4428 test -d "$ff" || { test -e "$ff" && exit 88; }
4432 test -d "$f" || { test -e "$f" && exit 88; }
4436 if test $? -eq 88; then
4441 if test $found = no; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4443 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4451 # Find a good install program. We prefer a C program (faster),
4452 # so one script is as good as another. But avoid the broken or
4453 # incompatible versions:
4454 # SysV /etc/install, /usr/sbin/install
4455 # SunOS /usr/etc/install
4456 # IRIX /sbin/install
4458 # AmigaOS /C/install, which installs bootblocks on floppy discs
4459 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4460 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4461 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4462 # OS/2's system install, which has a completely different semantic
4463 # ./install, which can be erroneously created by make from ./install.sh.
4464 # Reject install programs that cannot install multiple files.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4466 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4467 if test -z "$INSTALL"; then
4468 if ${ac_cv_path_install+:} false; then :
4469 $as_echo_n "(cached) " >&6
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 # Account for people who put trailing slashes in PATH elements.
4477 case $as_dir/ in #((
4478 ./ | .// | /[cC]/* | \
4479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4480 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4483 # OSF1 and SCO ODT 3.0 have their own names for install.
4484 # Don't use installbsd from OSF since it installs stuff as root
4486 for ac_prog in ginstall scoinst install; do
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4489 if test $ac_prog = install &&
4490 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4491 # AIX install. It has an incompatible calling convention.
4493 elif test $ac_prog = install &&
4494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4495 # program-specific install script used by HP pwplus--don't use.
4498 rm -rf conftest.one conftest.two conftest.dir
4499 echo one > conftest.one
4500 echo two > conftest.two
4502 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4503 test -s conftest.one && test -s conftest.two &&
4504 test -s conftest.dir/conftest.one &&
4505 test -s conftest.dir/conftest.two
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4520 rm -rf conftest.one conftest.two conftest.dir
4523 if test "${ac_cv_path_install+set}" = set; then
4524 INSTALL=$ac_cv_path_install
4526 # As a last resort, use the slow shell script. Don't cache a
4527 # value for INSTALL within a source directory, because that will
4528 # break other packages using the cache if that directory is
4529 # removed, or if the value is a relative name.
4530 INSTALL=$ac_install_sh
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4534 $as_echo "$INSTALL" >&6; }
4536 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4537 # It thinks the first close brace ends the variable substitution.
4538 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4540 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4542 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4544 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4545 # The makefiles need to use a different form to find it in $srcdir.
4546 INSTALL='\$(..)./scripts/install-sh -c'
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4549 $as_echo_n "checking whether ln -s works... " >&6; }
4551 if test "$LN_S" = "ln -s"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4556 $as_echo "no, using $LN_S" >&6; }
4560 # Was a --with-binutils option given?
4561 if test -n "$path_binutils"; then
4562 # Make absolute; ensure a single trailing slash.
4563 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4564 CC="$CC -B$path_binutils"
4566 AS=`$CC -print-prog-name=as`
4567 LD=`$CC -print-prog-name=ld`
4568 AR=`$CC -print-prog-name=ar`
4570 OBJDUMP=`$CC -print-prog-name=objdump`
4572 OBJCOPY=`$CC -print-prog-name=objcopy`
4575 # Determine whether we are using GNU binutils.
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4577 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4578 if ${libc_cv_prog_as_gnu+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 # Most GNU programs take a -v and spit out some text including
4582 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4583 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4584 libc_cv_prog_as_gnu=yes
4586 libc_cv_prog_as_gnu=no
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4591 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4593 gnu_as=$libc_cv_prog_as_gnu
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4596 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4597 if ${libc_cv_prog_ld_gnu+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 # Most GNU programs take a -v and spit out some text including
4601 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4602 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4603 libc_cv_prog_ld_gnu=yes
4605 libc_cv_prog_ld_gnu=no
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4610 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4611 gnu_ld=$libc_cv_prog_ld_gnu
4614 # Accept binutils 2.22 or newer.
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_AS+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 if test -n "$AS"; then
4625 ac_cv_prog_AS="$AS" # Let the user override the test.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_AS="$ac_prog"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 if test -n "$AS"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4647 $as_echo "$AS" >&6; }
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4654 test -n "$AS" && break
4657 if test -z "$AS"; then
4660 # Found it, now check the version.
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4662 $as_echo_n "checking version of $AS... " >&6; }
4663 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4664 case $ac_prog_version in
4665 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4666 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4667 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4668 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4672 $as_echo "$ac_prog_version" >&6; }
4674 if test $ac_verc_fail = yes; then
4675 AS=: critic_missing="$critic_missing as"
4680 # Extract the first word of "$ac_prog", so it can be a program name with args.
4681 set dummy $ac_prog; ac_word=$2
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683 $as_echo_n "checking for $ac_word... " >&6; }
4684 if ${ac_cv_prog_LD+:} false; then :
4685 $as_echo_n "(cached) " >&6
4687 if test -n "$LD"; then
4688 ac_cv_prog_LD="$LD" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_prog_LD="$ac_prog"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 if test -n "$LD"; then
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4710 $as_echo "$LD" >&6; }
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713 $as_echo "no" >&6; }
4717 test -n "$LD" && break
4720 if test -z "$LD"; then
4723 # Found it, now check the version.
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4725 $as_echo_n "checking version of $LD... " >&6; }
4726 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4727 case $ac_prog_version in
4728 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4729 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4730 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4731 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4735 $as_echo "$ac_prog_version" >&6; }
4737 if test $ac_verc_fail = yes; then
4738 LD=: critic_missing="$critic_missing ld"
4742 # These programs are version sensitive.
4744 for ac_prog in gnumake gmake make
4746 # Extract the first word of "$ac_prog", so it can be a program name with args.
4747 set dummy $ac_prog; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if ${ac_cv_prog_MAKE+:} false; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -n "$MAKE"; then
4754 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4763 ac_cv_prog_MAKE="$ac_prog"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773 MAKE=$ac_cv_prog_MAKE
4774 if test -n "$MAKE"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4776 $as_echo "$MAKE" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4783 test -n "$MAKE" && break
4786 if test -z "$MAKE"; then
4789 # Found it, now check the version.
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4791 $as_echo_n "checking version of $MAKE... " >&6; }
4792 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4793 case $ac_prog_version in
4794 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4795 3.79* | 3.[89]* | [4-9].* | [1-9][0-9]*)
4796 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4797 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4801 $as_echo "$ac_prog_version" >&6; }
4803 if test $ac_verc_fail = yes; then
4804 critic_missing="$critic_missing make"
4808 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4810 # Extract the first word of "$ac_prog", so it can be a program name with args.
4811 set dummy $ac_prog; ac_word=$2
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 $as_echo_n "checking for $ac_word... " >&6; }
4814 if ${ac_cv_prog_MSGFMT+:} false; then :
4815 $as_echo_n "(cached) " >&6
4817 if test -n "$MSGFMT"; then
4818 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_prog_MSGFMT="$ac_prog"
4828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 MSGFMT=$ac_cv_prog_MSGFMT
4838 if test -n "$MSGFMT"; then
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4840 $as_echo "$MSGFMT" >&6; }
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4847 test -n "$MSGFMT" && break
4850 if test -z "$MSGFMT"; then
4853 # Found it, now check the version.
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4855 $as_echo_n "checking version of $MSGFMT... " >&6; }
4856 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4857 case $ac_prog_version in
4858 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4859 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4860 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4861 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4865 $as_echo "$ac_prog_version" >&6; }
4867 if test $ac_verc_fail = yes; then
4868 MSGFMT=: aux_missing="$aux_missing msgfmt"
4871 for ac_prog in makeinfo
4873 # Extract the first word of "$ac_prog", so it can be a program name with args.
4874 set dummy $ac_prog; ac_word=$2
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876 $as_echo_n "checking for $ac_word... " >&6; }
4877 if ${ac_cv_prog_MAKEINFO+:} false; then :
4878 $as_echo_n "(cached) " >&6
4880 if test -n "$MAKEINFO"; then
4881 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890 ac_cv_prog_MAKEINFO="$ac_prog"
4891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 MAKEINFO=$ac_cv_prog_MAKEINFO
4901 if test -n "$MAKEINFO"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4903 $as_echo "$MAKEINFO" >&6; }
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906 $as_echo "no" >&6; }
4910 test -n "$MAKEINFO" && break
4913 if test -z "$MAKEINFO"; then
4916 # Found it, now check the version.
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4918 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4919 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4920 case $ac_prog_version in
4921 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4922 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4923 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4924 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4928 $as_echo "$ac_prog_version" >&6; }
4930 if test $ac_verc_fail = yes; then
4931 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4936 # Extract the first word of "$ac_prog", so it can be a program name with args.
4937 set dummy $ac_prog; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if ${ac_cv_prog_SED+:} false; then :
4941 $as_echo_n "(cached) " >&6
4943 if test -n "$SED"; then
4944 ac_cv_prog_SED="$SED" # Let the user override the test.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953 ac_cv_prog_SED="$ac_prog"
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 if test -n "$SED"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4966 $as_echo "$SED" >&6; }
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 test -n "$SED" && break
4976 if test -z "$SED"; then
4979 # Found it, now check the version.
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4981 $as_echo_n "checking version of $SED... " >&6; }
4982 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4983 case $ac_prog_version in
4984 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4985 3.0[2-9]*|3.[1-9]*|[4-9]*)
4986 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4987 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4991 $as_echo "$ac_prog_version" >&6; }
4993 if test $ac_verc_fail = yes; then
4994 SED=: aux_missing="$aux_missing sed"
4999 # Extract the first word of "$ac_prog", so it can be a program name with args.
5000 set dummy $ac_prog; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_prog_AWK+:} false; then :
5004 $as_echo_n "(cached) " >&6
5006 if test -n "$AWK"; then
5007 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 test -z "$as_dir" && as_dir=.
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_AWK="$ac_prog"
5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 if test -n "$AWK"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5029 $as_echo "$AWK" >&6; }
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5036 test -n "$AWK" && break
5039 if test -z "$AWK"; then
5042 # Found it, now check the version.
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
5044 $as_echo_n "checking version of $AWK... " >&6; }
5045 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5046 case $ac_prog_version in
5047 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5048 3.1.[2-9]*|3.[2-9]*|[4-9]*)
5049 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5050 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5054 $as_echo "$ac_prog_version" >&6; }
5056 if test $ac_verc_fail = yes; then
5057 critic_missing="$critic_missing gawk"
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
5062 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
5063 if ${libc_cv_compiler_ok+:} false; then :
5064 $as_echo_n "(cached) " >&6
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5074 #if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 6)
5075 #error insufficient compiler
5081 if ac_fn_c_try_compile "$LINENO"; then :
5082 libc_cv_compiler_ok=yes
5084 libc_cv_compiler_ok=no
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
5089 $as_echo "$libc_cv_compiler_ok" >&6; }
5090 if test $libc_cv_compiler_ok != yes; then :
5091 critic_missing="$critic_missing compiler"
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}nm; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_NM+:} false; then :
5100 $as_echo_n "(cached) " >&6
5102 if test -n "$NM"; then
5103 ac_cv_prog_NM="$NM" # Let the user override the test.
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112 ac_cv_prog_NM="${ac_tool_prefix}nm"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 if test -n "$NM"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5125 $as_echo "$NM" >&6; }
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5133 if test -z "$ac_cv_prog_NM"; then
5135 # Extract the first word of "nm", so it can be a program name with args.
5136 set dummy nm; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5140 $as_echo_n "(cached) " >&6
5142 if test -n "$ac_ct_NM"; then
5143 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5152 ac_cv_prog_ac_ct_NM="nm"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5163 if test -n "$ac_ct_NM"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5165 $as_echo "$ac_ct_NM" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5171 if test "x$ac_ct_NM" = x; then
5174 case $cross_compiling:$ac_tool_warned in
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5187 if test "x$maintainer" = "xyes"; then
5188 for ac_prog in autoconf
5190 # Extract the first word of "$ac_prog", so it can be a program name with args.
5191 set dummy $ac_prog; ac_word=$2
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 $as_echo_n "checking for $ac_word... " >&6; }
5194 if ${ac_cv_prog_AUTOCONF+:} false; then :
5195 $as_echo_n "(cached) " >&6
5197 if test -n "$AUTOCONF"; then
5198 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_AUTOCONF="$ac_prog"
5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 AUTOCONF=$ac_cv_prog_AUTOCONF
5218 if test -n "$AUTOCONF"; then
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5220 $as_echo "$AUTOCONF" >&6; }
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223 $as_echo "no" >&6; }
5227 test -n "$AUTOCONF" && break
5229 test -n "$AUTOCONF" || AUTOCONF="no"
5231 case "x$AUTOCONF" in
5232 xno|x|x:) AUTOCONF=no ;;
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5235 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5236 if ${libc_cv_autoconf_works+:} false; then :
5237 $as_echo_n "(cached) " >&6
5239 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5240 libc_cv_autoconf_works=yes
5242 libc_cv_autoconf_works=no
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5246 $as_echo "$libc_cv_autoconf_works" >&6; }
5247 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5250 if test "x$AUTOCONF" = xno; then
5251 aux_missing="$aux_missing autoconf"
5257 test -n "$critic_missing" && as_fn_error $? "
5258 *** These critical programs are missing or too old:$critic_missing
5259 *** Check the INSTALL file for required versions." "$LINENO" 5
5261 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5262 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5263 *** some features will be disabled.
5264 *** Check the INSTALL file for required versions." >&5
5265 $as_echo "$as_me: WARNING:
5266 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5267 *** some features will be disabled.
5268 *** Check the INSTALL file for required versions." >&2;}
5270 # if using special system headers, find out the compiler's sekrit
5271 # header directory and add that to the list. NOTE: Only does the right
5272 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5273 if test -n "$sysheaders"; then
5274 SYSINCLUDES=-nostdinc
5275 for d in include include-fixed; do
5276 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5277 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5279 SYSINCLUDES="$SYSINCLUDES \
5280 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5281 if test -n "$CXX"; then
5283 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5284 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5285 test "x$cxxheaders" != x &&
5286 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5293 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5294 # since this would lead to problems installing/building glibc.
5295 # LD_LIBRARY_PATH contains the current directory if one of the following
5297 # - one of the terminals (":" and ";") is the first or last sign
5298 # - two terminals occur directly after each other
5299 # - the path contains an element with a dot in it
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5301 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5302 case ${LD_LIBRARY_PATH} in
5303 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5304 ld_library_path_setting="contains current directory"
5307 ld_library_path_setting="ok"
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5311 $as_echo "$ld_library_path_setting" >&6; }
5312 if test "$ld_library_path_setting" != "ok"; then
5314 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5315 *** building glibc. Please change the environment variable
5316 *** and run configure again." "$LINENO" 5
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5320 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5321 if ${libc_cv_gcc_static_libgcc+:} false; then :
5322 $as_echo_n "(cached) " >&6
5324 if $CC -v -static-libgcc 2>&1 | grep 'unrecognized option.*static-libgcc' >/dev/null; then
5325 libc_cv_gcc_static_libgcc=
5327 libc_cv_gcc_static_libgcc=-static-libgcc
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5331 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5334 # Extract the first word of "bash", so it can be a program name with args.
5335 set dummy bash; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_path_BASH_SHELL+:} false; then :
5339 $as_echo_n "(cached) " >&6
5343 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5365 BASH_SHELL=$ac_cv_path_BASH_SHELL
5366 if test -n "$BASH_SHELL"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5368 $as_echo "$BASH_SHELL" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5376 # Extract the first word of "perl", so it can be a program name with args.
5377 set dummy perl; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_path_PERL+:} false; then :
5381 $as_echo_n "(cached) " >&6
5385 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5407 PERL=$ac_cv_path_PERL
5408 if test -n "$PERL"; then
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5410 $as_echo "$PERL" >&6; }
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5417 if test "$PERL" != no &&
5418 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5421 # Extract the first word of "install-info", so it can be a program name with args.
5422 set dummy install-info; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5426 $as_echo_n "(cached) " >&6
5428 case $INSTALL_INFO in
5430 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5435 for as_dir in $as_dummy
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5453 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5454 if test -n "$INSTALL_INFO"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5456 $as_echo "$INSTALL_INFO" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5463 for ac_prog in bison
5465 # Extract the first word of "$ac_prog", so it can be a program name with args.
5466 set dummy $ac_prog; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_prog_BISON+:} false; then :
5470 $as_echo_n "(cached) " >&6
5472 if test -n "$BISON"; then
5473 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482 ac_cv_prog_BISON="$ac_prog"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 BISON=$ac_cv_prog_BISON
5493 if test -n "$BISON"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5495 $as_echo "$BISON" >&6; }
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5502 test -n "$BISON" && break
5505 if test -z "$BISON"; then
5508 # Found it, now check the version.
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5510 $as_echo_n "checking version of $BISON... " >&6; }
5511 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5512 case $ac_prog_version in
5513 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5514 2.7*|[3-9].*|[1-9][0-9]*)
5515 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5516 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5520 $as_echo "$ac_prog_version" >&6; }
5522 if test $ac_verc_fail = yes; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5528 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5529 if ${libc_cv_need_minus_P+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 cat > conftest.S <<EOF
5533 #include "confdefs.h"
5534 /* Nothing whatsoever. */
5536 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5541 test $ac_status = 0; }; }; then
5542 libc_cv_need_minus_P=no
5544 libc_cv_need_minus_P=yes
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5549 $as_echo "$libc_cv_need_minus_P" >&6; }
5550 if test $libc_cv_need_minus_P = yes; then
5551 config_vars="$config_vars
5552 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5556 $as_echo_n "checking for .set assembler directive... " >&6; }
5557 if ${libc_cv_asm_set_directive+:} false; then :
5558 $as_echo_n "(cached) " >&6
5560 cat > conftest.s <<EOF
5563 .set glibc_conftest_frobozz,foo
5564 .globl glibc_conftest_frobozz
5566 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5567 # (but it doesn't work), so we must do a linking check to be sure.
5568 cat > conftest1.c <<\EOF
5569 extern int glibc_conftest_frobozz;
5570 void _start() { glibc_conftest_frobozz = 1; }
5572 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5573 -nostartfiles -nostdlib \
5574 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5575 libc_cv_asm_set_directive=yes
5577 libc_cv_asm_set_directive=no
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5582 $as_echo "$libc_cv_asm_set_directive" >&6; }
5583 if test $libc_cv_asm_set_directive = yes; then
5584 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5589 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5590 if ${libc_cv_asm_unique_object+:} false; then :
5591 $as_echo_n "(cached) " >&6
5593 cat > conftest.s <<EOF
5596 .type _sym, %gnu_unique_object
5598 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5599 libc_cv_asm_unique_object=yes
5601 libc_cv_asm_unique_object=no
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5606 $as_echo "$libc_cv_asm_unique_object" >&6; }
5607 if test $libc_cv_asm_unique_object = yes; then
5608 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5613 $as_echo_n "checking for .previous assembler directive... " >&6; }
5614 if ${libc_cv_asm_previous_directive+:} false; then :
5615 $as_echo_n "(cached) " >&6
5617 cat > conftest.s <<EOF
5618 .section foo_section
5621 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5626 test $ac_status = 0; }; }; then
5627 libc_cv_asm_previous_directive=yes
5629 libc_cv_asm_previous_directive=no
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5634 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5635 if test $libc_cv_asm_previous_directive = yes; then
5636 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5640 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5641 if ${libc_cv_asm_popsection_directive+:} false; then :
5642 $as_echo_n "(cached) " >&6
5644 cat > conftest.s <<EOF
5645 .pushsection foo_section
5648 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5653 test $ac_status = 0; }; }; then
5654 libc_cv_asm_popsection_directive=yes
5656 libc_cv_asm_popsection_directive=no
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5661 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5662 if test $libc_cv_asm_popsection_directive = yes; then
5663 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
5668 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
5669 if ${libc_cv_asm_protected_directive+:} false; then :
5670 $as_echo_n "(cached) " >&6
5672 cat > conftest.s <<EOF
5678 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; }; }; then
5684 libc_cv_asm_protected_directive=yes
5686 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
5691 $as_echo "$libc_cv_asm_protected_directive" >&6; }
5693 if test $libc_cv_asm_protected_directive = yes; then
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
5695 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
5696 if ${libc_cv_visibility_attribute+:} false; then :
5697 $as_echo_n "(cached) " >&6
5699 cat > conftest.c <<EOF
5700 int foo __attribute__ ((visibility ("hidden"))) = 1;
5701 int bar __attribute__ ((visibility ("protected"))) = 1;
5703 libc_cv_visibility_attribute=no
5704 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }; }; then
5710 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5711 if grep '\.protected.*bar' conftest.s >/dev/null; then
5712 libc_cv_visibility_attribute=yes
5716 rm -f conftest.{c,s}
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
5720 $as_echo "$libc_cv_visibility_attribute" >&6; }
5721 if test $libc_cv_visibility_attribute != yes; then
5722 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
5726 if test $libc_cv_visibility_attribute = yes; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5728 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5729 if ${libc_cv_protected_data+:} false; then :
5730 $as_echo_n "(cached) " >&6
5732 cat > conftest.c <<EOF
5733 int bar __attribute__ ((visibility ("protected"))) = 1;
5735 libc_cv_protected_data=no
5736 if { ac_try='${CC-cc} -nostdlib -nostartfiles -fPIC -shared conftest.c -o conftest.so'
5737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5741 test $ac_status = 0; }; }; then
5742 cat > conftest.c <<EOF
5744 int main (void) { return bar; }
5746 if { ac_try='${CC-cc} -nostdlib -nostartfiles conftest.c -o conftest conftest.so'
5747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5751 test $ac_status = 0; }; }; then
5752 libc_cv_protected_data=yes
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5759 $as_echo "$libc_cv_protected_data" >&6; }
5761 libc_cv_protected_data=no
5765 if test $libc_cv_visibility_attribute = yes; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
5767 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
5768 if ${libc_cv_broken_visibility_attribute+:} false; then :
5769 $as_echo_n "(cached) " >&6
5771 cat > conftest.c <<EOF
5773 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5774 int bar (int x) { return x; }
5776 libc_cv_broken_visibility_attribute=yes
5777 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5782 test $ac_status = 0; }; }; then
5783 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5784 libc_cv_broken_visibility_attribute=no
5787 rm -f conftest.c conftest.s
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
5791 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
5792 if test $libc_cv_broken_visibility_attribute = yes; then
5793 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5798 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5799 if ${libc_cv_broken_alias_attribute+:} false; then :
5800 $as_echo_n "(cached) " >&6
5802 cat > conftest.c <<EOF
5803 extern int foo (int x) __asm ("xyzzy");
5804 int bar (int x) { return x; }
5805 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5807 extern __typeof (dfoo) dfoo __asm ("abccb");
5810 libc_cv_broken_alias_attribute=yes
5811 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5816 test $ac_status = 0; }; }; then
5817 if grep 'xyzzy' conftest.s >/dev/null &&
5818 grep 'abccb' conftest.s >/dev/null; then
5819 libc_cv_broken_alias_attribute=no
5822 rm -f conftest.c conftest.s
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5826 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5827 if test $libc_cv_broken_alias_attribute = yes; then
5828 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5831 if test $libc_cv_visibility_attribute = yes; then
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5833 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5834 if ${libc_cv_have_sdata_section+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 echo "int i;" > conftest.c
5838 libc_cv_have_sdata_section=no
5839 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5840 | grep '\.sdata' >/dev/null; then
5841 libc_cv_have_sdata_section=yes
5843 rm -f conftest.c conftest.so
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5847 $as_echo "$libc_cv_have_sdata_section" >&6; }
5848 if test $libc_cv_have_sdata_section = yes; then
5849 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
5855 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
5856 if ${libc_cv_initfini_array+:} false; then :
5857 $as_echo_n "(cached) " >&6
5859 cat > conftest.c <<EOF
5860 int _start (void) { return 0; }
5861 int __start (void) { return 0; }
5863 int foo (void) { return 1; }
5864 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
5867 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5868 conftest.c -static -nostartfiles -nostdlib
5870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874 test $ac_status = 0; }; }; then :
5875 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
5876 libc_cv_initfini_array=yes
5878 libc_cv_initfini_array=no
5881 libc_cv_initfini_array=no
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
5887 $as_echo "$libc_cv_initfini_array" >&6; }
5888 if test $libc_cv_initfini_array != yes; then
5889 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
5893 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
5894 if ${libc_cv_ctors_header+:} false; then :
5895 $as_echo_n "(cached) " >&6
5897 libc_cv_ctors_header=yes
5898 cat > conftest.c <<EOF
5899 int _start (void) { return 0; }
5900 int __start (void) { return 0; }
5902 __attribute__ ((constructor)) void ctor (void) { asm (""); }
5903 __attribute__ ((destructor)) void dtor (void) { asm (""); }
5906 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5907 conftest.c -static -nostartfiles -nostdlib
5909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5913 test $ac_status = 0; }; }; then :
5914 if $READELF -WS conftest$ac_exeext | $AWK '
5915 { gsub(/\[ */, "[") }
5916 $2 == ".ctors" || $2 == ".dtors" {
5917 size = strtonum("0x" $6)
5918 align = strtonum("0x" $NF)
5920 stub[$2] = size == align * 2
5923 ctors_ok = !seen[".ctors"] || stub[".ctors"]
5924 dtors_ok = !seen[".dtors"] || stub[".dtors"]
5925 exit ((ctors_ok && dtors_ok) ? 0 : 1)
5928 libc_cv_ctors_header=no
5932 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
5939 $as_echo "$libc_cv_ctors_header" >&6; }
5940 if test $libc_cv_ctors_header = no; then
5941 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5946 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5947 if ${libc_cv_cc_with_libunwind+:} false; then :
5948 $as_echo_n "(cached) " >&6
5951 cat > conftest.c <<EOF
5952 int main (void) { return 0; }
5954 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5955 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5956 libc_cv_cc_with_libunwind=yes
5958 libc_cv_cc_with_libunwind=no
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5963 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5965 if test $libc_cv_cc_with_libunwind = yes; then
5966 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodelete" >&5
5971 $as_echo_n "checking for linker that supports -z nodelete... " >&6; }
5972 libc_linker_feature=no
5973 if test x"$gnu_ld" = x"yes"; then
5974 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodelete"`
5975 if test -n "$libc_linker_check"; then
5976 cat > conftest.c <<EOF
5977 int _start (void) { return 42; }
5979 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5980 -Wl,--enable-new-dtags,-z,nodelete -nostdlib -nostartfiles
5981 -fPIC -shared -o conftest.so conftest.c
5983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5987 test $ac_status = 0; }; }
5989 libc_linker_feature=yes
5994 if test $libc_linker_feature = yes; then
5995 libc_cv_z_nodelete=yes
5997 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6000 $as_echo "$libc_linker_feature" >&6; }
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z nodlopen" >&5
6003 $as_echo_n "checking for linker that supports -z nodlopen... " >&6; }
6004 libc_linker_feature=no
6005 if test x"$gnu_ld" = x"yes"; then
6006 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z nodlopen"`
6007 if test -n "$libc_linker_check"; then
6008 cat > conftest.c <<EOF
6009 int _start (void) { return 42; }
6011 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6012 -Wl,--enable-new-dtags,-z,nodlopen -nostdlib -nostartfiles
6013 -fPIC -shared -o conftest.so conftest.c
6015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6019 test $ac_status = 0; }; }
6021 libc_linker_feature=yes
6026 if test $libc_linker_feature = yes; then
6027 libc_cv_z_nodlopen=yes
6029 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6032 $as_echo "$libc_linker_feature" >&6; }
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z initfirst" >&5
6035 $as_echo_n "checking for linker that supports -z initfirst... " >&6; }
6036 libc_linker_feature=no
6037 if test x"$gnu_ld" = x"yes"; then
6038 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z initfirst"`
6039 if test -n "$libc_linker_check"; then
6040 cat > conftest.c <<EOF
6041 int _start (void) { return 42; }
6043 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6044 -Wl,--enable-new-dtags,-z,initfirst -nostdlib -nostartfiles
6045 -fPIC -shared -o conftest.so conftest.c
6047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6051 test $ac_status = 0; }; }
6053 libc_linker_feature=yes
6058 if test $libc_linker_feature = yes; then
6059 libc_cv_z_initfirst=yes
6061 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6064 $as_echo "$libc_linker_feature" >&6; }
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6067 $as_echo_n "checking for -Bgroup option... " >&6; }
6068 if ${libc_cv_Bgroup+:} false; then :
6069 $as_echo_n "(cached) " >&6
6071 cat > conftest.c <<EOF
6072 int _start (void) { return 42; }
6074 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6075 -fPIC -shared -o conftest.so conftest.c
6076 -Wl,-Bgroup -nostdlib 1>&5'
6077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6081 test $ac_status = 0; }; }
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6090 $as_echo "$libc_cv_Bgroup" >&6; }
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6095 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6096 if ${libc_cv_as_noexecstack+:} false; then :
6097 $as_echo_n "(cached) " >&6
6099 cat > conftest.c <<EOF
6102 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6103 -S -o conftest.s conftest.c 1>&5'
6104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; } \
6109 && grep .note.GNU-stack conftest.s >/dev/null \
6110 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6111 -c -o conftest.o conftest.s 1>&5'
6112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116 test $ac_status = 0; }; }
6118 libc_cv_as_noexecstack=yes
6120 libc_cv_as_noexecstack=no
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6125 $as_echo "$libc_cv_as_noexecstack" >&6; }
6126 if test $libc_cv_as_noexecstack = yes; then
6127 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6132 $as_echo_n "checking for -z combreloc... " >&6; }
6133 if ${libc_cv_z_combreloc+:} false; then :
6134 $as_echo_n "(cached) " >&6
6136 cat > conftest.c <<EOF
6137 extern int bar (int);
6139 int foo (void) { return bar (mumble); }
6141 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6142 -fPIC -shared -o conftest.so conftest.c
6143 -nostdlib -nostartfiles
6144 -Wl,-z,combreloc 1>&5'
6145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }; }
6151 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6152 libc_cv_z_combreloc=yes
6154 libc_cv_z_combreloc=no
6157 libc_cv_z_combreloc=no
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6162 $as_echo "$libc_cv_z_combreloc" >&6; }
6163 if test "$libc_cv_z_combreloc" = yes; then
6164 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
6170 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
6171 libc_linker_feature=no
6172 if test x"$gnu_ld" = x"yes"; then
6173 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
6174 if test -n "$libc_linker_check"; then
6175 cat > conftest.c <<EOF
6176 int _start (void) { return 42; }
6178 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6179 -Wl,-z,execstack -nostdlib -nostartfiles
6180 -fPIC -shared -o conftest.so conftest.c
6182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6186 test $ac_status = 0; }; }
6188 libc_linker_feature=yes
6193 if test $libc_linker_feature = yes; then
6194 libc_cv_z_execstack=yes
6196 libc_cv_z_execstack=no
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
6199 $as_echo "$libc_linker_feature" >&6; }
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6203 $as_echo_n "checking for -fpie... " >&6; }
6204 if ${libc_cv_fpie+:} false; then :
6205 $as_echo_n "(cached) " >&6
6207 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
6208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212 test $ac_status = 0; }; }; then :
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6220 $as_echo "$libc_cv_fpie" >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6225 $as_echo_n "checking for --hash-style option... " >&6; }
6226 if ${libc_cv_hashstyle+:} false; then :
6227 $as_echo_n "(cached) " >&6
6229 cat > conftest.c <<EOF
6230 int _start (void) { return 42; }
6232 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6233 -fPIC -shared -o conftest.so conftest.c
6234 -Wl,--hash-style=both -nostdlib 1>&5'
6235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239 test $ac_status = 0; }; }
6241 libc_cv_hashstyle=yes
6243 libc_cv_hashstyle=no
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6248 $as_echo "$libc_cv_hashstyle" >&6; }
6251 # The linker's default -shared behavior is good enough if it
6252 # does these things that our custom linker scripts ensure that
6253 # all allocated NOTE sections come first.
6254 if test "$use_default_link" = default; then
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6256 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6257 if ${libc_cv_use_default_link+:} false; then :
6258 $as_echo_n "(cached) " >&6
6260 libc_cv_use_default_link=no
6261 cat > conftest.s <<\EOF
6262 .section .note.a,"a",%note
6267 .section .note.b,"a",%note
6273 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6278 test $ac_status = 0; }; } &&
6279 ac_try=`$READELF -S conftest.so | sed -n \
6281 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6287 libc_seen_a=no libc_seen_b=no
6289 while test $# -ge 2 -a "$1" = NOTE; do
6291 .note.a) libc_seen_a=yes ;;
6292 .note.b) libc_seen_b=yes ;;
6296 case "$libc_seen_a$libc_seen_b" in
6298 libc_cv_use_default_link=yes
6302 $libc_seen_a$libc_seen_b from:
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6310 $as_echo "$libc_cv_use_default_link" >&6; }
6311 use_default_link=$libc_cv_use_default_link
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6315 $as_echo_n "checking linker output format... " >&6; }
6316 if ${libc_cv_output_format+:} false; then :
6317 $as_echo_n "(cached) " >&6
6319 if libc_cv_output_format=`
6320 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6324 libc_cv_output_format=
6326 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6329 $as_echo "$libc_cv_output_format" >&6; }
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6333 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6334 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6335 $as_echo_n "(cached) " >&6
6337 cat > conftest.c <<EOF
6340 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6346 test $ac_status = 0; }; }
6348 libc_cv_fno_toplevel_reorder=yes
6350 libc_cv_fno_toplevel_reorder=no
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6355 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6356 if test $libc_cv_fno_toplevel_reorder = yes; then
6357 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6359 fno_unit_at_a_time=-fno-unit-at-a-time
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6364 $as_echo_n "checking for -fstack-protector... " >&6; }
6365 if ${libc_cv_ssp+:} false; then :
6366 $as_echo_n "(cached) " >&6
6368 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6373 test $ac_status = 0; }; }; then :
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6381 $as_echo "$libc_cv_ssp" >&6; }
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6385 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6386 if ${libc_cv_gnu89_inline+:} false; then :
6387 $as_echo_n "(cached) " >&6
6389 cat > conftest.c <<EOF
6391 #ifdef __GNUC_GNU_INLINE__
6392 main () { return 0;}
6397 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6398 -o conftest.s conftest.c 1>&5'
6399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }; }
6405 libc_cv_gnu89_inline=yes
6407 libc_cv_gnu89_inline=no
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6412 $as_echo "$libc_cv_gnu89_inline" >&6; }
6413 if test $libc_cv_gnu89_inline = yes; then
6414 gnu89_inline=-fgnu89-inline
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6421 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6422 if ${libc_cv_have_section_quotes+:} false; then :
6423 $as_echo_n "(cached) " >&6
6425 cat > conftest.c <<EOF
6426 static const int foo
6427 __attribute__ ((section ("bar"))) = 1;
6429 if ${CC-cc} -S conftest.c -o conftest.s; then
6430 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6431 libc_cv_have_section_quotes=yes
6433 libc_cv_have_section_quotes=no
6436 libc_cv_have_section_quotes=unknown
6438 rm -f conftest.{c,s}
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6442 $as_echo "$libc_cv_have_section_quotes" >&6; }
6443 if test $libc_cv_have_section_quotes = yes; then
6444 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6449 $as_echo_n "checking for assembler .weak directive... " >&6; }
6450 if ${libc_cv_asm_weak_directive+:} false; then :
6451 $as_echo_n "(cached) " >&6
6453 cat > conftest.s <<EOF
6458 .weak bar; bar = foo
6460 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465 test $ac_status = 0; }; }; then
6466 libc_cv_asm_weak_directive=yes
6468 libc_cv_asm_weak_directive=no
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6473 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6475 if test $libc_cv_asm_weak_directive = no; then
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6477 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6478 if ${libc_cv_asm_weakext_directive+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 cat > conftest.s <<EOF
6490 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6495 test $ac_status = 0; }; }; then
6496 libc_cv_asm_weakext_directive=yes
6498 libc_cv_asm_weakext_directive=no
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6503 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
6507 if test $libc_cv_asm_weak_directive = yes; then
6508 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
6510 elif test $libc_cv_asm_weakext_directive = yes; then
6511 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
6516 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
6517 if ${libc_cv_ld_no_whole_archive+:} false; then :
6518 $as_echo_n "(cached) " >&6
6520 cat > conftest.c <<\EOF
6525 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6526 -nostdlib -nostartfiles -Wl,--no-whole-archive
6527 -o conftest conftest.c 1>&5'
6528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6532 test $ac_status = 0; }; }; then
6533 libc_cv_ld_no_whole_archive=yes
6535 libc_cv_ld_no_whole_archive=no
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
6540 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
6541 if test $libc_cv_ld_no_whole_archive = no; then
6542 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
6546 $as_echo_n "checking for gcc -fexceptions... " >&6; }
6547 if ${libc_cv_gcc_exceptions+:} false; then :
6548 $as_echo_n "(cached) " >&6
6550 cat > conftest.c <<\EOF
6555 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6556 -nostdlib -nostartfiles -fexceptions
6557 -o conftest conftest.c 1>&5'
6558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562 test $ac_status = 0; }; }; then
6563 libc_cv_gcc_exceptions=yes
6565 libc_cv_gcc_exceptions=no
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
6570 $as_echo "$libc_cv_gcc_exceptions" >&6; }
6571 if test $libc_cv_gcc_exceptions = yes; then
6572 exceptions=-fexceptions
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6576 $as_echo_n "checking for __builtin_memset... " >&6; }
6577 if ${libc_cv_gcc_builtin_memset+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 cat > conftest.c <<\EOF
6583 __builtin_memset (x, 0, 1000);
6586 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }; };
6593 libc_cv_gcc_builtin_memset=no
6595 libc_cv_gcc_builtin_memset=yes
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6600 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6601 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6602 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6607 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6608 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6609 $as_echo_n "(cached) " >&6
6611 cat > conftest.c <<\EOF
6612 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6613 char *foo (const char *a, const char *b)
6615 return __builtin_strstr (a, b);
6618 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6623 test $ac_status = 0; }; };
6625 libc_cv_gcc_builtin_redirection=yes
6627 libc_cv_gcc_builtin_redirection=no
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6632 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6633 if test "$libc_cv_gcc_builtin_redirection" = no; then
6634 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
6638 $as_echo_n "checking for __thread... " >&6; }
6639 if ${libc_cv_gcc___thread+:} false; then :
6640 $as_echo_n "(cached) " >&6
6642 cat > conftest.c <<\EOF
6643 __thread int a = 42;
6645 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650 test $ac_status = 0; }; }; then
6651 libc_cv_gcc___thread=yes
6653 libc_cv_gcc___thread=no
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
6658 $as_echo "$libc_cv_gcc___thread" >&6; }
6659 if test "$libc_cv_gcc___thread" = no; then
6660 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
6664 $as_echo_n "checking for tls_model attribute... " >&6; }
6665 if ${libc_cv_gcc_tls_model_attr+:} false; then :
6666 $as_echo_n "(cached) " >&6
6668 cat > conftest.c <<\EOF
6669 extern __thread int a __attribute__((tls_model ("initial-exec")));
6671 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676 test $ac_status = 0; }; }; then
6677 libc_cv_gcc_tls_model_attr=yes
6679 libc_cv_gcc_tls_model_attr=no
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
6684 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
6685 if test "$libc_cv_gcc_tls_model_attr" = no; then
6686 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6690 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6691 if ${libc_cv_cc_nofma+:} false; then :
6692 $as_echo_n "(cached) " >&6
6695 for opt in -ffp-contract=off -mno-fused-madd; do
6696 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6701 test $ac_status = 0; }; }; then :
6702 libc_cv_cc_nofma=$opt; break
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6707 $as_echo "$libc_cv_cc_nofma" >&6; }
6710 if test -n "$submachine"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6712 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6713 if ${libc_cv_cc_submachine+:} false; then :
6714 $as_echo_n "(cached) " >&6
6716 libc_cv_cc_submachine=no
6717 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6718 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; }; }; then :
6725 libc_cv_cc_submachine="$opt"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6731 $as_echo "$libc_cv_cc_submachine" >&6; }
6732 if test "x$libc_cv_cc_submachine" = xno; then
6733 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6739 __attribute__ ((__optimize__))" >&5
6740 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6741 __attribute__ ((__optimize__))... " >&6; }
6742 if ${libc_cv_cc_loop_to_function+:} false; then :
6743 $as_echo_n "(cached) " >&6
6745 cat > conftest.c <<EOF
6747 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6750 libc_cv_cc_loop_to_function=no
6751 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; }; }
6758 libc_cv_cc_loop_to_function=yes
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6763 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6764 if test $libc_cv_cc_loop_to_function = yes; then
6765 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6771 $as_echo_n "checking for libgd... " >&6; }
6772 if test "$with_gd" != "no"; then
6773 old_CFLAGS="$CFLAGS"
6774 CFLAGS="$CFLAGS $libgd_include"
6775 old_LDFLAGS="$LDFLAGS"
6776 LDFLAGS="$LDFLAGS $libgd_ldflags"
6778 LIBS="$LIBS -lgd -lpng -lz -lm"
6779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6780 /* end confdefs.h. */
6790 if ac_fn_c_try_link "$LINENO"; then :
6795 rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
6797 CFLAGS="$old_CFLAGS"
6798 LDFLAGS="$old_LDFLAGS"
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6804 $as_echo "$LIBGD" >&6; }
6808 if test x$with_selinux = xno ; then
6811 # See if we have the SELinux library
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6813 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6814 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6815 $as_echo_n "(cached) " >&6
6817 ac_check_lib_save_LIBS=$LIBS
6818 LIBS="-lselinux $LIBS"
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6822 /* Override any GCC internal prototype to avoid an error.
6823 Use char because int might match the return type of a GCC
6824 builtin and then its argument prototype would still apply. */
6828 char is_selinux_enabled ();
6832 return is_selinux_enabled ();
6837 if ac_fn_c_try_link "$LINENO"; then :
6838 ac_cv_lib_selinux_is_selinux_enabled=yes
6840 ac_cv_lib_selinux_is_selinux_enabled=no
6842 rm -f core conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
6844 LIBS=$ac_check_lib_save_LIBS
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6847 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6848 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6854 if test x$with_selinux = xyes ; then
6855 if test x$have_selinux = xno ; then
6856 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6860 # Check if we're building with SELinux support.
6861 if test "x$have_selinux" = xyes; then
6863 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6866 # See if we have the libaudit library
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6868 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6869 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6870 $as_echo_n "(cached) " >&6
6872 ac_check_lib_save_LIBS=$LIBS
6873 LIBS="-laudit $LIBS"
6874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875 /* end confdefs.h. */
6877 /* Override any GCC internal prototype to avoid an error.
6878 Use char because int might match the return type of a GCC
6879 builtin and then its argument prototype would still apply. */
6883 char audit_log_user_avc_message ();
6887 return audit_log_user_avc_message ();
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 ac_cv_lib_audit_audit_log_user_avc_message=yes
6895 ac_cv_lib_audit_audit_log_user_avc_message=no
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 LIBS=$ac_check_lib_save_LIBS
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6902 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6903 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6909 if test "x$have_libaudit" = xyes; then
6911 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6916 # See if we have the libcap library
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6918 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6919 if ${ac_cv_lib_cap_cap_init+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 ac_check_lib_save_LIBS=$LIBS
6924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6925 /* end confdefs.h. */
6927 /* Override any GCC internal prototype to avoid an error.
6928 Use char because int might match the return type of a GCC
6929 builtin and then its argument prototype would still apply. */
6942 if ac_fn_c_try_link "$LINENO"; then :
6943 ac_cv_lib_cap_cap_init=yes
6945 ac_cv_lib_cap_cap_init=no
6947 rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
6949 LIBS=$ac_check_lib_save_LIBS
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6952 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6953 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6959 if test "x$have_libcap" = xyes; then
6961 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6969 # The cast to long int works around a bug in the HP C Compiler
6970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6972 # This bug is HP SR number 8606223364.
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
6974 $as_echo_n "checking size of long double... " >&6; }
6975 if ${ac_cv_sizeof_long_double+:} false; then :
6976 $as_echo_n "(cached) " >&6
6978 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
6981 if test "$ac_cv_type_long_double" = yes; then
6982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6984 as_fn_error 77 "cannot compute sizeof (long double)
6985 See \`config.log' for more details" "$LINENO" 5; }
6987 ac_cv_sizeof_long_double=0
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
6993 $as_echo "$ac_cv_sizeof_long_double" >&6; }
6997 cat >>confdefs.h <<_ACEOF
6998 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7002 sizeof_long_double=$ac_cv_sizeof_long_double
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
7007 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
7008 if ${libc_cv_predef_fortify_source+:} false; then :
7009 $as_echo_n "(cached) " >&6
7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7012 /* end confdefs.h. */
7018 #ifdef _FORTIFY_SOURCE
7025 if ac_fn_c_try_compile "$LINENO"; then :
7026 libc_cv_predef_fortify_source=no
7028 libc_cv_predef_fortify_source=yes
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
7033 $as_echo "$libc_cv_predef_fortify_source" >&6; }
7034 if test $libc_cv_predef_fortify_source = yes; then
7035 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5
7040 $as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; }
7041 if ${libc_cv_predef_stack_protector+:} false; then :
7042 $as_echo_n "(cached) " >&6
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047 extern void foobar (char *);
7051 char large_array[2048]; foobar (large_array);
7056 if ac_fn_c_try_compile "$LINENO"; then :
7058 libc_undefs=`$NM -u conftest.o |
7059 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7061 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7063 echo >&5 "libc_undefs='$libc_undefs'"
7064 # On some architectures, there are architecture-specific undefined
7065 # symbols (resolved by the linker), so filter out unknown symbols.
7066 # This will fail to produce the correct result if the compiler
7067 # defaults to -fstack-protector but this produces an undefined symbol
7068 # other than __stack_chk_fail. However, compilers like that have not
7069 # been encountered in practice.
7070 libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'`
7071 case "$libc_undefs" in
7072 foobar) libc_cv_predef_stack_protector=no ;;
7074 foobar') libc_cv_predef_stack_protector=yes ;;
7075 *) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;;
7078 as_fn_error $? "test compilation failed" "$LINENO" 5
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5
7084 $as_echo "$libc_cv_predef_stack_protector" >&6; }
7086 if test $libc_cv_predef_stack_protector = yes; then
7087 libc_extra_cflags="$libc_extra_cflags -fno-stack-protector"
7089 libc_extra_cppflags=
7091 # Some linkers on some architectures support __ehdr_start but with
7092 # bugs. Make sure usage of it does not create relocations in the
7093 # output (as the linker should resolve them all for us).
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker provides working __ehdr_start" >&5
7095 $as_echo_n "checking whether the linker provides working __ehdr_start... " >&6; }
7096 if ${libc_cv_ehdr_start+:} false; then :
7097 $as_echo_n "(cached) " >&6
7100 old_CFLAGS="$CFLAGS"
7101 old_LDFLAGS="$LDFLAGS"
7103 CFLAGS="$CFLAGS -fPIC"
7104 LDFLAGS="$LDFLAGS -nostdlib -nostartfiles -shared"
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7113 extern const Ehdr __ehdr_start __attribute__ ((visibility ("hidden")));
7114 long ehdr (void) { return __ehdr_start.val; }
7117 if ac_fn_c_try_link "$LINENO"; then :
7118 if $READELF -r conftest | fgrep __ehdr_start >/dev/null; then
7119 libc_cv_ehdr_start=broken
7121 libc_cv_ehdr_start=yes
7124 libc_cv_ehdr_start=no
7126 rm -f core conftest.err conftest.$ac_objext \
7127 conftest$ac_exeext conftest.$ac_ext
7128 CFLAGS="$old_CFLAGS"
7129 LDFLAGS="$old_LDFLAGS"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ehdr_start" >&5
7134 $as_echo "$libc_cv_ehdr_start" >&6; }
7135 if test "$libc_cv_ehdr_start" = yes; then
7136 $as_echo "#define HAVE_EHDR_START 1" >>confdefs.h
7138 elif test "$libc_cv_ehdr_start" = broken; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker is broken -- you should upgrade" >&5
7140 $as_echo "$as_me: WARNING: linker is broken -- you should upgrade" >&2;}
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
7144 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
7145 if ${libc_cv_builtin_trap+:} false; then :
7146 $as_echo_n "(cached) " >&6
7148 libc_cv_builtin_trap=no
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7160 if ac_fn_c_try_compile "$LINENO"; then :
7162 libc_undefs=`$NM -u conftest.o |
7163 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7165 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7167 echo >&5 "libc_undefs='$libc_undefs'"
7168 if test -z "$libc_undefs"; then
7169 libc_cv_builtin_trap=yes
7172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
7175 $as_echo "$libc_cv_builtin_trap" >&6; }
7176 if test $libc_cv_builtin_trap = yes; then
7177 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
7182 ac_cpp='$CXXCPP $CPPFLAGS'
7183 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7184 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7185 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
7189 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
7190 if ${libc_cv_cxx_thread_local+:} false; then :
7191 $as_echo_n "(cached) " >&6
7194 old_CXXFLAGS="$CXXFLAGS"
7195 CXXFLAGS="$CXXFLAGS -std=gnu++11"
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7201 // Compiler support.
7208 S * get () { return &s; }
7210 // libstdc++ support.
7211 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
7212 #error __cxa_thread_atexit_impl not supported
7216 if ac_fn_cxx_try_compile "$LINENO"; then :
7217 libc_cv_cxx_thread_local=yes
7219 libc_cv_cxx_thread_local=no
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 CXXFLAGS="$old_CXXFLAGS"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
7226 $as_echo "$libc_cv_cxx_thread_local" >&6; }
7230 ac_cpp='$CPP $CPPFLAGS'
7231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7236 ### End of automated tests.
7237 ### Now run sysdeps configure fragments.
7239 # They also can set these variables.
7241 ldd_rewrite_script=no
7242 libc_cv_sysconfdir=$sysconfdir
7243 libc_cv_localstatedir=$localstatedir
7244 libc_cv_gcc_unwind_find_fde=no
7247 # Iterate over all the sysdep directories we will use, running their
7248 # configure fragments.
7249 for dir in $sysnames; do
7252 *) dest=$srcdir/$dir ;;
7254 if test -r $dest/configure; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7256 $as_echo "running configure fragment for $dir" >&6; }
7261 if test x"$build_mathvec" = xnotset; then
7264 config_vars="$config_vars
7265 build-mathvec = $build_mathvec"
7270 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7271 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7276 # A sysdeps configure fragment can reset this if IFUNC is not actually
7277 # usable even though the assembler knows how to generate the symbol type.
7278 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
7279 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
7283 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7284 # configure fragment can override the value to prevent this AC_DEFINE.
7286 if test "x$use_nscd" != xno; then
7287 $as_echo "#define USE_NSCD 1" >>confdefs.h
7290 if test "x$build_nscd" = xdefault; then
7291 build_nscd=$use_nscd
7294 # Test for old glibc 2.0.x headers so that they can be removed properly
7295 # Search only in includedir.
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7297 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7298 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7300 old_glibc_headers=yes
7302 old_glibc_headers=no
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7305 $as_echo "$old_glibc_headers" >&6; }
7306 if test ${old_glibc_headers} = yes; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7308 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7310 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7322 if test x$use_ldconfig = xyes; then
7323 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7333 $as_echo_n "checking whether -fPIC is default... " >&6; }
7334 if ${libc_cv_pic_default+:} false; then :
7335 $as_echo_n "(cached) " >&6
7337 libc_cv_pic_default=yes
7338 cat > conftest.c <<EOF
7339 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7340 # error PIC is default.
7343 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7344 libc_cv_pic_default=no
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7349 $as_echo "$libc_cv_pic_default" >&6; }
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
7353 $as_echo_n "checking whether -fPIE is default... " >&6; }
7354 if ${libc_cv_pie_default+:} false; then :
7355 $as_echo_n "(cached) " >&6
7357 libc_cv_pie_default=yes
7358 cat > conftest.c <<EOF
7359 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
7360 # error PIE is default.
7363 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7364 libc_cv_pie_default=no
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_default" >&5
7369 $as_echo "$libc_cv_pie_default" >&6; }
7379 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7380 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7384 ac_config_files="$ac_config_files config.make Makefile"
7386 ac_config_commands="$ac_config_commands default"
7388 cat >confcache <<\_ACEOF
7389 # This file is a shell script that caches the results of configure
7390 # tests run on this system so they can be shared between configure
7391 # scripts and configure runs, see configure's option --config-cache.
7392 # It is not useful on other systems. If it contains results you don't
7393 # want to keep, you may remove or edit it.
7395 # config.status only pays attention to the cache file if you give it
7396 # the --recheck option to rerun configure.
7398 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7399 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7404 # The following way of writing the cache mishandles newlines in values,
7405 # but we know of no workaround that is simple, portable, and efficient.
7406 # So, we kill variables containing newlines.
7407 # Ultrix sh set writes to stderr and can't be redirected directly,
7408 # and sets the high bit in the cache file unless we assign to the vars.
7410 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7411 eval ac_val=\$$ac_var
7415 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7416 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7419 _ | IFS | as_nl) ;; #(
7420 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7421 *) { eval $ac_var=; unset $ac_var;} ;;
7427 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7428 *${as_nl}ac_space=\ *)
7429 # `set' does not quote correctly, so add quotes: double-quote
7430 # substitution turns \\\\ into \\, and sed turns \\ into \.
7433 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7436 # `set' quotes correctly as required by POSIX, so do not add quotes.
7437 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7446 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7448 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7450 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7451 if test -w "$cache_file"; then
7452 if test "x$cache_file" != "x/dev/null"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7454 $as_echo "$as_me: updating cache $cache_file" >&6;}
7455 if test ! -f "$cache_file" || test -h "$cache_file"; then
7456 cat confcache >"$cache_file"
7458 case $cache_file in #(
7460 mv -f confcache "$cache_file"$$ &&
7461 mv -f "$cache_file"$$ "$cache_file" ;; #(
7463 mv -f confcache "$cache_file" ;;
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7469 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7474 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7475 # Let make expand exec_prefix.
7476 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7478 DEFS=-DHAVE_CONFIG_H
7483 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7484 # 1. Remove the extension, and $U if already installed.
7485 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7486 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7487 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7488 # will be set to the directory where LIBOBJS objects are built.
7489 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7490 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7494 LTLIBOBJS=$ac_ltlibobjs
7498 : "${CONFIG_STATUS=./config.status}"
7500 ac_clean_files_save=$ac_clean_files
7501 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7503 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7505 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7507 # Generated by $as_me.
7508 # Run this file to recreate the current configuration.
7509 # Compiler output produced by configure, useful for debugging
7510 # configure, is in config.log if it exists.
7516 SHELL=\${CONFIG_SHELL-$SHELL}
7519 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7520 ## -------------------- ##
7521 ## M4sh Initialization. ##
7522 ## -------------------- ##
7524 # Be more Bourne compatible
7525 DUALCASE=1; export DUALCASE # for MKS sh
7526 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7529 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7530 # is contrary to our usage. Disable this feature.
7531 alias -g '${1+"$@"}'='"$@"'
7532 setopt NO_GLOB_SUBST
7534 case `(set -o) 2>/dev/null` in #(
7546 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7547 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7548 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7549 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7550 # Prefer a ksh shell builtin over an external printf program on Solaris,
7551 # but without wasting forks for bash or zsh.
7552 if test -z "$BASH_VERSION$ZSH_VERSION" \
7553 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7554 as_echo='print -r --'
7555 as_echo_n='print -rn --'
7556 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7557 as_echo='printf %s\n'
7558 as_echo_n='printf %s'
7560 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7561 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7562 as_echo_n='/usr/ucb/echo -n'
7564 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7565 as_echo_n_body='eval
7569 expr "X$arg" : "X\\(.*\\)$as_nl";
7570 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7572 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7574 export as_echo_n_body
7575 as_echo_n='sh -c $as_echo_n_body as_echo'
7578 as_echo='sh -c $as_echo_body as_echo'
7581 # The user is always right.
7582 if test "${PATH_SEPARATOR+set}" != set; then
7584 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7585 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7592 # We need space, tab and new line, in precisely that order. Quoting is
7593 # there to prevent editors from complaining about space-tab.
7594 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7595 # splitting by setting IFS to empty value.)
7598 # Find who we are. Look in the path if we contain no directory separator.
7601 *[\\/]* ) as_myself=$0 ;;
7602 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606 test -z "$as_dir" && as_dir=.
7607 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7613 # We did not find ourselves, most probably we were run as `sh COMMAND'
7614 # in which case we are not to be found in the path.
7615 if test "x$as_myself" = x; then
7618 if test ! -f "$as_myself"; then
7619 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7623 # Unset variables that we do not need and which cause bugs (e.g. in
7624 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7625 # suppresses any "Segmentation fault" message there. '((' could
7626 # trigger a bug in pdksh 5.2.14.
7627 for as_var in BASH_ENV ENV MAIL MAILPATH
7628 do eval test x\${$as_var+set} = xset \
7629 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7642 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7645 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7646 # ----------------------------------------
7647 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7648 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7649 # script with STATUS, using 1 if that was 0.
7652 as_status=$1; test $as_status -eq 0 && as_status=1
7654 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7655 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7657 $as_echo "$as_me: error: $2" >&2
7658 as_fn_exit $as_status
7662 # as_fn_set_status STATUS
7663 # -----------------------
7664 # Set $? to STATUS, without forking.
7668 } # as_fn_set_status
7672 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7682 # Portably unset VAR.
7685 { eval $1=; unset $1;}
7687 as_unset=as_fn_unset
7688 # as_fn_append VAR VALUE
7689 # ----------------------
7690 # Append the text in VALUE to the end of the definition contained in VAR. Take
7691 # advantage of any shell optimizations that allow amortized linear growth over
7692 # repeated appends, instead of the typical quadratic growth present in naive
7694 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7695 eval 'as_fn_append ()
7706 # as_fn_arith ARG...
7707 # ------------------
7708 # Perform arithmetic evaluation on the ARGs, and store the result in the
7709 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7710 # must be portable across $(()) and expr.
7711 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7712 eval 'as_fn_arith ()
7719 as_val=`expr "$@" || test $? -eq 1`
7724 if expr a : '\(a\)' >/dev/null 2>&1 &&
7725 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7731 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7732 as_basename=basename
7737 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7743 as_me=`$as_basename -- "$0" ||
7744 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7745 X"$0" : 'X\(//\)$' \| \
7746 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7748 sed '/^.*\/\([^/][^/]*\)\/*$/{
7762 # Avoid depending upon Character Ranges.
7763 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7764 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7765 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7766 as_cr_digits='0123456789'
7767 as_cr_alnum=$as_cr_Letters$as_cr_digits
7769 ECHO_C= ECHO_N= ECHO_T=
7770 case `echo -n x` in #(((((
7772 case `echo 'xy\c'` in
7773 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7775 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7782 rm -f conf$$ conf$$.exe conf$$.file
7783 if test -d conf$$.dir; then
7784 rm -f conf$$.dir/conf$$.file
7787 mkdir conf$$.dir 2>/dev/null
7789 if (echo >conf$$.file) 2>/dev/null; then
7790 if ln -s conf$$.file conf$$ 2>/dev/null; then
7792 # ... but there are two gotchas:
7793 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7794 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7795 # In both cases, we have to default to `cp -pR'.
7796 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7798 elif ln conf$$.file conf$$ 2>/dev/null; then
7806 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7807 rmdir conf$$.dir 2>/dev/null
7812 # Create "$as_dir" as a directory, including parents if necessary.
7817 -*) as_dir=./$as_dir;;
7819 test -d "$as_dir" || eval $as_mkdir_p || {
7823 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7824 *) as_qdir=$as_dir;;
7826 as_dirs="'$as_qdir' $as_dirs"
7827 as_dir=`$as_dirname -- "$as_dir" ||
7828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7829 X"$as_dir" : 'X\(//\)[^/]' \| \
7830 X"$as_dir" : 'X\(//\)$' \| \
7831 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7832 $as_echo X"$as_dir" |
7833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7850 test -d "$as_dir" && break
7852 test -z "$as_dirs" || eval "mkdir $as_dirs"
7853 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7857 if mkdir -p . 2>/dev/null; then
7858 as_mkdir_p='mkdir -p "$as_dir"'
7860 test -d ./-p && rmdir ./-p
7865 # as_fn_executable_p FILE
7866 # -----------------------
7867 # Test if FILE is an executable regular file.
7868 as_fn_executable_p ()
7870 test -f "$1" && test -x "$1"
7871 } # as_fn_executable_p
7873 as_executable_p=as_fn_executable_p
7875 # Sed expression to map a string onto a valid CPP name.
7876 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7878 # Sed expression to map a string onto a valid variable name.
7879 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7883 ## ----------------------------------- ##
7884 ## Main body of $CONFIG_STATUS script. ##
7885 ## ----------------------------------- ##
7887 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7890 # Save the log message, to keep $0 and so on meaningful, and to
7891 # report actual input values of CONFIG_FILES etc. instead of their
7892 # values after options handling.
7894 This file was extended by GNU C Library $as_me (see version.h), which was
7895 generated by GNU Autoconf 2.69. Invocation command line was
7897 CONFIG_FILES = $CONFIG_FILES
7898 CONFIG_HEADERS = $CONFIG_HEADERS
7899 CONFIG_LINKS = $CONFIG_LINKS
7900 CONFIG_COMMANDS = $CONFIG_COMMANDS
7903 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7908 case $ac_config_files in *"
7909 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7912 case $ac_config_headers in *"
7913 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7918 # Files that config.status was made for.
7919 config_files="$ac_config_files"
7920 config_headers="$ac_config_headers"
7921 config_commands="$ac_config_commands"
7925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7927 \`$as_me' instantiates files and other configuration actions
7928 from templates according to the current configuration. Unless the files
7929 and actions are specified as TAGs, all are instantiated by default.
7931 Usage: $0 [OPTION]... [TAG]...
7933 -h, --help print this help, then exit
7934 -V, --version print version number and configuration settings, then exit
7935 --config print configuration, then exit
7936 -q, --quiet, --silent
7937 do not print progress messages
7938 -d, --debug don't remove temporary files
7939 --recheck update $as_me by reconfiguring in the same conditions
7940 --file=FILE[:TEMPLATE]
7941 instantiate the configuration file FILE
7942 --header=FILE[:TEMPLATE]
7943 instantiate the configuration header FILE
7945 Configuration files:
7948 Configuration headers:
7951 Configuration commands:
7954 Report bugs to <http://sourceware.org/bugzilla/>.
7955 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
7956 General help using GNU software: <http://www.gnu.org/gethelp/>."
7959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7960 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7962 GNU C Library config.status (see version.h)
7963 configured by $0, generated by GNU Autoconf 2.69,
7964 with options \\"\$ac_cs_config\\"
7966 Copyright (C) 2012 Free Software Foundation, Inc.
7967 This config.status script is free software; the Free Software Foundation
7968 gives unlimited permission to copy, distribute and modify it."
7973 test -n "\$AWK" || AWK=awk
7976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7977 # The default lists apply if the user does not specify any file.
7983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7988 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8000 # Handling of the options.
8001 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8003 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8004 $as_echo "$ac_cs_version"; exit ;;
8005 --config | --confi | --conf | --con | --co | --c )
8006 $as_echo "$ac_cs_config"; exit ;;
8007 --debug | --debu | --deb | --de | --d | -d )
8009 --file | --fil | --fi | --f )
8012 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8013 '') as_fn_error $? "missing file argument" ;;
8015 as_fn_append CONFIG_FILES " '$ac_optarg'"
8016 ac_need_defaults=false;;
8017 --header | --heade | --head | --hea )
8020 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8022 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8023 ac_need_defaults=false;;
8025 # Conflict between --help and --header
8026 as_fn_error $? "ambiguous option: \`$1'
8027 Try \`$0 --help' for more information.";;
8028 --help | --hel | -h )
8029 $as_echo "$ac_cs_usage"; exit ;;
8030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8031 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8035 -*) as_fn_error $? "unrecognized option: \`$1'
8036 Try \`$0 --help' for more information." ;;
8038 *) as_fn_append ac_config_targets " $1"
8039 ac_need_defaults=false ;;
8045 ac_configure_extra_args=
8047 if $ac_cs_silent; then
8049 ac_configure_extra_args="$ac_configure_extra_args --silent"
8053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054 if \$ac_cs_recheck; then
8055 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8057 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8058 CONFIG_SHELL='$SHELL'
8064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8068 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8069 ## Running $as_me. ##
8075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8079 config_vars='$config_vars'
8083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8085 # Handling of arguments.
8086 for ac_config_target in $ac_config_targets
8088 case $ac_config_target in
8089 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8090 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8091 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8092 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8094 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8099 # If the user did not use the arguments to specify the items to instantiate,
8100 # then the envvar interface is used. Set only those that are not.
8101 # We use the long form for the default assignment because of an extremely
8102 # bizarre bug on SunOS 4.1.3.
8103 if $ac_need_defaults; then
8104 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8105 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8106 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8109 # Have a temporary directory for convenience. Make it in the build tree
8110 # simply because there is no reason against having it here, and in addition,
8111 # creating and moving files from /tmp can sometimes cause problems.
8112 # Hook for its removal unless debugging.
8113 # Note that there is a small window in which the directory will not be cleaned:
8114 # after its creation but before its name has been assigned to `$tmp'.
8118 trap 'exit_status=$?
8120 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8122 trap 'as_fn_exit 1' 1 2 13 15
8124 # Create a (secure) tmp directory for tmp files.
8127 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8131 tmp=./conf$$-$RANDOM
8132 (umask 077 && mkdir "$tmp")
8133 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8136 # Set up the scripts for CONFIG_FILES section.
8137 # No need to generate them if there are no CONFIG_FILES.
8138 # This happens for instance with `./config.status config.h'.
8139 if test -n "$CONFIG_FILES"; then
8142 ac_cr=`echo X | tr X '\015'`
8143 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8144 # But we know of no other shell where ac_cr would be empty at this
8145 # point, so we can use a bashism as a fallback.
8146 if test "x$ac_cr" = x; then
8147 eval ac_cr=\$\'\\r\'
8149 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8150 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8156 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8161 echo "cat >conf$$subs.awk <<_ACEOF" &&
8162 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8165 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8166 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8168 for ac_last_try in false false false false false :; do
8169 . ./conf$$subs.sh ||
8170 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8172 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8173 if test $ac_delim_n = $ac_delim_num; then
8175 elif $ac_last_try; then
8176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8178 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8184 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8188 s/^/S["/; s/!.*/"]=/
8198 s/\(.\{148\}\)..*/\1/
8200 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8205 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8212 s/\(.\{148\}\)..*/\1/
8214 s/["\\]/\\&/g; s/^/"/; s/$/"/
8218 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8223 ' <conf$$subs.awk | sed '
8228 ' >>$CONFIG_STATUS || ac_write_fail=1
8229 rm -f conf$$subs.awk
8230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8232 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8233 for (key in S) S_is_set[key] = 1
8239 nfields = split(line, field, "@")
8241 len = length(field[1])
8242 for (i = 2; i < nfields; i++) {
8244 keylen = length(key)
8245 if (S_is_set[key]) {
8247 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8248 len += length(value) + length(field[++i])
8259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8260 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8261 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8264 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8265 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8268 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8269 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8270 # trailing colons and then remove the whole line if VPATH becomes empty
8271 # (actually we leave an empty line to preserve line numbers).
8272 if test "x$srcdir" = x.; then
8273 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8292 fi # test -n "$CONFIG_FILES"
8294 # Set up the scripts for CONFIG_HEADERS section.
8295 # No need to generate them if there are no CONFIG_HEADERS.
8296 # This happens for instance with `./config.status Makefile'.
8297 if test -n "$CONFIG_HEADERS"; then
8298 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8302 # Transform confdefs.h into an awk script `defines.awk', embedded as
8303 # here-document in config.status, that substitutes the proper values into
8304 # config.h.in to produce config.h.
8306 # Create a delimiter string that does not exist in confdefs.h, to ease
8307 # handling of long lines.
8309 for ac_last_try in false false :; do
8310 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8311 if test -z "$ac_tt"; then
8313 elif $ac_last_try; then
8314 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8316 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8320 # For the awk script, D is an array of macro values keyed by name,
8321 # likewise P contains macro parameters if any. Preserve backslash
8322 # newline sequences.
8324 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8326 s/.\{148\}/&'"$ac_delim"'/g
8329 s/^[ ]*#[ ]*define[ ][ ]*/ /
8336 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8338 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8342 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8343 D["\1"]=" \3\\\\\\n"\\/p
8345 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8350 s/.\{148\}/&'"$ac_delim"'/g
8355 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8358 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8360 ' <confdefs.h | sed '
8361 s/'"$ac_delim"'/"\\\
8362 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8365 for (key in D) D_is_set[key] = 1
8368 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8370 split(line, arg, " ")
8371 if (arg[1] == "#") {
8375 defundef = substr(arg[1], 2)
8378 split(mac1, mac2, "(") #)
8380 prefix = substr(line, 1, index(line, defundef) - 1)
8381 if (D_is_set[macro]) {
8382 # Preserve the white space surrounding the "#".
8383 print prefix "define", macro P[macro] D[macro]
8386 # Replace #undef with comments. This is necessary, for example,
8387 # in the case of _POSIX_SOURCE, which is predefined and required
8388 # on some systems where configure will not decide to define it.
8389 if (defundef == "undef") {
8390 print "/*", prefix defundef, macro, "*/"
8398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8399 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8400 fi # test -n "$CONFIG_HEADERS"
8403 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8408 :[FHLC]) ac_mode=$ac_tag; continue;;
8410 case $ac_mode$ac_tag in
8412 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8413 :[FH]-) ac_tag=-:-;;
8414 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8431 -) ac_f="$ac_tmp/stdin";;
8432 *) # Look for the file first in the build tree, then in the source tree
8433 # (if the path is not absolute). The absolute path cannot be DOS-style,
8434 # because $ac_f cannot contain `:'.
8438 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8440 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8442 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8443 as_fn_append ac_file_inputs " '$ac_f'"
8446 # Let's still pretend it is `configure' which instantiates (i.e., don't
8447 # use $as_me), people would be surprised to read:
8448 # /* config.h. Generated by config.status. */
8449 configure_input='Generated from '`
8450 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8452 if test x"$ac_file" != x-; then
8453 configure_input="$ac_file. $configure_input"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8455 $as_echo "$as_me: creating $ac_file" >&6;}
8457 # Neutralize special characters interpreted by sed in replacement strings.
8458 case $configure_input in #(
8459 *\&* | *\|* | *\\* )
8460 ac_sed_conf_input=`$as_echo "$configure_input" |
8461 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8462 *) ac_sed_conf_input=$configure_input;;
8466 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8467 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8472 ac_dir=`$as_dirname -- "$ac_file" ||
8473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8474 X"$ac_file" : 'X\(//\)[^/]' \| \
8475 X"$ac_file" : 'X\(//\)$' \| \
8476 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8477 $as_echo X"$ac_file" |
8478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8495 as_dir="$ac_dir"; as_fn_mkdir_p
8499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8502 # A ".." for each directory in $ac_dir_suffix.
8503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8504 case $ac_top_builddir_sub in
8505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8509 ac_abs_top_builddir=$ac_pwd
8510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8511 # for backward compatibility:
8512 ac_top_builddir=$ac_top_build_prefix
8515 .) # We are building in place.
8517 ac_top_srcdir=$ac_top_builddir_sub
8518 ac_abs_top_srcdir=$ac_pwd ;;
8519 [\\/]* | ?:[\\/]* ) # Absolute name.
8520 ac_srcdir=$srcdir$ac_dir_suffix;
8521 ac_top_srcdir=$srcdir
8522 ac_abs_top_srcdir=$srcdir ;;
8524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8525 ac_top_srcdir=$ac_top_build_prefix$srcdir
8526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8539 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8543 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8544 # If the template does not know about datarootdir, expand it.
8545 # FIXME: This hack should be removed a few years after 2.60.
8546 ac_datarootdir_hack=; ac_datarootdir_seen=
8557 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8558 *datarootdir*) ac_datarootdir_seen=yes;;
8559 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8561 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8564 ac_datarootdir_hack='
8565 s&@datadir@&$datadir&g
8566 s&@docdir@&$docdir&g
8567 s&@infodir@&$infodir&g
8568 s&@localedir@&$localedir&g
8569 s&@mandir@&$mandir&g
8570 s&\\\${datarootdir}&$datarootdir&g' ;;
8574 # Neutralize VPATH when `$srcdir' = `.'.
8575 # Shell code in configure.ac might set extrasub.
8576 # FIXME: do we really want to maintain this feature?
8577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8578 ac_sed_extra="$ac_vpsub
8581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8584 s|@configure_input@|$ac_sed_conf_input|;t t
8585 s&@top_builddir@&$ac_top_builddir_sub&;t t
8586 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8587 s&@srcdir@&$ac_srcdir&;t t
8588 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8589 s&@top_srcdir@&$ac_top_srcdir&;t t
8590 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8591 s&@builddir@&$ac_builddir&;t t
8592 s&@abs_builddir@&$ac_abs_builddir&;t t
8593 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8594 s&@INSTALL@&$ac_INSTALL&;t t
8595 $ac_datarootdir_hack
8597 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8598 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8600 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8601 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8602 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8603 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8605 which seems to be undefined. Please make sure it is defined" >&5
8606 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8607 which seems to be undefined. Please make sure it is defined" >&2;}
8609 rm -f "$ac_tmp/stdin"
8611 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8612 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8614 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8620 if test x"$ac_file" != x-; then
8622 $as_echo "/* $configure_input */" \
8623 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8624 } >"$ac_tmp/config.h" \
8625 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8626 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8628 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8631 mv "$ac_tmp/config.h" "$ac_file" \
8632 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8635 $as_echo "/* $configure_input */" \
8636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8637 || as_fn_error $? "could not create -" "$LINENO" 5
8641 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8642 $as_echo "$as_me: executing $ac_file commands" >&6;}
8647 case $ac_file$ac_mode in
8649 case $CONFIG_FILES in *config.make*)
8650 echo "$config_vars" >> config.make;;
8652 test -d bits || mkdir bits ;;
8660 ac_clean_files=$ac_clean_files_save
8662 test $ac_write_fail = 0 ||
8663 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8666 # configure is writing to config.log, and then calls config.status.
8667 # config.status does its own redirection, appending to config.log.
8668 # Unfortunately, on DOS this fails, as config.log is still kept open
8669 # by configure, so config.status won't be able to write to it; its
8670 # output is simply discarded. So we exec the FD to /dev/null,
8671 # effectively closing config.log, so it can be properly (re)opened and
8672 # appended to by config.status. When coming back to configure, we
8673 # need to make the FD available again.
8674 if test "$no_create" != yes; then
8676 ac_config_status_args=
8677 test "$silent" = yes &&
8678 ac_config_status_args="$ac_config_status_args --quiet"
8680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8683 # would make configure fail if this is the last instruction.
8684 $ac_cs_success || as_fn_exit 1
8688 # CONFIG_SUBDIRS section.
8690 if test "$no_recursion" != yes; then
8692 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8693 # so they do not pile up.
8694 ac_sub_configure_args=
8696 eval "set x $ac_configure_args"
8700 if test -n "$ac_prev"; then
8705 -cache-file | --cache-file | --cache-fil | --cache-fi \
8706 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8707 ac_prev=cache_file ;;
8708 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8709 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8712 --config-cache | -C)
8714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8718 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8720 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8722 --disable-option-checking)
8726 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8728 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8732 # Always prepend --prefix to ensure using the same prefix
8733 # in subdir configurations.
8734 ac_arg="--prefix=$prefix"
8736 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8738 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8741 if test "$silent" = yes; then
8742 ac_sub_configure_args="--silent $ac_sub_configure_args"
8745 # Always prepend --disable-option-checking to silence warnings, since
8746 # different subdirs can have different --enable and --with options.
8747 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8750 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8752 # Do not complain, so a configure script can configure whichever
8753 # parts of a large source tree are present.
8754 test -d "$srcdir/$ac_dir" || continue
8756 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8757 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8758 $as_echo "$ac_msg" >&6
8759 as_dir="$ac_dir"; as_fn_mkdir_p
8763 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8765 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8766 # A ".." for each directory in $ac_dir_suffix.
8767 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8768 case $ac_top_builddir_sub in
8769 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8770 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8773 ac_abs_top_builddir=$ac_pwd
8774 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8775 # for backward compatibility:
8776 ac_top_builddir=$ac_top_build_prefix
8779 .) # We are building in place.
8781 ac_top_srcdir=$ac_top_builddir_sub
8782 ac_abs_top_srcdir=$ac_pwd ;;
8783 [\\/]* | ?:[\\/]* ) # Absolute name.
8784 ac_srcdir=$srcdir$ac_dir_suffix;
8785 ac_top_srcdir=$srcdir
8786 ac_abs_top_srcdir=$srcdir ;;
8788 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8789 ac_top_srcdir=$ac_top_build_prefix$srcdir
8790 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8792 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8797 # Check for guested configure; otherwise get Cygnus style configure.
8798 if test -f "$ac_srcdir/configure.gnu"; then
8799 ac_sub_configure=$ac_srcdir/configure.gnu
8800 elif test -f "$ac_srcdir/configure"; then
8801 ac_sub_configure=$ac_srcdir/configure
8802 elif test -f "$ac_srcdir/configure.in"; then
8803 # This should be Cygnus configure.
8804 ac_sub_configure=$ac_aux_dir/configure
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8807 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8811 # The recursion is here.
8812 if test -n "$ac_sub_configure"; then
8813 # Make the cache file name correct relative to the subdirectory.
8815 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8817 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8820 { $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
8821 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8822 # The eval makes quoting arguments work.
8823 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8824 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8825 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8831 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8833 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}