2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GNU C Library (see version.h).
5 # Report bugs to <http://sourceware.org/bugzilla/>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://sourceware.org/bugzilla/ about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" || exec 7<&0 </dev/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
560 # Identity of this package.
561 PACKAGE_NAME='GNU C Library'
562 PACKAGE_TARNAME='glibc'
563 PACKAGE_VERSION='(see version.h)'
564 PACKAGE_STRING='GNU C Library (see version.h)'
565 PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/'
566 PACKAGE_URL='http://www.gnu.org/software/glibc/'
568 ac_unique_file="include/features.h"
569 enable_option_checking=no
570 # 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
623 libc_cv_cc_novzeroupper
626 libc_cv_cpp_asm_debuginfo
627 libc_cv_forced_unwind
633 libc_cv_gcc_unwind_find_fde
641 libc_cv_cc_submachine
643 libc_cv_have_initfini
647 libc_cv_output_format
654 libc_cv_libgcc_s_suffix
656 libc_cv_cc_with_libunwind
666 libc_cv_gcc_static_libgcc
749 program_transform_name
762 enable_option_checking
779 enable_stackguard_randomization
791 ac_precious_vars='build_alias
806 # Initialize some variables set by options.
808 ac_init_version=false
809 ac_unrecognized_opts=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
820 program_transform_name=s,x,x,
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 # Accept the important Cygnus configure options, so we can diagnose typos.
873 case $ac_dashdash$ac_option in
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
895 cache_file=config.cache ;;
897 -datadir | --datadir | --datadi | --datad)
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
923 eval enable_$ac_useropt=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
949 eval enable_$ac_useropt=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1153 eval with_$ac_useropt=\$ac_optarg ;;
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1169 eval with_$ac_useropt=no ;;
1172 # Obsolete; use --with-x.
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1240 # Be sure to have absolute directory names.
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1253 target=$target_alias
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1260 If a cross compiler is detected then cross compile mode will be used" >&2
1261 elif test "x$build_alias" != "x$host_alias"; then
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269 test "$silent" = yes && exec 6>/dev/null
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1340 # Report the --help message.
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1346 \`configure' configures GNU C Library (see version.h) to adapt to many kinds of systems.
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1353 Defaults for the options are specified in brackets.
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1377 For better control, use the options below.
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/glibc]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of GNU C Library (see version.h):";;
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --disable-sanity-checks really do not use threads (should not be used except
1420 in special situations) [default=yes]
1421 --enable-check-abi do "make check-abi" in "make check" (no/warn/yes)
1423 --enable-shared build shared library [default=yes if GNU ld & ELF]
1424 --enable-profile build profiled library [default=no]
1425 --enable-bounded build with runtime bounds checking [default=no]
1426 --disable-versioning do not include versioning information in the library
1427 objects [default=yes if supported]
1428 --enable-oldest-abi=ABI configure the oldest ABI supported [e.g. 2.2]
1429 [default=glibc default]
1430 --enable-stackguard-randomization
1431 initialize __stack_chk_guard canary with a random
1432 number at program start
1433 --enable-add-ons[=DIRS...]
1434 configure and build add-ons in DIR1,DIR2,... search
1435 for add-ons if no parameter given
1436 --disable-hidden-plt do not hide internal function calls to avoid PLT
1437 --enable-bind-now disable lazy relocations in DSOs
1438 --enable-static-nss build static NSS modules [default=no]
1439 --disable-force-install don't force installation of files from this package,
1440 even if they are older than the installed files
1441 --enable-kernel=VERSION compile for compatibility with kernel not older than
1443 --enable-all-warnings enable all useful warnings gcc can issue
1444 --enable-multi-arch enable single DSO with optimizations for multiple
1446 --enable-nss-crypt enable libcrypt to use nss
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-gd=DIR find libgd include dir and library with prefix DIR
1452 --with-gd-include=DIR find libgd include files in DIR
1453 --with-gd-lib=DIR find libgd library files in DIR
1454 --with-fp if using floating-point hardware [default=yes]
1455 --with-binutils=PATH specify location of binutils (as and ld)
1456 --with-elf if using the ELF object format
1457 --with-selinux if building with SELinux support
1458 --with-headers=PATH location of system headers to use (for example
1459 /usr/src/linux/include) [default=compiler default]
1460 --with-default-link do not use explicit linker scripts
1461 --with-cpu=CPU select code for CPU variant
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1472 CXX C++ compiler command
1473 CXXFLAGS C++ compiler flags
1475 Use these variables to override the choices made by `configure' or to help
1476 it to find libraries and programs with nonstandard names/locations.
1478 Report bugs to <http://sourceware.org/bugzilla/>.
1479 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
1480 General help using GNU software: <http://www.gnu.org/gethelp/>.
1485 if test "$ac_init_help" = "recursive"; then
1486 # If there are subdirs, report their specific --help.
1487 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488 test -d "$ac_dir" ||
1489 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1494 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497 # A ".." for each directory in $ac_dir_suffix.
1498 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499 case $ac_top_builddir_sub in
1500 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1504 ac_abs_top_builddir=$ac_pwd
1505 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506 # for backward compatibility:
1507 ac_top_builddir=$ac_top_build_prefix
1510 .) # We are building in place.
1512 ac_top_srcdir=$ac_top_builddir_sub
1513 ac_abs_top_srcdir=$ac_pwd ;;
1514 [\\/]* | ?:[\\/]* ) # Absolute name.
1515 ac_srcdir=$srcdir$ac_dir_suffix;
1516 ac_top_srcdir=$srcdir
1517 ac_abs_top_srcdir=$srcdir ;;
1519 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520 ac_top_srcdir=$ac_top_build_prefix$srcdir
1521 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525 cd "$ac_dir" || { ac_status=$?; continue; }
1526 # Check for guested configure.
1527 if test -f "$ac_srcdir/configure.gnu"; then
1529 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530 elif test -f "$ac_srcdir/configure"; then
1532 $SHELL "$ac_srcdir/configure" --help=recursive
1534 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 cd "$ac_pwd" || { ac_status=$?; break; }
1540 test -n "$ac_init_help" && exit $ac_status
1541 if $ac_init_version; then
1543 GNU C Library configure (see version.h)
1544 generated by GNU Autoconf 2.68
1546 Copyright (C) 2010 Free Software Foundation, Inc.
1547 This configure script is free software; the Free Software Foundation
1548 gives unlimited permission to copy, distribute and modify it.
1553 ## ------------------------ ##
1554 ## Autoconf initialization. ##
1555 ## ------------------------ ##
1557 # ac_fn_c_try_compile LINENO
1558 # --------------------------
1559 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1560 ac_fn_c_try_compile ()
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 rm -f conftest.$ac_objext
1564 if { { ac_try="$ac_compile"
1566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567 *) ac_try_echo=$ac_try;;
1569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570 $as_echo "$ac_try_echo"; } >&5
1571 (eval "$ac_compile") 2>conftest.err
1573 if test -s conftest.err; then
1574 grep -v '^ *+' conftest.err >conftest.er1
1575 cat conftest.er1 >&5
1576 mv -f conftest.er1 conftest.err
1578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579 test $ac_status = 0; } && {
1580 test -z "$ac_c_werror_flag" ||
1581 test ! -s conftest.err
1582 } && test -s conftest.$ac_objext; then :
1585 $as_echo "$as_me: failed program was:" >&5
1586 sed 's/^/| /' conftest.$ac_ext >&5
1590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591 as_fn_set_status $ac_retval
1593 } # ac_fn_c_try_compile
1595 # ac_fn_c_try_cpp LINENO
1596 # ----------------------
1597 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 if { { ac_try="$ac_cpp conftest.$ac_ext"
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } > conftest.i && {
1617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1618 test ! -s conftest.err
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1632 # ac_fn_cxx_try_compile LINENO
1633 # ----------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_cxx_try_compile ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_cxx_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1668 } # ac_fn_cxx_try_compile
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 $as_test_x conftest$ac_exeext
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1714 } # ac_fn_c_try_link
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_link"
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>&5
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734 { { case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_try") 2>&5
1742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743 test $ac_status = 0; }; }; then :
1746 $as_echo "$as_me: program exited with status $ac_status" >&5
1747 $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1750 ac_retval=$ac_status
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1758 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1759 # --------------------------------------------
1760 # Tries to find the compile-time value of EXPR in a program that includes
1761 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1763 ac_fn_c_compute_int ()
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if test "$cross_compiling" = yes; then
1767 # Depending upon the size, compute the lo and hi bounds.
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1774 static int test_array [1 - 2 * !(($2) >= 0)];
1781 if ac_fn_c_try_compile "$LINENO"; then :
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1790 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_hi=$ac_mid; break
1800 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1801 if test $ac_lo -le $ac_mid; then
1805 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1816 static int test_array [1 - 2 * !(($2) < 0)];
1823 if ac_fn_c_try_compile "$LINENO"; then :
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1832 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 ac_lo=$ac_mid; break
1842 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1843 if test $ac_mid -le $ac_hi; then
1847 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1857 # Binary search between lo and hi bounds.
1858 while test "x$ac_lo" != "x$ac_hi"; do
1859 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1866 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1873 if ac_fn_c_try_compile "$LINENO"; then :
1876 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1888 static long int longval () { return $2; }
1889 static unsigned long int ulongval () { return $2; }
1896 FILE *f = fopen ("conftest.val", "w");
1901 long int i = longval ();
1904 fprintf (f, "%ld", i);
1908 unsigned long int i = ulongval ();
1911 fprintf (f, "%lu", i);
1913 /* Do not output a trailing newline, as this causes \r\n confusion
1914 on some platforms. */
1915 return ferror (f) || fclose (f) != 0;
1921 if ac_fn_c_try_run "$LINENO"; then :
1922 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1927 conftest.$ac_objext conftest.beam conftest.$ac_ext
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 as_fn_set_status $ac_retval
1934 } # ac_fn_c_compute_int
1936 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1937 # -------------------------------------------------------
1938 # Tests whether HEADER exists and can be compiled using the include files in
1939 # INCLUDES, setting the cache variable VAR accordingly.
1940 ac_fn_c_check_header_compile ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944 $as_echo_n "checking for $2... " >&6; }
1945 if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h. */
1953 if ac_fn_c_try_compile "$LINENO"; then :
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 } # ac_fn_c_check_header_compile
1966 cat >config.log <<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1970 It was created by GNU C Library $as_me (see version.h), which was
1971 generated by GNU Autoconf 2.68. Invocation command line was
1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir=.
2007 $as_echo "PATH: $as_dir"
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2031 ac_must_keep_next=false
2037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2039 | -silent | --silent | --silen | --sile | --sil)
2042 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2047 as_fn_append ac_configure_args1 " '$ac_arg'"
2048 if test $ac_must_keep_next = true; then
2049 ac_must_keep_next=false # Got value, back to normal.
2052 *=* | --config-cache | -C | -disable-* | --disable-* \
2053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2055 | -with-* | --with-* | -without-* | --without-* | --x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 -* ) ac_must_keep_next=true ;;
2063 as_fn_append ac_configure_args " '$ac_arg'"
2068 { ac_configure_args0=; unset ac_configure_args0;}
2069 { ac_configure_args1=; unset ac_configure_args1;}
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log. We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2081 $as_echo "## ---------------- ##
2082 ## Cache variables. ##
2083 ## ---------------- ##"
2085 # The following way of writing the cache mishandles newlines in values,
2087 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088 eval ac_val=\$$ac_var
2092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 _ | IFS | as_nl) ;; #(
2097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098 *) { eval $ac_var=; unset $ac_var;} ;;
2103 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104 *${as_nl}ac_space=\ *)
2106 "s/'\''/'\''\\\\'\'''\''/g;
2107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 $as_echo "## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##"
2121 for ac_var in $ac_subst_vars
2123 eval ac_val=\$$ac_var
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 $as_echo "$ac_var='\''$ac_val'\''"
2131 if test -n "$ac_subst_files"; then
2132 $as_echo "## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##"
2136 for ac_var in $ac_subst_files
2138 eval ac_val=\$$ac_var
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2147 if test -s confdefs.h; then
2148 $as_echo "## ----------- ##
2155 test "$ac_signal" != 0 &&
2156 $as_echo "$as_me: caught signal $ac_signal"
2157 $as_echo "$as_me: exit $exit_status"
2159 rm -f core *.core core.conftest.* &&
2160 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 for ac_signal in 1 2 13 15; do
2164 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2169 rm -f -r conftest* confdefs.h
2171 $as_echo "/* confdefs.h */" > confdefs.h
2173 # Predefined preprocessor variables.
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_URL "$PACKAGE_URL"
2200 # Let the site file select an alternate cache file if it wants to.
2201 # Prefer an explicitly selected file to automatically selected ones.
2204 if test -n "$CONFIG_SITE"; then
2205 # We do not want a PATH search for config.site.
2206 case $CONFIG_SITE in #((
2207 -*) ac_site_file1=./$CONFIG_SITE;;
2208 */*) ac_site_file1=$CONFIG_SITE;;
2209 *) ac_site_file1=./$CONFIG_SITE;;
2211 elif test "x$prefix" != xNONE; then
2212 ac_site_file1=$prefix/share/config.site
2213 ac_site_file2=$prefix/etc/config.site
2215 ac_site_file1=$ac_default_prefix/share/config.site
2216 ac_site_file2=$ac_default_prefix/etc/config.site
2218 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2220 test "x$ac_site_file" = xNONE && continue
2221 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2226 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 as_fn_error $? "failed to load site script $ac_site_file
2229 See \`config.log' for more details" "$LINENO" 5; }
2233 if test -r "$cache_file"; then
2234 # Some versions of bash will fail to source /dev/null (special files
2235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2236 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238 $as_echo "$as_me: loading cache $cache_file" >&6;}
2240 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2241 *) . "./$cache_file";;
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 # Check that the precious variables saved in the cache have kept the same
2252 ac_cache_corrupted=false
2253 for ac_var in $ac_precious_vars; do
2254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2255 eval ac_new_set=\$ac_env_${ac_var}_set
2256 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2257 eval ac_new_val=\$ac_env_${ac_var}_value
2258 case $ac_old_set,$ac_new_set in
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262 ac_cache_corrupted=: ;;
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266 ac_cache_corrupted=: ;;
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w=`echo x $ac_old_val`
2272 ac_new_val_w=`echo x $ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276 ac_cache_corrupted=:
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\$ac_old_val
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2291 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 *) ac_arg=$ac_var=$ac_new_val ;;
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2296 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2300 if $ac_cache_corrupted; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2307 ## -------------------- ##
2308 ## Main body of script. ##
2309 ## -------------------- ##
2312 ac_cpp='$CPP $CPPFLAGS'
2313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2319 ac_config_headers="$ac_config_headers config.h"
2322 for ac_dir in scripts "$srcdir"/scripts; do
2323 if test -f "$ac_dir/install-sh"; then
2325 ac_install_sh="$ac_aux_dir/install-sh -c"
2327 elif test -f "$ac_dir/install.sh"; then
2329 ac_install_sh="$ac_aux_dir/install.sh -c"
2331 elif test -f "$ac_dir/shtool"; then
2333 ac_install_sh="$ac_aux_dir/shtool install -c"
2337 if test -z "$ac_aux_dir"; then
2338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts \"$srcdir\"/scripts" "$LINENO" 5
2341 # These three variables are undocumented and unsupported,
2342 # and are intended to be withdrawn in a future Autoconf release.
2343 # They can cause serious problems if a builder's source tree is in a directory
2344 # whose full name contains unusual characters.
2345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 # Make sure we can run config.sub.
2357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if ${ac_cv_build+:} false; then :
2363 $as_echo_n "(cached) " >&6
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2378 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2381 ac_save_IFS=$IFS; IFS='-'
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if ${ac_cv_host+:} false; then :
2397 $as_echo_n "(cached) " >&6
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2411 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2414 ac_save_IFS=$IFS; IFS='-'
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2429 ac_cpp='$CPP $CPPFLAGS'
2430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433 if test -n "$ac_tool_prefix"; then
2434 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2435 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2437 $as_echo_n "checking for $ac_word... " >&6; }
2438 if ${ac_cv_prog_CC+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 if test -n "$CC"; then
2442 ac_cv_prog_CC="$CC" # Let the user override the test.
2444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 test -z "$as_dir" && as_dir=.
2449 for ac_exec_ext in '' $ac_executable_extensions; do
2450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2451 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 if test -n "$CC"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2464 $as_echo "$CC" >&6; }
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2467 $as_echo "no" >&6; }
2472 if test -z "$ac_cv_prog_CC"; then
2474 # Extract the first word of "gcc", so it can be a program name with args.
2475 set dummy gcc; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2479 $as_echo_n "(cached) " >&6
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_ac_ct_CC="gcc"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2502 if test -n "$ac_ct_CC"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2504 $as_echo "$ac_ct_CC" >&6; }
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2510 if test "x$ac_ct_CC" = x; then
2513 case $cross_compiling:$ac_tool_warned in
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2517 ac_tool_warned=yes ;;
2525 if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528 set dummy ${ac_tool_prefix}cc; ac_word=$2
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530 $as_echo_n "checking for $ac_word... " >&6; }
2531 if ${ac_cv_prog_CC+:} false; then :
2532 $as_echo_n "(cached) " >&6
2534 if test -n "$CC"; then
2535 ac_cv_prog_CC="$CC" # Let the user override the test.
2537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 test -z "$as_dir" && as_dir=.
2542 for ac_exec_ext in '' $ac_executable_extensions; do
2543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2544 ac_cv_prog_CC="${ac_tool_prefix}cc"
2545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2555 if test -n "$CC"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2557 $as_echo "$CC" >&6; }
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2560 $as_echo "no" >&6; }
2566 if test -z "$CC"; then
2567 # Extract the first word of "cc", so it can be a program name with args.
2568 set dummy cc; ac_word=$2
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if ${ac_cv_prog_CC+:} false; then :
2572 $as_echo_n "(cached) " >&6
2574 if test -n "$CC"; then
2575 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2586 ac_prog_rejected=yes
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test $ac_prog_rejected = yes; then
2598 # We found a bogon in the path, so make sure we never use it.
2599 set dummy $ac_cv_prog_CC
2601 if test $# != 0; then
2602 # We chose a different compiler from the bogus one.
2603 # However, it has the same basename, so the bogon will be chosen
2604 # first if we set CC to just the basename; use the full file name.
2606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2612 if test -n "$CC"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2614 $as_echo "$CC" >&6; }
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2617 $as_echo "no" >&6; }
2622 if test -z "$CC"; then
2623 if test -n "$ac_tool_prefix"; then
2624 for ac_prog in cl.exe
2626 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2627 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_CC+:} false; then :
2631 $as_echo_n "(cached) " >&6
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2643 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 if test -n "$CC"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2656 $as_echo "$CC" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2663 test -n "$CC" && break
2666 if test -z "$CC"; then
2668 for ac_prog in cl.exe
2670 # Extract the first word of "$ac_prog", so it can be a program name with args.
2671 set dummy $ac_prog; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC="$ac_prog"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2700 $as_echo "$ac_ct_CC" >&6; }
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2707 test -n "$ac_ct_CC" && break
2710 if test "x$ac_ct_CC" = x; then
2713 case $cross_compiling:$ac_tool_warned in
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2717 ac_tool_warned=yes ;;
2726 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2728 as_fn_error $? "no acceptable C compiler found in \$PATH
2729 See \`config.log' for more details" "$LINENO" 5; }
2731 # Provide some information about the compiler.
2732 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2735 for ac_option in --version -v -V -qversion; do
2736 { { ac_try="$ac_compiler $ac_option >&5"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 $as_echo "$ac_try_echo"; } >&5
2743 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2745 if test -s conftest.err; then
2747 ... rest of stderr output deleted ...
2748 10q' conftest.err >conftest.er1
2749 cat conftest.er1 >&5
2751 rm -f conftest.er1 conftest.err
2752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2753 test $ac_status = 0; }
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2758 $as_echo_n "checking for suffix of object files... " >&6; }
2759 if ${ac_cv_objext+:} false; then :
2760 $as_echo_n "(cached) " >&6
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2773 rm -f conftest.o conftest.obj
2774 if { { ac_try="$ac_compile"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2780 $as_echo "$ac_try_echo"; } >&5
2781 (eval "$ac_compile") 2>&5
2783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2784 test $ac_status = 0; }; then :
2785 for ac_file in conftest.o conftest.obj conftest.*; do
2786 test -f "$ac_file" || continue;
2788 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2789 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2794 $as_echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799 as_fn_error $? "cannot compute suffix of object files: cannot compile
2800 See \`config.log' for more details" "$LINENO" 5; }
2802 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2805 $as_echo "$ac_cv_objext" >&6; }
2806 OBJEXT=$ac_cv_objext
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2809 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2810 if ${ac_cv_c_compiler_gnu+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2814 /* end confdefs.h. */
2827 if ac_fn_c_try_compile "$LINENO"; then :
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2837 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2838 if test $ac_compiler_gnu = yes; then
2843 ac_test_CFLAGS=${CFLAGS+set}
2844 ac_save_CFLAGS=$CFLAGS
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2846 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2847 if ${ac_cv_prog_cc_g+:} false; then :
2848 $as_echo_n "(cached) " >&6
2850 ac_save_c_werror_flag=$ac_c_werror_flag
2851 ac_c_werror_flag=yes
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2865 if ac_fn_c_try_compile "$LINENO"; then :
2869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2870 /* end confdefs.h. */
2880 if ac_fn_c_try_compile "$LINENO"; then :
2883 ac_c_werror_flag=$ac_save_c_werror_flag
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2896 if ac_fn_c_try_compile "$LINENO"; then :
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 ac_c_werror_flag=$ac_save_c_werror_flag
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2907 $as_echo "$ac_cv_prog_cc_g" >&6; }
2908 if test "$ac_test_CFLAGS" = set; then
2909 CFLAGS=$ac_save_CFLAGS
2910 elif test $ac_cv_prog_cc_g = yes; then
2911 if test "$GCC" = yes; then
2917 if test "$GCC" = yes; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2924 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2925 if ${ac_cv_prog_cc_c89+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 ac_cv_prog_cc_c89=no
2930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2931 /* end confdefs.h. */
2934 #include <sys/types.h>
2935 #include <sys/stat.h>
2936 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2937 struct buf { int x; };
2938 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2939 static char *e (p, i)
2945 static char *f (char * (*g) (char **, int), char **p, ...)
2950 s = g (p, va_arg (v,int));
2955 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2956 function prototypes and stuff, but not '\xHH' hex character constants.
2957 These don't provoke an error unfortunately, instead are silently treated
2958 as 'x'. The following induces an error, until -std is added to get
2959 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2960 array size at least. It's necessary to write '\x00'==0 to get something
2961 that's true only with -std. */
2962 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2964 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2965 inside strings and character constants. */
2967 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2969 int test (int i, double x);
2970 struct s1 {int (*f) (int a);};
2971 struct s2 {int (*f) (double a);};
2972 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2978 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2983 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2984 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2986 CC="$ac_save_CC $ac_arg"
2987 if ac_fn_c_try_compile "$LINENO"; then :
2988 ac_cv_prog_cc_c89=$ac_arg
2990 rm -f core conftest.err conftest.$ac_objext
2991 test "x$ac_cv_prog_cc_c89" != "xno" && break
2993 rm -f conftest.$ac_ext
2998 case "x$ac_cv_prog_cc_c89" in
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3001 $as_echo "none needed" >&6; } ;;
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3004 $as_echo "unsupported" >&6; } ;;
3006 CC="$CC $ac_cv_prog_cc_c89"
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3008 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3010 if test "x$ac_cv_prog_cc_c89" != xno; then :
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 if test $host != $build; then
3021 for ac_prog in gcc cc
3023 # Extract the first word of "$ac_prog", so it can be a program name with args.
3024 set dummy $ac_prog; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_BUILD_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$BUILD_CC"; then
3031 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_BUILD_CC="$ac_prog"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 BUILD_CC=$ac_cv_prog_BUILD_CC
3051 if test -n "$BUILD_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
3053 $as_echo "$BUILD_CC" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$BUILD_CC" && break
3066 ac_cpp='$CPP $CPPFLAGS'
3067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3072 # On Suns, sometimes $CPP names a directory.
3073 if test -n "$CPP" && test -d "$CPP"; then
3076 if test -z "$CPP"; then
3077 if ${ac_cv_prog_CPP+:} false; then :
3078 $as_echo_n "(cached) " >&6
3080 # Double quotes because CPP needs to be expanded
3081 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3084 for ac_c_preproc_warn_flag in '' yes
3086 # Use a header file that comes with gcc, so configuring glibc
3087 # with a fresh cross-compiler works.
3088 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3089 # <limits.h> exists even on freestanding compilers.
3090 # On the NeXT, cc -E runs the code through the compiler's parser,
3091 # not just through cpp. "Syntax error" is here to catch this case.
3092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3093 /* end confdefs.h. */
3095 # include <limits.h>
3097 # include <assert.h>
3101 if ac_fn_c_try_cpp "$LINENO"; then :
3104 # Broken: fails on valid input.
3107 rm -f conftest.err conftest.i conftest.$ac_ext
3109 # OK, works on sane cases. Now check whether nonexistent headers
3110 # can be detected and how.
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3113 #include <ac_nonexistent.h>
3115 if ac_fn_c_try_cpp "$LINENO"; then :
3116 # Broken: success on invalid input.
3119 # Passes both tests.
3123 rm -f conftest.err conftest.i conftest.$ac_ext
3126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127 rm -f conftest.i conftest.err conftest.$ac_ext
3128 if $ac_preproc_ok; then :
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3141 $as_echo "$CPP" >&6; }
3143 for ac_c_preproc_warn_flag in '' yes
3145 # Use a header file that comes with gcc, so configuring glibc
3146 # with a fresh cross-compiler works.
3147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 # <limits.h> exists even on freestanding compilers.
3149 # On the NeXT, cc -E runs the code through the compiler's parser,
3150 # not just through cpp. "Syntax error" is here to catch this case.
3151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152 /* end confdefs.h. */
3154 # include <limits.h>
3156 # include <assert.h>
3160 if ac_fn_c_try_cpp "$LINENO"; then :
3163 # Broken: fails on valid input.
3166 rm -f conftest.err conftest.i conftest.$ac_ext
3168 # OK, works on sane cases. Now check whether nonexistent headers
3169 # can be detected and how.
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172 #include <ac_nonexistent.h>
3174 if ac_fn_c_try_cpp "$LINENO"; then :
3175 # Broken: success on invalid input.
3178 # Passes both tests.
3182 rm -f conftest.err conftest.i conftest.$ac_ext
3185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3186 rm -f conftest.i conftest.err conftest.$ac_ext
3187 if $ac_preproc_ok; then :
3190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3192 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3193 See \`config.log' for more details" "$LINENO" 5; }
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 # We need the C++ compiler only for testing.
3204 ac_cpp='$CXXCPP $CPPFLAGS'
3205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3208 if test -z "$CXX"; then
3209 if test -n "$CCC"; then
3212 if test -n "$ac_tool_prefix"; then
3213 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3218 $as_echo_n "checking for $ac_word... " >&6; }
3219 if ${ac_cv_prog_CXX+:} false; then :
3220 $as_echo_n "(cached) " >&6
3222 if test -n "$CXX"; then
3223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 test -z "$as_dir" && as_dir=.
3230 for ac_exec_ext in '' $ac_executable_extensions; do
3231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 if test -n "$CXX"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3245 $as_echo "$CXX" >&6; }
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3252 test -n "$CXX" && break
3255 if test -z "$CXX"; then
3257 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3259 # Extract the first word of "$ac_prog", so it can be a program name with args.
3260 set dummy $ac_prog; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3264 $as_echo_n "(cached) " >&6
3266 if test -n "$ac_ct_CXX"; then
3267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276 ac_cv_prog_ac_ct_CXX="$ac_prog"
3277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3287 if test -n "$ac_ct_CXX"; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3289 $as_echo "$ac_ct_CXX" >&6; }
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3296 test -n "$ac_ct_CXX" && break
3299 if test "x$ac_ct_CXX" = x; then
3302 case $cross_compiling:$ac_tool_warned in
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3306 ac_tool_warned=yes ;;
3314 # Provide some information about the compiler.
3315 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3318 for ac_option in --version -v -V -qversion; do
3319 { { ac_try="$ac_compiler $ac_option >&5"
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3328 if test -s conftest.err; then
3330 ... rest of stderr output deleted ...
3331 10q' conftest.err >conftest.er1
3332 cat conftest.er1 >&5
3334 rm -f conftest.er1 conftest.err
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3340 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3341 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3342 $as_echo_n "(cached) " >&6
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h. */
3358 if ac_fn_cxx_try_compile "$LINENO"; then :
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3368 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3369 if test $ac_compiler_gnu = yes; then
3374 ac_test_CXXFLAGS=${CXXFLAGS+set}
3375 ac_save_CXXFLAGS=$CXXFLAGS
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3377 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3378 if ${ac_cv_prog_cxx_g+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3382 ac_cxx_werror_flag=yes
3385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3386 /* end confdefs.h. */
3396 if ac_fn_cxx_try_compile "$LINENO"; then :
3397 ac_cv_prog_cxx_g=yes
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3411 if ac_fn_cxx_try_compile "$LINENO"; then :
3414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 if ac_fn_cxx_try_compile "$LINENO"; then :
3428 ac_cv_prog_cxx_g=yes
3430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3438 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3439 if test "$ac_test_CXXFLAGS" = set; then
3440 CXXFLAGS=$ac_save_CXXFLAGS
3441 elif test $ac_cv_prog_cxx_g = yes; then
3442 if test "$GXX" = yes; then
3448 if test "$GXX" = yes; then
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 if test "`cd $srcdir; /bin/pwd`" = "`/bin/pwd`"; then
3462 as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
3465 # This will get text that should go into config.make.
3468 # Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
3470 # Check whether --with-gd was given.
3471 if test "${with_gd+set}" = set; then :
3472 withval=$with_gd; case "$with_gd" in
3474 *) libgd_include="-I$withval/include"
3475 libgd_ldflags="-L$withval/lib" ;;
3481 # Check whether --with-gd-include was given.
3482 if test "${with_gd_include+set}" = set; then :
3483 withval=$with_gd_include; case "$with_gd_include" in
3485 *) libgd_include="-I$withval" ;;
3491 # Check whether --with-gd-lib was given.
3492 if test "${with_gd_lib+set}" = set; then :
3493 withval=$with_gd_lib; case "$with_gd_lib" in
3495 *) libgd_ldflags="-L$withval" ;;
3501 if test -n "$libgd_include"; then
3502 config_vars="$config_vars
3503 CFLAGS-memusagestat.c = $libgd_include"
3505 if test -n "$libgd_ldflags"; then
3506 config_vars="$config_vars
3507 libgd-LDFLAGS = $libgd_ldflags"
3511 # Check whether --with-fp was given.
3512 if test "${with_fp+set}" = set; then :
3513 withval=$with_fp; with_fp=$withval
3520 # Check whether --with-binutils was given.
3521 if test "${with_binutils+set}" = set; then :
3522 withval=$with_binutils; path_binutils=$withval
3528 # Check whether --with-elf was given.
3529 if test "${with_elf+set}" = set; then :
3530 withval=$with_elf; elf=$withval
3536 # Check whether --with-selinux was given.
3537 if test "${with_selinux+set}" = set; then :
3538 withval=$with_selinux; with_selinux=$withval
3545 # Check whether --with-headers was given.
3546 if test "${with_headers+set}" = set; then :
3547 withval=$with_headers; sysheaders=$withval
3555 # Check whether --with-default-link was given.
3556 if test "${with_default_link+set}" = set; then :
3557 withval=$with_default_link; use_default_link=$withval
3559 use_default_link=default
3563 # Check whether --enable-sanity-checks was given.
3564 if test "${enable_sanity_checks+set}" = set; then :
3565 enableval=$enable_sanity_checks; enable_sanity=$enableval
3572 # Check whether --enable-check-abi was given.
3573 if test "${enable_check_abi+set}" = set; then :
3574 enableval=$enable_check_abi; enable_check_abi=$enableval
3581 # Check whether --enable-shared was given.
3582 if test "${enable_shared+set}" = set; then :
3583 enableval=$enable_shared; shared=$enableval
3588 # Check whether --enable-profile was given.
3589 if test "${enable_profile+set}" = set; then :
3590 enableval=$enable_profile; profile=$enableval
3595 # Check whether --enable-bounded was given.
3596 if test "${enable_bounded+set}" = set; then :
3597 enableval=$enable_bounded; bounded=$enableval
3602 # Check whether --enable-versioning was given.
3603 if test "${enable_versioning+set}" = set; then :
3604 enableval=$enable_versioning; enable_versioning=$enableval
3606 enable_versioning=yes
3610 # Check whether --enable-oldest-abi was given.
3611 if test "${enable_oldest_abi+set}" = set; then :
3612 enableval=$enable_oldest_abi; oldest_abi=$enableval
3617 if test "$oldest_abi" = yes || test "$oldest_abi" = no; then
3620 cat >>confdefs.h <<_ACEOF
3621 #define GLIBC_OLDEST_ABI "$oldest_abi"
3627 # Check whether --enable-stackguard-randomization was given.
3628 if test "${enable_stackguard_randomization+set}" = set; then :
3629 enableval=$enable_stackguard_randomization; enable_stackguard_randomize=$enableval
3631 enable_stackguard_randomize=no
3634 if test "$enable_stackguard_randomize" = yes; then
3635 $as_echo "#define ENABLE_STACKGUARD_RANDOMIZE 1" >>confdefs.h
3639 # Check whether --enable-add-ons was given.
3640 if test "${enable_add_ons+set}" = set; then :
3641 enableval=$enable_add_ons;
3647 # Check whether --enable-hidden-plt was given.
3648 if test "${enable_hidden_plt+set}" = set; then :
3649 enableval=$enable_hidden_plt; hidden=$enableval
3654 if test "x$hidden" = xno; then
3655 $as_echo "#define NO_HIDDEN 1" >>confdefs.h
3659 # Check whether --enable-bind-now was given.
3660 if test "${enable_bind_now+set}" = set; then :
3661 enableval=$enable_bind_now; bindnow=$enableval
3668 # Check whether --enable-static-nss was given.
3669 if test "${enable_static_nss+set}" = set; then :
3670 enableval=$enable_static_nss; static_nss=$enableval
3675 if test x"$static_nss" = xyes || test x"$shared" = xno; then
3677 $as_echo "#define DO_STATIC_NSS 1" >>confdefs.h
3681 # Check whether --enable-force-install was given.
3682 if test "${enable_force_install+set}" = set; then :
3683 enableval=$enable_force_install; force_install=$enableval
3690 # Check whether --enable-kernel was given.
3691 if test "${enable_kernel+set}" = set; then :
3692 enableval=$enable_kernel; minimum_kernel=$enableval
3695 if test "$minimum_kernel" = yes || test "$minimum_kernel" = no; then
3696 # Better nothing than this.
3699 if test "$minimum_kernel" = current; then
3700 minimum_kernel=`uname -r 2>/dev/null` || minimum_kernel=
3704 # Check whether --enable-all-warnings was given.
3705 if test "${enable_all_warnings+set}" = set; then :
3706 enableval=$enable_all_warnings; all_warnings=$enableval
3711 # Check whether --enable-multi-arch was given.
3712 if test "${enable_multi_arch+set}" = set; then :
3713 enableval=$enable_multi_arch; multi_arch=$enableval
3719 # Check whether --enable-nss-crypt was given.
3720 if test "${enable_nss_crypt+set}" = set; then :
3721 enableval=$enable_nss_crypt; nss_crypt=$enableval
3726 if test x$nss_crypt = xyes; then
3727 nss_includes=-I$(nss-config --includedir 2>/dev/null)
3728 if test $? -ne 0; then
3729 as_fn_error $? "cannot find include directory with nss-config" "$LINENO" 5
3731 old_CFLAGS="$CFLAGS"
3732 CFLAGS="$CFLAGS $nss_includes"
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3738 #include <nsslowhash.h>
3739 void f (void) { NSSLOW_Init (); }
3748 if ac_fn_c_try_compile "$LINENO"; then :
3749 libc_cv_nss_crypt=yes
3752 cannot find NSS headers with lowlevel hash function interfaces" "$LINENO" 5
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756 LIBS="$LIBS -lfreebl3"
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3761 #include <nsslowhash.h>
3770 if ac_fn_c_try_link "$LINENO"; then :
3771 libc_cv_nss_crypt=yes
3774 cannot link program using lowlevel NSS hash functions" "$LINENO" 5
3776 rm -f core conftest.err conftest.$ac_objext \
3777 conftest$ac_exeext conftest.$ac_ext
3778 CFLAGS="$old_CFLAGS"
3781 libc_cv_nss_crypt=no
3785 # The way shlib-versions is used to generate soversions.mk uses a
3786 # fairly simplistic model for name recognition that can't distinguish
3787 # i486-pc-linux-gnu fully from i486-pc-gnu. So we mutate a $host_os
3788 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
3789 # tell. This doesn't get used much beyond that, so it's fairly safe.
3794 host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
3798 # We keep the original values in `$config_*' and never modify them, so we
3799 # can write them unchanged into config.make. Everything else uses
3800 # $machine, $vendor, and $os, and changes them whenever convenient.
3801 config_machine=$host_cpu config_vendor=$host_vendor config_os=$host_os
3803 # Don't allow vendor == "unknown"
3804 test "$config_vendor" = unknown && config_vendor=
3805 config_os="`echo $config_os | sed 's/^unknown-//'`"
3807 # Some configurations imply other options.
3810 # The configure fragment of an add-on port can modify these to supplement
3811 # or override the table in the case statement below. No fragment should
3812 # ever change the config_* variables, however.
3813 machine=$config_machine
3814 vendor=$config_vendor
3818 # config.guess on some IBM machines says `rs6000' instead of `powerpc'.
3820 if test "$machine" = rs6000; then
3824 # Braindead PowerPC box with absolutely no FPU.
3825 case "$machine-$host_os" in
3833 # Check whether --with-cpu was given.
3834 if test "${with_cpu+set}" = set; then :
3835 withval=$with_cpu; case "$withval" in
3836 yes|'') as_fn_error $? "--with-cpu requires an argument" "$LINENO" 5 ;;
3838 *) submachine="$withval" ;;
3844 # An add-on can set this when it wants to disable the sanity check below.
3850 case "$enable_add_ons" in
3853 add_ons=`cd $srcdir && ls -d 2> /dev/null */configure */sysdeps |
3854 sed 's@/[^/]*$@@' | sort | uniq`
3855 add_ons_automatic=yes
3857 *) add_ons=`echo "$enable_add_ons" | sed 's/,/ /g'`
3858 add_ons_automatic=no ;;
3864 if test x"$add_ons" != x; then
3865 for f in $add_ons; do
3866 # Some sanity checks
3870 *** It seems that you're using an old \`crypt' add-on. crypt is now
3871 *** part of glibc and using the old add-on will not work with this
3872 *** release. Start again with fresh sources and without the old
3873 *** \`crypt' add-on." "$LINENO" 5
3877 *** It seems that you're using an old \`localedata' add-on. localedata
3878 *** is now part of glibc and using the old add-on will not work with
3879 *** this release. Start again with fresh sources and without the old
3880 *** \`localedata' add-on." "$LINENO" 5
3885 # Now source each add-on's configure fragment.
3886 # The fragments can use $srcdir/$libc_add_on to find themselves,
3887 # and test $add_ons_automatic to see if they were explicitly requested.
3888 # A fragment can clear (or even change) $libc_add_on to affect
3889 # whether it goes into the list to be actually used in the build.
3891 for libc_add_on in $add_ons; do
3892 # Test whether such a directory really exists.
3893 # It can be absolute, or relative to $srcdir, or relative to the build dir.
3894 case "$libc_add_on" in
3896 libc_add_on_srcdir=$libc_add_on
3899 test -d "$srcdir/$libc_add_on" || {
3900 if test -d "$libc_add_on"; then
3901 libc_add_on="`pwd`/$libc_add_on"
3903 as_fn_error $? "add-on directory \"$libc_add_on\" does not exist" "$LINENO" 5
3906 libc_add_on_srcdir=$srcdir/$libc_add_on
3910 libc_add_on_frag=$libc_add_on_srcdir/configure
3911 libc_add_on_canonical=
3912 libc_add_on_config_subdirs=
3913 if test -r "$libc_add_on_frag"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: running configure fragment for add-on $libc_add_on" >&5
3915 $as_echo "$as_me: running configure fragment for add-on $libc_add_on" >&6;}
3916 libc_add_on_canonical=unknown
3917 libc_add_on_subdirs=
3918 . "$libc_add_on_frag"
3919 test -z "$libc_add_on" || {
3920 configured_add_ons="$configured_add_ons $libc_add_on"
3921 if test "x$libc_add_on_canonical" = xunknown; then
3922 as_fn_error $? "fragment must set \$libc_add_on_canonical" "$LINENO" 5
3924 for d in $libc_add_on_subdirs; do
3925 case "$libc_add_on" in
3926 /*) subdir_srcdir="$libc_add_on" ;;
3927 *) subdir_srcdir="\$(..)$libc_add_on" ;;
3931 d="${libc_add_on_canonical:-$libc_add_on}"
3937 subdir_srcdir="$subdir_srcdir/$d"
3940 d=`echo "$d" | sed 's@/*$@@;s@^.*/@@'`
3941 add_on_subdirs="$add_on_subdirs $d"
3942 test "$subdir_srcdir" = "\$(..)$d" || config_vars="$config_vars
3943 $d-srcdir = $subdir_srcdir"
3945 for d in $libc_add_on_config_subdirs; do
3947 /*) as_fn_error $? "fragment uses absolute path in \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3949 if test ! -d "$libc_add_on_srcdir/$d"; then
3950 as_fn_error $? "fragment wants to configure missing directory $d" "$LINENO" 5
3952 case "$libc_add_on" in
3953 /*) as_fn_error $? "relative path required for add-on using \$libc_add_on_config_subdirs" "$LINENO" 5 ;;
3955 subdirs="$subdirs $libc_add_on/$d"
3959 if test -n "$libc_add_on"; then
3960 if frags=`ls -d $libc_add_on_srcdir/sysdeps/*/preconfigure 2> /dev/null`
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking add-on $libc_add_on for preconfigure fragments" >&5
3963 $as_echo_n "checking add-on $libc_add_on for preconfigure fragments... " >&6; }
3964 for frag in $frags; do
3965 name=`echo "$frag" | sed 's@/[^/]*$@@;s@^.*/@@'`
3966 echo $ECHO_N "$name $ECHO_C" >&6
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
3972 use_add_ons="$use_add_ons $libc_add_on"
3973 add_ons_pfx="$add_ons_pfx $libc_add_on/"
3974 test -z "$libc_add_on_canonical" ||
3975 add_ons_sfx="$add_ons_sfx /$libc_add_on_canonical"
3978 # Use echo to strip excess whitespace.
3979 add_ons="`echo $use_add_ons`"
3986 ### I put this here to prevent those annoying emails from people who cannot
3987 ### read and try to compile glibc on unsupported platforms. --drepper
3989 ### By using the undocumented --enable-hacker-mode option for configure
3990 ### one can skip this test to make the configuration not fail for unsupported
3993 if test -z "$enable_hacker_mode" && test x"$libc_config_ok" != xyes; then
3994 case "$machine-$host_os" in
3995 *-linux* | *-gnu* | arm*-none*)
3998 echo "*** The GNU C library is currently not available for this platform."
3999 echo "*** So far nobody cared to port it and if there is no volunteer it"
4000 echo "*** might never happen. So, if you have interest to see glibc on"
4001 echo "*** this platform visit"
4002 echo "*** http://www.gnu.org/software/libc/porting.html"
4003 echo "*** and join the group of porters"
4009 # Expand the configuration machine name into a subdirectory by architecture
4010 # type and particular chip. If an add-on configure fragment already set
4011 # base_machine, we don't change it.
4012 test -n "$base_machine" || case "$machine" in
4013 i[34567]86) base_machine=i386 machine=i386/$machine ;;
4014 ia64) base_machine=ia64 machine=ia64 ;;
4015 powerpc) base_machine=powerpc machine=powerpc/powerpc32 ;;
4016 powerpc64) base_machine=powerpc machine=powerpc/powerpc64 ;;
4017 s390) base_machine=s390 machine=s390/s390-32 ;;
4018 s390x) base_machine=s390 machine=s390/s390-64 ;;
4019 sh3*) base_machine=sh machine=sh/sh3 ;;
4020 sh4*) base_machine=sh machine=sh/sh4 ;;
4022 base_machine=sparc machine=sparc/sparc32 ;;
4023 sparcv8 | supersparc | hypersparc)
4024 base_machine=sparc machine=sparc/sparc32/sparcv8 ;;
4025 sparcv8plus | sparcv8plusa | sparcv9)
4026 base_machine=sparc machine=sparc/sparc32/sparcv9 ;;
4027 sparcv8plusb | sparcv9b)
4028 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9b ;;
4030 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v ;;
4032 base_machine=sparc machine=sparc/sparc32/sparcv9/sparcv9v2 ;;
4034 base_machine=sparc machine=sparc/sparc64 ;;
4036 base_machine=sparc machine=sparc/sparc64/sparcv9b ;;
4038 base_machine=sparc machine=sparc/sparc64/sparcv9v ;;
4040 base_machine=sparc machine=sparc/sparc64/sparcv9v2 ;;
4041 *) base_machine=$machine ;;
4045 if test "$base_machine" = "i386"; then
4046 $as_echo "#define USE_REGPARMS 1" >>confdefs.h
4050 # For the multi-arch option we need support in the assembler.
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_indirect_function symbol type support" >&5
4052 $as_echo_n "checking for assembler gnu_indirect_function symbol type support... " >&6; }
4053 if ${libc_cv_asm_gnu_indirect_function+:} false; then :
4054 $as_echo_n "(cached) " >&6
4056 cat > conftest.s <<EOF
4057 .type foo,%gnu_indirect_function
4059 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
4061 libc_cv_asm_gnu_indirect_function=yes
4063 libc_cv_asm_gnu_indirect_function=no
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_gnu_indirect_function" >&5
4068 $as_echo "$libc_cv_asm_gnu_indirect_function" >&6; }
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .text pseudo-op must be used" >&5
4071 $as_echo_n "checking whether .text pseudo-op must be used... " >&6; }
4072 if ${libc_cv_dot_text+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 cat > conftest.s <<EOF
4079 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4084 test $ac_status = 0; }; }; then
4085 libc_cv_dot_text=.text
4090 if test -z "$libc_cv_dot_text"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092 $as_echo "no" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4095 $as_echo "yes" >&6; }
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global-symbol directive" >&5
4099 $as_echo_n "checking for assembler global-symbol directive... " >&6; }
4100 if ${libc_cv_asm_global_directive+:} false; then :
4101 $as_echo_n "(cached) " >&6
4103 libc_cv_asm_global_directive=UNKNOWN
4104 for ac_globl in .globl .global .EXPORT; do
4105 cat > conftest.s <<EOF
4110 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }; }; then
4116 libc_cv_asm_global_directive=${ac_globl}
4119 test $libc_cv_asm_global_directive != UNKNOWN && break
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_global_directive" >&5
4123 $as_echo "$libc_cv_asm_global_directive" >&6; }
4124 if test $libc_cv_asm_global_directive = UNKNOWN; then
4125 as_fn_error $? "cannot determine asm global directive" "$LINENO" 5
4127 cat >>confdefs.h <<_ACEOF
4128 #define ASM_GLOBAL_DIRECTIVE ${libc_cv_asm_global_directive}
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive prefix" >&5
4134 $as_echo_n "checking for assembler .type directive prefix... " >&6; }
4135 if ${libc_cv_asm_type_prefix+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 libc_cv_asm_type_prefix=no
4139 for ac_try_prefix in '@' '%' '#'; do
4140 cat > conftest.s <<EOF
4142 ${libc_cv_asm_global_directive} foo
4143 .type foo, ${ac_try_prefix}object
4148 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
4149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }; }; then
4154 libc_cv_asm_type_prefix=${ac_try_prefix}
4157 test "x$libc_cv_asm_type_prefix" != xno && break
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_type_prefix" >&5
4161 $as_echo "$libc_cv_asm_type_prefix" >&6; }
4162 if test "x$libc_cv_asm_type_prefix" != xno; then
4163 cat >>confdefs.h <<_ACEOF
4164 #define ASM_TYPE_DIRECTIVE_PREFIX ${libc_cv_asm_type_prefix}
4169 if test x"$libc_cv_asm_gnu_indirect_function" != xyes -a x"$libc_cv_asm_type_prefix" = xno; then
4170 if test x"$multi_arch" = xyes; then
4171 as_fn_error $? "--enable-multi-arch support requires assembler and linker support" "$LINENO" 5
4176 if test x"$multi_arch" != xno; then
4177 multi_arch_d=/multiarch
4180 # Compute the list of sysdep directories for this configuration.
4181 # This can take a while to compute.
4182 sysdep_dir=$srcdir/sysdeps
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysdep dirs" >&5
4184 $as_echo_n "checking sysdep dirs... " >&6; }
4185 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1.
4186 os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`"
4188 test "x$base_os" != x || case "$os" in
4190 base_os=mach/hurd ;;
4191 netbsd* | 386bsd* | freebsd* | bsdi*)
4192 base_os=unix/bsd/bsd4.4 ;;
4193 osf* | sunos* | ultrix* | newsos* | dynix* | *bsd*)
4195 sysv* | isc* | esix* | sco* | minix* | irix4* | linux*)
4196 base_os=unix/sysv ;;
4198 base_os=unix/sysv/irix6/$os ;;
4200 base_os=unix/sysv/sysv4 ;;
4202 base_os=standalone ;;
4205 # For sunos4.1.1, try sunos4.1.1, then sunos4.1, then sunos4, then sunos.
4208 while o=`echo $tail | sed 's/\.[^.]*$//'`; test $o != $tail; do
4212 o=`echo $tail | sed 's/[0-9]*$//'`
4213 if test $o != $tail; then
4216 # For linux-gnu, try linux-gnu, then linux.
4217 o=`echo $tail | sed 's/-.*$//'`
4218 if test $o != $tail; then
4222 # For unix/sysv/sysv4, try unix/sysv/sysv4, then unix/sysv, then unix.
4225 while b=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$b"; do
4231 # For sparc/sparc32, try sparc/sparc32 and then sparc.
4233 tail=$machine${submachine:+/$submachine}
4234 while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
4236 # Prepend the machine's FPU directory unless --without-fp.
4237 if test "$with_fp" = yes; then
4238 mach="$mach /$1/fpu"
4240 mach="$mach /$1/nofpu"
4247 # Find what sysdep directories exist.
4250 for b in $base ''; do
4251 for m0 in $mach ''; do
4252 for v in /$vendor ''; do
4253 test "$v" = / && continue
4254 for o in /$ostry ''; do
4255 test "$o" = / && continue
4256 for m in $multi_arch_d $mach ''; do
4257 for d in $add_ons_pfx ''; do
4258 for a in $add_ons_sfx ''; do
4259 if test -n "$m0$m0sub$b$v$o$m$msub"; then
4260 try_srcdir="${srcdir}/"
4264 try="${d}sysdeps$m0$m0sub$b$v$o$m$msub$a"
4265 test -n "$enable_debug_configure" &&
4266 echo "$0 DEBUG: try $try" >&2
4267 if test -d "$try_srcdir$try"; then
4268 sysnames="$sysnames $try"
4269 { test -n "$o" || test -n "$b"; } && os_used=t
4270 { test -n "$m" || test -n "$m0"; } && machine_used=t
4272 x*/$submachine) submachine_used=t ;;
4274 if test -n "$d"; then
4275 case "$sysnames_add_ons" in
4277 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4290 # If the assembler supports gnu_indirect_function symbol type and the
4291 # architecture supports multi-arch, we enable multi-arch by default.
4292 case $sysnames_add_ons$sysnames in
4296 test x"$multi_arch" = xdefault && multi_arch=no
4299 if test x"$multi_arch" != xno; then
4300 $as_echo "#define USE_MULTIARCH 1" >>confdefs.h
4305 if test -z "$os_used" && test "$os" != none; then
4306 as_fn_error $? "Operating system $os is not supported." "$LINENO" 5
4308 if test -z "$machine_used" && test "$machine" != none; then
4309 as_fn_error $? "The $machine is not supported." "$LINENO" 5
4311 if test -z "$submachine_used" && test -n "$submachine"; then
4312 as_fn_error $? "The $submachine subspecies of $host_cpu is not supported." "$LINENO" 5
4316 # We have now validated the configuration.
4319 # If using ELF, look for an `elf' subdirectory of each machine directory.
4320 # We prepend these rather than inserting them whereever the machine appears
4321 # because things specified by the machine's ELF ABI should override
4322 # OS-specific things, and should always be the same for any OS on the
4323 # machine (otherwise what's the point of an ABI?).
4324 if test "$elf" = yes; then
4326 for d in $add_ons_pfx ''; do
4328 if test -d $srcdir/${d}sysdeps$m/elf; then
4329 elf_dirs="$elf_dirs ${d}sysdeps$m/elf"
4333 sysnames="`echo $elf_dirs | sed -e 's,//,/,g'` $sysnames"
4337 # Expand the list of system names into a full list of directories
4338 # from each element's parent name and Implies file (if present).
4341 while test $# -gt 0; do
4345 case " $names " in *" $name "*)
4346 # Already in the list.
4350 # Report each name as we discover it, so there is no long pause in output.
4351 echo $ECHO_N "$name $ECHO_C" >&6
4353 name_base=`echo $name | sed -e 's@\(.*sysdeps\)/.*@\1@'`
4357 *) xsrcdir=$srcdir/ ;;
4359 test -n "$enable_debug_configure" &&
4360 echo "DEBUG: name/Implies $xsrcdir$name/Implies" >&2
4362 if test -f $xsrcdir$name/Implies; then
4363 # Collect more names from the `Implies' file (removing comments).
4364 implied_candidate="`sed 's/#.*$//' < $xsrcdir$name/Implies`"
4366 for x in $implied_candidate; do
4368 if test -d $xsrcdir$name_base/$x; then
4369 implied="$implied $name_base/$x";
4372 for d in $add_ons_pfx ''; do
4373 try="${d}sysdeps/$x"
4376 *) try_srcdir=$srcdir/ ;;
4378 test -n "$enable_debug_configure" &&
4379 echo "DEBUG: $name implied $x try($d) {$try_srcdir}$try" >&2
4380 if test $try != $xsrcdir$name_base/$x && test -d $try_srcdir$try;
4382 implied="$implied $try"
4384 case "$sysnames_add_ons" in
4386 *|'') sysnames_add_ons="$sysnames_add_ons $d" ;;
4390 if test $found = no; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $name/Implies specifies nonexistent $x" >&5
4392 $as_echo "$as_me: WARNING: $name/Implies specifies nonexistent $x" >&2;}
4399 # Add NAME to the list of names.
4400 names="$names $name"
4402 # Find the parent of NAME, using the empty string if it has none.
4403 parent="`echo $name | sed -n -e 's=/[^/]*$==' -e '/sysdeps$/q' -e p`"
4405 # Add the names implied by NAME, and NAME's parent (if it has one), to
4406 # the list of names to be processed (the argument list). We prepend the
4407 # implied names to the list and append the parent. We want implied
4408 # directories to come before further directories inferred from the
4409 # configuration components; this ensures that for sysv4, unix/common
4410 # (implied by unix/sysv/sysv4) comes before unix/sysv (in ostry (here $*)
4412 sysnames="`echo $implied $* $parent`"
4413 test -n "$sysnames" && set $sysnames
4416 # Add the default directories.
4417 default_sysnames=sysdeps/generic
4418 if test "$elf" = yes; then
4419 default_sysnames="sysdeps/generic/elf $default_sysnames"
4421 sysnames="$names $default_sysnames"
4423 # The other names were emitted during the scan.
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_sysnames" >&5
4425 $as_echo "$default_sysnames" >&6; }
4427 # Collect the list of add-ons that supply partial sysdeps trees.
4429 for add_on in $add_ons; do
4432 *) xsrcdir="$srcdir/" ;;
4435 test -d "$xsrcdir$add_on/sysdeps" || {
4436 case "$configured_add_ons " in
4439 as_fn_error $? "add-on $add_on has no configure fragment or sysdeps tree" "$LINENO" 5
4445 sysdeps_add_ons="$sysdeps_add_ons $add_on"
4446 case "$sysnames_add_ons" in
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no sysdeps directories" >&5
4450 $as_echo "$as_me: WARNING: add-on $add_on contributed no sysdeps directories" >&2;}
4455 for d in $sysnames; do
4457 $add_on/sysdeps/*) ;;
4460 (cd "$xsrcdir$d" && for f in *[!~]; do
4463 for ff in $f/*.h; do
4464 test -d "$ff" || { test -e "$ff" && exit 88; }
4468 test -d "$f" || { test -e "$f" && exit 88; }
4472 if test $? -eq 88; then
4477 if test $found = no; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add-on $add_on contributed no useful sysdeps directories" >&5
4479 $as_echo "$as_me: WARNING: add-on $add_on contributed no useful sysdeps directories" >&2;}
4487 # Find a good install program. We prefer a C program (faster),
4488 # so one script is as good as another. But avoid the broken or
4489 # incompatible versions:
4490 # SysV /etc/install, /usr/sbin/install
4491 # SunOS /usr/etc/install
4492 # IRIX /sbin/install
4494 # AmigaOS /C/install, which installs bootblocks on floppy discs
4495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4498 # OS/2's system install, which has a completely different semantic
4499 # ./install, which can be erroneously created by make from ./install.sh.
4500 # Reject install programs that cannot install multiple files.
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4502 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4503 if test -z "$INSTALL"; then
4504 if ${ac_cv_path_install+:} false; then :
4505 $as_echo_n "(cached) " >&6
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 # Account for people who put trailing slashes in PATH elements.
4513 case $as_dir/ in #((
4514 ./ | .// | /[cC]/* | \
4515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4519 # OSF1 and SCO ODT 3.0 have their own names for install.
4520 # Don't use installbsd from OSF since it installs stuff as root
4522 for ac_prog in ginstall scoinst install; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4525 if test $ac_prog = install &&
4526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4527 # AIX install. It has an incompatible calling convention.
4529 elif test $ac_prog = install &&
4530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4531 # program-specific install script used by HP pwplus--don't use.
4534 rm -rf conftest.one conftest.two conftest.dir
4535 echo one > conftest.one
4536 echo two > conftest.two
4538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4539 test -s conftest.one && test -s conftest.two &&
4540 test -s conftest.dir/conftest.one &&
4541 test -s conftest.dir/conftest.two
4543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4556 rm -rf conftest.one conftest.two conftest.dir
4559 if test "${ac_cv_path_install+set}" = set; then
4560 INSTALL=$ac_cv_path_install
4562 # As a last resort, use the slow shell script. Don't cache a
4563 # value for INSTALL within a source directory, because that will
4564 # break other packages using the cache if that directory is
4565 # removed, or if the value is a relative name.
4566 INSTALL=$ac_install_sh
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4570 $as_echo "$INSTALL" >&6; }
4572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4573 # It thinks the first close brace ends the variable substitution.
4574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4580 if test "$INSTALL" = "${srcdir}/scripts/install-sh -c"; then
4581 # The makefiles need to use a different form to find it in $srcdir.
4582 INSTALL='\$(..)./scripts/install-sh -c'
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4585 $as_echo_n "checking whether ln -s works... " >&6; }
4587 if test "$LN_S" = "ln -s"; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 $as_echo "yes" >&6; }
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4592 $as_echo "no, using $LN_S" >&6; }
4596 # Was a --with-binutils option given?
4597 if test -n "$path_binutils"; then
4598 # Make absolute; ensure a single trailing slash.
4599 path_binutils=`(cd $path_binutils; pwd) | sed 's%/*$%/%'`
4600 CC="$CC -B$path_binutils"
4602 AS=`$CC -print-prog-name=as`
4603 LD=`$CC -print-prog-name=ld`
4604 AR=`$CC -print-prog-name=ar`
4606 OBJDUMP=`$CC -print-prog-name=objdump`
4608 OBJCOPY=`$CC -print-prog-name=objcopy`
4611 # Determine whether we are using GNU binutils.
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AS is GNU as" >&5
4613 $as_echo_n "checking whether $AS is GNU as... " >&6; }
4614 if ${libc_cv_prog_as_gnu+:} false; then :
4615 $as_echo_n "(cached) " >&6
4617 # Most GNU programs take a -v and spit out some text including
4618 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4619 if $AS -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4620 libc_cv_prog_as_gnu=yes
4622 libc_cv_prog_as_gnu=no
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_as_gnu" >&5
4627 $as_echo "$libc_cv_prog_as_gnu" >&6; }
4629 gnu_as=$libc_cv_prog_as_gnu
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LD is GNU ld" >&5
4632 $as_echo_n "checking whether $LD is GNU ld... " >&6; }
4633 if ${libc_cv_prog_ld_gnu+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 # Most GNU programs take a -v and spit out some text including
4637 # the word 'GNU'. Some try to read stdin, so give them /dev/null.
4638 if $LD -o conftest -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
4639 libc_cv_prog_ld_gnu=yes
4641 libc_cv_prog_ld_gnu=no
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_prog_ld_gnu" >&5
4646 $as_echo "$libc_cv_prog_ld_gnu" >&6; }
4647 gnu_ld=$libc_cv_prog_ld_gnu
4650 # Accept binutils 2.13 or newer.
4653 # Extract the first word of "$ac_prog", so it can be a program name with args.
4654 set dummy $ac_prog; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if ${ac_cv_prog_AS+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 if test -n "$AS"; then
4661 ac_cv_prog_AS="$AS" # Let the user override the test.
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 test -z "$as_dir" && as_dir=.
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670 ac_cv_prog_AS="$ac_prog"
4671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 if test -n "$AS"; then
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4683 $as_echo "$AS" >&6; }
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4690 test -n "$AS" && break
4693 if test -z "$AS"; then
4696 # Found it, now check the version.
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
4698 $as_echo_n "checking version of $AS... " >&6; }
4699 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
4700 case $ac_prog_version in
4701 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4702 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4703 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4704 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4708 $as_echo "$ac_prog_version" >&6; }
4710 if test $ac_verc_fail = yes; then
4711 AS=: critic_missing="$critic_missing as"
4716 # Extract the first word of "$ac_prog", so it can be a program name with args.
4717 set dummy $ac_prog; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_LD+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 if test -n "$LD"; then
4724 ac_cv_prog_LD="$LD" # Let the user override the test.
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4733 ac_cv_prog_LD="$ac_prog"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 if test -n "$LD"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4746 $as_echo "$LD" >&6; }
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4753 test -n "$LD" && break
4756 if test -z "$LD"; then
4759 # Found it, now check the version.
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $LD" >&5
4761 $as_echo_n "checking version of $LD... " >&6; }
4762 ac_prog_version=`$LD --version 2>&1 | sed -n 's/^.*GNU ld.* \([0-9][0-9]*\.[0-9.]*\).*$/\1/p'`
4763 case $ac_prog_version in
4764 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4765 2.1[3-9]*|2.1[0-9][0-9]*|2.[2-9][0-9]*|[3-9].*|[1-9][0-9]*)
4766 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4767 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4771 $as_echo "$ac_prog_version" >&6; }
4773 if test $ac_verc_fail = yes; then
4774 LD=: critic_missing="$critic_missing ld"
4778 # We need the physical current working directory. We cannot use the
4779 # "pwd -P" shell builtin since that's not portable. Instead we try to
4780 # find a pwd binary. Note that assigning to the PWD environment
4781 # variable might have some interesting side effects, so we don't do
4783 # Extract the first word of "pwd", so it can be a program name with args.
4784 set dummy pwd; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if ${ac_cv_path_PWD_P+:} false; then :
4788 $as_echo_n "(cached) " >&6
4792 ac_cv_path_PWD_P="$PWD_P" # Let the user override the test with a path.
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_path_PWD_P="$as_dir/$ac_word$ac_exec_ext"
4803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 test -z "$ac_cv_path_PWD_P" && ac_cv_path_PWD_P="no"
4814 PWD_P=$ac_cv_path_PWD_P
4815 if test -n "$PWD_P"; then
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PWD_P" >&5
4817 $as_echo "$PWD_P" >&6; }
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 $as_echo "no" >&6; }
4824 if test "$PWD_P" = no; then
4825 as_fn_error $? "*** A pwd binary could not be found." "$LINENO" 5
4828 # These programs are version sensitive.
4830 for ac_prog in ${ac_tool_prefix}gcc ${ac_tool_prefix}cc
4832 # Extract the first word of "$ac_prog", so it can be a program name with args.
4833 set dummy $ac_prog; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if ${ac_cv_prog_CC+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 if test -n "$CC"; then
4840 ac_cv_prog_CC="$CC" # Let the user override the test.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_CC="$ac_prog"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 if test -n "$CC"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4862 $as_echo "$CC" >&6; }
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4869 test -n "$CC" && break
4872 if test -z "$CC"; then
4875 # Found it, now check the version.
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $CC" >&5
4877 $as_echo_n "checking version of $CC... " >&6; }
4878 ac_prog_version=`$CC -v 2>&1 | sed -n 's/^.*version \([egcygnustpi-]*[0-9.]*\).*$/\1/p'`
4879 case $ac_prog_version in
4880 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4882 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4883 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4887 $as_echo "$ac_prog_version" >&6; }
4889 if test $ac_verc_fail = yes; then
4890 critic_missing="$critic_missing gcc"
4893 for ac_prog in gnumake gmake make
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_MAKE+:} false; then :
4900 $as_echo_n "(cached) " >&6
4902 if test -n "$MAKE"; then
4903 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_MAKE="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 MAKE=$ac_cv_prog_MAKE
4923 if test -n "$MAKE"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4925 $as_echo "$MAKE" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 test -n "$MAKE" && break
4935 if test -z "$MAKE"; then
4938 # Found it, now check the version.
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKE" >&5
4940 $as_echo_n "checking version of $MAKE... " >&6; }
4941 ac_prog_version=`$MAKE --version 2>&1 | sed -n 's/^.*GNU Make[^0-9]*\([0-9][0-9.]*\).*$/\1/p'`
4942 case $ac_prog_version in
4943 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
4945 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
4946 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
4950 $as_echo "$ac_prog_version" >&6; }
4952 if test $ac_verc_fail = yes; then
4953 critic_missing="$critic_missing make"
4957 for ac_prog in gnumsgfmt gmsgfmt msgfmt
4959 # Extract the first word of "$ac_prog", so it can be a program name with args.
4960 set dummy $ac_prog; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if ${ac_cv_prog_MSGFMT+:} false; then :
4964 $as_echo_n "(cached) " >&6
4966 if test -n "$MSGFMT"; then
4967 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_MSGFMT="$ac_prog"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 MSGFMT=$ac_cv_prog_MSGFMT
4987 if test -n "$MSGFMT"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
4989 $as_echo "$MSGFMT" >&6; }
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4996 test -n "$MSGFMT" && break
4999 if test -z "$MSGFMT"; then
5002 # Found it, now check the version.
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MSGFMT" >&5
5004 $as_echo_n "checking version of $MSGFMT... " >&6; }
5005 ac_prog_version=`$MSGFMT --version 2>&1 | sed -n 's/^.*GNU gettext.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5006 case $ac_prog_version in
5007 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5008 0.10.3[6-9]* | 0.10.[4-9][0-9]* | 0.1[1-9]* | 0.[2-9][0-9]* | [1-9].*)
5009 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5010 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5014 $as_echo "$ac_prog_version" >&6; }
5016 if test $ac_verc_fail = yes; then
5017 MSGFMT=: aux_missing="$aux_missing msgfmt"
5020 for ac_prog in makeinfo
5022 # Extract the first word of "$ac_prog", so it can be a program name with args.
5023 set dummy $ac_prog; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_MAKEINFO+:} false; then :
5027 $as_echo_n "(cached) " >&6
5029 if test -n "$MAKEINFO"; then
5030 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5039 ac_cv_prog_MAKEINFO="$ac_prog"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 MAKEINFO=$ac_cv_prog_MAKEINFO
5050 if test -n "$MAKEINFO"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5052 $as_echo "$MAKEINFO" >&6; }
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5059 test -n "$MAKEINFO" && break
5062 if test -z "$MAKEINFO"; then
5065 # Found it, now check the version.
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $MAKEINFO" >&5
5067 $as_echo_n "checking version of $MAKEINFO... " >&6; }
5068 ac_prog_version=`$MAKEINFO --version 2>&1 | sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
5069 case $ac_prog_version in
5070 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5072 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5073 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5077 $as_echo "$ac_prog_version" >&6; }
5079 if test $ac_verc_fail = yes; then
5080 MAKEINFO=: aux_missing="$aux_missing makeinfo"
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if ${ac_cv_prog_SED+:} false; then :
5090 $as_echo_n "(cached) " >&6
5092 if test -n "$SED"; then
5093 ac_cv_prog_SED="$SED" # Let the user override the test.
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_SED="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 if test -n "$SED"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5115 $as_echo "$SED" >&6; }
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5122 test -n "$SED" && break
5125 if test -z "$SED"; then
5128 # Found it, now check the version.
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $SED" >&5
5130 $as_echo_n "checking version of $SED... " >&6; }
5131 ac_prog_version=`$SED --version 2>&1 | sed -n 's/^.*GNU sed version \([0-9]*\.[0-9.]*\).*$/\1/p'`
5132 case $ac_prog_version in
5133 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5134 3.0[2-9]*|3.[1-9]*|[4-9]*)
5135 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5136 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5140 $as_echo "$ac_prog_version" >&6; }
5142 if test $ac_verc_fail = yes; then
5143 SED=: aux_missing="$aux_missing sed"
5147 if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}readelf; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_READELF+:} false; then :
5153 $as_echo_n "(cached) " >&6
5155 if test -n "$READELF"; then
5156 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5165 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 READELF=$ac_cv_prog_READELF
5176 if test -n "$READELF"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5178 $as_echo "$READELF" >&6; }
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 if test -z "$ac_cv_prog_READELF"; then
5187 ac_ct_READELF=$READELF
5188 # Extract the first word of "readelf", so it can be a program name with args.
5189 set dummy readelf; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_ac_ct_READELF+:} false; then :
5193 $as_echo_n "(cached) " >&6
5195 if test -n "$ac_ct_READELF"; then
5196 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_prog_ac_ct_READELF="readelf"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5216 if test -n "$ac_ct_READELF"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5218 $as_echo "$ac_ct_READELF" >&6; }
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5224 if test "x$ac_ct_READELF" = x; then
5227 case $cross_compiling:$ac_tool_warned in
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5233 READELF=$ac_ct_READELF
5236 READELF="$ac_cv_prog_READELF"
5240 for ac_prog in autoconf
5242 # Extract the first word of "$ac_prog", so it can be a program name with args.
5243 set dummy $ac_prog; ac_word=$2
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245 $as_echo_n "checking for $ac_word... " >&6; }
5246 if ${ac_cv_prog_AUTOCONF+:} false; then :
5247 $as_echo_n "(cached) " >&6
5249 if test -n "$AUTOCONF"; then
5250 ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_prog_AUTOCONF="$ac_prog"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5269 AUTOCONF=$ac_cv_prog_AUTOCONF
5270 if test -n "$AUTOCONF"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
5272 $as_echo "$AUTOCONF" >&6; }
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 $as_echo "no" >&6; }
5279 test -n "$AUTOCONF" && break
5281 test -n "$AUTOCONF" || AUTOCONF="no"
5283 case "x$AUTOCONF" in
5284 xno|x|x:) AUTOCONF=no ;;
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works" >&5
5287 $as_echo_n "checking whether $AUTOCONF${ACFLAGS:+ }$ACFLAGS works... " >&6; }
5288 if ${libc_cv_autoconf_works+:} false; then :
5289 $as_echo_n "(cached) " >&6
5291 if (cd $srcdir; $AUTOCONF $ACFLAGS configure.in > /dev/null 2>&1); then
5292 libc_cv_autoconf_works=yes
5294 libc_cv_autoconf_works=no
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_autoconf_works" >&5
5298 $as_echo "$libc_cv_autoconf_works" >&6; }
5299 test $libc_cv_autoconf_works = yes || AUTOCONF=no
5302 if test "x$AUTOCONF" = xno; then
5303 aux_missing="$aux_missing autoconf"
5306 test -n "$critic_missing" && as_fn_error $? "
5307 *** These critical programs are missing or too old:$critic_missing
5308 *** Check the INSTALL file for required versions." "$LINENO" 5
5310 test -n "$aux_missing" && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5311 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5312 *** some features will be disabled.
5313 *** Check the INSTALL file for required versions." >&5
5314 $as_echo "$as_me: WARNING:
5315 *** These auxiliary programs are missing or incompatible versions:$aux_missing
5316 *** some features will be disabled.
5317 *** Check the INSTALL file for required versions." >&2;}
5319 # if using special system headers, find out the compiler's sekrit
5320 # header directory and add that to the list. NOTE: Only does the right
5321 # thing on a system that doesn't need fixincludes. (Not presently a problem.)
5322 if test -n "$sysheaders"; then
5323 SYSINCLUDES=-nostdinc
5324 for d in include include-fixed; do
5325 i=`$CC -print-file-name="$d"` && test "x$i" != x && test "x$i" != "x$d" &&
5326 SYSINCLUDES="$SYSINCLUDES -isystem $i"
5328 SYSINCLUDES="$SYSINCLUDES \
5329 -isystem `echo $sysheaders | sed 's/:/ -isystem /g'`"
5330 if test -n "$CXX"; then
5332 cxxversion=`$CXX -dumpversion 2>&5` &&
5333 cxxmachine=`$CXX -dumpmachine 2>&5` &&
5334 for d in include "$cxxmachine/include"; do
5335 i=../../../../$d/c++/$cxxversion
5336 cxxheaders=`$CXX -print-file-name="$i"` &&
5337 test "x$cxxheaders" != x && test "x$i" != "x$cxxheaders" &&
5338 CXX_SYSINCLUDES="$CXX_SYSINCLUDES -isystem $cxxheaders \
5339 -isystem $cxxheaders/$cxxmachine -isystem $cxxheaders/backward"
5346 # ranlib is never necessary on Linux and Hurd systems
5349 # Test if LD_LIBRARY_PATH contains the notation for the current directory
5350 # since this would lead to problems installing/building glibc.
5351 # LD_LIBRARY_PATH contains the current directory if one of the following
5353 # - one of the terminals (":" and ";") is the first or last sign
5354 # - two terminals occur directly after each other
5355 # - the path contains an element with a dot in it
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LD_LIBRARY_PATH variable" >&5
5357 $as_echo_n "checking LD_LIBRARY_PATH variable... " >&6; }
5358 case ${LD_LIBRARY_PATH} in
5359 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
5360 ld_library_path_setting="contains current directory"
5363 ld_library_path_setting="ok"
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_library_path_setting" >&5
5367 $as_echo "$ld_library_path_setting" >&6; }
5368 if test "$ld_library_path_setting" != "ok"; then
5370 *** LD_LIBRARY_PATH shouldn't contain the current directory when
5371 *** building glibc. Please change the environment variable
5372 *** and run configure again." "$LINENO" 5
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GCC supports -static-libgcc" >&5
5376 $as_echo_n "checking whether GCC supports -static-libgcc... " >&6; }
5377 if ${libc_cv_gcc_static_libgcc+:} false; then :
5378 $as_echo_n "(cached) " >&6
5380 if $CC -v -static-libgcc 2>&1 | grep -q 'unrecognized option.*static-libgcc'; then
5381 libc_cv_gcc_static_libgcc=
5383 libc_cv_gcc_static_libgcc=-static-libgcc
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_static_libgcc" >&5
5387 $as_echo "$libc_cv_gcc_static_libgcc" >&6; }
5390 # Extract the first word of "bash", so it can be a program name with args.
5391 set dummy bash; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_path_BASH_SHELL+:} false; then :
5395 $as_echo_n "(cached) " >&6
5399 ac_cv_path_BASH_SHELL="$BASH_SHELL" # Let the user override the test with a path.
5402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 test -z "$as_dir" && as_dir=.
5407 for ac_exec_ext in '' $ac_executable_extensions; do
5408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409 ac_cv_path_BASH_SHELL="$as_dir/$ac_word$ac_exec_ext"
5410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 test -z "$ac_cv_path_BASH_SHELL" && ac_cv_path_BASH_SHELL="no"
5421 BASH_SHELL=$ac_cv_path_BASH_SHELL
5422 if test -n "$BASH_SHELL"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_SHELL" >&5
5424 $as_echo "$BASH_SHELL" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5431 if test "$BASH_SHELL" != no &&
5432 $BASH_SHELL -c 'test "$BASH_VERSINFO" \
5433 && test "$BASH_VERSINFO" -ge 2 >&/dev/null'; then
5434 libc_cv_have_bash2=yes
5436 libc_cv_have_bash2=no
5440 if test "$BASH_SHELL" = no; then
5441 # Extract the first word of "ksh", so it can be a program name with args.
5442 set dummy ksh; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if ${ac_cv_path_KSH+:} false; then :
5446 $as_echo_n "(cached) " >&6
5450 ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
5453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 test -z "$as_dir" && as_dir=.
5458 for ac_exec_ext in '' $ac_executable_extensions; do
5459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460 ac_cv_path_KSH="$as_dir/$ac_word$ac_exec_ext"
5461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 test -z "$ac_cv_path_KSH" && ac_cv_path_KSH="no"
5473 if test -n "$KSH"; then
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KSH" >&5
5475 $as_echo "$KSH" >&6; }
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 $as_echo "no" >&6; }
5482 if test "$KSH" = no; then
5485 libc_cv_have_ksh=yes
5490 libc_cv_have_ksh=yes
5494 for ac_prog in gawk mawk nawk awk
5496 # Extract the first word of "$ac_prog", so it can be a program name with args.
5497 set dummy $ac_prog; ac_word=$2
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5499 $as_echo_n "checking for $ac_word... " >&6; }
5500 if ${ac_cv_prog_AWK+:} false; then :
5501 $as_echo_n "(cached) " >&6
5503 if test -n "$AWK"; then
5504 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_AWK="$ac_prog"
5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 if test -n "$AWK"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5526 $as_echo "$AWK" >&6; }
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5533 test -n "$AWK" && break
5536 # Extract the first word of "perl", so it can be a program name with args.
5537 set dummy perl; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_path_PERL+:} false; then :
5541 $as_echo_n "(cached) " >&6
5545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
5567 PERL=$ac_cv_path_PERL
5568 if test -n "$PERL"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
5570 $as_echo "$PERL" >&6; }
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5577 if test "$PERL" != no &&
5578 (eval `$PERL -V:apiversion`; test `expr "$apiversion" \< 5` -ne 0); then
5581 # Extract the first word of "install-info", so it can be a program name with args.
5582 set dummy install-info; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_path_INSTALL_INFO+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 case $INSTALL_INFO in
5590 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 as_dummy="$PATH:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5595 for as_dir in $as_dummy
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5601 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO="no"
5613 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5614 if test -n "$INSTALL_INFO"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5616 $as_echo "$INSTALL_INFO" >&6; }
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5623 # Extract the first word of "bison", so it can be a program name with args.
5624 set dummy bison; ac_word=$2
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5626 $as_echo_n "checking for $ac_word... " >&6; }
5627 if ${ac_cv_path_BISON+:} false; then :
5628 $as_echo_n "(cached) " >&6
5632 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 as_dummy="$PATH:/usr/local/bin:/usr/bin:/bin"
5637 for as_dir in $as_dummy
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="no"
5655 BISON=$ac_cv_path_BISON
5656 if test -n "$BISON"; then
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5658 $as_echo "$BISON" >&6; }
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size_t type" >&5
5667 $as_echo_n "checking for signed size_t type... " >&6; }
5668 if ${libc_cv_signed_size_t+:} false; then :
5669 $as_echo_n "(cached) " >&6
5671 echo '#include <stddef.h>
5672 FOOBAR __SIZE_TYPE__ FOOBAR' > conftest.c
5673 if eval "$ac_cpp conftest.c 2>/dev/null" \
5674 | grep '^FOOBAR.*unsigned.*FOOBAR$' >/dev/null; then
5675 libc_cv_signed_size_t=no
5677 libc_cv_signed_size_t=yes
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_signed_size_t" >&5
5682 $as_echo "$libc_cv_signed_size_t" >&6; }
5683 if test $libc_cv_signed_size_t = yes; then
5684 cat >> confdefs.h <<\EOF
5685 #undef __SIZE_TYPE__
5686 #define __SIZE_TYPE__ unsigned
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libc-friendly stddef.h" >&5
5691 $as_echo_n "checking for libc-friendly stddef.h... " >&6; }
5692 if ${libc_cv_friendly_stddef+:} false; then :
5693 $as_echo_n "(cached) " >&6
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #define __need_size_t
5698 #define __need_wchar_t
5705 size_t size; wchar_t wchar;
5707 #error stddef.h ignored __need_*
5709 if (&size == NULL || &wchar == NULL) abort ();
5714 if ac_fn_c_try_compile "$LINENO"; then :
5715 libc_cv_friendly_stddef=yes
5717 libc_cv_friendly_stddef=no
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_friendly_stddef" >&5
5722 $as_echo "$libc_cv_friendly_stddef" >&6; }
5723 if test $libc_cv_friendly_stddef = yes; then
5724 config_vars="$config_vars
5725 override stddef.h = # The installed <stddef.h> seems to be libc-friendly."
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to use -P to assemble .S files" >&5
5729 $as_echo_n "checking whether we need to use -P to assemble .S files... " >&6; }
5730 if ${libc_cv_need_minus_P+:} false; then :
5731 $as_echo_n "(cached) " >&6
5733 cat > conftest.S <<EOF
5734 #include "confdefs.h"
5735 /* Nothing whatsoever. */
5737 if { ac_try='${CC-cc} $CPPFLAGS $ASFLAGS -c conftest.S 1>&5'
5738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742 test $ac_status = 0; }; }; then
5743 libc_cv_need_minus_P=no
5745 libc_cv_need_minus_P=yes
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_need_minus_P" >&5
5750 $as_echo "$libc_cv_need_minus_P" >&6; }
5751 if test $libc_cv_need_minus_P = yes; then
5752 config_vars="$config_vars
5753 asm-CPPFLAGS = -P # The assembler can't grok cpp's # line directives."
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .set assembler directive" >&5
5757 $as_echo_n "checking for .set assembler directive... " >&6; }
5758 if ${libc_cv_asm_set_directive+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 cat > conftest.s <<EOF
5764 .set glibc_conftest_frobozz,foo
5765 $libc_cv_asm_global_directive glibc_conftest_frobozz
5767 # The alpha-dec-osf1 assembler gives only a warning for `.set'
5768 # (but it doesn't work), so we must do a linking check to be sure.
5769 cat > conftest1.c <<\EOF
5770 extern int glibc_conftest_frobozz;
5771 void _start() { glibc_conftest_frobozz = 1; }
5773 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
5774 -nostartfiles -nostdlib \
5775 -o conftest conftest.s conftest1.c 1>&5 2>&5; then
5776 libc_cv_asm_set_directive=yes
5778 libc_cv_asm_set_directive=no
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_set_directive" >&5
5783 $as_echo "$libc_cv_asm_set_directive" >&6; }
5784 if test $libc_cv_asm_set_directive = yes; then
5785 $as_echo "#define HAVE_ASM_SET_DIRECTIVE 1" >>confdefs.h
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler gnu_unique_object symbol type" >&5
5790 $as_echo_n "checking for assembler gnu_unique_object symbol type... " >&6; }
5791 if ${libc_cv_asm_unique_object+:} false; then :
5792 $as_echo_n "(cached) " >&6
5794 cat > conftest.s <<EOF
5797 .type _sym, ${libc_cv_asm_type_prefix}gnu_unique_object
5799 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5800 libc_cv_asm_unique_object=yes
5802 libc_cv_asm_unique_object=no
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_unique_object" >&5
5807 $as_echo "$libc_cv_asm_unique_object" >&6; }
5808 if test $libc_cv_asm_unique_object = yes; then
5809 $as_echo "#define HAVE_ASM_UNIQUE_OBJECT 1" >>confdefs.h
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
5814 $as_echo_n "checking for .symver assembler directive... " >&6; }
5815 if ${libc_cv_asm_symver_directive+:} false; then :
5816 $as_echo_n "(cached) " >&6
5818 cat > conftest.s <<EOF
5821 .symver _sym,sym@VERS
5823 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5824 libc_cv_asm_symver_directive=yes
5826 libc_cv_asm_symver_directive=no
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
5831 $as_echo "$libc_cv_asm_symver_directive" >&6; }
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
5833 $as_echo_n "checking for ld --version-script... " >&6; }
5834 if ${libc_cv_ld_version_script_option+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 if test $libc_cv_asm_symver_directive = yes; then
5838 cat > conftest.s <<EOF
5841 .symver _sym,sym@VERS
5843 cat > conftest.map <<EOF
5852 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
5853 if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
5854 -o conftest.so conftest.o
5855 -nostartfiles -nostdlib
5856 -Wl,--version-script,conftest.map
5858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; }; };
5864 libc_cv_ld_version_script_option=yes
5866 libc_cv_ld_version_script_option=no
5869 libc_cv_ld_version_script_option=no
5872 libc_cv_ld_version_script_option=no
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
5877 $as_echo "$libc_cv_ld_version_script_option" >&6; }
5878 if test $shared != no &&
5879 test $libc_cv_asm_symver_directive = yes &&
5880 test $libc_cv_ld_version_script_option = yes &&
5881 test $enable_versioning = yes; then
5883 $as_echo "#define DO_VERSIONING 1" >>confdefs.h
5890 if test $elf = yes && test $shared != no && test $VERSIONING = no; then
5892 *** WARNING: You should not compile GNU libc without versioning. Not using
5893 *** versioning will introduce incompatibilities so that old binaries
5894 *** will not run anymore.
5895 *** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer)."
5897 if test $elf = yes; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .previous assembler directive" >&5
5899 $as_echo_n "checking for .previous assembler directive... " >&6; }
5900 if ${libc_cv_asm_previous_directive+:} false; then :
5901 $as_echo_n "(cached) " >&6
5903 cat > conftest.s <<EOF
5904 .section foo_section
5907 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }; }; then
5913 libc_cv_asm_previous_directive=yes
5915 libc_cv_asm_previous_directive=no
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_previous_directive" >&5
5920 $as_echo "$libc_cv_asm_previous_directive" >&6; }
5921 if test $libc_cv_asm_previous_directive = yes; then
5922 $as_echo "#define HAVE_ASM_PREVIOUS_DIRECTIVE 1" >>confdefs.h
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .popsection assembler directive" >&5
5926 $as_echo_n "checking for .popsection assembler directive... " >&6; }
5927 if ${libc_cv_asm_popsection_directive+:} false; then :
5928 $as_echo_n "(cached) " >&6
5930 cat > conftest.s <<EOF
5931 .pushsection foo_section
5934 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5939 test $ac_status = 0; }; }; then
5940 libc_cv_asm_popsection_directive=yes
5942 libc_cv_asm_popsection_directive=no
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_popsection_directive" >&5
5947 $as_echo "$libc_cv_asm_popsection_directive" >&6; }
5948 if test $libc_cv_asm_popsection_directive = yes; then
5949 $as_echo "#define HAVE_ASM_POPSECTION_DIRECTIVE 1" >>confdefs.h
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .protected and .hidden assembler directive" >&5
5954 $as_echo_n "checking for .protected and .hidden assembler directive... " >&6; }
5955 if ${libc_cv_asm_protected_directive+:} false; then :
5956 $as_echo_n "(cached) " >&6
5958 cat > conftest.s <<EOF
5964 if { ac_try='${CC-cc} -c $ASFLAGS conftest.s 1>&5'
5965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5969 test $ac_status = 0; }; }; then
5970 libc_cv_asm_protected_directive=yes
5972 as_fn_error $? "assembler support for symbol visibility is required" "$LINENO" 5
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_protected_directive" >&5
5977 $as_echo "$libc_cv_asm_protected_directive" >&6; }
5979 if test $libc_cv_asm_protected_directive = yes; then
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((visibility())) is supported" >&5
5981 $as_echo_n "checking whether __attribute__((visibility())) is supported... " >&6; }
5982 if ${libc_cv_visibility_attribute+:} false; then :
5983 $as_echo_n "(cached) " >&6
5985 cat > conftest.c <<EOF
5986 int foo __attribute__ ((visibility ("hidden"))) = 1;
5987 int bar __attribute__ ((visibility ("protected"))) = 1;
5989 libc_cv_visibility_attribute=no
5990 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
5991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995 test $ac_status = 0; }; }; then
5996 if grep '\.hidden.*foo' conftest.s >/dev/null; then
5997 if grep '\.protected.*bar' conftest.s >/dev/null; then
5998 libc_cv_visibility_attribute=yes
6002 rm -f conftest.{c,s}
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_visibility_attribute" >&5
6006 $as_echo "$libc_cv_visibility_attribute" >&6; }
6007 if test $libc_cv_visibility_attribute != yes; then
6008 as_fn_error $? "compiler support for visibility attribute is required" "$LINENO" 5
6012 if test $libc_cv_visibility_attribute = yes; then
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((visibility()))" >&5
6014 $as_echo_n "checking for broken __attribute__((visibility()))... " >&6; }
6015 if ${libc_cv_broken_visibility_attribute+:} false; then :
6016 $as_echo_n "(cached) " >&6
6018 cat > conftest.c <<EOF
6020 int bar (int x) __asm__ ("foo") __attribute__ ((visibility ("hidden")));
6021 int bar (int x) { return x; }
6023 libc_cv_broken_visibility_attribute=yes
6024 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6029 test $ac_status = 0; }; }; then
6030 if grep '\.hidden[ _]foo' conftest.s >/dev/null; then
6031 libc_cv_broken_visibility_attribute=no
6034 rm -f conftest.c conftest.s
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_visibility_attribute" >&5
6038 $as_echo "$libc_cv_broken_visibility_attribute" >&6; }
6039 if test $libc_cv_broken_visibility_attribute = yes; then
6040 as_fn_error $? "working compiler support for visibility attribute is required" "$LINENO" 5
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken __attribute__((alias()))" >&5
6045 $as_echo_n "checking for broken __attribute__((alias()))... " >&6; }
6046 if ${libc_cv_broken_alias_attribute+:} false; then :
6047 $as_echo_n "(cached) " >&6
6049 cat > conftest.c <<EOF
6050 extern int foo (int x) __asm ("xyzzy");
6051 int bar (int x) { return x; }
6052 extern __typeof (bar) foo __attribute ((weak, alias ("bar")));
6054 extern __typeof (dfoo) dfoo __asm ("abccb");
6057 libc_cv_broken_alias_attribute=yes
6058 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
6059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6063 test $ac_status = 0; }; }; then
6064 if grep 'xyzzy' conftest.s >/dev/null &&
6065 grep 'abccb' conftest.s >/dev/null; then
6066 libc_cv_broken_alias_attribute=no
6069 rm -f conftest.c conftest.s
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_broken_alias_attribute" >&5
6073 $as_echo "$libc_cv_broken_alias_attribute" >&6; }
6074 if test $libc_cv_broken_alias_attribute = yes; then
6075 as_fn_error $? "working alias attribute support required" "$LINENO" 5
6078 if test $libc_cv_visibility_attribute = yes; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to put _rtld_local into .sdata section" >&5
6080 $as_echo_n "checking whether to put _rtld_local into .sdata section... " >&6; }
6081 if ${libc_cv_have_sdata_section+:} false; then :
6082 $as_echo_n "(cached) " >&6
6084 echo "int i;" > conftest.c
6085 libc_cv_have_sdata_section=no
6086 if ${CC-cc} $LDFLAGS -fPIC -shared -Wl,--verbose conftest.c -o conftest.so 2>&1 \
6087 | grep '\.sdata' >/dev/null; then
6088 libc_cv_have_sdata_section=yes
6090 rm -f conftest.c conftest.so
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_sdata_section" >&5
6094 $as_echo "$libc_cv_have_sdata_section" >&6; }
6095 if test $libc_cv_have_sdata_section = yes; then
6096 $as_echo "#define HAVE_SDATA_SECTION 1" >>confdefs.h
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
6102 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
6103 if ${libc_cv_initfini_array+:} false; then :
6104 $as_echo_n "(cached) " >&6
6106 cat > conftest.c <<EOF
6107 int _start (void) { return 0; }
6108 int __start (void) { return 0; }
6109 int foo (void) { return 1; }
6110 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
6112 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -o conftest conftest.c
6113 -static -nostartfiles -nostdlib 1>&5'
6114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6118 test $ac_status = 0; }; }
6120 if $READELF -S conftest | fgrep INIT_ARRAY > /dev/null; then
6121 libc_cv_initfini_array=yes
6123 libc_cv_initfini_array=no
6126 libc_cv_initfini_array=no
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfini_array" >&5
6131 $as_echo "$libc_cv_initfini_array" >&6; }
6132 if test $libc_cv_initfini_array != yes; then
6133 as_fn_error $? "Need linker with .init_array/.fini_array support." "$LINENO" 5
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use .ctors/.dtors header and trailer" >&5
6137 $as_echo_n "checking whether to use .ctors/.dtors header and trailer... " >&6; }
6138 if ${libc_cv_ctors_header+:} false; then :
6139 $as_echo_n "(cached) " >&6
6141 libc_cv_ctors_header=yes
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6149 __attribute__ ((constructor)) void ctor (void) { puts("ctor"); }
6150 __attribute__ ((destructor)) void dtor (void) { puts("dtor"); }
6156 if ac_fn_c_try_link "$LINENO"; then :
6157 if $READELF -WS conftest$ac_exeext | $AWK '
6158 { gsub(/\[ */, "[") }
6159 $2 == ".ctors" || $2 == ".dtors" {
6160 size = strtonum("0x" $6)
6161 align = strtonum("0x" $NF)
6163 stub[$2] = size == align * 2
6166 ctors_ok = !seen[".ctors"] || stub[".ctors"]
6167 dtors_ok = !seen[".dtors"] || stub[".dtors"]
6168 exit ((ctors_ok && dtors_ok) ? 0 : 1)
6171 libc_cv_ctors_header=no
6175 as_fn_error $? "missing __attribute__ ((constructor)) support??" "$LINENO" 5
6178 rm -f core conftest.err conftest.$ac_objext \
6179 conftest$ac_exeext conftest.$ac_ext
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ctors_header" >&5
6183 $as_echo "$libc_cv_ctors_header" >&6; }
6184 if test $libc_cv_ctors_header = no; then
6185 $as_echo "#define NO_CTORS_DTORS_SECTIONS 1" >>confdefs.h
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libunwind-support in compiler" >&5
6190 $as_echo_n "checking for libunwind-support in compiler... " >&6; }
6191 if ${libc_cv_cc_with_libunwind+:} false; then :
6192 $as_echo_n "(cached) " >&6
6195 cat > conftest.c <<EOF
6196 int main (void) { return 0; }
6198 if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -static -o conftest \
6199 conftest.c -v 2>&1 >/dev/null | grep -q " -lunwind "; then
6200 libc_cv_cc_with_libunwind=yes
6202 libc_cv_cc_with_libunwind=no
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_with_libunwind" >&5
6207 $as_echo "$libc_cv_cc_with_libunwind" >&6; }
6209 if test $libc_cv_cc_with_libunwind = yes; then
6210 $as_echo "#define HAVE_CC_WITH_LIBUNWIND 1" >>confdefs.h
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodelete option" >&5
6215 $as_echo_n "checking for -z nodelete option... " >&6; }
6216 if ${libc_cv_z_nodelete+:} false; then :
6217 $as_echo_n "(cached) " >&6
6219 cat > conftest.c <<EOF
6220 int _start (void) { return 42; }
6222 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6223 -fPIC -shared -o conftest.so conftest.c
6224 -nostartfiles -nostdlib
6225 -Wl,--enable-new-dtags,-z,nodelete 1>&5'
6226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; }; }
6232 libc_cv_z_nodelete=yes
6234 as_fn_error $? "linker with -z nodelete support required" "$LINENO" 5
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodelete" >&5
6239 $as_echo "$libc_cv_z_nodelete" >&6; }
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z nodlopen option" >&5
6242 $as_echo_n "checking for -z nodlopen option... " >&6; }
6243 if ${libc_cv_z_nodlopen+:} false; then :
6244 $as_echo_n "(cached) " >&6
6246 cat > conftest.c <<EOF
6247 int _start (void) { return 42; }
6249 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6250 -fPIC -shared -o conftest.so conftest.c
6251 -nostartfiles -nostdlib
6252 -Wl,--enable-new-dtags,-z,nodlopen 1>&5'
6253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6257 test $ac_status = 0; }; }
6259 libc_cv_z_nodlopen=yes
6261 as_fn_error $? "linker with -z nodlopen support required" "$LINENO" 5
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_nodlopen" >&5
6266 $as_echo "$libc_cv_z_nodlopen" >&6; }
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z initfirst option" >&5
6269 $as_echo_n "checking for -z initfirst option... " >&6; }
6270 if ${libc_cv_z_initfirst+:} false; then :
6271 $as_echo_n "(cached) " >&6
6273 cat > conftest.c <<EOF
6274 int _start (void) { return 42; }
6276 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6277 -fPIC -shared -o conftest.so conftest.c
6278 -nostartfiles -nostdlib
6279 -Wl,--enable-new-dtags,-z,initfirst 1>&5'
6280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6284 test $ac_status = 0; }; }
6286 libc_cv_z_initfirst=yes
6288 as_fn_error $? "linker with -z initfirst support required" "$LINENO" 5
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_initfirst" >&5
6293 $as_echo "$libc_cv_z_initfirst" >&6; }
6295 # Add-on fragments can set these for other machines.
6296 libc_commonpagesize=${libc_commonpagesize:-no}
6297 libc_relro_required=${libc_relro_required:-no}
6298 case "$base_machine" in
6299 i[34567]86 | x86_64 | powerpc* | s390*)
6300 libc_commonpagesize=0x1000
6301 libc_relro_required=yes
6304 libc_commonpagesize=0x2000
6305 libc_relro_required=yes
6308 libc_commonpagesize=0x4000
6311 libc_commonpagesize=0x10000
6312 libc_relro_required=yes
6316 if test $libc_commonpagesize != no; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z relro option" >&5
6318 $as_echo_n "checking for -z relro option... " >&6; }
6319 if ${libc_cv_z_relro+:} false; then :
6320 $as_echo_n "(cached) " >&6
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6326 int _start (void) { return 42; }
6327 extern void _exit (int);
6328 /* Since these pointers are const, they should go in rodata.
6329 Since they refer to functions that have to be resolved by
6330 dynamic linking, they should instead go in RELRO data. */
6331 const void *const relro[] = { &_start, &_exit, 0 };
6332 /* GNU ld fails to produce RELRO data when it's very small and there is no
6333 normal writable data following it, or if only uninitialized (.bss) data
6334 follows it, or only very small writable data. */
6335 int data[0x10000] = { 1, };
6338 cat > conftest.awk <<\EOF
6341 commonpagesize = strtonum(commonpagesize)
6343 { print "LINE:", $0 > "/dev/stderr" }
6345 vaddr = strtonum($3)
6346 memsz = strtonum($6)
6348 printf "vaddr %#x memsz %#x end %#x commonpagesize %#x\n", \
6349 vaddr, memsz, end, commonpagesize > "/dev/stderr"
6350 result = (end % commonpagesize == 0) ? "yes" : "broken"
6352 END { print result }
6354 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6355 -fPIC -shared -o conftest.so conftest.c
6356 -nostartfiles -nostdlib
6358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6362 test $ac_status = 0; }; } &&
6363 { ac_try='$READELF -Wl conftest.so > conftest.ph'
6364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6368 test $ac_status = 0; }; } &&
6370 $AWK -v commonpagesize=$libc_commonpagesize -f conftest.awk
6371 conftest.ph > conftest.cps
6373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }; } &&
6378 libc_cv_z_relro=`cat conftest.cps 2>&5`
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_relro" >&5
6382 $as_echo "$libc_cv_z_relro" >&6; }
6383 if { test "x$libc_relro_required" = xyes &&
6384 test "x$libc_cv_z_relro" != xyes
6387 as_fn_error $? "linker with -z relro support required" "$LINENO" 5
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: missing architecture parameter to check for working -z relro" >&5
6391 $as_echo "$as_me: WARNING: missing architecture parameter to check for working -z relro" >&2;}
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bgroup option" >&5
6395 $as_echo_n "checking for -Bgroup option... " >&6; }
6396 if ${libc_cv_Bgroup+:} false; then :
6397 $as_echo_n "(cached) " >&6
6399 cat > conftest.c <<EOF
6400 int _start (void) { return 42; }
6402 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6403 -fPIC -shared -o conftest.so conftest.c
6404 -Wl,-Bgroup -nostdlib 1>&5'
6405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; }; }
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_Bgroup" >&5
6418 $as_echo "$libc_cv_Bgroup" >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgcc_s suffix" >&5
6422 $as_echo_n "checking for libgcc_s suffix... " >&6; }
6423 if ${libc_cv_libgcc_s_suffix+:} false; then :
6424 $as_echo_n "(cached) " >&6
6426 cat > conftest.c <<EOF
6427 int main (void) { return 0; }
6429 libc_cv_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
6430 -fPIC -shared -shared-libgcc -o conftest.so \
6431 conftest.c -v 2>&1 >/dev/null \
6432 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_libgcc_s_suffix" >&5
6436 $as_echo "$libc_cv_libgcc_s_suffix" >&6; }
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed option" >&5
6440 $as_echo_n "checking for --as-needed option... " >&6; }
6441 if ${libc_cv_as_needed+:} false; then :
6442 $as_echo_n "(cached) " >&6
6444 cat > conftest.c <<EOF
6445 int main (void) { return 0; }
6447 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6448 -fPIC -shared -o conftest.so conftest.c
6449 -lgcc_s$libc_cv_libgcc_s_suffix -Wl,--as-needed
6451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6455 test $ac_status = 0; }; }
6457 libc_cv_as_needed=yes
6459 libc_cv_as_needed=no
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_needed" >&5
6464 $as_echo "$libc_cv_as_needed" >&6; }
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --noexecstack is desirable for .S files" >&5
6469 $as_echo_n "checking whether --noexecstack is desirable for .S files... " >&6; }
6470 if ${libc_cv_as_noexecstack+:} false; then :
6471 $as_echo_n "(cached) " >&6
6473 cat > conftest.c <<EOF
6476 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
6477 -S -o conftest.s conftest.c 1>&5'
6478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482 test $ac_status = 0; }; } \
6483 && grep -q .note.GNU-stack conftest.s \
6484 && { ac_try='${CC-cc} $ASFLAGS -Wa,--noexecstack
6485 -c -o conftest.o conftest.s 1>&5'
6486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6490 test $ac_status = 0; }; }
6492 libc_cv_as_noexecstack=yes
6494 libc_cv_as_noexecstack=no
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_as_noexecstack" >&5
6499 $as_echo "$libc_cv_as_noexecstack" >&6; }
6500 if test $libc_cv_as_noexecstack = yes; then
6501 ASFLAGS_config="$ASFLAGS_config -Wa,--noexecstack"
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z combreloc" >&5
6506 $as_echo_n "checking for -z combreloc... " >&6; }
6507 if ${libc_cv_z_combreloc+:} false; then :
6508 $as_echo_n "(cached) " >&6
6510 cat > conftest.c <<EOF
6511 extern int bar (int);
6513 int foo (void) { return bar (mumble); }
6515 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6516 -fPIC -shared -o conftest.so conftest.c
6517 -nostdlib -nostartfiles
6518 -Wl,-z,combreloc 1>&5'
6519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6523 test $ac_status = 0; }; }
6525 if $READELF -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then
6526 libc_cv_z_combreloc=yes
6528 libc_cv_z_combreloc=no
6531 libc_cv_z_combreloc=no
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_combreloc" >&5
6536 $as_echo "$libc_cv_z_combreloc" >&6; }
6537 if test "$libc_cv_z_combreloc" = yes; then
6538 $as_echo "#define HAVE_Z_COMBRELOC 1" >>confdefs.h
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -z execstack" >&5
6544 $as_echo_n "checking for -z execstack... " >&6; }
6545 if ${libc_cv_z_execstack+:} false; then :
6546 $as_echo_n "(cached) " >&6
6548 cat > conftest.c <<EOF
6549 int _start (void) { return 42; }
6551 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6552 -fPIC -shared -o conftest.so conftest.c
6553 -Wl,-z,execstack -nostdlib
6555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }; }
6561 libc_cv_z_execstack=yes
6563 libc_cv_z_execstack=no
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_z_execstack" >&5
6568 $as_echo "$libc_cv_z_execstack" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
6572 $as_echo_n "checking for -fpie... " >&6; }
6573 if ${libc_cv_fpie+:} false; then :
6574 $as_echo_n "(cached) " >&6
6576 cat > conftest.c <<EOF
6578 main () { return 0;}
6580 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
6581 -o conftest conftest.c 1>&5'
6582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; }; }
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
6595 $as_echo "$libc_cv_fpie" >&6; }
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style option" >&5
6600 $as_echo_n "checking for --hash-style option... " >&6; }
6601 if ${libc_cv_hashstyle+:} false; then :
6602 $as_echo_n "(cached) " >&6
6604 cat > conftest.c <<EOF
6605 int _start (void) { return 42; }
6607 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
6608 -fPIC -shared -o conftest.so conftest.c
6609 -Wl,--hash-style=both -nostdlib 1>&5'
6610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614 test $ac_status = 0; }; }
6616 libc_cv_hashstyle=yes
6618 libc_cv_hashstyle=no
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hashstyle" >&5
6623 $as_echo "$libc_cv_hashstyle" >&6; }
6626 # The linker's default -shared behavior is good enough if it
6627 # does these things that our custom linker scripts ensure that
6628 # all allocated NOTE sections come first.
6629 if test "$use_default_link" = default; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sufficient default -shared layout" >&5
6631 $as_echo_n "checking for sufficient default -shared layout... " >&6; }
6632 if ${libc_cv_use_default_link+:} false; then :
6633 $as_echo_n "(cached) " >&6
6635 libc_cv_use_default_link=no
6636 cat > conftest.s <<\EOF
6637 .section .note.a,"a",%note
6642 .section .note.b,"a",%note
6648 if { ac_try=' ${CC-cc} $ASFLAGS -shared -o conftest.so conftest.s 1>&5'
6649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653 test $ac_status = 0; }; } &&
6654 ac_try=`$READELF -S conftest.so | sed -n \
6656 s/^ *\[ *[1-9][0-9]*\] *\([^ ][^ ]*\) *\([^ ][^ ]*\) .*$/\2 \1/
6662 libc_seen_a=no libc_seen_b=no
6664 while test $# -ge 2 -a "$1" = NOTE; do
6666 .note.a) libc_seen_a=yes ;;
6667 .note.b) libc_seen_b=yes ;;
6671 case "$libc_seen_a$libc_seen_b" in
6673 libc_cv_use_default_link=yes
6677 $libc_seen_a$libc_seen_b from:
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_use_default_link" >&5
6685 $as_echo "$libc_cv_use_default_link" >&6; }
6686 use_default_link=$libc_cv_use_default_link
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker output format" >&5
6691 $as_echo_n "checking linker output format... " >&6; }
6692 if ${libc_cv_output_format+:} false; then :
6693 $as_echo_n "(cached) " >&6
6695 if libc_cv_output_format=`
6696 ${CC-cc} -nostartfiles -nostdlib -Wl,--print-output-format 2>&5`
6700 libc_cv_output_format=
6702 test -n "$libc_cv_output_format" || libc_cv_output_format=unknown
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_output_format" >&5
6705 $as_echo "$libc_cv_output_format" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fno-toplevel-reorder -fno-section-anchors" >&5
6709 $as_echo_n "checking for -fno-toplevel-reorder -fno-section-anchors... " >&6; }
6710 if ${libc_cv_fno_toplevel_reorder+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 cat > conftest.c <<EOF
6716 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -fno-toplevel-reorder -fno-section-anchors
6718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6722 test $ac_status = 0; }; }
6724 libc_cv_fno_toplevel_reorder=yes
6726 libc_cv_fno_toplevel_reorder=no
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fno_toplevel_reorder" >&5
6731 $as_echo "$libc_cv_fno_toplevel_reorder" >&6; }
6732 if test $libc_cv_fno_toplevel_reorder = yes; then
6733 fno_unit_at_a_time="-fno-toplevel-reorder -fno-section-anchors"
6735 fno_unit_at_a_time=-fno-unit-at-a-time
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5
6740 $as_echo_n "checking for -fstack-protector... " >&6; }
6741 if ${libc_cv_ssp+:} false; then :
6742 $as_echo_n "(cached) " >&6
6744 cat > conftest.c <<EOF
6746 main () { return 0;}
6748 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -Werror -fstack-protector
6749 -o conftest conftest.c 1>&5'
6750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6754 test $ac_status = 0; }; }
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ssp" >&5
6763 $as_echo "$libc_cv_ssp" >&6; }
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline" >&5
6767 $as_echo_n "checking for -fgnu89-inline... " >&6; }
6768 if ${libc_cv_gnu89_inline+:} false; then :
6769 $as_echo_n "(cached) " >&6
6771 cat > conftest.c <<EOF
6773 #ifdef __GNUC_GNU_INLINE__
6774 main () { return 0;}
6779 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -std=gnu99 -fgnu89-inline
6780 -o conftest.s conftest.c 1>&5'
6781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785 test $ac_status = 0; }; }
6787 libc_cv_gnu89_inline=yes
6789 libc_cv_gnu89_inline=no
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gnu89_inline" >&5
6794 $as_echo "$libc_cv_gnu89_inline" >&6; }
6795 if test $libc_cv_gnu89_inline = yes; then
6796 gnu89_inline=-fgnu89-inline
6802 if test $elf != yes; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .init and .fini sections" >&5
6804 $as_echo_n "checking for .init and .fini sections... " >&6; }
6805 if ${libc_cv_have_initfini+:} false; then :
6806 $as_echo_n "(cached) " >&6
6808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6814 asm (".section .init");
6815 asm (".section .fini");
6816 asm ("${libc_cv_dot_text}");
6821 if ac_fn_c_try_compile "$LINENO"; then :
6822 libc_cv_have_initfini=yes
6824 libc_cv_have_initfini=no
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_initfini" >&5
6829 $as_echo "$libc_cv_have_initfini" >&6; }
6830 if test $libc_cv_have_initfini = yes; then
6831 $as_echo "#define HAVE_INITFINI 1" >>confdefs.h
6836 if test $elf = yes; then
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc puts quotes around section names" >&5
6838 $as_echo_n "checking whether cc puts quotes around section names... " >&6; }
6839 if ${libc_cv_have_section_quotes+:} false; then :
6840 $as_echo_n "(cached) " >&6
6842 cat > conftest.c <<EOF
6843 static const int foo
6844 __attribute__ ((section ("bar"))) = 1;
6846 if ${CC-cc} -S conftest.c -o conftest.s; then
6847 if grep '\.section.*"bar"' conftest.s >/dev/null; then
6848 libc_cv_have_section_quotes=yes
6850 libc_cv_have_section_quotes=no
6853 libc_cv_have_section_quotes=unknown
6855 rm -f conftest.{c,s}
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_have_section_quotes" >&5
6859 $as_echo "$libc_cv_have_section_quotes" >&6; }
6860 if test $libc_cv_have_section_quotes = yes; then
6861 $as_echo "#define HAVE_SECTION_QUOTES 1" >>confdefs.h
6868 if test $elf = yes; then
6869 libc_cv_asm_underscores=no
6871 if test $ac_cv_prog_cc_works = yes; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6873 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6874 if ${libc_cv_asm_underscores+:} false; then :
6875 $as_echo_n "(cached) " >&6
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 asm ("_glibc_foobar:");
6888 if ac_fn_c_try_link "$LINENO"; then :
6889 libc_cv_asm_underscores=yes
6891 libc_cv_asm_underscores=no
6893 rm -f core conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6897 $as_echo "$libc_cv_asm_underscores" >&6; }
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix on C symbol names" >&5
6900 $as_echo_n "checking for _ prefix on C symbol names... " >&6; }
6901 if ${libc_cv_asm_underscores+:} false; then :
6902 $as_echo_n "(cached) " >&6
6904 cat > conftest.$ac_ext <<EOF
6905 #line $LINENO "configure"
6906 #include "confdefs.h"
6907 void underscore_test(void) {
6910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6911 (eval $ac_compile) 2>&5
6913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6914 test $ac_status = 0; }; then
6915 if grep _underscore_test conftest* >/dev/null; then
6917 libc_cv_asm_underscores=yes
6920 libc_cv_asm_underscores=no
6923 echo "configure: failed program was:" >&5
6924 cat conftest.$ac_ext >&5
6926 libc_cv_asm_underscores=no
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_underscores" >&5
6931 $as_echo "$libc_cv_asm_underscores" >&6; }
6934 if test $libc_cv_asm_underscores = no; then
6935 $as_echo "#define NO_UNDERSCORES 1" >>confdefs.h
6939 if test $elf = yes; then
6940 libc_cv_weak_symbols=yes
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weak directive" >&5
6944 $as_echo_n "checking for assembler .weak directive... " >&6; }
6945 if ${libc_cv_asm_weak_directive+:} false; then :
6946 $as_echo_n "(cached) " >&6
6948 cat > conftest.s <<EOF
6950 ${libc_cv_asm_global_directive} foo
6953 .weak bar; bar = foo
6955 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960 test $ac_status = 0; }; }; then
6961 libc_cv_asm_weak_directive=yes
6963 libc_cv_asm_weak_directive=no
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weak_directive" >&5
6968 $as_echo "$libc_cv_asm_weak_directive" >&6; }
6970 if test $libc_cv_asm_weak_directive = no; then
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .weakext directive" >&5
6972 $as_echo_n "checking for assembler .weakext directive... " >&6; }
6973 if ${libc_cv_asm_weakext_directive+:} false; then :
6974 $as_echo_n "(cached) " >&6
6976 cat > conftest.s <<EOF
6978 ${libc_cv_asm_global_directive} foo
6982 ${libc_cv_asm_global_directive} baz
6985 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
6986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6990 test $ac_status = 0; }; }; then
6991 libc_cv_asm_weakext_directive=yes
6993 libc_cv_asm_weakext_directive=no
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_weakext_directive" >&5
6998 $as_echo "$libc_cv_asm_weakext_directive" >&6; }
7002 if test $libc_cv_asm_weak_directive = yes; then
7003 $as_echo "#define HAVE_ASM_WEAK_DIRECTIVE 1" >>confdefs.h
7005 elif test $libc_cv_asm_weakext_directive = yes; then
7006 $as_echo "#define HAVE_ASM_WEAKEXT_DIRECTIVE 1" >>confdefs.h
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported" >&5
7011 $as_echo_n "checking whether CFI directives are supported... " >&6; }
7012 if ${libc_cv_asm_cfi_directives+:} false; then :
7013 $as_echo_n "(cached) " >&6
7016 sparc/sparc64*) cfi_offset=2047;;
7019 cat > conftest.s <<EOF
7021 .type func,%function
7025 .cfi_rel_offset 1, $cfi_offset
7028 if { ac_try='${CC-cc} $ASFLAGS -c conftest.s 1>&5'
7029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; }; }; then
7034 libc_cv_asm_cfi_directives=yes
7036 libc_cv_asm_cfi_directives=no
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_cfi_directives" >&5
7041 $as_echo "$libc_cv_asm_cfi_directives" >&6; }
7042 if test $libc_cv_asm_cfi_directives = yes; then
7043 $as_echo "#define HAVE_ASM_CFI_DIRECTIVES 1" >>confdefs.h
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --no-whole-archive" >&5
7048 $as_echo_n "checking for ld --no-whole-archive... " >&6; }
7049 if ${libc_cv_ld_no_whole_archive+:} false; then :
7050 $as_echo_n "(cached) " >&6
7052 cat > conftest.c <<\EOF
7057 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7058 -nostdlib -nostartfiles -Wl,--no-whole-archive
7059 -o conftest conftest.c 1>&5'
7060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7064 test $ac_status = 0; }; }; then
7065 libc_cv_ld_no_whole_archive=yes
7067 libc_cv_ld_no_whole_archive=no
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_no_whole_archive" >&5
7072 $as_echo "$libc_cv_ld_no_whole_archive" >&6; }
7073 if test $libc_cv_ld_no_whole_archive = no; then
7074 as_fn_error $? "support for --no-whole-archive is needed" "$LINENO" 5
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -fexceptions" >&5
7078 $as_echo_n "checking for gcc -fexceptions... " >&6; }
7079 if ${libc_cv_gcc_exceptions+:} false; then :
7080 $as_echo_n "(cached) " >&6
7082 cat > conftest.c <<\EOF
7087 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
7088 -nostdlib -nostartfiles -fexceptions
7089 -o conftest conftest.c 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_gcc_exceptions=yes
7097 libc_cv_gcc_exceptions=no
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_exceptions" >&5
7102 $as_echo "$libc_cv_gcc_exceptions" >&6; }
7103 if test $libc_cv_gcc_exceptions = yes; then
7104 exceptions=-fexceptions
7107 if test "$host_cpu" = powerpc ; then
7108 # Check for a bug present in at least versions 2.8.x of GCC
7109 # and versions 1.0.x of EGCS.
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clobbering cr0 causes problems" >&5
7111 $as_echo_n "checking whether clobbering cr0 causes problems... " >&6; }
7112 if ${libc_cv_c_asmcr0_bug+:} false; then :
7113 $as_echo_n "(cached) " >&6
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int tester(int x) { asm ("" : : : "cc"); return x & 123; }
7126 if ac_fn_c_try_compile "$LINENO"; then :
7127 libc_cv_c_asmcr0_bug='no'
7129 libc_cv_c_asmcr0_bug='yes'
7131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_c_asmcr0_bug" >&5
7134 $as_echo "$libc_cv_c_asmcr0_bug" >&6; }
7135 if test "$libc_cv_c_asmcr0_bug" != 'no'; then
7136 $as_echo "#define BROKEN_PPC_ASM_CR0 1" >>confdefs.h
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
7142 $as_echo_n "checking for __builtin_expect... " >&6; }
7143 if ${libc_cv_gcc_builtin_expect+:} false; then :
7144 $as_echo_n "(cached) " >&6
7146 cat > conftest.c <<EOF
7147 #line $LINENO "configure"
7150 a = __builtin_expect (a, 10);
7151 return a == 10 ? 0 : 1;
7154 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -nostdlib -nostartfiles
7155 -o conftest conftest.c -lgcc >&5'
7156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7160 test $ac_status = 0; }; }; then
7161 libc_cv_gcc_builtin_expect=yes
7163 libc_cv_gcc_builtin_expect=no
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_expect" >&5
7168 $as_echo "$libc_cv_gcc_builtin_expect" >&6; }
7169 if test "$libc_cv_gcc_builtin_expect" = no; then
7170 as_fn_error $? "support for __builtin_expect needed" "$LINENO" 5
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_memset" >&5
7174 $as_echo_n "checking for __builtin_memset... " >&6; }
7175 if ${libc_cv_gcc_builtin_memset+:} false; then :
7176 $as_echo_n "(cached) " >&6
7178 cat > conftest.c <<\EOF
7181 __builtin_memset (x, 0, 1000);
7184 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "memset" > /dev/null'
7185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7189 test $ac_status = 0; }; };
7191 libc_cv_gcc_builtin_memset=no
7193 libc_cv_gcc_builtin_memset=yes
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_memset" >&5
7198 $as_echo "$libc_cv_gcc_builtin_memset" >&6; }
7199 if test "$libc_cv_gcc_builtin_memset" = yes ; then
7200 $as_echo "#define HAVE_BUILTIN_MEMSET 1" >>confdefs.h
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redirection of built-in functions" >&5
7205 $as_echo_n "checking for redirection of built-in functions... " >&6; }
7206 if ${libc_cv_gcc_builtin_redirection+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 cat > conftest.c <<\EOF
7210 extern char *strstr (const char *, const char *) __asm ("my_strstr");
7211 char *foo (const char *a, const char *b)
7213 return __builtin_strstr (a, b);
7216 if { ac_try='${CC-cc} -O3 -S conftest.c -o - | fgrep "my_strstr" > /dev/null'
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; }; };
7223 libc_cv_gcc_builtin_redirection=yes
7225 libc_cv_gcc_builtin_redirection=no
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_builtin_redirection" >&5
7230 $as_echo "$libc_cv_gcc_builtin_redirection" >&6; }
7231 if test "$libc_cv_gcc_builtin_redirection" = no; then
7232 as_fn_error $? "support for the symbol redirection needed" "$LINENO" 5
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
7236 $as_echo_n "checking for __thread... " >&6; }
7237 if ${libc_cv_gcc___thread+:} false; then :
7238 $as_echo_n "(cached) " >&6
7240 cat > conftest.c <<\EOF
7241 __thread int a = 42;
7243 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c >&5'
7244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248 test $ac_status = 0; }; }; then
7249 libc_cv_gcc___thread=yes
7251 libc_cv_gcc___thread=no
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
7256 $as_echo "$libc_cv_gcc___thread" >&6; }
7257 if test "$libc_cv_gcc___thread" = no; then
7258 as_fn_error $? "support for the __thread keyword is required" "$LINENO" 5
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tls_model attribute" >&5
7262 $as_echo_n "checking for tls_model attribute... " >&6; }
7263 if ${libc_cv_gcc_tls_model_attr+:} false; then :
7264 $as_echo_n "(cached) " >&6
7266 cat > conftest.c <<\EOF
7267 extern __thread int a __attribute__((tls_model ("initial-exec")));
7269 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S -Werror conftest.c >&5'
7270 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7274 test $ac_status = 0; }; }; then
7275 libc_cv_gcc_tls_model_attr=yes
7277 libc_cv_gcc_tls_model_attr=no
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc_tls_model_attr" >&5
7282 $as_echo "$libc_cv_gcc_tls_model_attr" >&6; }
7283 if test "$libc_cv_gcc_tls_model_attr" = no; then
7284 as_fn_error $? "support for the tls_model attribute is required" "$LINENO" 5
7287 if test -n "$submachine"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option for CPU variant" >&5
7289 $as_echo_n "checking for compiler option for CPU variant... " >&6; }
7290 if ${libc_cv_cc_submachine+:} false; then :
7291 $as_echo_n "(cached) " >&6
7293 libc_cv_cc_submachine=no
7294 for opt in "-march=$submachine" "-mcpu=$submachine"; do
7295 if { ac_try='${CC-cc} $opt -xc /dev/null -S -o /dev/null'
7296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7300 test $ac_status = 0; }; }; then
7301 libc_cv_cc_submachine="$opt"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_cc_submachine" >&5
7307 $as_echo "$libc_cv_cc_submachine" >&6; }
7308 if test "x$libc_cv_cc_submachine" = xno; then
7309 as_fn_error $? "${CC-cc} does not support $submachine" "$LINENO" 5
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgd" >&5
7315 $as_echo_n "checking for libgd... " >&6; }
7316 if test "$with_gd" != "no"; then
7317 old_CFLAGS="$CFLAGS"
7318 CFLAGS="$CFLAGS $libgd_include"
7319 old_LDFLAGS="$LDFLAGS"
7320 LDFLAGS="$LDFLAGS $libgd_ldflags"
7322 LIBS="$LIBS -lgd -lpng -lz -lm"
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7334 if ac_fn_c_try_link "$LINENO"; then :
7339 rm -f core conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext conftest.$ac_ext
7341 CFLAGS="$old_CFLAGS"
7342 LDFLAGS="$old_LDFLAGS"
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGD" >&5
7348 $as_echo "$LIBGD" >&6; }
7352 if test x$with_selinux = xno ; then
7355 # See if we have the SELinux library
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
7357 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
7358 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
7359 $as_echo_n "(cached) " >&6
7361 ac_check_lib_save_LIBS=$LIBS
7362 LIBS="-lselinux $LIBS"
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364 /* end confdefs.h. */
7366 /* Override any GCC internal prototype to avoid an error.
7367 Use char because int might match the return type of a GCC
7368 builtin and then its argument prototype would still apply. */
7372 char is_selinux_enabled ();
7376 return is_selinux_enabled ();
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 ac_cv_lib_selinux_is_selinux_enabled=yes
7384 ac_cv_lib_selinux_is_selinux_enabled=no
7386 rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
7388 LIBS=$ac_check_lib_save_LIBS
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
7391 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
7392 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
7398 # See if we have the SELinux header with the NSCD permissions in it.
7399 if test x$have_selinux = xyes ; then
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSCD Flask permissions in selinux/av_permissions.h" >&5
7401 $as_echo_n "checking for NSCD Flask permissions in selinux/av_permissions.h... " >&6; }
7402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7403 /* end confdefs.h. */
7404 #include <selinux/av_permissions.h>
7408 #ifdef NSCD__SHMEMHOST
7411 #error NSCD__SHMEMHOST not defined
7417 if ac_fn_c_try_compile "$LINENO"; then :
7422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_selinux" >&5
7424 $as_echo "$have_selinux" >&6; }
7427 if test x$with_selinux = xyes ; then
7428 if test x$have_selinux = xno ; then
7429 as_fn_error $? "SELinux explicitly required, but sufficiently recent SELinux library not found" "$LINENO" 5
7433 # Check if we're building with SELinux support.
7434 if test "x$have_selinux" = xyes; then
7436 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7439 # See if we have the libaudit library
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_user_avc_message in -laudit" >&5
7441 $as_echo_n "checking for audit_log_user_avc_message in -laudit... " >&6; }
7442 if ${ac_cv_lib_audit_audit_log_user_avc_message+:} false; then :
7443 $as_echo_n "(cached) " >&6
7445 ac_check_lib_save_LIBS=$LIBS
7446 LIBS="-laudit $LIBS"
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7450 /* Override any GCC internal prototype to avoid an error.
7451 Use char because int might match the return type of a GCC
7452 builtin and then its argument prototype would still apply. */
7456 char audit_log_user_avc_message ();
7460 return audit_log_user_avc_message ();
7465 if ac_fn_c_try_link "$LINENO"; then :
7466 ac_cv_lib_audit_audit_log_user_avc_message=yes
7468 ac_cv_lib_audit_audit_log_user_avc_message=no
7470 rm -f core conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
7472 LIBS=$ac_check_lib_save_LIBS
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_user_avc_message" >&5
7475 $as_echo "$ac_cv_lib_audit_audit_log_user_avc_message" >&6; }
7476 if test "x$ac_cv_lib_audit_audit_log_user_avc_message" = xyes; then :
7482 if test "x$have_libaudit" = xyes; then
7484 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
7489 # See if we have the libcap library
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_init in -lcap" >&5
7491 $as_echo_n "checking for cap_init in -lcap... " >&6; }
7492 if ${ac_cv_lib_cap_cap_init+:} false; then :
7493 $as_echo_n "(cached) " >&6
7495 ac_check_lib_save_LIBS=$LIBS
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7500 /* Override any GCC internal prototype to avoid an error.
7501 Use char because int might match the return type of a GCC
7502 builtin and then its argument prototype would still apply. */
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 ac_cv_lib_cap_cap_init=yes
7518 ac_cv_lib_cap_cap_init=no
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 LIBS=$ac_check_lib_save_LIBS
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_init" >&5
7525 $as_echo "$ac_cv_lib_cap_cap_init" >&6; }
7526 if test "x$ac_cv_lib_cap_cap_init" = xyes; then :
7532 if test "x$have_libcap" = xyes; then
7534 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7544 if ${ac_cv_path_GREP+:} false; then :
7545 $as_echo_n "(cached) " >&6
7547 if test -z "$GREP"; then
7548 ac_path_GREP_found=false
7549 # Loop through the user's path and test for each of PROGNAME-LIST
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7554 test -z "$as_dir" && as_dir=.
7555 for ac_prog in grep ggrep; do
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7558 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7559 # Check for GNU ac_path_GREP and select it if it is found.
7560 # Check for GNU $ac_path_GREP
7561 case `"$ac_path_GREP" --version 2>&1` in
7563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7566 $as_echo_n 0123456789 >"conftest.in"
7569 cat "conftest.in" "conftest.in" >"conftest.tmp"
7570 mv "conftest.tmp" "conftest.in"
7571 cp "conftest.in" "conftest.nl"
7572 $as_echo 'GREP' >> "conftest.nl"
7573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7575 as_fn_arith $ac_count + 1 && ac_count=$as_val
7576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7577 # Best one so far, save it but keep looking for a better one
7578 ac_cv_path_GREP="$ac_path_GREP"
7579 ac_path_GREP_max=$ac_count
7581 # 10*(2^10) chars as input seems more than enough
7582 test $ac_count -gt 10 && break
7584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7587 $ac_path_GREP_found && break 3
7592 if test -z "$ac_cv_path_GREP"; then
7593 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7596 ac_cv_path_GREP=$GREP
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7601 $as_echo "$ac_cv_path_GREP" >&6; }
7602 GREP="$ac_cv_path_GREP"
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7606 $as_echo_n "checking for egrep... " >&6; }
7607 if ${ac_cv_path_EGREP+:} false; then :
7608 $as_echo_n "(cached) " >&6
7610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7611 then ac_cv_path_EGREP="$GREP -E"
7613 if test -z "$EGREP"; then
7614 ac_path_EGREP_found=false
7615 # Loop through the user's path and test for each of PROGNAME-LIST
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7620 test -z "$as_dir" && as_dir=.
7621 for ac_prog in egrep; do
7622 for ac_exec_ext in '' $ac_executable_extensions; do
7623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7624 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7625 # Check for GNU ac_path_EGREP and select it if it is found.
7626 # Check for GNU $ac_path_EGREP
7627 case `"$ac_path_EGREP" --version 2>&1` in
7629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7632 $as_echo_n 0123456789 >"conftest.in"
7635 cat "conftest.in" "conftest.in" >"conftest.tmp"
7636 mv "conftest.tmp" "conftest.in"
7637 cp "conftest.in" "conftest.nl"
7638 $as_echo 'EGREP' >> "conftest.nl"
7639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7641 as_fn_arith $ac_count + 1 && ac_count=$as_val
7642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7643 # Best one so far, save it but keep looking for a better one
7644 ac_cv_path_EGREP="$ac_path_EGREP"
7645 ac_path_EGREP_max=$ac_count
7647 # 10*(2^10) chars as input seems more than enough
7648 test $ac_count -gt 10 && break
7650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7653 $ac_path_EGREP_found && break 3
7658 if test -z "$ac_cv_path_EGREP"; then
7659 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7662 ac_cv_path_EGREP=$EGREP
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7668 $as_echo "$ac_cv_path_EGREP" >&6; }
7669 EGREP="$ac_cv_path_EGREP"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7673 $as_echo_n "checking for ANSI C header files... " >&6; }
7674 if ${ac_cv_header_stdc+:} false; then :
7675 $as_echo_n "(cached) " >&6
7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 ac_cv_header_stdc=yes
7695 ac_cv_header_stdc=no
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 if test $ac_cv_header_stdc = yes; then
7700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7707 $EGREP "memchr" >/dev/null 2>&1; then :
7710 ac_cv_header_stdc=no
7716 if test $ac_cv_header_stdc = yes; then
7717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7724 $EGREP "free" >/dev/null 2>&1; then :
7727 ac_cv_header_stdc=no
7733 if test $ac_cv_header_stdc = yes; then
7734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7735 if test "$cross_compiling" = yes; then :
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7742 #if ((' ' & 0x0FF) == 0x020)
7743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7746 # define ISLOWER(c) \
7747 (('a' <= (c) && (c) <= 'i') \
7748 || ('j' <= (c) && (c) <= 'r') \
7749 || ('s' <= (c) && (c) <= 'z'))
7750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7758 for (i = 0; i < 256; i++)
7759 if (XOR (islower (i), ISLOWER (i))
7760 || toupper (i) != TOUPPER (i))
7765 if ac_fn_c_try_run "$LINENO"; then :
7768 ac_cv_header_stdc=no
7770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7771 conftest.$ac_objext conftest.beam conftest.$ac_ext
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7777 $as_echo "$ac_cv_header_stdc" >&6; }
7778 if test $ac_cv_header_stdc = yes; then
7780 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7786 inttypes.h stdint.h unistd.h
7788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7791 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7792 cat >>confdefs.h <<_ACEOF
7793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7801 # The cast to long int works around a bug in the HP C Compiler
7802 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7803 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7804 # This bug is HP SR number 8606223364.
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
7806 $as_echo_n "checking size of long double... " >&6; }
7807 if ${ac_cv_sizeof_long_double+:} false; then :
7808 $as_echo_n "(cached) " >&6
7810 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
7813 if test "$ac_cv_type_long_double" = yes; then
7814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7816 as_fn_error 77 "cannot compute sizeof (long double)
7817 See \`config.log' for more details" "$LINENO" 5; }
7819 ac_cv_sizeof_long_double=0
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
7825 $as_echo "$ac_cv_sizeof_long_double" >&6; }
7829 cat >>confdefs.h <<_ACEOF
7830 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7834 sizeof_long_double=$ac_cv_sizeof_long_double
7837 ### End of automated tests.
7838 ### Now run sysdeps configure fragments.
7840 # They also can set these variables.
7842 ldd_rewrite_script=no
7843 libc_cv_sysconfdir=$sysconfdir
7844 libc_cv_gcc_unwind_find_fde=no
7847 # Iterate over all the sysdep directories we will use, running their
7848 # configure fragments.
7849 for dir in $sysnames; do
7852 *) dest=$srcdir/$dir ;;
7854 if test -r $dest/configure; then
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: running configure fragment for $dir" >&5
7856 $as_echo "running configure fragment for $dir" >&6; }
7861 if test x$libc_cv_gcc_unwind_find_fde = xyes; then
7862 $as_echo "#define EXPORT_UNWIND_FIND_FDE 1" >>confdefs.h
7867 # Test for old glibc 2.0.x headers so that they can be removed properly
7868 # Search only in includedir.
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old glibc 2.0.x headers" >&5
7870 $as_echo_n "checking for old glibc 2.0.x headers... " >&6; }
7871 if eval test -f "${includedir}/elfclass.h" -a -f "${includedir}/fcntlbits.h"
7873 old_glibc_headers=yes
7875 old_glibc_headers=no
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $old_glibc_headers" >&5
7878 $as_echo "$old_glibc_headers" >&6; }
7879 if test ${old_glibc_headers} = yes; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&5
7881 $as_echo "$as_me: WARNING: *** During \"make install\" old headers from glibc 2.0.x will" >&2;}
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** be removed." >&5
7883 $as_echo "$as_me: WARNING: *** be removed." >&2;}
7905 if test $shared = default; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fPIC is default" >&5
7910 $as_echo_n "checking whether -fPIC is default... " >&6; }
7911 if ${libc_cv_pic_default+:} false; then :
7912 $as_echo_n "(cached) " >&6
7914 libc_cv_pic_default=yes
7915 cat > conftest.c <<EOF
7916 #if defined __PIC__ || defined __pic__ || defined PIC || defined pic
7917 # error PIC is default.
7920 if eval "${CC-cc} -S conftest.c 2>&5 1>&5"; then
7921 libc_cv_pic_default=no
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_pic_default" >&5
7926 $as_echo "$libc_cv_pic_default" >&6; }
7938 if test "`(cd $srcdir; pwd)`" = "`pwd`"; then
7941 config_makefile=Makefile
7944 VERSION=`sed -n -e 's/^#define VERSION "\([^"]*\)"/\1/p' < $srcdir/version.h`
7945 RELEASE=`sed -n -e 's/^#define RELEASE "\([^"]*\)"/\1/p' < $srcdir/version.h`
7949 ac_config_files="$ac_config_files config.make ${config_makefile}"
7951 ac_config_commands="$ac_config_commands default"
7953 cat >confcache <<\_ACEOF
7954 # This file is a shell script that caches the results of configure
7955 # tests run on this system so they can be shared between configure
7956 # scripts and configure runs, see configure's option --config-cache.
7957 # It is not useful on other systems. If it contains results you don't
7958 # want to keep, you may remove or edit it.
7960 # config.status only pays attention to the cache file if you give it
7961 # the --recheck option to rerun configure.
7963 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7964 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7969 # The following way of writing the cache mishandles newlines in values,
7970 # but we know of no workaround that is simple, portable, and efficient.
7971 # So, we kill variables containing newlines.
7972 # Ultrix sh set writes to stderr and can't be redirected directly,
7973 # and sets the high bit in the cache file unless we assign to the vars.
7975 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7976 eval ac_val=\$$ac_var
7980 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7981 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7984 _ | IFS | as_nl) ;; #(
7985 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7986 *) { eval $ac_var=; unset $ac_var;} ;;
7992 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7993 *${as_nl}ac_space=\ *)
7994 # `set' does not quote correctly, so add quotes: double-quote
7995 # substitution turns \\\\ into \\, and sed turns \\ into \.
7998 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8001 # `set' quotes correctly as required by POSIX, so do not add quotes.
8002 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8011 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8013 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8015 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8016 if test -w "$cache_file"; then
8017 if test "x$cache_file" != "x/dev/null"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8019 $as_echo "$as_me: updating cache $cache_file" >&6;}
8020 if test ! -f "$cache_file" || test -h "$cache_file"; then
8021 cat confcache >"$cache_file"
8023 case $cache_file in #(
8025 mv -f confcache "$cache_file"$$ &&
8026 mv -f "$cache_file"$$ "$cache_file" ;; #(
8028 mv -f confcache "$cache_file" ;;
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8034 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8039 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8040 # Let make expand exec_prefix.
8041 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8043 DEFS=-DHAVE_CONFIG_H
8048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8049 # 1. Remove the extension, and $U if already installed.
8050 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8051 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8052 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8053 # will be set to the directory where LIBOBJS objects are built.
8054 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8055 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8059 LTLIBOBJS=$ac_ltlibobjs
8063 : "${CONFIG_STATUS=./config.status}"
8065 ac_clean_files_save=$ac_clean_files
8066 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8068 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8070 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8072 # Generated by $as_me.
8073 # Run this file to recreate the current configuration.
8074 # Compiler output produced by configure, useful for debugging
8075 # configure, is in config.log if it exists.
8081 SHELL=\${CONFIG_SHELL-$SHELL}
8084 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8085 ## -------------------- ##
8086 ## M4sh Initialization. ##
8087 ## -------------------- ##
8089 # Be more Bourne compatible
8090 DUALCASE=1; export DUALCASE # for MKS sh
8091 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8094 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8095 # is contrary to our usage. Disable this feature.
8096 alias -g '${1+"$@"}'='"$@"'
8097 setopt NO_GLOB_SUBST
8099 case `(set -o) 2>/dev/null` in #(
8111 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8112 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8113 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8114 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8115 # Prefer a ksh shell builtin over an external printf program on Solaris,
8116 # but without wasting forks for bash or zsh.
8117 if test -z "$BASH_VERSION$ZSH_VERSION" \
8118 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8119 as_echo='print -r --'
8120 as_echo_n='print -rn --'
8121 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8122 as_echo='printf %s\n'
8123 as_echo_n='printf %s'
8125 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8126 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8127 as_echo_n='/usr/ucb/echo -n'
8129 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8130 as_echo_n_body='eval
8134 expr "X$arg" : "X\\(.*\\)$as_nl";
8135 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8137 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8139 export as_echo_n_body
8140 as_echo_n='sh -c $as_echo_n_body as_echo'
8143 as_echo='sh -c $as_echo_body as_echo'
8146 # The user is always right.
8147 if test "${PATH_SEPARATOR+set}" != set; then
8149 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8150 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8157 # We need space, tab and new line, in precisely that order. Quoting is
8158 # there to prevent editors from complaining about space-tab.
8159 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8160 # splitting by setting IFS to empty value.)
8163 # Find who we are. Look in the path if we contain no directory separator.
8166 *[\\/]* ) as_myself=$0 ;;
8167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8171 test -z "$as_dir" && as_dir=.
8172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8178 # We did not find ourselves, most probably we were run as `sh COMMAND'
8179 # in which case we are not to be found in the path.
8180 if test "x$as_myself" = x; then
8183 if test ! -f "$as_myself"; then
8184 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8188 # Unset variables that we do not need and which cause bugs (e.g. in
8189 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8190 # suppresses any "Segmentation fault" message there. '((' could
8191 # trigger a bug in pdksh 5.2.14.
8192 for as_var in BASH_ENV ENV MAIL MAILPATH
8193 do eval test x\${$as_var+set} = xset \
8194 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8207 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8210 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8211 # ----------------------------------------
8212 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8213 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8214 # script with STATUS, using 1 if that was 0.
8217 as_status=$1; test $as_status -eq 0 && as_status=1
8219 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8220 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8222 $as_echo "$as_me: error: $2" >&2
8223 as_fn_exit $as_status
8227 # as_fn_set_status STATUS
8228 # -----------------------
8229 # Set $? to STATUS, without forking.
8233 } # as_fn_set_status
8237 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8247 # Portably unset VAR.
8250 { eval $1=; unset $1;}
8252 as_unset=as_fn_unset
8253 # as_fn_append VAR VALUE
8254 # ----------------------
8255 # Append the text in VALUE to the end of the definition contained in VAR. Take
8256 # advantage of any shell optimizations that allow amortized linear growth over
8257 # repeated appends, instead of the typical quadratic growth present in naive
8259 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8260 eval 'as_fn_append ()
8271 # as_fn_arith ARG...
8272 # ------------------
8273 # Perform arithmetic evaluation on the ARGs, and store the result in the
8274 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8275 # must be portable across $(()) and expr.
8276 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8277 eval 'as_fn_arith ()
8284 as_val=`expr "$@" || test $? -eq 1`
8289 if expr a : '\(a\)' >/dev/null 2>&1 &&
8290 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8296 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8297 as_basename=basename
8302 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8308 as_me=`$as_basename -- "$0" ||
8309 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8310 X"$0" : 'X\(//\)$' \| \
8311 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8313 sed '/^.*\/\([^/][^/]*\)\/*$/{
8327 # Avoid depending upon Character Ranges.
8328 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8329 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8330 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8331 as_cr_digits='0123456789'
8332 as_cr_alnum=$as_cr_Letters$as_cr_digits
8334 ECHO_C= ECHO_N= ECHO_T=
8335 case `echo -n x` in #(((((
8337 case `echo 'xy\c'` in
8338 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8340 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8347 rm -f conf$$ conf$$.exe conf$$.file
8348 if test -d conf$$.dir; then
8349 rm -f conf$$.dir/conf$$.file
8352 mkdir conf$$.dir 2>/dev/null
8354 if (echo >conf$$.file) 2>/dev/null; then
8355 if ln -s conf$$.file conf$$ 2>/dev/null; then
8357 # ... but there are two gotchas:
8358 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8359 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8360 # In both cases, we have to default to `cp -p'.
8361 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8363 elif ln conf$$.file conf$$ 2>/dev/null; then
8371 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8372 rmdir conf$$.dir 2>/dev/null
8377 # Create "$as_dir" as a directory, including parents if necessary.
8382 -*) as_dir=./$as_dir;;
8384 test -d "$as_dir" || eval $as_mkdir_p || {
8388 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8389 *) as_qdir=$as_dir;;
8391 as_dirs="'$as_qdir' $as_dirs"
8392 as_dir=`$as_dirname -- "$as_dir" ||
8393 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8394 X"$as_dir" : 'X\(//\)[^/]' \| \
8395 X"$as_dir" : 'X\(//\)$' \| \
8396 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8397 $as_echo X"$as_dir" |
8398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8415 test -d "$as_dir" && break
8417 test -z "$as_dirs" || eval "mkdir $as_dirs"
8418 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8422 if mkdir -p . 2>/dev/null; then
8423 as_mkdir_p='mkdir -p "$as_dir"'
8425 test -d ./-p && rmdir ./-p
8429 if test -x / >/dev/null 2>&1; then
8432 if ls -dL / >/dev/null 2>&1; then
8439 if test -d "$1"; then
8445 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8446 ???[sx]*):;;*)false;;esac;fi
8450 as_executable_p=$as_test_x
8452 # Sed expression to map a string onto a valid CPP name.
8453 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8455 # Sed expression to map a string onto a valid variable name.
8456 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8460 ## ----------------------------------- ##
8461 ## Main body of $CONFIG_STATUS script. ##
8462 ## ----------------------------------- ##
8464 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8467 # Save the log message, to keep $0 and so on meaningful, and to
8468 # report actual input values of CONFIG_FILES etc. instead of their
8469 # values after options handling.
8471 This file was extended by GNU C Library $as_me (see version.h), which was
8472 generated by GNU Autoconf 2.68. Invocation command line was
8474 CONFIG_FILES = $CONFIG_FILES
8475 CONFIG_HEADERS = $CONFIG_HEADERS
8476 CONFIG_LINKS = $CONFIG_LINKS
8477 CONFIG_COMMANDS = $CONFIG_COMMANDS
8480 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8485 case $ac_config_files in *"
8486 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8489 case $ac_config_headers in *"
8490 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8495 # Files that config.status was made for.
8496 config_files="$ac_config_files"
8497 config_headers="$ac_config_headers"
8498 config_commands="$ac_config_commands"
8502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8504 \`$as_me' instantiates files and other configuration actions
8505 from templates according to the current configuration. Unless the files
8506 and actions are specified as TAGs, all are instantiated by default.
8508 Usage: $0 [OPTION]... [TAG]...
8510 -h, --help print this help, then exit
8511 -V, --version print version number and configuration settings, then exit
8512 --config print configuration, then exit
8513 -q, --quiet, --silent
8514 do not print progress messages
8515 -d, --debug don't remove temporary files
8516 --recheck update $as_me by reconfiguring in the same conditions
8517 --file=FILE[:TEMPLATE]
8518 instantiate the configuration file FILE
8519 --header=FILE[:TEMPLATE]
8520 instantiate the configuration header FILE
8522 Configuration files:
8525 Configuration headers:
8528 Configuration commands:
8531 Report bugs to <http://sourceware.org/bugzilla/>.
8532 GNU C Library home page: <http://www.gnu.org/software/glibc/>.
8533 General help using GNU software: <http://www.gnu.org/gethelp/>."
8536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8537 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8539 GNU C Library config.status (see version.h)
8540 configured by $0, generated by GNU Autoconf 2.68,
8541 with options \\"\$ac_cs_config\\"
8543 Copyright (C) 2010 Free Software Foundation, Inc.
8544 This config.status script is free software; the Free Software Foundation
8545 gives unlimited permission to copy, distribute and modify it."
8551 test -n "\$AWK" || AWK=awk
8554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8555 # The default lists apply if the user does not specify any file.
8561 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8562 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8578 # Handling of the options.
8579 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8581 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8582 $as_echo "$ac_cs_version"; exit ;;
8583 --config | --confi | --conf | --con | --co | --c )
8584 $as_echo "$ac_cs_config"; exit ;;
8585 --debug | --debu | --deb | --de | --d | -d )
8587 --file | --fil | --fi | --f )
8590 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8591 '') as_fn_error $? "missing file argument" ;;
8593 as_fn_append CONFIG_FILES " '$ac_optarg'"
8594 ac_need_defaults=false;;
8595 --header | --heade | --head | --hea )
8598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8600 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8601 ac_need_defaults=false;;
8603 # Conflict between --help and --header
8604 as_fn_error $? "ambiguous option: \`$1'
8605 Try \`$0 --help' for more information.";;
8606 --help | --hel | -h )
8607 $as_echo "$ac_cs_usage"; exit ;;
8608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8609 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8613 -*) as_fn_error $? "unrecognized option: \`$1'
8614 Try \`$0 --help' for more information." ;;
8616 *) as_fn_append ac_config_targets " $1"
8617 ac_need_defaults=false ;;
8623 ac_configure_extra_args=
8625 if $ac_cs_silent; then
8627 ac_configure_extra_args="$ac_configure_extra_args --silent"
8631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8632 if \$ac_cs_recheck; then
8633 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8635 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8636 CONFIG_SHELL='$SHELL'
8642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8646 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8647 ## Running $as_me. ##
8653 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8657 config_vars='$config_vars'
8661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8663 # Handling of arguments.
8664 for ac_config_target in $ac_config_targets
8666 case $ac_config_target in
8667 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8668 "config.make") CONFIG_FILES="$CONFIG_FILES config.make" ;;
8669 "${config_makefile}") CONFIG_FILES="$CONFIG_FILES ${config_makefile}" ;;
8670 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8672 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8677 # If the user did not use the arguments to specify the items to instantiate,
8678 # then the envvar interface is used. Set only those that are not.
8679 # We use the long form for the default assignment because of an extremely
8680 # bizarre bug on SunOS 4.1.3.
8681 if $ac_need_defaults; then
8682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8687 # Have a temporary directory for convenience. Make it in the build tree
8688 # simply because there is no reason against having it here, and in addition,
8689 # creating and moving files from /tmp can sometimes cause problems.
8690 # Hook for its removal unless debugging.
8691 # Note that there is a small window in which the directory will not be cleaned:
8692 # after its creation but before its name has been assigned to `$tmp'.
8696 trap 'exit_status=$?
8698 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8700 trap 'as_fn_exit 1' 1 2 13 15
8702 # Create a (secure) tmp directory for tmp files.
8705 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8709 tmp=./conf$$-$RANDOM
8710 (umask 077 && mkdir "$tmp")
8711 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8714 # Set up the scripts for CONFIG_FILES section.
8715 # No need to generate them if there are no CONFIG_FILES.
8716 # This happens for instance with `./config.status config.h'.
8717 if test -n "$CONFIG_FILES"; then
8720 ac_cr=`echo X | tr X '\015'`
8721 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8722 # But we know of no other shell where ac_cr would be empty at this
8723 # point, so we can use a bashism as a fallback.
8724 if test "x$ac_cr" = x; then
8725 eval ac_cr=\$\'\\r\'
8727 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8728 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8734 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8739 echo "cat >conf$$subs.awk <<_ACEOF" &&
8740 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8744 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8746 for ac_last_try in false false false false false :; do
8747 . ./conf$$subs.sh ||
8748 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8750 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8751 if test $ac_delim_n = $ac_delim_num; then
8753 elif $ac_last_try; then
8754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8756 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8762 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8766 s/^/S["/; s/!.*/"]=/
8776 s/\(.\{148\}\)..*/\1/
8778 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8783 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8790 s/\(.\{148\}\)..*/\1/
8792 s/["\\]/\\&/g; s/^/"/; s/$/"/
8796 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8801 ' <conf$$subs.awk | sed '
8806 ' >>$CONFIG_STATUS || ac_write_fail=1
8807 rm -f conf$$subs.awk
8808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8810 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8811 for (key in S) S_is_set[key] = 1
8817 nfields = split(line, field, "@")
8819 len = length(field[1])
8820 for (i = 2; i < nfields; i++) {
8822 keylen = length(key)
8823 if (S_is_set[key]) {
8825 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8826 len += length(value) + length(field[++i])
8837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8838 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8839 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8842 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8843 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8846 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8847 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8848 # trailing colons and then remove the whole line if VPATH becomes empty
8849 # (actually we leave an empty line to preserve line numbers).
8850 if test "x$srcdir" = x.; then
8851 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8870 fi # test -n "$CONFIG_FILES"
8872 # Set up the scripts for CONFIG_HEADERS section.
8873 # No need to generate them if there are no CONFIG_HEADERS.
8874 # This happens for instance with `./config.status Makefile'.
8875 if test -n "$CONFIG_HEADERS"; then
8876 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8880 # Transform confdefs.h into an awk script `defines.awk', embedded as
8881 # here-document in config.status, that substitutes the proper values into
8882 # config.h.in to produce config.h.
8884 # Create a delimiter string that does not exist in confdefs.h, to ease
8885 # handling of long lines.
8887 for ac_last_try in false false :; do
8888 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8889 if test -z "$ac_tt"; then
8891 elif $ac_last_try; then
8892 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8894 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8898 # For the awk script, D is an array of macro values keyed by name,
8899 # likewise P contains macro parameters if any. Preserve backslash
8900 # newline sequences.
8902 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8904 s/.\{148\}/&'"$ac_delim"'/g
8907 s/^[ ]*#[ ]*define[ ][ ]*/ /
8914 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8916 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8921 D["\1"]=" \3\\\\\\n"\\/p
8923 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8928 s/.\{148\}/&'"$ac_delim"'/g
8933 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8936 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8938 ' <confdefs.h | sed '
8939 s/'"$ac_delim"'/"\\\
8940 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8943 for (key in D) D_is_set[key] = 1
8946 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8948 split(line, arg, " ")
8949 if (arg[1] == "#") {
8953 defundef = substr(arg[1], 2)
8956 split(mac1, mac2, "(") #)
8958 prefix = substr(line, 1, index(line, defundef) - 1)
8959 if (D_is_set[macro]) {
8960 # Preserve the white space surrounding the "#".
8961 print prefix "define", macro P[macro] D[macro]
8964 # Replace #undef with comments. This is necessary, for example,
8965 # in the case of _POSIX_SOURCE, which is predefined and required
8966 # on some systems where configure will not decide to define it.
8967 if (defundef == "undef") {
8968 print "/*", prefix defundef, macro, "*/"
8976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8977 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8978 fi # test -n "$CONFIG_HEADERS"
8981 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8986 :[FHLC]) ac_mode=$ac_tag; continue;;
8988 case $ac_mode$ac_tag in
8990 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8991 :[FH]-) ac_tag=-:-;;
8992 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9009 -) ac_f="$ac_tmp/stdin";;
9010 *) # Look for the file first in the build tree, then in the source tree
9011 # (if the path is not absolute). The absolute path cannot be DOS-style,
9012 # because $ac_f cannot contain `:'.
9016 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9018 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9020 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9021 as_fn_append ac_file_inputs " '$ac_f'"
9024 # Let's still pretend it is `configure' which instantiates (i.e., don't
9025 # use $as_me), people would be surprised to read:
9026 # /* config.h. Generated by config.status. */
9027 configure_input='Generated from '`
9028 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9030 if test x"$ac_file" != x-; then
9031 configure_input="$ac_file. $configure_input"
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9033 $as_echo "$as_me: creating $ac_file" >&6;}
9035 # Neutralize special characters interpreted by sed in replacement strings.
9036 case $configure_input in #(
9037 *\&* | *\|* | *\\* )
9038 ac_sed_conf_input=`$as_echo "$configure_input" |
9039 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9040 *) ac_sed_conf_input=$configure_input;;
9044 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9050 ac_dir=`$as_dirname -- "$ac_file" ||
9051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9052 X"$ac_file" : 'X\(//\)[^/]' \| \
9053 X"$ac_file" : 'X\(//\)$' \| \
9054 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9055 $as_echo X"$ac_file" |
9056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9073 as_dir="$ac_dir"; as_fn_mkdir_p
9077 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9079 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9080 # A ".." for each directory in $ac_dir_suffix.
9081 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9082 case $ac_top_builddir_sub in
9083 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9084 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9087 ac_abs_top_builddir=$ac_pwd
9088 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9089 # for backward compatibility:
9090 ac_top_builddir=$ac_top_build_prefix
9093 .) # We are building in place.
9095 ac_top_srcdir=$ac_top_builddir_sub
9096 ac_abs_top_srcdir=$ac_pwd ;;
9097 [\\/]* | ?:[\\/]* ) # Absolute name.
9098 ac_srcdir=$srcdir$ac_dir_suffix;
9099 ac_top_srcdir=$srcdir
9100 ac_abs_top_srcdir=$srcdir ;;
9102 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9103 ac_top_srcdir=$ac_top_build_prefix$srcdir
9104 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9106 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9116 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9117 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9122 # If the template does not know about datarootdir, expand it.
9123 # FIXME: This hack should be removed a few years after 2.60.
9124 ac_datarootdir_hack=; ac_datarootdir_seen=
9135 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9136 *datarootdir*) ac_datarootdir_seen=yes;;
9137 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9139 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9142 ac_datarootdir_hack='
9143 s&@datadir@&$datadir&g
9144 s&@docdir@&$docdir&g
9145 s&@infodir@&$infodir&g
9146 s&@localedir@&$localedir&g
9147 s&@mandir@&$mandir&g
9148 s&\\\${datarootdir}&$datarootdir&g' ;;
9152 # Neutralize VPATH when `$srcdir' = `.'.
9153 # Shell code in configure.ac might set extrasub.
9154 # FIXME: do we really want to maintain this feature?
9155 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9156 ac_sed_extra="$ac_vpsub
9159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9161 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9162 s|@configure_input@|$ac_sed_conf_input|;t t
9163 s&@top_builddir@&$ac_top_builddir_sub&;t t
9164 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9165 s&@srcdir@&$ac_srcdir&;t t
9166 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9167 s&@top_srcdir@&$ac_top_srcdir&;t t
9168 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9169 s&@builddir@&$ac_builddir&;t t
9170 s&@abs_builddir@&$ac_abs_builddir&;t t
9171 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9172 s&@INSTALL@&$ac_INSTALL&;t t
9173 $ac_datarootdir_hack
9175 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9176 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9179 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9181 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9183 which seems to be undefined. Please make sure it is defined" >&5
9184 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9185 which seems to be undefined. Please make sure it is defined" >&2;}
9187 rm -f "$ac_tmp/stdin"
9189 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9190 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9198 if test x"$ac_file" != x-; then
9200 $as_echo "/* $configure_input */" \
9201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9202 } >"$ac_tmp/config.h" \
9203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9204 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9206 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9209 mv "$ac_tmp/config.h" "$ac_file" \
9210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9213 $as_echo "/* $configure_input */" \
9214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9215 || as_fn_error $? "could not create -" "$LINENO" 5
9219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9220 $as_echo "$as_me: executing $ac_file commands" >&6;}
9225 case $ac_file$ac_mode in
9227 case $CONFIG_FILES in *config.make*)
9228 echo "$config_vars" >> config.make;;
9230 test -d bits || mkdir bits ;;
9238 ac_clean_files=$ac_clean_files_save
9240 test $ac_write_fail = 0 ||
9241 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9244 # configure is writing to config.log, and then calls config.status.
9245 # config.status does its own redirection, appending to config.log.
9246 # Unfortunately, on DOS this fails, as config.log is still kept open
9247 # by configure, so config.status won't be able to write to it; its
9248 # output is simply discarded. So we exec the FD to /dev/null,
9249 # effectively closing config.log, so it can be properly (re)opened and
9250 # appended to by config.status. When coming back to configure, we
9251 # need to make the FD available again.
9252 if test "$no_create" != yes; then
9254 ac_config_status_args=
9255 test "$silent" = yes &&
9256 ac_config_status_args="$ac_config_status_args --quiet"
9258 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9260 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9261 # would make configure fail if this is the last instruction.
9262 $ac_cs_success || as_fn_exit 1
9266 # CONFIG_SUBDIRS section.
9268 if test "$no_recursion" != yes; then
9270 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
9271 # so they do not pile up.
9272 ac_sub_configure_args=
9274 eval "set x $ac_configure_args"
9278 if test -n "$ac_prev"; then
9283 -cache-file | --cache-file | --cache-fil | --cache-fi \
9284 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
9285 ac_prev=cache_file ;;
9286 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
9287 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
9290 --config-cache | -C)
9292 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
9294 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9296 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
9298 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9300 --disable-option-checking)
9304 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9306 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
9310 # Always prepend --prefix to ensure using the same prefix
9311 # in subdir configurations.
9312 ac_arg="--prefix=$prefix"
9314 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9316 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
9319 if test "$silent" = yes; then
9320 ac_sub_configure_args="--silent $ac_sub_configure_args"
9323 # Always prepend --disable-option-checking to silence warnings, since
9324 # different subdirs can have different --enable and --with options.
9325 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
9328 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
9330 # Do not complain, so a configure script can configure whichever
9331 # parts of a large source tree are present.
9332 test -d "$srcdir/$ac_dir" || continue
9334 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
9335 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
9336 $as_echo "$ac_msg" >&6
9337 as_dir="$ac_dir"; as_fn_mkdir_p
9341 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9343 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9344 # A ".." for each directory in $ac_dir_suffix.
9345 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9346 case $ac_top_builddir_sub in
9347 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9348 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9351 ac_abs_top_builddir=$ac_pwd
9352 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9353 # for backward compatibility:
9354 ac_top_builddir=$ac_top_build_prefix
9357 .) # We are building in place.
9359 ac_top_srcdir=$ac_top_builddir_sub
9360 ac_abs_top_srcdir=$ac_pwd ;;
9361 [\\/]* | ?:[\\/]* ) # Absolute name.
9362 ac_srcdir=$srcdir$ac_dir_suffix;
9363 ac_top_srcdir=$srcdir
9364 ac_abs_top_srcdir=$srcdir ;;
9366 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9367 ac_top_srcdir=$ac_top_build_prefix$srcdir
9368 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9370 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9375 # Check for guested configure; otherwise get Cygnus style configure.
9376 if test -f "$ac_srcdir/configure.gnu"; then
9377 ac_sub_configure=$ac_srcdir/configure.gnu
9378 elif test -f "$ac_srcdir/configure"; then
9379 ac_sub_configure=$ac_srcdir/configure
9380 elif test -f "$ac_srcdir/configure.in"; then
9381 # This should be Cygnus configure.
9382 ac_sub_configure=$ac_aux_dir/configure
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
9385 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
9389 # The recursion is here.
9390 if test -n "$ac_sub_configure"; then
9391 # Make the cache file name correct relative to the subdirectory.
9393 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
9395 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
9398 { $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
9399 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
9400 # The eval makes quoting arguments work.
9401 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
9402 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
9403 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
9409 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9411 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}