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 if (eval "$as_required") 2>/dev/null; then :
206 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 test -z "$as_dir" && as_dir=.
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir/$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
223 CONFIG_SHELL=$as_shell as_have_required=yes
224 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
233 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
239 if test "x$CONFIG_SHELL" != x; then :
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 *v*x* | *x*v* ) as_opts=-vx ;;
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 if test x$as_have_required = xno; then :
262 $as_echo "$0: This script requires a shell more modern than all"
263 $as_echo "$0: the shells that I found on your system."
264 if test x${ZSH_VERSION+set} = xset ; then
265 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 $as_echo "$0: Please tell bug-autoconf@gnu.org and
269 $0: http://sourceware.org/bugzilla/ about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
278 SHELL=${CONFIG_SHELL-/bin/sh}
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE= GREP_OPTIONS=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
289 # Portably unset VAR.
292 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 # Create "$as_dir" as a directory, including parents if necessary.
321 -*) as_dir=./$as_dir;;
323 test -d "$as_dir" || eval $as_mkdir_p || {
327 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 as_dirs="'$as_qdir' $as_dirs"
331 as_dir=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 test -d "$as_dir" && break
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p ()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
376 eval 'as_fn_append ()
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
400 as_val=`expr "$@" || test $? -eq 1`
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
412 as_status=$1; test $as_status -eq 0 && as_status=1
414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit $as_status
421 if expr a : '\(a\)' >/dev/null 2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
440 as_me=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
459 # Avoid depending upon Character Ranges.
460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits='0123456789'
464 as_cr_alnum=$as_cr_Letters$as_cr_digits
467 as_lineno_1=$LINENO as_lineno_1a=$LINENO
468 as_lineno_2=$LINENO as_lineno_2a=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 chmod +x "$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec=no; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
498 # Exit status is that of the last command.
502 ECHO_C= ECHO_N= ECHO_T=
503 case `echo -n x` in #(((((
505 case `echo 'xy\c'` in
506 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 rm -f conf$$ conf$$.exe conf$$.file
516 if test -d conf$$.dir; then
517 rm -f conf$$.dir/conf$$.file
520 mkdir conf$$.dir 2>/dev/null
522 if (echo >conf$$.file) 2>/dev/null; then
523 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 elif ln conf$$.file conf$$ 2>/dev/null; then
539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
540 rmdir conf$$.dir 2>/dev/null
542 if mkdir -p . 2>/dev/null; then
543 as_mkdir_p='mkdir -p "$as_dir"'
545 test -d ./-p && rmdir ./-p
550 as_executable_p=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev/null
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
570 ac_default_prefix=/usr/local
572 ac_config_libobj_dir=.
579 # Identity of this package.
580 PACKAGE_NAME='GNU C Library'
581 PACKAGE_TARNAME='glibc'
582 PACKAGE_VERSION='(see version.h)'
583 PACKAGE_STRING='GNU C Library (see version.h)'
584 PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
585 PACKAGE_URL='http://www.gnu.org/software/glibc/'
587 ac_unique_file="include/features.h"
588 enable_option_checking=no
589 ac_subst_vars='LTLIBOBJS
604 libc_cv_localstatedir
606 libc_cv_complocaledir
610 libc_cv_gcc_unwind_find_fde
613 libc_cv_cxx_thread_local
619 libc_cv_cc_loop_to_function
620 libc_cv_cc_submachine
622 libc_cv_mtls_dialect_gnu2
625 libc_cv_output_format
632 libc_cv_cc_with_libunwind
633 libc_cv_protected_data
670 libc_cv_static_nss_crypt
677 hardcoded_path_in_tests
678 enable_timezone_tools
735 program_transform_name
748 enable_option_checking
762 enable_timezone_tools
763 enable_hardcoded_path_in_tests
764 enable_stackguard_randomization
771 enable_maintainer_mode
785 ac_precious_vars='build_alias
800 # Initialize some variables set by options.
802 ac_init_version=false
803 ac_unrecognized_opts=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
814 program_transform_name=s,x,x,
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865 # Accept the important Cygnus configure options, so we can diagnose typos.
867 case $ac_dashdash$ac_option in
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
889 cache_file=config.cache ;;
891 -datadir | --datadir | --datadi | --datad)
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=no ;;
919 -docdir | --docdir | --docdi | --doc | --do)
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
943 eval enable_$ac_useropt=\$ac_optarg ;;
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
958 -help | --help | --hel | --he | -h)
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 htmldir=$ac_optarg ;;
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
988 -libdir | --libdir | --libdi | --libd)
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1079 -psdir | --psdir | --psdi | --psd | --ps)
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 sbindir=$ac_optarg ;;
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 sharedstatedir=$ac_optarg ;;
1105 -site | --site | --sit)
1107 -site=* | --site=* | --sit=*)
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1147 eval with_$ac_useropt=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1163 eval with_$ac_useropt=no ;;
1166 # Obsolete; use --with-x.
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1234 # Be sure to have absolute directory names.
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1247 target=$target_alias
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1261 test "$silent" = yes && exec 6>/dev/null
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1304 ac_srcdir_defaulted=no
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 # Report the --help message.
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1338 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1345 Defaults for the options are specified in brackets.
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1369 For better control, use the options below.
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --disable-sanity-checks really do not use threads (should not be used except
1412 in special situations) [default=yes]
1413 --enable-shared build shared library [default=yes if GNU ld]
1414 --enable-profile build profiled library [default=no]
1415 --disable-timezone-tools
1416 do not install timezone tools [default=install]
1417 --enable-hardcoded-path-in-tests
1418 hardcode newly built glibc path in tests
1420 --enable-stackguard-randomization
1421 initialize __stack_chk_guard canary with a random
1422 number at program start
1423 --enable-lock-elision=yes/no
1424 Enable lock elision for pthread mutexes by default
1425 --enable-add-ons[=DIRS...]
1426 configure and build add-ons in DIR1,DIR2,... search
1427 for add-ons if no parameter given
1428 --disable-hidden-plt do not hide internal function calls to avoid PLT
1429 --enable-bind-now disable lazy relocations in DSOs
1430 --enable-static-nss build static NSS modules [default=no]
1431 --disable-force-install don't force installation of files from this package,
1432 even if they are older than the installed files
1433 --enable-maintainer-mode
1434 enable make rules and dependencies not useful (and
1435 sometimes confusing) to the casual installer
1436 --enable-kernel=VERSION compile for compatibility with kernel not older than
1438 --enable-all-warnings enable all useful warnings gcc can issue
1439 --disable-werror do not build with -Werror
1440 --enable-multi-arch enable single DSO with optimizations for multiple
1442 --enable-nss-crypt enable libcrypt to use nss
1443 --enable-obsolete-rpc build and install the obsolete RPC code for
1445 --enable-systemtap enable systemtap static probe points [default=no]
1446 --disable-build-nscd disable building and installing the nscd daemon
1447 --disable-nscd library functions will not contact the nscd daemon
1448 --enable-pt_chown Enable building and installing pt_chown
1449 --enable-mathvec Enable building and installing mathvec [default
1450 depends on architecture]
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1455 --with-pkgversion=PKG Use PKG in the version string in place of "GNU libc"
1456 --with-bugurl=URL Direct users to URL to report a bug
1457 --with-gd=DIR find libgd include dir and library with prefix DIR
1458 --with-gd-include=DIR find libgd include files in DIR
1459 --with-gd-lib=DIR find libgd library files in DIR
1460 --with-fp if using floating-point hardware [default=yes]
1461 --with-binutils=PATH specify location of binutils (as and ld)
1462 --with-selinux if building with SELinux support
1463 --with-headers=PATH location of system headers to use (for example
1464 /usr/src/linux/include) [default=compiler default]
1465 --with-default-link do not use explicit linker scripts
1466 --with-cpu=CPU select code for CPU variant
1468 Some influential environment variables:
1469 CC C compiler command
1470 CFLAGS C compiler flags
1471 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1472 nonstandard directory <lib dir>
1473 LIBS libraries to pass to the linker, e.g. -l<library>
1474 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1475 you have headers in a nonstandard directory <include dir>
1477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
1480 Use these variables to override the choices made by `configure' or to help
1481 it to find libraries and programs with nonstandard names/locations.
1483 Report bugs to <http://sourceware.org/bugzilla/>.
1484 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1485 General help using GNU software: <http://www.gnu.org/gethelp/>.
1490 if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 ac_abs_top_builddir=$ac_pwd
1510 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511 # for backward compatibility:
1512 ac_top_builddir=$ac_top_build_prefix
1515 .) # We are building in place.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1545 test -n "$ac_init_help" && exit $ac_status
1546 if $ac_init_version; then
1548 GNU C Library configure (see version.h)
1549 generated by GNU Autoconf 2.69
1551 Copyright (C) 2012 Free Software Foundation, Inc.
1552 This configure script is free software; the Free Software Foundation
1553 gives unlimited permission to copy, distribute and modify it.
1558 ## ------------------------ ##
1559 ## Autoconf initialization. ##
1560 ## ------------------------ ##
1562 # ac_fn_c_try_compile LINENO
1563 # --------------------------
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1565 ac_fn_c_try_compile ()
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575 $as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1590 $as_echo "$as_me: failed program was:" >&5
1591 sed 's/^/| /' conftest.$ac_ext >&5
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1598 } # ac_fn_c_try_compile
1600 # ac_fn_cxx_try_compile LINENO
1601 # ----------------------------
1602 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1603 ac_fn_cxx_try_compile ()
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 rm -f conftest.$ac_objext
1607 if { { ac_try="$ac_compile"
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_compile") 2>conftest.err
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } && {
1623 test -z "$ac_cxx_werror_flag" ||
1624 test ! -s conftest.err
1625 } && test -s conftest.$ac_objext; then :
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1636 } # ac_fn_cxx_try_compile
1638 # ac_fn_cxx_try_link LINENO
1639 # -------------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_cxx_try_link ()
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 rm -f conftest.$ac_objext conftest$ac_exeext
1645 if { { ac_try="$ac_link"
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>conftest.err
1654 if test -s conftest.err; then
1655 grep -v '^ *+' conftest.err >conftest.er1
1656 cat conftest.er1 >&5
1657 mv -f conftest.er1 conftest.err
1659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660 test $ac_status = 0; } && {
1661 test -z "$ac_cxx_werror_flag" ||
1662 test ! -s conftest.err
1663 } && test -s conftest$ac_exeext && {
1664 test "$cross_compiling" = yes ||
1665 test -x conftest$ac_exeext
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1676 # interfere with the next link command; also delete a directory that is
1677 # left behind by Apple's compiler. We do this before executing the actions.
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status $ac_retval
1682 } # ac_fn_cxx_try_link
1684 # ac_fn_c_try_link LINENO
1685 # -----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded.
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest$ac_exeext
1691 if { { ac_try="$ac_link"
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>conftest.err
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest$ac_exeext && {
1710 test "$cross_compiling" = yes ||
1711 test -x conftest$ac_exeext
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1720 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1721 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1722 # interfere with the next link command; also delete a directory that is
1723 # left behind by Apple's compiler. We do this before executing the actions.
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1728 } # ac_fn_c_try_link
1729 cat >config.log <<_ACEOF
1730 This file contains any messages produced by compilers while
1731 running configure, to aid debugging if configure makes a mistake.
1733 It was created by GNU C Library $as_me (see version.h), which was
1734 generated by GNU Autoconf 2.69. Invocation command line was
1746 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1747 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1748 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1749 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1750 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1752 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1753 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1755 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1756 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1757 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1758 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1759 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1760 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1761 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769 test -z "$as_dir" && as_dir=.
1770 $as_echo "PATH: $as_dir"
1786 # Keep a trace of the command line.
1787 # Strip out --no-create and --no-recursion so they do not pile up.
1788 # Strip out --silent because we don't want to record it for future runs.
1789 # Also quote any args containing shell meta-characters.
1790 # Make two passes to allow for proper duplicate-argument suppression.
1794 ac_must_keep_next=false
1800 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1801 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1802 | -silent | --silent | --silen | --sile | --sil)
1805 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1810 as_fn_append ac_configure_args1 " '$ac_arg'"
1811 if test $ac_must_keep_next = true; then
1812 ac_must_keep_next=false # Got value, back to normal.
1815 *=* | --config-cache | -C | -disable-* | --disable-* \
1816 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1817 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1818 | -with-* | --with-* | -without-* | --without-* | --x)
1819 case "$ac_configure_args0 " in
1820 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1823 -* ) ac_must_keep_next=true ;;
1826 as_fn_append ac_configure_args " '$ac_arg'"
1831 { ac_configure_args0=; unset ac_configure_args0;}
1832 { ac_configure_args1=; unset ac_configure_args1;}
1834 # When interrupted or exit'd, cleanup temporary files, and complete
1835 # config.log. We remove comments because anyway the quotes in there
1836 # would cause problems or look ugly.
1837 # WARNING: Use '\'' to represent an apostrophe within the trap.
1838 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1839 trap 'exit_status=$?
1840 # Save into config.log some information that might help in debugging.
1844 $as_echo "## ---------------- ##
1845 ## Cache variables. ##
1846 ## ---------------- ##"
1848 # The following way of writing the cache mishandles newlines in values,
1850 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1851 eval ac_val=\$$ac_var
1855 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1856 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1859 _ | IFS | as_nl) ;; #(
1860 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1861 *) { eval $ac_var=; unset $ac_var;} ;;
1866 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1867 *${as_nl}ac_space=\ *)
1869 "s/'\''/'\''\\\\'\'''\''/g;
1870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1880 $as_echo "## ----------------- ##
1881 ## Output variables. ##
1882 ## ----------------- ##"
1884 for ac_var in $ac_subst_vars
1886 eval ac_val=\$$ac_var
1888 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1890 $as_echo "$ac_var='\''$ac_val'\''"
1894 if test -n "$ac_subst_files"; then
1895 $as_echo "## ------------------- ##
1896 ## File substitutions. ##
1897 ## ------------------- ##"
1899 for ac_var in $ac_subst_files
1901 eval ac_val=\$$ac_var
1903 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 $as_echo "$ac_var='\''$ac_val'\''"
1910 if test -s confdefs.h; then
1911 $as_echo "## ----------- ##
1918 test "$ac_signal" != 0 &&
1919 $as_echo "$as_me: caught signal $ac_signal"
1920 $as_echo "$as_me: exit $exit_status"
1922 rm -f core *.core core.conftest.* &&
1923 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926 for ac_signal in 1 2 13 15; do
1927 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1931 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1932 rm -f -r conftest* confdefs.h
1934 $as_echo "/* confdefs.h */" > confdefs.h
1936 # Predefined preprocessor variables.
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1946 cat >>confdefs.h <<_ACEOF
1947 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 cat >>confdefs.h <<_ACEOF
1955 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_URL "$PACKAGE_URL"
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer an explicitly selected file to automatically selected ones.
1967 if test -n "$CONFIG_SITE"; then
1968 # We do not want a PATH search for config.site.
1969 case $CONFIG_SITE in #((
1970 -*) ac_site_file1=./$CONFIG_SITE;;
1971 */*) ac_site_file1=$CONFIG_SITE;;
1972 *) ac_site_file1=./$CONFIG_SITE;;
1974 elif test "x$prefix" != xNONE; then
1975 ac_site_file1=$prefix/share/config.site
1976 ac_site_file2=$prefix/etc/config.site
1978 ac_site_file1=$ac_default_prefix/share/config.site
1979 ac_site_file2=$ac_default_prefix/etc/config.site
1981 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1983 test "x$ac_site_file" = xNONE && continue
1984 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1986 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1987 sed 's/^/| /' "$ac_site_file" >&5
1989 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1991 as_fn_error $? "failed to load site script $ac_site_file
1992 See \`config.log' for more details" "$LINENO" 5; }
1996 if test -r "$cache_file"; then
1997 # Some versions of bash will fail to source /dev/null (special files
1998 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1999 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2001 $as_echo "$as_me: loading cache $cache_file" >&6;}
2003 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2004 *) . "./$cache_file";;
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2009 $as_echo "$as_me: creating cache $cache_file" >&6;}
2013 # Check that the precious variables saved in the cache have kept the same
2015 ac_cache_corrupted=false
2016 for ac_var in $ac_precious_vars; do
2017 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2018 eval ac_new_set=\$ac_env_${ac_var}_set
2019 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2020 eval ac_new_val=\$ac_env_${ac_var}_value
2021 case $ac_old_set,$ac_new_set in
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2024 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2025 ac_cache_corrupted=: ;;
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2028 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2029 ac_cache_corrupted=: ;;
2032 if test "x$ac_old_val" != "x$ac_new_val"; then
2033 # differences in whitespace do not lead to failure.
2034 ac_old_val_w=`echo x $ac_old_val`
2035 ac_new_val_w=`echo x $ac_new_val`
2036 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2038 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2039 ac_cache_corrupted=:
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2042 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2043 eval $ac_var=\$ac_old_val
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2046 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2048 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2051 # Pass precious variables to config.status.
2052 if test "$ac_new_set" = set; then
2054 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2055 *) ac_arg=$ac_var=$ac_new_val ;;
2057 case " $ac_configure_args " in
2058 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2059 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2063 if $ac_cache_corrupted; then
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2067 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2068 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2070 ## -------------------- ##
2071 ## Main body of script. ##
2072 ## -------------------- ##
2075 ac_cpp='$CPP $CPPFLAGS'
2076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 ac_config_headers="$ac_config_headers config.h"
2085 for ac_dir in scripts "$srcdir"/scripts; do
2086 if test -f "$ac_dir/install-sh"; then
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2090 elif test -f "$ac_dir/install.sh"; then
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2094 elif test -f "$ac_dir/shtool"; then
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2100 if test -z "$ac_aux_dir"; then
2101 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2116 # Check whether --with-pkgversion was given.
2117 if test "${with_pkgversion+set}" = set; then :
2118 withval=$with_pkgversion; case "$withval" in
2119 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
2121 *) PKGVERSION="($withval) " ;;
2124 PKGVERSION="(GNU libc) "
2128 PKGVERSION_TEXI=`echo "$PKGVERSION" | sed 's/@/@@/g'`
2134 # Check whether --with-bugurl was given.
2135 if test "${with_bugurl+set}" = set; then :
2136 withval=$with_bugurl; case "$withval" in
2137 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
2140 *) BUGURL="$withval"
2144 BUGURL="http://www.gnu.org/software/libc/bugs.html"
2154 REPORT_BUGS_TO="<$BUGURL>"
2155 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
2162 cat >>confdefs.h <<_ACEOF
2163 #define PKGVERSION "$PKGVERSION"
2167 cat >>confdefs.h <<_ACEOF
2168 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
2172 # Glibc should not depend on any header files
2175 # We require GCC, and by default use its preprocessor. Override AC_PROG_CPP
2176 # here to work around the Autoconf issue discussed in
2177 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00721.html>.
2180 # We require GCC. Override _AC_PROG_CC_C89 here to work around the Autoconf
2181 # issue discussed in
2182 # <http://sourceware.org/ml/libc-alpha/2013-01/msg00757.html>.
2190 # Make sure we can run config.sub.
2191 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2192 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2195 $as_echo_n "checking build system type... " >&6; }
2196 if ${ac_cv_build+:} false; then :
2197 $as_echo_n "(cached) " >&6
2199 ac_build_alias=$build_alias
2200 test "x$ac_build_alias" = x &&
2201 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2202 test "x$ac_build_alias" = x &&
2203 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2204 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2205 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2209 $as_echo "$ac_cv_build" >&6; }
2210 case $ac_cv_build in
2212 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2215 ac_save_IFS=$IFS; IFS='-'
2221 # Remember, the first character of IFS is used to create $*,
2222 # except with old shells:
2225 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2229 $as_echo_n "checking host system type... " >&6; }
2230 if ${ac_cv_host+:} false; then :
2231 $as_echo_n "(cached) " >&6
2233 if test "x$host_alias" = x; then
2234 ac_cv_host=$ac_cv_build
2236 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2237 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2242 $as_echo "$ac_cv_host" >&6; }
2245 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2248 ac_save_IFS=$IFS; IFS='-'
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2258 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2263 ac_cpp='$CPP $CPPFLAGS'
2264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2267 if test -n "$ac_tool_prefix"; then
2268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2269 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if ${ac_cv_prog_CC+:} false; then :
2273 $as_echo_n "(cached) " >&6
2275 if test -n "$CC"; then
2276 ac_cv_prog_CC="$CC" # Let the user override the test.
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2285 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 if test -n "$CC"; then
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2298 $as_echo "$CC" >&6; }
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2301 $as_echo "no" >&6; }
2306 if test -z "$ac_cv_prog_CC"; then
2308 # Extract the first word of "gcc", so it can be a program name with args.
2309 set dummy gcc; ac_word=$2
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2311 $as_echo_n "checking for $ac_word... " >&6; }
2312 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2313 $as_echo_n "(cached) " >&6
2315 if test -n "$ac_ct_CC"; then
2316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2322 test -z "$as_dir" && as_dir=.
2323 for ac_exec_ext in '' $ac_executable_extensions; do
2324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2325 ac_cv_prog_ac_ct_CC="gcc"
2326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2336 if test -n "$ac_ct_CC"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2338 $as_echo "$ac_ct_CC" >&6; }
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2341 $as_echo "no" >&6; }
2344 if test "x$ac_ct_CC" = x; then
2347 case $cross_compiling:$ac_tool_warned in
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2351 ac_tool_warned=yes ;;
2359 if test -z "$CC"; then
2360 if test -n "$ac_tool_prefix"; then
2361 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2362 set dummy ${ac_tool_prefix}cc; ac_word=$2
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2364 $as_echo_n "checking for $ac_word... " >&6; }
2365 if ${ac_cv_prog_CC+:} false; then :
2366 $as_echo_n "(cached) " >&6
2368 if test -n "$CC"; then
2369 ac_cv_prog_CC="$CC" # Let the user override the test.
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_CC="${ac_tool_prefix}cc"
2379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2389 if test -n "$CC"; then
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2391 $as_echo "$CC" >&6; }
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2394 $as_echo "no" >&6; }
2400 if test -z "$CC"; then
2401 # Extract the first word of "cc", so it can be a program name with args.
2402 set dummy cc; ac_word=$2
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2404 $as_echo_n "checking for $ac_word... " >&6; }
2405 if ${ac_cv_prog_CC+:} false; then :
2406 $as_echo_n "(cached) " >&6
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2420 ac_prog_rejected=yes
2424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 if test $ac_prog_rejected = yes; then
2432 # We found a bogon in the path, so make sure we never use it.
2433 set dummy $ac_cv_prog_CC
2435 if test $# != 0; then
2436 # We chose a different compiler from the bogus one.
2437 # However, it has the same basename, so the bogon will be chosen
2438 # first if we set CC to just the basename; use the full file name.
2440 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2446 if test -n "$CC"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2448 $as_echo "$CC" >&6; }
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2451 $as_echo "no" >&6; }
2456 if test -z "$CC"; then
2457 if test -n "$ac_tool_prefix"; then
2458 for ac_prog in cl.exe
2460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2463 $as_echo_n "checking for $ac_word... " >&6; }
2464 if ${ac_cv_prog_CC+:} false; then :
2465 $as_echo_n "(cached) " >&6
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2477 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CC"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2490 $as_echo "$CC" >&6; }
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2497 test -n "$CC" && break
2500 if test -z "$CC"; then
2502 for ac_prog in cl.exe
2504 # Extract the first word of "$ac_prog", so it can be a program name with args.
2505 set dummy $ac_prog; ac_word=$2
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2507 $as_echo_n "checking for $ac_word... " >&6; }
2508 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2509 $as_echo_n "(cached) " >&6
2511 if test -n "$ac_ct_CC"; then
2512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518 test -z "$as_dir" && as_dir=.
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2521 ac_cv_prog_ac_ct_CC="$ac_prog"
2522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2532 if test -n "$ac_ct_CC"; then
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2534 $as_echo "$ac_ct_CC" >&6; }
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2537 $as_echo "no" >&6; }
2541 test -n "$ac_ct_CC" && break
2544 if test "x$ac_ct_CC" = x; then
2547 case $cross_compiling:$ac_tool_warned in
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2550 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2551 ac_tool_warned=yes ;;
2560 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error $? "no acceptable C compiler found in \$PATH
2563 See \`config.log' for more details" "$LINENO" 5; }
2565 # Provide some information about the compiler.
2566 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2569 for ac_option in --version -v -V -qversion; do
2570 { { ac_try="$ac_compiler $ac_option >&5"
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2576 $as_echo "$ac_try_echo"; } >&5
2577 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2579 if test -s conftest.err; then
2581 ... rest of stderr output deleted ...
2582 10q' conftest.err >conftest.er1
2583 cat conftest.er1 >&5
2585 rm -f conftest.er1 conftest.err
2586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2587 test $ac_status = 0; }
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2592 $as_echo_n "checking for suffix of object files... " >&6; }
2593 if ${ac_cv_objext+:} false; then :
2594 $as_echo_n "(cached) " >&6
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2607 rm -f conftest.o conftest.obj
2608 if { { ac_try="$ac_compile"
2610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2611 *) ac_try_echo=$ac_try;;
2613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2614 $as_echo "$ac_try_echo"; } >&5
2615 (eval "$ac_compile") 2>&5
2617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2618 test $ac_status = 0; }; then :
2619 for ac_file in conftest.o conftest.obj conftest.*; do
2620 test -f "$ac_file" || continue;
2622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2623 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2628 $as_echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2633 as_fn_error $? "cannot compute suffix of object files: cannot compile
2634 See \`config.log' for more details" "$LINENO" 5; }
2636 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2639 $as_echo "$ac_cv_objext" >&6; }
2640 OBJEXT=$ac_cv_objext
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2643 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2644 if ${ac_cv_c_compiler_gnu+:} false; then :
2645 $as_echo_n "(cached) " >&6
2647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648 /* end confdefs.h. */
2661 if ac_fn_c_try_compile "$LINENO"; then :
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2671 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2672 if test $ac_compiler_gnu = yes; then
2677 ac_test_CFLAGS=${CFLAGS+set}
2678 ac_save_CFLAGS=$CFLAGS
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2680 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2681 if ${ac_cv_prog_cc_g+:} false; then :
2682 $as_echo_n "(cached) " >&6
2684 ac_save_c_werror_flag=$ac_c_werror_flag
2685 ac_c_werror_flag=yes
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2699 if ac_fn_c_try_compile "$LINENO"; then :
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2714 if ac_fn_c_try_compile "$LINENO"; then :
2717 ac_c_werror_flag=$ac_save_c_werror_flag
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2730 if ac_fn_c_try_compile "$LINENO"; then :
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 ac_c_werror_flag=$ac_save_c_werror_flag
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2741 $as_echo "$ac_cv_prog_cc_g" >&6; }
2742 if test "$ac_test_CFLAGS" = set; then
2743 CFLAGS=$ac_save_CFLAGS
2744 elif test $ac_cv_prog_cc_g = yes; then
2745 if test "$GCC" = yes; then
2751 if test "$GCC" = yes; then
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 if test $host != $build; then
2765 for ac_prog in gcc cc
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768 set dummy $ac_prog; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_BUILD_CC+:} false; then :
2772 $as_echo_n "(cached) " >&6
2774 if test -n "$BUILD_CC"; then
2775 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_BUILD_CC="$ac_prog"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 BUILD_CC=$ac_cv_prog_BUILD_CC
2795 if test -n "$BUILD_CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
2797 $as_echo "$BUILD_CC" >&6; }
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2804 test -n "$BUILD_CC" && break
2809 # On Suns, sometimes $CPP names a directory.
2810 if test -n "$CPP" && test -d "$CPP"; then
2813 if test -z "$CPP"; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}readelf; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_READELF+:} false; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$READELF"; then
2826 ac_cv_prog_READELF="$READELF" # Let the user override the test.
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir=.
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 READELF=$ac_cv_prog_READELF
2846 if test -n "$READELF"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
2848 $as_echo "$READELF" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2856 if test -z "$ac_cv_prog_READELF"; then
2857 ac_ct_READELF=$READELF
2858 # Extract the first word of "readelf", so it can be a program name with args.
2859 set dummy readelf; ac_word=$2
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2861 $as_echo_n "checking for $ac_word... " >&6; }
2862 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
2863 $as_echo_n "(cached) " >&6
2865 if test -n "$ac_ct_READELF"; then
2866 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
2868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2875 ac_cv_prog_ac_ct_READELF="readelf"
2876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
2886 if test -n "$ac_ct_READELF"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
2888 $as_echo "$ac_ct_READELF" >&6; }
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2894 if test "x$ac_ct_READELF" = x; then
2897 case $cross_compiling:$ac_tool_warned in
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2901 ac_tool_warned=yes ;;
2903 READELF=$ac_ct_READELF
2906 READELF="$ac_cv_prog_READELF"
2910 # We need the C++ compiler only for testing.
2912 ac_cpp='$CXXCPP $CPPFLAGS'
2913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2916 if test -z "$CXX"; then
2917 if test -n "$CCC"; then
2920 if test -n "$ac_tool_prefix"; then
2921 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if ${ac_cv_prog_CXX+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 if test -n "$CXX"; then
2931 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 if test -n "$CXX"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2953 $as_echo "$CXX" >&6; }
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2960 test -n "$CXX" && break
2963 if test -z "$CXX"; then
2965 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2967 # Extract the first word of "$ac_prog", so it can be a program name with args.
2968 set dummy $ac_prog; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2972 $as_echo_n "(cached) " >&6
2974 if test -n "$ac_ct_CXX"; then
2975 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 ac_cv_prog_ac_ct_CXX="$ac_prog"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2995 if test -n "$ac_ct_CXX"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2997 $as_echo "$ac_ct_CXX" >&6; }
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3004 test -n "$ac_ct_CXX" && break
3007 if test "x$ac_ct_CXX" = x; then
3010 case $cross_compiling:$ac_tool_warned in
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3022 # Provide some information about the compiler.
3023 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3026 for ac_option in --version -v -V -qversion; do
3027 { { ac_try="$ac_compiler $ac_option >&5"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3036 if test -s conftest.err; then
3038 ... rest of stderr output deleted ...
3039 10q' conftest.err >conftest.er1
3040 cat conftest.er1 >&5
3042 rm -f conftest.er1 conftest.err
3043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3048 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3049 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3050 $as_echo_n "(cached) " >&6
3052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3053 /* end confdefs.h. */
3066 if ac_fn_cxx_try_compile "$LINENO"; then :
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3072 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3076 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3077 if test $ac_compiler_gnu = yes; then
3082 ac_test_CXXFLAGS=${CXXFLAGS+set}
3083 ac_save_CXXFLAGS=$CXXFLAGS
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3085 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3086 if ${ac_cv_prog_cxx_g+:} false; then :
3087 $as_echo_n "(cached) " >&6
3089 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3090 ac_cxx_werror_flag=yes
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3104 if ac_fn_cxx_try_compile "$LINENO"; then :
3105 ac_cv_prog_cxx_g=yes
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3119 if ac_fn_cxx_try_compile "$LINENO"; then :
3122 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3125 /* end confdefs.h. */
3135 if ac_fn_cxx_try_compile "$LINENO"; then :
3136 ac_cv_prog_cxx_g=yes
3138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3146 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3147 if test "$ac_test_CXXFLAGS" = set; then
3148 CXXFLAGS=$ac_save_CXXFLAGS
3149 elif test $ac_cv_prog_cxx_g = yes; then
3150 if test "$GXX" = yes; then
3156 if test "$GXX" = yes; then
3163 ac_cpp='$CPP $CPPFLAGS'
3164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 # It's useless to us if it can't link programs (e.g. missing -lstdc++).
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX can link programs" >&5
3171 $as_echo_n "checking whether $CXX can link programs... " >&6; }
3172 if ${libc_cv_cxx_link_ok+:} false; then :
3173 $as_echo_n "(cached) " >&6
3176 ac_cpp='$CXXCPP $CPPFLAGS'
3177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3181 # Default, dynamic case.
3182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183 /* end confdefs.h. */
3193 if ac_fn_cxx_try_link "$LINENO"; then :
3194 libc_cv_cxx_link_ok=yes
3196 libc_cv_cxx_link_ok=no
3198 rm -f core conftest.err conftest.$ac_objext \
3199 conftest$ac_exeext conftest.$ac_ext
3201 old_LDFLAGS="$LDFLAGS"
3202 LDFLAGS="$LDFLAGS -static"
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3211 std::cout << "Hello, world!";
3216 if ac_fn_cxx_try_link "$LINENO"; then :
3219 libc_cv_cxx_link_ok=no
3221 rm -f core conftest.err conftest.$ac_objext \
3222 conftest$ac_exeext conftest.$ac_ext
3223 LDFLAGS="$old_LDFLAGS"
3225 ac_cpp='$CPP $CPPFLAGS'
3226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_link_ok" >&5
3232 $as_echo "$libc_cv_cxx_link_ok" >&6; }
3233 if test $libc_cv_cxx_link_ok != yes; then :
3237 if test "`cd $srcdir; pwd -P`" = "`pwd -P`"; then
3238 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3241 # This will get text that should go into config.make.
3244 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3246 # Check whether --with-gd was given.
3247 if test "${with_gd+set}" = set; then :
3248 withval=$with_gd; case "$with_gd" in
3250 *) libgd_include="-I$withval/include"
3251 libgd_ldflags="-L$withval/lib" ;;
3257 # Check whether --with-gd-include was given.
3258 if test "${with_gd_include+set}" = set; then :
3259 withval=$with_gd_include; case "$with_gd_include" in
3261 *) libgd_include="-I$withval" ;;
3267 # Check whether --with-gd-lib was given.
3268 if test "${with_gd_lib+set}" = set; then :
3269 withval=$with_gd_lib; case "$with_gd_lib" in
3271 *) libgd_ldflags="-L$withval" ;;
3277 if test -n "$libgd_include"; then
3278 config_vars="$config_vars
3279 CFLAGS-memusagestat.c = $libgd_include"
3281 if test -n "$libgd_ldflags"; then
3282 config_vars="$config_vars
3283 libgd-LDFLAGS = $libgd_ldflags"
3287 # Check whether --with-fp was given.
3288 if test "${with_fp+set}" = set; then :
3289 withval=$with_fp; with_fp=$withval
3296 # Check whether --with-binutils was given.
3297 if test "${with_binutils+set}" = set; then :
3298 withval=$with_binutils; path_binutils=$withval
3304 # Check whether --with-selinux was given.
3305 if test "${with_selinux+set}" = set; then :
3306 withval=$with_selinux; with_selinux=$withval
3313 # Check whether --with-headers was given.
3314 if test "${with_headers+set}" = set; then :
3315 withval=$with_headers; sysheaders=$withval
3324 # Check whether --with-default-link was given.
3325 if test "${with_default_link+set}" = set; then :
3326 withval=$with_default_link; use_default_link=$withval
3328 use_default_link=default
3332 # Check whether --enable-sanity-checks was given.
3333 if test "${enable_sanity_checks+set}" = set; then :
3334 enableval=$enable_sanity_checks; enable_sanity=$enableval
3340 # Check whether --enable-shared was given.
3341 if test "${enable_shared+set}" = set; then :
3342 enableval=$enable_shared; shared=$enableval
3347 # Check whether --enable-profile was given.
3348 if test "${enable_profile+set}" = set; then :
3349 enableval=$enable_profile; profile=$enableval
3354 # Check whether --enable-timezone-tools was given.
3355 if test "${enable_timezone_tools+set}" = set; then :
3356 enableval=$enable_timezone_tools; enable_timezone_tools=$enableval
3358 enable_timezone_tools=yes
3363 # Check whether --enable-hardcoded-path-in-tests was given.
3364 if test "${enable_hardcoded_path_in_tests+set}" = set; then :
3365 enableval=$enable_hardcoded_path_in_tests; hardcoded_path_in_tests=$enableval
3367 hardcoded_path_in_tests=no
3372 # Check whether --enable-stackguard-randomization was given.
3373 if test "${enable_stackguard_randomization+set}" = set; then :
3374 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3376 enable_stackguard_randomize=no
3379 if test "$enable_stackguard_randomize" = yes; then
3380 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3384 # Check whether --enable-lock-elision was given.
3385 if test "${enable_lock_elision+set}" = set; then :
3386 enableval=$enable_lock_elision; enable_lock_elision=$enableval
3388 enable_lock_elision=no
3392 if test "$enable_lock_elision" = yes ; then
3393 $as_echo "#define ENABLE_LOCK_ELISION 1" >>confdefs.h
3397 # Check whether --enable-add-ons was given.
3398 if test "${enable_add_ons+set}" = set; then :
3399 enableval=$enable_add_ons;
3405 # Check whether --enable-hidden-plt was given.
3406 if test "${enable_hidden_plt+set}" = set; then :
3407 enableval=$enable_hidden_plt; hidden=$enableval
3412 if test "x$hidden" = xno; then
3413 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3417 # Check whether --enable-bind-now was given.
3418 if test "${enable_bind_now+set}" = set; then :
3419 enableval=$enable_bind_now; bindnow=$enableval
3425 if test "x$bindnow" = xyes; then
3426 $as_echo "#define BIND_NOW 1" >>confdefs.h
3430 # Check whether --enable-static-nss was given.
3431 if test "${enable_static_nss+set}" = set; then :
3432 enableval=$enable_static_nss; static_nss=$enableval
3437 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3439 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3443 # Check whether --enable-force-install was given.
3444 if test "${enable_force_install+set}" = set; then :
3445 enableval=$enable_force_install; force_install=$enableval
3452 # Check whether --enable-maintainer-mode was given.
3453 if test "${enable_maintainer_mode+set}" = set; then :
3454 enableval=$enable_maintainer_mode; maintainer=$enableval
3460 # Check whether --enable-kernel was given.
3461 if test "${enable_kernel+set}" = set; then :
3462 enableval=$enable_kernel; minimum_kernel=$enableval
3465 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3466 # Better nothing than this.
3469 if test "$minimum_kernel" = current; then
3470 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3474 # Check whether --enable-all-warnings was given.
3475 if test "${enable_all_warnings+set}" = set; then :
3476 enableval=$enable_all_warnings; all_warnings=$enableval
3481 # Check whether --enable-werror was given.
3482 if test "${enable_werror+set}" = set; then :
3483 enableval=$enable_werror; enable_werror=$enableval
3490 # Check whether --enable-multi-arch was given.
3491 if test "${enable_multi_arch+set}" = set; then :
3492 enableval=$enable_multi_arch; multi_arch=$enableval
3498 # Check whether --enable-nss-crypt was given.
3499 if test "${enable_nss_crypt+set}" = set; then :
3500 enableval=$enable_nss_crypt; nss_crypt=$enableval
3505 if test x$nss_crypt = xyes; then
3506 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3507 if test $? -ne 0; then
3508 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3510 old_CFLAGS="$CFLAGS"
3511 CFLAGS="$CFLAGS $nss_includes"
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h. */
3517 #include <nsslowhash.h>
3518 void f (void) { NSSLOW_Init (); }
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528 libc_cv_nss_crypt=yes
3531 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 old_LDFLAGS="$LDFLAGS"
3536 LIBS="$LIBS -lfreebl3"
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3541 #include <nsslowhash.h>
3550 if ac_fn_c_try_link "$LINENO"; then :
3551 libc_cv_nss_crypt=yes
3554 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3556 rm -f core conftest.err conftest.$ac_objext \
3557 conftest$ac_exeext conftest.$ac_ext
3558 # Check to see if there is a static NSS cryptographic library.
3559 # If there isn't then we can't link anything with libcrypt.a,
3560 # and that might mean disabling some static tests.
3561 LDFLAGS="$LDFLAGS -static"
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h. */
3566 #include <nsslowhash.h>
3575 if ac_fn_c_try_link "$LINENO"; then :
3576 libc_cv_static_nss_crypt=yes
3578 libc_cv_static_nss_crypt=no
3580 rm -f core conftest.err conftest.$ac_objext \
3581 conftest$ac_exeext conftest.$ac_ext
3582 LDFLAGS="$old_LDFLAGS"
3583 CFLAGS="$old_CFLAGS"
3586 libc_cv_nss_crypt=no
3587 libc_cv_static_nss_crypt=no
3593 # Check whether --enable-obsolete-rpc was given.
3594 if test "${enable_obsolete_rpc+set}" = set; then :
3595 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3597 link_obsolete_rpc=no
3602 if test "$link_obsolete_rpc" = yes; then
3603 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3607 # Check whether --enable-systemtap was given.
3608 if test "${enable_systemtap+set}" = set; then :
3609 enableval=$enable_systemtap; systemtap=$enableval
3614 if test "x$systemtap" != xno; then
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3616 $as_echo_n "checking for systemtap static probe support... " >&6; }
3617 if ${libc_cv_sdt+:} false; then :
3618 $as_echo_n "(cached) " >&6
3620 old_CFLAGS="$CFLAGS"
3621 CFLAGS="-std=gnu11 $CFLAGS"
3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3624 #include <sys/sdt.h>
3625 void foo (int i, void *p)
3627 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3628 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3631 if ac_fn_c_try_compile "$LINENO"; then :
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 CFLAGS="$old_CFLAGS"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3640 $as_echo "$libc_cv_sdt" >&6; }
3641 if test $libc_cv_sdt = yes; then
3642 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3644 elif test "x$systemtap" != xauto; then
3645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3647 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3648 See \`config.log' for more details" "$LINENO" 5; }
3652 # Check whether --enable-build-nscd was given.
3653 if test "${enable_build_nscd+set}" = set; then :
3654 enableval=$enable_build_nscd; build_nscd=$enableval
3661 # Note the use of $use_nscd is near the bottom of the file.
3662 # Check whether --enable-nscd was given.
3663 if test "${enable_nscd+set}" = set; then :
3664 enableval=$enable_nscd; use_nscd=$enableval
3670 # Check whether --enable-pt_chown was given.
3671 if test "${enable_pt_chown+set}" = set; then :
3672 enableval=$enable_pt_chown; build_pt_chown=$enableval
3678 if test "$build_pt_chown" = yes; then
3679 $as_echo "#define HAVE_PT_CHOWN 1" >>confdefs.h
3683 # The abi-tags file uses a fairly simplistic model for name recognition that
3684 # can't distinguish i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a
3685 # $host_os of `gnu*' here to be `gnu-gnu*' just so that it can tell.
3686 # This doesn't get used much beyond that, so it's fairly safe.
3691 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3695 # Check whether --enable-mathvec was given.
3696 if test "${enable_mathvec+set}" = set; then :
3697 enableval=$enable_mathvec; build_mathvec=$enableval
3699 build_mathvec=notset
3703 # We keep the original values in `$config_*' and never modify them, so we
3704 # can write them unchanged into config.make. Everything else uses
3705 # $machine, $vendor, and $os, and changes them whenever convenient.
3706 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3708 # Don't allow vendor == "unknown"
3709 test "$config_vendor" = unknown && config_vendor=
3710 config_os="`echo $config_os | sed 's/^unknown-//'`"
3712 # Some configurations imply other options.
3715 # The configure fragment of an add-on port can modify these to supplement
3716 # or override the table in the case statement below. No fragment should
3717 # ever change the config_* variables, however.
3718 machine=$config_machine
3719 vendor=$config_vendor
3725 # Check whether --with-cpu was given.
3726 if test "${with_cpu+set}" = set; then :
3727 withval=$with_cpu; case "$withval" in
3728 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3730 *) submachine="$withval" ;;
3736 # An preconfigure script can set this when it wants to disable the sanity
3740 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3743 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3744 for frag in $frags; do
3745 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3746 echo $ECHO_N "$name $ECHO_C" >&6
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3756 case "$enable_add_ons" in
3759 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3760 sed 's@/[^/]*$@@' | sort | uniq`
3761 add_ons_automatic=yes
3763 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3764 add_ons_automatic=no ;;
3770 if test x"$add_ons" != x; then
3771 for f in $add_ons; do
3772 # Some sanity checks
3776 *** It seems that you're using an old \`crypt' add-on. crypt is now
3777 *** part of glibc and using the old add-on will not work with this
3778 *** release. Start again with fresh sources and without the old
3779 *** \`crypt' add-on." "$LINENO" 5
3783 *** It seems that you're using an old \`localedata' add-on. localedata
3784 *** is now part of glibc and using the old add-on will not work with
3785 *** this release. Start again with fresh sources and without the old
3786 *** \`localedata' add-on." "$LINENO" 5
3791 # Now source each add-on's configure fragment.
3792 # The fragments can use $srcdir/$libc_add_on to find themselves,
3793 # and test $add_ons_automatic to see if they were explicitly requested.
3794 # A fragment can clear (or even change) $libc_add_on to affect
3795 # whether it goes into the list to be actually used in the build.
3797 for libc_add_on in $add_ons; do
3798 # Test whether such a directory really exists.
3799 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3800 case "$libc_add_on" in
3802 libc_add_on_srcdir=$libc_add_on
3805 test -d "$srcdir/$libc_add_on" || {
3806 if test -d "$libc_add_on"; then
3807 libc_add_on="`pwd`/$libc_add_on"
3809 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3812 libc_add_on_srcdir=$srcdir/$libc_add_on
3816 libc_add_on_frag=$libc_add_on_srcdir/configure
3817 libc_add_on_canonical=
3818 libc_add_on_config_subdirs=
3819 if test -r "$libc_add_on_frag"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3821 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3822 libc_add_on_canonical=unknown
3823 libc_add_on_subdirs=
3824 . "$libc_add_on_frag"
3825 test -z "$libc_add_on" || {
3826 configured_add_ons="$configured_add_ons $libc_add_on"
3827 if test "x$libc_add_on_canonical" = xunknown; then
3828 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3830 for d in $libc_add_on_subdirs; do
3831 case "$libc_add_on" in
3832 /*) subdir_srcdir="$libc_add_on" ;;
3833 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3837 d="${libc_add_on_canonical:-$libc_add_on}"
3843 subdir_srcdir="$subdir_srcdir/$d"
3846 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3847 add_on_subdirs="$add_on_subdirs $d"
3848 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3849 $d-srcdir = $subdir_srcdir"
3851 for d in $libc_add_on_config_subdirs; do
3853 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3855 if test ! -d "$libc_add_on_srcdir/$d"; then
3856 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
3858 case "$libc_add_on" in
3859 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3861 subdirs="$subdirs $libc_add_on/$d"
3865 if test -n "$libc_add_on"; then
3866 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
3869 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
3870 for frag in $frags; do
3871 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3872 echo $ECHO_N "$name $ECHO_C" >&6
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3878 use_add_ons="$use_add_ons $libc_add_on"
3879 add_ons_pfx="$add_ons_pfx $libc_add_on/"
3880 test -z "$libc_add_on_canonical" ||
3881 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
3884 # Use echo to strip excess whitespace.
3885 add_ons="`echo $use_add_ons`"
3892 ### By using the undocumented --enable-hacker-mode option for configure
3893 ### one can skip this test to make the configuration not fail for unsupported
3896 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3897 case "$machine-$host_os" in
3902 *** The GNU C library is currently unavailable for this platform.
3903 *** If you are interested in seeing glibc on this platform visit
3904 *** the \"How to submit a new port\" in the wiki:
3905 *** https://sourceware.org/glibc/wiki/#Development
3906 *** and join the community!" "$LINENO" 5
3911 # Set base_machine if not set by a preconfigure fragment.
3912 test -n "$base_machine" || base_machine=$machine
3915 # For the multi-arch option we need support in the assembler & linker.
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5
3917 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; }
3918 if ${libc_cv_ld_gnu_indirect_function+:} false; then :
3919 $as_echo_n "(cached) " >&6
3921 cat > conftest.S <<EOF
3922 .type foo,%gnu_indirect_function
3935 libc_cv_ld_gnu_indirect_function=no
3936 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
3937 -nostartfiles -nostdlib \
3938 -o conftest conftest.S 1>&5 2>&5; then
3939 # Do a link to see if the backend supports IFUNC relocs.
3940 $READELF -r conftest 1>&5
3941 LC_ALL=C $READELF -r conftest | grep 'no relocations' >/dev/null || {
3942 libc_cv_ld_gnu_indirect_function=yes
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_gnu_indirect_function" >&5
3948 $as_echo "$libc_cv_ld_gnu_indirect_function" >&6; }
3950 # Check if gcc supports attribute ifunc as it is used in libc_ifunc macro.
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc attribute ifunc support" >&5
3952 $as_echo_n "checking for gcc attribute ifunc support... " >&6; }
3953 if ${libc_cv_gcc_indirect_function+:} false; then :
3954 $as_echo_n "(cached) " >&6
3956 cat > conftest.c <<EOF
3957 extern int func (int);
3958 int used_func (int a)
3962 static void *resolver ()
3966 extern __typeof (func) func __attribute__ ((ifunc ("resolver")));
3968 libc_cv_gcc_indirect_function=no
3969 if ${CC-cc} -c conftest.c -o conftest.o 1>&5 \
3971 if $READELF -s conftest.o | grep IFUNC >/dev/null 2>&5; then
3972 libc_cv_gcc_indirect_function=yes
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_indirect_function" >&5
3978 $as_echo "$libc_cv_gcc_indirect_function" >&6; }
3980 if test x"$libc_cv_ld_gnu_indirect_function" != xyes; then
3981 if test x"$multi_arch" = xyes; then
3982 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
3987 if test x"$libc_cv_gcc_indirect_function" != xyes &&
3988 test x"$multi_arch" = xyes; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
3990 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&5
3991 $as_echo "$as_me: WARNING: --enable-multi-arch support recommends a gcc with gnu-indirect-function support.
3992 Please use a gcc which supports it by default or configure gcc with --enable-gnu-indirect-function" >&2;}
3995 if test x"$multi_arch" != xno; then
3996 multi_arch_d=/multiarch
3999 # Compute the list of sysdep directories for this configuration.
4000 # This can take a while to compute.
4001 sysdep_dir=$srcdir/sysdeps
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4003 $as_echo_n "checking sysdep dirs... " >&6; }
4004 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4005 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4007 test "x$base_os" != x || case "$os" in
4009 base_os=mach/hurd ;;
4011 base_os=unix/sysv ;;
4014 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4017 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4021 o=`echo $tail | sed 's/[0-9]*$//'`
4022 if test $o != $tail; then
4025 # For linux-gnu, try linux-gnu, then linux.
4026 o=`echo $tail | sed 's/-.*$//'`
4027 if test $o != $tail; then
4031 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4034 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4040 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4042 tail=$machine${submachine:+/$submachine}
4043 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4045 # Prepend the machine's FPU directory unless --without-fp.
4046 if test "$with_fp" = yes; then
4051 # For each machine term, try it with and then without /multiarch.
4052 for try_fpu in $maybe_fpu ''; do
4053 for try_multi in $multi_arch_d ''; do
4054 mach="$mach /$1$try_fpu$try_multi"
4061 # Find what sysdep directories exist.
4064 for b in $base ''; do
4065 for m0 in $mach ''; do
4066 for v in /$vendor ''; do
4067 test "$v" = / && continue
4068 for o in /$ostry ''; do
4069 test "$o" = / && continue
4070 for m in $mach ''; do
4071 for d in $add_ons_pfx ''; do
4072 for a in $add_ons_sfx ''; do
4073 try_suffix="$m0$b$v$o$m"
4074 if test -n "$try_suffix"; then
4075 try_srcdir="${srcdir}/"
4079 try="${d}sysdeps$try_suffix$a"
4080 test -n "$enable_debug_configure" &&
4081 echo "$0 DEBUG: try $try" >&2
4082 if test -d "$try_srcdir$try"; then
4083 sysnames="$sysnames $try"
4084 { test -n "$o" || test -n "$b"; } && os_used=t
4085 { test -n "$m" || test -n "$m0"; } && machine_used=t
4087 x*/$submachine) submachine_used=t ;;
4089 if test -n "$d"; then
4090 case "$sysnames_add_ons" in
4092 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4105 # If the assembler supports gnu_indirect_function symbol type and the
4106 # architecture supports multi-arch, we enable multi-arch by default.
4107 case $sysnames_add_ons$sysnames in
4111 test x"$multi_arch" = xdefault && multi_arch=no
4114 if test x"$multi_arch" != xno; then
4115 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4120 if test -z "$os_used" && test "$os" != none; then
4121 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4123 if test -z "$machine_used" && test "$machine" != none; then
4124 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4126 if test -z "$submachine_used" && test -n "$submachine"; then
4127 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4131 # We have now validated the configuration.
4133 # Expand the list of system names into a full list of directories
4134 # from each element's parent name and Implies file (if present).
4137 while test $# -gt 0; do
4141 case " $names " in *" $name "*)
4142 # Already in the list.
4146 # Report each name as we discover it, so there is no long pause in output.
4147 echo $ECHO_N "$name $ECHO_C" >&6
4149 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4153 *) xsrcdir=$srcdir/ ;;
4155 test -n "$enable_debug_configure" &&
4156 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4158 for implies_file in Implies Implies-before Implies-after; do
4159 implies_type=`echo $implies_file | sed s/-/_/`
4160 eval ${implies_type}=
4161 if test -f $xsrcdir$name/$implies_file; then
4162 # Collect more names from the `Implies' file (removing comments).
4163 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4164 for x in $implied_candidate; do
4166 if test -d $xsrcdir$name_base/$x; then
4167 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
4170 for d in $add_ons_pfx ''; do
4171 try="${d}sysdeps/$x"
4174 *) try_srcdir=$srcdir/ ;;
4176 test -n "$enable_debug_configure" &&
4177 echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
4178 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4180 eval "${implies_type}=\"\$${implies_type} \$try\""
4182 case "$sysnames_add_ons" in
4184 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4188 if test $found = no; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4190 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
4196 # Add NAME to the list of names.
4197 names="$names $name"
4199 # Find the parent of NAME, using the empty string if it has none.
4200 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4202 test -n "$enable_debug_configure" &&
4203 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
4204 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
4206 # Add the names implied by NAME, and NAME's parent (if it has one), to
4207 # the list of names to be processed (the argument list). We prepend the
4208 # implied names to the list and append the parent. We want implied
4209 # directories to come before further directories inferred from the
4210 # configuration components; this ensures that for sysv4, unix/common
4211 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4213 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
4214 test -n "$sysnames" && set $sysnames
4217 # Add the default directories.
4218 default_sysnames="sysdeps/generic"
4219 sysnames="$names $default_sysnames"
4221 # The other names were emitted during the scan.
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4223 $as_echo "$default_sysnames" >&6; }
4225 # Collect the list of add-ons that supply partial sysdeps trees.
4227 for add_on in $add_ons; do
4230 *) xsrcdir="$srcdir/" ;;
4233 test -d "$xsrcdir$add_on/sysdeps" || {
4234 case "$configured_add_ons " in
4237 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4243 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4244 case "$sysnames_add_ons" in
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4248 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4253 for d in $sysnames; do
4255 $add_on/sysdeps/*) ;;
4258 (cd "$xsrcdir$d" && for f in *[!~]; do
4261 for ff in $f/*.h; do
4262 test -d "$ff" || { test -e "$ff" && exit 88; }
4266 test -d "$f" || { test -e "$f" && exit 88; }
4270 if test $? -eq 88; then
4275 if test $found = no; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4277 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4285 # Find a good install program. We prefer a C program (faster),
4286 # so one script is as good as another. But avoid the broken or
4287 # incompatible versions:
4288 # SysV /etc/install, /usr/sbin/install
4289 # SunOS /usr/etc/install
4290 # IRIX /sbin/install
4292 # AmigaOS /C/install, which installs bootblocks on floppy discs
4293 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4294 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4295 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4296 # OS/2's system install, which has a completely different semantic
4297 # ./install, which can be erroneously created by make from ./install.sh.
4298 # Reject install programs that cannot install multiple files.
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4300 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4301 if test -z "$INSTALL"; then
4302 if ${ac_cv_path_install+:} false; then :
4303 $as_echo_n "(cached) " >&6
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 # Account for people who put trailing slashes in PATH elements.
4311 case $as_dir/ in #((
4312 ./ | .// | /[cC]/* | \
4313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4317 # OSF1 and SCO ODT 3.0 have their own names for install.
4318 # Don't use installbsd from OSF since it installs stuff as root
4320 for ac_prog in ginstall scoinst install; do
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4323 if test $ac_prog = install &&
4324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4325 # AIX install. It has an incompatible calling convention.
4327 elif test $ac_prog = install &&
4328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4329 # program-specific install script used by HP pwplus--don't use.
4332 rm -rf conftest.one conftest.two conftest.dir
4333 echo one > conftest.one
4334 echo two > conftest.two
4336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4337 test -s conftest.one && test -s conftest.two &&
4338 test -s conftest.dir/conftest.one &&
4339 test -s conftest.dir/conftest.two
4341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4354 rm -rf conftest.one conftest.two conftest.dir
4357 if test "${ac_cv_path_install+set}" = set; then
4358 INSTALL=$ac_cv_path_install
4360 # As a last resort, use the slow shell script. Don't cache a
4361 # value for INSTALL within a source directory, because that will
4362 # break other packages using the cache if that directory is
4363 # removed, or if the value is a relative name.
4364 INSTALL=$ac_install_sh
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4368 $as_echo "$INSTALL" >&6; }
4370 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4371 # It thinks the first close brace ends the variable substitution.
4372 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4374 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4376 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4378 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4379 # The makefiles need to use a different form to find it in $srcdir.
4380 INSTALL='\$(..)./scripts/install-sh -c'
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4383 $as_echo_n "checking whether ln -s works... " >&6; }
4385 if test "$LN_S" = "ln -s"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4387 $as_echo "yes" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4390 $as_echo "no, using $LN_S" >&6; }
4394 # Was a --with-binutils option given?
4395 if test -n "$path_binutils"; then
4396 # Make absolute; ensure a single trailing slash.
4397 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4398 CC="$CC -B$path_binutils"
4400 AS=`$CC -print-prog-name=as`
4401 LD=`$CC -print-prog-name=ld`
4402 AR=`$CC -print-prog-name=ar`
4404 OBJDUMP=`$CC -print-prog-name=objdump`
4406 OBJCOPY=`$CC -print-prog-name=objcopy`
4409 # Determine whether we are using GNU binutils.
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4411 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4412 if ${libc_cv_prog_as_gnu+:} false; then :
4413 $as_echo_n "(cached) " >&6
4415 # Most GNU programs take a -v and spit out some text including
4416 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4417 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4418 libc_cv_prog_as_gnu=yes
4420 libc_cv_prog_as_gnu=no
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4425 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4427 gnu_as=$libc_cv_prog_as_gnu
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4430 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4431 if ${libc_cv_prog_ld_gnu+:} false; then :
4432 $as_echo_n "(cached) " >&6
4434 # Most GNU programs take a -v and spit out some text including
4435 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4436 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4437 libc_cv_prog_ld_gnu=yes
4439 libc_cv_prog_ld_gnu=no
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4444 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4445 gnu_ld=$libc_cv_prog_ld_gnu
4448 # Accept binutils 2.22 or newer.
4451 # Extract the first word of "$ac_prog", so it can be a program name with args.
4452 set dummy $ac_prog; ac_word=$2
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4454 $as_echo_n "checking for $ac_word... " >&6; }
4455 if ${ac_cv_prog_AS+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 if test -n "$AS"; then
4459 ac_cv_prog_AS="$AS" # Let the user override the test.
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_prog_AS="$ac_prog"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 if test -n "$AS"; then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4481 $as_echo "$AS" >&6; }
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4484 $as_echo "no" >&6; }
4488 test -n "$AS" && break
4491 if test -z "$AS"; then
4494 # Found it, now check the version.
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4496 $as_echo_n "checking version of $AS... " >&6; }
4497 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4498 case $ac_prog_version in
4499 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4500 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4501 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4502 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4506 $as_echo "$ac_prog_version" >&6; }
4508 if test $ac_verc_fail = yes; then
4509 AS=: critic_missing="$critic_missing as"
4514 # Extract the first word of "$ac_prog", so it can be a program name with args.
4515 set dummy $ac_prog; ac_word=$2
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4517 $as_echo_n "checking for $ac_word... " >&6; }
4518 if ${ac_cv_prog_LD+:} false; then :
4519 $as_echo_n "(cached) " >&6
4521 if test -n "$LD"; then
4522 ac_cv_prog_LD="$LD" # Let the user override the test.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_prog_LD="$ac_prog"
4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 if test -n "$LD"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4544 $as_echo "$LD" >&6; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4551 test -n "$LD" && break
4554 if test -z "$LD"; then
4557 # Found it, now check the version.
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4559 $as_echo_n "checking version of $LD... " >&6; }
4560 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4561 case $ac_prog_version in
4562 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4563 2.1[0-9][0-9]*|2.2[2-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
4564 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4565 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4569 $as_echo "$ac_prog_version" >&6; }
4571 if test $ac_verc_fail = yes; then
4572 LD=: critic_missing="$critic_missing ld"
4576 # These programs are version sensitive.
4578 for ac_prog in gnumake gmake make
4580 # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if ${ac_cv_prog_MAKE+:} false; then :
4585 $as_echo_n "(cached) " >&6
4587 if test -n "$MAKE"; then
4588 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_MAKE="$ac_prog"
4598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 MAKE=$ac_cv_prog_MAKE
4608 if test -n "$MAKE"; then
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4610 $as_echo "$MAKE" >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4617 test -n "$MAKE" && break
4620 if test -z "$MAKE"; then
4623 # Found it, now check the version.
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4625 $as_echo_n "checking version of $MAKE... " >&6; }
4626 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4627 case $ac_prog_version in
4628 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4629 3.79* | 3.[89]* | [4-9].* | [1-9][0-9]*)
4630 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4631 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4635 $as_echo "$ac_prog_version" >&6; }
4637 if test $ac_verc_fail = yes; then
4638 critic_missing="$critic_missing make"
4642 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4644 # Extract the first word of "$ac_prog", so it can be a program name with args.
4645 set dummy $ac_prog; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if ${ac_cv_prog_MSGFMT+:} false; then :
4649 $as_echo_n "(cached) " >&6
4651 if test -n "$MSGFMT"; then
4652 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_MSGFMT="$ac_prog"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 MSGFMT=$ac_cv_prog_MSGFMT
4672 if test -n "$MSGFMT"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4674 $as_echo "$MSGFMT" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4681 test -n "$MSGFMT" && break
4684 if test -z "$MSGFMT"; then
4687 # Found it, now check the version.
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4689 $as_echo_n "checking version of $MSGFMT... " >&6; }
4690 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4691 case $ac_prog_version in
4692 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4693 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4694 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4695 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4699 $as_echo "$ac_prog_version" >&6; }
4701 if test $ac_verc_fail = yes; then
4702 MSGFMT=: aux_missing="$aux_missing msgfmt"
4705 for ac_prog in makeinfo
4707 # Extract the first word of "$ac_prog", so it can be a program name with args.
4708 set dummy $ac_prog; ac_word=$2
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4710 $as_echo_n "checking for $ac_word... " >&6; }
4711 if ${ac_cv_prog_MAKEINFO+:} false; then :
4712 $as_echo_n "(cached) " >&6
4714 if test -n "$MAKEINFO"; then
4715 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 test -z "$as_dir" && as_dir=.
4722 for ac_exec_ext in '' $ac_executable_extensions; do
4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4724 ac_cv_prog_MAKEINFO="$ac_prog"
4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 MAKEINFO=$ac_cv_prog_MAKEINFO
4735 if test -n "$MAKEINFO"; then
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4737 $as_echo "$MAKEINFO" >&6; }
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4740 $as_echo "no" >&6; }
4744 test -n "$MAKEINFO" && break
4747 if test -z "$MAKEINFO"; then
4750 # Found it, now check the version.
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4752 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4753 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4754 case $ac_prog_version in
4755 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4756 4.[7-9]*|4.[1-9][0-9]*|[5-9].*)
4757 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4758 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4762 $as_echo "$ac_prog_version" >&6; }
4764 if test $ac_verc_fail = yes; then
4765 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4770 # Extract the first word of "$ac_prog", so it can be a program name with args.
4771 set dummy $ac_prog; ac_word=$2
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4773 $as_echo_n "checking for $ac_word... " >&6; }
4774 if ${ac_cv_prog_SED+:} false; then :
4775 $as_echo_n "(cached) " >&6
4777 if test -n "$SED"; then
4778 ac_cv_prog_SED="$SED" # Let the user override the test.
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_prog_SED="$ac_prog"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 if test -n "$SED"; then
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4800 $as_echo "$SED" >&6; }
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4803 $as_echo "no" >&6; }
4807 test -n "$SED" && break
4810 if test -z "$SED"; then
4813 # Found it, now check the version.
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4815 $as_echo_n "checking version of $SED... " >&6; }
4816 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4817 case $ac_prog_version in
4818 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4819 3.0[2-9]*|3.[1-9]*|[4-9]*)
4820 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4821 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4825 $as_echo "$ac_prog_version" >&6; }
4827 if test $ac_verc_fail = yes; then
4828 SED=: aux_missing="$aux_missing sed"
4833 # Extract the first word of "$ac_prog", so it can be a program name with args.
4834 set dummy $ac_prog; ac_word=$2
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4836 $as_echo_n "checking for $ac_word... " >&6; }
4837 if ${ac_cv_prog_AWK+:} false; then :
4838 $as_echo_n "(cached) " >&6
4840 if test -n "$AWK"; then
4841 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4850 ac_cv_prog_AWK="$ac_prog"
4851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 if test -n "$AWK"; then
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4863 $as_echo "$AWK" >&6; }
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4866 $as_echo "no" >&6; }
4870 test -n "$AWK" && break
4873 if test -z "$AWK"; then
4876 # Found it, now check the version.
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AWK" >&5
4878 $as_echo_n "checking version of $AWK... " >&6; }
4879 ac_prog_version=`$AWK --version 2>&1 | sed -n 's/^.*GNU Awk[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4880 case $ac_prog_version in
4881 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4882 3.1.[2-9]*|3.[2-9]*|[4-9]*)
4883 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4884 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4888 $as_echo "$ac_prog_version" >&6; }
4890 if test $ac_verc_fail = yes; then
4891 critic_missing="$critic_missing gawk"
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is sufficient to build libc" >&5
4896 $as_echo_n "checking if $CC is sufficient to build libc... " >&6; }
4897 if ${libc_cv_compiler_ok+:} false; then :
4898 $as_echo_n "(cached) " >&6
4901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4902 /* end confdefs.h. */
4908 #if !defined __GNUC__ || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4909 #error insufficient compiler
4915 if ac_fn_c_try_compile "$LINENO"; then :
4916 libc_cv_compiler_ok=yes
4918 libc_cv_compiler_ok=no
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_compiler_ok" >&5
4923 $as_echo "$libc_cv_compiler_ok" >&6; }
4924 if test $libc_cv_compiler_ok != yes; then :
4925 critic_missing="$critic_missing compiler"
4928 if test -n "$ac_tool_prefix"; then
4929 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4930 set dummy ${ac_tool_prefix}nm; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_prog_NM+:} false; then :
4934 $as_echo_n "(cached) " >&6
4936 if test -n "$NM"; then
4937 ac_cv_prog_NM="$NM" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_NM="${ac_tool_prefix}nm"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 if test -n "$NM"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4959 $as_echo "$NM" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4967 if test -z "$ac_cv_prog_NM"; then
4969 # Extract the first word of "nm", so it can be a program name with args.
4970 set dummy nm; ac_word=$2
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972 $as_echo_n "checking for $ac_word... " >&6; }
4973 if ${ac_cv_prog_ac_ct_NM+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 if test -n "$ac_ct_NM"; then
4977 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir=.
4984 for ac_exec_ext in '' $ac_executable_extensions; do
4985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4986 ac_cv_prog_ac_ct_NM="nm"
4987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4997 if test -n "$ac_ct_NM"; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4999 $as_echo "$ac_ct_NM" >&6; }
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002 $as_echo "no" >&6; }
5005 if test "x$ac_ct_NM" = x; then
5008 case $cross_compiling:$ac_tool_warned in
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5012 ac_tool_warned=yes ;;
5021 if test "x$maintainer" = "xyes"; then
5022 for ac_prog in autoconf
5024 # Extract the first word of "$ac_prog", so it can be a program name with args.
5025 set dummy $ac_prog; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if ${ac_cv_prog_AUTOCONF+:} false; then :
5029 $as_echo_n "(cached) " >&6
5031 if test -n "$AUTOCONF"; then
5032 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041 ac_cv_prog_AUTOCONF="$ac_prog"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 AUTOCONF=$ac_cv_prog_AUTOCONF
5052 if test -n "$AUTOCONF"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5054 $as_echo "$AUTOCONF" >&6; }
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5061 test -n "$AUTOCONF" && break
5063 test -n "$AUTOCONF" || AUTOCONF="no"
5065 case "x$AUTOCONF" in
5066 xno|x|x:) AUTOCONF=no ;;
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5069 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5070 if ${libc_cv_autoconf_works+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.ac > /dev/null 2>&1); then
5074 libc_cv_autoconf_works=yes
5076 libc_cv_autoconf_works=no
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5080 $as_echo "$libc_cv_autoconf_works" >&6; }
5081 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5084 if test "x$AUTOCONF" = xno; then
5085 aux_missing="$aux_missing autoconf"
5091 # Check for python3 if available, or else python.
5092 for ac_prog in python3 python
5094 # Extract the first word of "$ac_prog", so it can be a program name with args.
5095 set dummy $ac_prog; ac_word=$2
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097 $as_echo_n "checking for $ac_word... " >&6; }
5098 if ${ac_cv_prog_PYTHON_PROG+:} false; then :
5099 $as_echo_n "(cached) " >&6
5101 if test -n "$PYTHON_PROG"; then
5102 ac_cv_prog_PYTHON_PROG="$PYTHON_PROG" # Let the user override the test.
5104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111 ac_cv_prog_PYTHON_PROG="$ac_prog"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 PYTHON_PROG=$ac_cv_prog_PYTHON_PROG
5122 if test -n "$PYTHON_PROG"; then
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_PROG" >&5
5124 $as_echo "$PYTHON_PROG" >&6; }
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127 $as_echo "no" >&6; }
5131 test -n "$PYTHON_PROG" && break
5133 test -n "$PYTHON_PROG" || PYTHON_PROG="no"
5135 case "x$PYTHON_PROG" in
5136 xno|x|x:) PYTHON_PROG=no ;;
5140 if test "x$PYTHON_PROG" = xno; then
5141 aux_missing="$aux_missing python"
5143 PYTHON="$PYTHON_PROG -B"
5147 test -n "$critic_missing" && as_fn_error $? "
5148 *** These critical programs are missing or too old:$critic_missing
5149 *** Check the INSTALL file for required versions." "$LINENO" 5
5151 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5152 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5153 *** some features or tests will be disabled.
5154 *** Check the INSTALL file for required versions." >&5
5155 $as_echo "$as_me: WARNING:
5156 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5157 *** some features or tests will be disabled.
5158 *** Check the INSTALL file for required versions." >&2;}
5160 # if using special system headers, find out the compiler's sekrit
5161 # header directory and add that to the list. NOTE: Only does the right
5162 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5163 if test -n "$sysheaders"; then
5164 SYSINCLUDES=-nostdinc
5165 for d in include include-fixed; do
5166 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5167 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5169 SYSINCLUDES="$SYSINCLUDES \
5170 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5171 if test -n "$CXX"; then
5173 for cxxheaders in `$CXX -v -S -x c++ /dev/null -o /dev/null 2>&1 \
5174 | sed -n -e '1,/#include/d' -e 's/^ \(\/.*\/[cg]++\)/\1/p'`; do
5175 test "x$cxxheaders" != x &&
5176 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders"
5183 # Obtain some C++ header file paths. This is used to make a local
5184 # copy of those headers in Makerules.
5185 if test -n "$CXX"; then
5186 find_cxx_header () {
5187 echo "#include <$1>" | $CXX -M -MP -x c++ - | sed -n "/$1:/{s/:\$//;p}"
5189 CXX_CSTDLIB_HEADER="$(find_cxx_header cstdlib)"
5190 CXX_CMATH_HEADER="$(find_cxx_header cmath)"
5195 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5196 # since this would lead to problems installing/building glibc.
5197 # LD_LIBRARY_PATH contains the current directory if one of the following
5199 # - one of the terminals (":" and ";") is the first or last sign
5200 # - two terminals occur directly after each other
5201 # - the path contains an element with a dot in it
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5203 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5204 case ${LD_LIBRARY_PATH} in
5205 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5206 ld_library_path_setting="contains current directory"
5209 ld_library_path_setting="ok"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5213 $as_echo "$ld_library_path_setting" >&6; }
5214 if test "$ld_library_path_setting" != "ok"; then
5216 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5217 *** building glibc. Please change the environment variable
5218 *** and run configure again." "$LINENO" 5
5221 # Extract the first word of "bash", so it can be a program name with args.
5222 set dummy bash; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_path_BASH_SHELL+:} false; then :
5226 $as_echo_n "(cached) " >&6
5230 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5252 BASH_SHELL=$ac_cv_path_BASH_SHELL
5253 if test -n "$BASH_SHELL"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5255 $as_echo "$BASH_SHELL" >&6; }
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5263 # Extract the first word of "perl", so it can be a program name with args.
5264 set dummy perl; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if ${ac_cv_path_PERL+:} false; then :
5268 $as_echo_n "(cached) " >&6
5272 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 test -z "$as_dir" && as_dir=.
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5282 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5290 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5294 PERL=$ac_cv_path_PERL
5295 if test -n "$PERL"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5297 $as_echo "$PERL" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5304 if test "$PERL" != no &&
5305 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5308 # Extract the first word of "install-info", so it can be a program name with args.
5309 set dummy install-info; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 case $INSTALL_INFO in
5317 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5322 for as_dir in $as_dummy
5325 test -z "$as_dir" && as_dir=.
5326 for ac_exec_ext in '' $ac_executable_extensions; do
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5340 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5341 if test -n "$INSTALL_INFO"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5343 $as_echo "$INSTALL_INFO" >&6; }
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5350 for ac_prog in bison
5352 # Extract the first word of "$ac_prog", so it can be a program name with args.
5353 set dummy $ac_prog; ac_word=$2
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355 $as_echo_n "checking for $ac_word... " >&6; }
5356 if ${ac_cv_prog_BISON+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 if test -n "$BISON"; then
5360 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 test -z "$as_dir" && as_dir=.
5367 for ac_exec_ext in '' $ac_executable_extensions; do
5368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5369 ac_cv_prog_BISON="$ac_prog"
5370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 BISON=$ac_cv_prog_BISON
5380 if test -n "$BISON"; then
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5382 $as_echo "$BISON" >&6; }
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385 $as_echo "no" >&6; }
5389 test -n "$BISON" && break
5392 if test -z "$BISON"; then
5395 # Found it, now check the version.
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $BISON" >&5
5397 $as_echo_n "checking version of $BISON... " >&6; }
5398 ac_prog_version=`$BISON --version 2>&1 | sed -n 's/^.*bison (GNU Bison) \([0-9]*\.[0-9.]*\).*$/\1/p'`
5399 case $ac_prog_version in
5400 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5401 2.7*|[3-9].*|[1-9][0-9]*)
5402 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5403 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5407 $as_echo "$ac_prog_version" >&6; }
5409 if test $ac_verc_fail = yes; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5415 $as_echo_n "checking for .set assembler directive... " >&6; }
5416 if ${libc_cv_asm_set_directive+:} false; then :
5417 $as_echo_n "(cached) " >&6
5419 cat > conftest.s <<EOF
5422 .set glibc_conftest_frobozz,foo
5423 .globl glibc_conftest_frobozz
5425 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5426 # (but it doesn't work), so we must do a linking check to be sure.
5427 cat > conftest1.c <<\EOF
5428 extern int glibc_conftest_frobozz;
5429 void _start() { glibc_conftest_frobozz = 1; }
5431 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5432 -nostartfiles -nostdlib \
5433 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5434 libc_cv_asm_set_directive=yes
5436 libc_cv_asm_set_directive=no
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5441 $as_echo "$libc_cv_asm_set_directive" >&6; }
5442 if test $libc_cv_asm_set_directive = yes; then
5443 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for protected data symbol" >&5
5448 $as_echo_n "checking linker support for protected data symbol... " >&6; }
5449 if ${libc_cv_protected_data+:} false; then :
5450 $as_echo_n "(cached) " >&6
5452 cat > conftest.c <<EOF
5453 int bar __attribute__ ((visibility ("protected"))) = 1;
5455 libc_cv_protected_data=no
5456 if { ac_try='${CC-cc} -nostdlib -nostartfiles -fPIC -shared conftest.c -o conftest.so'
5457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5461 test $ac_status = 0; }; }; then
5462 cat > conftest.c <<EOF
5464 int main (void) { return bar; }
5466 if { ac_try='${CC-cc} -nostdlib -nostartfiles conftest.c -o conftest conftest.so'
5467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5471 test $ac_status = 0; }; }; then
5472 libc_cv_protected_data=yes
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_protected_data" >&5
5479 $as_echo "$libc_cv_protected_data" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5483 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5484 if ${libc_cv_broken_alias_attribute+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 cat > conftest.c <<EOF
5488 extern int foo (int x) __asm ("xyzzy");
5489 int bar (int x) { return x; }
5490 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5492 extern __typeof (dfoo) dfoo __asm ("abccb");
5495 libc_cv_broken_alias_attribute=yes
5496 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5501 test $ac_status = 0; }; }; then
5502 if grep 'xyzzy' conftest.s >/dev/null &&
5503 grep 'abccb' conftest.s >/dev/null; then
5504 libc_cv_broken_alias_attribute=no
5507 rm -f conftest.c conftest.s
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5511 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5512 if test $libc_cv_broken_alias_attribute = yes; then
5513 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5517 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5518 if ${libc_cv_have_sdata_section+:} false; then :
5519 $as_echo_n "(cached) " >&6
5521 echo "int i;" > conftest.c
5522 libc_cv_have_sdata_section=no
5523 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5524 | grep '\.sdata' >/dev/null; then
5525 libc_cv_have_sdata_section=yes
5527 rm -f conftest.c conftest.so
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
5531 $as_echo "$libc_cv_have_sdata_section" >&6; }
5532 if test $libc_cv_have_sdata_section = yes; then
5533 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
5538 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
5539 if ${libc_cv_ctors_header+:} false; then :
5540 $as_echo_n "(cached) " >&6
5542 libc_cv_ctors_header=yes
5543 cat > conftest.c <<EOF
5544 int _start (void) { return 0; }
5545 int __start (void) { return 0; }
5547 __attribute__ ((constructor)) void ctor (void) { asm (""); }
5548 __attribute__ ((destructor)) void dtor (void) { asm (""); }
5551 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
5552 conftest.c -static -nostartfiles -nostdlib
5554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; }; }; then :
5559 if $READELF -WS conftest$ac_exeext | $AWK '
5560 { gsub(/\[ */, "[") }
5561 $2 == ".ctors" || $2 == ".dtors" {
5562 size = strtonum("0x" $6)
5563 align = strtonum("0x" $NF)
5565 stub[$2] = size == align * 2
5568 ctors_ok = !seen[".ctors"] || stub[".ctors"]
5569 dtors_ok = !seen[".dtors"] || stub[".dtors"]
5570 exit ((ctors_ok && dtors_ok) ? 0 : 1)
5573 libc_cv_ctors_header=no
5577 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
5584 $as_echo "$libc_cv_ctors_header" >&6; }
5585 if test $libc_cv_ctors_header = no; then
5586 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
5591 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
5592 if ${libc_cv_cc_with_libunwind+:} false; then :
5593 $as_echo_n "(cached) " >&6
5596 cat > conftest.c <<EOF
5597 int main (void) { return 0; }
5599 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
5600 conftest.c -v 2>&1 >/dev/null | grep ' -lunwind ' >/dev/null; then
5601 libc_cv_cc_with_libunwind=yes
5603 libc_cv_cc_with_libunwind=no
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
5608 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
5610 if test $libc_cv_cc_with_libunwind = yes; then
5611 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
5617 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
5618 if ${libc_cv_as_noexecstack+:} false; then :
5619 $as_echo_n "(cached) " >&6
5621 cat > conftest.c <<EOF
5624 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
5625 -S -o conftest.s conftest.c 1>&5'
5626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; }; } \
5631 && grep .note.GNU-stack conftest.s >/dev/null \
5632 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
5633 -c -o conftest.o conftest.s 1>&5'
5634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5638 test $ac_status = 0; }; }
5640 libc_cv_as_noexecstack=yes
5642 libc_cv_as_noexecstack=no
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
5647 $as_echo "$libc_cv_as_noexecstack" >&6; }
5648 if test $libc_cv_as_noexecstack = yes; then
5649 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
5654 $as_echo_n "checking for -z combreloc... " >&6; }
5655 if ${libc_cv_z_combreloc+:} false; then :
5656 $as_echo_n "(cached) " >&6
5658 cat > conftest.c <<EOF
5659 extern int bar (int);
5661 int foo (void) { return bar (mumble); }
5663 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5664 -fPIC -shared -o conftest.so conftest.c
5665 -nostdlib -nostartfiles
5666 -Wl,-z,combreloc 1>&5'
5667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5671 test $ac_status = 0; }; }
5673 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
5674 libc_cv_z_combreloc=yes
5676 libc_cv_z_combreloc=no
5679 libc_cv_z_combreloc=no
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
5684 $as_echo "$libc_cv_z_combreloc" >&6; }
5685 if test "$libc_cv_z_combreloc" = yes; then
5686 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker that supports -z execstack" >&5
5692 $as_echo_n "checking for linker that supports -z execstack... " >&6; }
5693 libc_linker_feature=no
5694 if test x"$gnu_ld" = x"yes"; then
5695 libc_linker_check=`$LD -v --help 2>/dev/null | grep "\-z execstack"`
5696 if test -n "$libc_linker_check"; then
5697 cat > conftest.c <<EOF
5698 int _start (void) { return 42; }
5700 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5701 -Wl,-z,execstack -nostdlib -nostartfiles
5702 -fPIC -shared -o conftest.so conftest.c
5704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5708 test $ac_status = 0; }; }
5710 libc_linker_feature=yes
5715 if test $libc_linker_feature = yes; then
5716 libc_cv_z_execstack=yes
5718 libc_cv_z_execstack=no
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_linker_feature" >&5
5721 $as_echo "$libc_linker_feature" >&6; }
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
5725 $as_echo_n "checking for -fpie... " >&6; }
5726 if ${libc_cv_fpie+:} false; then :
5727 $as_echo_n "(cached) " >&6
5729 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
5730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5734 test $ac_status = 0; }; }; then :
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
5742 $as_echo "$libc_cv_fpie" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
5747 $as_echo_n "checking for --hash-style option... " >&6; }
5748 if ${libc_cv_hashstyle+:} false; then :
5749 $as_echo_n "(cached) " >&6
5751 cat > conftest.c <<EOF
5752 int _start (void) { return 42; }
5754 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5755 -fPIC -shared -o conftest.so conftest.c
5756 -Wl,--hash-style=both -nostdlib 1>&5'
5757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }; }
5763 libc_cv_hashstyle=yes
5765 libc_cv_hashstyle=no
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
5770 $as_echo "$libc_cv_hashstyle" >&6; }
5773 # The linker's default -shared behavior is good enough if it
5774 # does these things that our custom linker scripts ensure that
5775 # all allocated NOTE sections come first.
5776 if test "$use_default_link" = default; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
5778 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
5779 if ${libc_cv_use_default_link+:} false; then :
5780 $as_echo_n "(cached) " >&6
5782 libc_cv_use_default_link=no
5783 cat > conftest.s <<\EOF
5784 .section .note.a,"a",%note
5789 .section .note.b,"a",%note
5795 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
5796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5800 test $ac_status = 0; }; } &&
5801 ac_try=`$READELF -S conftest.so | sed -n \
5803 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
5809 libc_seen_a=no libc_seen_b=no
5811 while test $# -ge 2 -a "$1" = NOTE; do
5813 .note.a) libc_seen_a=yes ;;
5814 .note.b) libc_seen_b=yes ;;
5818 case "$libc_seen_a$libc_seen_b" in
5820 libc_cv_use_default_link=yes
5824 $libc_seen_a$libc_seen_b from:
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
5832 $as_echo "$libc_cv_use_default_link" >&6; }
5833 use_default_link=$libc_cv_use_default_link
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLOB_DAT reloc" >&5
5837 $as_echo_n "checking for GLOB_DAT reloc... " >&6; }
5838 if ${libc_cv_has_glob_dat+:} false; then :
5839 $as_echo_n "(cached) " >&6
5841 cat > conftest.c <<EOF
5843 int foo (void) { return mumble; }
5845 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
5846 -fPIC -shared -o conftest.so conftest.c
5847 -nostdlib -nostartfiles
5849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5853 test $ac_status = 0; }; }
5855 if $READELF -rW conftest.so | grep '_GLOB_DAT' > /dev/null; then
5856 libc_cv_has_glob_dat=yes
5858 libc_cv_has_glob_dat=no
5861 libc_cv_has_glob_dat=no
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_has_glob_dat" >&5
5866 $as_echo "$libc_cv_has_glob_dat" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
5870 $as_echo_n "checking linker output format... " >&6; }
5871 if ${libc_cv_output_format+:} false; then :
5872 $as_echo_n "(cached) " >&6
5874 if libc_cv_output_format=`
5875 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
5879 libc_cv_output_format=
5881 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
5884 $as_echo "$libc_cv_output_format" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
5888 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
5889 if ${libc_cv_fno_toplevel_reorder+:} false; then :
5890 $as_echo_n "(cached) " >&6
5892 cat > conftest.c <<EOF
5895 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
5897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5901 test $ac_status = 0; }; }
5903 libc_cv_fno_toplevel_reorder=yes
5905 libc_cv_fno_toplevel_reorder=no
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
5910 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
5911 if test $libc_cv_fno_toplevel_reorder = yes; then
5912 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
5914 fno_unit_at_a_time=-fno-unit-at-a-time
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
5919 $as_echo_n "checking for -fstack-protector... " >&6; }
5920 if ${libc_cv_ssp+:} false; then :
5921 $as_echo_n "(cached) " >&6
5923 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
5924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928 test $ac_status = 0; }; }; then :
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
5936 $as_echo "$libc_cv_ssp" >&6; }
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector-strong" >&5
5939 $as_echo_n "checking for -fstack-protector-strong... " >&6; }
5940 if ${libc_cv_ssp_strong+:} false; then :
5941 $as_echo_n "(cached) " >&6
5943 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector-strong -xc /dev/null -S -o /dev/null'
5944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5948 test $ac_status = 0; }; }; then :
5949 libc_cv_ssp_strong=yes
5951 libc_cv_ssp_strong=no
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp_strong" >&5
5956 $as_echo "$libc_cv_ssp_strong" >&6; }
5959 if test "$libc_cv_ssp_strong" = "yes"; then
5960 stack_protector="-fstack-protector-strong"
5961 elif test "$libc_cv_ssp" = "yes"; then
5962 stack_protector="-fstack-protector"
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -mtls-dialect=gnu2" >&5
5967 $as_echo_n "checking for -mtls-dialect=gnu2... " >&6; }
5968 if ${libc_cv_mtls_dialect_gnu2+:} false; then :
5969 $as_echo_n "(cached) " >&6
5971 cat > conftest.c <<EOF
5978 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fPIC -mtls-dialect=gnu2
5980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5984 test $ac_status = 0; }; }
5986 libc_cv_mtls_dialect_gnu2=yes
5988 libc_cv_mtls_dialect_gnu2=no
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_mtls_dialect_gnu2" >&5
5993 $as_echo "$libc_cv_mtls_dialect_gnu2" >&6; }
5995 config_vars="$config_vars
5996 have-mtls-dialect-gnu2 = $libc_cv_mtls_dialect_gnu2"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
5999 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6000 if ${libc_cv_have_section_quotes+:} false; then :
6001 $as_echo_n "(cached) " >&6
6003 cat > conftest.c <<EOF
6004 static const int foo
6005 __attribute__ ((section ("bar"))) = 1;
6007 if ${CC-cc} -S conftest.c -o conftest.s; then
6008 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6009 libc_cv_have_section_quotes=yes
6011 libc_cv_have_section_quotes=no
6014 libc_cv_have_section_quotes=unknown
6016 rm -f conftest.{c,s}
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6020 $as_echo "$libc_cv_have_section_quotes" >&6; }
6021 if test $libc_cv_have_section_quotes = yes; then
6022 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6027 $as_echo_n "checking for __builtin_memset... " >&6; }
6028 if ${libc_cv_gcc_builtin_memset+:} false; then :
6029 $as_echo_n "(cached) " >&6
6031 cat > conftest.c <<\EOF
6034 __builtin_memset (x, 0, 1000);
6037 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6042 test $ac_status = 0; }; };
6044 libc_cv_gcc_builtin_memset=no
6046 libc_cv_gcc_builtin_memset=yes
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6051 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6052 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6053 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6058 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6059 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6060 $as_echo_n "(cached) " >&6
6062 cat > conftest.c <<\EOF
6063 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6064 char *foo (const char *a, const char *b)
6066 return __builtin_strstr (a, b);
6069 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074 test $ac_status = 0; }; };
6076 libc_cv_gcc_builtin_redirection=yes
6078 libc_cv_gcc_builtin_redirection=no
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6083 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6084 if test "$libc_cv_gcc_builtin_redirection" = no; then
6085 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6089 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6090 if ${libc_cv_cc_nofma+:} false; then :
6091 $as_echo_n "(cached) " >&6
6094 for opt in -ffp-contract=off -mno-fused-madd; do
6095 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6100 test $ac_status = 0; }; }; then :
6101 libc_cv_cc_nofma=$opt; break
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
6106 $as_echo "$libc_cv_cc_nofma" >&6; }
6109 if test -n "$submachine"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
6111 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
6112 if ${libc_cv_cc_submachine+:} false; then :
6113 $as_echo_n "(cached) " >&6
6115 libc_cv_cc_submachine=no
6116 for opt in "-march=$submachine" "-mcpu=$submachine"; do
6117 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6122 test $ac_status = 0; }; }; then :
6124 libc_cv_cc_submachine="$opt"
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
6130 $as_echo "$libc_cv_cc_submachine" >&6; }
6131 if test "x$libc_cv_cc_submachine" = xno; then
6132 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6138 __attribute__ ((__optimize__))" >&5
6139 $as_echo_n "checking if $CC accepts -fno-tree-loop-distribute-patterns with \
6140 __attribute__ ((__optimize__))... " >&6; }
6141 if ${libc_cv_cc_loop_to_function+:} false; then :
6142 $as_echo_n "(cached) " >&6
6144 cat > conftest.c <<EOF
6146 __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
6149 libc_cv_cc_loop_to_function=no
6150 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c'
6151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6155 test $ac_status = 0; }; }
6157 libc_cv_cc_loop_to_function=yes
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_loop_to_function" >&5
6162 $as_echo "$libc_cv_cc_loop_to_function" >&6; }
6163 if test $libc_cv_cc_loop_to_function = yes; then
6164 $as_echo "#define HAVE_CC_INHIBIT_LOOP_TO_LIBCALL 1" >>confdefs.h
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
6170 $as_echo_n "checking for libgd... " >&6; }
6171 if test "$with_gd" != "no"; then
6172 old_CFLAGS="$CFLAGS"
6173 CFLAGS="$CFLAGS $libgd_include"
6174 old_LDFLAGS="$LDFLAGS"
6175 LDFLAGS="$LDFLAGS $libgd_ldflags"
6177 LIBS="$LIBS -lgd -lpng -lz -lm"
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6189 if ac_fn_c_try_link "$LINENO"; then :
6194 rm -f core conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6196 CFLAGS="$old_CFLAGS"
6197 LDFLAGS="$old_LDFLAGS"
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
6203 $as_echo "$LIBGD" >&6; }
6207 if test x$with_selinux = xno ; then
6210 # See if we have the SELinux library
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
6212 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
6213 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
6214 $as_echo_n "(cached) " >&6
6216 ac_check_lib_save_LIBS=$LIBS
6217 LIBS="-lselinux $LIBS"
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6221 /* Override any GCC internal prototype to avoid an error.
6222 Use char because int might match the return type of a GCC
6223 builtin and then its argument prototype would still apply. */
6227 char is_selinux_enabled ();
6231 return is_selinux_enabled ();
6236 if ac_fn_c_try_link "$LINENO"; then :
6237 ac_cv_lib_selinux_is_selinux_enabled=yes
6239 ac_cv_lib_selinux_is_selinux_enabled=no
6241 rm -f core conftest.err conftest.$ac_objext \
6242 conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
6246 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
6247 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
6253 if test x$with_selinux = xyes ; then
6254 if test x$have_selinux = xno ; then
6255 as_fn_error $? "SELinux explicitly required, but SELinux library not found" "$LINENO" 5
6259 # Check if we're building with SELinux support.
6260 if test "x$have_selinux" = xyes; then
6262 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
6265 # See if we have the libaudit library
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
6267 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
6268 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
6269 $as_echo_n "(cached) " >&6
6271 ac_check_lib_save_LIBS=$LIBS
6272 LIBS="-laudit $LIBS"
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6276 /* Override any GCC internal prototype to avoid an error.
6277 Use char because int might match the return type of a GCC
6278 builtin and then its argument prototype would still apply. */
6282 char audit_log_user_avc_message ();
6286 return audit_log_user_avc_message ();
6291 if ac_fn_c_try_link "$LINENO"; then :
6292 ac_cv_lib_audit_audit_log_user_avc_message=yes
6294 ac_cv_lib_audit_audit_log_user_avc_message=no
6296 rm -f core conftest.err conftest.$ac_objext \
6297 conftest$ac_exeext conftest.$ac_ext
6298 LIBS=$ac_check_lib_save_LIBS
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
6301 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
6302 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
6308 if test "x$have_libaudit" = xyes; then
6310 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
6315 # See if we have the libcap library
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
6317 $as_echo_n "checking for cap_init in -lcap... " >&6; }
6318 if ${ac_cv_lib_cap_cap_init+:} false; then :
6319 $as_echo_n "(cached) " >&6
6321 ac_check_lib_save_LIBS=$LIBS
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6326 /* Override any GCC internal prototype to avoid an error.
6327 Use char because int might match the return type of a GCC
6328 builtin and then its argument prototype would still apply. */
6341 if ac_fn_c_try_link "$LINENO"; then :
6342 ac_cv_lib_cap_cap_init=yes
6344 ac_cv_lib_cap_cap_init=no
6346 rm -f core conftest.err conftest.$ac_objext \
6347 conftest$ac_exeext conftest.$ac_ext
6348 LIBS=$ac_check_lib_save_LIBS
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
6351 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
6352 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
6358 if test "x$have_libcap" = xyes; then
6360 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
6369 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
6370 if ${libc_cv_predef_fortify_source+:} false; then :
6371 $as_echo_n "(cached) " >&6
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6380 #ifdef _FORTIFY_SOURCE
6387 if ac_fn_c_try_compile "$LINENO"; then :
6388 libc_cv_predef_fortify_source=no
6390 libc_cv_predef_fortify_source=yes
6392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
6395 $as_echo "$libc_cv_predef_fortify_source" >&6; }
6396 if test $libc_cv_predef_fortify_source = yes; then
6397 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5
6402 $as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; }
6403 if ${libc_cv_predef_stack_protector+:} false; then :
6404 $as_echo_n "(cached) " >&6
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 extern void foobar (char *);
6413 char large_array[2048]; foobar (large_array);
6418 if ac_fn_c_try_compile "$LINENO"; then :
6420 libc_undefs=`$NM -u conftest.o |
6421 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6423 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6425 echo >&5 "libc_undefs='$libc_undefs'"
6426 # On some architectures, there are architecture-specific undefined
6427 # symbols (resolved by the linker), so filter out unknown symbols.
6428 # This will fail to produce the correct result if the compiler
6429 # defaults to -fstack-protector but this produces an undefined symbol
6430 # other than __stack_chk_fail or __stack_chk_fail_local. However,
6431 # compilers like that have not been encountered in practice.
6432 libc_undefs=`echo "$libc_undefs" | \
6433 egrep '^(foobar|__stack_chk_fail|__stack_chk_fail_local)$'`
6434 case "$libc_undefs" in
6435 foobar) libc_cv_predef_stack_protector=no ;;
6437 foobar'|'__stack_chk_fail_local
6438 foobar') libc_cv_predef_stack_protector=yes ;;
6439 *) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;;
6442 as_fn_error $? "test compilation failed" "$LINENO" 5
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5
6448 $as_echo "$libc_cv_predef_stack_protector" >&6; }
6450 if test $libc_cv_predef_stack_protector = yes; then
6451 libc_extra_cflags="$libc_extra_cflags -fno-stack-protector"
6453 libc_extra_cppflags=
6455 # Some linkers on some architectures support __ehdr_start but with
6456 # bugs. Make sure usage of it does not create relocations in the
6457 # output (as the linker should resolve them all for us).
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker provides working __ehdr_start" >&5
6459 $as_echo_n "checking whether the linker provides working __ehdr_start... " >&6; }
6460 if ${libc_cv_ehdr_start+:} false; then :
6461 $as_echo_n "(cached) " >&6
6464 old_CFLAGS="$CFLAGS"
6465 old_LDFLAGS="$LDFLAGS"
6467 CFLAGS="$CFLAGS -fPIC"
6468 LDFLAGS="$LDFLAGS -nostdlib -nostartfiles -shared"
6470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6471 /* end confdefs.h. */
6477 extern const Ehdr __ehdr_start __attribute__ ((visibility ("hidden")));
6478 long ehdr (void) { return __ehdr_start.val; }
6481 if ac_fn_c_try_link "$LINENO"; then :
6482 if $READELF -r conftest | fgrep __ehdr_start >/dev/null; then
6483 libc_cv_ehdr_start=broken
6485 libc_cv_ehdr_start=yes
6488 libc_cv_ehdr_start=no
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6492 CFLAGS="$old_CFLAGS"
6493 LDFLAGS="$old_LDFLAGS"
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ehdr_start" >&5
6498 $as_echo "$libc_cv_ehdr_start" >&6; }
6499 if test "$libc_cv_ehdr_start" = yes; then
6500 $as_echo "#define HAVE_EHDR_START 1" >>confdefs.h
6502 elif test "$libc_cv_ehdr_start" = broken; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linker is broken -- you should upgrade" >&5
6504 $as_echo "$as_me: WARNING: linker is broken -- you should upgrade" >&2;}
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap with no external dependencies" >&5
6508 $as_echo_n "checking for __builtin_trap with no external dependencies... " >&6; }
6509 if ${libc_cv_builtin_trap+:} false; then :
6510 $as_echo_n "(cached) " >&6
6512 libc_cv_builtin_trap=no
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6524 if ac_fn_c_try_compile "$LINENO"; then :
6526 libc_undefs=`$NM -u conftest.o |
6527 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
6529 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
6531 echo >&5 "libc_undefs='$libc_undefs'"
6532 if test -z "$libc_undefs"; then
6533 libc_cv_builtin_trap=yes
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_builtin_trap" >&5
6539 $as_echo "$libc_cv_builtin_trap" >&6; }
6540 if test $libc_cv_builtin_trap = yes; then
6541 $as_echo "#define HAVE_BUILTIN_TRAP 1" >>confdefs.h
6546 ac_cpp='$CXXCPP $CPPFLAGS'
6547 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6548 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6549 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler supports thread_local" >&5
6553 $as_echo_n "checking whether the C++ compiler supports thread_local... " >&6; }
6554 if ${libc_cv_cxx_thread_local+:} false; then :
6555 $as_echo_n "(cached) " >&6
6558 old_CXXFLAGS="$CXXFLAGS"
6559 CXXFLAGS="$CXXFLAGS -std=gnu++11"
6560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6561 /* end confdefs.h. */
6565 // Compiler support.
6572 S * get () { return &s; }
6574 // libstdc++ support.
6575 #ifndef _GLIBCXX_HAVE___CXA_THREAD_ATEXIT_IMPL
6576 #error __cxa_thread_atexit_impl not supported
6580 if ac_fn_cxx_try_compile "$LINENO"; then :
6581 libc_cv_cxx_thread_local=yes
6583 libc_cv_cxx_thread_local=no
6585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 CXXFLAGS="$old_CXXFLAGS"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cxx_thread_local" >&5
6590 $as_echo "$libc_cv_cxx_thread_local" >&6; }
6594 ac_cpp='$CPP $CPPFLAGS'
6595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6600 ### End of automated tests.
6601 ### Now run sysdeps configure fragments.
6603 # They also can set these variables.
6605 ldd_rewrite_script=no
6606 libc_cv_sysconfdir=$sysconfdir
6607 libc_cv_localstatedir=$localstatedir
6608 libc_cv_gcc_unwind_find_fde=no
6611 # Iterate over all the sysdep directories we will use, running their
6612 # configure fragments.
6613 for dir in $sysnames; do
6616 *) dest=$srcdir/$dir ;;
6618 if test -r $dest/configure; then
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
6620 $as_echo "running configure fragment for $dir" >&6; }
6625 if test x"$build_mathvec" = xnotset; then
6628 config_vars="$config_vars
6629 build-mathvec = $build_mathvec"
6634 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
6635 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
6640 # A sysdeps configure fragment can reset this if IFUNC is not actually
6641 # usable even though the assembler knows how to generate the symbol type.
6642 if test x"$libc_cv_ld_gnu_indirect_function" = xyes; then
6643 $as_echo "#define HAVE_IFUNC 1" >>confdefs.h
6647 if test x"$libc_cv_gcc_indirect_function" = xyes; then
6648 $as_echo "#define HAVE_GCC_IFUNC 1" >>confdefs.h
6652 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
6653 # configure fragment can override the value to prevent this AC_DEFINE.
6655 if test "x$use_nscd" != xno; then
6656 $as_echo "#define USE_NSCD 1" >>confdefs.h
6659 if test "x$build_nscd" = xdefault; then
6660 build_nscd=$use_nscd
6670 if test x$use_ldconfig = xyes; then
6671 $as_echo "#define USE_LDCONFIG 1" >>confdefs.h
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
6681 $as_echo_n "checking whether -fPIC is default... " >&6; }
6682 if ${libc_cv_pic_default+:} false; then :
6683 $as_echo_n "(cached) " >&6
6685 libc_cv_pic_default=yes
6686 cat > conftest.c <<EOF
6687 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
6688 # error PIC is default.
6691 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6692 libc_cv_pic_default=no
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
6697 $as_echo "$libc_cv_pic_default" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is default" >&5
6701 $as_echo_n "checking whether -fPIE is default... " >&6; }
6702 if ${libc_cv_pie_default+:} false; then :
6703 $as_echo_n "(cached) " >&6
6705 libc_cv_pie_default=yes
6706 cat > conftest.c <<EOF
6707 #if defined __PIE__ || defined __pie__ || defined PIE || defined pie
6708 # error PIE is default.
6711 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
6712 libc_cv_pie_default=no
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pie_default" >&5
6717 $as_echo "$libc_cv_pie_default" >&6; }
6727 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
6728 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
6732 ac_config_files="$ac_config_files config.make Makefile"
6734 ac_config_commands="$ac_config_commands default"
6736 cat >confcache <<\_ACEOF
6737 # This file is a shell script that caches the results of configure
6738 # tests run on this system so they can be shared between configure
6739 # scripts and configure runs, see configure's option --config-cache.
6740 # It is not useful on other systems. If it contains results you don't
6741 # want to keep, you may remove or edit it.
6743 # config.status only pays attention to the cache file if you give it
6744 # the --recheck option to rerun configure.
6746 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6747 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6752 # The following way of writing the cache mishandles newlines in values,
6753 # but we know of no workaround that is simple, portable, and efficient.
6754 # So, we kill variables containing newlines.
6755 # Ultrix sh set writes to stderr and can't be redirected directly,
6756 # and sets the high bit in the cache file unless we assign to the vars.
6758 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6759 eval ac_val=\$$ac_var
6763 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6764 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6767 _ | IFS | as_nl) ;; #(
6768 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6769 *) { eval $ac_var=; unset $ac_var;} ;;
6775 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6776 *${as_nl}ac_space=\ *)
6777 # `set' does not quote correctly, so add quotes: double-quote
6778 # substitution turns \\\\ into \\, and sed turns \\ into \.
6781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6784 # `set' quotes correctly as required by POSIX, so do not add quotes.
6785 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6794 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6796 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6798 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6799 if test -w "$cache_file"; then
6800 if test "x$cache_file" != "x/dev/null"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6802 $as_echo "$as_me: updating cache $cache_file" >&6;}
6803 if test ! -f "$cache_file" || test -h "$cache_file"; then
6804 cat confcache >"$cache_file"
6806 case $cache_file in #(
6808 mv -f confcache "$cache_file"$$ &&
6809 mv -f "$cache_file"$$ "$cache_file" ;; #(
6811 mv -f confcache "$cache_file" ;;
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6817 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6822 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6823 # Let make expand exec_prefix.
6824 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6826 DEFS=-DHAVE_CONFIG_H
6831 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6832 # 1. Remove the extension, and $U if already installed.
6833 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6834 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6835 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6836 # will be set to the directory where LIBOBJS objects are built.
6837 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6838 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6842 LTLIBOBJS=$ac_ltlibobjs
6846 : "${CONFIG_STATUS=./config.status}"
6848 ac_clean_files_save=$ac_clean_files
6849 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6851 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6853 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6855 # Generated by $as_me.
6856 # Run this file to recreate the current configuration.
6857 # Compiler output produced by configure, useful for debugging
6858 # configure, is in config.log if it exists.
6864 SHELL=\${CONFIG_SHELL-$SHELL}
6867 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6868 ## -------------------- ##
6869 ## M4sh Initialization. ##
6870 ## -------------------- ##
6872 # Be more Bourne compatible
6873 DUALCASE=1; export DUALCASE # for MKS sh
6874 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6877 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6878 # is contrary to our usage. Disable this feature.
6879 alias -g '${1+"$@"}'='"$@"'
6880 setopt NO_GLOB_SUBST
6882 case `(set -o) 2>/dev/null` in #(
6894 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6895 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6896 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6897 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6898 # Prefer a ksh shell builtin over an external printf program on Solaris,
6899 # but without wasting forks for bash or zsh.
6900 if test -z "$BASH_VERSION$ZSH_VERSION" \
6901 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6902 as_echo='print -r --'
6903 as_echo_n='print -rn --'
6904 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6905 as_echo='printf %s\n'
6906 as_echo_n='printf %s'
6908 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6909 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6910 as_echo_n='/usr/ucb/echo -n'
6912 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6913 as_echo_n_body='eval
6917 expr "X$arg" : "X\\(.*\\)$as_nl";
6918 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6920 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6922 export as_echo_n_body
6923 as_echo_n='sh -c $as_echo_n_body as_echo'
6926 as_echo='sh -c $as_echo_body as_echo'
6929 # The user is always right.
6930 if test "${PATH_SEPARATOR+set}" != set; then
6932 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6933 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6940 # We need space, tab and new line, in precisely that order. Quoting is
6941 # there to prevent editors from complaining about space-tab.
6942 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6943 # splitting by setting IFS to empty value.)
6946 # Find who we are. Look in the path if we contain no directory separator.
6949 *[\\/]* ) as_myself=$0 ;;
6950 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 test -z "$as_dir" && as_dir=.
6955 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6961 # We did not find ourselves, most probably we were run as `sh COMMAND'
6962 # in which case we are not to be found in the path.
6963 if test "x$as_myself" = x; then
6966 if test ! -f "$as_myself"; then
6967 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6971 # Unset variables that we do not need and which cause bugs (e.g. in
6972 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6973 # suppresses any "Segmentation fault" message there. '((' could
6974 # trigger a bug in pdksh 5.2.14.
6975 for as_var in BASH_ENV ENV MAIL MAILPATH
6976 do eval test x\${$as_var+set} = xset \
6977 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6990 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6993 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6994 # ----------------------------------------
6995 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6996 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6997 # script with STATUS, using 1 if that was 0.
7000 as_status=$1; test $as_status -eq 0 && as_status=1
7002 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7003 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7005 $as_echo "$as_me: error: $2" >&2
7006 as_fn_exit $as_status
7010 # as_fn_set_status STATUS
7011 # -----------------------
7012 # Set $? to STATUS, without forking.
7016 } # as_fn_set_status
7020 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7030 # Portably unset VAR.
7033 { eval $1=; unset $1;}
7035 as_unset=as_fn_unset
7036 # as_fn_append VAR VALUE
7037 # ----------------------
7038 # Append the text in VALUE to the end of the definition contained in VAR. Take
7039 # advantage of any shell optimizations that allow amortized linear growth over
7040 # repeated appends, instead of the typical quadratic growth present in naive
7042 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7043 eval 'as_fn_append ()
7054 # as_fn_arith ARG...
7055 # ------------------
7056 # Perform arithmetic evaluation on the ARGs, and store the result in the
7057 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7058 # must be portable across $(()) and expr.
7059 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7060 eval 'as_fn_arith ()
7067 as_val=`expr "$@" || test $? -eq 1`
7072 if expr a : '\(a\)' >/dev/null 2>&1 &&
7073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7080 as_basename=basename
7085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7091 as_me=`$as_basename -- "$0" ||
7092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7093 X"$0" : 'X\(//\)$' \| \
7094 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7096 sed '/^.*\/\([^/][^/]*\)\/*$/{
7110 # Avoid depending upon Character Ranges.
7111 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7112 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7113 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7114 as_cr_digits='0123456789'
7115 as_cr_alnum=$as_cr_Letters$as_cr_digits
7117 ECHO_C= ECHO_N= ECHO_T=
7118 case `echo -n x` in #(((((
7120 case `echo 'xy\c'` in
7121 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7123 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7130 rm -f conf$$ conf$$.exe conf$$.file
7131 if test -d conf$$.dir; then
7132 rm -f conf$$.dir/conf$$.file
7135 mkdir conf$$.dir 2>/dev/null
7137 if (echo >conf$$.file) 2>/dev/null; then
7138 if ln -s conf$$.file conf$$ 2>/dev/null; then
7140 # ... but there are two gotchas:
7141 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7142 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7143 # In both cases, we have to default to `cp -pR'.
7144 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7146 elif ln conf$$.file conf$$ 2>/dev/null; then
7154 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7155 rmdir conf$$.dir 2>/dev/null
7160 # Create "$as_dir" as a directory, including parents if necessary.
7165 -*) as_dir=./$as_dir;;
7167 test -d "$as_dir" || eval $as_mkdir_p || {
7171 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7172 *) as_qdir=$as_dir;;
7174 as_dirs="'$as_qdir' $as_dirs"
7175 as_dir=`$as_dirname -- "$as_dir" ||
7176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7177 X"$as_dir" : 'X\(//\)[^/]' \| \
7178 X"$as_dir" : 'X\(//\)$' \| \
7179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7180 $as_echo X"$as_dir" |
7181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7198 test -d "$as_dir" && break
7200 test -z "$as_dirs" || eval "mkdir $as_dirs"
7201 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7205 if mkdir -p . 2>/dev/null; then
7206 as_mkdir_p='mkdir -p "$as_dir"'
7208 test -d ./-p && rmdir ./-p
7213 # as_fn_executable_p FILE
7214 # -----------------------
7215 # Test if FILE is an executable regular file.
7216 as_fn_executable_p ()
7218 test -f "$1" && test -x "$1"
7219 } # as_fn_executable_p
7221 as_executable_p=as_fn_executable_p
7223 # Sed expression to map a string onto a valid CPP name.
7224 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7226 # Sed expression to map a string onto a valid variable name.
7227 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7231 ## ----------------------------------- ##
7232 ## Main body of $CONFIG_STATUS script. ##
7233 ## ----------------------------------- ##
7235 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7238 # Save the log message, to keep $0 and so on meaningful, and to
7239 # report actual input values of CONFIG_FILES etc. instead of their
7240 # values after options handling.
7242 This file was extended by GNU C Library $as_me (see version.h), which was
7243 generated by GNU Autoconf 2.69. Invocation command line was
7245 CONFIG_FILES = $CONFIG_FILES
7246 CONFIG_HEADERS = $CONFIG_HEADERS
7247 CONFIG_LINKS = $CONFIG_LINKS
7248 CONFIG_COMMANDS = $CONFIG_COMMANDS
7251 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7256 case $ac_config_files in *"
7257 "*) set x $ac_config_files; shift; ac_config_files=$*;;
7260 case $ac_config_headers in *"
7261 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7266 # Files that config.status was made for.
7267 config_files="$ac_config_files"
7268 config_headers="$ac_config_headers"
7269 config_commands="$ac_config_commands"
7273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7275 \`$as_me' instantiates files and other configuration actions
7276 from templates according to the current configuration. Unless the files
7277 and actions are specified as TAGs, all are instantiated by default.
7279 Usage: $0 [OPTION]... [TAG]...
7281 -h, --help print this help, then exit
7282 -V, --version print version number and configuration settings, then exit
7283 --config print configuration, then exit
7284 -q, --quiet, --silent
7285 do not print progress messages
7286 -d, --debug don't remove temporary files
7287 --recheck update $as_me by reconfiguring in the same conditions
7288 --file=FILE[:TEMPLATE]
7289 instantiate the configuration file FILE
7290 --header=FILE[:TEMPLATE]
7291 instantiate the configuration header FILE
7293 Configuration files:
7296 Configuration headers:
7299 Configuration commands:
7302 Report bugs to <http://sourceware.org/bugzilla/>.
7303 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
7304 General help using GNU software: <http://www.gnu.org/gethelp/>."
7307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7308 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7310 GNU C Library config.status (see version.h)
7311 configured by $0, generated by GNU Autoconf 2.69,
7312 with options \\"\$ac_cs_config\\"
7314 Copyright (C) 2012 Free Software Foundation, Inc.
7315 This config.status script is free software; the Free Software Foundation
7316 gives unlimited permission to copy, distribute and modify it."
7321 test -n "\$AWK" || AWK=awk
7324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7325 # The default lists apply if the user does not specify any file.
7331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7336 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7348 # Handling of the options.
7349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7352 $as_echo "$ac_cs_version"; exit ;;
7353 --config | --confi | --conf | --con | --co | --c )
7354 $as_echo "$ac_cs_config"; exit ;;
7355 --debug | --debu | --deb | --de | --d | -d )
7357 --file | --fil | --fi | --f )
7360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7361 '') as_fn_error $? "missing file argument" ;;
7363 as_fn_append CONFIG_FILES " '$ac_optarg'"
7364 ac_need_defaults=false;;
7365 --header | --heade | --head | --hea )
7368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7370 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7371 ac_need_defaults=false;;
7373 # Conflict between --help and --header
7374 as_fn_error $? "ambiguous option: \`$1'
7375 Try \`$0 --help' for more information.";;
7376 --help | --hel | -h )
7377 $as_echo "$ac_cs_usage"; exit ;;
7378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7383 -*) as_fn_error $? "unrecognized option: \`$1'
7384 Try \`$0 --help' for more information." ;;
7386 *) as_fn_append ac_config_targets " $1"
7387 ac_need_defaults=false ;;
7393 ac_configure_extra_args=
7395 if $ac_cs_silent; then
7397 ac_configure_extra_args="$ac_configure_extra_args --silent"
7401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7402 if \$ac_cs_recheck; then
7403 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7406 CONFIG_SHELL='$SHELL'
7412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7417 ## Running $as_me. ##
7423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7427 config_vars='$config_vars'
7431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7433 # Handling of arguments.
7434 for ac_config_target in $ac_config_targets
7436 case $ac_config_target in
7437 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7438 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
7439 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7440 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
7442 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7447 # If the user did not use the arguments to specify the items to instantiate,
7448 # then the envvar interface is used. Set only those that are not.
7449 # We use the long form for the default assignment because of an extremely
7450 # bizarre bug on SunOS 4.1.3.
7451 if $ac_need_defaults; then
7452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7457 # Have a temporary directory for convenience. Make it in the build tree
7458 # simply because there is no reason against having it here, and in addition,
7459 # creating and moving files from /tmp can sometimes cause problems.
7460 # Hook for its removal unless debugging.
7461 # Note that there is a small window in which the directory will not be cleaned:
7462 # after its creation but before its name has been assigned to `$tmp'.
7466 trap 'exit_status=$?
7468 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7470 trap 'as_fn_exit 1' 1 2 13 15
7472 # Create a (secure) tmp directory for tmp files.
7475 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7479 tmp=./conf$$-$RANDOM
7480 (umask 077 && mkdir "$tmp")
7481 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7484 # Set up the scripts for CONFIG_FILES section.
7485 # No need to generate them if there are no CONFIG_FILES.
7486 # This happens for instance with `./config.status config.h'.
7487 if test -n "$CONFIG_FILES"; then
7490 ac_cr=`echo X | tr X '\015'`
7491 # On cygwin, bash can eat \r inside `` if the user requested igncr.
7492 # But we know of no other shell where ac_cr would be empty at this
7493 # point, so we can use a bashism as a fallback.
7494 if test "x$ac_cr" = x; then
7495 eval ac_cr=\$\'\\r\'
7497 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7498 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7504 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7509 echo "cat >conf$$subs.awk <<_ACEOF" &&
7510 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7513 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7514 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7516 for ac_last_try in false false false false false :; do
7517 . ./conf$$subs.sh ||
7518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7520 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7521 if test $ac_delim_n = $ac_delim_num; then
7523 elif $ac_last_try; then
7524 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7526 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7532 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7536 s/^/S["/; s/!.*/"]=/
7546 s/\(.\{148\}\)..*/\1/
7548 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7553 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7560 s/\(.\{148\}\)..*/\1/
7562 s/["\\]/\\&/g; s/^/"/; s/$/"/
7566 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7571 ' <conf$$subs.awk | sed '
7576 ' >>$CONFIG_STATUS || ac_write_fail=1
7577 rm -f conf$$subs.awk
7578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7580 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7581 for (key in S) S_is_set[key] = 1
7587 nfields = split(line, field, "@")
7589 len = length(field[1])
7590 for (i = 2; i < nfields; i++) {
7592 keylen = length(key)
7593 if (S_is_set[key]) {
7595 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7596 len += length(value) + length(field[++i])
7607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7608 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7609 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7612 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
7613 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7616 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
7617 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7618 # trailing colons and then remove the whole line if VPATH becomes empty
7619 # (actually we leave an empty line to preserve line numbers).
7620 if test "x$srcdir" = x.; then
7621 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
7639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7640 fi # test -n "$CONFIG_FILES"
7642 # Set up the scripts for CONFIG_HEADERS section.
7643 # No need to generate them if there are no CONFIG_HEADERS.
7644 # This happens for instance with `./config.status Makefile'.
7645 if test -n "$CONFIG_HEADERS"; then
7646 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
7650 # Transform confdefs.h into an awk script `defines.awk', embedded as
7651 # here-document in config.status, that substitutes the proper values into
7652 # config.h.in to produce config.h.
7654 # Create a delimiter string that does not exist in confdefs.h, to ease
7655 # handling of long lines.
7657 for ac_last_try in false false :; do
7658 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
7659 if test -z "$ac_tt"; then
7661 elif $ac_last_try; then
7662 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
7664 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7668 # For the awk script, D is an array of macro values keyed by name,
7669 # likewise P contains macro parameters if any. Preserve backslash
7670 # newline sequences.
7672 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7674 s/.\{148\}/&'"$ac_delim"'/g
7677 s/^[ ]*#[ ]*define[ ][ ]*/ /
7684 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7686 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
7690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
7691 D["\1"]=" \3\\\\\\n"\\/p
7693 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7698 s/.\{148\}/&'"$ac_delim"'/g
7703 s/["\\]/\\&/g; s/^/"/; s/$/"/p
7706 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7708 ' <confdefs.h | sed '
7709 s/'"$ac_delim"'/"\\\
7710 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7713 for (key in D) D_is_set[key] = 1
7716 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7718 split(line, arg, " ")
7719 if (arg[1] == "#") {
7723 defundef = substr(arg[1], 2)
7726 split(mac1, mac2, "(") #)
7728 prefix = substr(line, 1, index(line, defundef) - 1)
7729 if (D_is_set[macro]) {
7730 # Preserve the white space surrounding the "#".
7731 print prefix "define", macro P[macro] D[macro]
7734 # Replace #undef with comments. This is necessary, for example,
7735 # in the case of _POSIX_SOURCE, which is predefined and required
7736 # on some systems where configure will not decide to define it.
7737 if (defundef == "undef") {
7738 print "/*", prefix defundef, macro, "*/"
7746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7747 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
7748 fi # test -n "$CONFIG_HEADERS"
7751 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7756 :[FHLC]) ac_mode=$ac_tag; continue;;
7758 case $ac_mode$ac_tag in
7760 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7761 :[FH]-) ac_tag=-:-;;
7762 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7779 -) ac_f="$ac_tmp/stdin";;
7780 *) # Look for the file first in the build tree, then in the source tree
7781 # (if the path is not absolute). The absolute path cannot be DOS-style,
7782 # because $ac_f cannot contain `:'.
7786 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7788 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7790 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7791 as_fn_append ac_file_inputs " '$ac_f'"
7794 # Let's still pretend it is `configure' which instantiates (i.e., don't
7795 # use $as_me), people would be surprised to read:
7796 # /* config.h. Generated by config.status. */
7797 configure_input='Generated from '`
7798 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7800 if test x"$ac_file" != x-; then
7801 configure_input="$ac_file. $configure_input"
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7803 $as_echo "$as_me: creating $ac_file" >&6;}
7805 # Neutralize special characters interpreted by sed in replacement strings.
7806 case $configure_input in #(
7807 *\&* | *\|* | *\\* )
7808 ac_sed_conf_input=`$as_echo "$configure_input" |
7809 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7810 *) ac_sed_conf_input=$configure_input;;
7814 *:-:* | *:-) cat >"$ac_tmp/stdin" \
7815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7820 ac_dir=`$as_dirname -- "$ac_file" ||
7821 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7822 X"$ac_file" : 'X\(//\)[^/]' \| \
7823 X"$ac_file" : 'X\(//\)$' \| \
7824 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7825 $as_echo X"$ac_file" |
7826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7843 as_dir="$ac_dir"; as_fn_mkdir_p
7847 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7849 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7850 # A ".." for each directory in $ac_dir_suffix.
7851 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7852 case $ac_top_builddir_sub in
7853 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7854 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7857 ac_abs_top_builddir=$ac_pwd
7858 ac_abs_builddir=$ac_pwd$ac_dir_suffix
7859 # for backward compatibility:
7860 ac_top_builddir=$ac_top_build_prefix
7863 .) # We are building in place.
7865 ac_top_srcdir=$ac_top_builddir_sub
7866 ac_abs_top_srcdir=$ac_pwd ;;
7867 [\\/]* | ?:[\\/]* ) # Absolute name.
7868 ac_srcdir=$srcdir$ac_dir_suffix;
7869 ac_top_srcdir=$srcdir
7870 ac_abs_top_srcdir=$srcdir ;;
7872 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7873 ac_top_srcdir=$ac_top_build_prefix$srcdir
7874 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7876 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7886 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7887 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
7891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7892 # If the template does not know about datarootdir, expand it.
7893 # FIXME: This hack should be removed a few years after 2.60.
7894 ac_datarootdir_hack=; ac_datarootdir_seen=
7905 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7906 *datarootdir*) ac_datarootdir_seen=yes;;
7907 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7909 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7912 ac_datarootdir_hack='
7913 s&@datadir@&$datadir&g
7914 s&@docdir@&$docdir&g
7915 s&@infodir@&$infodir&g
7916 s&@localedir@&$localedir&g
7917 s&@mandir@&$mandir&g
7918 s&\\\${datarootdir}&$datarootdir&g' ;;
7922 # Neutralize VPATH when `$srcdir' = `.'.
7923 # Shell code in configure.ac might set extrasub.
7924 # FIXME: do we really want to maintain this feature?
7925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7926 ac_sed_extra="$ac_vpsub
7929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7931 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7932 s|@configure_input@|$ac_sed_conf_input|;t t
7933 s&@top_builddir@&$ac_top_builddir_sub&;t t
7934 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7935 s&@srcdir@&$ac_srcdir&;t t
7936 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7937 s&@top_srcdir@&$ac_top_srcdir&;t t
7938 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7939 s&@builddir@&$ac_builddir&;t t
7940 s&@abs_builddir@&$ac_abs_builddir&;t t
7941 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7942 s&@INSTALL@&$ac_INSTALL&;t t
7943 $ac_datarootdir_hack
7945 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7946 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7948 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7949 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7950 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
7951 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7953 which seems to be undefined. Please make sure it is defined" >&5
7954 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7955 which seems to be undefined. Please make sure it is defined" >&2;}
7957 rm -f "$ac_tmp/stdin"
7959 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7960 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7962 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7968 if test x"$ac_file" != x-; then
7970 $as_echo "/* $configure_input */" \
7971 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
7972 } >"$ac_tmp/config.h" \
7973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7974 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7976 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7979 mv "$ac_tmp/config.h" "$ac_file" \
7980 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7983 $as_echo "/* $configure_input */" \
7984 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
7985 || as_fn_error $? "could not create -" "$LINENO" 5
7989 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7990 $as_echo "$as_me: executing $ac_file commands" >&6;}
7995 case $ac_file$ac_mode in
7997 case $CONFIG_FILES in *config.make*)
7998 echo "$config_vars" >> config.make;;
8000 test -d bits || mkdir bits ;;
8008 ac_clean_files=$ac_clean_files_save
8010 test $ac_write_fail = 0 ||
8011 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8014 # configure is writing to config.log, and then calls config.status.
8015 # config.status does its own redirection, appending to config.log.
8016 # Unfortunately, on DOS this fails, as config.log is still kept open
8017 # by configure, so config.status won't be able to write to it; its
8018 # output is simply discarded. So we exec the FD to /dev/null,
8019 # effectively closing config.log, so it can be properly (re)opened and
8020 # appended to by config.status. When coming back to configure, we
8021 # need to make the FD available again.
8022 if test "$no_create" != yes; then
8024 ac_config_status_args=
8025 test "$silent" = yes &&
8026 ac_config_status_args="$ac_config_status_args --quiet"
8028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8031 # would make configure fail if this is the last instruction.
8032 $ac_cs_success || as_fn_exit 1
8036 # CONFIG_SUBDIRS section.
8038 if test "$no_recursion" != yes; then
8040 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8041 # so they do not pile up.
8042 ac_sub_configure_args=
8044 eval "set x $ac_configure_args"
8048 if test -n "$ac_prev"; then
8053 -cache-file | --cache-file | --cache-fil | --cache-fi \
8054 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8055 ac_prev=cache_file ;;
8056 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8057 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8060 --config-cache | -C)
8062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8070 --disable-option-checking)
8074 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8076 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8080 # Always prepend --prefix to ensure using the same prefix
8081 # in subdir configurations.
8082 ac_arg="--prefix=$prefix"
8084 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8086 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8089 if test "$silent" = yes; then
8090 ac_sub_configure_args="--silent $ac_sub_configure_args"
8093 # Always prepend --disable-option-checking to silence warnings, since
8094 # different subdirs can have different --enable and --with options.
8095 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8098 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8100 # Do not complain, so a configure script can configure whichever
8101 # parts of a large source tree are present.
8102 test -d "$srcdir/$ac_dir" || continue
8104 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8105 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8106 $as_echo "$ac_msg" >&6
8107 as_dir="$ac_dir"; as_fn_mkdir_p
8111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8113 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8114 # A ".." for each directory in $ac_dir_suffix.
8115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8116 case $ac_top_builddir_sub in
8117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8121 ac_abs_top_builddir=$ac_pwd
8122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8123 # for backward compatibility:
8124 ac_top_builddir=$ac_top_build_prefix
8127 .) # We are building in place.
8129 ac_top_srcdir=$ac_top_builddir_sub
8130 ac_abs_top_srcdir=$ac_pwd ;;
8131 [\\/]* | ?:[\\/]* ) # Absolute name.
8132 ac_srcdir=$srcdir$ac_dir_suffix;
8133 ac_top_srcdir=$srcdir
8134 ac_abs_top_srcdir=$srcdir ;;
8136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8137 ac_top_srcdir=$ac_top_build_prefix$srcdir
8138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8145 # Check for guested configure; otherwise get Cygnus style configure.
8146 if test -f "$ac_srcdir/configure.gnu"; then
8147 ac_sub_configure=$ac_srcdir/configure.gnu
8148 elif test -f "$ac_srcdir/configure"; then
8149 ac_sub_configure=$ac_srcdir/configure
8150 elif test -f "$ac_srcdir/configure.in"; then
8151 # This should be Cygnus configure.
8152 ac_sub_configure=$ac_aux_dir/configure
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8155 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8159 # The recursion is here.
8160 if test -n "$ac_sub_configure"; then
8161 # Make the cache file name correct relative to the subdirectory.
8163 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8165 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8168 { $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
8169 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8170 # The eval makes quoting arguments work.
8171 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8172 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8173 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}