2 # From configure.in CVSid.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for GNU C Library (see version.h).
6 # Report bugs to <glibc>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
221 # Preserve -v and -x to the replacement shell.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 *v*x* | *x*v* ) as_opts=-vx ;;
232 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
235 if test x$as_have_required = xno; then :
236 $as_echo "$0: This script requires a shell more modern than all"
237 $as_echo "$0: the shells that I found on your system."
238 if test x${ZSH_VERSION+set} = xset ; then
239 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
240 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
242 $as_echo "$0: Please tell bug-autoconf@gnu.org and glibc about your
243 $0: system, 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='c-library'
563 PACKAGE_VERSION='(see version.h)'
564 PACKAGE_STRING='GNU C Library (see version.h)'
565 PACKAGE_BUGREPORT='glibc'
566 PACKAGE_URL='http://www.gnu.org/software/c-library/'
568 ac_unique_file="include/features.h"
569 enable_option_checking=no
570 # Factoring default headers for most tests.
571 ac_includes_default="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars='LTLIBOBJS
625 libc_cv_cc_novzeroupper
628 libc_cv_cpp_asm_debuginfo
629 libc_cv_forced_unwind
635 libc_cv_gcc_unwind_find_fde
643 libc_cv_cc_submachine
646 libc_cv_have_initfini
650 libc_cv_output_format
657 libc_cv_libgcc_s_suffix
659 libc_cv_cc_with_libunwind
669 libc_cv_gcc_static_libgcc
752 program_transform_name
765 enable_option_checking
784 enable_stackguard_randomization
798 ac_precious_vars='build_alias
813 # Initialize some variables set by options.
815 ac_init_version=false
816 ac_unrecognized_opts=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
827 program_transform_name=s,x,x,
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
865 # If the previous option needs an argument, assign it.
866 if test -n "$ac_prev"; then
867 eval $ac_prev=\$ac_option
873 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error $? "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
930 eval enable_$ac_useropt=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=\$ac_optarg ;;
958 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
959 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
960 | --exec | --exe | --ex)
961 ac_prev=exec_prefix ;;
962 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
963 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
964 | --exec=* | --exe=* | --ex=*)
965 exec_prefix=$ac_optarg ;;
967 -gas | --gas | --ga | --g)
968 # Obsolete; use --with-gas.
971 -help | --help | --hel | --he | -h)
973 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
974 ac_init_help=recursive ;;
975 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
976 ac_init_help=short ;;
978 -host | --host | --hos | --ho)
979 ac_prev=host_alias ;;
980 -host=* | --host=* | --hos=* | --ho=*)
981 host_alias=$ac_optarg ;;
983 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 htmldir=$ac_optarg ;;
989 -includedir | --includedir | --includedi | --included | --include \
990 | --includ | --inclu | --incl | --inc)
991 ac_prev=includedir ;;
992 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
993 | --includ=* | --inclu=* | --incl=* | --inc=*)
994 includedir=$ac_optarg ;;
996 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
999 infodir=$ac_optarg ;;
1001 -libdir | --libdir | --libdi | --libd)
1003 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1004 libdir=$ac_optarg ;;
1006 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1007 | --libexe | --libex | --libe)
1008 ac_prev=libexecdir ;;
1009 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1010 | --libexe=* | --libex=* | --libe=*)
1011 libexecdir=$ac_optarg ;;
1013 -localedir | --localedir | --localedi | --localed | --locale)
1014 ac_prev=localedir ;;
1015 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1016 localedir=$ac_optarg ;;
1018 -localstatedir | --localstatedir | --localstatedi | --localstated \
1019 | --localstate | --localstat | --localsta | --localst | --locals)
1020 ac_prev=localstatedir ;;
1021 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1022 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1023 localstatedir=$ac_optarg ;;
1025 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1028 mandir=$ac_optarg ;;
1030 -nfp | --nfp | --nf)
1031 # Obsolete; use --without-fp.
1034 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1035 | --no-cr | --no-c | -n)
1038 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1039 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1043 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1044 | --oldin | --oldi | --old | --ol | --o)
1045 ac_prev=oldincludedir ;;
1046 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1047 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1048 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1049 oldincludedir=$ac_optarg ;;
1051 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1054 prefix=$ac_optarg ;;
1056 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1057 | --program-pre | --program-pr | --program-p)
1058 ac_prev=program_prefix ;;
1059 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1060 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1061 program_prefix=$ac_optarg ;;
1063 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1064 | --program-suf | --program-su | --program-s)
1065 ac_prev=program_suffix ;;
1066 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1067 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1068 program_suffix=$ac_optarg ;;
1070 -program-transform-name | --program-transform-name \
1071 | --program-transform-nam | --program-transform-na \
1072 | --program-transform-n | --program-transform- \
1073 | --program-transform | --program-transfor \
1074 | --program-transfo | --program-transf \
1075 | --program-trans | --program-tran \
1076 | --progr-tra | --program-tr | --program-t)
1077 ac_prev=program_transform_name ;;
1078 -program-transform-name=* | --program-transform-name=* \
1079 | --program-transform-nam=* | --program-transform-na=* \
1080 | --program-transform-n=* | --program-transform-=* \
1081 | --program-transform=* | --program-transfor=* \
1082 | --program-transfo=* | --program-transf=* \
1083 | --program-trans=* | --program-tran=* \
1084 | --progr-tra=* | --program-tr=* | --program-t=*)
1085 program_transform_name=$ac_optarg ;;
1087 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1090 pdfdir=$ac_optarg ;;
1092 -psdir | --psdir | --psdi | --psd | --ps)
1094 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1098 | -silent | --silent | --silen | --sile | --sil)
1101 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 sbindir=$ac_optarg ;;
1107 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1108 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1109 | --sharedst | --shareds | --shared | --share | --shar \
1111 ac_prev=sharedstatedir ;;
1112 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1113 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1114 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 sharedstatedir=$ac_optarg ;;
1118 -site | --site | --sit)
1120 -site=* | --site=* | --sit=*)
1123 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1126 srcdir=$ac_optarg ;;
1128 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1129 | --syscon | --sysco | --sysc | --sys | --sy)
1130 ac_prev=sysconfdir ;;
1131 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1132 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1133 sysconfdir=$ac_optarg ;;
1135 -target | --target | --targe | --targ | --tar | --ta | --t)
1136 ac_prev=target_alias ;;
1137 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1138 target_alias=$ac_optarg ;;
1140 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 -version | --version | --versio | --versi | --vers | -V)
1144 ac_init_version=: ;;
1147 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1160 eval with_$ac_useropt=\$ac_optarg ;;
1162 -without-* | --without-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error $? "invalid package name: $ac_useropt"
1167 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in
1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1174 ac_unrecognized_sep=', ';;
1176 eval with_$ac_useropt=no ;;
1179 # Obsolete; use --with-x.
1182 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1183 | --x-incl | --x-inc | --x-in | --x-i)
1184 ac_prev=x_includes ;;
1185 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1186 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1187 x_includes=$ac_optarg ;;
1189 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1190 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1191 ac_prev=x_libraries ;;
1192 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1193 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1194 x_libraries=$ac_optarg ;;
1196 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1197 Try \`$0 --help' for more information"
1201 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1202 # Reject names that are not valid shell variable names.
1203 case $ac_envvar in #(
1204 '' | [0-9]* | *[!_$as_cr_alnum]* )
1205 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1207 eval $ac_envvar=\$ac_optarg
1208 export $ac_envvar ;;
1211 # FIXME: should be removed in autoconf 3.0.
1212 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1213 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1214 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1215 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1221 if test -n "$ac_prev"; then
1222 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1223 as_fn_error $? "missing argument to $ac_option"
1226 if test -n "$ac_unrecognized_opts"; then
1227 case $enable_option_checking in
1229 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1230 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 # Check all directory arguments for consistency.
1235 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236 datadir sysconfdir sharedstatedir localstatedir includedir \
1237 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238 libdir localedir mandir
1240 eval ac_val=\$$ac_var
1241 # Remove trailing slashes.
1244 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1245 eval $ac_var=\$ac_val;;
1247 # Be sure to have absolute directory names.
1249 [\\/$]* | ?:[\\/]* ) continue;;
1250 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1260 target=$target_alias
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264 if test "x$build_alias" = x; then
1265 cross_compiling=maybe
1266 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1267 If a cross compiler is detected then cross compile mode will be used" >&2
1268 elif test "x$build_alias" != "x$host_alias"; then
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276 test "$silent" = yes && exec 6>/dev/null
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 $as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1319 ac_srcdir_defaulted=no
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 # Report the --help message.
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1353 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1360 Defaults for the options are specified in brackets.
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1384 For better control, use the options below.
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/c-library]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --disable-sanity-checks really do not use threads (should not be used except
1427 in special situations) [default=yes]
1428 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1430 --enable-shared build shared library [default=yes if GNU ld & ELF]
1431 --enable-profile build profiled library [default=no]
1432 --enable-omitfp build undebuggable optimized library [default=no]
1433 --enable-bounded build with runtime bounds checking [default=no]
1434 --disable-versioning do not include versioning information in the library
1435 objects [default=yes if supported]
1436 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1437 [default=glibc default]
1438 --enable-stackguard-randomization
1439 initialize __stack_chk_guard canary with a random
1440 number at program start
1441 --enable-add-ons[=DIRS...]
1442 configure and build add-ons in DIR1,DIR2,... search
1443 for add-ons if no parameter given
1444 --disable-hidden-plt do not hide internal function calls to avoid PLT
1445 --enable-bind-now disable lazy relocations in DSOs
1446 --enable-static-nss build static NSS modules [default=no]
1447 --disable-force-install don't force installation of files from this package,
1448 even if they are older than the installed files
1449 --enable-kernel=VERSION compile for compatibility with kernel not older than
1451 --enable-all-warnings enable all useful warnings gcc can issue
1452 --enable-multi-arch enable single DSO with optimizations for multiple
1454 --enable-nss-crypt enable libcrypt to use nss
1457 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459 --with-gd=DIR find libgd include dir and library with prefix DIR
1460 --with-gd-include=DIR find libgd include files in DIR
1461 --with-gd-lib=DIR find libgd library files in DIR
1462 --with-fp if using floating-point hardware [default=yes]
1463 --with-binutils=PATH specify location of binutils (as and ld)
1464 --with-elf if using the ELF object format
1465 --with-selinux if building with SELinux support
1466 --with-xcoff if using the XCOFF object format
1467 --with-headers=PATH location of system headers to use (for example
1468 /usr/src/linux/include) [default=compiler default]
1469 --with-default-link do not use explicit linker scripts
1470 --with-tls enable support for TLS
1471 --without-__thread do not use TLS features even when supporting them
1472 --with-cpu=CPU select code for CPU variant
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1483 CXX C++ compiler command
1484 CXXFLAGS C++ compiler flags
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 Report bugs to <glibc>.
1490 GNU C Library home page: <http://www.gnu.org/software/c-library/>.
1491 General help using GNU software: <http://www.gnu.org/gethelp/>.
1496 if test "$ac_init_help" = "recursive"; then
1497 # If there are subdirs, report their specific --help.
1498 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1499 test -d "$ac_dir" ||
1500 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515 ac_abs_top_builddir=$ac_pwd
1516 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir=$ac_top_build_prefix
1521 .) # We are building in place.
1523 ac_top_srcdir=$ac_top_builddir_sub
1524 ac_abs_top_srcdir=$ac_pwd ;;
1525 [\\/]* | ?:[\\/]* ) # Absolute name.
1526 ac_srcdir=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir=$srcdir
1528 ac_abs_top_srcdir=$srcdir ;;
1530 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" || { ac_status=$?; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1545 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 cd "$ac_pwd" || { ac_status=$?; break; }
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1554 GNU C Library configure (see version.h)
1555 generated by GNU Autoconf 2.68
1557 Copyright (C) 2010 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1564 ## ------------------------ ##
1565 ## Autoconf initialization. ##
1566 ## ------------------------ ##
1568 # ac_fn_c_try_compile LINENO
1569 # --------------------------
1570 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_compile ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext
1575 if { { ac_try="$ac_compile"
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_compile") 2>conftest.err
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest.$ac_objext; then :
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1604 } # ac_fn_c_try_compile
1606 # ac_fn_c_try_cpp LINENO
1607 # ----------------------
1608 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 if { { ac_try="$ac_cpp conftest.$ac_ext"
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618 $as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } > conftest.i && {
1628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
1643 # ac_fn_cxx_try_compile LINENO
1644 # ----------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_cxx_try_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_cxx_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_cxx_try_compile
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_link
1727 # ac_fn_c_try_run LINENO
1728 # ----------------------
1729 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1730 # that executables *can* be run.
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_link"
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_link") 2>&5
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1745 { { case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_try") 2>&5
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; }; }; then :
1757 $as_echo "$as_me: program exited with status $ac_status" >&5
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1761 ac_retval=$ac_status
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1769 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1770 # --------------------------------------------
1771 # Tries to find the compile-time value of EXPR in a program that includes
1772 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1774 ac_fn_c_compute_int ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 if test "$cross_compiling" = yes; then
1778 # Depending upon the size, compute the lo and hi bounds.
1779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1780 /* end confdefs.h. */
1785 static int test_array [1 - 2 * !(($2) >= 0)];
1792 if ac_fn_c_try_compile "$LINENO"; then :
1795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796 /* end confdefs.h. */
1801 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1808 if ac_fn_c_try_compile "$LINENO"; then :
1809 ac_hi=$ac_mid; break
1811 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1812 if test $ac_lo -le $ac_mid; then
1816 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1827 static int test_array [1 - 2 * !(($2) < 0)];
1834 if ac_fn_c_try_compile "$LINENO"; then :
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1843 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 ac_lo=$ac_mid; break
1853 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1854 if test $ac_mid -le $ac_hi; then
1858 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 # Binary search between lo and hi bounds.
1869 while test "x$ac_lo" != "x$ac_hi"; do
1870 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1877 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1884 if ac_fn_c_try_compile "$LINENO"; then :
1887 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1892 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1899 static long int longval () { return $2; }
1900 static unsigned long int ulongval () { return $2; }
1907 FILE *f = fopen ("conftest.val", "w");
1912 long int i = longval ();
1915 fprintf (f, "%ld", i);
1919 unsigned long int i = ulongval ();
1922 fprintf (f, "%lu", i);
1924 /* Do not output a trailing newline, as this causes \r\n confusion
1925 on some platforms. */
1926 return ferror (f) || fclose (f) != 0;
1932 if ac_fn_c_try_run "$LINENO"; then :
1933 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1938 conftest.$ac_objext conftest.beam conftest.$ac_ext
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1945 } # ac_fn_c_compute_int
1947 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1948 # -------------------------------------------------------
1949 # Tests whether HEADER exists and can be compiled using the include files in
1950 # INCLUDES, setting the cache variable VAR accordingly.
1951 ac_fn_c_check_header_compile ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1964 if ac_fn_c_try_compile "$LINENO"; then :
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976 } # ac_fn_c_check_header_compile
1977 cat >config.log <<_ACEOF
1978 This file contains any messages produced by compilers while
1979 running configure, to aid debugging if configure makes a mistake.
1981 It was created by GNU C Library $as_me (see version.h), which was
1982 generated by GNU Autoconf 2.68. Invocation command line was
1994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2006 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 test -z "$as_dir" && as_dir=.
2018 $as_echo "PATH: $as_dir"
2034 # Keep a trace of the command line.
2035 # Strip out --no-create and --no-recursion so they do not pile up.
2036 # Strip out --silent because we don't want to record it for future runs.
2037 # Also quote any args containing shell meta-characters.
2038 # Make two passes to allow for proper duplicate-argument suppression.
2042 ac_must_keep_next=false
2048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2050 | -silent | --silent | --silen | --sile | --sil)
2053 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2056 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2058 as_fn_append ac_configure_args1 " '$ac_arg'"
2059 if test $ac_must_keep_next = true; then
2060 ac_must_keep_next=false # Got value, back to normal.
2063 *=* | --config-cache | -C | -disable-* | --disable-* \
2064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2066 | -with-* | --with-* | -without-* | --without-* | --x)
2067 case "$ac_configure_args0 " in
2068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2071 -* ) ac_must_keep_next=true ;;
2074 as_fn_append ac_configure_args " '$ac_arg'"
2079 { ac_configure_args0=; unset ac_configure_args0;}
2080 { ac_configure_args1=; unset ac_configure_args1;}
2082 # When interrupted or exit'd, cleanup temporary files, and complete
2083 # config.log. We remove comments because anyway the quotes in there
2084 # would cause problems or look ugly.
2085 # WARNING: Use '\'' to represent an apostrophe within the trap.
2086 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2087 trap 'exit_status=$?
2088 # Save into config.log some information that might help in debugging.
2092 $as_echo "## ---------------- ##
2093 ## Cache variables. ##
2094 ## ---------------- ##"
2096 # The following way of writing the cache mishandles newlines in values,
2098 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2099 eval ac_val=\$$ac_var
2103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2107 _ | IFS | as_nl) ;; #(
2108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2109 *) { eval $ac_var=; unset $ac_var;} ;;
2114 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2115 *${as_nl}ac_space=\ *)
2117 "s/'\''/'\''\\\\'\'''\''/g;
2118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2128 $as_echo "## ----------------- ##
2129 ## Output variables. ##
2130 ## ----------------- ##"
2132 for ac_var in $ac_subst_vars
2134 eval ac_val=\$$ac_var
2136 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 $as_echo "$ac_var='\''$ac_val'\''"
2142 if test -n "$ac_subst_files"; then
2143 $as_echo "## ------------------- ##
2144 ## File substitutions. ##
2145 ## ------------------- ##"
2147 for ac_var in $ac_subst_files
2149 eval ac_val=\$$ac_var
2151 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2153 $as_echo "$ac_var='\''$ac_val'\''"
2158 if test -s confdefs.h; then
2159 $as_echo "## ----------- ##
2166 test "$ac_signal" != 0 &&
2167 $as_echo "$as_me: caught signal $ac_signal"
2168 $as_echo "$as_me: exit $exit_status"
2170 rm -f core *.core core.conftest.* &&
2171 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2174 for ac_signal in 1 2 13 15; do
2175 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2180 rm -f -r conftest* confdefs.h
2182 $as_echo "/* confdefs.h */" > confdefs.h
2184 # Predefined preprocessor variables.
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_NAME "$PACKAGE_NAME"
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_STRING "$PACKAGE_STRING"
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_URL "$PACKAGE_URL"
2211 # Let the site file select an alternate cache file if it wants to.
2212 # Prefer an explicitly selected file to automatically selected ones.
2215 if test -n "$CONFIG_SITE"; then
2216 # We do not want a PATH search for config.site.
2217 case $CONFIG_SITE in #((
2218 -*) ac_site_file1=./$CONFIG_SITE;;
2219 */*) ac_site_file1=$CONFIG_SITE;;
2220 *) ac_site_file1=./$CONFIG_SITE;;
2222 elif test "x$prefix" != xNONE; then
2223 ac_site_file1=$prefix/share/config.site
2224 ac_site_file2=$prefix/etc/config.site
2226 ac_site_file1=$ac_default_prefix/share/config.site
2227 ac_site_file2=$ac_default_prefix/etc/config.site
2229 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2231 test "x$ac_site_file" = xNONE && continue
2232 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2234 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2235 sed 's/^/| /' "$ac_site_file" >&5
2237 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2239 as_fn_error $? "failed to load site script $ac_site_file
2240 See \`config.log' for more details" "$LINENO" 5; }
2244 if test -r "$cache_file"; then
2245 # Some versions of bash will fail to source /dev/null (special files
2246 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2247 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2249 $as_echo "$as_me: loading cache $cache_file" >&6;}
2251 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2252 *) . "./$cache_file";;
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2257 $as_echo "$as_me: creating cache $cache_file" >&6;}
2261 # Check that the precious variables saved in the cache have kept the same
2263 ac_cache_corrupted=false
2264 for ac_var in $ac_precious_vars; do
2265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2266 eval ac_new_set=\$ac_env_${ac_var}_set
2267 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2268 eval ac_new_val=\$ac_env_${ac_var}_value
2269 case $ac_old_set,$ac_new_set in
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2272 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2273 ac_cache_corrupted=: ;;
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2276 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2277 ac_cache_corrupted=: ;;
2280 if test "x$ac_old_val" != "x$ac_new_val"; then
2281 # differences in whitespace do not lead to failure.
2282 ac_old_val_w=`echo x $ac_old_val`
2283 ac_new_val_w=`echo x $ac_new_val`
2284 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2286 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2287 ac_cache_corrupted=:
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2290 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2291 eval $ac_var=\$ac_old_val
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2294 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2296 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2299 # Pass precious variables to config.status.
2300 if test "$ac_new_set" = set; then
2302 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2303 *) ac_arg=$ac_var=$ac_new_val ;;
2305 case " $ac_configure_args " in
2306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2307 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2311 if $ac_cache_corrupted; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2315 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2316 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2318 ## -------------------- ##
2319 ## Main body of script. ##
2320 ## -------------------- ##
2323 ac_cpp='$CPP $CPPFLAGS'
2324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2330 ac_config_headers="$ac_config_headers config.h"
2333 for ac_dir in scripts "$srcdir"/scripts; do
2334 if test -f "$ac_dir/install-sh"; then
2336 ac_install_sh="$ac_aux_dir/install-sh -c"
2338 elif test -f "$ac_dir/install.sh"; then
2340 ac_install_sh="$ac_aux_dir/install.sh -c"
2342 elif test -f "$ac_dir/shtool"; then
2344 ac_install_sh="$ac_aux_dir/shtool install -c"
2348 if test -z "$ac_aux_dir"; then
2349 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2352 # These three variables are undocumented and unsupported,
2353 # and are intended to be withdrawn in a future Autoconf release.
2354 # They can cause serious problems if a builder's source tree is in a directory
2355 # whose full name contains unusual characters.
2356 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2357 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2358 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2367 # Make sure we can run config.sub.
2368 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2369 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2372 $as_echo_n "checking build system type... " >&6; }
2373 if ${ac_cv_build+:} false; then :
2374 $as_echo_n "(cached) " >&6
2376 ac_build_alias=$build_alias
2377 test "x$ac_build_alias" = x &&
2378 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2379 test "x$ac_build_alias" = x &&
2380 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2381 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2382 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2386 $as_echo "$ac_cv_build" >&6; }
2387 case $ac_cv_build in
2389 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2392 ac_save_IFS=$IFS; IFS='-'
2398 # Remember, the first character of IFS is used to create $*,
2399 # except with old shells:
2402 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2406 $as_echo_n "checking host system type... " >&6; }
2407 if ${ac_cv_host+:} false; then :
2408 $as_echo_n "(cached) " >&6
2410 if test "x$host_alias" = x; then
2411 ac_cv_host=$ac_cv_build
2413 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2419 $as_echo "$ac_cv_host" >&6; }
2422 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2425 ac_save_IFS=$IFS; IFS='-'
2431 # Remember, the first character of IFS is used to create $*,
2432 # except with old shells:
2435 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_CC+:} false; then :
2450 $as_echo_n "(cached) " >&6
2452 if test -n "$CC"; then
2453 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 if test -n "$CC"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2475 $as_echo "$CC" >&6; }
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2483 if test -z "$ac_cv_prog_CC"; then
2485 # Extract the first word of "gcc", so it can be a program name with args.
2486 set dummy gcc; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2490 $as_echo_n "(cached) " >&6
2492 if test -n "$ac_ct_CC"; then
2493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2502 ac_cv_prog_ac_ct_CC="gcc"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2513 if test -n "$ac_ct_CC"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2515 $as_echo "$ac_ct_CC" >&6; }
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2521 if test "x$ac_ct_CC" = x; then
2524 case $cross_compiling:$ac_tool_warned in
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2536 if test -z "$CC"; then
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}cc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2555 ac_cv_prog_CC="${ac_tool_prefix}cc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2568 $as_echo "$CC" >&6; }
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2577 if test -z "$CC"; then
2578 # Extract the first word of "cc", so it can be a program name with args.
2579 set dummy cc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2585 if test -n "$CC"; then
2586 ac_cv_prog_CC="$CC" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2597 ac_prog_rejected=yes
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 if test $ac_prog_rejected = yes; then
2609 # We found a bogon in the path, so make sure we never use it.
2610 set dummy $ac_cv_prog_CC
2612 if test $# != 0; then
2613 # We chose a different compiler from the bogus one.
2614 # However, it has the same basename, so the bogon will be chosen
2615 # first if we set CC to just the basename; use the full file name.
2617 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2623 if test -n "$CC"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2625 $as_echo "$CC" >&6; }
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2633 if test -z "$CC"; then
2634 if test -n "$ac_tool_prefix"; then
2635 for ac_prog in cl.exe
2637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2640 $as_echo_n "checking for $ac_word... " >&6; }
2641 if ${ac_cv_prog_CC+:} false; then :
2642 $as_echo_n "(cached) " >&6
2644 if test -n "$CC"; then
2645 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 if test -n "$CC"; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2667 $as_echo "$CC" >&6; }
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2670 $as_echo "no" >&6; }
2674 test -n "$CC" && break
2677 if test -z "$CC"; then
2679 for ac_prog in cl.exe
2681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2682 set dummy $ac_prog; ac_word=$2
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2684 $as_echo_n "checking for $ac_word... " >&6; }
2685 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2686 $as_echo_n "(cached) " >&6
2688 if test -n "$ac_ct_CC"; then
2689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 ac_cv_prog_ac_ct_CC="$ac_prog"
2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2709 if test -n "$ac_ct_CC"; then
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2711 $as_echo "$ac_ct_CC" >&6; }
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2714 $as_echo "no" >&6; }
2718 test -n "$ac_ct_CC" && break
2721 if test "x$ac_ct_CC" = x; then
2724 case $cross_compiling:$ac_tool_warned in
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2728 ac_tool_warned=yes ;;
2737 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739 as_fn_error $? "no acceptable C compiler found in \$PATH
2740 See \`config.log' for more details" "$LINENO" 5; }
2742 # Provide some information about the compiler.
2743 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2746 for ac_option in --version -v -V -qversion; do
2747 { { ac_try="$ac_compiler $ac_option >&5"
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2753 $as_echo "$ac_try_echo"; } >&5
2754 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2756 if test -s conftest.err; then
2758 ... rest of stderr output deleted ...
2759 10q' conftest.err >conftest.er1
2760 cat conftest.er1 >&5
2762 rm -f conftest.er1 conftest.err
2763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2764 test $ac_status = 0; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2769 $as_echo_n "checking for suffix of object files... " >&6; }
2770 if ${ac_cv_objext+:} false; then :
2771 $as_echo_n "(cached) " >&6
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2784 rm -f conftest.o conftest.obj
2785 if { { ac_try="$ac_compile"
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2791 $as_echo "$ac_try_echo"; } >&5
2792 (eval "$ac_compile") 2>&5
2794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2795 test $ac_status = 0; }; then :
2796 for ac_file in conftest.o conftest.obj conftest.*; do
2797 test -f "$ac_file" || continue;
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2805 $as_echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2810 as_fn_error $? "cannot compute suffix of object files: cannot compile
2811 See \`config.log' for more details" "$LINENO" 5; }
2813 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2816 $as_echo "$ac_cv_objext" >&6; }
2817 OBJEXT=$ac_cv_objext
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2820 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2821 if ${ac_cv_c_compiler_gnu+:} false; then :
2822 $as_echo_n "(cached) " >&6
2824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2825 /* end confdefs.h. */
2838 if ac_fn_c_try_compile "$LINENO"; then :
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2848 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2849 if test $ac_compiler_gnu = yes; then
2854 ac_test_CFLAGS=${CFLAGS+set}
2855 ac_save_CFLAGS=$CFLAGS
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2857 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2858 if ${ac_cv_prog_cc_g+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 ac_save_c_werror_flag=$ac_c_werror_flag
2862 ac_c_werror_flag=yes
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866 /* end confdefs.h. */
2876 if ac_fn_c_try_compile "$LINENO"; then :
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2891 if ac_fn_c_try_compile "$LINENO"; then :
2894 ac_c_werror_flag=$ac_save_c_werror_flag
2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2897 /* end confdefs.h. */
2907 if ac_fn_c_try_compile "$LINENO"; then :
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 ac_c_werror_flag=$ac_save_c_werror_flag
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2918 $as_echo "$ac_cv_prog_cc_g" >&6; }
2919 if test "$ac_test_CFLAGS" = set; then
2920 CFLAGS=$ac_save_CFLAGS
2921 elif test $ac_cv_prog_cc_g = yes; then
2922 if test "$GCC" = yes; then
2928 if test "$GCC" = yes; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2935 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2936 if ${ac_cv_prog_cc_c89+:} false; then :
2937 $as_echo_n "(cached) " >&6
2939 ac_cv_prog_cc_c89=no
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2945 #include <sys/types.h>
2946 #include <sys/stat.h>
2947 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2948 struct buf { int x; };
2949 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2950 static char *e (p, i)
2956 static char *f (char * (*g) (char **, int), char **p, ...)
2961 s = g (p, va_arg (v,int));
2966 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2967 function prototypes and stuff, but not '\xHH' hex character constants.
2968 These don't provoke an error unfortunately, instead are silently treated
2969 as 'x'. The following induces an error, until -std is added to get
2970 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2971 array size at least. It's necessary to write '\x00'==0 to get something
2972 that's true only with -std. */
2973 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2976 inside strings and character constants. */
2978 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980 int test (int i, double x);
2981 struct s1 {int (*f) (int a);};
2982 struct s2 {int (*f) (double a);};
2983 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2989 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2994 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2995 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2997 CC="$ac_save_CC $ac_arg"
2998 if ac_fn_c_try_compile "$LINENO"; then :
2999 ac_cv_prog_cc_c89=$ac_arg
3001 rm -f core conftest.err conftest.$ac_objext
3002 test "x$ac_cv_prog_cc_c89" != "xno" && break
3004 rm -f conftest.$ac_ext
3009 case "x$ac_cv_prog_cc_c89" in
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3012 $as_echo "none needed" >&6; } ;;
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3015 $as_echo "unsupported" >&6; } ;;
3017 CC="$CC $ac_cv_prog_cc_c89"
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3019 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3021 if test "x$ac_cv_prog_cc_c89" != xno; then :
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 if test $host != $build; then
3032 for ac_prog in gcc cc
3034 # Extract the first word of "$ac_prog", so it can be a program name with args.
3035 set dummy $ac_prog; ac_word=$2
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if ${ac_cv_prog_BUILD_CC+:} false; then :
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$BUILD_CC"; then
3042 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_BUILD_CC="$ac_prog"
3052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 BUILD_CC=$ac_cv_prog_BUILD_CC
3062 if test -n "$BUILD_CC"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3064 $as_echo "$BUILD_CC" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3071 test -n "$BUILD_CC" && break
3077 ac_cpp='$CPP $CPPFLAGS'
3078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3082 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3083 # On Suns, sometimes $CPP names a directory.
3084 if test -n "$CPP" && test -d "$CPP"; then
3087 if test -z "$CPP"; then
3088 if ${ac_cv_prog_CPP+:} false; then :
3089 $as_echo_n "(cached) " >&6
3091 # Double quotes because CPP needs to be expanded
3092 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3095 for ac_c_preproc_warn_flag in '' yes
3097 # Use a header file that comes with gcc, so configuring glibc
3098 # with a fresh cross-compiler works.
3099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3100 # <limits.h> exists even on freestanding compilers.
3101 # On the NeXT, cc -E runs the code through the compiler's parser,
3102 # not just through cpp. "Syntax error" is here to catch this case.
3103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3104 /* end confdefs.h. */
3106 # include <limits.h>
3108 # include <assert.h>
3112 if ac_fn_c_try_cpp "$LINENO"; then :
3115 # Broken: fails on valid input.
3118 rm -f conftest.err conftest.i conftest.$ac_ext
3120 # OK, works on sane cases. Now check whether nonexistent headers
3121 # can be detected and how.
3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3123 /* end confdefs.h. */
3124 #include <ac_nonexistent.h>
3126 if ac_fn_c_try_cpp "$LINENO"; then :
3127 # Broken: success on invalid input.
3130 # Passes both tests.
3134 rm -f conftest.err conftest.i conftest.$ac_ext
3137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3138 rm -f conftest.i conftest.err conftest.$ac_ext
3139 if $ac_preproc_ok; then :
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3152 $as_echo "$CPP" >&6; }
3154 for ac_c_preproc_warn_flag in '' yes
3156 # Use a header file that comes with gcc, so configuring glibc
3157 # with a fresh cross-compiler works.
3158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3159 # <limits.h> exists even on freestanding compilers.
3160 # On the NeXT, cc -E runs the code through the compiler's parser,
3161 # not just through cpp. "Syntax error" is here to catch this case.
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3165 # include <limits.h>
3167 # include <assert.h>
3171 if ac_fn_c_try_cpp "$LINENO"; then :
3174 # Broken: fails on valid input.
3177 rm -f conftest.err conftest.i conftest.$ac_ext
3179 # OK, works on sane cases. Now check whether nonexistent headers
3180 # can be detected and how.
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3183 #include <ac_nonexistent.h>
3185 if ac_fn_c_try_cpp "$LINENO"; then :
3186 # Broken: success on invalid input.
3189 # Passes both tests.
3193 rm -f conftest.err conftest.i conftest.$ac_ext
3196 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3197 rm -f conftest.i conftest.err conftest.$ac_ext
3198 if $ac_preproc_ok; then :
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3204 See \`config.log' for more details" "$LINENO" 5; }
3208 ac_cpp='$CPP $CPPFLAGS'
3209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 # We need the C++ compiler only for testing.
3215 ac_cpp='$CXXCPP $CPPFLAGS'
3216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3219 if test -z "$CXX"; then
3220 if test -n "$CCC"; then
3223 if test -n "$ac_tool_prefix"; then
3224 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if ${ac_cv_prog_CXX+:} false; then :
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CXX"; then
3234 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 test -z "$as_dir" && as_dir=.
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3243 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 if test -n "$CXX"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3256 $as_echo "$CXX" >&6; }
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3263 test -n "$CXX" && break
3266 if test -z "$CXX"; then
3268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3271 set dummy $ac_prog; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 if test -n "$ac_ct_CXX"; then
3278 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3287 ac_cv_prog_ac_ct_CXX="$ac_prog"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3298 if test -n "$ac_ct_CXX"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3300 $as_echo "$ac_ct_CXX" >&6; }
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3307 test -n "$ac_ct_CXX" && break
3310 if test "x$ac_ct_CXX" = x; then
3313 case $cross_compiling:$ac_tool_warned in
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3317 ac_tool_warned=yes ;;
3325 # Provide some information about the compiler.
3326 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3329 for ac_option in --version -v -V -qversion; do
3330 { { ac_try="$ac_compiler $ac_option >&5"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 $as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3339 if test -s conftest.err; then
3341 ... rest of stderr output deleted ...
3342 10q' conftest.err >conftest.er1
3343 cat conftest.er1 >&5
3345 rm -f conftest.er1 conftest.err
3346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3351 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3352 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3353 $as_echo_n "(cached) " >&6
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3369 if ac_fn_cxx_try_compile "$LINENO"; then :
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3379 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3380 if test $ac_compiler_gnu = yes; then
3385 ac_test_CXXFLAGS=${CXXFLAGS+set}
3386 ac_save_CXXFLAGS=$CXXFLAGS
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3388 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3389 if ${ac_cv_prog_cxx_g+:} false; then :
3390 $as_echo_n "(cached) " >&6
3392 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3393 ac_cxx_werror_flag=yes
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3407 if ac_fn_cxx_try_compile "$LINENO"; then :
3408 ac_cv_prog_cxx_g=yes
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3422 if ac_fn_cxx_try_compile "$LINENO"; then :
3425 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3438 if ac_fn_cxx_try_compile "$LINENO"; then :
3439 ac_cv_prog_cxx_g=yes
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3449 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3450 if test "$ac_test_CXXFLAGS" = set; then
3451 CXXFLAGS=$ac_save_CXXFLAGS
3452 elif test $ac_cv_prog_cxx_g = yes; then
3453 if test "$GXX" = yes; then
3459 if test "$GXX" = yes; then
3466 ac_cpp='$CPP $CPPFLAGS'
3467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3472 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3473 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3476 # This will get text that should go into config.make.
3479 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3481 # Check whether --with-gd was given.
3482 if test "${with_gd+set}" = set; then :
3483 withval=$with_gd; case "$with_gd" in
3485 *) libgd_include="-I$withval/include"
3486 libgd_ldflags="-L$withval/lib" ;;
3492 # Check whether --with-gd-include was given.
3493 if test "${with_gd_include+set}" = set; then :
3494 withval=$with_gd_include; case "$with_gd_include" in
3496 *) libgd_include="-I$withval" ;;
3502 # Check whether --with-gd-lib was given.
3503 if test "${with_gd_lib+set}" = set; then :
3504 withval=$with_gd_lib; case "$with_gd_lib" in
3506 *) libgd_ldflags="-L$withval" ;;
3512 if test -n "$libgd_include"; then
3513 config_vars="$config_vars
3514 CFLAGS-memusagestat.c = $libgd_include"
3516 if test -n "$libgd_ldflags"; then
3517 config_vars="$config_vars
3518 libgd-LDFLAGS = $libgd_ldflags"
3522 # Check whether --with-fp was given.
3523 if test "${with_fp+set}" = set; then :
3524 withval=$with_fp; with_fp=$withval
3531 # Check whether --with-binutils was given.
3532 if test "${with_binutils+set}" = set; then :
3533 withval=$with_binutils; path_binutils=$withval
3539 # Check whether --with-elf was given.
3540 if test "${with_elf+set}" = set; then :
3541 withval=$with_elf; elf=$withval
3547 # Check whether --with-selinux was given.
3548 if test "${with_selinux+set}" = set; then :
3549 withval=$with_selinux; with_selinux=$withval
3555 # Check whether --with-xcoff was given.
3556 if test "${with_xcoff+set}" = set; then :
3557 withval=$with_xcoff; xcoff=$withval
3564 # Check whether --with-headers was given.
3565 if test "${with_headers+set}" = set; then :
3566 withval=$with_headers; sysheaders=$withval
3574 # Check whether --with-default-link was given.
3575 if test "${with_default_link+set}" = set; then :
3576 withval=$with_default_link; use_default_link=$withval
3578 use_default_link=default
3582 # Check whether --enable-sanity-checks was given.
3583 if test "${enable_sanity_checks+set}" = set; then :
3584 enableval=$enable_sanity_checks; enable_sanity=$enableval
3591 # Check whether --enable-check-abi was given.
3592 if test "${enable_check_abi+set}" = set; then :
3593 enableval=$enable_check_abi; enable_check_abi=$enableval
3600 # Check whether --enable-shared was given.
3601 if test "${enable_shared+set}" = set; then :
3602 enableval=$enable_shared; shared=$enableval
3607 # Check whether --enable-profile was given.
3608 if test "${enable_profile+set}" = set; then :
3609 enableval=$enable_profile; profile=$enableval
3614 # Check whether --enable-omitfp was given.
3615 if test "${enable_omitfp+set}" = set; then :
3616 enableval=$enable_omitfp; omitfp=$enableval
3621 # Check whether --enable-bounded was given.
3622 if test "${enable_bounded+set}" = set; then :
3623 enableval=$enable_bounded; bounded=$enableval
3628 # Check whether --enable-versioning was given.
3629 if test "${enable_versioning+set}" = set; then :
3630 enableval=$enable_versioning; enable_versioning=$enableval
3632 enable_versioning=yes
3636 # Check whether --enable-oldest-abi was given.
3637 if test "${enable_oldest_abi+set}" = set; then :
3638 enableval=$enable_oldest_abi; oldest_abi=$enableval
3643 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3646 cat >>confdefs.h <<_ACEOF
3647 #define GLIBC_OLDEST_ABI "$oldest_abi"
3653 # Check whether --enable-stackguard-randomization was given.
3654 if test "${enable_stackguard_randomization+set}" = set; then :
3655 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3657 enable_stackguard_randomize=no
3660 if test "$enable_stackguard_randomize" = yes; then
3661 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3665 # Check whether --enable-add-ons was given.
3666 if test "${enable_add_ons+set}" = set; then :
3667 enableval=$enable_add_ons;
3674 # Check whether --with-tls was given.
3675 if test "${with_tls+set}" = set; then :
3676 withval=$with_tls; usetls=$withval
3683 # Check whether --with-__thread was given.
3684 if test "${with___thread+set}" = set; then :
3685 withval=$with___thread; use__thread=$withval
3691 # Check whether --enable-hidden-plt was given.
3692 if test "${enable_hidden_plt+set}" = set; then :
3693 enableval=$enable_hidden_plt; hidden=$enableval
3698 if test "x$hidden" = xno; then
3699 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3703 # Check whether --enable-bind-now was given.
3704 if test "${enable_bind_now+set}" = set; then :
3705 enableval=$enable_bind_now; bindnow=$enableval
3712 # Check whether --enable-static-nss was given.
3713 if test "${enable_static_nss+set}" = set; then :
3714 enableval=$enable_static_nss; static_nss=$enableval
3719 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3721 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3725 # Check whether --enable-force-install was given.
3726 if test "${enable_force_install+set}" = set; then :
3727 enableval=$enable_force_install; force_install=$enableval
3734 # Check whether --enable-kernel was given.
3735 if test "${enable_kernel+set}" = set; then :
3736 enableval=$enable_kernel; minimum_kernel=$enableval
3739 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3740 # Better nothing than this.
3743 if test "$minimum_kernel" = current; then
3744 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3748 # Check whether --enable-all-warnings was given.
3749 if test "${enable_all_warnings+set}" = set; then :
3750 enableval=$enable_all_warnings; all_warnings=$enableval
3755 # Check whether --enable-multi-arch was given.
3756 if test "${enable_multi_arch+set}" = set; then :
3757 enableval=$enable_multi_arch; multi_arch=$enableval
3763 # Check whether --enable-nss-crypt was given.
3764 if test "${enable_nss_crypt+set}" = set; then :
3765 enableval=$enable_nss_crypt; nss_crypt=$enableval
3770 if test x$nss_crypt = xyes; then
3771 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3772 if test $? -ne 0; then
3773 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3775 old_CFLAGS="$CFLAGS"
3776 CFLAGS="$CFLAGS $nss_includes"
3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779 /* end confdefs.h. */
3782 #include <nsslowhash.h>
3783 void f (void) { NSSLOW_Init (); }
3792 if ac_fn_c_try_compile "$LINENO"; then :
3793 libc_cv_nss_crypt=yes
3796 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 LIBS="$LIBS -lfreebl3"
3801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802 /* end confdefs.h. */
3805 #include <nsslowhash.h>
3814 if ac_fn_c_try_link "$LINENO"; then :
3815 libc_cv_nss_crypt=yes
3818 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3820 rm -f core conftest.err conftest.$ac_objext \
3821 conftest$ac_exeext conftest.$ac_ext
3822 CFLAGS="$old_CFLAGS"
3825 libc_cv_nss_crypt=no
3829 # The way shlib-versions is used to generate soversions.mk uses a
3830 # fairly simplistic model for name recognition that can't distinguish
3831 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3832 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3833 # tell. This doesn't get used much beyond that, so it's fairly safe.
3838 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3842 # We keep the original values in `$config_*' and never modify them, so we
3843 # can write them unchanged into config.make. Everything else uses
3844 # $machine, $vendor, and $os, and changes them whenever convenient.
3845 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3847 # Don't allow vendor == "unknown"
3848 test "$config_vendor" = unknown && config_vendor=
3849 config_os="`echo $config_os | sed 's/^unknown-//'`"
3851 # Some configurations imply other options.
3853 # i586-linuxaout is mangled into i586-pc-linux-gnuaout
3854 linux*ecoff* | linux*aout* | gnu*aout* | gnu*ecoff*)
3856 gnu* | linux* | freebsd* | netbsd* | sysv4* | solaris2* | irix6*)
3857 # These systems (almost) always use the ELF format.
3861 # These systems are always xcoff
3867 # The configure fragment of an add-on port can modify these to supplement
3868 # or override the table in the case statement below. No fragment should
3869 # ever change the config_* variables, however.
3870 machine=$config_machine
3871 vendor=$config_vendor
3875 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3877 if test "$machine" = rs6000; then
3881 # Braindead PowerPC box with absolutely no FPU.
3882 case "$machine-$host_os" in
3890 # Check whether --with-cpu was given.
3891 if test "${with_cpu+set}" = set; then :
3892 withval=$with_cpu; case "$withval" in
3893 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3895 *) submachine="$withval" ;;
3901 # An add-on can set this when it wants to disable the sanity check below.
3907 case "$enable_add_ons" in
3910 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3911 sed 's@/[^/]*$@@' | sort | uniq`
3912 add_ons_automatic=yes
3914 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3915 add_ons_automatic=no ;;
3921 if test x"$add_ons" != x; then
3922 for f in $add_ons; do
3923 # Some sanity checks
3927 *** It seems that you're using an old \`crypt' add-on. crypt is now
3928 *** part of glibc and using the old add-on will not work with this
3929 *** release. Start again with fresh sources and without the old
3930 *** \`crypt' add-on." "$LINENO" 5
3934 *** It seems that you're using an old \`localedata' add-on. localedata
3935 *** is now part of glibc and using the old add-on will not work with
3936 *** this release. Start again with fresh sources and without the old
3937 *** \`localedata' add-on." "$LINENO" 5
3942 # Now source each add-on's configure fragment.
3943 # The fragments can use $srcdir/$libc_add_on to find themselves,
3944 # and test $add_ons_automatic to see if they were explicitly requested.
3945 # A fragment can clear (or even change) $libc_add_on to affect
3946 # whether it goes into the list to be actually used in the build.
3948 for libc_add_on in $add_ons; do
3949 # Test whether such a directory really exists.
3950 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3951 case "$libc_add_on" in
3953 libc_add_on_srcdir=$libc_add_on
3956 test -d "$srcdir/$libc_add_on" || {
3957 if test -d "$libc_add_on"; then
3958 libc_add_on="`pwd`/$libc_add_on"
3960 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3963 libc_add_on_srcdir=$srcdir/$libc_add_on
3967 libc_add_on_frag=$libc_add_on_srcdir/configure
3968 libc_add_on_canonical=
3969 libc_add_on_config_subdirs=
3970 if test -r "$libc_add_on_frag"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3972 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3973 libc_add_on_canonical=unknown
3974 libc_add_on_subdirs=
3975 . "$libc_add_on_frag"
3976 test -z "$libc_add_on" || {
3977 configured_add_ons="$configured_add_ons $libc_add_on"
3978 if test "x$libc_add_on_canonical" = xunknown; then
3979 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3981 for d in $libc_add_on_subdirs; do
3982 case "$libc_add_on" in
3983 /*) subdir_srcdir="$libc_add_on" ;;
3984 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3988 d="${libc_add_on_canonical:-$libc_add_on}"
3994 subdir_srcdir="$subdir_srcdir/$d"
3997 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3998 add_on_subdirs="$add_on_subdirs $d"
3999 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
4000 $d-srcdir = $subdir_srcdir"
4002 for d in $libc_add_on_config_subdirs; do
4004 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4006 if test ! -d "$libc_add_on_srcdir/$d"; then
4007 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
4009 case "$libc_add_on" in
4010 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
4012 subdirs="$subdirs $libc_add_on/$d"
4016 if test -n "$libc_add_on"; then
4017 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
4020 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
4021 for frag in $frags; do
4022 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
4023 echo $ECHO_N "$name $ECHO_C" >&6
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
4029 use_add_ons="$use_add_ons $libc_add_on"
4030 add_ons_pfx="$add_ons_pfx $libc_add_on/"
4031 test -z "$libc_add_on_canonical" ||
4032 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
4035 # Use echo to strip excess whitespace.
4036 add_ons="`echo $use_add_ons`"
4043 ### I put this here to prevent those annoying emails from people who cannot
4044 ### read and try to compile glibc on unsupported platforms. --drepper
4046 ### By using the undocumented --enable-hacker-mode option for configure
4047 ### one can skip this test to make the configuration not fail for unsupported
4050 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
4051 case "$machine-$host_os" in
4052 *-linux* | *-gnu* | arm*-none* | powerpc-aix4.3.*)
4055 echo "*** The GNU C library is currently not available for this platform."
4056 echo "*** So far nobody cared to port it and if there is no volunteer it"
4057 echo "*** might never happen. So, if you have interest to see glibc on"
4058 echo "*** this platform visit"
4059 echo "*** http://www.gnu.org/software/libc/porting.html"
4060 echo "*** and join the group of porters"
4066 # Expand the configuration machine name into a subdirectory by architecture
4067 # type and particular chip. If an add-on configure fragment already set
4068 # base_machine, we don't change it.
4069 test -n "$base_machine" || case "$machine" in
4070 a29k | am29000) base_machine=a29k machine=a29k ;;
4071 c3[012]) base_machine=cx0 machine=cx0/c30 ;;
4072 c4[04]) base_machine=cx0 machine=cx0/c40 ;;
4073 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4074 ia64) base_machine=ia64 machine=ia64 ;;
4075 m88???) base_machine=m88k machine=m88k/$machine ;;
4076 m88k) base_machine=m88k machine=m88k/m88100 ;;
4077 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4078 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4079 s390) base_machine=s390 machine=s390/s390-32 ;;
4080 s390x) base_machine=s390 machine=s390/s390-64 ;;
4081 sh3*) base_machine=sh machine=sh/sh3 ;;
4082 sh4*) base_machine=sh machine=sh/sh4 ;;
4084 base_machine=sparc machine=sparc/sparc32 ;;
4085 sparcv8 | supersparc | hypersparc)
4086 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4087 sparcv8plus | sparcv8plusa | sparcv9)
4088 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4089 sparcv8plusb | sparcv9b)
4090 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4092 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4094 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4096 base_machine=sparc machine=sparc/sparc64 ;;
4098 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4100 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4102 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4103 *) base_machine=$machine ;;
4107 if test "$base_machine" = "i386"; then
4108 $as_echo "#define USE_REGPARMS 1" >>confdefs.h
4112 # For the multi-arch option we need support in the assembler.
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_indirect_function symbol type support" >&5
4114 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4115 if ${libc_cv_asm_gnu_indirect_function+:} false; then :
4116 $as_echo_n "(cached) " >&6
4118 cat > conftest.s <<EOF
4119 .type foo,%gnu_indirect_function
4121 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4123 libc_cv_asm_gnu_indirect_function=yes
4125 libc_cv_asm_gnu_indirect_function=no
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_gnu_indirect_function" >&5
4130 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4133 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4134 if ${libc_cv_dot_text+:} false; then :
4135 $as_echo_n "(cached) " >&6
4137 cat > conftest.s <<EOF
4141 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }; }; then
4147 libc_cv_dot_text=.text
4152 if test -z "$libc_cv_dot_text"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4157 $as_echo "yes" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global-symbol directive" >&5
4161 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
4162 if ${libc_cv_asm_global_directive+:} false; then :
4163 $as_echo_n "(cached) " >&6
4165 libc_cv_asm_global_directive=UNKNOWN
4166 for ac_globl in .globl .global .EXPORT; do
4167 cat > conftest.s <<EOF
4172 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4177 test $ac_status = 0; }; }; then
4178 libc_cv_asm_global_directive=${ac_globl}
4181 test $libc_cv_asm_global_directive != UNKNOWN && break
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_global_directive" >&5
4185 $as_echo "$libc_cv_asm_global_directive" >&6; }
4186 if test $libc_cv_asm_global_directive = UNKNOWN; then
4187 as_fn_error $? "cannot determine asm global directive" "$LINENO" 5
4189 cat >>confdefs.h <<_ACEOF
4190 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive prefix" >&5
4196 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
4197 if ${libc_cv_asm_type_prefix+:} false; then :
4198 $as_echo_n "(cached) " >&6
4200 libc_cv_asm_type_prefix=no
4201 for ac_try_prefix in '@' '%' '#'; do
4202 cat > conftest.s <<EOF
4204 ${libc_cv_asm_global_directive} foo
4205 .type foo, ${ac_try_prefix}object
4210 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }; }; then
4216 libc_cv_asm_type_prefix=${ac_try_prefix}
4219 test "x$libc_cv_asm_type_prefix" != xno && break
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_type_prefix" >&5
4223 $as_echo "$libc_cv_asm_type_prefix" >&6; }
4224 if test "x$libc_cv_asm_type_prefix" != xno; then
4225 cat >>confdefs.h <<_ACEOF
4226 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4231 if test x"$libc_cv_asm_gnu_indirect_function" != xyes -a x"$libc_cv_asm_type_prefix" = xno; then
4232 if test x"$multi_arch" = xyes; then
4233 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4238 if test x"$multi_arch" != xno; then
4239 multi_arch_d=/multiarch
4242 # Compute the list of sysdep directories for this configuration.
4243 # This can take a while to compute.
4244 sysdep_dir=$srcdir/sysdeps
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4246 $as_echo_n "checking sysdep dirs... " >&6; }
4247 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4248 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4250 test "x$base_os" != x || case "$os" in
4252 base_os=mach/hurd ;;
4253 netbsd* | 386bsd* | freebsd* | bsdi*)
4254 base_os=unix/bsd/bsd4.4 ;;
4255 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4257 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4258 base_os=unix/sysv ;;
4260 base_os=unix/sysv/irix6/$os ;;
4262 base_os=unix/sysv/sysv4 ;;
4264 base_os=unix/sysv/hpux/$os ;;
4266 base_os=unix/sysv/aix/aix4.3 ;;
4268 base_os=standalone ;;
4271 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4274 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4278 o=`echo $tail | sed 's/[0-9]*$//'`
4279 if test $o != $tail; then
4282 # For linux-gnu, try linux-gnu, then linux.
4283 o=`echo $tail | sed 's/-.*$//'`
4284 if test $o != $tail; then
4288 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4291 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4297 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4299 tail=$machine${submachine:+/$submachine}
4300 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4302 # Prepend the machine's FPU directory unless --without-fp.
4303 if test "$with_fp" = yes; then
4304 mach="$mach /$1/fpu"
4306 mach="$mach /$1/nofpu"
4313 # Find what sysdep directories exist.
4316 for b in $base ''; do
4317 for m0 in $mach ''; do
4318 for v in /$vendor ''; do
4319 test "$v" = / && continue
4320 for o in /$ostry ''; do
4321 test "$o" = / && continue
4322 for m in $multi_arch_d $mach ''; do
4323 for d in $add_ons_pfx ''; do
4324 for a in $add_ons_sfx ''; do
4325 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4326 try_srcdir="${srcdir}/"
4330 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4331 test -n "$enable_debug_configure" &&
4332 echo "$0 DEBUG: try $try" >&2
4333 if test -d "$try_srcdir$try"; then
4334 sysnames="$sysnames $try"
4335 { test -n "$o" || test -n "$b"; } && os_used=t
4336 { test -n "$m" || test -n "$m0"; } && machine_used=t
4338 x*/$submachine) submachine_used=t ;;
4340 if test -n "$d"; then
4341 case "$sysnames_add_ons" in
4343 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4356 # If the assembler supports gnu_indirect_function symbol type and the
4357 # architecture supports multi-arch, we enable multi-arch by default.
4358 case $sysnames_add_ons$sysnames in
4362 test x"$multi_arch" = xdefault && multi_arch=no
4365 if test x"$multi_arch" != xno; then
4366 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4371 if test -z "$os_used" && test "$os" != none; then
4372 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4374 if test -z "$machine_used" && test "$machine" != none; then
4375 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4377 if test -z "$submachine_used" && test -n "$submachine"; then
4378 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4382 # We have now validated the configuration.
4385 # If using ELF, look for an `elf' subdirectory of each machine directory.
4386 # We prepend these rather than inserting them whereever the machine appears
4387 # because things specified by the machine's ELF ABI should override
4388 # OS-specific things, and should always be the same for any OS on the
4389 # machine (otherwise what's the point of an ABI?).
4390 if test "$elf" = yes; then
4392 for d in $add_ons_pfx ''; do
4394 if test -d $srcdir/${d}sysdeps$m/elf; then
4395 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4399 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4403 # Expand the list of system names into a full list of directories
4404 # from each element's parent name and Implies file (if present).
4407 while test $# -gt 0; do
4411 case " $names " in *" $name "*)
4412 # Already in the list.
4416 # Report each name as we discover it, so there is no long pause in output.
4417 echo $ECHO_N "$name $ECHO_C" >&6
4419 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4423 *) xsrcdir=$srcdir/ ;;
4425 test -n "$enable_debug_configure" &&
4426 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4428 if test -f $xsrcdir$name/Implies; then
4429 # Collect more names from the `Implies' file (removing comments).
4430 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4432 for x in $implied_candidate; do
4434 if test -d $xsrcdir$name_base/$x; then
4435 implied="$implied $name_base/$x";
4438 for d in $add_ons_pfx ''; do
4439 try="${d}sysdeps/$x"
4442 *) try_srcdir=$srcdir/ ;;
4444 test -n "$enable_debug_configure" &&
4445 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4446 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4448 implied="$implied $try"
4450 case "$sysnames_add_ons" in
4452 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4456 if test $found = no; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/Implies specifies nonexistent $x" >&5
4458 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4465 # Add NAME to the list of names.
4466 names="$names $name"
4468 # Find the parent of NAME, using the empty string if it has none.
4469 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4471 # Add the names implied by NAME, and NAME's parent (if it has one), to
4472 # the list of names to be processed (the argument list). We prepend the
4473 # implied names to the list and append the parent. We want implied
4474 # directories to come before further directories inferred from the
4475 # configuration components; this ensures that for sysv4, unix/common
4476 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4478 sysnames="`echo $implied $* $parent`"
4479 test -n "$sysnames" && set $sysnames
4482 # Add the default directories.
4483 default_sysnames=sysdeps/generic
4484 if test "$elf" = yes; then
4485 default_sysnames="sysdeps/generic/elf $default_sysnames"
4487 sysnames="$names $default_sysnames"
4489 # The other names were emitted during the scan.
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4491 $as_echo "$default_sysnames" >&6; }
4493 # Collect the list of add-ons that supply partial sysdeps trees.
4495 for add_on in $add_ons; do
4498 *) xsrcdir="$srcdir/" ;;
4501 test -d "$xsrcdir$add_on/sysdeps" || {
4502 case "$configured_add_ons " in
4505 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4511 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4512 case "$sysnames_add_ons" in
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4516 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4521 for d in $sysnames; do
4523 $add_on/sysdeps/*) ;;
4526 (cd "$xsrcdir$d" && for f in *[!~]; do
4529 for ff in $f/*.h; do
4530 test -d "$ff" || { test -e "$ff" && exit 88; }
4534 test -d "$f" || { test -e "$f" && exit 88; }
4538 if test $? -eq 88; then
4543 if test $found = no; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4545 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4553 # Find a good install program. We prefer a C program (faster),
4554 # so one script is as good as another. But avoid the broken or
4555 # incompatible versions:
4556 # SysV /etc/install, /usr/sbin/install
4557 # SunOS /usr/etc/install
4558 # IRIX /sbin/install
4560 # AmigaOS /C/install, which installs bootblocks on floppy discs
4561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4564 # OS/2's system install, which has a completely different semantic
4565 # ./install, which can be erroneously created by make from ./install.sh.
4566 # Reject install programs that cannot install multiple files.
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4569 if test -z "$INSTALL"; then
4570 if ${ac_cv_path_install+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 test -z "$as_dir" && as_dir=.
4578 # Account for people who put trailing slashes in PATH elements.
4579 case $as_dir/ in #((
4580 ./ | .// | /[cC]/* | \
4581 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4582 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4585 # OSF1 and SCO ODT 3.0 have their own names for install.
4586 # Don't use installbsd from OSF since it installs stuff as root
4588 for ac_prog in ginstall scoinst install; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4591 if test $ac_prog = install &&
4592 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4593 # AIX install. It has an incompatible calling convention.
4595 elif test $ac_prog = install &&
4596 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4597 # program-specific install script used by HP pwplus--don't use.
4600 rm -rf conftest.one conftest.two conftest.dir
4601 echo one > conftest.one
4602 echo two > conftest.two
4604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4605 test -s conftest.one && test -s conftest.two &&
4606 test -s conftest.dir/conftest.one &&
4607 test -s conftest.dir/conftest.two
4609 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4622 rm -rf conftest.one conftest.two conftest.dir
4625 if test "${ac_cv_path_install+set}" = set; then
4626 INSTALL=$ac_cv_path_install
4628 # As a last resort, use the slow shell script. Don't cache a
4629 # value for INSTALL within a source directory, because that will
4630 # break other packages using the cache if that directory is
4631 # removed, or if the value is a relative name.
4632 INSTALL=$ac_install_sh
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4636 $as_echo "$INSTALL" >&6; }
4638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4639 # It thinks the first close brace ends the variable substitution.
4640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4644 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4646 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4647 # The makefiles need to use a different form to find it in $srcdir.
4648 INSTALL='\$(..)./scripts/install-sh -c'
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4651 $as_echo_n "checking whether ln -s works... " >&6; }
4653 if test "$LN_S" = "ln -s"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4655 $as_echo "yes" >&6; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4658 $as_echo "no, using $LN_S" >&6; }
4662 # Was a --with-binutils option given?
4663 if test -n "$path_binutils"; then
4664 # Make absolute; ensure a single trailing slash.
4665 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4666 CC="$CC -B$path_binutils"
4668 AS=`$CC -print-prog-name=as`
4669 LD=`$CC -print-prog-name=ld`
4670 AR=`$CC -print-prog-name=ar`
4672 OBJDUMP=`$CC -print-prog-name=objdump`
4674 OBJCOPY=`$CC -print-prog-name=objcopy`
4677 # Determine whether we are using GNU binutils.
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4679 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4680 if ${libc_cv_prog_as_gnu+:} false; then :
4681 $as_echo_n "(cached) " >&6
4683 # Most GNU programs take a -v and spit out some text including
4684 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4685 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4686 libc_cv_prog_as_gnu=yes
4688 libc_cv_prog_as_gnu=no
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4693 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4695 gnu_as=$libc_cv_prog_as_gnu
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4698 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4699 if ${libc_cv_prog_ld_gnu+:} false; then :
4700 $as_echo_n "(cached) " >&6
4702 # Most GNU programs take a -v and spit out some text including
4703 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4704 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4705 libc_cv_prog_ld_gnu=yes
4707 libc_cv_prog_ld_gnu=no
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4712 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4713 gnu_ld=$libc_cv_prog_ld_gnu
4716 # Accept binutils 2.13 or newer.
4719 # Extract the first word of "$ac_prog", so it can be a program name with args.
4720 set dummy $ac_prog; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if ${ac_cv_prog_AS+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 if test -n "$AS"; then
4727 ac_cv_prog_AS="$AS" # Let the user override the test.
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 test -z "$as_dir" && as_dir=.
4734 for ac_exec_ext in '' $ac_executable_extensions; do
4735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_prog_AS="$ac_prog"
4737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 if test -n "$AS"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4749 $as_echo "$AS" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4756 test -n "$AS" && break
4759 if test -z "$AS"; then
4762 # Found it, now check the version.
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4764 $as_echo_n "checking version of $AS... " >&6; }
4765 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4766 case $ac_prog_version in
4767 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4768 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4769 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4770 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4774 $as_echo "$ac_prog_version" >&6; }
4776 if test $ac_verc_fail = yes; then
4777 AS=: critic_missing="$critic_missing as"
4782 # Extract the first word of "$ac_prog", so it can be a program name with args.
4783 set dummy $ac_prog; ac_word=$2
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 $as_echo_n "checking for $ac_word... " >&6; }
4786 if ${ac_cv_prog_LD+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 if test -n "$LD"; then
4790 ac_cv_prog_LD="$LD" # Let the user override the test.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_prog_LD="$ac_prog"
4800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 if test -n "$LD"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4812 $as_echo "$LD" >&6; }
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4819 test -n "$LD" && break
4822 if test -z "$LD"; then
4825 # Found it, now check the version.
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4827 $as_echo_n "checking version of $LD... " >&6; }
4828 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4829 case $ac_prog_version in
4830 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4831 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4832 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4833 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4837 $as_echo "$ac_prog_version" >&6; }
4839 if test $ac_verc_fail = yes; then
4840 LD=: critic_missing="$critic_missing ld"
4844 # We need the physical current working directory. We cannot use the
4845 # "pwd -P" shell builtin since that's not portable. Instead we try to
4846 # find a pwd binary. Note that assigning to the PWD environment
4847 # variable might have some interesting side effects, so we don't do
4849 # Extract the first word of "pwd", so it can be a program name with args.
4850 set dummy pwd; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_path_PWD_P+:} false; then :
4854 $as_echo_n "(cached) " >&6
4858 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4880 PWD_P=$ac_cv_path_PWD_P
4881 if test -n "$PWD_P"; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWD_P" >&5
4883 $as_echo "$PWD_P" >&6; }
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886 $as_echo "no" >&6; }
4890 if test "$PWD_P" = no; then
4891 as_fn_error $? "*** A pwd binary could not be found." "$LINENO" 5
4894 # These programs are version sensitive.
4896 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4898 # Extract the first word of "$ac_prog", so it can be a program name with args.
4899 set dummy $ac_prog; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_prog_CC+:} false; then :
4903 $as_echo_n "(cached) " >&6
4905 if test -n "$CC"; then
4906 ac_cv_prog_CC="$CC" # Let the user override the test.
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_CC="$ac_prog"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 if test -n "$CC"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4928 $as_echo "$CC" >&6; }
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4935 test -n "$CC" && break
4938 if test -z "$CC"; then
4941 # Found it, now check the version.
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5
4943 $as_echo_n "checking version of $CC... " >&6; }
4944 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4945 case $ac_prog_version in
4946 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4948 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4949 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4953 $as_echo "$ac_prog_version" >&6; }
4955 if test $ac_verc_fail = yes; then
4956 critic_missing="$critic_missing gcc"
4959 for ac_prog in gnumake gmake make
4961 # Extract the first word of "$ac_prog", so it can be a program name with args.
4962 set dummy $ac_prog; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if ${ac_cv_prog_MAKE+:} false; then :
4966 $as_echo_n "(cached) " >&6
4968 if test -n "$MAKE"; then
4969 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_MAKE="$ac_prog"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 MAKE=$ac_cv_prog_MAKE
4989 if test -n "$MAKE"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4991 $as_echo "$MAKE" >&6; }
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4998 test -n "$MAKE" && break
5001 if test -z "$MAKE"; then
5004 # Found it, now check the version.
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
5006 $as_echo_n "checking version of $MAKE... " >&6; }
5007 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
5008 case $ac_prog_version in
5009 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5011 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5012 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5016 $as_echo "$ac_prog_version" >&6; }
5018 if test $ac_verc_fail = yes; then
5019 critic_missing="$critic_missing make"
5023 for ac_prog in gnumsgfmt gmsgfmt msgfmt
5025 # Extract the first word of "$ac_prog", so it can be a program name with args.
5026 set dummy $ac_prog; ac_word=$2
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5028 $as_echo_n "checking for $ac_word... " >&6; }
5029 if ${ac_cv_prog_MSGFMT+:} false; then :
5030 $as_echo_n "(cached) " >&6
5032 if test -n "$MSGFMT"; then
5033 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_prog_MSGFMT="$ac_prog"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 MSGFMT=$ac_cv_prog_MSGFMT
5053 if test -n "$MSGFMT"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5055 $as_echo "$MSGFMT" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5062 test -n "$MSGFMT" && break
5065 if test -z "$MSGFMT"; then
5068 # Found it, now check the version.
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5070 $as_echo_n "checking version of $MSGFMT... " >&6; }
5071 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5072 case $ac_prog_version in
5073 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5074 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5075 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5076 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5080 $as_echo "$ac_prog_version" >&6; }
5082 if test $ac_verc_fail = yes; then
5083 MSGFMT=: aux_missing="$aux_missing msgfmt"
5086 for ac_prog in makeinfo
5088 # Extract the first word of "$ac_prog", so it can be a program name with args.
5089 set dummy $ac_prog; ac_word=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_MAKEINFO+:} false; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$MAKEINFO"; then
5096 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5105 ac_cv_prog_MAKEINFO="$ac_prog"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 MAKEINFO=$ac_cv_prog_MAKEINFO
5116 if test -n "$MAKEINFO"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5118 $as_echo "$MAKEINFO" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5125 test -n "$MAKEINFO" && break
5128 if test -z "$MAKEINFO"; then
5131 # Found it, now check the version.
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5133 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5134 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5135 case $ac_prog_version in
5136 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5138 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5139 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5143 $as_echo "$ac_prog_version" >&6; }
5145 if test $ac_verc_fail = yes; then
5146 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5151 # Extract the first word of "$ac_prog", so it can be a program name with args.
5152 set dummy $ac_prog; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if ${ac_cv_prog_SED+:} false; then :
5156 $as_echo_n "(cached) " >&6
5158 if test -n "$SED"; then
5159 ac_cv_prog_SED="$SED" # Let the user override the test.
5161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 test -z "$as_dir" && as_dir=.
5166 for ac_exec_ext in '' $ac_executable_extensions; do
5167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5168 ac_cv_prog_SED="$ac_prog"
5169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 if test -n "$SED"; then
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5181 $as_echo "$SED" >&6; }
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5184 $as_echo "no" >&6; }
5188 test -n "$SED" && break
5191 if test -z "$SED"; then
5194 # Found it, now check the version.
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5196 $as_echo_n "checking version of $SED... " >&6; }
5197 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5198 case $ac_prog_version in
5199 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5200 3.0[2-9]*|3.[1-9]*|[4-9]*)
5201 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5202 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5206 $as_echo "$ac_prog_version" >&6; }
5208 if test $ac_verc_fail = yes; then
5209 SED=: aux_missing="$aux_missing sed"
5213 if test -n "$ac_tool_prefix"; then
5214 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
5215 set dummy ${ac_tool_prefix}readelf; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_READELF+:} false; then :
5219 $as_echo_n "(cached) " >&6
5221 if test -n "$READELF"; then
5222 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
5232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5241 READELF=$ac_cv_prog_READELF
5242 if test -n "$READELF"; then
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5244 $as_echo "$READELF" >&6; }
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5252 if test -z "$ac_cv_prog_READELF"; then
5253 ac_ct_READELF=$READELF
5254 # Extract the first word of "readelf", so it can be a program name with args.
5255 set dummy readelf; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
5259 $as_echo_n "(cached) " >&6
5261 if test -n "$ac_ct_READELF"; then
5262 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 test -z "$as_dir" && as_dir=.
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5271 ac_cv_prog_ac_ct_READELF="readelf"
5272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5282 if test -n "$ac_ct_READELF"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5284 $as_echo "$ac_ct_READELF" >&6; }
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5290 if test "x$ac_ct_READELF" = x; then
5293 case $cross_compiling:$ac_tool_warned in
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5299 READELF=$ac_ct_READELF
5302 READELF="$ac_cv_prog_READELF"
5306 for ac_prog in autoconf
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_AUTOCONF+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -n "$AUTOCONF"; then
5316 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_prog_AUTOCONF="$ac_prog"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5335 AUTOCONF=$ac_cv_prog_AUTOCONF
5336 if test -n "$AUTOCONF"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5338 $as_echo "$AUTOCONF" >&6; }
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5345 test -n "$AUTOCONF" && break
5347 test -n "$AUTOCONF" || AUTOCONF="no"
5349 case "x$AUTOCONF" in
5350 xno|x|x:) AUTOCONF=no ;;
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5353 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5354 if ${libc_cv_autoconf_works+:} false; then :
5355 $as_echo_n "(cached) " >&6
5357 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5358 libc_cv_autoconf_works=yes
5360 libc_cv_autoconf_works=no
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5364 $as_echo "$libc_cv_autoconf_works" >&6; }
5365 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5368 if test "x$AUTOCONF" = xno; then
5369 aux_missing="$aux_missing autoconf"
5372 test -n "$critic_missing" && as_fn_error $? "
5373 *** These critical programs are missing or too old:$critic_missing
5374 *** Check the INSTALL file for required versions." "$LINENO" 5
5376 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5377 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5378 *** some features will be disabled.
5379 *** Check the INSTALL file for required versions." >&5
5380 $as_echo "$as_me: WARNING:
5381 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5382 *** some features will be disabled.
5383 *** Check the INSTALL file for required versions." >&2;}
5385 # if using special system headers, find out the compiler's sekrit
5386 # header directory and add that to the list. NOTE: Only does the right
5387 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5388 if test -n "$sysheaders"; then
5389 SYSINCLUDES=-nostdinc
5390 for d in include include-fixed; do
5391 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5392 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5394 SYSINCLUDES="$SYSINCLUDES \
5395 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5396 if test -n "$CXX"; then
5397 cxxversion=`$CXX -dumpversion 2>&5` &&
5398 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5399 cxxheaders=`$CXX -print-file-name=../../../../include/c++/`"$cxxversion" &&
5400 CXX_SYSINCLUDES="-isystem $cxxheaders \
5401 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5407 # ranlib is never necessary on Linux and Hurd systems
5410 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5411 # since this would lead to problems installing/building glibc.
5412 # LD_LIBRARY_PATH contains the current directory if one of the following
5414 # - one of the terminals (":" and ";") is the first or last sign
5415 # - two terminals occur directly after each other
5416 # - the path contains an element with a dot in it
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5418 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5419 case ${LD_LIBRARY_PATH} in
5420 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5421 ld_library_path_setting="contains current directory"
5424 ld_library_path_setting="ok"
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5428 $as_echo "$ld_library_path_setting" >&6; }
5429 if test "$ld_library_path_setting" != "ok"; then
5431 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5432 *** building glibc. Please change the environment variable
5433 *** and run configure again." "$LINENO" 5
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5437 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5438 if ${libc_cv_gcc_static_libgcc+:} false; then :
5439 $as_echo_n "(cached) " >&6
5441 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5442 libc_cv_gcc_static_libgcc=
5444 libc_cv_gcc_static_libgcc=-static-libgcc
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5448 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5451 # Extract the first word of "bash", so it can be a program name with args.
5452 set dummy bash; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_path_BASH_SHELL+:} false; then :
5456 $as_echo_n "(cached) " >&6
5460 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5482 BASH_SHELL=$ac_cv_path_BASH_SHELL
5483 if test -n "$BASH_SHELL"; then
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5485 $as_echo "$BASH_SHELL" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5492 if test "$BASH_SHELL" != no &&
5493 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5494 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5495 libc_cv_have_bash2=yes
5497 libc_cv_have_bash2=no
5501 if test "$BASH_SHELL" = no; then
5502 # Extract the first word of "ksh", so it can be a program name with args.
5503 set dummy ksh; ac_word=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_path_KSH+:} false; then :
5507 $as_echo_n "(cached) " >&6
5511 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 test -z "$as_dir" && as_dir=.
5519 for ac_exec_ext in '' $ac_executable_extensions; do
5520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5521 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5534 if test -n "$KSH"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5
5536 $as_echo "$KSH" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5543 if test "$KSH" = no; then
5546 libc_cv_have_ksh=yes
5551 libc_cv_have_ksh=yes
5555 for ac_prog in gawk mawk nawk awk
5557 # Extract the first word of "$ac_prog", so it can be a program name with args.
5558 set dummy $ac_prog; ac_word=$2
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if ${ac_cv_prog_AWK+:} false; then :
5562 $as_echo_n "(cached) " >&6
5564 if test -n "$AWK"; then
5565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5574 ac_cv_prog_AWK="$ac_prog"
5575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 if test -n "$AWK"; then
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5587 $as_echo "$AWK" >&6; }
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590 $as_echo "no" >&6; }
5594 test -n "$AWK" && break
5597 # Extract the first word of "perl", so it can be a program name with args.
5598 set dummy perl; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if ${ac_cv_path_PERL+:} false; then :
5602 $as_echo_n "(cached) " >&6
5606 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5628 PERL=$ac_cv_path_PERL
5629 if test -n "$PERL"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5631 $as_echo "$PERL" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5638 if test "$PERL" != no &&
5639 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5642 # Extract the first word of "install-info", so it can be a program name with args.
5643 set dummy install-info; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 case $INSTALL_INFO in
5651 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5656 for as_dir in $as_dummy
5659 test -z "$as_dir" && as_dir=.
5660 for ac_exec_ext in '' $ac_executable_extensions; do
5661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5674 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5675 if test -n "$INSTALL_INFO"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5677 $as_echo "$INSTALL_INFO" >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5684 # Extract the first word of "bison", so it can be a program name with args.
5685 set dummy bison; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if ${ac_cv_path_BISON+:} false; then :
5689 $as_echo_n "(cached) " >&6
5693 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5698 for as_dir in $as_dummy
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5704 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5716 BISON=$ac_cv_path_BISON
5717 if test -n "$BISON"; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5719 $as_echo "$BISON" >&6; }
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size_t type" >&5
5728 $as_echo_n "checking for signed size_t type... " >&6; }
5729 if ${libc_cv_signed_size_t+:} false; then :
5730 $as_echo_n "(cached) " >&6
5732 echo '#include <stddef.h>
5733 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5734 if eval "$ac_cpp conftest.c 2>/dev/null" \
5735 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5736 libc_cv_signed_size_t=no
5738 libc_cv_signed_size_t=yes
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_signed_size_t" >&5
5743 $as_echo "$libc_cv_signed_size_t" >&6; }
5744 if test $libc_cv_signed_size_t = yes; then
5745 cat >> confdefs.h <<\EOF
5746 #undef __SIZE_TYPE__
5747 #define __SIZE_TYPE__ unsigned
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5752 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5753 if ${libc_cv_friendly_stddef+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5758 #define __need_size_t
5759 #define __need_wchar_t
5766 size_t size; wchar_t wchar;
5768 #error stddef.h ignored __need_*
5770 if (&size == NULL || &wchar == NULL) abort ();
5775 if ac_fn_c_try_compile "$LINENO"; then :
5776 libc_cv_friendly_stddef=yes
5778 libc_cv_friendly_stddef=no
5780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5783 $as_echo "$libc_cv_friendly_stddef" >&6; }
5784 if test $libc_cv_friendly_stddef = yes; then
5785 config_vars="$config_vars
5786 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5790 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5791 if ${libc_cv_need_minus_P+:} false; then :
5792 $as_echo_n "(cached) " >&6
5794 cat > conftest.S <<EOF
5795 #include "confdefs.h"
5796 /* Nothing whatsoever. */
5798 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5803 test $ac_status = 0; }; }; then
5804 libc_cv_need_minus_P=no
5806 libc_cv_need_minus_P=yes
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5811 $as_echo "$libc_cv_need_minus_P" >&6; }
5812 if test $libc_cv_need_minus_P = yes; then
5813 config_vars="$config_vars
5814 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5818 $as_echo_n "checking for .set assembler directive... " >&6; }
5819 if ${libc_cv_asm_set_directive+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 cat > conftest.s <<EOF
5825 .set glibc_conftest_frobozz,foo
5826 $libc_cv_asm_global_directive glibc_conftest_frobozz
5828 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5829 # (but it doesn't work), so we must do a linking check to be sure.
5830 cat > conftest1.c <<\EOF
5831 extern int glibc_conftest_frobozz;
5832 void _start() { glibc_conftest_frobozz = 1; }
5834 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5835 -nostartfiles -nostdlib \
5836 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5837 libc_cv_asm_set_directive=yes
5839 libc_cv_asm_set_directive=no
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5844 $as_echo "$libc_cv_asm_set_directive" >&6; }
5845 if test $libc_cv_asm_set_directive = yes; then
5846 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5851 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5852 if ${libc_cv_asm_unique_object+:} false; then :
5853 $as_echo_n "(cached) " >&6
5855 cat > conftest.s <<EOF
5858 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
5860 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5861 libc_cv_asm_unique_object=yes
5863 libc_cv_asm_unique_object=no
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5868 $as_echo "$libc_cv_asm_unique_object" >&6; }
5869 if test $libc_cv_asm_unique_object = yes; then
5870 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
5875 $as_echo_n "checking for .symver assembler directive... " >&6; }
5876 if ${libc_cv_asm_symver_directive+:} false; then :
5877 $as_echo_n "(cached) " >&6
5879 cat > conftest.s <<EOF
5882 .symver _sym,sym@VERS
5884 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5885 libc_cv_asm_symver_directive=yes
5887 libc_cv_asm_symver_directive=no
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
5892 $as_echo "$libc_cv_asm_symver_directive" >&6; }
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
5894 $as_echo_n "checking for ld --version-script... " >&6; }
5895 if ${libc_cv_ld_version_script_option+:} false; then :
5896 $as_echo_n "(cached) " >&6
5898 if test $libc_cv_asm_symver_directive = yes; then
5899 cat > conftest.s <<EOF
5902 .symver _sym,sym@VERS
5904 cat > conftest.map <<EOF
5913 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5914 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5915 -o conftest.so conftest.o
5916 -nostartfiles -nostdlib
5917 -Wl,--version-script,conftest.map
5919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; }; };
5925 libc_cv_ld_version_script_option=yes
5927 libc_cv_ld_version_script_option=no
5930 libc_cv_ld_version_script_option=no
5933 libc_cv_ld_version_script_option=no
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
5938 $as_echo "$libc_cv_ld_version_script_option" >&6; }
5939 if test $shared != no &&
5940 test $libc_cv_asm_symver_directive = yes &&
5941 test $libc_cv_ld_version_script_option = yes &&
5942 test $enable_versioning = yes; then
5944 $as_echo "#define DO_VERSIONING 1" >>confdefs.h
5951 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5953 *** WARNING: You should not compile GNU libc without versioning. Not using
5954 *** versioning will introduce incompatibilities so that old binaries
5955 *** will not run anymore.
5956 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5958 if test $elf = yes; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5960 $as_echo_n "checking for .previous assembler directive... " >&6; }
5961 if ${libc_cv_asm_previous_directive+:} false; then :
5962 $as_echo_n "(cached) " >&6
5964 cat > conftest.s <<EOF
5965 .section foo_section
5968 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5973 test $ac_status = 0; }; }; then
5974 libc_cv_asm_previous_directive=yes
5976 libc_cv_asm_previous_directive=no
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5981 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5982 if test $libc_cv_asm_previous_directive = yes; then
5983 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5987 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5988 if ${libc_cv_asm_popsection_directive+:} false; then :
5989 $as_echo_n "(cached) " >&6
5991 cat > conftest.s <<EOF
5992 .pushsection foo_section
5995 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6000 test $ac_status = 0; }; }; then
6001 libc_cv_asm_popsection_directive=yes
6003 libc_cv_asm_popsection_directive=no
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
6008 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
6009 if test $libc_cv_asm_popsection_directive = yes; then
6010 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
6015 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
6016 if ${libc_cv_asm_protected_directive+:} false; then :
6017 $as_echo_n "(cached) " >&6
6019 cat > conftest.s <<EOF
6025 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
6026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6030 test $ac_status = 0; }; }; then
6031 libc_cv_asm_protected_directive=yes
6033 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
6038 $as_echo "$libc_cv_asm_protected_directive" >&6; }
6040 if test $libc_cv_asm_protected_directive = yes; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
6042 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
6043 if ${libc_cv_visibility_attribute+:} false; then :
6044 $as_echo_n "(cached) " >&6
6046 cat > conftest.c <<EOF
6047 int foo __attribute__ ((visibility ("hidden"))) = 1;
6048 int bar __attribute__ ((visibility ("protected"))) = 1;
6050 libc_cv_visibility_attribute=no
6051 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6056 test $ac_status = 0; }; }; then
6057 if grep '\.hidden.*foo' conftest.s >/dev/null; then
6058 if grep '\.protected.*bar' conftest.s >/dev/null; then
6059 libc_cv_visibility_attribute=yes
6063 rm -f conftest.{c,s}
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
6067 $as_echo "$libc_cv_visibility_attribute" >&6; }
6068 if test $libc_cv_visibility_attribute != yes; then
6069 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
6073 if test $libc_cv_visibility_attribute = yes; then
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
6075 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6076 if ${libc_cv_broken_visibility_attribute+:} false; then :
6077 $as_echo_n "(cached) " >&6
6079 cat > conftest.c <<EOF
6081 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6082 int bar (int x) { return x; }
6084 libc_cv_broken_visibility_attribute=yes
6085 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6090 test $ac_status = 0; }; }; then
6091 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6092 libc_cv_broken_visibility_attribute=no
6095 rm -f conftest.c conftest.s
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
6099 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6100 if test $libc_cv_broken_visibility_attribute = yes; then
6101 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6106 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6107 if ${libc_cv_broken_alias_attribute+:} false; then :
6108 $as_echo_n "(cached) " >&6
6110 cat > conftest.c <<EOF
6111 extern int foo (int x) __asm ("xyzzy");
6112 int bar (int x) { return x; }
6113 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6115 extern __typeof (dfoo) dfoo __asm ("abccb");
6118 libc_cv_broken_alias_attribute=yes
6119 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124 test $ac_status = 0; }; }; then
6125 if grep 'xyzzy' conftest.s >/dev/null &&
6126 grep 'abccb' conftest.s >/dev/null; then
6127 libc_cv_broken_alias_attribute=no
6130 rm -f conftest.c conftest.s
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6134 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6135 if test $libc_cv_broken_alias_attribute = yes; then
6136 as_fn_error $? "working alias attribute support required" "$LINENO" 5
6139 if test $libc_cv_visibility_attribute = yes; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6141 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6142 if ${libc_cv_have_sdata_section+:} false; then :
6143 $as_echo_n "(cached) " >&6
6145 echo "int i;" > conftest.c
6146 libc_cv_have_sdata_section=no
6147 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6148 | grep '\.sdata' >/dev/null; then
6149 libc_cv_have_sdata_section=yes
6151 rm -f conftest.c conftest.so
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6155 $as_echo "$libc_cv_have_sdata_section" >&6; }
6156 if test $libc_cv_have_sdata_section = yes; then
6157 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
6163 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6164 if ${libc_cv_initfini_array+:} false; then :
6165 $as_echo_n "(cached) " >&6
6167 cat > conftest.c <<EOF
6168 int _start (void) { return 0; }
6169 int __start (void) { return 0; }
6170 int foo (void) { return 1; }
6171 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6173 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6174 -static -nostartfiles -nostdlib 1>&5'
6175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6179 test $ac_status = 0; }; }
6181 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
6182 libc_cv_initfini_array=yes
6184 libc_cv_initfini_array=no
6187 libc_cv_initfini_array=no
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
6192 $as_echo "$libc_cv_initfini_array" >&6; }
6193 if test $libc_cv_initfini_array != yes; then
6194 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
6198 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
6199 if ${libc_cv_ctors_header+:} false; then :
6200 $as_echo_n "(cached) " >&6
6202 libc_cv_ctors_header=yes
6203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6204 /* end confdefs.h. */
6210 __attribute__ ((constructor)) void ctor (void) { puts("ctor"); }
6211 __attribute__ ((destructor)) void dtor (void) { puts("dtor"); }
6217 if ac_fn_c_try_link "$LINENO"; then :
6218 if $READELF -WS conftest$ac_exeext | $AWK '
6219 { gsub(/\[ */, "[") }
6220 $2 == ".ctors" || $2 == ".dtors" {
6221 size = strtonum("0x" $6)
6222 align = strtonum("0x" $NF)
6224 stub[$2] = size == align * 2
6227 ctors_ok = !seen[".ctors"] || stub[".ctors"]
6228 dtors_ok = !seen[".dtors"] || stub[".dtors"]
6229 exit ((ctors_ok && dtors_ok) ? 0 : 1)
6232 libc_cv_ctors_header=no
6236 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
6239 rm -f core conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
6244 $as_echo "$libc_cv_ctors_header" >&6; }
6245 if test $libc_cv_ctors_header = no; then
6246 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6251 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6252 if ${libc_cv_cc_with_libunwind+:} false; then :
6253 $as_echo_n "(cached) " >&6
6256 cat > conftest.c <<EOF
6257 int main (void) { return 0; }
6259 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6260 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6261 libc_cv_cc_with_libunwind=yes
6263 libc_cv_cc_with_libunwind=no
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6268 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6270 if test $libc_cv_cc_with_libunwind = yes; then
6271 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodelete option" >&5
6276 $as_echo_n "checking for -z nodelete option... " >&6; }
6277 if ${libc_cv_z_nodelete+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 cat > conftest.c <<EOF
6281 int _start (void) { return 42; }
6283 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6284 -fPIC -shared -o conftest.so conftest.c
6285 -nostartfiles -nostdlib
6286 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; }; }
6293 libc_cv_z_nodelete=yes
6295 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodelete" >&5
6300 $as_echo "$libc_cv_z_nodelete" >&6; }
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodlopen option" >&5
6303 $as_echo_n "checking for -z nodlopen option... " >&6; }
6304 if ${libc_cv_z_nodlopen+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 cat > conftest.c <<EOF
6308 int _start (void) { return 42; }
6310 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6311 -fPIC -shared -o conftest.so conftest.c
6312 -nostartfiles -nostdlib
6313 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318 test $ac_status = 0; }; }
6320 libc_cv_z_nodlopen=yes
6322 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodlopen" >&5
6327 $as_echo "$libc_cv_z_nodlopen" >&6; }
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z initfirst option" >&5
6330 $as_echo_n "checking for -z initfirst option... " >&6; }
6331 if ${libc_cv_z_initfirst+:} false; then :
6332 $as_echo_n "(cached) " >&6
6334 cat > conftest.c <<EOF
6335 int _start (void) { return 42; }
6337 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6338 -fPIC -shared -o conftest.so conftest.c
6339 -nostartfiles -nostdlib
6340 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6345 test $ac_status = 0; }; }
6347 libc_cv_z_initfirst=yes
6349 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_initfirst" >&5
6354 $as_echo "$libc_cv_z_initfirst" >&6; }
6356 # Add-on fragments can set these for other machines.
6357 libc_commonpagesize=${libc_commonpagesize:-no}
6358 libc_relro_required=${libc_relro_required:-no}
6359 case "$base_machine" in
6360 i[34567]86 | x86_64 | powerpc* | s390*)
6361 libc_commonpagesize=0x1000
6362 libc_relro_required=yes
6365 libc_commonpagesize=0x2000
6366 libc_relro_required=yes
6369 libc_commonpagesize=0x4000
6372 libc_commonpagesize=0x10000
6373 libc_relro_required=yes
6377 if test $libc_commonpagesize != no; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5
6379 $as_echo_n "checking for -z relro option... " >&6; }
6380 if ${libc_cv_z_relro+:} false; then :
6381 $as_echo_n "(cached) " >&6
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6387 int _start (void) { return 42; }
6388 extern void _exit (int);
6389 /* Since these pointers are const, they should go in rodata.
6390 Since they refer to functions that have to be resolved by
6391 dynamic linking, they should instead go in RELRO data. */
6392 const void *const relro[] = { &_start, &_exit, 0 };
6393 /* GNU ld fails to produce RELRO data when it's very small and there is no
6394 normal writable data following it, or if only uninitialized (.bss) data
6395 follows it, or only very small writable data. */
6396 int data[0x10000] = { 1, };
6399 cat > conftest.awk <<\EOF
6402 commonpagesize = strtonum(commonpagesize)
6404 { print "LINE:", $0 > "/dev/stderr" }
6406 vaddr = strtonum($3)
6407 memsz = strtonum($6)
6409 printf "vaddr %#x memsz %#x end %#x commonpagesize %#x\n", \
6410 vaddr, memsz, end, commonpagesize > "/dev/stderr"
6411 result = (end % commonpagesize == 0) ? "yes" : "broken"
6413 END { print result }
6415 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6416 -fPIC -shared -o conftest.so conftest.c
6417 -nostartfiles -nostdlib
6419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6423 test $ac_status = 0; }; } &&
6424 { ac_try='$READELF -Wl conftest.so > conftest.ph'
6425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429 test $ac_status = 0; }; } &&
6431 $AWK -v commonpagesize=$libc_commonpagesize -f conftest.awk
6432 conftest.ph > conftest.cps
6434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }; } &&
6439 libc_cv_z_relro=`cat conftest.cps 2>&5`
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5
6443 $as_echo "$libc_cv_z_relro" >&6; }
6444 if { test "x$libc_relro_required" = xyes &&
6445 test "x$libc_cv_z_relro" != xyes
6448 as_fn_error $? "linker with -z relro support required" "$LINENO" 5
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing architecture parameter to check for working -z relro" >&5
6452 $as_echo "$as_me: WARNING: missing architecture parameter to check for working -z relro" >&2;}
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6456 $as_echo_n "checking for -Bgroup option... " >&6; }
6457 if ${libc_cv_Bgroup+:} false; then :
6458 $as_echo_n "(cached) " >&6
6460 cat > conftest.c <<EOF
6461 int _start (void) { return 42; }
6463 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6464 -fPIC -shared -o conftest.so conftest.c
6465 -Wl,-Bgroup -nostdlib 1>&5'
6466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }; }
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6479 $as_echo "$libc_cv_Bgroup" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcc_s suffix" >&5
6483 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6484 if ${libc_cv_libgcc_s_suffix+:} false; then :
6485 $as_echo_n "(cached) " >&6
6487 cat > conftest.c <<EOF
6488 int main (void) { return 0; }
6490 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6491 -fPIC -shared -shared-libgcc -o conftest.so \
6492 conftest.c -v 2>&1 >/dev/null \
6493 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_libgcc_s_suffix" >&5
6497 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed option" >&5
6501 $as_echo_n "checking for --as-needed option... " >&6; }
6502 if ${libc_cv_as_needed+:} false; then :
6503 $as_echo_n "(cached) " >&6
6505 cat > conftest.c <<EOF
6506 int main (void) { return 0; }
6508 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6509 -fPIC -shared -o conftest.so conftest.c
6510 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6516 test $ac_status = 0; }; }
6518 libc_cv_as_needed=yes
6520 libc_cv_as_needed=no
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_needed" >&5
6525 $as_echo "$libc_cv_as_needed" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6530 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6531 if ${libc_cv_as_noexecstack+:} false; then :
6532 $as_echo_n "(cached) " >&6
6534 cat > conftest.c <<EOF
6537 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6538 -S -o conftest.s conftest.c 1>&5'
6539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6543 test $ac_status = 0; }; } \
6544 && grep -q .note.GNU-stack conftest.s \
6545 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6546 -c -o conftest.o conftest.s 1>&5'
6547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; }; }
6553 libc_cv_as_noexecstack=yes
6555 libc_cv_as_noexecstack=no
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6560 $as_echo "$libc_cv_as_noexecstack" >&6; }
6561 if test $libc_cv_as_noexecstack = yes; then
6562 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6567 $as_echo_n "checking for -z combreloc... " >&6; }
6568 if ${libc_cv_z_combreloc+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 cat > conftest.c <<EOF
6572 extern int bar (int);
6574 int foo (void) { return bar (mumble); }
6576 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6577 -fPIC -shared -o conftest.so conftest.c
6578 -nostdlib -nostartfiles
6579 -Wl,-z,combreloc 1>&5'
6580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }; }
6586 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6587 libc_cv_z_combreloc=yes
6589 libc_cv_z_combreloc=no
6592 libc_cv_z_combreloc=no
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6597 $as_echo "$libc_cv_z_combreloc" >&6; }
6598 if test "$libc_cv_z_combreloc" = yes; then
6599 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z execstack" >&5
6605 $as_echo_n "checking for -z execstack... " >&6; }
6606 if ${libc_cv_z_execstack+:} false; then :
6607 $as_echo_n "(cached) " >&6
6609 cat > conftest.c <<EOF
6610 int _start (void) { return 42; }
6612 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6613 -fPIC -shared -o conftest.so conftest.c
6614 -Wl,-z,execstack -nostdlib
6616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6620 test $ac_status = 0; }; }
6622 libc_cv_z_execstack=yes
6624 libc_cv_z_execstack=no
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_execstack" >&5
6629 $as_echo "$libc_cv_z_execstack" >&6; }
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6633 $as_echo_n "checking for -fpie... " >&6; }
6634 if ${libc_cv_fpie+:} false; then :
6635 $as_echo_n "(cached) " >&6
6637 cat > conftest.c <<EOF
6639 main () { return 0;}
6641 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6642 -o conftest conftest.c 1>&5'
6643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647 test $ac_status = 0; }; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6656 $as_echo "$libc_cv_fpie" >&6; }
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6661 $as_echo_n "checking for --hash-style option... " >&6; }
6662 if ${libc_cv_hashstyle+:} false; then :
6663 $as_echo_n "(cached) " >&6
6665 cat > conftest.c <<EOF
6666 int _start (void) { return 42; }
6668 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6669 -fPIC -shared -o conftest.so conftest.c
6670 -Wl,--hash-style=both -nostdlib 1>&5'
6671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6675 test $ac_status = 0; }; }
6677 libc_cv_hashstyle=yes
6679 libc_cv_hashstyle=no
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6684 $as_echo "$libc_cv_hashstyle" >&6; }
6687 # The linker's default -shared behavior is good enough if it
6688 # does these things that our custom linker scripts ensure that
6689 # all allocated NOTE sections come first.
6690 if test "$use_default_link" = default; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6692 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6693 if ${libc_cv_use_default_link+:} false; then :
6694 $as_echo_n "(cached) " >&6
6696 libc_cv_use_default_link=no
6697 cat > conftest.s <<\EOF
6698 .section .note.a,"a",%note
6703 .section .note.b,"a",%note
6709 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }; } &&
6715 ac_try=`$READELF -S conftest.so | sed -n \
6717 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6723 libc_seen_a=no libc_seen_b=no
6725 while test $# -ge 2 -a "$1" = NOTE; do
6727 .note.a) libc_seen_a=yes ;;
6728 .note.b) libc_seen_b=yes ;;
6732 case "$libc_seen_a$libc_seen_b" in
6734 libc_cv_use_default_link=yes
6738 $libc_seen_a$libc_seen_b from:
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6746 $as_echo "$libc_cv_use_default_link" >&6; }
6747 use_default_link=$libc_cv_use_default_link
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6752 $as_echo_n "checking linker output format... " >&6; }
6753 if ${libc_cv_output_format+:} false; then :
6754 $as_echo_n "(cached) " >&6
6756 if libc_cv_output_format=`
6757 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6761 libc_cv_output_format=
6763 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6766 $as_echo "$libc_cv_output_format" >&6; }
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6770 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6771 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6772 $as_echo_n "(cached) " >&6
6774 cat > conftest.c <<EOF
6777 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6783 test $ac_status = 0; }; }
6785 libc_cv_fno_toplevel_reorder=yes
6787 libc_cv_fno_toplevel_reorder=no
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6792 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6793 if test $libc_cv_fno_toplevel_reorder = yes; then
6794 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6796 fno_unit_at_a_time=-fno-unit-at-a-time
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6801 $as_echo_n "checking for -fstack-protector... " >&6; }
6802 if ${libc_cv_ssp+:} false; then :
6803 $as_echo_n "(cached) " >&6
6805 cat > conftest.c <<EOF
6807 main () { return 0;}
6809 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6810 -o conftest conftest.c 1>&5'
6811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815 test $ac_status = 0; }; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6824 $as_echo "$libc_cv_ssp" >&6; }
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6828 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6829 if ${libc_cv_gnu89_inline+:} false; then :
6830 $as_echo_n "(cached) " >&6
6832 cat > conftest.c <<EOF
6834 #ifdef __GNUC_GNU_INLINE__
6835 main () { return 0;}
6840 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6841 -o conftest.s conftest.c 1>&5'
6842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; }; }
6848 libc_cv_gnu89_inline=yes
6850 libc_cv_gnu89_inline=no
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6855 $as_echo "$libc_cv_gnu89_inline" >&6; }
6856 if test $libc_cv_gnu89_inline = yes; then
6857 gnu89_inline=-fgnu89-inline
6863 if test $elf != yes; then
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .init and .fini sections" >&5
6865 $as_echo_n "checking for .init and .fini sections... " >&6; }
6866 if ${libc_cv_have_initfini+:} false; then :
6867 $as_echo_n "(cached) " >&6
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6875 asm (".section .init");
6876 asm (".section .fini");
6877 asm ("${libc_cv_dot_text}");
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 libc_cv_have_initfini=yes
6885 libc_cv_have_initfini=no
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_initfini" >&5
6890 $as_echo "$libc_cv_have_initfini" >&6; }
6891 if test $libc_cv_have_initfini = yes; then
6892 $as_echo "#define HAVE_INITFINI 1" >>confdefs.h
6897 if test $elf = yes; then
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6899 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6900 if ${libc_cv_have_section_quotes+:} false; then :
6901 $as_echo_n "(cached) " >&6
6903 cat > conftest.c <<EOF
6904 static const int foo
6905 __attribute__ ((section ("bar"))) = 1;
6907 if ${CC-cc} -S conftest.c -o conftest.s; then
6908 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6909 libc_cv_have_section_quotes=yes
6911 libc_cv_have_section_quotes=no
6914 libc_cv_have_section_quotes=unknown
6916 rm -f conftest.{c,s}
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6920 $as_echo "$libc_cv_have_section_quotes" >&6; }
6921 if test $libc_cv_have_section_quotes = yes; then
6922 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6929 if test $elf = yes; then
6930 libc_cv_asm_underscores=no
6932 if test $ac_cv_prog_cc_works = yes; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6934 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6935 if ${libc_cv_asm_underscores+:} false; then :
6936 $as_echo_n "(cached) " >&6
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 asm ("_glibc_foobar:");
6949 if ac_fn_c_try_link "$LINENO"; then :
6950 libc_cv_asm_underscores=yes
6952 libc_cv_asm_underscores=no
6954 rm -f core conftest.err conftest.$ac_objext \
6955 conftest$ac_exeext conftest.$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6958 $as_echo "$libc_cv_asm_underscores" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6961 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6962 if ${libc_cv_asm_underscores+:} false; then :
6963 $as_echo_n "(cached) " >&6
6965 cat > conftest.$ac_ext <<EOF
6966 #line $LINENO "configure"
6967 #include "confdefs.h"
6968 void underscore_test(void) {
6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6972 (eval $ac_compile) 2>&5
6974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6975 test $ac_status = 0; }; then
6976 if grep _underscore_test conftest* >/dev/null; then
6978 libc_cv_asm_underscores=yes
6981 libc_cv_asm_underscores=no
6984 echo "configure: failed program was:" >&5
6985 cat conftest.$ac_ext >&5
6987 libc_cv_asm_underscores=no
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6992 $as_echo "$libc_cv_asm_underscores" >&6; }
6995 if test $libc_cv_asm_underscores = no; then
6996 $as_echo "#define NO_UNDERSCORES 1" >>confdefs.h
7000 if test $elf = yes; then
7001 libc_cv_weak_symbols=yes
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
7005 $as_echo_n "checking for assembler .weak directive... " >&6; }
7006 if ${libc_cv_asm_weak_directive+:} false; then :
7007 $as_echo_n "(cached) " >&6
7009 cat > conftest.s <<EOF
7011 ${libc_cv_asm_global_directive} foo
7014 .weak bar; bar = foo
7016 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7021 test $ac_status = 0; }; }; then
7022 libc_cv_asm_weak_directive=yes
7024 libc_cv_asm_weak_directive=no
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
7029 $as_echo "$libc_cv_asm_weak_directive" >&6; }
7031 if test $libc_cv_asm_weak_directive = no; then
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
7033 $as_echo_n "checking for assembler .weakext directive... " >&6; }
7034 if ${libc_cv_asm_weakext_directive+:} false; then :
7035 $as_echo_n "(cached) " >&6
7037 cat > conftest.s <<EOF
7039 ${libc_cv_asm_global_directive} foo
7043 ${libc_cv_asm_global_directive} baz
7046 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7051 test $ac_status = 0; }; }; then
7052 libc_cv_asm_weakext_directive=yes
7054 libc_cv_asm_weakext_directive=no
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
7059 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7063 if test $libc_cv_asm_weak_directive = yes; then
7064 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
7066 elif test $libc_cv_asm_weakext_directive = yes; then
7067 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5
7072 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7073 if ${libc_cv_asm_cfi_directives+:} false; then :
7074 $as_echo_n "(cached) " >&6
7077 sparc/sparc64*) cfi_offset=2047;;
7080 cat > conftest.s <<EOF
7082 .type func,%function
7086 .cfi_rel_offset 1, $cfi_offset
7089 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094 test $ac_status = 0; }; }; then
7095 libc_cv_asm_cfi_directives=yes
7097 libc_cv_asm_cfi_directives=no
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5
7102 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7103 if test $libc_cv_asm_cfi_directives = yes; then
7104 $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
7109 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7110 if ${libc_cv_ld_no_whole_archive+:} false; then :
7111 $as_echo_n "(cached) " >&6
7113 cat > conftest.c <<\EOF
7118 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7119 -nostdlib -nostartfiles -Wl,--no-whole-archive
7120 -o conftest conftest.c 1>&5'
7121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7125 test $ac_status = 0; }; }; then
7126 libc_cv_ld_no_whole_archive=yes
7128 libc_cv_ld_no_whole_archive=no
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
7133 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7134 if test $libc_cv_ld_no_whole_archive = yes; then
7135 no_whole_archive=-Wl,--no-whole-archive
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
7139 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7140 if ${libc_cv_gcc_exceptions+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 cat > conftest.c <<\EOF
7148 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7149 -nostdlib -nostartfiles -fexceptions
7150 -o conftest conftest.c 1>&5'
7151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7155 test $ac_status = 0; }; }; then
7156 libc_cv_gcc_exceptions=yes
7158 libc_cv_gcc_exceptions=no
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
7163 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7164 if test $libc_cv_gcc_exceptions = yes; then
7165 exceptions=-fexceptions
7168 if test "$host_cpu" = powerpc ; then
7169 # Check for a bug present in at least versions 2.8.x of GCC
7170 # and versions 1.0.x of EGCS.
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5
7172 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7173 if ${libc_cv_c_asmcr0_bug+:} false; then :
7174 $as_echo_n "(cached) " >&6
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7178 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7187 if ac_fn_c_try_compile "$LINENO"; then :
7188 libc_cv_c_asmcr0_bug='no'
7190 libc_cv_c_asmcr0_bug='yes'
7192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5
7195 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7196 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7197 $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7203 $as_echo_n "checking for __builtin_expect... " >&6; }
7204 if ${libc_cv_gcc_builtin_expect+:} false; then :
7205 $as_echo_n "(cached) " >&6
7207 cat > conftest.c <<EOF
7208 #line $LINENO "configure"
7211 a = __builtin_expect (a, 10);
7212 return a == 10 ? 0 : 1;
7215 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7216 -o conftest conftest.c -lgcc >&5'
7217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221 test $ac_status = 0; }; }; then
7222 libc_cv_gcc_builtin_expect=yes
7224 libc_cv_gcc_builtin_expect=no
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_expect" >&5
7229 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7230 if test "$libc_cv_gcc_builtin_expect" = yes; then
7231 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7236 $as_echo_n "checking for __builtin_memset... " >&6; }
7237 if ${libc_cv_gcc_builtin_memset+:} false; then :
7238 $as_echo_n "(cached) " >&6
7240 cat > conftest.c <<\EOF
7243 __builtin_memset (x, 0, 1000);
7246 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7251 test $ac_status = 0; }; };
7253 libc_cv_gcc_builtin_memset=no
7255 libc_cv_gcc_builtin_memset=yes
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7260 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7261 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7262 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7267 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7268 if ${libc_cv_gcc_builtin_redirection+:} false; then :
7269 $as_echo_n "(cached) " >&6
7271 cat > conftest.c <<\EOF
7272 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7273 char *foo (const char *a, const char *b)
7275 return __builtin_strstr (a, b);
7278 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
7279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; }; };
7285 libc_cv_gcc_builtin_redirection=yes
7287 libc_cv_gcc_builtin_redirection=no
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7292 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7293 if test "$libc_cv_gcc_builtin_redirection" = yes ; then
7294 $as_echo "#define HAVE_BUILTIN_REDIRECTION 1" >>confdefs.h
7298 if test "x$use__thread" != xno; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
7300 $as_echo_n "checking for __thread... " >&6; }
7301 if ${libc_cv_gcc___thread+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 cat > conftest.c <<\EOF
7305 __thread int a = 42;
7307 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; }; then
7313 libc_cv_gcc___thread=yes
7315 libc_cv_gcc___thread=no
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
7320 $as_echo "$libc_cv_gcc___thread" >&6; }
7321 if test "$libc_cv_gcc___thread" = yes; then
7322 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
7326 libc_cv_gcc___thread=no
7329 if test "$libc_cv_gcc___thread" = yes; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
7331 $as_echo_n "checking for tls_model attribute... " >&6; }
7332 if ${libc_cv_gcc_tls_model_attr+:} false; then :
7333 $as_echo_n "(cached) " >&6
7335 cat > conftest.c <<\EOF
7336 extern __thread int a __attribute__((tls_model ("initial-exec")));
7338 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7343 test $ac_status = 0; }; }; then
7344 libc_cv_gcc_tls_model_attr=yes
7346 libc_cv_gcc_tls_model_attr=no
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
7351 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7352 if test "$libc_cv_gcc_tls_model_attr" = yes; then
7353 $as_echo "#define HAVE_TLS_MODEL_ATTRIBUTE 1" >>confdefs.h
7358 if test -n "$submachine"; then
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7360 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7361 if ${libc_cv_cc_submachine+:} false; then :
7362 $as_echo_n "(cached) " >&6
7364 libc_cv_cc_submachine=no
7365 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7366 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; }; }; then
7372 libc_cv_cc_submachine="$opt"
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7378 $as_echo "$libc_cv_cc_submachine" >&6; }
7379 if test "x$libc_cv_cc_submachine" = xno; then
7380 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7386 $as_echo_n "checking for libgd... " >&6; }
7387 if test "$with_gd" != "no"; then
7388 old_CFLAGS="$CFLAGS"
7389 CFLAGS="$CFLAGS $libgd_include"
7390 old_LDFLAGS="$LDFLAGS"
7391 LDFLAGS="$LDFLAGS $libgd_ldflags"
7393 LIBS="$LIBS -lgd -lpng -lz -lm"
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7395 /* end confdefs.h. */
7405 if ac_fn_c_try_link "$LINENO"; then :
7410 rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412 CFLAGS="$old_CFLAGS"
7413 LDFLAGS="$old_LDFLAGS"
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7419 $as_echo "$LIBGD" >&6; }
7423 if test x$with_selinux = xno ; then
7426 # See if we have the SELinux library
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7428 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7429 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 ac_check_lib_save_LIBS=$LIBS
7433 LIBS="-lselinux $LIBS"
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7437 /* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
7443 char is_selinux_enabled ();
7447 return is_selinux_enabled ();
7452 if ac_fn_c_try_link "$LINENO"; then :
7453 ac_cv_lib_selinux_is_selinux_enabled=yes
7455 ac_cv_lib_selinux_is_selinux_enabled=no
7457 rm -f core conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
7459 LIBS=$ac_check_lib_save_LIBS
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7462 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7463 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
7469 # See if we have the SELinux header with the NSCD permissions in it.
7470 if test x$have_selinux = xyes ; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7472 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7475 #include <selinux/av_permissions.h>
7479 #ifdef NSCD__SHMEMHOST
7482 #error NSCD__SHMEMHOST not defined
7488 if ac_fn_c_try_compile "$LINENO"; then :
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5
7495 $as_echo "$have_selinux" >&6; }
7498 if test x$with_selinux = xyes ; then
7499 if test x$have_selinux = xno ; then
7500 as_fn_error $? "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5
7504 # Check if we're building with SELinux support.
7505 if test "x$have_selinux" = xyes; then
7507 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7510 # See if we have the libaudit library
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7512 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7513 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
7514 $as_echo_n "(cached) " >&6
7516 ac_check_lib_save_LIBS=$LIBS
7517 LIBS="-laudit $LIBS"
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7521 /* Override any GCC internal prototype to avoid an error.
7522 Use char because int might match the return type of a GCC
7523 builtin and then its argument prototype would still apply. */
7527 char audit_log_user_avc_message ();
7531 return audit_log_user_avc_message ();
7536 if ac_fn_c_try_link "$LINENO"; then :
7537 ac_cv_lib_audit_audit_log_user_avc_message=yes
7539 ac_cv_lib_audit_audit_log_user_avc_message=no
7541 rm -f core conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
7543 LIBS=$ac_check_lib_save_LIBS
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7546 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7547 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
7553 if test "x$have_libaudit" = xyes; then
7555 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
7560 # See if we have the libcap library
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7562 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7563 if ${ac_cv_lib_cap_cap_init+:} false; then :
7564 $as_echo_n "(cached) " >&6
7566 ac_check_lib_save_LIBS=$LIBS
7568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7569 /* end confdefs.h. */
7571 /* Override any GCC internal prototype to avoid an error.
7572 Use char because int might match the return type of a GCC
7573 builtin and then its argument prototype would still apply. */
7586 if ac_fn_c_try_link "$LINENO"; then :
7587 ac_cv_lib_cap_cap_init=yes
7589 ac_cv_lib_cap_cap_init=no
7591 rm -f core conftest.err conftest.$ac_objext \
7592 conftest$ac_exeext conftest.$ac_ext
7593 LIBS=$ac_check_lib_save_LIBS
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7596 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7597 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
7603 if test "x$have_libcap" = xyes; then
7605 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7614 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7615 if ${ac_cv_path_GREP+:} false; then :
7616 $as_echo_n "(cached) " >&6
7618 if test -z "$GREP"; then
7619 ac_path_GREP_found=false
7620 # Loop through the user's path and test for each of PROGNAME-LIST
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7625 test -z "$as_dir" && as_dir=.
7626 for ac_prog in grep ggrep; do
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7629 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7630 # Check for GNU ac_path_GREP and select it if it is found.
7631 # Check for GNU $ac_path_GREP
7632 case `"$ac_path_GREP" --version 2>&1` in
7634 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7637 $as_echo_n 0123456789 >"conftest.in"
7640 cat "conftest.in" "conftest.in" >"conftest.tmp"
7641 mv "conftest.tmp" "conftest.in"
7642 cp "conftest.in" "conftest.nl"
7643 $as_echo 'GREP' >> "conftest.nl"
7644 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7645 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7646 as_fn_arith $ac_count + 1 && ac_count=$as_val
7647 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7648 # Best one so far, save it but keep looking for a better one
7649 ac_cv_path_GREP="$ac_path_GREP"
7650 ac_path_GREP_max=$ac_count
7652 # 10*(2^10) chars as input seems more than enough
7653 test $ac_count -gt 10 && break
7655 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7658 $ac_path_GREP_found && break 3
7663 if test -z "$ac_cv_path_GREP"; then
7664 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7667 ac_cv_path_GREP=$GREP
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7672 $as_echo "$ac_cv_path_GREP" >&6; }
7673 GREP="$ac_cv_path_GREP"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7677 $as_echo_n "checking for egrep... " >&6; }
7678 if ${ac_cv_path_EGREP+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7682 then ac_cv_path_EGREP="$GREP -E"
7684 if test -z "$EGREP"; then
7685 ac_path_EGREP_found=false
7686 # Loop through the user's path and test for each of PROGNAME-LIST
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7691 test -z "$as_dir" && as_dir=.
7692 for ac_prog in egrep; do
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7695 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7696 # Check for GNU ac_path_EGREP and select it if it is found.
7697 # Check for GNU $ac_path_EGREP
7698 case `"$ac_path_EGREP" --version 2>&1` in
7700 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7703 $as_echo_n 0123456789 >"conftest.in"
7706 cat "conftest.in" "conftest.in" >"conftest.tmp"
7707 mv "conftest.tmp" "conftest.in"
7708 cp "conftest.in" "conftest.nl"
7709 $as_echo 'EGREP' >> "conftest.nl"
7710 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7711 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7712 as_fn_arith $ac_count + 1 && ac_count=$as_val
7713 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7714 # Best one so far, save it but keep looking for a better one
7715 ac_cv_path_EGREP="$ac_path_EGREP"
7716 ac_path_EGREP_max=$ac_count
7718 # 10*(2^10) chars as input seems more than enough
7719 test $ac_count -gt 10 && break
7721 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7724 $ac_path_EGREP_found && break 3
7729 if test -z "$ac_cv_path_EGREP"; then
7730 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7733 ac_cv_path_EGREP=$EGREP
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7739 $as_echo "$ac_cv_path_EGREP" >&6; }
7740 EGREP="$ac_cv_path_EGREP"
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7744 $as_echo_n "checking for ANSI C header files... " >&6; }
7745 if ${ac_cv_header_stdc+:} false; then :
7746 $as_echo_n "(cached) " >&6
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h. */
7763 if ac_fn_c_try_compile "$LINENO"; then :
7764 ac_cv_header_stdc=yes
7766 ac_cv_header_stdc=no
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 if test $ac_cv_header_stdc = yes; then
7771 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7778 $EGREP "memchr" >/dev/null 2>&1; then :
7781 ac_cv_header_stdc=no
7787 if test $ac_cv_header_stdc = yes; then
7788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7795 $EGREP "free" >/dev/null 2>&1; then :
7798 ac_cv_header_stdc=no
7804 if test $ac_cv_header_stdc = yes; then
7805 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7806 if test "$cross_compiling" = yes; then :
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810 /* end confdefs.h. */
7813 #if ((' ' & 0x0FF) == 0x020)
7814 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7815 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7817 # define ISLOWER(c) \
7818 (('a' <= (c) && (c) <= 'i') \
7819 || ('j' <= (c) && (c) <= 'r') \
7820 || ('s' <= (c) && (c) <= 'z'))
7821 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7824 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7829 for (i = 0; i < 256; i++)
7830 if (XOR (islower (i), ISLOWER (i))
7831 || toupper (i) != TOUPPER (i))
7836 if ac_fn_c_try_run "$LINENO"; then :
7839 ac_cv_header_stdc=no
7841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7842 conftest.$ac_objext conftest.beam conftest.$ac_ext
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7848 $as_echo "$ac_cv_header_stdc" >&6; }
7849 if test $ac_cv_header_stdc = yes; then
7851 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7855 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7856 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7857 inttypes.h stdint.h unistd.h
7859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7860 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7862 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7863 cat >>confdefs.h <<_ACEOF
7864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7872 # The cast to long int works around a bug in the HP C Compiler
7873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7875 # This bug is HP SR number 8606223364.
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7877 $as_echo_n "checking size of long double... " >&6; }
7878 if ${ac_cv_sizeof_long_double+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7884 if test "$ac_cv_type_long_double" = yes; then
7885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7887 as_fn_error 77 "cannot compute sizeof (long double)
7888 See \`config.log' for more details" "$LINENO" 5; }
7890 ac_cv_sizeof_long_double=0
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7896 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7900 cat >>confdefs.h <<_ACEOF
7901 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7905 sizeof_long_double=$ac_cv_sizeof_long_double
7908 ### End of automated tests.
7909 ### Now run sysdeps configure fragments.
7911 # They also can set these variables.
7913 ldd_rewrite_script=no
7914 libc_cv_sysconfdir=$sysconfdir
7915 libc_cv_gcc_unwind_find_fde=no
7918 # Iterate over all the sysdep directories we will use, running their
7919 # configure fragments.
7920 for dir in $sysnames; do
7923 *) dest=$srcdir/$dir ;;
7925 if test -r $dest/configure; then
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7927 $as_echo "running configure fragment for $dir" >&6; }
7932 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7933 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7938 $as_echo "#define USE_IN_LIBIO 1" >>confdefs.h
7941 # Test for old glibc 2.0.x headers so that they can be removed properly
7942 # Search only in includedir.
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7944 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7945 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7947 old_glibc_headers=yes
7949 old_glibc_headers=no
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7952 $as_echo "$old_glibc_headers" >&6; }
7953 if test ${old_glibc_headers} = yes; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7955 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7957 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7977 if test $elf = yes; then
7978 $as_echo "#define HAVE_ELF 1" >>confdefs.h
7981 if test $xcoff = yes; then
7982 $as_echo "#define HAVE_XCOFF 1" >>confdefs.h
7988 if test $shared = default; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7993 $as_echo_n "checking whether -fPIC is default... " >&6; }
7994 if ${libc_cv_pic_default+:} false; then :
7995 $as_echo_n "(cached) " >&6
7997 libc_cv_pic_default=yes
7998 cat > conftest.c <<EOF
7999 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
8000 # error PIC is default.
8003 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
8004 libc_cv_pic_default=no
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
8009 $as_echo "$libc_cv_pic_default" >&6; }
8022 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
8025 config_makefile=Makefile
8028 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
8029 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
8033 ac_config_files="$ac_config_files config.make ${config_makefile}"
8035 ac_config_commands="$ac_config_commands default"
8037 cat >confcache <<\_ACEOF
8038 # This file is a shell script that caches the results of configure
8039 # tests run on this system so they can be shared between configure
8040 # scripts and configure runs, see configure's option --config-cache.
8041 # It is not useful on other systems. If it contains results you don't
8042 # want to keep, you may remove or edit it.
8044 # config.status only pays attention to the cache file if you give it
8045 # the --recheck option to rerun configure.
8047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8053 # The following way of writing the cache mishandles newlines in values,
8054 # but we know of no workaround that is simple, portable, and efficient.
8055 # So, we kill variables containing newlines.
8056 # Ultrix sh set writes to stderr and can't be redirected directly,
8057 # and sets the high bit in the cache file unless we assign to the vars.
8059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8060 eval ac_val=\$$ac_var
8064 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8068 _ | IFS | as_nl) ;; #(
8069 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8070 *) { eval $ac_var=; unset $ac_var;} ;;
8076 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8077 *${as_nl}ac_space=\ *)
8078 # `set' does not quote correctly, so add quotes: double-quote
8079 # substitution turns \\\\ into \\, and sed turns \\ into \.
8082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8085 # `set' quotes correctly as required by POSIX, so do not add quotes.
8086 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8095 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8097 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8099 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8100 if test -w "$cache_file"; then
8101 if test "x$cache_file" != "x/dev/null"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8103 $as_echo "$as_me: updating cache $cache_file" >&6;}
8104 if test ! -f "$cache_file" || test -h "$cache_file"; then
8105 cat confcache >"$cache_file"
8107 case $cache_file in #(
8109 mv -f confcache "$cache_file"$$ &&
8110 mv -f "$cache_file"$$ "$cache_file" ;; #(
8112 mv -f confcache "$cache_file" ;;
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8118 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8123 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8124 # Let make expand exec_prefix.
8125 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8127 DEFS=-DHAVE_CONFIG_H
8132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8133 # 1. Remove the extension, and $U if already installed.
8134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8137 # will be set to the directory where LIBOBJS objects are built.
8138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8143 LTLIBOBJS=$ac_ltlibobjs
8147 : "${CONFIG_STATUS=./config.status}"
8149 ac_clean_files_save=$ac_clean_files
8150 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8152 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8154 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8156 # Generated by $as_me.
8157 # Run this file to recreate the current configuration.
8158 # Compiler output produced by configure, useful for debugging
8159 # configure, is in config.log if it exists.
8165 SHELL=\${CONFIG_SHELL-$SHELL}
8168 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8169 ## -------------------- ##
8170 ## M4sh Initialization. ##
8171 ## -------------------- ##
8173 # Be more Bourne compatible
8174 DUALCASE=1; export DUALCASE # for MKS sh
8175 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8178 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8179 # is contrary to our usage. Disable this feature.
8180 alias -g '${1+"$@"}'='"$@"'
8181 setopt NO_GLOB_SUBST
8183 case `(set -o) 2>/dev/null` in #(
8195 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8196 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8197 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8199 # Prefer a ksh shell builtin over an external printf program on Solaris,
8200 # but without wasting forks for bash or zsh.
8201 if test -z "$BASH_VERSION$ZSH_VERSION" \
8202 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8203 as_echo='print -r --'
8204 as_echo_n='print -rn --'
8205 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8206 as_echo='printf %s\n'
8207 as_echo_n='printf %s'
8209 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8210 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8211 as_echo_n='/usr/ucb/echo -n'
8213 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8214 as_echo_n_body='eval
8218 expr "X$arg" : "X\\(.*\\)$as_nl";
8219 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8221 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8223 export as_echo_n_body
8224 as_echo_n='sh -c $as_echo_n_body as_echo'
8227 as_echo='sh -c $as_echo_body as_echo'
8230 # The user is always right.
8231 if test "${PATH_SEPARATOR+set}" != set; then
8233 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8234 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8241 # We need space, tab and new line, in precisely that order. Quoting is
8242 # there to prevent editors from complaining about space-tab.
8243 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8244 # splitting by setting IFS to empty value.)
8247 # Find who we are. Look in the path if we contain no directory separator.
8250 *[\\/]* ) as_myself=$0 ;;
8251 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 test -z "$as_dir" && as_dir=.
8256 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8262 # We did not find ourselves, most probably we were run as `sh COMMAND'
8263 # in which case we are not to be found in the path.
8264 if test "x$as_myself" = x; then
8267 if test ! -f "$as_myself"; then
8268 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8272 # Unset variables that we do not need and which cause bugs (e.g. in
8273 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8274 # suppresses any "Segmentation fault" message there. '((' could
8275 # trigger a bug in pdksh 5.2.14.
8276 for as_var in BASH_ENV ENV MAIL MAILPATH
8277 do eval test x\${$as_var+set} = xset \
8278 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8291 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8294 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8295 # ----------------------------------------
8296 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8297 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8298 # script with STATUS, using 1 if that was 0.
8301 as_status=$1; test $as_status -eq 0 && as_status=1
8303 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8304 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8306 $as_echo "$as_me: error: $2" >&2
8307 as_fn_exit $as_status
8311 # as_fn_set_status STATUS
8312 # -----------------------
8313 # Set $? to STATUS, without forking.
8317 } # as_fn_set_status
8321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8331 # Portably unset VAR.
8334 { eval $1=; unset $1;}
8336 as_unset=as_fn_unset
8337 # as_fn_append VAR VALUE
8338 # ----------------------
8339 # Append the text in VALUE to the end of the definition contained in VAR. Take
8340 # advantage of any shell optimizations that allow amortized linear growth over
8341 # repeated appends, instead of the typical quadratic growth present in naive
8343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8344 eval 'as_fn_append ()
8355 # as_fn_arith ARG...
8356 # ------------------
8357 # Perform arithmetic evaluation on the ARGs, and store the result in the
8358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8359 # must be portable across $(()) and expr.
8360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8361 eval 'as_fn_arith ()
8368 as_val=`expr "$@" || test $? -eq 1`
8373 if expr a : '\(a\)' >/dev/null 2>&1 &&
8374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8381 as_basename=basename
8386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8392 as_me=`$as_basename -- "$0" ||
8393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8394 X"$0" : 'X\(//\)$' \| \
8395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8397 sed '/^.*\/\([^/][^/]*\)\/*$/{
8411 # Avoid depending upon Character Ranges.
8412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8415 as_cr_digits='0123456789'
8416 as_cr_alnum=$as_cr_Letters$as_cr_digits
8418 ECHO_C= ECHO_N= ECHO_T=
8419 case `echo -n x` in #(((((
8421 case `echo 'xy\c'` in
8422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8424 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8431 rm -f conf$$ conf$$.exe conf$$.file
8432 if test -d conf$$.dir; then
8433 rm -f conf$$.dir/conf$$.file
8436 mkdir conf$$.dir 2>/dev/null
8438 if (echo >conf$$.file) 2>/dev/null; then
8439 if ln -s conf$$.file conf$$ 2>/dev/null; then
8441 # ... but there are two gotchas:
8442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8444 # In both cases, we have to default to `cp -p'.
8445 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8447 elif ln conf$$.file conf$$ 2>/dev/null; then
8455 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8456 rmdir conf$$.dir 2>/dev/null
8461 # Create "$as_dir" as a directory, including parents if necessary.
8466 -*) as_dir=./$as_dir;;
8468 test -d "$as_dir" || eval $as_mkdir_p || {
8472 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8473 *) as_qdir=$as_dir;;
8475 as_dirs="'$as_qdir' $as_dirs"
8476 as_dir=`$as_dirname -- "$as_dir" ||
8477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8478 X"$as_dir" : 'X\(//\)[^/]' \| \
8479 X"$as_dir" : 'X\(//\)$' \| \
8480 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8481 $as_echo X"$as_dir" |
8482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8499 test -d "$as_dir" && break
8501 test -z "$as_dirs" || eval "mkdir $as_dirs"
8502 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8506 if mkdir -p . 2>/dev/null; then
8507 as_mkdir_p='mkdir -p "$as_dir"'
8509 test -d ./-p && rmdir ./-p
8513 if test -x / >/dev/null 2>&1; then
8516 if ls -dL / >/dev/null 2>&1; then
8523 if test -d "$1"; then
8529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8530 ???[sx]*):;;*)false;;esac;fi
8534 as_executable_p=$as_test_x
8536 # Sed expression to map a string onto a valid CPP name.
8537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8539 # Sed expression to map a string onto a valid variable name.
8540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8544 ## ----------------------------------- ##
8545 ## Main body of $CONFIG_STATUS script. ##
8546 ## ----------------------------------- ##
8548 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8551 # Save the log message, to keep $0 and so on meaningful, and to
8552 # report actual input values of CONFIG_FILES etc. instead of their
8553 # values after options handling.
8555 This file was extended by GNU C Library $as_me (see version.h), which was
8556 generated by GNU Autoconf 2.68. Invocation command line was
8558 CONFIG_FILES = $CONFIG_FILES
8559 CONFIG_HEADERS = $CONFIG_HEADERS
8560 CONFIG_LINKS = $CONFIG_LINKS
8561 CONFIG_COMMANDS = $CONFIG_COMMANDS
8564 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8569 case $ac_config_files in *"
8570 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8573 case $ac_config_headers in *"
8574 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8579 # Files that config.status was made for.
8580 config_files="$ac_config_files"
8581 config_headers="$ac_config_headers"
8582 config_commands="$ac_config_commands"
8586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8588 \`$as_me' instantiates files and other configuration actions
8589 from templates according to the current configuration. Unless the files
8590 and actions are specified as TAGs, all are instantiated by default.
8592 Usage: $0 [OPTION]... [TAG]...
8594 -h, --help print this help, then exit
8595 -V, --version print version number and configuration settings, then exit
8596 --config print configuration, then exit
8597 -q, --quiet, --silent
8598 do not print progress messages
8599 -d, --debug don't remove temporary files
8600 --recheck update $as_me by reconfiguring in the same conditions
8601 --file=FILE[:TEMPLATE]
8602 instantiate the configuration file FILE
8603 --header=FILE[:TEMPLATE]
8604 instantiate the configuration header FILE
8606 Configuration files:
8609 Configuration headers:
8612 Configuration commands:
8615 Report bugs to <glibc>.
8616 GNU C Library home page: <http://www.gnu.org/software/c-library/>.
8617 General help using GNU software: <http://www.gnu.org/gethelp/>."
8620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8621 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8623 GNU C Library config.status (see version.h)
8624 configured by $0, generated by GNU Autoconf 2.68,
8625 with options \\"\$ac_cs_config\\"
8627 Copyright (C) 2010 Free Software Foundation, Inc.
8628 This config.status script is free software; the Free Software Foundation
8629 gives unlimited permission to copy, distribute and modify it."
8635 test -n "\$AWK" || AWK=awk
8638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8639 # The default lists apply if the user does not specify any file.
8645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8646 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8662 # Handling of the options.
8663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8666 $as_echo "$ac_cs_version"; exit ;;
8667 --config | --confi | --conf | --con | --co | --c )
8668 $as_echo "$ac_cs_config"; exit ;;
8669 --debug | --debu | --deb | --de | --d | -d )
8671 --file | --fil | --fi | --f )
8674 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8675 '') as_fn_error $? "missing file argument" ;;
8677 as_fn_append CONFIG_FILES " '$ac_optarg'"
8678 ac_need_defaults=false;;
8679 --header | --heade | --head | --hea )
8682 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8684 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8685 ac_need_defaults=false;;
8687 # Conflict between --help and --header
8688 as_fn_error $? "ambiguous option: \`$1'
8689 Try \`$0 --help' for more information.";;
8690 --help | --hel | -h )
8691 $as_echo "$ac_cs_usage"; exit ;;
8692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8693 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8697 -*) as_fn_error $? "unrecognized option: \`$1'
8698 Try \`$0 --help' for more information." ;;
8700 *) as_fn_append ac_config_targets " $1"
8701 ac_need_defaults=false ;;
8707 ac_configure_extra_args=
8709 if $ac_cs_silent; then
8711 ac_configure_extra_args="$ac_configure_extra_args --silent"
8715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8716 if \$ac_cs_recheck; then
8717 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8719 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8720 CONFIG_SHELL='$SHELL'
8726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8731 ## Running $as_me. ##
8737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8741 config_vars='$config_vars'
8745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8747 # Handling of arguments.
8748 for ac_config_target in $ac_config_targets
8750 case $ac_config_target in
8751 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8752 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8753 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8754 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8756 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8761 # If the user did not use the arguments to specify the items to instantiate,
8762 # then the envvar interface is used. Set only those that are not.
8763 # We use the long form for the default assignment because of an extremely
8764 # bizarre bug on SunOS 4.1.3.
8765 if $ac_need_defaults; then
8766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8771 # Have a temporary directory for convenience. Make it in the build tree
8772 # simply because there is no reason against having it here, and in addition,
8773 # creating and moving files from /tmp can sometimes cause problems.
8774 # Hook for its removal unless debugging.
8775 # Note that there is a small window in which the directory will not be cleaned:
8776 # after its creation but before its name has been assigned to `$tmp'.
8780 trap 'exit_status=$?
8782 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8784 trap 'as_fn_exit 1' 1 2 13 15
8786 # Create a (secure) tmp directory for tmp files.
8789 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8793 tmp=./conf$$-$RANDOM
8794 (umask 077 && mkdir "$tmp")
8795 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8798 # Set up the scripts for CONFIG_FILES section.
8799 # No need to generate them if there are no CONFIG_FILES.
8800 # This happens for instance with `./config.status config.h'.
8801 if test -n "$CONFIG_FILES"; then
8804 ac_cr=`echo X | tr X '\015'`
8805 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8806 # But we know of no other shell where ac_cr would be empty at this
8807 # point, so we can use a bashism as a fallback.
8808 if test "x$ac_cr" = x; then
8809 eval ac_cr=\$\'\\r\'
8811 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8812 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8818 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8823 echo "cat >conf$$subs.awk <<_ACEOF" &&
8824 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8827 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8828 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8830 for ac_last_try in false false false false false :; do
8831 . ./conf$$subs.sh ||
8832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8834 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8835 if test $ac_delim_n = $ac_delim_num; then
8837 elif $ac_last_try; then
8838 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8840 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8846 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8850 s/^/S["/; s/!.*/"]=/
8860 s/\(.\{148\}\)..*/\1/
8862 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8867 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8874 s/\(.\{148\}\)..*/\1/
8876 s/["\\]/\\&/g; s/^/"/; s/$/"/
8880 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8885 ' <conf$$subs.awk | sed '
8890 ' >>$CONFIG_STATUS || ac_write_fail=1
8891 rm -f conf$$subs.awk
8892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8894 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8895 for (key in S) S_is_set[key] = 1
8901 nfields = split(line, field, "@")
8903 len = length(field[1])
8904 for (i = 2; i < nfields; i++) {
8906 keylen = length(key)
8907 if (S_is_set[key]) {
8909 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8910 len += length(value) + length(field[++i])
8921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8922 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8923 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8926 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8927 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8930 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8931 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8932 # trailing colons and then remove the whole line if VPATH becomes empty
8933 # (actually we leave an empty line to preserve line numbers).
8934 if test "x$srcdir" = x.; then
8935 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8954 fi # test -n "$CONFIG_FILES"
8956 # Set up the scripts for CONFIG_HEADERS section.
8957 # No need to generate them if there are no CONFIG_HEADERS.
8958 # This happens for instance with `./config.status Makefile'.
8959 if test -n "$CONFIG_HEADERS"; then
8960 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8964 # Transform confdefs.h into an awk script `defines.awk', embedded as
8965 # here-document in config.status, that substitutes the proper values into
8966 # config.h.in to produce config.h.
8968 # Create a delimiter string that does not exist in confdefs.h, to ease
8969 # handling of long lines.
8971 for ac_last_try in false false :; do
8972 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8973 if test -z "$ac_tt"; then
8975 elif $ac_last_try; then
8976 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8978 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8982 # For the awk script, D is an array of macro values keyed by name,
8983 # likewise P contains macro parameters if any. Preserve backslash
8984 # newline sequences.
8986 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8988 s/.\{148\}/&'"$ac_delim"'/g
8991 s/^[ ]*#[ ]*define[ ][ ]*/ /
8998 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9000 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9004 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9005 D["\1"]=" \3\\\\\\n"\\/p
9007 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9012 s/.\{148\}/&'"$ac_delim"'/g
9017 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9020 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9022 ' <confdefs.h | sed '
9023 s/'"$ac_delim"'/"\\\
9024 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9027 for (key in D) D_is_set[key] = 1
9030 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9032 split(line, arg, " ")
9033 if (arg[1] == "#") {
9037 defundef = substr(arg[1], 2)
9040 split(mac1, mac2, "(") #)
9042 prefix = substr(line, 1, index(line, defundef) - 1)
9043 if (D_is_set[macro]) {
9044 # Preserve the white space surrounding the "#".
9045 print prefix "define", macro P[macro] D[macro]
9048 # Replace #undef with comments. This is necessary, for example,
9049 # in the case of _POSIX_SOURCE, which is predefined and required
9050 # on some systems where configure will not decide to define it.
9051 if (defundef == "undef") {
9052 print "/*", prefix defundef, macro, "*/"
9060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9061 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9062 fi # test -n "$CONFIG_HEADERS"
9065 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9070 :[FHLC]) ac_mode=$ac_tag; continue;;
9072 case $ac_mode$ac_tag in
9074 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9075 :[FH]-) ac_tag=-:-;;
9076 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9093 -) ac_f="$ac_tmp/stdin";;
9094 *) # Look for the file first in the build tree, then in the source tree
9095 # (if the path is not absolute). The absolute path cannot be DOS-style,
9096 # because $ac_f cannot contain `:'.
9100 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9102 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9104 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9105 as_fn_append ac_file_inputs " '$ac_f'"
9108 # Let's still pretend it is `configure' which instantiates (i.e., don't
9109 # use $as_me), people would be surprised to read:
9110 # /* config.h. Generated by config.status. */
9111 configure_input='Generated from '`
9112 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9114 if test x"$ac_file" != x-; then
9115 configure_input="$ac_file. $configure_input"
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9117 $as_echo "$as_me: creating $ac_file" >&6;}
9119 # Neutralize special characters interpreted by sed in replacement strings.
9120 case $configure_input in #(
9121 *\&* | *\|* | *\\* )
9122 ac_sed_conf_input=`$as_echo "$configure_input" |
9123 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9124 *) ac_sed_conf_input=$configure_input;;
9128 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9129 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9134 ac_dir=`$as_dirname -- "$ac_file" ||
9135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9136 X"$ac_file" : 'X\(//\)[^/]' \| \
9137 X"$ac_file" : 'X\(//\)$' \| \
9138 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9139 $as_echo X"$ac_file" |
9140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9157 as_dir="$ac_dir"; as_fn_mkdir_p
9161 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9163 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9164 # A ".." for each directory in $ac_dir_suffix.
9165 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9166 case $ac_top_builddir_sub in
9167 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9168 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9171 ac_abs_top_builddir=$ac_pwd
9172 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9173 # for backward compatibility:
9174 ac_top_builddir=$ac_top_build_prefix
9177 .) # We are building in place.
9179 ac_top_srcdir=$ac_top_builddir_sub
9180 ac_abs_top_srcdir=$ac_pwd ;;
9181 [\\/]* | ?:[\\/]* ) # Absolute name.
9182 ac_srcdir=$srcdir$ac_dir_suffix;
9183 ac_top_srcdir=$srcdir
9184 ac_abs_top_srcdir=$srcdir ;;
9186 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9187 ac_top_srcdir=$ac_top_build_prefix$srcdir
9188 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9190 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9200 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9201 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9206 # If the template does not know about datarootdir, expand it.
9207 # FIXME: This hack should be removed a few years after 2.60.
9208 ac_datarootdir_hack=; ac_datarootdir_seen=
9219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9220 *datarootdir*) ac_datarootdir_seen=yes;;
9221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9226 ac_datarootdir_hack='
9227 s&@datadir@&$datadir&g
9228 s&@docdir@&$docdir&g
9229 s&@infodir@&$infodir&g
9230 s&@localedir@&$localedir&g
9231 s&@mandir@&$mandir&g
9232 s&\\\${datarootdir}&$datarootdir&g' ;;
9236 # Neutralize VPATH when `$srcdir' = `.'.
9237 # Shell code in configure.ac might set extrasub.
9238 # FIXME: do we really want to maintain this feature?
9239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9240 ac_sed_extra="$ac_vpsub
9243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9246 s|@configure_input@|$ac_sed_conf_input|;t t
9247 s&@top_builddir@&$ac_top_builddir_sub&;t t
9248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9249 s&@srcdir@&$ac_srcdir&;t t
9250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9251 s&@top_srcdir@&$ac_top_srcdir&;t t
9252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9253 s&@builddir@&$ac_builddir&;t t
9254 s&@abs_builddir@&$ac_abs_builddir&;t t
9255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9256 s&@INSTALL@&$ac_INSTALL&;t t
9257 $ac_datarootdir_hack
9259 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9260 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9262 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9263 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9265 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9267 which seems to be undefined. Please make sure it is defined" >&5
9268 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9269 which seems to be undefined. Please make sure it is defined" >&2;}
9271 rm -f "$ac_tmp/stdin"
9273 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9274 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9282 if test x"$ac_file" != x-; then
9284 $as_echo "/* $configure_input */" \
9285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9286 } >"$ac_tmp/config.h" \
9287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9288 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9290 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9293 mv "$ac_tmp/config.h" "$ac_file" \
9294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9297 $as_echo "/* $configure_input */" \
9298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9299 || as_fn_error $? "could not create -" "$LINENO" 5
9303 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9304 $as_echo "$as_me: executing $ac_file commands" >&6;}
9309 case $ac_file$ac_mode in
9311 case $CONFIG_FILES in *config.make*)
9312 echo "$config_vars" >> config.make;;
9314 test -d bits || mkdir bits ;;
9322 ac_clean_files=$ac_clean_files_save
9324 test $ac_write_fail = 0 ||
9325 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9328 # configure is writing to config.log, and then calls config.status.
9329 # config.status does its own redirection, appending to config.log.
9330 # Unfortunately, on DOS this fails, as config.log is still kept open
9331 # by configure, so config.status won't be able to write to it; its
9332 # output is simply discarded. So we exec the FD to /dev/null,
9333 # effectively closing config.log, so it can be properly (re)opened and
9334 # appended to by config.status. When coming back to configure, we
9335 # need to make the FD available again.
9336 if test "$no_create" != yes; then
9338 ac_config_status_args=
9339 test "$silent" = yes &&
9340 ac_config_status_args="$ac_config_status_args --quiet"
9342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9345 # would make configure fail if this is the last instruction.
9346 $ac_cs_success || as_fn_exit 1
9350 # CONFIG_SUBDIRS section.
9352 if test "$no_recursion" != yes; then
9354 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9355 # so they do not pile up.
9356 ac_sub_configure_args=
9358 eval "set x $ac_configure_args"
9362 if test -n "$ac_prev"; then
9367 -cache-file | --cache-file | --cache-fil | --cache-fi \
9368 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9369 ac_prev=cache_file ;;
9370 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9371 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9374 --config-cache | -C)
9376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9384 --disable-option-checking)
9388 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9390 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9394 # Always prepend --prefix to ensure using the same prefix
9395 # in subdir configurations.
9396 ac_arg="--prefix=$prefix"
9398 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9400 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9403 if test "$silent" = yes; then
9404 ac_sub_configure_args="--silent $ac_sub_configure_args"
9407 # Always prepend --disable-option-checking to silence warnings, since
9408 # different subdirs can have different --enable and --with options.
9409 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9412 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9414 # Do not complain, so a configure script can configure whichever
9415 # parts of a large source tree are present.
9416 test -d "$srcdir/$ac_dir" || continue
9418 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9419 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9420 $as_echo "$ac_msg" >&6
9421 as_dir="$ac_dir"; as_fn_mkdir_p
9425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9427 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9428 # A ".." for each directory in $ac_dir_suffix.
9429 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9430 case $ac_top_builddir_sub in
9431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9435 ac_abs_top_builddir=$ac_pwd
9436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9437 # for backward compatibility:
9438 ac_top_builddir=$ac_top_build_prefix
9441 .) # We are building in place.
9443 ac_top_srcdir=$ac_top_builddir_sub
9444 ac_abs_top_srcdir=$ac_pwd ;;
9445 [\\/]* | ?:[\\/]* ) # Absolute name.
9446 ac_srcdir=$srcdir$ac_dir_suffix;
9447 ac_top_srcdir=$srcdir
9448 ac_abs_top_srcdir=$srcdir ;;
9450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9451 ac_top_srcdir=$ac_top_build_prefix$srcdir
9452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9459 # Check for guested configure; otherwise get Cygnus style configure.
9460 if test -f "$ac_srcdir/configure.gnu"; then
9461 ac_sub_configure=$ac_srcdir/configure.gnu
9462 elif test -f "$ac_srcdir/configure"; then
9463 ac_sub_configure=$ac_srcdir/configure
9464 elif test -f "$ac_srcdir/configure.in"; then
9465 # This should be Cygnus configure.
9466 ac_sub_configure=$ac_aux_dir/configure
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9473 # The recursion is here.
9474 if test -n "$ac_sub_configure"; then
9475 # Make the cache file name correct relative to the subdirectory.
9477 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9479 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9482 { $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
9483 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9484 # The eval makes quoting arguments work.
9485 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9486 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9487 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9493 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9495 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}