2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU C Library (see version.h).
5 # Report bugs to <http://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://sourceware.org/bugzilla/ about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='GNU C Library'
562 PACKAGE_TARNAME='glibc'
563 PACKAGE_VERSION='(see version.h)'
564 PACKAGE_STRING='GNU C Library (see version.h)'
565 PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
566 PACKAGE_URL='http://www.gnu.org/software/glibc/'
568 ac_unique_file="include/features.h"
569 enable_option_checking=no
570 ac_includes_default='/* none */'
571 ac_subst_vars='LTLIBOBJS
584 libc_cv_sparc_as_vis3
588 libc_cv_cc_novzeroupper
592 libc_cv_cpp_asm_debuginfo
593 libc_cv_forced_unwind
595 libc_cv_localstatedir
601 libc_cv_gcc_unwind_find_fde
609 libc_cv_cc_submachine
614 libc_cv_output_format
621 libc_cv_cc_with_libunwind
631 libc_cv_gcc_static_libgcc
715 program_transform_name
728 enable_option_checking
742 enable_stackguard_randomization
757 ac_precious_vars='build_alias
772 # Initialize some variables set by options.
774 ac_init_version=false
775 ac_unrecognized_opts=
777 # The variables have the same names as the options, with
778 # dashes changed to underlines.
786 program_transform_name=s,x,x,
794 # Installation directory options.
795 # These are left unexpanded so users can "make install exec_prefix=/foo"
796 # and all the variables that are supposed to be based on exec_prefix
797 # by default will actually change.
798 # Use braces instead of parens because sh, perl, etc. also accept them.
799 # (The list follows the same order as the GNU Coding Standards.)
800 bindir='${exec_prefix}/bin'
801 sbindir='${exec_prefix}/sbin'
802 libexecdir='${exec_prefix}/libexec'
803 datarootdir='${prefix}/share'
804 datadir='${datarootdir}'
805 sysconfdir='${prefix}/etc'
806 sharedstatedir='${prefix}/com'
807 localstatedir='${prefix}/var'
808 includedir='${prefix}/include'
809 oldincludedir='/usr/include'
810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
811 infodir='${datarootdir}/info'
816 libdir='${exec_prefix}/lib'
817 localedir='${datarootdir}/locale'
818 mandir='${datarootdir}/man'
824 # If the previous option needs an argument, assign it.
825 if test -n "$ac_prev"; then
826 eval $ac_prev=\$ac_option
832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
848 -build | --build | --buil | --bui | --bu)
849 ac_prev=build_alias ;;
850 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
851 build_alias=$ac_optarg ;;
853 -cache-file | --cache-file | --cache-fil | --cache-fi \
854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
855 ac_prev=cache_file ;;
856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
858 cache_file=$ac_optarg ;;
861 cache_file=config.cache ;;
863 -datadir | --datadir | --datadi | --datad)
865 -datadir=* | --datadir=* | --datadi=* | --datad=*)
866 datadir=$ac_optarg ;;
868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
869 | --dataroo | --dataro | --datar)
870 ac_prev=datarootdir ;;
871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
873 datarootdir=$ac_optarg ;;
875 -disable-* | --disable-*)
876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
879 as_fn_error $? "invalid feature name: $ac_useropt"
880 ac_useropt_orig=$ac_useropt
881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep=', ';;
889 eval enable_$ac_useropt=no ;;
891 -docdir | --docdir | --docdi | --doc | --do)
893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
901 -enable-* | --enable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: $ac_useropt"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
915 eval enable_$ac_useropt=\$ac_optarg ;;
917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
919 | --exec | --exe | --ex)
920 ac_prev=exec_prefix ;;
921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
923 | --exec=* | --exe=* | --ex=*)
924 exec_prefix=$ac_optarg ;;
926 -gas | --gas | --ga | --g)
927 # Obsolete; use --with-gas.
930 -help | --help | --hel | --he | -h)
932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
933 ac_init_help=recursive ;;
934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
935 ac_init_help=short ;;
937 -host | --host | --hos | --ho)
938 ac_prev=host_alias ;;
939 -host=* | --host=* | --hos=* | --ho=*)
940 host_alias=$ac_optarg ;;
942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 htmldir=$ac_optarg ;;
948 -includedir | --includedir | --includedi | --included | --include \
949 | --includ | --inclu | --incl | --inc)
950 ac_prev=includedir ;;
951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
952 | --includ=* | --inclu=* | --incl=* | --inc=*)
953 includedir=$ac_optarg ;;
955 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
958 infodir=$ac_optarg ;;
960 -libdir | --libdir | --libdi | --libd)
962 -libdir=* | --libdir=* | --libdi=* | --libd=*)
965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
966 | --libexe | --libex | --libe)
967 ac_prev=libexecdir ;;
968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
969 | --libexe=* | --libex=* | --libe=*)
970 libexecdir=$ac_optarg ;;
972 -localedir | --localedir | --localedi | --localed | --locale)
974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
975 localedir=$ac_optarg ;;
977 -localstatedir | --localstatedir | --localstatedi | --localstated \
978 | --localstate | --localstat | --localsta | --localst | --locals)
979 ac_prev=localstatedir ;;
980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
982 localstatedir=$ac_optarg ;;
984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990 # Obsolete; use --without-fp.
993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
994 | --no-cr | --no-c | -n)
997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1003 | --oldin | --oldi | --old | --ol | --o)
1004 ac_prev=oldincludedir ;;
1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1008 oldincludedir=$ac_optarg ;;
1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1013 prefix=$ac_optarg ;;
1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1016 | --program-pre | --program-pr | --program-p)
1017 ac_prev=program_prefix ;;
1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1020 program_prefix=$ac_optarg ;;
1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1023 | --program-suf | --program-su | --program-s)
1024 ac_prev=program_suffix ;;
1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1027 program_suffix=$ac_optarg ;;
1029 -program-transform-name | --program-transform-name \
1030 | --program-transform-nam | --program-transform-na \
1031 | --program-transform-n | --program-transform- \
1032 | --program-transform | --program-transfor \
1033 | --program-transfo | --program-transf \
1034 | --program-trans | --program-tran \
1035 | --progr-tra | --program-tr | --program-t)
1036 ac_prev=program_transform_name ;;
1037 -program-transform-name=* | --program-transform-name=* \
1038 | --program-transform-nam=* | --program-transform-na=* \
1039 | --program-transform-n=* | --program-transform-=* \
1040 | --program-transform=* | --program-transfor=* \
1041 | --program-transfo=* | --program-transf=* \
1042 | --program-trans=* | --program-tran=* \
1043 | --progr-tra=* | --program-tr=* | --program-t=*)
1044 program_transform_name=$ac_optarg ;;
1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1049 pdfdir=$ac_optarg ;;
1051 -psdir | --psdir | --psdi | --psd | --ps)
1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1057 | -silent | --silent | --silen | --sile | --sil)
1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 sbindir=$ac_optarg ;;
1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1068 | --sharedst | --shareds | --shared | --share | --shar \
1070 ac_prev=sharedstatedir ;;
1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 sharedstatedir=$ac_optarg ;;
1077 -site | --site | --sit)
1079 -site=* | --site=* | --sit=*)
1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1085 srcdir=$ac_optarg ;;
1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1088 | --syscon | --sysco | --sysc | --sys | --sy)
1089 ac_prev=sysconfdir ;;
1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1092 sysconfdir=$ac_optarg ;;
1094 -target | --target | --targe | --targ | --tar | --ta | --t)
1095 ac_prev=target_alias ;;
1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1097 target_alias=$ac_optarg ;;
1099 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1102 -version | --version | --versio | --versi | --vers | -V)
1103 ac_init_version=: ;;
1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error $? "invalid package name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval with_$ac_useropt=\$ac_optarg ;;
1121 -without-* | --without-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1135 eval with_$ac_useropt=no ;;
1138 # Obsolete; use --with-x.
1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1142 | --x-incl | --x-inc | --x-in | --x-i)
1143 ac_prev=x_includes ;;
1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1146 x_includes=$ac_optarg ;;
1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1150 ac_prev=x_libraries ;;
1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1153 x_libraries=$ac_optarg ;;
1155 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information"
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' | [0-9]* | *[!_$as_cr_alnum]* )
1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166 eval $ac_envvar=\$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1180 if test -n "$ac_prev"; then
1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error $? "missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1206 # Be sure to have absolute directory names.
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used" >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error $? "pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking ...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --build=BUILD configure for building on BUILD [guessed]
1371 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375 if test -n "$ac_init_help"; then
1376 case $ac_init_help in
1377 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1382 --disable-option-checking ignore unrecognized --enable/--with options
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --disable-sanity-checks really do not use threads (should not be used except
1386 in special situations) [default=yes]
1387 --enable-shared build shared library [default=yes if GNU ld]
1388 --enable-profile build profiled library [default=no]
1389 --disable-versioning do not include versioning information in the library
1390 objects [default=yes if supported]
1391 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1392 [default=glibc default]
1393 --enable-stackguard-randomization
1394 initialize __stack_chk_guard canary with a random
1395 number at program start
1396 --enable-add-ons[=DIRS...]
1397 configure and build add-ons in DIR1,DIR2,... search
1398 for add-ons if no parameter given
1399 --disable-hidden-plt do not hide internal function calls to avoid PLT
1400 --enable-bind-now disable lazy relocations in DSOs
1401 --enable-static-nss build static NSS modules [default=no]
1402 --disable-force-install don't force installation of files from this package,
1403 even if they are older than the installed files
1404 --enable-kernel=VERSION compile for compatibility with kernel not older than
1406 --enable-all-warnings enable all useful warnings gcc can issue
1407 --enable-multi-arch enable single DSO with optimizations for multiple
1409 --enable-nss-crypt enable libcrypt to use nss
1410 --enable-obsolete-rpc build and install the obsolete RPC code for
1412 --enable-systemtap enable systemtap static probe points [default=no]
1413 --disable-nscd library functions will not contact the nscd daemon
1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1418 --with-gd=DIR find libgd include dir and library with prefix DIR
1419 --with-gd-include=DIR find libgd include files in DIR
1420 --with-gd-lib=DIR find libgd library files in DIR
1421 --with-fp if using floating-point hardware [default=yes]
1422 --with-binutils=PATH specify location of binutils (as and ld)
1423 --with-selinux if building with SELinux support
1424 --with-headers=PATH location of system headers to use (for example
1425 /usr/src/linux/include) [default=compiler default]
1426 --with-default-link do not use explicit linker scripts
1427 --with-cpu=CPU select code for CPU variant
1429 Some influential environment variables:
1430 CC C compiler command
1431 CFLAGS C compiler flags
1432 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1433 nonstandard directory <lib dir>
1434 LIBS libraries to pass to the linker, e.g. -l<library>
1435 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1436 you have headers in a nonstandard directory <include dir>
1438 CXX C++ compiler command
1439 CXXFLAGS C++ compiler flags
1441 Use these variables to override the choices made by `configure' or to help
1442 it to find libraries and programs with nonstandard names/locations.
1444 Report bugs to <http://sourceware.org/bugzilla/>.
1445 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1446 General help using GNU software: <http://www.gnu.org/gethelp/>.
1451 if test "$ac_init_help" = "recursive"; then
1452 # If there are subdirs, report their specific --help.
1453 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1454 test -d "$ac_dir" ||
1455 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1460 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1462 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1463 # A ".." for each directory in $ac_dir_suffix.
1464 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1465 case $ac_top_builddir_sub in
1466 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1470 ac_abs_top_builddir=$ac_pwd
1471 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1472 # for backward compatibility:
1473 ac_top_builddir=$ac_top_build_prefix
1476 .) # We are building in place.
1478 ac_top_srcdir=$ac_top_builddir_sub
1479 ac_abs_top_srcdir=$ac_pwd ;;
1480 [\\/]* | ?:[\\/]* ) # Absolute name.
1481 ac_srcdir=$srcdir$ac_dir_suffix;
1482 ac_top_srcdir=$srcdir
1483 ac_abs_top_srcdir=$srcdir ;;
1485 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1486 ac_top_srcdir=$ac_top_build_prefix$srcdir
1487 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1489 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1491 cd "$ac_dir" || { ac_status=$?; continue; }
1492 # Check for guested configure.
1493 if test -f "$ac_srcdir/configure.gnu"; then
1495 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1496 elif test -f "$ac_srcdir/configure"; then
1498 $SHELL "$ac_srcdir/configure" --help=recursive
1500 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1502 cd "$ac_pwd" || { ac_status=$?; break; }
1506 test -n "$ac_init_help" && exit $ac_status
1507 if $ac_init_version; then
1509 GNU C Library configure (see version.h)
1510 generated by GNU Autoconf 2.68
1512 Copyright (C) 2010 Free Software Foundation, Inc.
1513 This configure script is free software; the Free Software Foundation
1514 gives unlimited permission to copy, distribute and modify it.
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile ()
1528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1529 rm -f conftest.$ac_objext
1530 if { { ac_try="$ac_compile"
1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1598 # ac_fn_cxx_try_compile LINENO
1599 # ----------------------------
1600 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1601 ac_fn_cxx_try_compile ()
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 rm -f conftest.$ac_objext
1605 if { { ac_try="$ac_compile"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_compile") 2>conftest.err
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } && {
1621 test -z "$ac_cxx_werror_flag" ||
1622 test ! -s conftest.err
1623 } && test -s conftest.$ac_objext; then :
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1634 } # ac_fn_cxx_try_compile
1636 # ac_fn_c_try_link LINENO
1637 # -----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded.
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext conftest$ac_exeext
1643 if { { ac_try="$ac_link"
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>conftest.err
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest$ac_exeext && {
1662 test "$cross_compiling" = yes ||
1663 $as_test_x conftest$ac_exeext
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1672 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1673 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1674 # interfere with the next link command; also delete a directory that is
1675 # left behind by Apple's compiler. We do this before executing the actions.
1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678 as_fn_set_status $ac_retval
1680 } # ac_fn_c_try_link
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=$ac_status
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1724 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1725 # --------------------------------------------
1726 # Tries to find the compile-time value of EXPR in a program that includes
1727 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1729 ac_fn_c_compute_int ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if test "$cross_compiling" = yes; then
1733 # Depending upon the size, compute the lo and hi bounds.
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1740 static int test_array [1 - 2 * !(($2) >= 0)];
1747 if ac_fn_c_try_compile "$LINENO"; then :
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1756 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_hi=$ac_mid; break
1766 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1767 if test $ac_lo -le $ac_mid; then
1771 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1782 static int test_array [1 - 2 * !(($2) < 0)];
1789 if ac_fn_c_try_compile "$LINENO"; then :
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793 /* end confdefs.h. */
1798 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1805 if ac_fn_c_try_compile "$LINENO"; then :
1806 ac_lo=$ac_mid; break
1808 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1809 if test $ac_mid -le $ac_hi; then
1813 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 # Binary search between lo and hi bounds.
1824 while test "x$ac_lo" != "x$ac_hi"; do
1825 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1832 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1839 if ac_fn_c_try_compile "$LINENO"; then :
1842 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1854 static long int longval () { return $2; }
1855 static unsigned long int ulongval () { return $2; }
1862 FILE *f = fopen ("conftest.val", "w");
1867 long int i = longval ();
1870 fprintf (f, "%ld", i);
1874 unsigned long int i = ulongval ();
1877 fprintf (f, "%lu", i);
1879 /* Do not output a trailing newline, as this causes \r\n confusion
1880 on some platforms. */
1881 return ferror (f) || fclose (f) != 0;
1887 if ac_fn_c_try_run "$LINENO"; then :
1888 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1893 conftest.$ac_objext conftest.beam conftest.$ac_ext
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1898 as_fn_set_status $ac_retval
1900 } # ac_fn_c_compute_int
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1905 It was created by GNU C Library $as_me (see version.h), which was
1906 generated by GNU Autoconf 2.68. Invocation command line was
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1927 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1931 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir=.
1942 $as_echo "PATH: $as_dir"
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1966 ac_must_keep_next=false
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1995 -* ) ac_must_keep_next=true ;;
1998 as_fn_append ac_configure_args " '$ac_arg'"
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log. We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2016 $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2020 # The following way of writing the cache mishandles newlines in values,
2022 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023 eval ac_val=\$$ac_var
2027 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031 _ | IFS | as_nl) ;; #(
2032 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033 *) { eval $ac_var=; unset $ac_var;} ;;
2038 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039 *${as_nl}ac_space=\ *)
2041 "s/'\''/'\''\\\\'\'''\''/g;
2042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2052 $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2056 for ac_var in $ac_subst_vars
2058 eval ac_val=\$$ac_var
2060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2062 $as_echo "$ac_var='\''$ac_val'\''"
2066 if test -n "$ac_subst_files"; then
2067 $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2071 for ac_var in $ac_subst_files
2073 eval ac_val=\$$ac_var
2075 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2077 $as_echo "$ac_var='\''$ac_val'\''"
2082 if test -s confdefs.h; then
2083 $as_echo "## ----------- ##
2090 test "$ac_signal" != 0 &&
2091 $as_echo "$as_me: caught signal $ac_signal"
2092 $as_echo "$as_me: exit $exit_status"
2094 rm -f core *.core core.conftest.* &&
2095 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2098 for ac_signal in 1 2 13 15; do
2099 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2106 $as_echo "/* confdefs.h */" > confdefs.h
2108 # Predefined preprocessor variables.
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2139 if test -n "$CONFIG_SITE"; then
2140 # We do not want a PATH search for config.site.
2141 case $CONFIG_SITE in #((
2142 -*) ac_site_file1=./$CONFIG_SITE;;
2143 */*) ac_site_file1=$CONFIG_SITE;;
2144 *) ac_site_file1=./$CONFIG_SITE;;
2146 elif test "x$prefix" != xNONE; then
2147 ac_site_file1=$prefix/share/config.site
2148 ac_site_file2=$prefix/etc/config.site
2150 ac_site_file1=$ac_default_prefix/share/config.site
2151 ac_site_file2=$ac_default_prefix/etc/config.site
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2155 test "x$ac_site_file" = xNONE && continue
2156 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159 sed 's/^/| /' "$ac_site_file" >&5
2161 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2168 if test -r "$cache_file"; then
2169 # Some versions of bash will fail to source /dev/null (special files
2170 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2171 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2175 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176 *) . "./$cache_file";;
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2185 # Check that the precious variables saved in the cache have kept the same
2187 ac_cache_corrupted=false
2188 for ac_var in $ac_precious_vars; do
2189 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2190 eval ac_new_set=\$ac_env_${ac_var}_set
2191 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2192 eval ac_new_val=\$ac_env_${ac_var}_value
2193 case $ac_old_set,$ac_new_set in
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2197 ac_cache_corrupted=: ;;
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2200 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2201 ac_cache_corrupted=: ;;
2204 if test "x$ac_old_val" != "x$ac_new_val"; then
2205 # differences in whitespace do not lead to failure.
2206 ac_old_val_w=`echo x $ac_old_val`
2207 ac_new_val_w=`echo x $ac_new_val`
2208 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2210 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2211 ac_cache_corrupted=:
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2214 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2215 eval $ac_var=\$ac_old_val
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2218 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2220 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2223 # Pass precious variables to config.status.
2224 if test "$ac_new_set" = set; then
2226 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2227 *) ac_arg=$ac_var=$ac_new_val ;;
2229 case " $ac_configure_args " in
2230 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2231 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2235 if $ac_cache_corrupted; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2239 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2240 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2242 ## -------------------- ##
2243 ## Main body of script. ##
2244 ## -------------------- ##
2247 ac_cpp='$CPP $CPPFLAGS'
2248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254 ac_config_headers="$ac_config_headers config.h"
2257 for ac_dir in scripts "$srcdir"/scripts; do
2258 if test -f "$ac_dir/install-sh"; then
2260 ac_install_sh="$ac_aux_dir/install-sh -c"
2262 elif test -f "$ac_dir/install.sh"; then
2264 ac_install_sh="$ac_aux_dir/install.sh -c"
2266 elif test -f "$ac_dir/shtool"; then
2268 ac_install_sh="$ac_aux_dir/shtool install -c"
2272 if test -z "$ac_aux_dir"; then
2273 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2276 # These three variables are undocumented and unsupported,
2277 # and are intended to be withdrawn in a future Autoconf release.
2278 # They can cause serious problems if a builder's source tree is in a directory
2279 # whose full name contains unusual characters.
2280 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2281 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2282 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286 # Glibc should not depend on any header files
2294 # Make sure we can run config.sub.
2295 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2296 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2299 $as_echo_n "checking build system type... " >&6; }
2300 if ${ac_cv_build+:} false; then :
2301 $as_echo_n "(cached) " >&6
2303 ac_build_alias=$build_alias
2304 test "x$ac_build_alias" = x &&
2305 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2306 test "x$ac_build_alias" = x &&
2307 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2308 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2309 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2313 $as_echo "$ac_cv_build" >&6; }
2314 case $ac_cv_build in
2316 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2319 ac_save_IFS=$IFS; IFS='-'
2325 # Remember, the first character of IFS is used to create $*,
2326 # except with old shells:
2329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2333 $as_echo_n "checking host system type... " >&6; }
2334 if ${ac_cv_host+:} false; then :
2335 $as_echo_n "(cached) " >&6
2337 if test "x$host_alias" = x; then
2338 ac_cv_host=$ac_cv_build
2340 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2341 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2346 $as_echo "$ac_cv_host" >&6; }
2349 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2352 ac_save_IFS=$IFS; IFS='-'
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2362 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2367 ac_cpp='$CPP $CPPFLAGS'
2368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if ${ac_cv_prog_CC+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2410 if test -z "$ac_cv_prog_CC"; then
2412 # Extract the first word of "gcc", so it can be a program name with args.
2413 set dummy gcc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 if test -n "$ac_ct_CC"; then
2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_ac_ct_CC="gcc"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440 if test -n "$ac_ct_CC"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2442 $as_echo "$ac_ct_CC" >&6; }
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2448 if test "x$ac_ct_CC" = x; then
2451 case $cross_compiling:$ac_tool_warned in
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2455 ac_tool_warned=yes ;;
2463 if test -z "$CC"; then
2464 if test -n "$ac_tool_prefix"; then
2465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2466 set dummy ${ac_tool_prefix}cc; ac_word=$2
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2468 $as_echo_n "checking for $ac_word... " >&6; }
2469 if ${ac_cv_prog_CC+:} false; then :
2470 $as_echo_n "(cached) " >&6
2472 if test -n "$CC"; then
2473 ac_cv_prog_CC="$CC" # Let the user override the test.
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2482 ac_cv_prog_CC="${ac_tool_prefix}cc"
2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 if test -n "$CC"; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2495 $as_echo "$CC" >&6; }
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2498 $as_echo "no" >&6; }
2504 if test -z "$CC"; then
2505 # Extract the first word of "cc", so it can be a program name with args.
2506 set dummy cc; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if ${ac_cv_prog_CC+:} false; then :
2510 $as_echo_n "(cached) " >&6
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2524 ac_prog_rejected=yes
2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 if test $ac_prog_rejected = yes; then
2536 # We found a bogon in the path, so make sure we never use it.
2537 set dummy $ac_cv_prog_CC
2539 if test $# != 0; then
2540 # We chose a different compiler from the bogus one.
2541 # However, it has the same basename, so the bogon will be chosen
2542 # first if we set CC to just the basename; use the full file name.
2544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2550 if test -n "$CC"; then
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552 $as_echo "$CC" >&6; }
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 $as_echo "no" >&6; }
2560 if test -z "$CC"; then
2561 if test -n "$ac_tool_prefix"; then
2562 for ac_prog in cl.exe
2564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2567 $as_echo_n "checking for $ac_word... " >&6; }
2568 if ${ac_cv_prog_CC+:} false; then :
2569 $as_echo_n "(cached) " >&6
2571 if test -n "$CC"; then
2572 ac_cv_prog_CC="$CC" # Let the user override the test.
2574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 test -z "$as_dir" && as_dir=.
2579 for ac_exec_ext in '' $ac_executable_extensions; do
2580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 if test -n "$CC"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2594 $as_echo "$CC" >&6; }
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2597 $as_echo "no" >&6; }
2601 test -n "$CC" && break
2604 if test -z "$CC"; then
2606 for ac_prog in cl.exe
2608 # Extract the first word of "$ac_prog", so it can be a program name with args.
2609 set dummy $ac_prog; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_CC="$ac_prog"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636 if test -n "$ac_ct_CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2638 $as_echo "$ac_ct_CC" >&6; }
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2645 test -n "$ac_ct_CC" && break
2648 if test "x$ac_ct_CC" = x; then
2651 case $cross_compiling:$ac_tool_warned in
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655 ac_tool_warned=yes ;;
2664 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2666 as_fn_error $? "no acceptable C compiler found in \$PATH
2667 See \`config.log' for more details" "$LINENO" 5; }
2669 # Provide some information about the compiler.
2670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2673 for ac_option in --version -v -V -qversion; do
2674 { { ac_try="$ac_compiler $ac_option >&5"
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680 $as_echo "$ac_try_echo"; } >&5
2681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2683 if test -s conftest.err; then
2685 ... rest of stderr output deleted ...
2686 10q' conftest.err >conftest.er1
2687 cat conftest.er1 >&5
2689 rm -f conftest.er1 conftest.err
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; }
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2696 $as_echo_n "checking for suffix of object files... " >&6; }
2697 if ${ac_cv_objext+:} false; then :
2698 $as_echo_n "(cached) " >&6
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2711 rm -f conftest.o conftest.obj
2712 if { { ac_try="$ac_compile"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2718 $as_echo "$ac_try_echo"; } >&5
2719 (eval "$ac_compile") 2>&5
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; }; then :
2723 for ac_file in conftest.o conftest.obj conftest.*; do
2724 test -f "$ac_file" || continue;
2726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2727 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2732 $as_echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2735 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2736 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2737 as_fn_error $? "cannot compute suffix of object files: cannot compile
2738 See \`config.log' for more details" "$LINENO" 5; }
2740 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2743 $as_echo "$ac_cv_objext" >&6; }
2744 OBJEXT=$ac_cv_objext
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2747 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2748 if ${ac_cv_c_compiler_gnu+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2765 if ac_fn_c_try_compile "$LINENO"; then :
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2775 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2776 if test $ac_compiler_gnu = yes; then
2781 ac_test_CFLAGS=${CFLAGS+set}
2782 ac_save_CFLAGS=$CFLAGS
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2784 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2785 if ${ac_cv_prog_cc_g+:} false; then :
2786 $as_echo_n "(cached) " >&6
2788 ac_save_c_werror_flag=$ac_c_werror_flag
2789 ac_c_werror_flag=yes
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2803 if ac_fn_c_try_compile "$LINENO"; then :
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2818 if ac_fn_c_try_compile "$LINENO"; then :
2821 ac_c_werror_flag=$ac_save_c_werror_flag
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2834 if ac_fn_c_try_compile "$LINENO"; then :
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842 ac_c_werror_flag=$ac_save_c_werror_flag
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2845 $as_echo "$ac_cv_prog_cc_g" >&6; }
2846 if test "$ac_test_CFLAGS" = set; then
2847 CFLAGS=$ac_save_CFLAGS
2848 elif test $ac_cv_prog_cc_g = yes; then
2849 if test "$GCC" = yes; then
2855 if test "$GCC" = yes; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2862 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2863 if ${ac_cv_prog_cc_c89+:} false; then :
2864 $as_echo_n "(cached) " >&6
2866 ac_cv_prog_cc_c89=no
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2872 #include <sys/types.h>
2873 #include <sys/stat.h>
2874 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2875 struct buf { int x; };
2876 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2877 static char *e (p, i)
2883 static char *f (char * (*g) (char **, int), char **p, ...)
2888 s = g (p, va_arg (v,int));
2893 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2894 function prototypes and stuff, but not '\xHH' hex character constants.
2895 These don't provoke an error unfortunately, instead are silently treated
2896 as 'x'. The following induces an error, until -std is added to get
2897 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2898 array size at least. It's necessary to write '\x00'==0 to get something
2899 that's true only with -std. */
2900 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2903 inside strings and character constants. */
2905 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2907 int test (int i, double x);
2908 struct s1 {int (*f) (int a);};
2909 struct s2 {int (*f) (double a);};
2910 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2916 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2921 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2922 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2924 CC="$ac_save_CC $ac_arg"
2925 if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_cv_prog_cc_c89=$ac_arg
2928 rm -f core conftest.err conftest.$ac_objext
2929 test "x$ac_cv_prog_cc_c89" != "xno" && break
2931 rm -f conftest.$ac_ext
2936 case "x$ac_cv_prog_cc_c89" in
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2939 $as_echo "none needed" >&6; } ;;
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2942 $as_echo "unsupported" >&6; } ;;
2944 CC="$CC $ac_cv_prog_cc_c89"
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2946 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2948 if test "x$ac_cv_prog_cc_c89" != xno; then :
2953 ac_cpp='$CPP $CPPFLAGS'
2954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958 if test $host != $build; then
2959 for ac_prog in gcc cc
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy $ac_prog; ac_word=$2
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 $as_echo_n "checking for $ac_word... " >&6; }
2965 if ${ac_cv_prog_BUILD_CC+:} false; then :
2966 $as_echo_n "(cached) " >&6
2968 if test -n "$BUILD_CC"; then
2969 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_BUILD_CC="$ac_prog"
2979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 BUILD_CC=$ac_cv_prog_BUILD_CC
2989 if test -n "$BUILD_CC"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
2991 $as_echo "$BUILD_CC" >&6; }
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 $as_echo "no" >&6; }
2998 test -n "$BUILD_CC" && break
3004 ac_cpp='$CPP $CPPFLAGS'
3005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3009 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3010 # On Suns, sometimes $CPP names a directory.
3011 if test -n "$CPP" && test -d "$CPP"; then
3014 if test -z "$CPP"; then
3015 if ${ac_cv_prog_CPP+:} false; then :
3016 $as_echo_n "(cached) " >&6
3018 # Double quotes because CPP needs to be expanded
3019 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3022 for ac_c_preproc_warn_flag in '' yes
3024 # Use a header file that comes with gcc, so configuring glibc
3025 # with a fresh cross-compiler works.
3026 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3027 # <limits.h> exists even on freestanding compilers.
3028 # On the NeXT, cc -E runs the code through the compiler's parser,
3029 # not just through cpp. "Syntax error" is here to catch this case.
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3033 # include <limits.h>
3035 # include <assert.h>
3039 if ac_fn_c_try_cpp "$LINENO"; then :
3042 # Broken: fails on valid input.
3045 rm -f conftest.err conftest.i conftest.$ac_ext
3047 # OK, works on sane cases. Now check whether nonexistent headers
3048 # can be detected and how.
3049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3051 #include <ac_nonexistent.h>
3053 if ac_fn_c_try_cpp "$LINENO"; then :
3054 # Broken: success on invalid input.
3057 # Passes both tests.
3061 rm -f conftest.err conftest.i conftest.$ac_ext
3064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065 rm -f conftest.i conftest.err conftest.$ac_ext
3066 if $ac_preproc_ok; then :
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3079 $as_echo "$CPP" >&6; }
3081 for ac_c_preproc_warn_flag in '' yes
3083 # Use a header file that comes with gcc, so configuring glibc
3084 # with a fresh cross-compiler works.
3085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3086 # <limits.h> exists even on freestanding compilers.
3087 # On the NeXT, cc -E runs the code through the compiler's parser,
3088 # not just through cpp. "Syntax error" is here to catch this case.
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3092 # include <limits.h>
3094 # include <assert.h>
3098 if ac_fn_c_try_cpp "$LINENO"; then :
3101 # Broken: fails on valid input.
3104 rm -f conftest.err conftest.i conftest.$ac_ext
3106 # OK, works on sane cases. Now check whether nonexistent headers
3107 # can be detected and how.
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3110 #include <ac_nonexistent.h>
3112 if ac_fn_c_try_cpp "$LINENO"; then :
3113 # Broken: success on invalid input.
3116 # Passes both tests.
3120 rm -f conftest.err conftest.i conftest.$ac_ext
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.i conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then :
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details" "$LINENO" 5; }
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 # We need the C++ compiler only for testing.
3142 ac_cpp='$CXXCPP $CPPFLAGS'
3143 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3146 if test -z "$CXX"; then
3147 if test -n "$CCC"; then
3150 if test -n "$ac_tool_prefix"; then
3151 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3154 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_CXX+:} false; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$CXX"; then
3161 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 if test -n "$CXX"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3183 $as_echo "$CXX" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3190 test -n "$CXX" && break
3193 if test -z "$CXX"; then
3195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3202 $as_echo_n "(cached) " >&6
3204 if test -n "$ac_ct_CXX"; then
3205 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_ac_ct_CXX="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3225 if test -n "$ac_ct_CXX"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3227 $as_echo "$ac_ct_CXX" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3234 test -n "$ac_ct_CXX" && break
3237 if test "x$ac_ct_CXX" = x; then
3240 case $cross_compiling:$ac_tool_warned in
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3252 # Provide some information about the compiler.
3253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3256 for ac_option in --version -v -V -qversion; do
3257 { { ac_try="$ac_compiler $ac_option >&5"
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3266 if test -s conftest.err; then
3268 ... rest of stderr output deleted ...
3269 10q' conftest.err >conftest.er1
3270 cat conftest.er1 >&5
3272 rm -f conftest.er1 conftest.err
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3278 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3279 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3280 $as_echo_n "(cached) " >&6
3282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3296 if ac_fn_cxx_try_compile "$LINENO"; then :
3301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3302 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3306 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3307 if test $ac_compiler_gnu = yes; then
3312 ac_test_CXXFLAGS=${CXXFLAGS+set}
3313 ac_save_CXXFLAGS=$CXXFLAGS
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3315 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3316 if ${ac_cv_prog_cxx_g+:} false; then :
3317 $as_echo_n "(cached) " >&6
3319 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3320 ac_cxx_werror_flag=yes
3323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3324 /* end confdefs.h. */
3334 if ac_fn_cxx_try_compile "$LINENO"; then :
3335 ac_cv_prog_cxx_g=yes
3338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3339 /* end confdefs.h. */
3349 if ac_fn_cxx_try_compile "$LINENO"; then :
3352 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3365 if ac_fn_cxx_try_compile "$LINENO"; then :
3366 ac_cv_prog_cxx_g=yes
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3376 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3377 if test "$ac_test_CXXFLAGS" = set; then
3378 CXXFLAGS=$ac_save_CXXFLAGS
3379 elif test $ac_cv_prog_cxx_g = yes; then
3380 if test "$GXX" = yes; then
3386 if test "$GXX" = yes; then
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3400 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3403 # This will get text that should go into config.make.
3406 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3408 # Check whether --with-gd was given.
3409 if test "${with_gd+set}" = set; then :
3410 withval=$with_gd; case "$with_gd" in
3412 *) libgd_include="-I$withval/include"
3413 libgd_ldflags="-L$withval/lib" ;;
3419 # Check whether --with-gd-include was given.
3420 if test "${with_gd_include+set}" = set; then :
3421 withval=$with_gd_include; case "$with_gd_include" in
3423 *) libgd_include="-I$withval" ;;
3429 # Check whether --with-gd-lib was given.
3430 if test "${with_gd_lib+set}" = set; then :
3431 withval=$with_gd_lib; case "$with_gd_lib" in
3433 *) libgd_ldflags="-L$withval" ;;
3439 if test -n "$libgd_include"; then
3440 config_vars="$config_vars
3441 CFLAGS-memusagestat.c = $libgd_include"
3443 if test -n "$libgd_ldflags"; then
3444 config_vars="$config_vars
3445 libgd-LDFLAGS = $libgd_ldflags"
3449 # Check whether --with-fp was given.
3450 if test "${with_fp+set}" = set; then :
3451 withval=$with_fp; with_fp=$withval
3458 # Check whether --with-binutils was given.
3459 if test "${with_binutils+set}" = set; then :
3460 withval=$with_binutils; path_binutils=$withval
3466 # Check whether --with-selinux was given.
3467 if test "${with_selinux+set}" = set; then :
3468 withval=$with_selinux; with_selinux=$withval
3475 # Check whether --with-headers was given.
3476 if test "${with_headers+set}" = set; then :
3477 withval=$with_headers; sysheaders=$withval
3486 # Check whether --with-default-link was given.
3487 if test "${with_default_link+set}" = set; then :
3488 withval=$with_default_link; use_default_link=$withval
3490 use_default_link=default
3494 # Check whether --enable-sanity-checks was given.
3495 if test "${enable_sanity_checks+set}" = set; then :
3496 enableval=$enable_sanity_checks; enable_sanity=$enableval
3502 # Check whether --enable-shared was given.
3503 if test "${enable_shared+set}" = set; then :
3504 enableval=$enable_shared; shared=$enableval
3509 # Check whether --enable-profile was given.
3510 if test "${enable_profile+set}" = set; then :
3511 enableval=$enable_profile; profile=$enableval
3516 # Check whether --enable-versioning was given.
3517 if test "${enable_versioning+set}" = set; then :
3518 enableval=$enable_versioning; enable_versioning=$enableval
3520 enable_versioning=yes
3524 # Check whether --enable-oldest-abi was given.
3525 if test "${enable_oldest_abi+set}" = set; then :
3526 enableval=$enable_oldest_abi; oldest_abi=$enableval
3531 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3534 cat >>confdefs.h <<_ACEOF
3535 #define GLIBC_OLDEST_ABI "$oldest_abi"
3541 # Check whether --enable-stackguard-randomization was given.
3542 if test "${enable_stackguard_randomization+set}" = set; then :
3543 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3545 enable_stackguard_randomize=no
3548 if test "$enable_stackguard_randomize" = yes; then
3549 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3553 # Check whether --enable-add-ons was given.
3554 if test "${enable_add_ons+set}" = set; then :
3555 enableval=$enable_add_ons;
3561 # Check whether --enable-hidden-plt was given.
3562 if test "${enable_hidden_plt+set}" = set; then :
3563 enableval=$enable_hidden_plt; hidden=$enableval
3568 if test "x$hidden" = xno; then
3569 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3573 # Check whether --enable-bind-now was given.
3574 if test "${enable_bind_now+set}" = set; then :
3575 enableval=$enable_bind_now; bindnow=$enableval
3582 # Check whether --enable-static-nss was given.
3583 if test "${enable_static_nss+set}" = set; then :
3584 enableval=$enable_static_nss; static_nss=$enableval
3589 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3591 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3595 # Check whether --enable-force-install was given.
3596 if test "${enable_force_install+set}" = set; then :
3597 enableval=$enable_force_install; force_install=$enableval
3604 # Check whether --enable-kernel was given.
3605 if test "${enable_kernel+set}" = set; then :
3606 enableval=$enable_kernel; minimum_kernel=$enableval
3609 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3610 # Better nothing than this.
3613 if test "$minimum_kernel" = current; then
3614 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3618 # Check whether --enable-all-warnings was given.
3619 if test "${enable_all_warnings+set}" = set; then :
3620 enableval=$enable_all_warnings; all_warnings=$enableval
3625 # Check whether --enable-multi-arch was given.
3626 if test "${enable_multi_arch+set}" = set; then :
3627 enableval=$enable_multi_arch; multi_arch=$enableval
3633 # Check whether --enable-nss-crypt was given.
3634 if test "${enable_nss_crypt+set}" = set; then :
3635 enableval=$enable_nss_crypt; nss_crypt=$enableval
3640 if test x$nss_crypt = xyes; then
3641 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3642 if test $? -ne 0; then
3643 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3645 old_CFLAGS="$CFLAGS"
3646 CFLAGS="$CFLAGS $nss_includes"
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3652 #include <nsslowhash.h>
3653 void f (void) { NSSLOW_Init (); }
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663 libc_cv_nss_crypt=yes
3666 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3670 LIBS="$LIBS -lfreebl3"
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3675 #include <nsslowhash.h>
3684 if ac_fn_c_try_link "$LINENO"; then :
3685 libc_cv_nss_crypt=yes
3688 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3690 rm -f core conftest.err conftest.$ac_objext \
3691 conftest$ac_exeext conftest.$ac_ext
3692 CFLAGS="$old_CFLAGS"
3695 libc_cv_nss_crypt=no
3700 # Check whether --enable-obsolete-rpc was given.
3701 if test "${enable_obsolete_rpc+set}" = set; then :
3702 enableval=$enable_obsolete_rpc; link_obsolete_rpc=$enableval
3704 link_obsolete_rpc=no
3709 if test "$link_obsolete_rpc" = yes; then
3710 $as_echo "#define LINK_OBSOLETE_RPC 1" >>confdefs.h
3714 # Check whether --enable-systemtap was given.
3715 if test "${enable_systemtap+set}" = set; then :
3716 enableval=$enable_systemtap; systemtap=$enableval
3721 if test "x$systemtap" != xno; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemtap static probe support" >&5
3723 $as_echo_n "checking for systemtap static probe support... " >&6; }
3724 if ${libc_cv_sdt+:} false; then :
3725 $as_echo_n "(cached) " >&6
3727 old_CFLAGS="$CFLAGS"
3728 CFLAGS="-std=gnu99 $CFLAGS"
3729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h. */
3731 #include <sys/sdt.h>
3732 void foo (int i, void *p)
3734 asm ("" STAP_PROBE_ASM (foo, bar, STAP_PROBE_ASM_TEMPLATE (2)) ""
3735 :: STAP_PROBE_ASM_OPERANDS (2, i, p));
3738 if ac_fn_c_try_compile "$LINENO"; then :
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 CFLAGS="$old_CFLAGS"
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_sdt" >&5
3747 $as_echo "$libc_cv_sdt" >&6; }
3748 if test $libc_cv_sdt = yes; then
3749 $as_echo "#define USE_STAP_PROBE 1" >>confdefs.h
3751 elif test "x$systemtap" != xauto; then
3752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3754 as_fn_error $? "systemtap support needs sys/sdt.h with asm support
3755 See \`config.log' for more details" "$LINENO" 5; }
3759 # Note the use of $use_nscd is near the bottom of the file.
3760 # Check whether --enable-nscd was given.
3761 if test "${enable_nscd+set}" = set; then :
3762 enableval=$enable_nscd; use_nscd=$enableval
3768 # The way shlib-versions is used to generate soversions.mk uses a
3769 # fairly simplistic model for name recognition that can't distinguish
3770 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3771 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3772 # tell. This doesn't get used much beyond that, so it's fairly safe.
3777 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3781 # We keep the original values in `$config_*' and never modify them, so we
3782 # can write them unchanged into config.make. Everything else uses
3783 # $machine, $vendor, and $os, and changes them whenever convenient.
3784 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3786 # Don't allow vendor == "unknown"
3787 test "$config_vendor" = unknown && config_vendor=
3788 config_os="`echo $config_os | sed 's/^unknown-//'`"
3790 # Some configurations imply other options.
3793 # The configure fragment of an add-on port can modify these to supplement
3794 # or override the table in the case statement below. No fragment should
3795 # ever change the config_* variables, however.
3796 machine=$config_machine
3797 vendor=$config_vendor
3801 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3803 if test "$machine" = rs6000; then
3807 # Braindead PowerPC box with absolutely no FPU.
3808 case "$machine-$host_os" in
3816 # Check whether --with-cpu was given.
3817 if test "${with_cpu+set}" = set; then :
3818 withval=$with_cpu; case "$withval" in
3819 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3821 *) submachine="$withval" ;;
3827 if frags=`ls -d $srcdir/sysdeps/*/preconfigure 2> /dev/null`
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysdeps preconfigure fragments" >&5
3830 $as_echo_n "checking for sysdeps preconfigure fragments... " >&6; }
3831 for frag in $frags; do
3832 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3833 echo $ECHO_N "$name $ECHO_C" >&6
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3840 # An add-on can set this when it wants to disable the sanity check below.
3846 case "$enable_add_ons" in
3849 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3850 sed 's@/[^/]*$@@' | sort | uniq`
3851 add_ons_automatic=yes
3853 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3854 add_ons_automatic=no ;;
3860 if test x"$add_ons" != x; then
3861 for f in $add_ons; do
3862 # Some sanity checks
3866 *** It seems that you're using an old \`crypt' add-on. crypt is now
3867 *** part of glibc and using the old add-on will not work with this
3868 *** release. Start again with fresh sources and without the old
3869 *** \`crypt' add-on." "$LINENO" 5
3873 *** It seems that you're using an old \`localedata' add-on. localedata
3874 *** is now part of glibc and using the old add-on will not work with
3875 *** this release. Start again with fresh sources and without the old
3876 *** \`localedata' add-on." "$LINENO" 5
3881 # Now source each add-on's configure fragment.
3882 # The fragments can use $srcdir/$libc_add_on to find themselves,
3883 # and test $add_ons_automatic to see if they were explicitly requested.
3884 # A fragment can clear (or even change) $libc_add_on to affect
3885 # whether it goes into the list to be actually used in the build.
3887 for libc_add_on in $add_ons; do
3888 # Test whether such a directory really exists.
3889 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3890 case "$libc_add_on" in
3892 libc_add_on_srcdir=$libc_add_on
3895 test -d "$srcdir/$libc_add_on" || {
3896 if test -d "$libc_add_on"; then
3897 libc_add_on="`pwd`/$libc_add_on"
3899 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3902 libc_add_on_srcdir=$srcdir/$libc_add_on
3906 libc_add_on_frag=$libc_add_on_srcdir/configure
3907 libc_add_on_canonical=
3908 libc_add_on_config_subdirs=
3909 if test -r "$libc_add_on_frag"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3911 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3912 libc_add_on_canonical=unknown
3913 libc_add_on_subdirs=
3914 . "$libc_add_on_frag"
3915 test -z "$libc_add_on" || {
3916 configured_add_ons="$configured_add_ons $libc_add_on"
3917 if test "x$libc_add_on_canonical" = xunknown; then
3918 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3920 for d in $libc_add_on_subdirs; do
3921 case "$libc_add_on" in
3922 /*) subdir_srcdir="$libc_add_on" ;;
3923 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3927 d="${libc_add_on_canonical:-$libc_add_on}"
3933 subdir_srcdir="$subdir_srcdir/$d"
3936 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3937 add_on_subdirs="$add_on_subdirs $d"
3938 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3939 $d-srcdir = $subdir_srcdir"
3941 for d in $libc_add_on_config_subdirs; do
3943 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3945 if test ! -d "$libc_add_on_srcdir/$d"; then
3946 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
3948 case "$libc_add_on" in
3949 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3951 subdirs="$subdirs $libc_add_on/$d"
3955 if test -n "$libc_add_on"; then
3956 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
3959 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
3960 for frag in $frags; do
3961 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3962 echo $ECHO_N "$name $ECHO_C" >&6
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3968 use_add_ons="$use_add_ons $libc_add_on"
3969 add_ons_pfx="$add_ons_pfx $libc_add_on/"
3970 test -z "$libc_add_on_canonical" ||
3971 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
3974 # Use echo to strip excess whitespace.
3975 add_ons="`echo $use_add_ons`"
3982 ### I put this here to prevent those annoying emails from people who cannot
3983 ### read and try to compile glibc on unsupported platforms. --drepper
3985 ### By using the undocumented --enable-hacker-mode option for configure
3986 ### one can skip this test to make the configuration not fail for unsupported
3989 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3990 case "$machine-$host_os" in
3994 echo "*** The GNU C library is currently not available for this platform."
3995 echo "*** So far nobody cared to port it and if there is no volunteer it"
3996 echo "*** might never happen. So, if you have interest to see glibc on"
3997 echo "*** this platform visit"
3998 echo "*** http://www.gnu.org/software/libc/porting.html"
3999 echo "*** and join the group of porters"
4005 # Expand the configuration machine name into a subdirectory by architecture
4006 # type and particular chip. If an add-on configure fragment already set
4007 # base_machine, we don't change it.
4008 test -n "$base_machine" || case "$machine" in
4009 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4010 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4011 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4012 s390) base_machine=s390 machine=s390/s390-32 ;;
4013 s390x) base_machine=s390 machine=s390/s390-64 ;;
4014 sh3*) base_machine=sh machine=sh/sh3 ;;
4015 sh4*) base_machine=sh machine=sh/sh4 ;;
4017 base_machine=sparc machine=sparc/sparc32 ;;
4018 sparcv8 | supersparc | hypersparc)
4019 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4020 sparcv8plus | sparcv8plusa | sparcv9)
4021 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4022 sparcv8plusb | sparcv9b)
4023 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4025 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4027 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4029 base_machine=sparc machine=sparc/sparc64 ;;
4031 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4033 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4035 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4036 *) base_machine=$machine ;;
4040 if test "$base_machine" = "i386"; then
4041 $as_echo "#define USE_REGPARMS 1" >>confdefs.h
4045 # For the multi-arch option we need support in the assembler.
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_indirect_function symbol type support" >&5
4047 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4048 if ${libc_cv_asm_gnu_indirect_function+:} false; then :
4049 $as_echo_n "(cached) " >&6
4051 cat > conftest.s <<EOF
4052 .type foo,%gnu_indirect_function
4054 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4056 libc_cv_asm_gnu_indirect_function=yes
4058 libc_cv_asm_gnu_indirect_function=no
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_gnu_indirect_function" >&5
4063 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4066 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4067 if ${libc_cv_dot_text+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 cat > conftest.s <<EOF
4074 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }; }; then
4080 libc_cv_dot_text=.text
4085 if test -z "$libc_cv_dot_text"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 $as_echo "no" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4090 $as_echo "yes" >&6; }
4093 if test x"$libc_cv_asm_gnu_indirect_function" != xyes; then
4094 if test x"$multi_arch" = xyes; then
4095 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4100 if test x"$multi_arch" != xno; then
4101 multi_arch_d=/multiarch
4104 # Compute the list of sysdep directories for this configuration.
4105 # This can take a while to compute.
4106 sysdep_dir=$srcdir/sysdeps
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4108 $as_echo_n "checking sysdep dirs... " >&6; }
4109 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4110 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4112 test "x$base_os" != x || case "$os" in
4114 base_os=mach/hurd ;;
4116 base_os=unix/sysv ;;
4119 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4122 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4126 o=`echo $tail | sed 's/[0-9]*$//'`
4127 if test $o != $tail; then
4130 # For linux-gnu, try linux-gnu, then linux.
4131 o=`echo $tail | sed 's/-.*$//'`
4132 if test $o != $tail; then
4136 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4139 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4145 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4147 tail=$machine${submachine:+/$submachine}
4148 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4150 # Prepend the machine's FPU directory unless --without-fp.
4151 if test "$with_fp" = yes; then
4152 mach="$mach /$1/fpu"
4154 mach="$mach /$1/nofpu"
4161 # Find what sysdep directories exist.
4164 for b in $base ''; do
4165 for m0 in $mach ''; do
4166 for v in /$vendor ''; do
4167 test "$v" = / && continue
4168 for o in /$ostry ''; do
4169 test "$o" = / && continue
4170 for m in $multi_arch_d $mach ''; do
4171 for d in $add_ons_pfx ''; do
4172 for a in $add_ons_sfx ''; do
4173 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4174 try_srcdir="${srcdir}/"
4178 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4179 test -n "$enable_debug_configure" &&
4180 echo "$0 DEBUG: try $try" >&2
4181 if test -d "$try_srcdir$try"; then
4182 sysnames="$sysnames $try"
4183 { test -n "$o" || test -n "$b"; } && os_used=t
4184 { test -n "$m" || test -n "$m0"; } && machine_used=t
4186 x*/$submachine) submachine_used=t ;;
4188 if test -n "$d"; then
4189 case "$sysnames_add_ons" in
4191 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4204 # If the assembler supports gnu_indirect_function symbol type and the
4205 # architecture supports multi-arch, we enable multi-arch by default.
4206 case $sysnames_add_ons$sysnames in
4210 test x"$multi_arch" = xdefault && multi_arch=no
4213 if test x"$multi_arch" != xno; then
4214 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4219 if test -z "$os_used" && test "$os" != none; then
4220 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4222 if test -z "$machine_used" && test "$machine" != none; then
4223 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4225 if test -z "$submachine_used" && test -n "$submachine"; then
4226 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4230 # We have now validated the configuration.
4232 # Expand the list of system names into a full list of directories
4233 # from each element's parent name and Implies file (if present).
4236 while test $# -gt 0; do
4240 case " $names " in *" $name "*)
4241 # Already in the list.
4245 # Report each name as we discover it, so there is no long pause in output.
4246 echo $ECHO_N "$name $ECHO_C" >&6
4248 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4252 *) xsrcdir=$srcdir/ ;;
4254 test -n "$enable_debug_configure" &&
4255 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4257 for implies_file in Implies Implies-before Implies-after; do
4258 implies_type=`echo $implies_file | sed s/-/_/`
4259 eval ${implies_type}=
4260 if test -f $xsrcdir$name/$implies_file; then
4261 # Collect more names from the `Implies' file (removing comments).
4262 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/$implies_file`"
4263 for x in $implied_candidate; do
4265 if test -d $xsrcdir$name_base/$x; then
4266 eval "${implies_type}=\"\$${implies_type} \$name_base/\$x\""
4269 for d in $add_ons_pfx ''; do
4270 try="${d}sysdeps/$x"
4273 *) try_srcdir=$srcdir/ ;;
4275 test -n "$enable_debug_configure" &&
4276 echo "DEBUG: $name $implies_file $x try($d) {$try_srcdir}$try" >&2
4277 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4279 eval "${implies_type}=\"\$${implies_type} \$try\""
4281 case "$sysnames_add_ons" in
4283 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4287 if test $found = no; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/$implies_file specifies nonexistent $x" >&5
4289 $as_echo "$as_me: WARNING: $name/$implies_file specifies nonexistent $x" >&2;}
4295 # Add NAME to the list of names.
4296 names="$names $name"
4298 # Find the parent of NAME, using the empty string if it has none.
4299 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4301 test -n "$enable_debug_configure" &&
4302 echo "DEBUG: $name Implies='$Implies' rest='$*' parent='$parent' \
4303 Implies_before='$Implies_before' Implies_after='$Implies_after'" >&2
4305 # Add the names implied by NAME, and NAME's parent (if it has one), to
4306 # the list of names to be processed (the argument list). We prepend the
4307 # implied names to the list and append the parent. We want implied
4308 # directories to come before further directories inferred from the
4309 # configuration components; this ensures that for sysv4, unix/common
4310 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4312 sysnames="`echo $Implies $* $Implies_before $parent $Implies_after`"
4313 test -n "$sysnames" && set $sysnames
4316 # Add the default directories.
4317 default_sysnames="sysdeps/generic"
4318 sysnames="$names $default_sysnames"
4320 # The other names were emitted during the scan.
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4322 $as_echo "$default_sysnames" >&6; }
4324 # Collect the list of add-ons that supply partial sysdeps trees.
4326 for add_on in $add_ons; do
4329 *) xsrcdir="$srcdir/" ;;
4332 test -d "$xsrcdir$add_on/sysdeps" || {
4333 case "$configured_add_ons " in
4336 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4342 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4343 case "$sysnames_add_ons" in
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4347 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4352 for d in $sysnames; do
4354 $add_on/sysdeps/*) ;;
4357 (cd "$xsrcdir$d" && for f in *[!~]; do
4360 for ff in $f/*.h; do
4361 test -d "$ff" || { test -e "$ff" && exit 88; }
4365 test -d "$f" || { test -e "$f" && exit 88; }
4369 if test $? -eq 88; then
4374 if test $found = no; then
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4376 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4384 # Find a good install program. We prefer a C program (faster),
4385 # so one script is as good as another. But avoid the broken or
4386 # incompatible versions:
4387 # SysV /etc/install, /usr/sbin/install
4388 # SunOS /usr/etc/install
4389 # IRIX /sbin/install
4391 # AmigaOS /C/install, which installs bootblocks on floppy discs
4392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4395 # OS/2's system install, which has a completely different semantic
4396 # ./install, which can be erroneously created by make from ./install.sh.
4397 # Reject install programs that cannot install multiple files.
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4400 if test -z "$INSTALL"; then
4401 if ${ac_cv_path_install+:} false; then :
4402 $as_echo_n "(cached) " >&6
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 # Account for people who put trailing slashes in PATH elements.
4410 case $as_dir/ in #((
4411 ./ | .// | /[cC]/* | \
4412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4416 # OSF1 and SCO ODT 3.0 have their own names for install.
4417 # Don't use installbsd from OSF since it installs stuff as root
4419 for ac_prog in ginstall scoinst install; do
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4422 if test $ac_prog = install &&
4423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4424 # AIX install. It has an incompatible calling convention.
4426 elif test $ac_prog = install &&
4427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4428 # program-specific install script used by HP pwplus--don't use.
4431 rm -rf conftest.one conftest.two conftest.dir
4432 echo one > conftest.one
4433 echo two > conftest.two
4435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4436 test -s conftest.one && test -s conftest.two &&
4437 test -s conftest.dir/conftest.one &&
4438 test -s conftest.dir/conftest.two
4440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4453 rm -rf conftest.one conftest.two conftest.dir
4456 if test "${ac_cv_path_install+set}" = set; then
4457 INSTALL=$ac_cv_path_install
4459 # As a last resort, use the slow shell script. Don't cache a
4460 # value for INSTALL within a source directory, because that will
4461 # break other packages using the cache if that directory is
4462 # removed, or if the value is a relative name.
4463 INSTALL=$ac_install_sh
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4467 $as_echo "$INSTALL" >&6; }
4469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4470 # It thinks the first close brace ends the variable substitution.
4471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4477 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4478 # The makefiles need to use a different form to find it in $srcdir.
4479 INSTALL='\$(..)./scripts/install-sh -c'
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4482 $as_echo_n "checking whether ln -s works... " >&6; }
4484 if test "$LN_S" = "ln -s"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486 $as_echo "yes" >&6; }
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4489 $as_echo "no, using $LN_S" >&6; }
4493 # Was a --with-binutils option given?
4494 if test -n "$path_binutils"; then
4495 # Make absolute; ensure a single trailing slash.
4496 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4497 CC="$CC -B$path_binutils"
4499 AS=`$CC -print-prog-name=as`
4500 LD=`$CC -print-prog-name=ld`
4501 AR=`$CC -print-prog-name=ar`
4503 OBJDUMP=`$CC -print-prog-name=objdump`
4505 OBJCOPY=`$CC -print-prog-name=objcopy`
4508 # Determine whether we are using GNU binutils.
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4510 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4511 if ${libc_cv_prog_as_gnu+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 # Most GNU programs take a -v and spit out some text including
4515 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4516 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4517 libc_cv_prog_as_gnu=yes
4519 libc_cv_prog_as_gnu=no
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4524 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4526 gnu_as=$libc_cv_prog_as_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4529 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4530 if ${libc_cv_prog_ld_gnu+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 # Most GNU programs take a -v and spit out some text including
4534 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4535 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4536 libc_cv_prog_ld_gnu=yes
4538 libc_cv_prog_ld_gnu=no
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4543 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4544 gnu_ld=$libc_cv_prog_ld_gnu
4547 # Accept binutils 2.20 or newer.
4550 # Extract the first word of "$ac_prog", so it can be a program name with args.
4551 set dummy $ac_prog; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_prog_AS+:} false; then :
4555 $as_echo_n "(cached) " >&6
4557 if test -n "$AS"; then
4558 ac_cv_prog_AS="$AS" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_AS="$ac_prog"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 if test -n "$AS"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4580 $as_echo "$AS" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4587 test -n "$AS" && break
4590 if test -z "$AS"; then
4593 # Found it, now check the version.
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4595 $as_echo_n "checking version of $AS... " >&6; }
4596 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4597 case $ac_prog_version in
4598 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4599 2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4600 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4601 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4605 $as_echo "$ac_prog_version" >&6; }
4607 if test $ac_verc_fail = yes; then
4608 AS=: critic_missing="$critic_missing as"
4613 # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if ${ac_cv_prog_LD+:} false; then :
4618 $as_echo_n "(cached) " >&6
4620 if test -n "$LD"; then
4621 ac_cv_prog_LD="$LD" # Let the user override the test.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_prog_LD="$ac_prog"
4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 if test -n "$LD"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4643 $as_echo "$LD" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4650 test -n "$LD" && break
4653 if test -z "$LD"; then
4656 # Found it, now check the version.
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4658 $as_echo_n "checking version of $LD... " >&6; }
4659 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4660 case $ac_prog_version in
4661 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4662 2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4663 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4664 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4668 $as_echo "$ac_prog_version" >&6; }
4670 if test $ac_verc_fail = yes; then
4671 LD=: critic_missing="$critic_missing ld"
4675 # These programs are version sensitive.
4677 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_prog_CC+:} false; then :
4684 $as_echo_n "(cached) " >&6
4686 if test -n "$CC"; then
4687 ac_cv_prog_CC="$CC" # Let the user override the test.
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_CC="$ac_prog"
4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 if test -n "$CC"; then
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4709 $as_echo "$CC" >&6; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712 $as_echo "no" >&6; }
4716 test -n "$CC" && break
4719 if test -z "$CC"; then
4722 # Found it, now check the version.
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5
4724 $as_echo_n "checking version of $CC... " >&6; }
4725 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4726 case $ac_prog_version in
4727 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4728 4.[3-9].* | 4.[1-9][0-9].* | [5-9].* )
4729 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4730 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4734 $as_echo "$ac_prog_version" >&6; }
4736 if test $ac_verc_fail = yes; then
4737 critic_missing="$critic_missing gcc"
4740 for ac_prog in gnumake gmake make
4742 # Extract the first word of "$ac_prog", so it can be a program name with args.
4743 set dummy $ac_prog; ac_word=$2
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if ${ac_cv_prog_MAKE+:} false; then :
4747 $as_echo_n "(cached) " >&6
4749 if test -n "$MAKE"; then
4750 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 ac_cv_prog_MAKE="$ac_prog"
4760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769 MAKE=$ac_cv_prog_MAKE
4770 if test -n "$MAKE"; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4772 $as_echo "$MAKE" >&6; }
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4775 $as_echo "no" >&6; }
4779 test -n "$MAKE" && break
4782 if test -z "$MAKE"; then
4785 # Found it, now check the version.
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4787 $as_echo_n "checking version of $MAKE... " >&6; }
4788 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4789 case $ac_prog_version in
4790 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4792 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4793 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4797 $as_echo "$ac_prog_version" >&6; }
4799 if test $ac_verc_fail = yes; then
4800 critic_missing="$critic_missing make"
4804 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4806 # Extract the first word of "$ac_prog", so it can be a program name with args.
4807 set dummy $ac_prog; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_prog_MSGFMT+:} false; then :
4811 $as_echo_n "(cached) " >&6
4813 if test -n "$MSGFMT"; then
4814 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_MSGFMT="$ac_prog"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 MSGFMT=$ac_cv_prog_MSGFMT
4834 if test -n "$MSGFMT"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4836 $as_echo "$MSGFMT" >&6; }
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 test -n "$MSGFMT" && break
4846 if test -z "$MSGFMT"; then
4849 # Found it, now check the version.
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
4851 $as_echo_n "checking version of $MSGFMT... " >&6; }
4852 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4853 case $ac_prog_version in
4854 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4855 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
4856 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4857 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4861 $as_echo "$ac_prog_version" >&6; }
4863 if test $ac_verc_fail = yes; then
4864 MSGFMT=: aux_missing="$aux_missing msgfmt"
4867 for ac_prog in makeinfo
4869 # Extract the first word of "$ac_prog", so it can be a program name with args.
4870 set dummy $ac_prog; ac_word=$2
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872 $as_echo_n "checking for $ac_word... " >&6; }
4873 if ${ac_cv_prog_MAKEINFO+:} false; then :
4874 $as_echo_n "(cached) " >&6
4876 if test -n "$MAKEINFO"; then
4877 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_prog_MAKEINFO="$ac_prog"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 MAKEINFO=$ac_cv_prog_MAKEINFO
4897 if test -n "$MAKEINFO"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4899 $as_echo "$MAKEINFO" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4906 test -n "$MAKEINFO" && break
4909 if test -z "$MAKEINFO"; then
4912 # Found it, now check the version.
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
4914 $as_echo_n "checking version of $MAKEINFO... " >&6; }
4915 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4916 case $ac_prog_version in
4917 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4918 4.[5-9]*|4.[1-9][0-9]*|[5-9].*)
4919 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4920 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4924 $as_echo "$ac_prog_version" >&6; }
4926 if test $ac_verc_fail = yes; then
4927 MAKEINFO=: aux_missing="$aux_missing makeinfo"
4932 # Extract the first word of "$ac_prog", so it can be a program name with args.
4933 set dummy $ac_prog; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_prog_SED+:} false; then :
4937 $as_echo_n "(cached) " >&6
4939 if test -n "$SED"; then
4940 ac_cv_prog_SED="$SED" # Let the user override the test.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_prog_SED="$ac_prog"
4950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 if test -n "$SED"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4962 $as_echo "$SED" >&6; }
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4969 test -n "$SED" && break
4972 if test -z "$SED"; then
4975 # Found it, now check the version.
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
4977 $as_echo_n "checking version of $SED... " >&6; }
4978 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed[^0-9]* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4979 case $ac_prog_version in
4980 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4981 3.0[2-9]*|3.[1-9]*|[4-9]*)
4982 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4983 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4987 $as_echo "$ac_prog_version" >&6; }
4989 if test $ac_verc_fail = yes; then
4990 SED=: aux_missing="$aux_missing sed"
4994 if test -n "$ac_tool_prefix"; then
4995 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
4996 set dummy ${ac_tool_prefix}readelf; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_prog_READELF+:} false; then :
5000 $as_echo_n "(cached) " >&6
5002 if test -n "$READELF"; then
5003 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 test -z "$as_dir" && as_dir=.
5010 for ac_exec_ext in '' $ac_executable_extensions; do
5011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
5013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 READELF=$ac_cv_prog_READELF
5023 if test -n "$READELF"; then
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5025 $as_echo "$READELF" >&6; }
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5033 if test -z "$ac_cv_prog_READELF"; then
5034 ac_ct_READELF=$READELF
5035 # Extract the first word of "readelf", so it can be a program name with args.
5036 set dummy readelf; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
5040 $as_echo_n "(cached) " >&6
5042 if test -n "$ac_ct_READELF"; then
5043 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 test -z "$as_dir" && as_dir=.
5050 for ac_exec_ext in '' $ac_executable_extensions; do
5051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052 ac_cv_prog_ac_ct_READELF="readelf"
5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5063 if test -n "$ac_ct_READELF"; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5065 $as_echo "$ac_ct_READELF" >&6; }
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5071 if test "x$ac_ct_READELF" = x; then
5074 case $cross_compiling:$ac_tool_warned in
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5078 ac_tool_warned=yes ;;
5080 READELF=$ac_ct_READELF
5083 READELF="$ac_cv_prog_READELF"
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}nm; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_NM+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$NM"; then
5095 ac_cv_prog_NM="$NM" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_NM="${ac_tool_prefix}nm"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 if test -n "$NM"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5117 $as_echo "$NM" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5125 if test -z "$ac_cv_prog_NM"; then
5127 # Extract the first word of "nm", so it can be a program name with args.
5128 set dummy nm; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$ac_ct_NM"; then
5135 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_ac_ct_NM="nm"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5155 if test -n "$ac_ct_NM"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5157 $as_echo "$ac_ct_NM" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5163 if test "x$ac_ct_NM" = x; then
5166 case $cross_compiling:$ac_tool_warned in
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5179 for ac_prog in autoconf
5181 # Extract the first word of "$ac_prog", so it can be a program name with args.
5182 set dummy $ac_prog; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_prog_AUTOCONF+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 if test -n "$AUTOCONF"; then
5189 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5198 ac_cv_prog_AUTOCONF="$ac_prog"
5199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 AUTOCONF=$ac_cv_prog_AUTOCONF
5209 if test -n "$AUTOCONF"; then
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5211 $as_echo "$AUTOCONF" >&6; }
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5218 test -n "$AUTOCONF" && break
5220 test -n "$AUTOCONF" || AUTOCONF="no"
5222 case "x$AUTOCONF" in
5223 xno|x|x:) AUTOCONF=no ;;
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5226 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5227 if ${libc_cv_autoconf_works+:} false; then :
5228 $as_echo_n "(cached) " >&6
5230 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5231 libc_cv_autoconf_works=yes
5233 libc_cv_autoconf_works=no
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5237 $as_echo "$libc_cv_autoconf_works" >&6; }
5238 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5241 if test "x$AUTOCONF" = xno; then
5242 aux_missing="$aux_missing autoconf"
5245 test -n "$critic_missing" && as_fn_error $? "
5246 *** These critical programs are missing or too old:$critic_missing
5247 *** Check the INSTALL file for required versions." "$LINENO" 5
5249 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5250 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5251 *** some features will be disabled.
5252 *** Check the INSTALL file for required versions." >&5
5253 $as_echo "$as_me: WARNING:
5254 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5255 *** some features will be disabled.
5256 *** Check the INSTALL file for required versions." >&2;}
5258 # if using special system headers, find out the compiler's sekrit
5259 # header directory and add that to the list. NOTE: Only does the right
5260 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5261 if test -n "$sysheaders"; then
5262 SYSINCLUDES=-nostdinc
5263 for d in include include-fixed; do
5264 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5265 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5267 SYSINCLUDES="$SYSINCLUDES \
5268 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5269 if test -n "$CXX"; then
5271 cxxversion=`$CXX -dumpversion 2>&5` &&
5272 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5273 for d in include "$cxxmachine/include"; do
5274 i=../../../../$d/c++/$cxxversion
5275 cxxheaders=`$CXX -print-file-name="$i"` &&
5276 test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
5277 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
5278 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5285 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5286 # since this would lead to problems installing/building glibc.
5287 # LD_LIBRARY_PATH contains the current directory if one of the following
5289 # - one of the terminals (":" and ";") is the first or last sign
5290 # - two terminals occur directly after each other
5291 # - the path contains an element with a dot in it
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5293 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5294 case ${LD_LIBRARY_PATH} in
5295 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5296 ld_library_path_setting="contains current directory"
5299 ld_library_path_setting="ok"
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5303 $as_echo "$ld_library_path_setting" >&6; }
5304 if test "$ld_library_path_setting" != "ok"; then
5306 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5307 *** building glibc. Please change the environment variable
5308 *** and run configure again." "$LINENO" 5
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5312 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5313 if ${libc_cv_gcc_static_libgcc+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5317 libc_cv_gcc_static_libgcc=
5319 libc_cv_gcc_static_libgcc=-static-libgcc
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5323 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5326 # Extract the first word of "bash", so it can be a program name with args.
5327 set dummy bash; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_path_BASH_SHELL+:} false; then :
5331 $as_echo_n "(cached) " >&6
5335 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
5344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5345 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5357 BASH_SHELL=$ac_cv_path_BASH_SHELL
5358 if test -n "$BASH_SHELL"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5360 $as_echo "$BASH_SHELL" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5367 if test "$BASH_SHELL" != no &&
5368 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5369 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5370 libc_cv_have_bash2=yes
5372 libc_cv_have_bash2=no
5376 if test "$BASH_SHELL" = no; then
5377 # Extract the first word of "ksh", so it can be a program name with args.
5378 set dummy ksh; ac_word=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_path_KSH+:} false; then :
5382 $as_echo_n "(cached) " >&6
5386 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5409 if test -n "$KSH"; then
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5
5411 $as_echo "$KSH" >&6; }
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5418 if test "$KSH" = no; then
5421 libc_cv_have_ksh=yes
5426 libc_cv_have_ksh=yes
5430 for ac_prog in gawk mawk nawk awk
5432 # Extract the first word of "$ac_prog", so it can be a program name with args.
5433 set dummy $ac_prog; ac_word=$2
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; }
5436 if ${ac_cv_prog_AWK+:} false; then :
5437 $as_echo_n "(cached) " >&6
5439 if test -n "$AWK"; then
5440 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 test -z "$as_dir" && as_dir=.
5447 for ac_exec_ext in '' $ac_executable_extensions; do
5448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5449 ac_cv_prog_AWK="$ac_prog"
5450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460 if test -n "$AWK"; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5462 $as_echo "$AWK" >&6; }
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5465 $as_echo "no" >&6; }
5469 test -n "$AWK" && break
5472 # Extract the first word of "perl", so it can be a program name with args.
5473 set dummy perl; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_PERL+:} false; then :
5477 $as_echo_n "(cached) " >&6
5481 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5503 PERL=$ac_cv_path_PERL
5504 if test -n "$PERL"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5506 $as_echo "$PERL" >&6; }
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5513 if test "$PERL" != no &&
5514 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5517 # Extract the first word of "install-info", so it can be a program name with args.
5518 set dummy install-info; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5522 $as_echo_n "(cached) " >&6
5524 case $INSTALL_INFO in
5526 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5531 for as_dir in $as_dummy
5534 test -z "$as_dir" && as_dir=.
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5537 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5549 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5550 if test -n "$INSTALL_INFO"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5552 $as_echo "$INSTALL_INFO" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5559 # Extract the first word of "bison", so it can be a program name with args.
5560 set dummy bison; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_path_BISON+:} false; then :
5564 $as_echo_n "(cached) " >&6
5568 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5572 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5573 for as_dir in $as_dummy
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5591 BISON=$ac_cv_path_BISON
5592 if test -n "$BISON"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5594 $as_echo "$BISON" >&6; }
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5603 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5604 if ${libc_cv_friendly_stddef+:} false; then :
5605 $as_echo_n "(cached) " >&6
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #define __need_size_t
5610 #define __need_wchar_t
5617 size_t size; wchar_t wchar;
5619 #error stddef.h ignored __need_*
5621 if (&size == NULL || &wchar == NULL) abort ();
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 libc_cv_friendly_stddef=yes
5629 libc_cv_friendly_stddef=no
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5634 $as_echo "$libc_cv_friendly_stddef" >&6; }
5635 if test $libc_cv_friendly_stddef = yes; then
5636 config_vars="$config_vars
5637 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5641 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5642 if ${libc_cv_need_minus_P+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 cat > conftest.S <<EOF
5646 #include "confdefs.h"
5647 /* Nothing whatsoever. */
5649 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5654 test $ac_status = 0; }; }; then
5655 libc_cv_need_minus_P=no
5657 libc_cv_need_minus_P=yes
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5662 $as_echo "$libc_cv_need_minus_P" >&6; }
5663 if test $libc_cv_need_minus_P = yes; then
5664 config_vars="$config_vars
5665 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5669 $as_echo_n "checking for .set assembler directive... " >&6; }
5670 if ${libc_cv_asm_set_directive+:} false; then :
5671 $as_echo_n "(cached) " >&6
5673 cat > conftest.s <<EOF
5676 .set glibc_conftest_frobozz,foo
5677 .globl glibc_conftest_frobozz
5679 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5680 # (but it doesn't work), so we must do a linking check to be sure.
5681 cat > conftest1.c <<\EOF
5682 extern int glibc_conftest_frobozz;
5683 void _start() { glibc_conftest_frobozz = 1; }
5685 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5686 -nostartfiles -nostdlib \
5687 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5688 libc_cv_asm_set_directive=yes
5690 libc_cv_asm_set_directive=no
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5695 $as_echo "$libc_cv_asm_set_directive" >&6; }
5696 if test $libc_cv_asm_set_directive = yes; then
5697 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5702 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5703 if ${libc_cv_asm_unique_object+:} false; then :
5704 $as_echo_n "(cached) " >&6
5706 cat > conftest.s <<EOF
5709 .type _sym, %gnu_unique_object
5711 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5712 libc_cv_asm_unique_object=yes
5714 libc_cv_asm_unique_object=no
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5719 $as_echo "$libc_cv_asm_unique_object" >&6; }
5720 if test $libc_cv_asm_unique_object = yes; then
5721 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
5726 $as_echo_n "checking for .symver assembler directive... " >&6; }
5727 if ${libc_cv_asm_symver_directive+:} false; then :
5728 $as_echo_n "(cached) " >&6
5730 cat > conftest.s <<EOF
5733 .symver _sym,sym@VERS
5735 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5736 libc_cv_asm_symver_directive=yes
5738 libc_cv_asm_symver_directive=no
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
5743 $as_echo "$libc_cv_asm_symver_directive" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
5745 $as_echo_n "checking for ld --version-script... " >&6; }
5746 if ${libc_cv_ld_version_script_option+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 if test $libc_cv_asm_symver_directive = yes; then
5750 cat > conftest.s <<EOF
5753 .symver _sym,sym@VERS
5755 cat > conftest.map <<EOF
5764 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5765 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5766 -o conftest.so conftest.o
5767 -nostartfiles -nostdlib
5768 -Wl,--version-script,conftest.map
5770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5774 test $ac_status = 0; }; };
5776 libc_cv_ld_version_script_option=yes
5778 libc_cv_ld_version_script_option=no
5781 libc_cv_ld_version_script_option=no
5784 libc_cv_ld_version_script_option=no
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
5789 $as_echo "$libc_cv_ld_version_script_option" >&6; }
5790 if test $shared != no &&
5791 test $libc_cv_asm_symver_directive = yes &&
5792 test $libc_cv_ld_version_script_option = yes &&
5793 test $enable_versioning = yes; then
5795 $as_echo "#define DO_VERSIONING 1" >>confdefs.h
5802 if test $shared != no && test $VERSIONING = no; then
5804 *** WARNING: You should not compile GNU libc without versioning. Not using
5805 *** versioning will introduce incompatibilities so that old binaries
5806 *** will not run anymore.
5807 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5810 $as_echo_n "checking for .previous assembler directive... " >&6; }
5811 if ${libc_cv_asm_previous_directive+:} false; then :
5812 $as_echo_n "(cached) " >&6
5814 cat > conftest.s <<EOF
5815 .section foo_section
5818 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5823 test $ac_status = 0; }; }; then
5824 libc_cv_asm_previous_directive=yes
5826 libc_cv_asm_previous_directive=no
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5831 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5832 if test $libc_cv_asm_previous_directive = yes; then
5833 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5837 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5838 if ${libc_cv_asm_popsection_directive+:} false; then :
5839 $as_echo_n "(cached) " >&6
5841 cat > conftest.s <<EOF
5842 .pushsection foo_section
5845 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5850 test $ac_status = 0; }; }; then
5851 libc_cv_asm_popsection_directive=yes
5853 libc_cv_asm_popsection_directive=no
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5858 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5859 if test $libc_cv_asm_popsection_directive = yes; then
5860 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
5865 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
5866 if ${libc_cv_asm_protected_directive+:} false; then :
5867 $as_echo_n "(cached) " >&6
5869 cat > conftest.s <<EOF
5875 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880 test $ac_status = 0; }; }; then
5881 libc_cv_asm_protected_directive=yes
5883 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
5888 $as_echo "$libc_cv_asm_protected_directive" >&6; }
5890 if test $libc_cv_asm_protected_directive = yes; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
5892 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
5893 if ${libc_cv_visibility_attribute+:} false; then :
5894 $as_echo_n "(cached) " >&6
5896 cat > conftest.c <<EOF
5897 int foo __attribute__ ((visibility ("hidden"))) = 1;
5898 int bar __attribute__ ((visibility ("protected"))) = 1;
5900 libc_cv_visibility_attribute=no
5901 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5906 test $ac_status = 0; }; }; then
5907 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5908 if grep '\.protected.*bar' conftest.s >/dev/null; then
5909 libc_cv_visibility_attribute=yes
5913 rm -f conftest.{c,s}
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
5917 $as_echo "$libc_cv_visibility_attribute" >&6; }
5918 if test $libc_cv_visibility_attribute != yes; then
5919 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
5923 if test $libc_cv_visibility_attribute = yes; then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
5925 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
5926 if ${libc_cv_broken_visibility_attribute+:} false; then :
5927 $as_echo_n "(cached) " >&6
5929 cat > conftest.c <<EOF
5931 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
5932 int bar (int x) { return x; }
5934 libc_cv_broken_visibility_attribute=yes
5935 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5940 test $ac_status = 0; }; }; then
5941 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
5942 libc_cv_broken_visibility_attribute=no
5945 rm -f conftest.c conftest.s
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
5949 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
5950 if test $libc_cv_broken_visibility_attribute = yes; then
5951 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
5956 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
5957 if ${libc_cv_broken_alias_attribute+:} false; then :
5958 $as_echo_n "(cached) " >&6
5960 cat > conftest.c <<EOF
5961 extern int foo (int x) __asm ("xyzzy");
5962 int bar (int x) { return x; }
5963 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
5965 extern __typeof (dfoo) dfoo __asm ("abccb");
5968 libc_cv_broken_alias_attribute=yes
5969 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5974 test $ac_status = 0; }; }; then
5975 if grep 'xyzzy' conftest.s >/dev/null &&
5976 grep 'abccb' conftest.s >/dev/null; then
5977 libc_cv_broken_alias_attribute=no
5980 rm -f conftest.c conftest.s
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
5984 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
5985 if test $libc_cv_broken_alias_attribute = yes; then
5986 as_fn_error $? "working alias attribute support required" "$LINENO" 5
5989 if test $libc_cv_visibility_attribute = yes; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
5991 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
5992 if ${libc_cv_have_sdata_section+:} false; then :
5993 $as_echo_n "(cached) " >&6
5995 echo "int i;" > conftest.c
5996 libc_cv_have_sdata_section=no
5997 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
5998 | grep '\.sdata' >/dev/null; then
5999 libc_cv_have_sdata_section=yes
6001 rm -f conftest.c conftest.so
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6005 $as_echo "$libc_cv_have_sdata_section" >&6; }
6006 if test $libc_cv_have_sdata_section = yes; then
6007 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
6013 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6014 if ${libc_cv_initfini_array+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 cat > conftest.c <<EOF
6018 int _start (void) { return 0; }
6019 int __start (void) { return 0; }
6021 int foo (void) { return 1; }
6022 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6025 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
6026 conftest.c -static -nostartfiles -nostdlib
6028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6032 test $ac_status = 0; }; }; then :
6033 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
6034 libc_cv_initfini_array=yes
6036 libc_cv_initfini_array=no
6039 libc_cv_initfini_array=no
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
6045 $as_echo "$libc_cv_initfini_array" >&6; }
6046 if test $libc_cv_initfini_array != yes; then
6047 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
6051 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
6052 if ${libc_cv_ctors_header+:} false; then :
6053 $as_echo_n "(cached) " >&6
6055 libc_cv_ctors_header=yes
6056 cat > conftest.c <<EOF
6057 int _start (void) { return 0; }
6058 int __start (void) { return 0; }
6060 __attribute__ ((constructor)) void ctor (void) { asm (""); }
6061 __attribute__ ((destructor)) void dtor (void) { asm (""); }
6064 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest
6065 conftest.c -static -nostartfiles -nostdlib
6067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071 test $ac_status = 0; }; }; then :
6072 if $READELF -WS conftest$ac_exeext | $AWK '
6073 { gsub(/\[ */, "[") }
6074 $2 == ".ctors" || $2 == ".dtors" {
6075 size = strtonum("0x" $6)
6076 align = strtonum("0x" $NF)
6078 stub[$2] = size == align * 2
6081 ctors_ok = !seen[".ctors"] || stub[".ctors"]
6082 dtors_ok = !seen[".dtors"] || stub[".dtors"]
6083 exit ((ctors_ok && dtors_ok) ? 0 : 1)
6086 libc_cv_ctors_header=no
6090 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
6097 $as_echo "$libc_cv_ctors_header" >&6; }
6098 if test $libc_cv_ctors_header = no; then
6099 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6104 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6105 if ${libc_cv_cc_with_libunwind+:} false; then :
6106 $as_echo_n "(cached) " >&6
6109 cat > conftest.c <<EOF
6110 int main (void) { return 0; }
6112 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6113 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6114 libc_cv_cc_with_libunwind=yes
6116 libc_cv_cc_with_libunwind=no
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6121 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6123 if test $libc_cv_cc_with_libunwind = yes; then
6124 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodelete option" >&5
6129 $as_echo_n "checking for -z nodelete option... " >&6; }
6130 if ${libc_cv_z_nodelete+:} false; then :
6131 $as_echo_n "(cached) " >&6
6133 cat > conftest.c <<EOF
6134 int _start (void) { return 42; }
6136 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6137 -fPIC -shared -o conftest.so conftest.c
6138 -nostartfiles -nostdlib
6139 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6144 test $ac_status = 0; }; }
6146 libc_cv_z_nodelete=yes
6148 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodelete" >&5
6153 $as_echo "$libc_cv_z_nodelete" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodlopen option" >&5
6156 $as_echo_n "checking for -z nodlopen option... " >&6; }
6157 if ${libc_cv_z_nodlopen+:} false; then :
6158 $as_echo_n "(cached) " >&6
6160 cat > conftest.c <<EOF
6161 int _start (void) { return 42; }
6163 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6164 -fPIC -shared -o conftest.so conftest.c
6165 -nostartfiles -nostdlib
6166 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6171 test $ac_status = 0; }; }
6173 libc_cv_z_nodlopen=yes
6175 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodlopen" >&5
6180 $as_echo "$libc_cv_z_nodlopen" >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z initfirst option" >&5
6183 $as_echo_n "checking for -z initfirst option... " >&6; }
6184 if ${libc_cv_z_initfirst+:} false; then :
6185 $as_echo_n "(cached) " >&6
6187 cat > conftest.c <<EOF
6188 int _start (void) { return 42; }
6190 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6191 -fPIC -shared -o conftest.so conftest.c
6192 -nostartfiles -nostdlib
6193 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; }
6200 libc_cv_z_initfirst=yes
6202 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_initfirst" >&5
6207 $as_echo "$libc_cv_z_initfirst" >&6; }
6209 # Add-on fragments can set these for other machines.
6210 libc_commonpagesize=${libc_commonpagesize:-no}
6211 libc_relro_required=${libc_relro_required:-no}
6212 case "$base_machine" in
6213 i[34567]86 | x86_64 | powerpc* | s390*)
6214 libc_commonpagesize=0x1000
6215 libc_relro_required=yes
6218 libc_commonpagesize=0x2000
6219 libc_relro_required=yes
6223 if test $libc_commonpagesize != no; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5
6225 $as_echo_n "checking for -z relro option... " >&6; }
6226 if ${libc_cv_z_relro+:} false; then :
6227 $as_echo_n "(cached) " >&6
6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6231 /* end confdefs.h. */
6233 int _start (void) { return 42; }
6234 extern void _exit (int);
6235 /* Since these pointers are const, they should go in rodata.
6236 Since they refer to functions that have to be resolved by
6237 dynamic linking, they should instead go in RELRO data. */
6238 const void *const relro[] = { &_start, &_exit, 0 };
6239 /* GNU ld fails to produce RELRO data when it's very small and there is no
6240 normal writable data following it, or if only uninitialized (.bss) data
6241 follows it, or only very small writable data. */
6242 int data[0x10000] = { 1, };
6245 cat > conftest.awk <<\EOF
6248 commonpagesize = strtonum(commonpagesize)
6250 { print "LINE:", $0 > "/dev/stderr" }
6252 vaddr = strtonum($3)
6253 memsz = strtonum($6)
6255 printf "vaddr %#x memsz %#x end %#x commonpagesize %#x\n", \
6256 vaddr, memsz, end, commonpagesize > "/dev/stderr"
6257 result = (end % commonpagesize == 0) ? "yes" : "broken"
6259 END { print result }
6261 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6262 -fPIC -shared -o conftest.so conftest.c
6263 -nostartfiles -nostdlib
6265 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }; } &&
6270 { ac_try='$READELF -Wl conftest.so > conftest.ph'
6271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }; } &&
6277 $AWK -v commonpagesize=$libc_commonpagesize -f conftest.awk
6278 conftest.ph > conftest.cps
6280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; }; } &&
6285 libc_cv_z_relro=`cat conftest.cps 2>&5`
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5
6289 $as_echo "$libc_cv_z_relro" >&6; }
6290 if { test "x$libc_relro_required" = xyes &&
6291 test "x$libc_cv_z_relro" != xyes
6294 as_fn_error $? "linker with -z relro support required" "$LINENO" 5
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing architecture parameter to check for working -z relro" >&5
6298 $as_echo "$as_me: WARNING: missing architecture parameter to check for working -z relro" >&2;}
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6302 $as_echo_n "checking for -Bgroup option... " >&6; }
6303 if ${libc_cv_Bgroup+:} false; then :
6304 $as_echo_n "(cached) " >&6
6306 cat > conftest.c <<EOF
6307 int _start (void) { return 42; }
6309 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6310 -fPIC -shared -o conftest.so conftest.c
6311 -Wl,-Bgroup -nostdlib 1>&5'
6312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }; }
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6325 $as_echo "$libc_cv_Bgroup" >&6; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6330 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6331 if ${libc_cv_as_noexecstack+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 cat > conftest.c <<EOF
6337 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6338 -S -o conftest.s conftest.c 1>&5'
6339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6343 test $ac_status = 0; }; } \
6344 && grep -q .note.GNU-stack conftest.s \
6345 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6346 -c -o conftest.o conftest.s 1>&5'
6347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6351 test $ac_status = 0; }; }
6353 libc_cv_as_noexecstack=yes
6355 libc_cv_as_noexecstack=no
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6360 $as_echo "$libc_cv_as_noexecstack" >&6; }
6361 if test $libc_cv_as_noexecstack = yes; then
6362 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6367 $as_echo_n "checking for -z combreloc... " >&6; }
6368 if ${libc_cv_z_combreloc+:} false; then :
6369 $as_echo_n "(cached) " >&6
6371 cat > conftest.c <<EOF
6372 extern int bar (int);
6374 int foo (void) { return bar (mumble); }
6376 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6377 -fPIC -shared -o conftest.so conftest.c
6378 -nostdlib -nostartfiles
6379 -Wl,-z,combreloc 1>&5'
6380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6384 test $ac_status = 0; }; }
6386 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6387 libc_cv_z_combreloc=yes
6389 libc_cv_z_combreloc=no
6392 libc_cv_z_combreloc=no
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6397 $as_echo "$libc_cv_z_combreloc" >&6; }
6398 if test "$libc_cv_z_combreloc" = yes; then
6399 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z execstack" >&5
6405 $as_echo_n "checking for -z execstack... " >&6; }
6406 if ${libc_cv_z_execstack+:} false; then :
6407 $as_echo_n "(cached) " >&6
6409 cat > conftest.c <<EOF
6410 int _start (void) { return 42; }
6412 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6413 -fPIC -shared -o conftest.so conftest.c
6414 -Wl,-z,execstack -nostdlib
6416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; }
6422 libc_cv_z_execstack=yes
6424 libc_cv_z_execstack=no
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_execstack" >&5
6429 $as_echo "$libc_cv_z_execstack" >&6; }
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6433 $as_echo_n "checking for -fpie... " >&6; }
6434 if ${libc_cv_fpie+:} false; then :
6435 $as_echo_n "(cached) " >&6
6437 if { ac_try='${CC-cc} -fpie -xc /dev/null -S -o /dev/null'
6438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6442 test $ac_status = 0; }; }; then :
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6450 $as_echo "$libc_cv_fpie" >&6; }
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6455 $as_echo_n "checking for --hash-style option... " >&6; }
6456 if ${libc_cv_hashstyle+:} false; then :
6457 $as_echo_n "(cached) " >&6
6459 cat > conftest.c <<EOF
6460 int _start (void) { return 42; }
6462 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6463 -fPIC -shared -o conftest.so conftest.c
6464 -Wl,--hash-style=both -nostdlib 1>&5'
6465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6469 test $ac_status = 0; }; }
6471 libc_cv_hashstyle=yes
6473 libc_cv_hashstyle=no
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6478 $as_echo "$libc_cv_hashstyle" >&6; }
6481 # The linker's default -shared behavior is good enough if it
6482 # does these things that our custom linker scripts ensure that
6483 # all allocated NOTE sections come first.
6484 if test "$use_default_link" = default; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6486 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6487 if ${libc_cv_use_default_link+:} false; then :
6488 $as_echo_n "(cached) " >&6
6490 libc_cv_use_default_link=no
6491 cat > conftest.s <<\EOF
6492 .section .note.a,"a",%note
6497 .section .note.b,"a",%note
6503 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }; } &&
6509 ac_try=`$READELF -S conftest.so | sed -n \
6511 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6517 libc_seen_a=no libc_seen_b=no
6519 while test $# -ge 2 -a "$1" = NOTE; do
6521 .note.a) libc_seen_a=yes ;;
6522 .note.b) libc_seen_b=yes ;;
6526 case "$libc_seen_a$libc_seen_b" in
6528 libc_cv_use_default_link=yes
6532 $libc_seen_a$libc_seen_b from:
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6540 $as_echo "$libc_cv_use_default_link" >&6; }
6541 use_default_link=$libc_cv_use_default_link
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6545 $as_echo_n "checking linker output format... " >&6; }
6546 if ${libc_cv_output_format+:} false; then :
6547 $as_echo_n "(cached) " >&6
6549 if libc_cv_output_format=`
6550 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6554 libc_cv_output_format=
6556 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6559 $as_echo "$libc_cv_output_format" >&6; }
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6563 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6564 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6565 $as_echo_n "(cached) " >&6
6567 cat > conftest.c <<EOF
6570 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576 test $ac_status = 0; }; }
6578 libc_cv_fno_toplevel_reorder=yes
6580 libc_cv_fno_toplevel_reorder=no
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6585 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6586 if test $libc_cv_fno_toplevel_reorder = yes; then
6587 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6589 fno_unit_at_a_time=-fno-unit-at-a-time
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6594 $as_echo_n "checking for -fstack-protector... " >&6; }
6595 if ${libc_cv_ssp+:} false; then :
6596 $as_echo_n "(cached) " >&6
6598 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Werror -fstack-protector -xc /dev/null -S -o /dev/null'
6599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; }; }; then :
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6611 $as_echo "$libc_cv_ssp" >&6; }
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6615 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6616 if ${libc_cv_gnu89_inline+:} false; then :
6617 $as_echo_n "(cached) " >&6
6619 cat > conftest.c <<EOF
6621 #ifdef __GNUC_GNU_INLINE__
6622 main () { return 0;}
6627 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6628 -o conftest.s conftest.c 1>&5'
6629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6633 test $ac_status = 0; }; }
6635 libc_cv_gnu89_inline=yes
6637 libc_cv_gnu89_inline=no
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6642 $as_echo "$libc_cv_gnu89_inline" >&6; }
6643 if test $libc_cv_gnu89_inline = yes; then
6644 gnu89_inline=-fgnu89-inline
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6651 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6652 if ${libc_cv_have_section_quotes+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 cat > conftest.c <<EOF
6656 static const int foo
6657 __attribute__ ((section ("bar"))) = 1;
6659 if ${CC-cc} -S conftest.c -o conftest.s; then
6660 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6661 libc_cv_have_section_quotes=yes
6663 libc_cv_have_section_quotes=no
6666 libc_cv_have_section_quotes=unknown
6668 rm -f conftest.{c,s}
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6672 $as_echo "$libc_cv_have_section_quotes" >&6; }
6673 if test $libc_cv_have_section_quotes = yes; then
6674 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6679 $as_echo_n "checking for assembler .weak directive... " >&6; }
6680 if ${libc_cv_asm_weak_directive+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 cat > conftest.s <<EOF
6688 .weak bar; bar = foo
6690 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6695 test $ac_status = 0; }; }; then
6696 libc_cv_asm_weak_directive=yes
6698 libc_cv_asm_weak_directive=no
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6703 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6705 if test $libc_cv_asm_weak_directive = no; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6707 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6708 if ${libc_cv_asm_weakext_directive+:} false; then :
6709 $as_echo_n "(cached) " >&6
6711 cat > conftest.s <<EOF
6720 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6725 test $ac_status = 0; }; }; then
6726 libc_cv_asm_weakext_directive=yes
6728 libc_cv_asm_weakext_directive=no
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6733 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
6737 if test $libc_cv_asm_weak_directive = yes; then
6738 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
6740 elif test $libc_cv_asm_weakext_directive = yes; then
6741 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5
6746 $as_echo_n "checking whether CFI directives are supported... " >&6; }
6747 if ${libc_cv_asm_cfi_directives+:} false; then :
6748 $as_echo_n "(cached) " >&6
6751 sparc/sparc64*) cfi_offset=2047;;
6754 cat > conftest.s <<EOF
6756 .type func,%function
6760 .cfi_rel_offset 1, $cfi_offset
6763 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6768 test $ac_status = 0; }; }; then
6769 libc_cv_asm_cfi_directives=yes
6771 libc_cv_asm_cfi_directives=no
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5
6776 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
6777 if test $libc_cv_asm_cfi_directives = yes; then
6778 $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
6783 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
6784 if ${libc_cv_ld_no_whole_archive+:} false; then :
6785 $as_echo_n "(cached) " >&6
6787 cat > conftest.c <<\EOF
6792 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6793 -nostdlib -nostartfiles -Wl,--no-whole-archive
6794 -o conftest conftest.c 1>&5'
6795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799 test $ac_status = 0; }; }; then
6800 libc_cv_ld_no_whole_archive=yes
6802 libc_cv_ld_no_whole_archive=no
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
6807 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
6808 if test $libc_cv_ld_no_whole_archive = no; then
6809 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
6813 $as_echo_n "checking for gcc -fexceptions... " >&6; }
6814 if ${libc_cv_gcc_exceptions+:} false; then :
6815 $as_echo_n "(cached) " >&6
6817 cat > conftest.c <<\EOF
6822 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6823 -nostdlib -nostartfiles -fexceptions
6824 -o conftest conftest.c 1>&5'
6825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6829 test $ac_status = 0; }; }; then
6830 libc_cv_gcc_exceptions=yes
6832 libc_cv_gcc_exceptions=no
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
6837 $as_echo "$libc_cv_gcc_exceptions" >&6; }
6838 if test $libc_cv_gcc_exceptions = yes; then
6839 exceptions=-fexceptions
6842 if test "$host_cpu" = powerpc ; then
6843 # Check for a bug present in at least versions 2.8.x of GCC
6844 # and versions 1.0.x of EGCS.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5
6846 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
6847 if ${libc_cv_c_asmcr0_bug+:} false; then :
6848 $as_echo_n "(cached) " >&6
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
6861 if ac_fn_c_try_compile "$LINENO"; then :
6862 libc_cv_c_asmcr0_bug='no'
6864 libc_cv_c_asmcr0_bug='yes'
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5
6869 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
6870 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
6871 $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
6877 $as_echo_n "checking for __builtin_memset... " >&6; }
6878 if ${libc_cv_gcc_builtin_memset+:} false; then :
6879 $as_echo_n "(cached) " >&6
6881 cat > conftest.c <<\EOF
6884 __builtin_memset (x, 0, 1000);
6887 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
6888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6892 test $ac_status = 0; }; };
6894 libc_cv_gcc_builtin_memset=no
6896 libc_cv_gcc_builtin_memset=yes
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
6901 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
6902 if test "$libc_cv_gcc_builtin_memset" = yes ; then
6903 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
6908 $as_echo_n "checking for redirection of built-in functions... " >&6; }
6909 if ${libc_cv_gcc_builtin_redirection+:} false; then :
6910 $as_echo_n "(cached) " >&6
6912 cat > conftest.c <<\EOF
6913 extern char *strstr (const char *, const char *) __asm ("my_strstr");
6914 char *foo (const char *a, const char *b)
6916 return __builtin_strstr (a, b);
6919 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
6920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6924 test $ac_status = 0; }; };
6926 libc_cv_gcc_builtin_redirection=yes
6928 libc_cv_gcc_builtin_redirection=no
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
6933 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
6934 if test "$libc_cv_gcc_builtin_redirection" = no; then
6935 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
6939 $as_echo_n "checking for __thread... " >&6; }
6940 if ${libc_cv_gcc___thread+:} false; then :
6941 $as_echo_n "(cached) " >&6
6943 cat > conftest.c <<\EOF
6944 __thread int a = 42;
6946 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
6947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951 test $ac_status = 0; }; }; then
6952 libc_cv_gcc___thread=yes
6954 libc_cv_gcc___thread=no
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
6959 $as_echo "$libc_cv_gcc___thread" >&6; }
6960 if test "$libc_cv_gcc___thread" = no; then
6961 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
6965 $as_echo_n "checking for tls_model attribute... " >&6; }
6966 if ${libc_cv_gcc_tls_model_attr+:} false; then :
6967 $as_echo_n "(cached) " >&6
6969 cat > conftest.c <<\EOF
6970 extern __thread int a __attribute__((tls_model ("initial-exec")));
6972 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
6973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6977 test $ac_status = 0; }; }; then
6978 libc_cv_gcc_tls_model_attr=yes
6980 libc_cv_gcc_tls_model_attr=no
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
6985 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
6986 if test "$libc_cv_gcc_tls_model_attr" = no; then
6987 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to disable generation of FMA instructions" >&5
6991 $as_echo_n "checking for compiler option to disable generation of FMA instructions... " >&6; }
6992 if ${libc_cv_cc_nofma+:} false; then :
6993 $as_echo_n "(cached) " >&6
6996 for opt in -ffp-contract=off -mno-fused-madd; do
6997 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
6998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; }; then :
7003 libc_cv_cc_nofma=$opt; break
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_nofma" >&5
7008 $as_echo "$libc_cv_cc_nofma" >&6; }
7010 if test -n "$submachine"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7012 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7013 if ${libc_cv_cc_submachine+:} false; then :
7014 $as_echo_n "(cached) " >&6
7016 libc_cv_cc_submachine=no
7017 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7018 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7023 test $ac_status = 0; }; }; then :
7025 libc_cv_cc_submachine="$opt"
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7031 $as_echo "$libc_cv_cc_submachine" >&6; }
7032 if test "x$libc_cv_cc_submachine" = xno; then
7033 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7039 $as_echo_n "checking for libgd... " >&6; }
7040 if test "$with_gd" != "no"; then
7041 old_CFLAGS="$CFLAGS"
7042 CFLAGS="$CFLAGS $libgd_include"
7043 old_LDFLAGS="$LDFLAGS"
7044 LDFLAGS="$LDFLAGS $libgd_ldflags"
7046 LIBS="$LIBS -lgd -lpng -lz -lm"
7047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7058 if ac_fn_c_try_link "$LINENO"; then :
7063 rm -f core conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext conftest.$ac_ext
7065 CFLAGS="$old_CFLAGS"
7066 LDFLAGS="$old_LDFLAGS"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7072 $as_echo "$LIBGD" >&6; }
7076 if test x$with_selinux = xno ; then
7079 # See if we have the SELinux library
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7081 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7082 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
7083 $as_echo_n "(cached) " >&6
7085 ac_check_lib_save_LIBS=$LIBS
7086 LIBS="-lselinux $LIBS"
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7096 char is_selinux_enabled ();
7100 return is_selinux_enabled ();
7105 if ac_fn_c_try_link "$LINENO"; then :
7106 ac_cv_lib_selinux_is_selinux_enabled=yes
7108 ac_cv_lib_selinux_is_selinux_enabled=no
7110 rm -f core conftest.err conftest.$ac_objext \
7111 conftest$ac_exeext conftest.$ac_ext
7112 LIBS=$ac_check_lib_save_LIBS
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7115 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7116 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
7122 # See if we have the SELinux header with the NSCD permissions in it.
7123 if test x$have_selinux = xyes ; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7125 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128 #include <selinux/av_permissions.h>
7132 #ifdef NSCD__SHMEMHOST
7135 #error NSCD__SHMEMHOST not defined
7141 if ac_fn_c_try_compile "$LINENO"; then :
7146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5
7148 $as_echo "$have_selinux" >&6; }
7151 if test x$with_selinux = xyes ; then
7152 if test x$have_selinux = xno ; then
7153 as_fn_error $? "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5
7157 # Check if we're building with SELinux support.
7158 if test "x$have_selinux" = xyes; then
7160 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7163 # See if we have the libaudit library
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7165 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7166 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
7167 $as_echo_n "(cached) " >&6
7169 ac_check_lib_save_LIBS=$LIBS
7170 LIBS="-laudit $LIBS"
7171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7172 /* end confdefs.h. */
7174 /* Override any GCC internal prototype to avoid an error.
7175 Use char because int might match the return type of a GCC
7176 builtin and then its argument prototype would still apply. */
7180 char audit_log_user_avc_message ();
7184 return audit_log_user_avc_message ();
7189 if ac_fn_c_try_link "$LINENO"; then :
7190 ac_cv_lib_audit_audit_log_user_avc_message=yes
7192 ac_cv_lib_audit_audit_log_user_avc_message=no
7194 rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7196 LIBS=$ac_check_lib_save_LIBS
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7199 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7200 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
7206 if test "x$have_libaudit" = xyes; then
7208 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
7213 # See if we have the libcap library
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7215 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7216 if ${ac_cv_lib_cap_cap_init+:} false; then :
7217 $as_echo_n "(cached) " >&6
7219 ac_check_lib_save_LIBS=$LIBS
7221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7222 /* end confdefs.h. */
7224 /* Override any GCC internal prototype to avoid an error.
7225 Use char because int might match the return type of a GCC
7226 builtin and then its argument prototype would still apply. */
7239 if ac_fn_c_try_link "$LINENO"; then :
7240 ac_cv_lib_cap_cap_init=yes
7242 ac_cv_lib_cap_cap_init=no
7244 rm -f core conftest.err conftest.$ac_objext \
7245 conftest$ac_exeext conftest.$ac_ext
7246 LIBS=$ac_check_lib_save_LIBS
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7249 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7250 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
7256 if test "x$have_libcap" = xyes; then
7258 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7266 # The cast to long int works around a bug in the HP C Compiler
7267 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7268 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7269 # This bug is HP SR number 8606223364.
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7271 $as_echo_n "checking size of long double... " >&6; }
7272 if ${ac_cv_sizeof_long_double+:} false; then :
7273 $as_echo_n "(cached) " >&6
7275 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7278 if test "$ac_cv_type_long_double" = yes; then
7279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7281 as_fn_error 77 "cannot compute sizeof (long double)
7282 See \`config.log' for more details" "$LINENO" 5; }
7284 ac_cv_sizeof_long_double=0
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7290 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7294 cat >>confdefs.h <<_ACEOF
7295 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7299 sizeof_long_double=$ac_cv_sizeof_long_double
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FORTIFY_SOURCE predefine" >&5
7304 $as_echo_n "checking for _FORTIFY_SOURCE predefine... " >&6; }
7305 if ${libc_cv_predef_fortify_source+:} false; then :
7306 $as_echo_n "(cached) " >&6
7308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h. */
7315 #ifdef _FORTIFY_SOURCE
7322 if ac_fn_c_try_compile "$LINENO"; then :
7323 libc_cv_predef_fortify_source=no
7325 libc_cv_predef_fortify_source=yes
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_fortify_source" >&5
7330 $as_echo "$libc_cv_predef_fortify_source" >&6; }
7331 if test $libc_cv_predef_fortify_source = yes; then
7332 CPPUNDEFS="${CPPUNDEFS:+$CPPUNDEFS }-U_FORTIFY_SOURCE"
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implicitly enables -fstack-protector" >&5
7337 $as_echo_n "checking whether $CC implicitly enables -fstack-protector... " >&6; }
7338 if ${libc_cv_predef_stack_protector+:} false; then :
7339 $as_echo_n "(cached) " >&6
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h. */
7344 extern void foobar (char *);
7348 char large_array[2048]; foobar (large_array);
7353 if ac_fn_c_try_compile "$LINENO"; then :
7355 libc_undefs=`$NM -u conftest.o |
7356 LC_ALL=C $AWK '$1 == "U" { print $2 | "sort -u"; next } { exit(1) }' \
7358 as_fn_error $? "confusing output from $NM -u" "$LINENO" 5
7360 echo >&5 "libc_undefs='$libc_undefs'"
7361 # On some architectures, there are architecture-specific undefined
7362 # symbols (resolved by the linker), so filter out unknown symbols.
7363 # This will fail to produce the correct result if the compiler
7364 # defaults to -fstack-protector but this produces an undefined symbol
7365 # other than __stack_chk_fail. However, compilers like that have not
7366 # been encountered in practice.
7367 libc_undefs=`echo "$libc_undefs" | egrep '^(foobar|__stack_chk_fail)$'`
7368 case "$libc_undefs" in
7369 foobar) libc_cv_predef_stack_protector=no ;;
7371 foobar') libc_cv_predef_stack_protector=yes ;;
7372 *) as_fn_error $? "unexpected symbols in test: $libc_undefs" "$LINENO" 5 ;;
7375 as_fn_error $? "test compilation failed" "$LINENO" 5
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_predef_stack_protector" >&5
7381 $as_echo "$libc_cv_predef_stack_protector" >&6; }
7383 if test $libc_cv_predef_stack_protector = yes; then
7384 libc_extra_cflags=-fno-stack-protector
7388 ### End of automated tests.
7389 ### Now run sysdeps configure fragments.
7391 # They also can set these variables.
7393 ldd_rewrite_script=no
7394 libc_cv_sysconfdir=$sysconfdir
7395 libc_cv_localstatedir=$localstatedir
7396 libc_cv_gcc_unwind_find_fde=no
7399 # Iterate over all the sysdep directories we will use, running their
7400 # configure fragments.
7401 for dir in $sysnames; do
7404 *) dest=$srcdir/$dir ;;
7406 if test -r $dest/configure; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7408 $as_echo "running configure fragment for $dir" >&6; }
7413 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7414 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7419 # This is far from the AC_ARG_ENABLE that sets it so that a sysdeps
7420 # configure fragment can override the value to prevent this AC_DEFINE.
7422 if test "x$use_nscd" != xno; then
7423 $as_echo "#define USE_NSCD 1" >>confdefs.h
7427 # Test for old glibc 2.0.x headers so that they can be removed properly
7428 # Search only in includedir.
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7430 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7431 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7433 old_glibc_headers=yes
7435 old_glibc_headers=no
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7438 $as_echo "$old_glibc_headers" >&6; }
7439 if test ${old_glibc_headers} = yes; then
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7441 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7443 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7471 $as_echo_n "checking whether -fPIC is default... " >&6; }
7472 if ${libc_cv_pic_default+:} false; then :
7473 $as_echo_n "(cached) " >&6
7475 libc_cv_pic_default=yes
7476 cat > conftest.c <<EOF
7477 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7478 # error PIC is default.
7481 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7482 libc_cv_pic_default=no
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7487 $as_echo "$libc_cv_pic_default" >&6; }
7497 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7500 config_makefile=Makefile
7503 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7504 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7508 ac_config_files="$ac_config_files config.make ${config_makefile}"
7510 ac_config_commands="$ac_config_commands default"
7512 cat >confcache <<\_ACEOF
7513 # This file is a shell script that caches the results of configure
7514 # tests run on this system so they can be shared between configure
7515 # scripts and configure runs, see configure's option --config-cache.
7516 # It is not useful on other systems. If it contains results you don't
7517 # want to keep, you may remove or edit it.
7519 # config.status only pays attention to the cache file if you give it
7520 # the --recheck option to rerun configure.
7522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7528 # The following way of writing the cache mishandles newlines in values,
7529 # but we know of no workaround that is simple, portable, and efficient.
7530 # So, we kill variables containing newlines.
7531 # Ultrix sh set writes to stderr and can't be redirected directly,
7532 # and sets the high bit in the cache file unless we assign to the vars.
7534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7535 eval ac_val=\$$ac_var
7539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7543 _ | IFS | as_nl) ;; #(
7544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7545 *) { eval $ac_var=; unset $ac_var;} ;;
7551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7552 *${as_nl}ac_space=\ *)
7553 # `set' does not quote correctly, so add quotes: double-quote
7554 # substitution turns \\\\ into \\, and sed turns \\ into \.
7557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7560 # `set' quotes correctly as required by POSIX, so do not add quotes.
7561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7575 if test -w "$cache_file"; then
7576 if test "x$cache_file" != "x/dev/null"; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7578 $as_echo "$as_me: updating cache $cache_file" >&6;}
7579 if test ! -f "$cache_file" || test -h "$cache_file"; then
7580 cat confcache >"$cache_file"
7582 case $cache_file in #(
7584 mv -f confcache "$cache_file"$$ &&
7585 mv -f "$cache_file"$$ "$cache_file" ;; #(
7587 mv -f confcache "$cache_file" ;;
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7593 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7599 # Let make expand exec_prefix.
7600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7602 DEFS=-DHAVE_CONFIG_H
7607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7608 # 1. Remove the extension, and $U if already installed.
7609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7612 # will be set to the directory where LIBOBJS objects are built.
7613 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7614 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7618 LTLIBOBJS=$ac_ltlibobjs
7622 : "${CONFIG_STATUS=./config.status}"
7624 ac_clean_files_save=$ac_clean_files
7625 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7627 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7629 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7631 # Generated by $as_me.
7632 # Run this file to recreate the current configuration.
7633 # Compiler output produced by configure, useful for debugging
7634 # configure, is in config.log if it exists.
7640 SHELL=\${CONFIG_SHELL-$SHELL}
7643 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7644 ## -------------------- ##
7645 ## M4sh Initialization. ##
7646 ## -------------------- ##
7648 # Be more Bourne compatible
7649 DUALCASE=1; export DUALCASE # for MKS sh
7650 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7653 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7654 # is contrary to our usage. Disable this feature.
7655 alias -g '${1+"$@"}'='"$@"'
7656 setopt NO_GLOB_SUBST
7658 case `(set -o) 2>/dev/null` in #(
7670 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7671 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7672 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7673 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7674 # Prefer a ksh shell builtin over an external printf program on Solaris,
7675 # but without wasting forks for bash or zsh.
7676 if test -z "$BASH_VERSION$ZSH_VERSION" \
7677 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7678 as_echo='print -r --'
7679 as_echo_n='print -rn --'
7680 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7681 as_echo='printf %s\n'
7682 as_echo_n='printf %s'
7684 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7685 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7686 as_echo_n='/usr/ucb/echo -n'
7688 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7689 as_echo_n_body='eval
7693 expr "X$arg" : "X\\(.*\\)$as_nl";
7694 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7696 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7698 export as_echo_n_body
7699 as_echo_n='sh -c $as_echo_n_body as_echo'
7702 as_echo='sh -c $as_echo_body as_echo'
7705 # The user is always right.
7706 if test "${PATH_SEPARATOR+set}" != set; then
7708 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7709 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7716 # We need space, tab and new line, in precisely that order. Quoting is
7717 # there to prevent editors from complaining about space-tab.
7718 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7719 # splitting by setting IFS to empty value.)
7722 # Find who we are. Look in the path if we contain no directory separator.
7725 *[\\/]* ) as_myself=$0 ;;
7726 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7737 # We did not find ourselves, most probably we were run as `sh COMMAND'
7738 # in which case we are not to be found in the path.
7739 if test "x$as_myself" = x; then
7742 if test ! -f "$as_myself"; then
7743 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7747 # Unset variables that we do not need and which cause bugs (e.g. in
7748 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7749 # suppresses any "Segmentation fault" message there. '((' could
7750 # trigger a bug in pdksh 5.2.14.
7751 for as_var in BASH_ENV ENV MAIL MAILPATH
7752 do eval test x\${$as_var+set} = xset \
7753 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7766 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7769 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7770 # ----------------------------------------
7771 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7772 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7773 # script with STATUS, using 1 if that was 0.
7776 as_status=$1; test $as_status -eq 0 && as_status=1
7778 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7779 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7781 $as_echo "$as_me: error: $2" >&2
7782 as_fn_exit $as_status
7786 # as_fn_set_status STATUS
7787 # -----------------------
7788 # Set $? to STATUS, without forking.
7792 } # as_fn_set_status
7796 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7806 # Portably unset VAR.
7809 { eval $1=; unset $1;}
7811 as_unset=as_fn_unset
7812 # as_fn_append VAR VALUE
7813 # ----------------------
7814 # Append the text in VALUE to the end of the definition contained in VAR. Take
7815 # advantage of any shell optimizations that allow amortized linear growth over
7816 # repeated appends, instead of the typical quadratic growth present in naive
7818 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7819 eval 'as_fn_append ()
7830 # as_fn_arith ARG...
7831 # ------------------
7832 # Perform arithmetic evaluation on the ARGs, and store the result in the
7833 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7834 # must be portable across $(()) and expr.
7835 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7836 eval 'as_fn_arith ()
7843 as_val=`expr "$@" || test $? -eq 1`
7848 if expr a : '\(a\)' >/dev/null 2>&1 &&
7849 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7855 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7856 as_basename=basename
7861 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7867 as_me=`$as_basename -- "$0" ||
7868 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7869 X"$0" : 'X\(//\)$' \| \
7870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7872 sed '/^.*\/\([^/][^/]*\)\/*$/{
7886 # Avoid depending upon Character Ranges.
7887 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7888 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7889 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7890 as_cr_digits='0123456789'
7891 as_cr_alnum=$as_cr_Letters$as_cr_digits
7893 ECHO_C= ECHO_N= ECHO_T=
7894 case `echo -n x` in #(((((
7896 case `echo 'xy\c'` in
7897 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7899 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7906 rm -f conf$$ conf$$.exe conf$$.file
7907 if test -d conf$$.dir; then
7908 rm -f conf$$.dir/conf$$.file
7911 mkdir conf$$.dir 2>/dev/null
7913 if (echo >conf$$.file) 2>/dev/null; then
7914 if ln -s conf$$.file conf$$ 2>/dev/null; then
7916 # ... but there are two gotchas:
7917 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7918 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7919 # In both cases, we have to default to `cp -p'.
7920 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7922 elif ln conf$$.file conf$$ 2>/dev/null; then
7930 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7931 rmdir conf$$.dir 2>/dev/null
7936 # Create "$as_dir" as a directory, including parents if necessary.
7941 -*) as_dir=./$as_dir;;
7943 test -d "$as_dir" || eval $as_mkdir_p || {
7947 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7948 *) as_qdir=$as_dir;;
7950 as_dirs="'$as_qdir' $as_dirs"
7951 as_dir=`$as_dirname -- "$as_dir" ||
7952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7953 X"$as_dir" : 'X\(//\)[^/]' \| \
7954 X"$as_dir" : 'X\(//\)$' \| \
7955 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7956 $as_echo X"$as_dir" |
7957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7974 test -d "$as_dir" && break
7976 test -z "$as_dirs" || eval "mkdir $as_dirs"
7977 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7981 if mkdir -p . 2>/dev/null; then
7982 as_mkdir_p='mkdir -p "$as_dir"'
7984 test -d ./-p && rmdir ./-p
7988 if test -x / >/dev/null 2>&1; then
7991 if ls -dL / >/dev/null 2>&1; then
7998 if test -d "$1"; then
8004 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8005 ???[sx]*):;;*)false;;esac;fi
8009 as_executable_p=$as_test_x
8011 # Sed expression to map a string onto a valid CPP name.
8012 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8014 # Sed expression to map a string onto a valid variable name.
8015 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8019 ## ----------------------------------- ##
8020 ## Main body of $CONFIG_STATUS script. ##
8021 ## ----------------------------------- ##
8023 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8026 # Save the log message, to keep $0 and so on meaningful, and to
8027 # report actual input values of CONFIG_FILES etc. instead of their
8028 # values after options handling.
8030 This file was extended by GNU C Library $as_me (see version.h), which was
8031 generated by GNU Autoconf 2.68. Invocation command line was
8033 CONFIG_FILES = $CONFIG_FILES
8034 CONFIG_HEADERS = $CONFIG_HEADERS
8035 CONFIG_LINKS = $CONFIG_LINKS
8036 CONFIG_COMMANDS = $CONFIG_COMMANDS
8039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8044 case $ac_config_files in *"
8045 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8048 case $ac_config_headers in *"
8049 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8054 # Files that config.status was made for.
8055 config_files="$ac_config_files"
8056 config_headers="$ac_config_headers"
8057 config_commands="$ac_config_commands"
8061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8063 \`$as_me' instantiates files and other configuration actions
8064 from templates according to the current configuration. Unless the files
8065 and actions are specified as TAGs, all are instantiated by default.
8067 Usage: $0 [OPTION]... [TAG]...
8069 -h, --help print this help, then exit
8070 -V, --version print version number and configuration settings, then exit
8071 --config print configuration, then exit
8072 -q, --quiet, --silent
8073 do not print progress messages
8074 -d, --debug don't remove temporary files
8075 --recheck update $as_me by reconfiguring in the same conditions
8076 --file=FILE[:TEMPLATE]
8077 instantiate the configuration file FILE
8078 --header=FILE[:TEMPLATE]
8079 instantiate the configuration header FILE
8081 Configuration files:
8084 Configuration headers:
8087 Configuration commands:
8090 Report bugs to <http://sourceware.org/bugzilla/>.
8091 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
8092 General help using GNU software: <http://www.gnu.org/gethelp/>."
8095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8096 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8098 GNU C Library config.status (see version.h)
8099 configured by $0, generated by GNU Autoconf 2.68,
8100 with options \\"\$ac_cs_config\\"
8102 Copyright (C) 2010 Free Software Foundation, Inc.
8103 This config.status script is free software; the Free Software Foundation
8104 gives unlimited permission to copy, distribute and modify it."
8110 test -n "\$AWK" || AWK=awk
8113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8114 # The default lists apply if the user does not specify any file.
8120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8137 # Handling of the options.
8138 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8140 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8141 $as_echo "$ac_cs_version"; exit ;;
8142 --config | --confi | --conf | --con | --co | --c )
8143 $as_echo "$ac_cs_config"; exit ;;
8144 --debug | --debu | --deb | --de | --d | -d )
8146 --file | --fil | --fi | --f )
8149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8150 '') as_fn_error $? "missing file argument" ;;
8152 as_fn_append CONFIG_FILES " '$ac_optarg'"
8153 ac_need_defaults=false;;
8154 --header | --heade | --head | --hea )
8157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8159 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8160 ac_need_defaults=false;;
8162 # Conflict between --help and --header
8163 as_fn_error $? "ambiguous option: \`$1'
8164 Try \`$0 --help' for more information.";;
8165 --help | --hel | -h )
8166 $as_echo "$ac_cs_usage"; exit ;;
8167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8168 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8172 -*) as_fn_error $? "unrecognized option: \`$1'
8173 Try \`$0 --help' for more information." ;;
8175 *) as_fn_append ac_config_targets " $1"
8176 ac_need_defaults=false ;;
8182 ac_configure_extra_args=
8184 if $ac_cs_silent; then
8186 ac_configure_extra_args="$ac_configure_extra_args --silent"
8190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8191 if \$ac_cs_recheck; then
8192 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8194 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8195 CONFIG_SHELL='$SHELL'
8201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8205 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8206 ## Running $as_me. ##
8212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8216 config_vars='$config_vars'
8220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8222 # Handling of arguments.
8223 for ac_config_target in $ac_config_targets
8225 case $ac_config_target in
8226 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8227 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8228 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8229 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8231 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8236 # If the user did not use the arguments to specify the items to instantiate,
8237 # then the envvar interface is used. Set only those that are not.
8238 # We use the long form for the default assignment because of an extremely
8239 # bizarre bug on SunOS 4.1.3.
8240 if $ac_need_defaults; then
8241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8246 # Have a temporary directory for convenience. Make it in the build tree
8247 # simply because there is no reason against having it here, and in addition,
8248 # creating and moving files from /tmp can sometimes cause problems.
8249 # Hook for its removal unless debugging.
8250 # Note that there is a small window in which the directory will not be cleaned:
8251 # after its creation but before its name has been assigned to `$tmp'.
8255 trap 'exit_status=$?
8257 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8259 trap 'as_fn_exit 1' 1 2 13 15
8261 # Create a (secure) tmp directory for tmp files.
8264 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8268 tmp=./conf$$-$RANDOM
8269 (umask 077 && mkdir "$tmp")
8270 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8273 # Set up the scripts for CONFIG_FILES section.
8274 # No need to generate them if there are no CONFIG_FILES.
8275 # This happens for instance with `./config.status config.h'.
8276 if test -n "$CONFIG_FILES"; then
8279 ac_cr=`echo X | tr X '\015'`
8280 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8281 # But we know of no other shell where ac_cr would be empty at this
8282 # point, so we can use a bashism as a fallback.
8283 if test "x$ac_cr" = x; then
8284 eval ac_cr=\$\'\\r\'
8286 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8287 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8293 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8298 echo "cat >conf$$subs.awk <<_ACEOF" &&
8299 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8303 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8305 for ac_last_try in false false false false false :; do
8306 . ./conf$$subs.sh ||
8307 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8309 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8310 if test $ac_delim_n = $ac_delim_num; then
8312 elif $ac_last_try; then
8313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8315 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8321 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8325 s/^/S["/; s/!.*/"]=/
8335 s/\(.\{148\}\)..*/\1/
8337 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8342 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8349 s/\(.\{148\}\)..*/\1/
8351 s/["\\]/\\&/g; s/^/"/; s/$/"/
8355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8360 ' <conf$$subs.awk | sed '
8365 ' >>$CONFIG_STATUS || ac_write_fail=1
8366 rm -f conf$$subs.awk
8367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8369 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8370 for (key in S) S_is_set[key] = 1
8376 nfields = split(line, field, "@")
8378 len = length(field[1])
8379 for (i = 2; i < nfields; i++) {
8381 keylen = length(key)
8382 if (S_is_set[key]) {
8384 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8385 len += length(value) + length(field[++i])
8396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8397 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8398 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8401 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8402 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8405 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8406 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8407 # trailing colons and then remove the whole line if VPATH becomes empty
8408 # (actually we leave an empty line to preserve line numbers).
8409 if test "x$srcdir" = x.; then
8410 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8429 fi # test -n "$CONFIG_FILES"
8431 # Set up the scripts for CONFIG_HEADERS section.
8432 # No need to generate them if there are no CONFIG_HEADERS.
8433 # This happens for instance with `./config.status Makefile'.
8434 if test -n "$CONFIG_HEADERS"; then
8435 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8439 # Transform confdefs.h into an awk script `defines.awk', embedded as
8440 # here-document in config.status, that substitutes the proper values into
8441 # config.h.in to produce config.h.
8443 # Create a delimiter string that does not exist in confdefs.h, to ease
8444 # handling of long lines.
8446 for ac_last_try in false false :; do
8447 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8448 if test -z "$ac_tt"; then
8450 elif $ac_last_try; then
8451 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8453 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8457 # For the awk script, D is an array of macro values keyed by name,
8458 # likewise P contains macro parameters if any. Preserve backslash
8459 # newline sequences.
8461 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8463 s/.\{148\}/&'"$ac_delim"'/g
8466 s/^[ ]*#[ ]*define[ ][ ]*/ /
8473 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8475 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8480 D["\1"]=" \3\\\\\\n"\\/p
8482 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8487 s/.\{148\}/&'"$ac_delim"'/g
8492 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8495 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8497 ' <confdefs.h | sed '
8498 s/'"$ac_delim"'/"\\\
8499 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8502 for (key in D) D_is_set[key] = 1
8505 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8507 split(line, arg, " ")
8508 if (arg[1] == "#") {
8512 defundef = substr(arg[1], 2)
8515 split(mac1, mac2, "(") #)
8517 prefix = substr(line, 1, index(line, defundef) - 1)
8518 if (D_is_set[macro]) {
8519 # Preserve the white space surrounding the "#".
8520 print prefix "define", macro P[macro] D[macro]
8523 # Replace #undef with comments. This is necessary, for example,
8524 # in the case of _POSIX_SOURCE, which is predefined and required
8525 # on some systems where configure will not decide to define it.
8526 if (defundef == "undef") {
8527 print "/*", prefix defundef, macro, "*/"
8535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8536 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8537 fi # test -n "$CONFIG_HEADERS"
8540 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8545 :[FHLC]) ac_mode=$ac_tag; continue;;
8547 case $ac_mode$ac_tag in
8549 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8550 :[FH]-) ac_tag=-:-;;
8551 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8568 -) ac_f="$ac_tmp/stdin";;
8569 *) # Look for the file first in the build tree, then in the source tree
8570 # (if the path is not absolute). The absolute path cannot be DOS-style,
8571 # because $ac_f cannot contain `:'.
8575 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8577 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8579 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8580 as_fn_append ac_file_inputs " '$ac_f'"
8583 # Let's still pretend it is `configure' which instantiates (i.e., don't
8584 # use $as_me), people would be surprised to read:
8585 # /* config.h. Generated by config.status. */
8586 configure_input='Generated from '`
8587 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8589 if test x"$ac_file" != x-; then
8590 configure_input="$ac_file. $configure_input"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8592 $as_echo "$as_me: creating $ac_file" >&6;}
8594 # Neutralize special characters interpreted by sed in replacement strings.
8595 case $configure_input in #(
8596 *\&* | *\|* | *\\* )
8597 ac_sed_conf_input=`$as_echo "$configure_input" |
8598 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8599 *) ac_sed_conf_input=$configure_input;;
8603 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8609 ac_dir=`$as_dirname -- "$ac_file" ||
8610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8611 X"$ac_file" : 'X\(//\)[^/]' \| \
8612 X"$ac_file" : 'X\(//\)$' \| \
8613 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8614 $as_echo X"$ac_file" |
8615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8632 as_dir="$ac_dir"; as_fn_mkdir_p
8636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8638 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8639 # A ".." for each directory in $ac_dir_suffix.
8640 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8641 case $ac_top_builddir_sub in
8642 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8643 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8646 ac_abs_top_builddir=$ac_pwd
8647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8648 # for backward compatibility:
8649 ac_top_builddir=$ac_top_build_prefix
8652 .) # We are building in place.
8654 ac_top_srcdir=$ac_top_builddir_sub
8655 ac_abs_top_srcdir=$ac_pwd ;;
8656 [\\/]* | ?:[\\/]* ) # Absolute name.
8657 ac_srcdir=$srcdir$ac_dir_suffix;
8658 ac_top_srcdir=$srcdir
8659 ac_abs_top_srcdir=$srcdir ;;
8661 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8662 ac_top_srcdir=$ac_top_build_prefix$srcdir
8663 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8675 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8676 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8681 # If the template does not know about datarootdir, expand it.
8682 # FIXME: This hack should be removed a few years after 2.60.
8683 ac_datarootdir_hack=; ac_datarootdir_seen=
8694 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8695 *datarootdir*) ac_datarootdir_seen=yes;;
8696 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8698 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8701 ac_datarootdir_hack='
8702 s&@datadir@&$datadir&g
8703 s&@docdir@&$docdir&g
8704 s&@infodir@&$infodir&g
8705 s&@localedir@&$localedir&g
8706 s&@mandir@&$mandir&g
8707 s&\\\${datarootdir}&$datarootdir&g' ;;
8711 # Neutralize VPATH when `$srcdir' = `.'.
8712 # Shell code in configure.ac might set extrasub.
8713 # FIXME: do we really want to maintain this feature?
8714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8715 ac_sed_extra="$ac_vpsub
8718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8720 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8721 s|@configure_input@|$ac_sed_conf_input|;t t
8722 s&@top_builddir@&$ac_top_builddir_sub&;t t
8723 s&@top_build_prefix@&$ac_top_build_prefix&;t t
8724 s&@srcdir@&$ac_srcdir&;t t
8725 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8726 s&@top_srcdir@&$ac_top_srcdir&;t t
8727 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8728 s&@builddir@&$ac_builddir&;t t
8729 s&@abs_builddir@&$ac_abs_builddir&;t t
8730 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8731 s&@INSTALL@&$ac_INSTALL&;t t
8732 $ac_datarootdir_hack
8734 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8735 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8737 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8738 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8739 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8740 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8742 which seems to be undefined. Please make sure it is defined" >&5
8743 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8744 which seems to be undefined. Please make sure it is defined" >&2;}
8746 rm -f "$ac_tmp/stdin"
8748 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8749 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8757 if test x"$ac_file" != x-; then
8759 $as_echo "/* $configure_input */" \
8760 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8761 } >"$ac_tmp/config.h" \
8762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8763 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8765 $as_echo "$as_me: $ac_file is unchanged" >&6;}
8768 mv "$ac_tmp/config.h" "$ac_file" \
8769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8772 $as_echo "/* $configure_input */" \
8773 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8774 || as_fn_error $? "could not create -" "$LINENO" 5
8778 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8779 $as_echo "$as_me: executing $ac_file commands" >&6;}
8784 case $ac_file$ac_mode in
8786 case $CONFIG_FILES in *config.make*)
8787 echo "$config_vars" >> config.make;;
8789 test -d bits || mkdir bits ;;
8797 ac_clean_files=$ac_clean_files_save
8799 test $ac_write_fail = 0 ||
8800 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8803 # configure is writing to config.log, and then calls config.status.
8804 # config.status does its own redirection, appending to config.log.
8805 # Unfortunately, on DOS this fails, as config.log is still kept open
8806 # by configure, so config.status won't be able to write to it; its
8807 # output is simply discarded. So we exec the FD to /dev/null,
8808 # effectively closing config.log, so it can be properly (re)opened and
8809 # appended to by config.status. When coming back to configure, we
8810 # need to make the FD available again.
8811 if test "$no_create" != yes; then
8813 ac_config_status_args=
8814 test "$silent" = yes &&
8815 ac_config_status_args="$ac_config_status_args --quiet"
8817 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8819 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8820 # would make configure fail if this is the last instruction.
8821 $ac_cs_success || as_fn_exit 1
8825 # CONFIG_SUBDIRS section.
8827 if test "$no_recursion" != yes; then
8829 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
8830 # so they do not pile up.
8831 ac_sub_configure_args=
8833 eval "set x $ac_configure_args"
8837 if test -n "$ac_prev"; then
8842 -cache-file | --cache-file | --cache-fil | --cache-fi \
8843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8844 ac_prev=cache_file ;;
8845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
8849 --config-cache | -C)
8851 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8853 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8855 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8857 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8859 --disable-option-checking)
8863 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8865 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
8869 # Always prepend --prefix to ensure using the same prefix
8870 # in subdir configurations.
8871 ac_arg="--prefix=$prefix"
8873 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
8875 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
8878 if test "$silent" = yes; then
8879 ac_sub_configure_args="--silent $ac_sub_configure_args"
8882 # Always prepend --disable-option-checking to silence warnings, since
8883 # different subdirs can have different --enable and --with options.
8884 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
8887 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
8889 # Do not complain, so a configure script can configure whichever
8890 # parts of a large source tree are present.
8891 test -d "$srcdir/$ac_dir" || continue
8893 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
8894 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
8895 $as_echo "$ac_msg" >&6
8896 as_dir="$ac_dir"; as_fn_mkdir_p
8900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8902 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8903 # A ".." for each directory in $ac_dir_suffix.
8904 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8905 case $ac_top_builddir_sub in
8906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8910 ac_abs_top_builddir=$ac_pwd
8911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8912 # for backward compatibility:
8913 ac_top_builddir=$ac_top_build_prefix
8916 .) # We are building in place.
8918 ac_top_srcdir=$ac_top_builddir_sub
8919 ac_abs_top_srcdir=$ac_pwd ;;
8920 [\\/]* | ?:[\\/]* ) # Absolute name.
8921 ac_srcdir=$srcdir$ac_dir_suffix;
8922 ac_top_srcdir=$srcdir
8923 ac_abs_top_srcdir=$srcdir ;;
8925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8926 ac_top_srcdir=$ac_top_build_prefix$srcdir
8927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8934 # Check for guested configure; otherwise get Cygnus style configure.
8935 if test -f "$ac_srcdir/configure.gnu"; then
8936 ac_sub_configure=$ac_srcdir/configure.gnu
8937 elif test -f "$ac_srcdir/configure"; then
8938 ac_sub_configure=$ac_srcdir/configure
8939 elif test -f "$ac_srcdir/configure.in"; then
8940 # This should be Cygnus configure.
8941 ac_sub_configure=$ac_aux_dir/configure
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
8944 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
8948 # The recursion is here.
8949 if test -n "$ac_sub_configure"; then
8950 # Make the cache file name correct relative to the subdirectory.
8952 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
8954 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
8957 { $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
8958 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
8959 # The eval makes quoting arguments work.
8960 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
8961 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
8962 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
8968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}