2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/version.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
704 COMMENT_IF_NO_POD2MAN
708 ac_precious_vars='build_alias
719 # Initialize some variables set by options.
721 ac_init_version=false
722 # The variables have the same names as the options, with
723 # dashes changed to underlines.
731 program_transform_name=s,x,x,
739 # Installation directory options.
740 # These are left unexpanded so users can "make install exec_prefix=/foo"
741 # and all the variables that are supposed to be based on exec_prefix
742 # by default will actually change.
743 # Use braces instead of parens because sh, perl, etc. also accept them.
744 # (The list follows the same order as the GNU Coding Standards.)
745 bindir='${exec_prefix}/bin'
746 sbindir='${exec_prefix}/sbin'
747 libexecdir='${exec_prefix}/libexec'
748 datarootdir='${prefix}/share'
749 datadir='${datarootdir}'
750 sysconfdir='${prefix}/etc'
751 sharedstatedir='${prefix}/com'
752 localstatedir='${prefix}/var'
753 includedir='${prefix}/include'
754 oldincludedir='/usr/include'
755 docdir='${datarootdir}/doc/${PACKAGE}'
756 infodir='${datarootdir}/info'
761 libdir='${exec_prefix}/lib'
762 localedir='${datarootdir}/locale'
763 mandir='${datarootdir}/man'
769 # If the previous option needs an argument, assign it.
770 if test -n "$ac_prev"; then
771 eval $ac_prev=\$ac_option
777 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
781 # Accept the important Cygnus configure options, so we can diagnose typos.
783 case $ac_dashdash$ac_option in
787 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 -build | --build | --buil | --bui | --bu)
793 ac_prev=build_alias ;;
794 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
795 build_alias=$ac_optarg ;;
797 -cache-file | --cache-file | --cache-fil | --cache-fi \
798 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
799 ac_prev=cache_file ;;
800 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
801 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
802 cache_file=$ac_optarg ;;
805 cache_file=config.cache ;;
807 -datadir | --datadir | --datadi | --datad)
809 -datadir=* | --datadir=* | --datadi=* | --datad=*)
810 datadir=$ac_optarg ;;
812 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
813 | --dataroo | --dataro | --datar)
814 ac_prev=datarootdir ;;
815 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
816 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
817 datarootdir=$ac_optarg ;;
819 -disable-* | --disable-*)
820 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
821 # Reject names that are not valid shell variable names.
822 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
824 { (exit 1); exit 1; }; }
825 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
826 eval enable_$ac_feature=no ;;
828 -docdir | --docdir | --docdi | --doc | --do)
830 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
833 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
838 -enable-* | --enable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=\$ac_optarg ;;
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
860 -help | --help | --hel | --he | -h)
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 htmldir=$ac_optarg ;;
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
890 -libdir | --libdir | --libdi | --libd)
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
902 -localedir | --localedir | --localedi | --localed | --locale)
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920 # Obsolete; use --without-fp.
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981 -psdir | --psdir | --psdi | --psd | --ps)
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 sbindir=$ac_optarg ;;
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 sharedstatedir=$ac_optarg ;;
1007 -site | --site | --sit)
1009 -site=* | --site=* | --sit=*)
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1036 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039 { echo "$as_me: error: invalid package name: $ac_package" >&2
1040 { (exit 1); exit 1; }; }
1041 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1042 eval with_$ac_package=\$ac_optarg ;;
1044 -without-* | --without-*)
1045 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1046 # Reject names that are not valid shell variable names.
1047 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048 { echo "$as_me: error: invalid package name: $ac_package" >&2
1049 { (exit 1); exit 1; }; }
1050 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1051 eval with_$ac_package=no ;;
1054 # Obsolete; use --with-x.
1057 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1058 | --x-incl | --x-inc | --x-in | --x-i)
1059 ac_prev=x_includes ;;
1060 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1061 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1062 x_includes=$ac_optarg ;;
1064 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1065 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1066 ac_prev=x_libraries ;;
1067 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1068 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1069 x_libraries=$ac_optarg ;;
1071 -*) { echo "$as_me: error: unrecognized option: $ac_option
1072 Try \`$0 --help' for more information." >&2
1073 { (exit 1); exit 1; }; }
1077 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1081 { (exit 1); exit 1; }; }
1082 eval $ac_envvar=\$ac_optarg
1083 export $ac_envvar ;;
1086 # FIXME: should be removed in autoconf 3.0.
1087 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1088 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1089 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1090 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1096 if test -n "$ac_prev"; then
1097 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1098 { echo "$as_me: error: missing argument to $ac_option" >&2
1099 { (exit 1); exit 1; }; }
1102 # Be sure to have absolute directory names.
1103 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1104 datadir sysconfdir sharedstatedir localstatedir includedir \
1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1106 libdir localedir mandir
1108 eval ac_val=\$$ac_var
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1113 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1114 { (exit 1); exit 1; }; }
1117 # There might be people who depend on the old broken behavior: `$host'
1118 # used to hold the argument of --host etc.
1119 # FIXME: To remove some day.
1122 target=$target_alias
1124 # FIXME: To remove some day.
1125 if test "x$host_alias" != x; then
1126 if test "x$build_alias" = x; then
1127 cross_compiling=maybe
1128 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1129 If a cross compiler is detected then cross compile mode will be used." >&2
1130 elif test "x$build_alias" != "x$host_alias"; then
1136 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138 test "$silent" = yes && exec 6>/dev/null
1141 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1142 ac_ls_di=`ls -di .` &&
1143 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1144 { echo "$as_me: error: Working directory cannot be determined" >&2
1145 { (exit 1); exit 1; }; }
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 { echo "$as_me: error: pwd does not report name of working directory" >&2
1148 { (exit 1); exit 1; }; }
1151 # Find the source files, if location was not specified.
1152 if test -z "$srcdir"; then
1153 ac_srcdir_defaulted=yes
1154 # Try the directory containing this script, then the parent directory.
1155 ac_confdir=`$as_dirname -- "$0" ||
1156 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1157 X"$0" : 'X\(//\)[^/]' \| \
1158 X"$0" : 'X\(//\)$' \| \
1159 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1183 ac_srcdir_defaulted=no
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1187 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1188 { (exit 1); exit 1; }; }
1190 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1193 { (exit 1); exit 1; }; }
1195 # When building in place, set srcdir=.
1196 if test "$ac_abs_confdir" = "$ac_pwd"; then
1199 # Remove unnecessary trailing slashes from srcdir.
1200 # Double slashes in file names in object file debugging info
1201 # mess up M-x gdb in Emacs.
1203 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 for ac_var in $ac_precious_vars; do
1206 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_env_${ac_var}_value=\$${ac_var}
1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1213 # Report the --help message.
1215 if test "$ac_init_help" = "long"; then
1216 # Omit some internal or obsolete options to make the list less imposing.
1217 # This message is too long to be a string in the A/UX 3.1 sh.
1219 \`configure' configures this package to adapt to many kinds of systems.
1221 Usage: $0 [OPTION]... [VAR=VALUE]...
1223 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1224 VAR=VALUE. See below for descriptions of some of the useful variables.
1226 Defaults for the options are specified in brackets.
1229 -h, --help display this help and exit
1230 --help=short display options specific to this package
1231 --help=recursive display the short help of all the included packages
1232 -V, --version display version information and exit
1233 -q, --quiet, --silent do not print \`checking...' messages
1234 --cache-file=FILE cache test results in FILE [disabled]
1235 -C, --config-cache alias for \`--cache-file=config.cache'
1236 -n, --no-create do not create output files
1237 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239 Installation directories:
1240 --prefix=PREFIX install architecture-independent files in PREFIX
1241 [$ac_default_prefix]
1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1245 By default, \`make install' will install all the files in
1246 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1247 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1248 for instance \`--prefix=\$HOME'.
1250 For better control, use the options below.
1252 Fine tuning of the installation directories:
1253 --bindir=DIR user executables [EPREFIX/bin]
1254 --sbindir=DIR system admin executables [EPREFIX/sbin]
1255 --libexecdir=DIR program executables [EPREFIX/libexec]
1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1259 --libdir=DIR object code libraries [EPREFIX/lib]
1260 --includedir=DIR C header files [PREFIX/include]
1261 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1262 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1263 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1264 --infodir=DIR info documentation [DATAROOTDIR/info]
1265 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1266 --mandir=DIR man documentation [DATAROOTDIR/man]
1267 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1268 --htmldir=DIR html documentation [DOCDIR]
1269 --dvidir=DIR dvi documentation [DOCDIR]
1270 --pdfdir=DIR pdf documentation [DOCDIR]
1271 --psdir=DIR ps documentation [DOCDIR]
1277 --build=BUILD configure for building on BUILD [guessed]
1278 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1282 if test -n "$ac_init_help"; then
1287 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1288 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1289 --disable-opie disable support for opie or s/key FTP login
1290 --disable-digest disable support for HTTP digest authorization
1291 --disable-ntlm disable support for NTLM authorization
1292 --disable-debug disable support for debugging output
1293 --disable-largefile omit support for large files
1294 --disable-rpath do not hardcode runtime library paths
1295 --disable-ipv6 disable IPv6 support
1296 --disable-nls do not use Native Language Support
1299 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1300 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1301 --without-ssl disable SSL autodetection
1302 --with-gnu-ld assume the C compiler uses GNU ld default=no
1303 --with-libgnutls-prefix[=DIR] search for libgnutls in DIR/include and DIR/lib
1304 --without-libgnutls-prefix don't search for libgnutls in includedir and libdir
1305 --with-libssl-prefix[=DIR] search for libssl in DIR/include and DIR/lib
1306 --without-libssl-prefix don't search for libssl in includedir and libdir
1308 Some influential environment variables:
1309 CC C compiler command
1310 CFLAGS C compiler flags
1311 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1312 nonstandard directory <lib dir>
1313 LIBS libraries to pass to the linker, e.g. -l<library>
1314 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1315 you have headers in a nonstandard directory <include dir>
1318 Use these variables to override the choices made by `configure' or to help
1319 it to find libraries and programs with nonstandard names/locations.
1325 if test "$ac_init_help" = "recursive"; then
1326 # If there are subdirs, report their specific --help.
1327 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1328 test -d "$ac_dir" || continue
1332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1335 # A ".." for each directory in $ac_dir_suffix.
1336 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1337 case $ac_top_builddir_sub in
1338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1342 ac_abs_top_builddir=$ac_pwd
1343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1344 # for backward compatibility:
1345 ac_top_builddir=$ac_top_build_prefix
1348 .) # We are building in place.
1350 ac_top_srcdir=$ac_top_builddir_sub
1351 ac_abs_top_srcdir=$ac_pwd ;;
1352 [\\/]* | ?:[\\/]* ) # Absolute name.
1353 ac_srcdir=$srcdir$ac_dir_suffix;
1354 ac_top_srcdir=$srcdir
1355 ac_abs_top_srcdir=$srcdir ;;
1357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1358 ac_top_srcdir=$ac_top_build_prefix$srcdir
1359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1363 cd "$ac_dir" || { ac_status=$?; continue; }
1364 # Check for guested configure.
1365 if test -f "$ac_srcdir/configure.gnu"; then
1367 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1368 elif test -f "$ac_srcdir/configure"; then
1370 $SHELL "$ac_srcdir/configure" --help=recursive
1372 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1374 cd "$ac_pwd" || { ac_status=$?; break; }
1378 test -n "$ac_init_help" && exit $ac_status
1379 if $ac_init_version; then
1382 generated by GNU Autoconf 2.61
1384 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1385 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1386 This configure script is free software; the Free Software Foundation
1387 gives unlimited permission to copy, distribute and modify it.
1391 cat >config.log <<_ACEOF
1392 This file contains any messages produced by compilers while
1393 running configure, to aid debugging if configure makes a mistake.
1395 It was created by $as_me, which was
1396 generated by GNU Autoconf 2.61. Invocation command line was
1408 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1409 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1410 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1411 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1412 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1414 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1415 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1417 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1418 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1419 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1420 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1421 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1422 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1423 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 test -z "$as_dir" && as_dir=.
1432 echo "PATH: $as_dir"
1448 # Keep a trace of the command line.
1449 # Strip out --no-create and --no-recursion so they do not pile up.
1450 # Strip out --silent because we don't want to record it for future runs.
1451 # Also quote any args containing shell meta-characters.
1452 # Make two passes to allow for proper duplicate-argument suppression.
1456 ac_must_keep_next=false
1462 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1467 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1472 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1473 if test $ac_must_keep_next = true; then
1474 ac_must_keep_next=false # Got value, back to normal.
1477 *=* | --config-cache | -C | -disable-* | --disable-* \
1478 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1479 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1480 | -with-* | --with-* | -without-* | --without-* | --x)
1481 case "$ac_configure_args0 " in
1482 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1485 -* ) ac_must_keep_next=true ;;
1488 ac_configure_args="$ac_configure_args '$ac_arg'"
1493 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1494 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1496 # When interrupted or exit'd, cleanup temporary files, and complete
1497 # config.log. We remove comments because anyway the quotes in there
1498 # would cause problems or look ugly.
1499 # WARNING: Use '\'' to represent an apostrophe within the trap.
1500 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1501 trap 'exit_status=$?
1502 # Save into config.log some information that might help in debugging.
1507 ## ---------------- ##
1508 ## Cache variables. ##
1509 ## ---------------- ##
1512 # The following way of writing the cache mishandles newlines in values,
1514 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1515 eval ac_val=\$$ac_var
1519 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1520 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1523 _ | IFS | as_nl) ;; #(
1524 *) $as_unset $ac_var ;;
1529 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1530 *${as_nl}ac_space=\ *)
1532 "s/'\''/'\''\\\\'\'''\''/g;
1533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1536 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1544 ## ----------------- ##
1545 ## Output variables. ##
1546 ## ----------------- ##
1549 for ac_var in $ac_subst_vars
1551 eval ac_val=\$$ac_var
1553 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1555 echo "$ac_var='\''$ac_val'\''"
1559 if test -n "$ac_subst_files"; then
1561 ## ------------------- ##
1562 ## File substitutions. ##
1563 ## ------------------- ##
1566 for ac_var in $ac_subst_files
1568 eval ac_val=\$$ac_var
1570 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572 echo "$ac_var='\''$ac_val'\''"
1577 if test -s confdefs.h; then
1587 test "$ac_signal" != 0 &&
1588 echo "$as_me: caught signal $ac_signal"
1589 echo "$as_me: exit $exit_status"
1591 rm -f core *.core core.conftest.* &&
1592 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1595 for ac_signal in 1 2 13 15; do
1596 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1600 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1601 rm -f -r conftest* confdefs.h
1603 # Predefined preprocessor variables.
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_NAME "$PACKAGE_NAME"
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1615 cat >>confdefs.h <<_ACEOF
1616 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1620 cat >>confdefs.h <<_ACEOF
1621 #define PACKAGE_STRING "$PACKAGE_STRING"
1625 cat >>confdefs.h <<_ACEOF
1626 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1630 # Let the site file select an alternate cache file if it wants to.
1631 # Prefer explicitly selected file to automatically selected ones.
1632 if test -n "$CONFIG_SITE"; then
1633 set x "$CONFIG_SITE"
1634 elif test "x$prefix" != xNONE; then
1635 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1637 set x "$ac_default_prefix/share/config.site" \
1638 "$ac_default_prefix/etc/config.site"
1643 if test -r "$ac_site_file"; then
1644 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1645 echo "$as_me: loading site script $ac_site_file" >&6;}
1646 sed 's/^/| /' "$ac_site_file" >&5
1651 if test -r "$cache_file"; then
1652 # Some versions of bash will fail to source /dev/null (special
1653 # files actually), so we avoid doing that.
1654 if test -f "$cache_file"; then
1655 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1656 echo "$as_me: loading cache $cache_file" >&6;}
1658 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1659 *) . "./$cache_file";;
1663 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1664 echo "$as_me: creating cache $cache_file" >&6;}
1668 # Check that the precious variables saved in the cache have kept the same
1670 ac_cache_corrupted=false
1671 for ac_var in $ac_precious_vars; do
1672 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1673 eval ac_new_set=\$ac_env_${ac_var}_set
1674 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1675 eval ac_new_val=\$ac_env_${ac_var}_value
1676 case $ac_old_set,$ac_new_set in
1678 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1679 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1680 ac_cache_corrupted=: ;;
1682 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1683 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1684 ac_cache_corrupted=: ;;
1687 if test "x$ac_old_val" != "x$ac_new_val"; then
1688 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1689 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1690 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1691 echo "$as_me: former value: $ac_old_val" >&2;}
1692 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1693 echo "$as_me: current value: $ac_new_val" >&2;}
1694 ac_cache_corrupted=:
1697 # Pass precious variables to config.status.
1698 if test "$ac_new_set" = set; then
1700 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1701 *) ac_arg=$ac_var=$ac_new_val ;;
1703 case " $ac_configure_args " in
1704 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1705 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1709 if $ac_cache_corrupted; then
1710 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1711 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1712 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1713 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1714 { (exit 1); exit 1; }; }
1734 ac_cpp='$CPP $CPPFLAGS'
1735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1780 # This code originates from Ulrich Drepper's AM_WITH_NLS.
1786 # Search path for a program which passes the given test.
1787 # Ulrich Drepper <drepper@cygnus.com>, 1996.
1789 # This file may be copied and used freely without restrictions. It
1790 # can be used in projects which are not available under the GNU Public
1791 # License but which still want to provide support for the GNU gettext
1792 # functionality. Please note that the actual code is *not* freely
1797 # lib-ld.m4 serial 3 (gettext-0.13)
1803 # lib-link.m4 serial 6 (gettext-0.14.3)
1817 # lib-prefix.m4 serial 4 (gettext-0.14.2)
1828 VERSION=`sed -e 's/^.*"\(.*\)";$/\1/' ${srcdir}/src/version.c`
1829 { echo "$as_me:$LINENO: configuring for GNU Wget $VERSION" >&5
1830 echo "$as_me: configuring for GNU Wget $VERSION" >&6;}
1836 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1837 if test -f "$ac_dir/install-sh"; then
1839 ac_install_sh="$ac_aux_dir/install-sh -c"
1841 elif test -f "$ac_dir/install.sh"; then
1843 ac_install_sh="$ac_aux_dir/install.sh -c"
1845 elif test -f "$ac_dir/shtool"; then
1847 ac_install_sh="$ac_aux_dir/shtool install -c"
1851 if test -z "$ac_aux_dir"; then
1852 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1853 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1854 { (exit 1); exit 1; }; }
1857 # These three variables are undocumented and unsupported,
1858 # and are intended to be withdrawn in a future Autoconf release.
1859 # They can cause serious problems if a builder's source tree is in a directory
1860 # whose full name contains unusual characters.
1861 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1862 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1863 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866 # Make sure we can run config.sub.
1867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1868 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1869 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1870 { (exit 1); exit 1; }; }
1872 { echo "$as_me:$LINENO: checking build system type" >&5
1873 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1874 if test "${ac_cv_build+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 ac_build_alias=$build_alias
1878 test "x$ac_build_alias" = x &&
1879 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1880 test "x$ac_build_alias" = x &&
1881 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1882 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1883 { (exit 1); exit 1; }; }
1884 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1885 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1886 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1887 { (exit 1); exit 1; }; }
1890 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1891 echo "${ECHO_T}$ac_cv_build" >&6; }
1892 case $ac_cv_build in
1894 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1895 echo "$as_me: error: invalid value of canonical build" >&2;}
1896 { (exit 1); exit 1; }; };;
1899 ac_save_IFS=$IFS; IFS='-'
1905 # Remember, the first character of IFS is used to create $*,
1906 # except with old shells:
1909 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1912 { echo "$as_me:$LINENO: checking host system type" >&5
1913 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1914 if test "${ac_cv_host+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test "x$host_alias" = x; then
1918 ac_cv_host=$ac_cv_build
1920 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1921 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1922 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1923 { (exit 1); exit 1; }; }
1927 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1928 echo "${ECHO_T}$ac_cv_host" >&6; }
1931 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1932 echo "$as_me: error: invalid value of canonical host" >&2;}
1933 { (exit 1); exit 1; }; };;
1936 ac_save_IFS=$IFS; IFS='-'
1942 # Remember, the first character of IFS is used to create $*,
1943 # except with old shells:
1946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1950 cat >>confdefs.h <<_ACEOF
1951 #define OS_TYPE "$host_os"
1957 # Check whether --with-ssl was given.
1958 if test "${with_ssl+set}" = set; then
1963 # Check whether --enable-opie was given.
1964 if test "${enable_opie+set}" = set; then
1965 enableval=$enable_opie; ENABLE_OPIE=$enableval
1970 test x"${ENABLE_OPIE}" = xyes &&
1971 cat >>confdefs.h <<\_ACEOF
1972 #define ENABLE_OPIE 1
1976 # Check whether --enable-digest was given.
1977 if test "${enable_digest+set}" = set; then
1978 enableval=$enable_digest; ENABLE_DIGEST=$enableval
1983 test x"${ENABLE_DIGEST}" = xyes &&
1984 cat >>confdefs.h <<\_ACEOF
1985 #define ENABLE_DIGEST 1
1989 # Check whether --enable-ntlm was given.
1990 if test "${enable_ntlm+set}" = set; then
1991 enableval=$enable_ntlm; ENABLE_NTLM=$enableval
1997 # Check whether --enable-debug was given.
1998 if test "${enable_debug+set}" = set; then
1999 enableval=$enable_debug; ENABLE_DEBUG=$enableval
2004 test x"${ENABLE_DEBUG}" = xyes &&
2005 cat >>confdefs.h <<\_ACEOF
2006 #define ENABLE_DEBUG 1
2012 case "${ENABLE_OPIE}${ENABLE_DIGEST}" in
2016 if test x"$ENABLE_OPIE" = xyes; then
2017 OPIE_OBJ='ftp-opie.o'
2021 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2022 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2023 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2024 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 cat >conftest.make <<\_ACEOF
2030 @echo '@@@%%%=$(MAKE)=@@@%%%'
2032 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2033 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2035 eval ac_cv_prog_make_${ac_make}_set=yes;;
2037 eval ac_cv_prog_make_${ac_make}_set=no;;
2041 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2042 { echo "$as_me:$LINENO: result: yes" >&5
2043 echo "${ECHO_T}yes" >&6; }
2046 { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048 SET_MAKE="MAKE=${MAKE-make}"
2052 # Find a good install program. We prefer a C program (faster),
2053 # so one script is as good as another. But avoid the broken or
2054 # incompatible versions:
2055 # SysV /etc/install, /usr/sbin/install
2056 # SunOS /usr/etc/install
2057 # IRIX /sbin/install
2059 # AmigaOS /C/install, which installs bootblocks on floppy discs
2060 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2061 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2062 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2063 # OS/2's system install, which has a completely different semantic
2064 # ./install, which can be erroneously created by make from ./install.sh.
2065 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2066 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2067 if test -z "$INSTALL"; then
2068 if test "${ac_cv_path_install+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 # Account for people who put trailing slashes in PATH elements.
2078 ./ | .// | /cC/* | \
2079 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2080 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2083 # OSF1 and SCO ODT 3.0 have their own names for install.
2084 # Don't use installbsd from OSF since it installs stuff as root
2086 for ac_prog in ginstall scoinst install; do
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2089 if test $ac_prog = install &&
2090 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2091 # AIX install. It has an incompatible calling convention.
2093 elif test $ac_prog = install &&
2094 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2095 # program-specific install script used by HP pwplus--don't use.
2098 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2111 if test "${ac_cv_path_install+set}" = set; then
2112 INSTALL=$ac_cv_path_install
2114 # As a last resort, use the slow shell script. Don't cache a
2115 # value for INSTALL within a source directory, because that will
2116 # break other packages using the cache if that directory is
2117 # removed, or if the value is a relative name.
2118 INSTALL=$ac_install_sh
2121 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2122 echo "${ECHO_T}$INSTALL" >&6; }
2124 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2125 # It thinks the first close brace ends the variable substitution.
2126 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2128 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2130 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2134 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
2135 test -z "$CC" && cc_specified=yes
2138 ac_cpp='$CPP $CPPFLAGS'
2139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2142 if test -n "$ac_tool_prefix"; then
2143 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2144 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2147 if test "${ac_cv_prog_CC+set}" = set; then
2148 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 if test -n "$CC"; then
2151 ac_cv_prog_CC="$CC" # Let the user override the test.
2153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 test -z "$as_dir" && as_dir=.
2158 for ac_exec_ext in '' $ac_executable_extensions; do
2159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2160 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2171 if test -n "$CC"; then
2172 { echo "$as_me:$LINENO: result: $CC" >&5
2173 echo "${ECHO_T}$CC" >&6; }
2175 { echo "$as_me:$LINENO: result: no" >&5
2176 echo "${ECHO_T}no" >&6; }
2181 if test -z "$ac_cv_prog_CC"; then
2183 # Extract the first word of "gcc", so it can be a program name with args.
2184 set dummy gcc; ac_word=$2
2185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2187 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 if test -n "$ac_ct_CC"; then
2191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 test -z "$as_dir" && as_dir=.
2198 for ac_exec_ext in '' $ac_executable_extensions; do
2199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2200 ac_cv_prog_ac_ct_CC="gcc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2211 if test -n "$ac_ct_CC"; then
2212 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2213 echo "${ECHO_T}$ac_ct_CC" >&6; }
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2219 if test "x$ac_ct_CC" = x; then
2222 case $cross_compiling:$ac_tool_warned in
2224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2225 whose name does not start with the host triplet. If you think this
2226 configuration is useful to you, please write to autoconf@gnu.org." >&5
2227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet. If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2230 ac_tool_warned=yes ;;
2238 if test -z "$CC"; then
2239 if test -n "$ac_tool_prefix"; then
2240 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}cc; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_CC="${ac_tool_prefix}cc"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 if test -n "$CC"; then
2269 { echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6; }
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2279 if test -z "$CC"; then
2280 # Extract the first word of "cc", so it can be a program name with args.
2281 set dummy cc; ac_word=$2
2282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2284 if test "${ac_cv_prog_CC+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 if test -n "$CC"; then
2288 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2299 ac_prog_rejected=yes
2303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 if test $ac_prog_rejected = yes; then
2311 # We found a bogon in the path, so make sure we never use it.
2312 set dummy $ac_cv_prog_CC
2314 if test $# != 0; then
2315 # We chose a different compiler from the bogus one.
2316 # However, it has the same basename, so the bogon will be chosen
2317 # first if we set CC to just the basename; use the full file name.
2319 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2325 if test -n "$CC"; then
2326 { echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6; }
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2335 if test -z "$CC"; then
2336 if test -n "$ac_tool_prefix"; then
2337 for ac_prog in cl.exe
2339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2343 if test "${ac_cv_prog_CC+set}" = set; then
2344 echo $ECHO_N "(cached) $ECHO_C" >&6
2346 if test -n "$CC"; then
2347 ac_cv_prog_CC="$CC" # Let the user override the test.
2349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 test -z "$as_dir" && as_dir=.
2354 for ac_exec_ext in '' $ac_executable_extensions; do
2355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2356 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2367 if test -n "$CC"; then
2368 { echo "$as_me:$LINENO: result: $CC" >&5
2369 echo "${ECHO_T}$CC" >&6; }
2371 { echo "$as_me:$LINENO: result: no" >&5
2372 echo "${ECHO_T}no" >&6; }
2376 test -n "$CC" && break
2379 if test -z "$CC"; then
2381 for ac_prog in cl.exe
2383 # Extract the first word of "$ac_prog", so it can be a program name with args.
2384 set dummy $ac_prog; ac_word=$2
2385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2387 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2388 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 if test -n "$ac_ct_CC"; then
2391 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_ac_ct_CC="$ac_prog"
2401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2411 if test -n "$ac_ct_CC"; then
2412 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2413 echo "${ECHO_T}$ac_ct_CC" >&6; }
2415 { echo "$as_me:$LINENO: result: no" >&5
2416 echo "${ECHO_T}no" >&6; }
2420 test -n "$ac_ct_CC" && break
2423 if test "x$ac_ct_CC" = x; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2443 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2444 See \`config.log' for more details." >&5
2445 echo "$as_me: error: no acceptable C compiler found in \$PATH
2446 See \`config.log' for more details." >&2;}
2447 { (exit 1); exit 1; }; }
2449 # Provide some information about the compiler.
2450 echo "$as_me:$LINENO: checking for C compiler version" >&5
2451 ac_compiler=`set X $ac_compile; echo $2`
2452 { (ac_try="$ac_compiler --version >&5"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compiler --version >&5") 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2462 { (ac_try="$ac_compiler -v >&5"
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_compiler -v >&5") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }
2472 { (ac_try="$ac_compiler -V >&5"
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_compiler -V >&5") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2483 cat >conftest.$ac_ext <<_ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2498 ac_clean_files_save=$ac_clean_files
2499 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2500 # Try to create an executable without -o first, disregard a.out.
2501 # It will help us diagnose broken compilers, and finding out an intuition
2503 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2504 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2505 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2507 # List of possible output files, starting from the most likely.
2508 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2509 # only as a last resort. b.out is created by i960 compilers.
2510 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2512 # The IRIX 6 linker writes into existing files which may not be
2513 # executable, retaining their permissions. Remove them first so a
2514 # subsequent execution test works.
2516 for ac_file in $ac_files
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2520 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2525 if { (ac_try="$ac_link_default"
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_link_default") 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; then
2535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2536 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2537 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2538 # so that the user can short-circuit this test for compilers unknown to
2540 for ac_file in $ac_files ''
2542 test -f "$ac_file" || continue
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2547 # We found the default executable, but exeext='' is most
2551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2553 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2555 # We set ac_cv_exeext here because the later test for it is not
2556 # safe: cross compilers may not add the suffix if given an `-o'
2557 # argument, so we may need to know it at that point already.
2558 # Even if this section looks crufty: it has the advantage of
2565 test "$ac_cv_exeext" = no && ac_cv_exeext=
2571 { echo "$as_me:$LINENO: result: $ac_file" >&5
2572 echo "${ECHO_T}$ac_file" >&6; }
2573 if test -z "$ac_file"; then
2574 echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2577 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: C compiler cannot create executables
2580 See \`config.log' for more details." >&2;}
2581 { (exit 77); exit 77; }; }
2584 ac_exeext=$ac_cv_exeext
2586 # Check that the compiler produces executables we can run. If not, either
2587 # the compiler is broken, or we cross compile.
2588 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2589 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2590 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2591 # If not cross compiling, check that we can run a simple program.
2592 if test "$cross_compiling" != yes; then
2593 if { ac_try='./$ac_file'
2594 { (case "(($ac_try" in
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2599 (eval "$ac_try") 2>&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2605 if test "$cross_compiling" = maybe; then
2608 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2609 If you meant to cross compile, use \`--host'.
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: cannot run C compiled programs.
2612 If you meant to cross compile, use \`--host'.
2613 See \`config.log' for more details." >&2;}
2614 { (exit 1); exit 1; }; }
2618 { echo "$as_me:$LINENO: result: yes" >&5
2619 echo "${ECHO_T}yes" >&6; }
2621 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2622 ac_clean_files=$ac_clean_files_save
2623 # Check that the compiler produces executables we can run. If not, either
2624 # the compiler is broken, or we cross compile.
2625 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2626 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2627 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2628 echo "${ECHO_T}$cross_compiling" >&6; }
2630 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2631 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2632 if { (ac_try="$ac_link"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_link") 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; then
2642 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2643 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2644 # work properly (i.e., refer to `conftest.exe'), while it won't with
2646 for ac_file in conftest.exe conftest conftest.*; do
2647 test -f "$ac_file" || continue
2649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2650 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2656 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }
2663 rm -f conftest$ac_cv_exeext
2664 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2665 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2667 rm -f conftest.$ac_ext
2668 EXEEXT=$ac_cv_exeext
2670 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2671 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2672 if test "${ac_cv_objext+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 cat >conftest.$ac_ext <<_ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h. */
2690 rm -f conftest.o conftest.obj
2691 if { (ac_try="$ac_compile"
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compile") 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; then
2701 for ac_file in conftest.o conftest.obj conftest.*; do
2702 test -f "$ac_file" || continue;
2704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2705 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2713 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2714 See \`config.log' for more details." >&5
2715 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2720 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2722 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2723 echo "${ECHO_T}$ac_cv_objext" >&6; }
2724 OBJEXT=$ac_cv_objext
2726 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2727 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2728 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753 *) ac_try_echo=$ac_try;;
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756 (eval "$ac_compile") 2>conftest.er1
2758 grep -v '^ *+' conftest.er1 >conftest.err
2760 cat conftest.err >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); } && {
2763 test -z "$ac_c_werror_flag" ||
2764 test ! -s conftest.err
2765 } && test -s conftest.$ac_objext; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2778 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2779 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2780 GCC=`test $ac_compiler_gnu = yes && echo yes`
2781 ac_test_CFLAGS=${CFLAGS+set}
2782 ac_save_CFLAGS=$CFLAGS
2783 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 ac_save_c_werror_flag=$ac_c_werror_flag
2789 ac_c_werror_flag=yes
2792 cat >conftest.$ac_ext <<_ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2807 rm -f conftest.$ac_objext
2808 if { (ac_try="$ac_compile"
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compile") 2>conftest.er1
2816 grep -v '^ *+' conftest.er1 >conftest.err
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } && {
2821 test -z "$ac_c_werror_flag" ||
2822 test ! -s conftest.err
2823 } && test -s conftest.$ac_objext; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2830 cat >conftest.$ac_ext <<_ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2845 rm -f conftest.$ac_objext
2846 if { (ac_try="$ac_compile"
2848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2849 *) ac_try_echo=$ac_try;;
2851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2852 (eval "$ac_compile") 2>conftest.er1
2854 grep -v '^ *+' conftest.er1 >conftest.err
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } && {
2859 test -z "$ac_c_werror_flag" ||
2860 test ! -s conftest.err
2861 } && test -s conftest.$ac_objext; then
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2867 ac_c_werror_flag=$ac_save_c_werror_flag
2869 cat >conftest.$ac_ext <<_ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2884 rm -f conftest.$ac_objext
2885 if { (ac_try="$ac_compile"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compile") 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } && {
2898 test -z "$ac_c_werror_flag" ||
2899 test ! -s conftest.err
2900 } && test -s conftest.$ac_objext; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 ac_c_werror_flag=$ac_save_c_werror_flag
2918 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2919 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2920 if test "$ac_test_CFLAGS" = set; then
2921 CFLAGS=$ac_save_CFLAGS
2922 elif test $ac_cv_prog_cc_g = yes; then
2923 if test "$GCC" = yes; then
2929 if test "$GCC" = yes; then
2935 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2936 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2937 if test "${ac_cv_prog_cc_c89+set}" = set; then
2938 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 ac_cv_prog_cc_c89=no
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2950 #include <sys/types.h>
2951 #include <sys/stat.h>
2952 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2953 struct buf { int x; };
2954 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2955 static char *e (p, i)
2961 static char *f (char * (*g) (char **, int), char **p, ...)
2966 s = g (p, va_arg (v,int));
2971 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2972 function prototypes and stuff, but not '\xHH' hex character constants.
2973 These don't provoke an error unfortunately, instead are silently treated
2974 as 'x'. The following induces an error, until -std is added to get
2975 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2976 array size at least. It's necessary to write '\x00'==0 to get something
2977 that's true only with -std. */
2978 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2980 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2981 inside strings and character constants. */
2983 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2985 int test (int i, double x);
2986 struct s1 {int (*f) (int a);};
2987 struct s2 {int (*f) (double a);};
2988 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2994 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2999 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3000 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3002 CC="$ac_save_CC $ac_arg"
3003 rm -f conftest.$ac_objext
3004 if { (ac_try="$ac_compile"
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_compile") 2>conftest.er1
3012 grep -v '^ *+' conftest.er1 >conftest.err
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } && {
3017 test -z "$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 } && test -s conftest.$ac_objext; then
3020 ac_cv_prog_cc_c89=$ac_arg
3022 echo "$as_me: failed program was:" >&5
3023 sed 's/^/| /' conftest.$ac_ext >&5
3028 rm -f core conftest.err conftest.$ac_objext
3029 test "x$ac_cv_prog_cc_c89" != "xno" && break
3031 rm -f conftest.$ac_ext
3036 case "x$ac_cv_prog_cc_c89" in
3038 { echo "$as_me:$LINENO: result: none needed" >&5
3039 echo "${ECHO_T}none needed" >&6; } ;;
3041 { echo "$as_me:$LINENO: result: unsupported" >&5
3042 echo "${ECHO_T}unsupported" >&6; } ;;
3044 CC="$CC $ac_cv_prog_cc_c89"
3045 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3046 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3051 ac_cpp='$CPP $CPPFLAGS'
3052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 ac_cpp='$CPP $CPPFLAGS'
3059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3063 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3064 # On Suns, sometimes $CPP names a directory.
3065 if test -n "$CPP" && test -d "$CPP"; then
3068 if test -z "$CPP"; then
3069 if test "${ac_cv_prog_CPP+set}" = set; then
3070 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 # Double quotes because CPP needs to be expanded
3073 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3076 for ac_c_preproc_warn_flag in '' yes
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
3080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
3082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3091 # include <limits.h>
3093 # include <assert.h>
3097 if { (ac_try="$ac_cpp conftest.$ac_ext"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3105 grep -v '^ *+' conftest.er1 >conftest.err
3107 cat conftest.err >&5
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } >/dev/null && {
3110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3118 # Broken: fails on valid input.
3122 rm -f conftest.err conftest.$ac_ext
3124 # OK, works on sane cases. Now check whether nonexistent headers
3125 # can be detected and how.
3126 cat >conftest.$ac_ext <<_ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132 #include <ac_nonexistent.h>
3134 if { (ac_try="$ac_cpp conftest.$ac_ext"
3136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137 *) ac_try_echo=$ac_try;;
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3142 grep -v '^ *+' conftest.er1 >conftest.err
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null && {
3147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3148 test ! -s conftest.err
3150 # Broken: success on invalid input.
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3156 # Passes both tests.
3161 rm -f conftest.err conftest.$ac_ext
3164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3165 rm -f conftest.err conftest.$ac_ext
3166 if $ac_preproc_ok; then
3178 { echo "$as_me:$LINENO: result: $CPP" >&5
3179 echo "${ECHO_T}$CPP" >&6; }
3181 for ac_c_preproc_warn_flag in '' yes
3183 # Use a header file that comes with gcc, so configuring glibc
3184 # with a fresh cross-compiler works.
3185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3186 # <limits.h> exists even on freestanding compilers.
3187 # On the NeXT, cc -E runs the code through the compiler's parser,
3188 # not just through cpp. "Syntax error" is here to catch this case.
3189 cat >conftest.$ac_ext <<_ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3196 # include <limits.h>
3198 # include <assert.h>
3202 if { (ac_try="$ac_cpp conftest.$ac_ext"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3210 grep -v '^ *+' conftest.er1 >conftest.err
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } >/dev/null && {
3215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3216 test ! -s conftest.err
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3223 # Broken: fails on valid input.
3227 rm -f conftest.err conftest.$ac_ext
3229 # OK, works on sane cases. Now check whether nonexistent headers
3230 # can be detected and how.
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 #include <ac_nonexistent.h>
3239 if { (ac_try="$ac_cpp conftest.$ac_ext"
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3247 grep -v '^ *+' conftest.er1 >conftest.err
3249 cat conftest.err >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); } >/dev/null && {
3252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3253 test ! -s conftest.err
3255 # Broken: success on invalid input.
3258 echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 # Passes both tests.
3266 rm -f conftest.err conftest.$ac_ext
3269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270 rm -f conftest.err conftest.$ac_ext
3271 if $ac_preproc_ok; then
3274 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3275 See \`config.log' for more details." >&5
3276 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3277 See \`config.log' for more details." >&2;}
3278 { (exit 1); exit 1; }; }
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3289 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3290 if test "${ac_cv_path_GREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3293 # Extract the first word of "grep ggrep" to use in msg output
3294 if test -z "$GREP"; then
3295 set dummy grep ggrep; ac_prog_name=$2
3296 if test "${ac_cv_path_GREP+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 ac_path_GREP_found=false
3300 # Loop through the user's path and test for each of PROGNAME-LIST
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3305 test -z "$as_dir" && as_dir=.
3306 for ac_prog in grep ggrep; do
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3310 # Check for GNU ac_path_GREP and select it if it is found.
3311 # Check for GNU $ac_path_GREP
3312 case `"$ac_path_GREP" --version 2>&1` in
3314 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3317 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3320 cat "conftest.in" "conftest.in" >"conftest.tmp"
3321 mv "conftest.tmp" "conftest.in"
3322 cp "conftest.in" "conftest.nl"
3323 echo 'GREP' >> "conftest.nl"
3324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3326 ac_count=`expr $ac_count + 1`
3327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3328 # Best one so far, save it but keep looking for a better one
3329 ac_cv_path_GREP="$ac_path_GREP"
3330 ac_path_GREP_max=$ac_count
3332 # 10*(2^10) chars as input seems more than enough
3333 test $ac_count -gt 10 && break
3335 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3339 $ac_path_GREP_found && break 3
3349 GREP="$ac_cv_path_GREP"
3350 if test -z "$GREP"; then
3351 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3352 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3353 { (exit 1); exit 1; }; }
3357 ac_cv_path_GREP=$GREP
3362 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3363 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3364 GREP="$ac_cv_path_GREP"
3367 { echo "$as_me:$LINENO: checking for egrep" >&5
3368 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3369 if test "${ac_cv_path_EGREP+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3373 then ac_cv_path_EGREP="$GREP -E"
3375 # Extract the first word of "egrep" to use in msg output
3376 if test -z "$EGREP"; then
3377 set dummy egrep; ac_prog_name=$2
3378 if test "${ac_cv_path_EGREP+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 ac_path_EGREP_found=false
3382 # Loop through the user's path and test for each of PROGNAME-LIST
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3387 test -z "$as_dir" && as_dir=.
3388 for ac_prog in egrep; do
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3391 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3392 # Check for GNU ac_path_EGREP and select it if it is found.
3393 # Check for GNU $ac_path_EGREP
3394 case `"$ac_path_EGREP" --version 2>&1` in
3396 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3399 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3402 cat "conftest.in" "conftest.in" >"conftest.tmp"
3403 mv "conftest.tmp" "conftest.in"
3404 cp "conftest.in" "conftest.nl"
3405 echo 'EGREP' >> "conftest.nl"
3406 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3408 ac_count=`expr $ac_count + 1`
3409 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3410 # Best one so far, save it but keep looking for a better one
3411 ac_cv_path_EGREP="$ac_path_EGREP"
3412 ac_path_EGREP_max=$ac_count
3414 # 10*(2^10) chars as input seems more than enough
3415 test $ac_count -gt 10 && break
3417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3421 $ac_path_EGREP_found && break 3
3431 EGREP="$ac_cv_path_EGREP"
3432 if test -z "$EGREP"; then
3433 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3434 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3435 { (exit 1); exit 1; }; }
3439 ac_cv_path_EGREP=$EGREP
3445 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3446 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3447 EGREP="$ac_cv_path_EGREP"
3451 { echo "$as_me:$LINENO: checking for AIX" >&5
3452 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3453 cat >conftest.$ac_ext <<_ACEOF
3456 cat confdefs.h >>conftest.$ac_ext
3457 cat >>conftest.$ac_ext <<_ACEOF
3458 /* end confdefs.h. */
3464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3465 $EGREP "yes" >/dev/null 2>&1; then
3466 { echo "$as_me:$LINENO: result: yes" >&5
3467 echo "${ECHO_T}yes" >&6; }
3468 cat >>confdefs.h <<\_ACEOF
3469 #define _ALL_SOURCE 1
3473 { echo "$as_me:$LINENO: result: no" >&5
3474 echo "${ECHO_T}no" >&6; }
3480 if test -n "$auto_cflags"; then
3481 if test -n "$GCC"; then
3482 CFLAGS="$CFLAGS -O2 -Wall"
3485 *hpux*) CFLAGS="$CFLAGS +O3" ;;
3486 *ultrix* | *osf*) CFLAGS="$CFLAGS -O -Olimit 2000" ;;
3487 *) CFLAGS="$CFLAGS -O" ;;
3492 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3493 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
3494 if test "${ac_cv_c_const+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3507 /* FIXME: Include the comments suggested by Paul. */
3509 /* Ultrix mips cc rejects this. */
3510 typedef int charset[2];
3512 /* SunOS 4.1.1 cc rejects this. */
3513 char const *const *pcpcc;
3515 /* NEC SVR4.0.2 mips cc rejects this. */
3516 struct point {int x, y;};
3517 static struct point const zero = {0,0};
3518 /* AIX XL C 1.02.0.0 rejects this.
3519 It does not let you subtract one const X* pointer from another in
3520 an arm of an if-expression whose if-part is not a constant
3522 const char *g = "string";
3523 pcpcc = &g + (g ? g-g : 0);
3524 /* HPUX 7.0 cc rejects these. */
3526 ppc = (char**) pcpcc;
3527 pcpcc = (char const *const *) ppc;
3528 { /* SCO 3.2v4 cc rejects this. */
3530 char const *s = 0 ? (char *) 0 : (char const *) 0;
3535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3537 const int *foo = &x[0];
3540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3541 typedef const int *iptr;
3545 { /* AIX XL C 1.02.0.0 rejects this saying
3546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3547 struct s { int j; const int *ap[3]; };
3548 struct s *b; b->j = 5;
3550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3554 return !cs[0] && !zero.x;
3561 rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compile") 2>conftest.er1
3570 grep -v '^ *+' conftest.er1 >conftest.err
3572 cat conftest.err >&5
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } && {
3575 test -z "$ac_c_werror_flag" ||
3576 test ! -s conftest.err
3577 } && test -s conftest.$ac_objext; then
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3589 echo "${ECHO_T}$ac_cv_c_const" >&6; }
3590 if test $ac_cv_c_const = no; then
3592 cat >>confdefs.h <<\_ACEOF
3598 { echo "$as_me:$LINENO: checking for inline" >&5
3599 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3600 if test "${ac_cv_c_inline+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 for ac_kw in inline __inline__ __inline; do
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3613 static $ac_kw foo_t static_foo () {return 0; }
3614 $ac_kw foo_t foo () {return 0; }
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_compile") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest.$ac_objext; then
3635 ac_cv_c_inline=$ac_kw
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 test "$ac_cv_c_inline" != no && break
3648 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3649 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3652 case $ac_cv_c_inline in
3655 case $ac_cv_c_inline in
3657 *) ac_val=$ac_cv_c_inline;;
3659 cat >>confdefs.h <<_ACEOF
3661 #define inline $ac_val
3667 { echo "$as_me:$LINENO: checking for working volatile" >&5
3668 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
3669 if test "${ac_cv_c_volatile+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 cat >conftest.$ac_ext <<_ACEOF
3675 cat confdefs.h >>conftest.$ac_ext
3676 cat >>conftest.$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3684 int * volatile y = (int *) 0;
3690 rm -f conftest.$ac_objext
3691 if { (ac_try="$ac_compile"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_compile") 2>conftest.er1
3699 grep -v '^ *+' conftest.er1 >conftest.err
3701 cat conftest.err >&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); } && {
3704 test -z "$ac_c_werror_flag" ||
3705 test ! -s conftest.err
3706 } && test -s conftest.$ac_objext; then
3707 ac_cv_c_volatile=yes
3709 echo "$as_me: failed program was:" >&5
3710 sed 's/^/| /' conftest.$ac_ext >&5
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
3718 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
3719 if test $ac_cv_c_volatile = no; then
3721 cat >>confdefs.h <<\_ACEOF
3728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3730 if test "${ac_cv_header_stdc+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3761 grep -v '^ *+' conftest.er1 >conftest.err
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3769 ac_cv_header_stdc=yes
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3774 ac_cv_header_stdc=no
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 if test $ac_cv_header_stdc = yes; then
3780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 $EGREP "memchr" >/dev/null 2>&1; then
3794 ac_cv_header_stdc=no
3800 if test $ac_cv_header_stdc = yes; then
3801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 $EGREP "free" >/dev/null 2>&1; then
3815 ac_cv_header_stdc=no
3821 if test $ac_cv_header_stdc = yes; then
3822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3823 if test "$cross_compiling" = yes; then
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3834 #if ((' ' & 0x0FF) == 0x020)
3835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3838 # define ISLOWER(c) \
3839 (('a' <= (c) && (c) <= 'i') \
3840 || ('j' <= (c) && (c) <= 'r') \
3841 || ('s' <= (c) && (c) <= 'z'))
3842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3850 for (i = 0; i < 256; i++)
3851 if (XOR (islower (i), ISLOWER (i))
3852 || toupper (i) != TOUPPER (i))
3857 rm -f conftest$ac_exeext
3858 if { (ac_try="$ac_link"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_link") 2>&5
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; }; then
3879 echo "$as_me: program exited with status $ac_status" >&5
3880 echo "$as_me: failed program was:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3884 ac_cv_header_stdc=no
3886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3894 if test $ac_cv_header_stdc = yes; then
3896 cat >>confdefs.h <<\_ACEOF
3897 #define STDC_HEADERS 1
3903 # Check whether --enable-largefile was given.
3904 if test "${enable_largefile+set}" = set; then
3905 enableval=$enable_largefile;
3908 if test "$enable_largefile" != no; then
3910 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3911 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
3912 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 ac_cv_sys_largefile_CC=no
3916 if test "$GCC" != yes; then
3919 # IRIX 6.2 and later do not support large files by default,
3920 # so use the C compiler's -n32 option if that helps.
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 #include <sys/types.h>
3928 /* Check that off_t can represent 2**63 - 1 correctly.
3929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3930 since some C++ compilers masquerading as C compilers
3931 incorrectly reject 9223372036854775807. */
3932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3934 && LARGE_OFF_T % 2147483647 == 1)
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest.$ac_objext; then
3963 echo "$as_me: failed program was:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3969 rm -f core conftest.err conftest.$ac_objext
3971 rm -f conftest.$ac_objext
3972 if { (ac_try="$ac_compile"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_compile") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } && {
3985 test -z "$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3987 } && test -s conftest.$ac_objext; then
3988 ac_cv_sys_largefile_CC=' -n32'; break
3990 echo "$as_me: failed program was:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3996 rm -f core conftest.err conftest.$ac_objext
4000 rm -f conftest.$ac_ext
4003 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4004 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
4005 if test "$ac_cv_sys_largefile_CC" != no; then
4006 CC=$CC$ac_cv_sys_largefile_CC
4009 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4010 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
4011 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 cat >conftest.$ac_ext <<_ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 #include <sys/types.h>
4022 /* Check that off_t can represent 2**63 - 1 correctly.
4023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4024 since some C++ compilers masquerading as C compilers
4025 incorrectly reject 9223372036854775807. */
4026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4028 && LARGE_OFF_T % 2147483647 == 1)
4038 rm -f conftest.$ac_objext
4039 if { (ac_try="$ac_compile"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_compile") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); } && {
4052 test -z "$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4054 } && test -s conftest.$ac_objext; then
4055 ac_cv_sys_file_offset_bits=no; break
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 cat >conftest.$ac_ext <<_ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #define _FILE_OFFSET_BITS 64
4071 #include <sys/types.h>
4072 /* Check that off_t can represent 2**63 - 1 correctly.
4073 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4074 since some C++ compilers masquerading as C compilers
4075 incorrectly reject 9223372036854775807. */
4076 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4077 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4078 && LARGE_OFF_T % 2147483647 == 1)
4088 rm -f conftest.$ac_objext
4089 if { (ac_try="$ac_compile"
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } && {
4102 test -z "$ac_c_werror_flag" ||
4103 test ! -s conftest.err
4104 } && test -s conftest.$ac_objext; then
4105 ac_cv_sys_file_offset_bits=64; break
4107 echo "$as_me: failed program was:" >&5
4108 sed 's/^/| /' conftest.$ac_ext >&5
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 ac_cv_sys_file_offset_bits=unknown
4118 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4119 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
4120 case $ac_cv_sys_file_offset_bits in #(
4123 cat >>confdefs.h <<_ACEOF
4124 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4129 if test $ac_cv_sys_file_offset_bits = unknown; then
4130 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4131 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
4132 if test "${ac_cv_sys_large_files+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 cat >conftest.$ac_ext <<_ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h. */
4142 #include <sys/types.h>
4143 /* Check that off_t can represent 2**63 - 1 correctly.
4144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4145 since some C++ compilers masquerading as C compilers
4146 incorrectly reject 9223372036854775807. */
4147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4149 && LARGE_OFF_T % 2147483647 == 1)
4159 rm -f conftest.$ac_objext
4160 if { (ac_try="$ac_compile"
4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4163 *) ac_try_echo=$ac_try;;
4165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4166 (eval "$ac_compile") 2>conftest.er1
4168 grep -v '^ *+' conftest.er1 >conftest.err
4170 cat conftest.err >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } && {
4173 test -z "$ac_c_werror_flag" ||
4174 test ! -s conftest.err
4175 } && test -s conftest.$ac_objext; then
4176 ac_cv_sys_large_files=no; break
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4191 #define _LARGE_FILES 1
4192 #include <sys/types.h>
4193 /* Check that off_t can represent 2**63 - 1 correctly.
4194 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4195 since some C++ compilers masquerading as C compilers
4196 incorrectly reject 9223372036854775807. */
4197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4198 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4199 && LARGE_OFF_T % 2147483647 == 1)
4209 rm -f conftest.$ac_objext
4210 if { (ac_try="$ac_compile"
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4218 grep -v '^ *+' conftest.er1 >conftest.err
4220 cat conftest.err >&5
4221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } && {
4223 test -z "$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4225 } && test -s conftest.$ac_objext; then
4226 ac_cv_sys_large_files=1; break
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4235 ac_cv_sys_large_files=unknown
4239 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4240 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
4241 case $ac_cv_sys_large_files in #(
4244 cat >>confdefs.h <<_ACEOF
4245 #define _LARGE_FILES $ac_cv_sys_large_files
4253 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4264 inttypes.h stdint.h unistd.h
4266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 $ac_includes_default
4280 #include <$ac_header>
4282 rm -f conftest.$ac_objext
4283 if { (ac_try="$ac_compile"
4285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4286 *) ac_try_echo=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_compile") 2>conftest.er1
4291 grep -v '^ *+' conftest.er1 >conftest.err
4293 cat conftest.err >&5
4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4295 (exit $ac_status); } && {
4296 test -z "$ac_c_werror_flag" ||
4297 test ! -s conftest.err
4298 } && test -s conftest.$ac_objext; then
4299 eval "$as_ac_Header=yes"
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4304 eval "$as_ac_Header=no"
4307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 ac_res=`eval echo '${'$as_ac_Header'}'`
4310 { echo "$as_me:$LINENO: result: $ac_res" >&5
4311 echo "${ECHO_T}$ac_res" >&6; }
4312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4313 cat >>confdefs.h <<_ACEOF
4314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4322 { echo "$as_me:$LINENO: checking for off_t" >&5
4323 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4324 if test "${ac_cv_type_off_t+set}" = set; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4334 typedef off_t ac__type_new_;
4338 if ((ac__type_new_ *) 0)
4340 if (sizeof (ac__type_new_))
4346 rm -f conftest.$ac_objext
4347 if { (ac_try="$ac_compile"
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353 (eval "$ac_compile") 2>conftest.er1
4355 grep -v '^ *+' conftest.er1 >conftest.err
4357 cat conftest.err >&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } && {
4360 test -z "$ac_c_werror_flag" ||
4361 test ! -s conftest.err
4362 } && test -s conftest.$ac_objext; then
4363 ac_cv_type_off_t=yes
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4373 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4374 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4376 # The cast to long int works around a bug in the HP C Compiler
4377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4379 # This bug is HP SR number 8606223364.
4380 { echo "$as_me:$LINENO: checking size of off_t" >&5
4381 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
4382 if test "${ac_cv_sizeof_off_t+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test "$cross_compiling" = yes; then
4386 # Depending upon the size, compute the lo and hi bounds.
4387 cat >conftest.$ac_ext <<_ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4394 typedef off_t ac__type_sizeof_;
4398 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
4405 rm -f conftest.$ac_objext
4406 if { (ac_try="$ac_compile"
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_compile") 2>conftest.er1
4414 grep -v '^ *+' conftest.er1 >conftest.err
4416 cat conftest.err >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); } && {
4419 test -z "$ac_c_werror_flag" ||
4420 test ! -s conftest.err
4421 } && test -s conftest.$ac_objext; then
4424 cat >conftest.$ac_ext <<_ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */
4430 $ac_includes_default
4431 typedef off_t ac__type_sizeof_;
4435 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4442 rm -f conftest.$ac_objext
4443 if { (ac_try="$ac_compile"
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_compile") 2>conftest.er1
4451 grep -v '^ *+' conftest.er1 >conftest.err
4453 cat conftest.err >&5
4454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455 (exit $ac_status); } && {
4456 test -z "$ac_c_werror_flag" ||
4457 test ! -s conftest.err
4458 } && test -s conftest.$ac_objext; then
4459 ac_hi=$ac_mid; break
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4464 ac_lo=`expr $ac_mid + 1`
4465 if test $ac_lo -le $ac_mid; then
4469 ac_mid=`expr 2 '*' $ac_mid + 1`
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 cat >conftest.$ac_ext <<_ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 $ac_includes_default
4485 typedef off_t ac__type_sizeof_;
4489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
4496 rm -f conftest.$ac_objext
4497 if { (ac_try="$ac_compile"
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_compile") 2>conftest.er1
4505 grep -v '^ *+' conftest.er1 >conftest.err
4507 cat conftest.err >&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } && {
4510 test -z "$ac_c_werror_flag" ||
4511 test ! -s conftest.err
4512 } && test -s conftest.$ac_objext; then
4515 cat >conftest.$ac_ext <<_ACEOF
4518 cat confdefs.h >>conftest.$ac_ext
4519 cat >>conftest.$ac_ext <<_ACEOF
4520 /* end confdefs.h. */
4521 $ac_includes_default
4522 typedef off_t ac__type_sizeof_;
4526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
4533 rm -f conftest.$ac_objext
4534 if { (ac_try="$ac_compile"
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4540 (eval "$ac_compile") 2>conftest.er1
4542 grep -v '^ *+' conftest.er1 >conftest.err
4544 cat conftest.err >&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } && {
4547 test -z "$ac_c_werror_flag" ||
4548 test ! -s conftest.err
4549 } && test -s conftest.$ac_objext; then
4550 ac_lo=$ac_mid; break
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_hi=`expr '(' $ac_mid ')' - 1`
4556 if test $ac_mid -le $ac_hi; then
4560 ac_mid=`expr 2 '*' $ac_mid`
4563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 # Binary search between lo and hi bounds.
4577 while test "x$ac_lo" != "x$ac_hi"; do
4578 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4579 cat >conftest.$ac_ext <<_ACEOF
4582 cat confdefs.h >>conftest.$ac_ext
4583 cat >>conftest.$ac_ext <<_ACEOF
4584 /* end confdefs.h. */
4585 $ac_includes_default
4586 typedef off_t ac__type_sizeof_;
4590 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
4597 rm -f conftest.$ac_objext
4598 if { (ac_try="$ac_compile"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_compile") 2>conftest.er1
4606 grep -v '^ *+' conftest.er1 >conftest.err
4608 cat conftest.err >&5
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); } && {
4611 test -z "$ac_c_werror_flag" ||
4612 test ! -s conftest.err
4613 } && test -s conftest.$ac_objext; then
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 ac_lo=`expr '(' $ac_mid ')' + 1`
4622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 ?*) ac_cv_sizeof_off_t=$ac_lo;;
4626 '') if test "$ac_cv_type_off_t" = yes; then
4627 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
4628 See \`config.log' for more details." >&5
4629 echo "$as_me: error: cannot compute sizeof (off_t)
4630 See \`config.log' for more details." >&2;}
4631 { (exit 77); exit 77; }; }
4633 ac_cv_sizeof_off_t=0
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4643 $ac_includes_default
4644 typedef off_t ac__type_sizeof_;
4645 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
4646 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
4653 FILE *f = fopen ("conftest.val", "w");
4656 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
4658 long int i = longval ();
4659 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4661 fprintf (f, "%ld\n", i);
4665 unsigned long int i = ulongval ();
4666 if (i != ((long int) (sizeof (ac__type_sizeof_))))
4668 fprintf (f, "%lu\n", i);
4670 return ferror (f) || fclose (f) != 0;
4676 rm -f conftest$ac_exeext
4677 if { (ac_try="$ac_link"
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_link") 2>&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4687 { (case "(($ac_try" in
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_try") 2>&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); }; }; then
4696 ac_cv_sizeof_off_t=`cat conftest.val`
4698 echo "$as_me: program exited with status $ac_status" >&5
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4703 if test "$ac_cv_type_off_t" = yes; then
4704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
4705 See \`config.log' for more details." >&5
4706 echo "$as_me: error: cannot compute sizeof (off_t)
4707 See \`config.log' for more details." >&2;}
4708 { (exit 77); exit 77; }; }
4710 ac_cv_sizeof_off_t=0
4713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4717 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
4718 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
4722 cat >>confdefs.h <<_ACEOF
4723 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
4728 { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4729 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
4730 if test "${ac_cv_header_stdbool_h+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 cat >conftest.$ac_ext <<_ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4740 #include <stdbool.h>
4742 "error: bool is not defined"
4745 "error: false is not defined"
4748 "error: false is not 0"
4751 "error: true is not defined"
4754 "error: true is not 1"
4756 #ifndef __bool_true_false_are_defined
4757 "error: __bool_true_false_are_defined is not defined"
4760 struct s { _Bool s: 1; _Bool t; } s;
4762 char a[true == 1 ? 1 : -1];
4763 char b[false == 0 ? 1 : -1];
4764 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4765 char d[(bool) 0.5 == true ? 1 : -1];
4767 char f[(_Bool) 0.0 == false ? 1 : -1];
4769 char h[sizeof (_Bool)];
4771 enum { j = false, k = true, l = false * true, m = true * 256 };
4773 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4774 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4775 # if defined __xlc__ || defined __GNUC__
4776 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4777 reported by James Lemley on 2005-10-05; see
4778 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4779 This test is not quite right, since xlc is allowed to
4780 reject this program, as the initializer for xlcbug is
4781 not one of the forms that C requires support for.
4782 However, doing the test right would require a runtime
4783 test, and that would make cross-compilation harder.
4784 Let us hope that IBM fixes the xlc bug, and also adds
4785 support for this kind of constant expression. In the
4786 meantime, this test will reject xlc, which is OK, since
4787 our stdbool.h substitute should suffice. We also test
4788 this with GCC, where it should work, to detect more
4789 quickly whether someone messes up the test in the
4791 char digs[] = "0123456789";
4792 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4794 /* Catch a bug in an HP-UX C compiler. See
4795 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4796 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4807 /* Refer to every declared value, to avoid compiler optimizations. */
4808 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4809 + !m + !n + !o + !p + !q + !pq);
4815 rm -f conftest.$ac_objext
4816 if { (ac_try="$ac_compile"
4818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_compile") 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } && {
4829 test -z "$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4831 } && test -s conftest.$ac_objext; then
4832 ac_cv_header_stdbool_h=yes
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 ac_cv_header_stdbool_h=no
4840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842 { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4843 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
4844 { echo "$as_me:$LINENO: checking for _Bool" >&5
4845 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
4846 if test "${ac_cv_type__Bool+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 typedef _Bool ac__type_new_;
4860 if ((ac__type_new_ *) 0)
4862 if (sizeof (ac__type_new_))
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compile") 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && {
4882 test -z "$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 } && test -s conftest.$ac_objext; then
4885 ac_cv_type__Bool=yes
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4896 echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
4897 if test $ac_cv_type__Bool = yes; then
4899 cat >>confdefs.h <<_ACEOF
4900 #define HAVE__BOOL 1
4906 if test $ac_cv_header_stdbool_h = yes; then
4908 cat >>confdefs.h <<\_ACEOF
4909 #define HAVE_STDBOOL_H 1
4916 for ac_header in unistd.h sys/time.h
4918 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_res=`eval echo '${'$as_ac_Header'}'`
4926 { echo "$as_me:$LINENO: result: $ac_res" >&5
4927 echo "${ECHO_T}$ac_res" >&6; }
4929 # Is the header compilable?
4930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4932 cat >conftest.$ac_ext <<_ACEOF
4935 cat confdefs.h >>conftest.$ac_ext
4936 cat >>conftest.$ac_ext <<_ACEOF
4937 /* end confdefs.h. */
4938 $ac_includes_default
4939 #include <$ac_header>
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4950 grep -v '^ *+' conftest.er1 >conftest.err
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 ac_header_compiler=yes
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4963 ac_header_compiler=no
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4968 echo "${ECHO_T}$ac_header_compiler" >&6; }
4970 # Is the header present?
4971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4979 #include <$ac_header>
4981 if { (ac_try="$ac_cpp conftest.$ac_ext"
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } >/dev/null && {
4994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4997 ac_header_preproc=yes
4999 echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5002 ac_header_preproc=no
5005 rm -f conftest.err conftest.$ac_ext
5006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5007 echo "${ECHO_T}$ac_header_preproc" >&6; }
5009 # So? What about this header?
5010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5016 ac_header_preproc=yes
5019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5037 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 eval "$as_ac_Header=\$ac_header_preproc"
5041 ac_res=`eval echo '${'$as_ac_Header'}'`
5042 { echo "$as_me:$LINENO: result: $ac_res" >&5
5043 echo "${ECHO_T}$ac_res" >&6; }
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047 cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5060 for ac_header in termios.h sys/ioctl.h sys/select.h utime.h sys/utime.h
5062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_res=`eval echo '${'$as_ac_Header'}'`
5070 { echo "$as_me:$LINENO: result: $ac_res" >&5
5071 echo "${ECHO_T}$ac_res" >&6; }
5073 # Is the header compilable?
5074 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5076 cat >conftest.$ac_ext <<_ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_includes_default
5083 #include <$ac_header>
5085 rm -f conftest.$ac_objext
5086 if { (ac_try="$ac_compile"
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_compile") 2>conftest.er1
5094 grep -v '^ *+' conftest.er1 >conftest.err
5096 cat conftest.err >&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } && {
5099 test -z "$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 } && test -s conftest.$ac_objext; then
5102 ac_header_compiler=yes
5104 echo "$as_me: failed program was:" >&5
5105 sed 's/^/| /' conftest.$ac_ext >&5
5107 ac_header_compiler=no
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5112 echo "${ECHO_T}$ac_header_compiler" >&6; }
5114 # Is the header present?
5115 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5116 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5117 cat >conftest.$ac_ext <<_ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <$ac_header>
5125 if { (ac_try="$ac_cpp conftest.$ac_ext"
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5133 grep -v '^ *+' conftest.er1 >conftest.err
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } >/dev/null && {
5138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5141 ac_header_preproc=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_header_preproc=no
5149 rm -f conftest.err conftest.$ac_ext
5150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5151 echo "${ECHO_T}$ac_header_preproc" >&6; }
5153 # So? What about this header?
5154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5160 ac_header_preproc=yes
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5166 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5170 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 eval "$as_ac_Header=\$ac_header_preproc"
5185 ac_res=`eval echo '${'$as_ac_Header'}'`
5186 { echo "$as_me:$LINENO: result: $ac_res" >&5
5187 echo "${ECHO_T}$ac_res" >&6; }
5190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5191 cat >>confdefs.h <<_ACEOF
5192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5203 for ac_header in stdint.h inttypes.h pwd.h wchar.h
5205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 ac_res=`eval echo '${'$as_ac_Header'}'`
5213 { echo "$as_me:$LINENO: result: $ac_res" >&5
5214 echo "${ECHO_T}$ac_res" >&6; }
5216 # Is the header compilable?
5217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5219 cat >conftest.$ac_ext <<_ACEOF
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 $ac_includes_default
5226 #include <$ac_header>
5228 rm -f conftest.$ac_objext
5229 if { (ac_try="$ac_compile"
5231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5232 *) ac_try_echo=$ac_try;;
5234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5235 (eval "$ac_compile") 2>conftest.er1
5237 grep -v '^ *+' conftest.er1 >conftest.err
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } && {
5242 test -z "$ac_c_werror_flag" ||
5243 test ! -s conftest.err
5244 } && test -s conftest.$ac_objext; then
5245 ac_header_compiler=yes
5247 echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5250 ac_header_compiler=no
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5255 echo "${ECHO_T}$ac_header_compiler" >&6; }
5257 # Is the header present?
5258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5260 cat >conftest.$ac_ext <<_ACEOF
5263 cat confdefs.h >>conftest.$ac_ext
5264 cat >>conftest.$ac_ext <<_ACEOF
5265 /* end confdefs.h. */
5266 #include <$ac_header>
5268 if { (ac_try="$ac_cpp conftest.$ac_ext"
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276 grep -v '^ *+' conftest.er1 >conftest.err
5278 cat conftest.err >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); } >/dev/null && {
5281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5282 test ! -s conftest.err
5284 ac_header_preproc=yes
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 ac_header_preproc=no
5292 rm -f conftest.err conftest.$ac_ext
5293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5294 echo "${ECHO_T}$ac_header_preproc" >&6; }
5296 # So? What about this header?
5297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5303 ac_header_preproc=yes
5306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5313 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5314 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 eval "$as_ac_Header=\$ac_header_preproc"
5328 ac_res=`eval echo '${'$as_ac_Header'}'`
5329 { echo "$as_me:$LINENO: result: $ac_res" >&5
5330 echo "${ECHO_T}$ac_res" >&6; }
5333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5334 cat >>confdefs.h <<_ACEOF
5335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5343 { echo "$as_me:$LINENO: checking for short" >&5
5344 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5345 if test "${ac_cv_type_short+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 cat >conftest.$ac_ext <<_ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 $ac_includes_default
5355 typedef short ac__type_new_;
5359 if ((ac__type_new_ *) 0)
5361 if (sizeof (ac__type_new_))
5367 rm -f conftest.$ac_objext
5368 if { (ac_try="$ac_compile"
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compile") 2>conftest.er1
5376 grep -v '^ *+' conftest.er1 >conftest.err
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest.$ac_objext; then
5384 ac_cv_type_short=yes
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5394 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5395 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5397 # The cast to long int works around a bug in the HP C Compiler
5398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5400 # This bug is HP SR number 8606223364.
5401 { echo "$as_me:$LINENO: checking size of short" >&5
5402 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5403 if test "${ac_cv_sizeof_short+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 if test "$cross_compiling" = yes; then
5407 # Depending upon the size, compute the lo and hi bounds.
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5414 $ac_includes_default
5415 typedef short ac__type_sizeof_;
5419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5445 cat >conftest.$ac_ext <<_ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h. */
5451 $ac_includes_default
5452 typedef short ac__type_sizeof_;
5456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1 >conftest.err
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_hi=$ac_mid; break
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5485 ac_lo=`expr $ac_mid + 1`
5486 if test $ac_lo -le $ac_mid; then
5490 ac_mid=`expr 2 '*' $ac_mid + 1`
5493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me: failed program was:" >&5
5497 sed 's/^/| /' conftest.$ac_ext >&5
5499 cat >conftest.$ac_ext <<_ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5506 typedef short ac__type_sizeof_;
5510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521 *) ac_try_echo=$ac_try;;
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } && {
5531 test -z "$ac_c_werror_flag" ||
5532 test ! -s conftest.err
5533 } && test -s conftest.$ac_objext; then
5536 cat >conftest.$ac_ext <<_ACEOF
5539 cat confdefs.h >>conftest.$ac_ext
5540 cat >>conftest.$ac_ext <<_ACEOF
5541 /* end confdefs.h. */
5542 $ac_includes_default
5543 typedef short ac__type_sizeof_;
5547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558 *) ac_try_echo=$ac_try;;
5560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5561 (eval "$ac_compile") 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } && {
5568 test -z "$ac_c_werror_flag" ||
5569 test ! -s conftest.err
5570 } && test -s conftest.$ac_objext; then
5571 ac_lo=$ac_mid; break
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5576 ac_hi=`expr '(' $ac_mid ')' - 1`
5577 if test $ac_mid -le $ac_hi; then
5581 ac_mid=`expr 2 '*' $ac_mid`
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5597 # Binary search between lo and hi bounds.
5598 while test "x$ac_lo" != "x$ac_hi"; do
5599 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5600 cat >conftest.$ac_ext <<_ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 $ac_includes_default
5607 typedef short ac__type_sizeof_;
5611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5618 rm -f conftest.$ac_objext
5619 if { (ac_try="$ac_compile"
5621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5622 *) ac_try_echo=$ac_try;;
5624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_lo=`expr '(' $ac_mid ')' + 1`
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5646 ?*) ac_cv_sizeof_short=$ac_lo;;
5647 '') if test "$ac_cv_type_short" = yes; then
5648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5649 See \`config.log' for more details." >&5
5650 echo "$as_me: error: cannot compute sizeof (short)
5651 See \`config.log' for more details." >&2;}
5652 { (exit 77); exit 77; }; }
5654 ac_cv_sizeof_short=0
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 $ac_includes_default
5665 typedef short ac__type_sizeof_;
5666 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5667 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5674 FILE *f = fopen ("conftest.val", "w");
5677 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5679 long int i = longval ();
5680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5682 fprintf (f, "%ld\n", i);
5686 unsigned long int i = ulongval ();
5687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5689 fprintf (f, "%lu\n", i);
5691 return ferror (f) || fclose (f) != 0;
5697 rm -f conftest$ac_exeext
5698 if { (ac_try="$ac_link"
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_link") 2>&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_sizeof_short=`cat conftest.val`
5719 echo "$as_me: program exited with status $ac_status" >&5
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5724 if test "$ac_cv_type_short" = yes; then
5725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5726 See \`config.log' for more details." >&5
5727 echo "$as_me: error: cannot compute sizeof (short)
5728 See \`config.log' for more details." >&2;}
5729 { (exit 77); exit 77; }; }
5731 ac_cv_sizeof_short=0
5734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5738 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5739 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_SHORT $ac_cv_sizeof_short
5748 { echo "$as_me:$LINENO: checking for int" >&5
5749 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5750 if test "${ac_cv_type_int+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 $ac_includes_default
5760 typedef int ac__type_new_;
5764 if ((ac__type_new_ *) 0)
5766 if (sizeof (ac__type_new_))
5772 rm -f conftest.$ac_objext
5773 if { (ac_try="$ac_compile"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compile") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } && {
5786 test -z "$ac_c_werror_flag" ||
5787 test ! -s conftest.err
5788 } && test -s conftest.$ac_objext; then
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5800 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5802 # The cast to long int works around a bug in the HP C Compiler
5803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5805 # This bug is HP SR number 8606223364.
5806 { echo "$as_me:$LINENO: checking size of int" >&5
5807 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5808 if test "${ac_cv_sizeof_int+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 if test "$cross_compiling" = yes; then
5812 # Depending upon the size, compute the lo and hi bounds.
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 $ac_includes_default
5820 typedef int ac__type_sizeof_;
5824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5831 rm -f conftest.$ac_objext
5832 if { (ac_try="$ac_compile"
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } && {
5845 test -z "$ac_c_werror_flag" ||
5846 test ! -s conftest.err
5847 } && test -s conftest.$ac_objext; then
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 $ac_includes_default
5857 typedef int ac__type_sizeof_;
5861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.$ac_objext; then
5885 ac_hi=$ac_mid; break
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 ac_lo=`expr $ac_mid + 1`
5891 if test $ac_lo -le $ac_mid; then
5895 ac_mid=`expr 2 '*' $ac_mid + 1`
5898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 cat >conftest.$ac_ext <<_ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 $ac_includes_default
5911 typedef int ac__type_sizeof_;
5915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5922 rm -f conftest.$ac_objext
5923 if { (ac_try="$ac_compile"
5925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5926 *) ac_try_echo=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_compile") 2>conftest.er1
5931 grep -v '^ *+' conftest.er1 >conftest.err
5933 cat conftest.err >&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } && {
5936 test -z "$ac_c_werror_flag" ||
5937 test ! -s conftest.err
5938 } && test -s conftest.$ac_objext; then
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 $ac_includes_default
5948 typedef int ac__type_sizeof_;
5952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5959 rm -f conftest.$ac_objext
5960 if { (ac_try="$ac_compile"
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_compile") 2>conftest.er1
5968 grep -v '^ *+' conftest.er1 >conftest.err
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && {
5973 test -z "$ac_c_werror_flag" ||
5974 test ! -s conftest.err
5975 } && test -s conftest.$ac_objext; then
5976 ac_lo=$ac_mid; break
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_hi=`expr '(' $ac_mid ')' - 1`
5982 if test $ac_mid -le $ac_hi; then
5986 ac_mid=`expr 2 '*' $ac_mid`
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 # Binary search between lo and hi bounds.
6003 while test "x$ac_lo" != "x$ac_hi"; do
6004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6011 $ac_includes_default
6012 typedef int ac__type_sizeof_;
6016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6023 rm -f conftest.$ac_objext
6024 if { (ac_try="$ac_compile"
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_compile") 2>conftest.er1
6032 grep -v '^ *+' conftest.er1 >conftest.err
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } && {
6037 test -z "$ac_c_werror_flag" ||
6038 test ! -s conftest.err
6039 } && test -s conftest.$ac_objext; then
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 ac_lo=`expr '(' $ac_mid ')' + 1`
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6051 ?*) ac_cv_sizeof_int=$ac_lo;;
6052 '') if test "$ac_cv_type_int" = yes; then
6053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6054 See \`config.log' for more details." >&5
6055 echo "$as_me: error: cannot compute sizeof (int)
6056 See \`config.log' for more details." >&2;}
6057 { (exit 77); exit 77; }; }
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6069 $ac_includes_default
6070 typedef int ac__type_sizeof_;
6071 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6072 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6079 FILE *f = fopen ("conftest.val", "w");
6082 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6084 long int i = longval ();
6085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6087 fprintf (f, "%ld\n", i);
6091 unsigned long int i = ulongval ();
6092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6094 fprintf (f, "%lu\n", i);
6096 return ferror (f) || fclose (f) != 0;
6102 rm -f conftest$ac_exeext
6103 if { (ac_try="$ac_link"
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_link") 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6113 { (case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6118 (eval "$ac_try") 2>&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 ac_cv_sizeof_int=`cat conftest.val`
6124 echo "$as_me: program exited with status $ac_status" >&5
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6129 if test "$ac_cv_type_int" = yes; then
6130 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6131 See \`config.log' for more details." >&5
6132 echo "$as_me: error: cannot compute sizeof (int)
6133 See \`config.log' for more details." >&2;}
6134 { (exit 77); exit 77; }; }
6139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6143 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6144 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6148 cat >>confdefs.h <<_ACEOF
6149 #define SIZEOF_INT $ac_cv_sizeof_int
6153 { echo "$as_me:$LINENO: checking for long" >&5
6154 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6155 if test "${ac_cv_type_long+set}" = set; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 $ac_includes_default
6165 typedef long ac__type_new_;
6169 if ((ac__type_new_ *) 0)
6171 if (sizeof (ac__type_new_))
6177 rm -f conftest.$ac_objext
6178 if { (ac_try="$ac_compile"
6180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6181 *) ac_try_echo=$ac_try;;
6183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6184 (eval "$ac_compile") 2>conftest.er1
6186 grep -v '^ *+' conftest.er1 >conftest.err
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && {
6191 test -z "$ac_c_werror_flag" ||
6192 test ! -s conftest.err
6193 } && test -s conftest.$ac_objext; then
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6205 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6207 # The cast to long int works around a bug in the HP C Compiler
6208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6210 # This bug is HP SR number 8606223364.
6211 { echo "$as_me:$LINENO: checking size of long" >&5
6212 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6213 if test "${ac_cv_sizeof_long+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 if test "$cross_compiling" = yes; then
6217 # Depending upon the size, compute the lo and hi bounds.
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 $ac_includes_default
6225 typedef long ac__type_sizeof_;
6229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_compile") 2>conftest.er1
6245 grep -v '^ *+' conftest.er1 >conftest.err
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } && {
6250 test -z "$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6252 } && test -s conftest.$ac_objext; then
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 $ac_includes_default
6262 typedef long ac__type_sizeof_;
6266 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_compile") 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
6290 ac_hi=$ac_mid; break
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_lo=`expr $ac_mid + 1`
6296 if test $ac_lo -le $ac_mid; then
6300 ac_mid=`expr 2 '*' $ac_mid + 1`
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 cat >conftest.$ac_ext <<_ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 $ac_includes_default
6316 typedef long ac__type_sizeof_;
6320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6327 rm -f conftest.$ac_objext
6328 if { (ac_try="$ac_compile"
6330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compile") 2>conftest.er1
6336 grep -v '^ *+' conftest.er1 >conftest.err
6338 cat conftest.err >&5
6339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 (exit $ac_status); } && {
6341 test -z "$ac_c_werror_flag" ||
6342 test ! -s conftest.err
6343 } && test -s conftest.$ac_objext; then
6346 cat >conftest.$ac_ext <<_ACEOF
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 $ac_includes_default
6353 typedef long ac__type_sizeof_;
6357 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 ac_lo=$ac_mid; break
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_hi=`expr '(' $ac_mid ')' - 1`
6387 if test $ac_mid -le $ac_hi; then
6391 ac_mid=`expr 2 '*' $ac_mid`
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6407 # Binary search between lo and hi bounds.
6408 while test "x$ac_lo" != "x$ac_hi"; do
6409 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6410 cat >conftest.$ac_ext <<_ACEOF
6413 cat confdefs.h >>conftest.$ac_ext
6414 cat >>conftest.$ac_ext <<_ACEOF
6415 /* end confdefs.h. */
6416 $ac_includes_default
6417 typedef long ac__type_sizeof_;
6421 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6428 rm -f conftest.$ac_objext
6429 if { (ac_try="$ac_compile"
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_compile") 2>conftest.er1
6437 grep -v '^ *+' conftest.er1 >conftest.err
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest.$ac_objext; then
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_lo=`expr '(' $ac_mid ')' + 1`
6453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6456 ?*) ac_cv_sizeof_long=$ac_lo;;
6457 '') if test "$ac_cv_type_long" = yes; then
6458 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6459 See \`config.log' for more details." >&5
6460 echo "$as_me: error: cannot compute sizeof (long)
6461 See \`config.log' for more details." >&2;}
6462 { (exit 77); exit 77; }; }
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6475 typedef long ac__type_sizeof_;
6476 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6477 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6484 FILE *f = fopen ("conftest.val", "w");
6487 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6489 long int i = longval ();
6490 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6492 fprintf (f, "%ld\n", i);
6496 unsigned long int i = ulongval ();
6497 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6499 fprintf (f, "%lu\n", i);
6501 return ferror (f) || fclose (f) != 0;
6507 rm -f conftest$ac_exeext
6508 if { (ac_try="$ac_link"
6510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_link") 2>&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6518 { (case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_try") 2>&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_cv_sizeof_long=`cat conftest.val`
6529 echo "$as_me: program exited with status $ac_status" >&5
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6534 if test "$ac_cv_type_long" = yes; then
6535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6536 See \`config.log' for more details." >&5
6537 echo "$as_me: error: cannot compute sizeof (long)
6538 See \`config.log' for more details." >&2;}
6539 { (exit 77); exit 77; }; }
6544 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6548 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6549 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6553 cat >>confdefs.h <<_ACEOF
6554 #define SIZEOF_LONG $ac_cv_sizeof_long
6558 { echo "$as_me:$LINENO: checking for long long" >&5
6559 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6560 if test "${ac_cv_type_long_long+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 $ac_includes_default
6570 typedef long long ac__type_new_;
6574 if ((ac__type_new_ *) 0)
6576 if (sizeof (ac__type_new_))
6582 rm -f conftest.$ac_objext
6583 if { (ac_try="$ac_compile"
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_compile") 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_objext; then
6599 ac_cv_type_long_long=yes
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_cv_type_long_long=no
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6610 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6612 # The cast to long int works around a bug in the HP C Compiler
6613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6615 # This bug is HP SR number 8606223364.
6616 { echo "$as_me:$LINENO: checking size of long long" >&5
6617 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6618 if test "${ac_cv_sizeof_long_long+set}" = set; then
6619 echo $ECHO_N "(cached) $ECHO_C" >&6
6621 if test "$cross_compiling" = yes; then
6622 # Depending upon the size, compute the lo and hi bounds.
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6629 $ac_includes_default
6630 typedef long long ac__type_sizeof_;
6634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_compile") 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && {
6655 test -z "$ac_c_werror_flag" ||
6656 test ! -s conftest.err
6657 } && test -s conftest.$ac_objext; then
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 $ac_includes_default
6667 typedef long long ac__type_sizeof_;
6671 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6678 rm -f conftest.$ac_objext
6679 if { (ac_try="$ac_compile"
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_compile") 2>conftest.er1
6687 grep -v '^ *+' conftest.er1 >conftest.err
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest.$ac_objext; then
6695 ac_hi=$ac_mid; break
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 ac_lo=`expr $ac_mid + 1`
6701 if test $ac_lo -le $ac_mid; then
6705 ac_mid=`expr 2 '*' $ac_mid + 1`
6708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 cat >conftest.$ac_ext <<_ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 $ac_includes_default
6721 typedef long long ac__type_sizeof_;
6725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6732 rm -f conftest.$ac_objext
6733 if { (ac_try="$ac_compile"
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_compile") 2>conftest.er1
6741 grep -v '^ *+' conftest.er1 >conftest.err
6743 cat conftest.err >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); } && {
6746 test -z "$ac_c_werror_flag" ||
6747 test ! -s conftest.err
6748 } && test -s conftest.$ac_objext; then
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6757 $ac_includes_default
6758 typedef long long ac__type_sizeof_;
6762 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6769 rm -f conftest.$ac_objext
6770 if { (ac_try="$ac_compile"
6772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6773 *) ac_try_echo=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_compile") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1 >conftest.err
6780 cat conftest.err >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } && {
6783 test -z "$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6785 } && test -s conftest.$ac_objext; then
6786 ac_lo=$ac_mid; break
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6791 ac_hi=`expr '(' $ac_mid ')' - 1`
6792 if test $ac_mid -le $ac_hi; then
6796 ac_mid=`expr 2 '*' $ac_mid`
6799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 # Binary search between lo and hi bounds.
6813 while test "x$ac_lo" != "x$ac_hi"; do
6814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6815 cat >conftest.$ac_ext <<_ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 $ac_includes_default
6822 typedef long long ac__type_sizeof_;
6826 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6833 rm -f conftest.$ac_objext
6834 if { (ac_try="$ac_compile"
6836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6837 *) ac_try_echo=$ac_try;;
6839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6840 (eval "$ac_compile") 2>conftest.er1
6842 grep -v '^ *+' conftest.er1 >conftest.err
6844 cat conftest.err >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && {
6847 test -z "$ac_c_werror_flag" ||
6848 test ! -s conftest.err
6849 } && test -s conftest.$ac_objext; then
6852 echo "$as_me: failed program was:" >&5
6853 sed 's/^/| /' conftest.$ac_ext >&5
6855 ac_lo=`expr '(' $ac_mid ')' + 1`
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6862 '') if test "$ac_cv_type_long_long" = yes; then
6863 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6864 See \`config.log' for more details." >&5
6865 echo "$as_me: error: cannot compute sizeof (long long)
6866 See \`config.log' for more details." >&2;}
6867 { (exit 77); exit 77; }; }
6869 ac_cv_sizeof_long_long=0
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6879 $ac_includes_default
6880 typedef long long ac__type_sizeof_;
6881 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6882 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6889 FILE *f = fopen ("conftest.val", "w");
6892 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6894 long int i = longval ();
6895 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6897 fprintf (f, "%ld\n", i);
6901 unsigned long int i = ulongval ();
6902 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6904 fprintf (f, "%lu\n", i);
6906 return ferror (f) || fclose (f) != 0;
6912 rm -f conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_link") 2>&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6923 { (case "(($ac_try" in
6924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925 *) ac_try_echo=$ac_try;;
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928 (eval "$ac_try") 2>&5
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 ac_cv_sizeof_long_long=`cat conftest.val`
6934 echo "$as_me: program exited with status $ac_status" >&5
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6939 if test "$ac_cv_type_long_long" = yes; then
6940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6941 See \`config.log' for more details." >&5
6942 echo "$as_me: error: cannot compute sizeof (long long)
6943 See \`config.log' for more details." >&2;}
6944 { (exit 77); exit 77; }; }
6946 ac_cv_sizeof_long_long=0
6949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6954 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6958 cat >>confdefs.h <<_ACEOF
6959 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6963 { echo "$as_me:$LINENO: checking for void *" >&5
6964 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
6965 if test "${ac_cv_type_void_p+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6975 typedef void * ac__type_new_;
6979 if ((ac__type_new_ *) 0)
6981 if (sizeof (ac__type_new_))
6987 rm -f conftest.$ac_objext
6988 if { (ac_try="$ac_compile"
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_type_void_p=yes
7006 echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_cv_type_void_p=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7014 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7015 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7017 # The cast to long int works around a bug in the HP C Compiler
7018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7020 # This bug is HP SR number 8606223364.
7021 { echo "$as_me:$LINENO: checking size of void *" >&5
7022 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7023 if test "${ac_cv_sizeof_void_p+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 if test "$cross_compiling" = yes; then
7027 # Depending upon the size, compute the lo and hi bounds.
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7034 $ac_includes_default
7035 typedef void * ac__type_sizeof_;
7039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053 (eval "$ac_compile") 2>conftest.er1
7055 grep -v '^ *+' conftest.er1 >conftest.err
7057 cat conftest.err >&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && {
7060 test -z "$ac_c_werror_flag" ||
7061 test ! -s conftest.err
7062 } && test -s conftest.$ac_objext; then
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 $ac_includes_default
7072 typedef void * ac__type_sizeof_;
7076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7083 rm -f conftest.$ac_objext
7084 if { (ac_try="$ac_compile"
7086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7087 *) ac_try_echo=$ac_try;;
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_compile") 2>conftest.er1
7092 grep -v '^ *+' conftest.er1 >conftest.err
7094 cat conftest.err >&5
7095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096 (exit $ac_status); } && {
7097 test -z "$ac_c_werror_flag" ||
7098 test ! -s conftest.err
7099 } && test -s conftest.$ac_objext; then
7100 ac_hi=$ac_mid; break
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_lo=`expr $ac_mid + 1`
7106 if test $ac_lo -le $ac_mid; then
7110 ac_mid=`expr 2 '*' $ac_mid + 1`
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116 echo "$as_me: failed program was:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7119 cat >conftest.$ac_ext <<_ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 typedef void * ac__type_sizeof_;
7130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest.$ac_objext; then
7156 cat >conftest.$ac_ext <<_ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 $ac_includes_default
7163 typedef void * ac__type_sizeof_;
7167 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7174 rm -f conftest.$ac_objext
7175 if { (ac_try="$ac_compile"
7177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7178 *) ac_try_echo=$ac_try;;
7180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7181 (eval "$ac_compile") 2>conftest.er1
7183 grep -v '^ *+' conftest.er1 >conftest.err
7185 cat conftest.err >&5
7186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187 (exit $ac_status); } && {
7188 test -z "$ac_c_werror_flag" ||
7189 test ! -s conftest.err
7190 } && test -s conftest.$ac_objext; then
7191 ac_lo=$ac_mid; break
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7196 ac_hi=`expr '(' $ac_mid ')' - 1`
7197 if test $ac_mid -le $ac_hi; then
7201 ac_mid=`expr 2 '*' $ac_mid`
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 # Binary search between lo and hi bounds.
7218 while test "x$ac_lo" != "x$ac_hi"; do
7219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7227 typedef void * ac__type_sizeof_;
7231 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7238 rm -f conftest.$ac_objext
7239 if { (ac_try="$ac_compile"
7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245 (eval "$ac_compile") 2>conftest.er1
7247 grep -v '^ *+' conftest.er1 >conftest.err
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && {
7252 test -z "$ac_c_werror_flag" ||
7253 test ! -s conftest.err
7254 } && test -s conftest.$ac_objext; then
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 ac_lo=`expr '(' $ac_mid ')' + 1`
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7267 '') if test "$ac_cv_type_void_p" = yes; then
7268 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7269 See \`config.log' for more details." >&5
7270 echo "$as_me: error: cannot compute sizeof (void *)
7271 See \`config.log' for more details." >&2;}
7272 { (exit 77); exit 77; }; }
7274 ac_cv_sizeof_void_p=0
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7285 typedef void * ac__type_sizeof_;
7286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7294 FILE *f = fopen ("conftest.val", "w");
7297 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7299 long int i = longval ();
7300 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7302 fprintf (f, "%ld\n", i);
7306 unsigned long int i = ulongval ();
7307 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7309 fprintf (f, "%lu\n", i);
7311 return ferror (f) || fclose (f) != 0;
7317 rm -f conftest$ac_exeext
7318 if { (ac_try="$ac_link"
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_link") 2>&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7328 { (case "(($ac_try" in
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7333 (eval "$ac_try") 2>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 ac_cv_sizeof_void_p=`cat conftest.val`
7339 echo "$as_me: program exited with status $ac_status" >&5
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7344 if test "$ac_cv_type_void_p" = yes; then
7345 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7346 See \`config.log' for more details." >&5
7347 echo "$as_me: error: cannot compute sizeof (void *)
7348 See \`config.log' for more details." >&2;}
7349 { (exit 77); exit 77; }; }
7351 ac_cv_sizeof_void_p=0
7354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7358 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7359 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
7363 cat >>confdefs.h <<_ACEOF
7364 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7369 { echo "$as_me:$LINENO: checking for size_t" >&5
7370 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7371 if test "${ac_cv_type_size_t+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7381 typedef size_t ac__type_new_;
7385 if ((ac__type_new_ *) 0)
7387 if (sizeof (ac__type_new_))
7393 rm -f conftest.$ac_objext
7394 if { (ac_try="$ac_compile"
7396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7397 *) ac_try_echo=$ac_try;;
7399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7400 (eval "$ac_compile") 2>conftest.er1
7402 grep -v '^ *+' conftest.er1 >conftest.err
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } && {
7407 test -z "$ac_c_werror_flag" ||
7408 test ! -s conftest.err
7409 } && test -s conftest.$ac_objext; then
7410 ac_cv_type_size_t=yes
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 ac_cv_type_size_t=no
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7420 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7421 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7422 if test $ac_cv_type_size_t = yes; then
7426 cat >>confdefs.h <<_ACEOF
7427 #define size_t unsigned int
7432 { echo "$as_me:$LINENO: checking for pid_t" >&5
7433 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7434 if test "${ac_cv_type_pid_t+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 typedef pid_t ac__type_new_;
7448 if ((ac__type_new_ *) 0)
7450 if (sizeof (ac__type_new_))
7456 rm -f conftest.$ac_objext
7457 if { (ac_try="$ac_compile"
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_compile") 2>conftest.er1
7465 grep -v '^ *+' conftest.er1 >conftest.err
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.$ac_objext; then
7473 ac_cv_type_pid_t=yes
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7484 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7485 if test $ac_cv_type_pid_t = yes; then
7489 cat >>confdefs.h <<_ACEOF
7495 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7496 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7497 if test "${ac_cv_type_uint32_t+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 cat >conftest.$ac_ext <<_ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 $ac_includes_default
7507 typedef uint32_t ac__type_new_;
7511 if ((ac__type_new_ *) 0)
7513 if (sizeof (ac__type_new_))
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7528 grep -v '^ *+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 ac_cv_type_uint32_t=yes
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 ac_cv_type_uint32_t=no
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7547 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7548 if test $ac_cv_type_uint32_t = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define HAVE_UINT32_T 1
7556 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
7557 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
7558 if test "${ac_cv_type_uintptr_t+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 cat >conftest.$ac_ext <<_ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567 $ac_includes_default
7568 typedef uintptr_t ac__type_new_;
7572 if ((ac__type_new_ *) 0)
7574 if (sizeof (ac__type_new_))
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_compile") 2>conftest.er1
7589 grep -v '^ *+' conftest.er1 >conftest.err
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && {
7594 test -z "$ac_c_werror_flag" ||
7595 test ! -s conftest.err
7596 } && test -s conftest.$ac_objext; then
7597 ac_cv_type_uintptr_t=yes
7599 echo "$as_me: failed program was:" >&5
7600 sed 's/^/| /' conftest.$ac_ext >&5
7602 ac_cv_type_uintptr_t=no
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
7608 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
7609 if test $ac_cv_type_uintptr_t = yes; then
7611 cat >>confdefs.h <<_ACEOF
7612 #define HAVE_UINTPTR_T 1
7617 { echo "$as_me:$LINENO: checking for intptr_t" >&5
7618 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
7619 if test "${ac_cv_type_intptr_t+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 $ac_includes_default
7629 typedef intptr_t ac__type_new_;
7633 if ((ac__type_new_ *) 0)
7635 if (sizeof (ac__type_new_))
7641 rm -f conftest.$ac_objext
7642 if { (ac_try="$ac_compile"
7644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7645 *) ac_try_echo=$ac_try;;
7647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7648 (eval "$ac_compile") 2>conftest.er1
7650 grep -v '^ *+' conftest.er1 >conftest.err
7652 cat conftest.err >&5
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); } && {
7655 test -z "$ac_c_werror_flag" ||
7656 test ! -s conftest.err
7657 } && test -s conftest.$ac_objext; then
7658 ac_cv_type_intptr_t=yes
7660 echo "$as_me: failed program was:" >&5
7661 sed 's/^/| /' conftest.$ac_ext >&5
7663 ac_cv_type_intptr_t=no
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7668 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
7669 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
7670 if test $ac_cv_type_intptr_t = yes; then
7672 cat >>confdefs.h <<_ACEOF
7673 #define HAVE_INTPTR_T 1
7678 { echo "$as_me:$LINENO: checking for int64_t" >&5
7679 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7680 if test "${ac_cv_type_int64_t+set}" = set; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 typedef int64_t ac__type_new_;
7694 if ((ac__type_new_ *) 0)
7696 if (sizeof (ac__type_new_))
7702 rm -f conftest.$ac_objext
7703 if { (ac_try="$ac_compile"
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
7711 grep -v '^ *+' conftest.er1 >conftest.err
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
7719 ac_cv_type_int64_t=yes
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 ac_cv_type_int64_t=no
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7730 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7731 if test $ac_cv_type_int64_t = yes; then
7733 cat >>confdefs.h <<_ACEOF
7734 #define HAVE_INT64_T 1
7740 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
7741 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
7742 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 cat >conftest.$ac_ext <<_ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7753 #include <sys/types.h>
7755 # include <inttypes.h>
7760 typedef sig_atomic_t ac__type_new_;
7764 if ((ac__type_new_ *) 0)
7766 if (sizeof (ac__type_new_))
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7781 grep -v '^ *+' conftest.er1 >conftest.err
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7789 ac_cv_type_sig_atomic_t=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_cv_type_sig_atomic_t=no
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
7800 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
7801 if test $ac_cv_type_sig_atomic_t = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define HAVE_SIG_ATOMIC_T 1
7811 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7812 # for constant arguments. Useless!
7813 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
7814 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
7815 if test "${ac_cv_working_alloca_h+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7828 char *p = (char *) alloca (2 * sizeof (int));
7834 rm -f conftest.$ac_objext conftest$ac_exeext
7835 if { (ac_try="$ac_link"
7837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7838 *) ac_try_echo=$ac_try;;
7840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7841 (eval "$ac_link") 2>conftest.er1
7843 grep -v '^ *+' conftest.er1 >conftest.err
7845 cat conftest.err >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } && {
7848 test -z "$ac_c_werror_flag" ||
7849 test ! -s conftest.err
7850 } && test -s conftest$ac_exeext &&
7851 $as_test_x conftest$ac_exeext; then
7852 ac_cv_working_alloca_h=yes
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 ac_cv_working_alloca_h=no
7860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7861 conftest$ac_exeext conftest.$ac_ext
7863 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7864 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
7865 if test $ac_cv_working_alloca_h = yes; then
7867 cat >>confdefs.h <<\_ACEOF
7868 #define HAVE_ALLOCA_H 1
7873 { echo "$as_me:$LINENO: checking for alloca" >&5
7874 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
7875 if test "${ac_cv_func_alloca_works+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7878 cat >conftest.$ac_ext <<_ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7885 # define alloca __builtin_alloca
7888 # include <malloc.h>
7889 # define alloca _alloca
7891 # ifdef HAVE_ALLOCA_H
7892 # include <alloca.h>
7897 # ifndef alloca /* predefined by HP cc +Olibcalls */
7908 char *p = (char *) alloca (1);
7914 rm -f conftest.$ac_objext conftest$ac_exeext
7915 if { (ac_try="$ac_link"
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_link") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest$ac_exeext &&
7931 $as_test_x conftest$ac_exeext; then
7932 ac_cv_func_alloca_works=yes
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_cv_func_alloca_works=no
7940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7941 conftest$ac_exeext conftest.$ac_ext
7943 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7944 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
7946 if test $ac_cv_func_alloca_works = yes; then
7948 cat >>confdefs.h <<\_ACEOF
7949 #define HAVE_ALLOCA 1
7953 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7954 # that cause trouble. Some versions do not even contain alloca or
7955 # contain a buggy version. If you still want to use their alloca,
7956 # use ar to extract alloca.o from them instead of compiling alloca.c.
7958 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7960 cat >>confdefs.h <<\_ACEOF
7965 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7966 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
7967 if test "${ac_cv_os_cray+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7970 cat >conftest.$ac_ext <<_ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 #if defined CRAY && ! defined CRAY2
7983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7984 $EGREP "webecray" >/dev/null 2>&1; then
7992 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7993 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
7994 if test $ac_cv_os_cray = yes; then
7995 for ac_func in _getb67 GETB67 getb67; do
7996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8010 #define $ac_func innocuous_$ac_func
8012 /* System header to define __stub macros and hopefully few prototypes,
8013 which can conflict with char $ac_func (); below.
8014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8015 <limits.h> exists even on freestanding compilers. */
8018 # include <limits.h>
8020 # include <assert.h>
8025 /* Override any GCC internal prototype to avoid an error.
8026 Use char because int might match the return type of a GCC
8027 builtin and then its argument prototype would still apply. */
8032 /* The GNU C library defines this for functions which it implements
8033 to always fail with ENOSYS. Some functions are actually named
8034 something starting with __ and the normal name is an alias. */
8035 #if defined __stub_$ac_func || defined __stub___$ac_func
8047 rm -f conftest.$ac_objext conftest$ac_exeext
8048 if { (ac_try="$ac_link"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_link") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest$ac_exeext &&
8064 $as_test_x conftest$ac_exeext; then
8065 eval "$as_ac_var=yes"
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8070 eval "$as_ac_var=no"
8073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8074 conftest$ac_exeext conftest.$ac_ext
8076 ac_res=`eval echo '${'$as_ac_var'}'`
8077 { echo "$as_me:$LINENO: result: $ac_res" >&5
8078 echo "${ECHO_T}$ac_res" >&6; }
8079 if test `eval echo '${'$as_ac_var'}'` = yes; then
8081 cat >>confdefs.h <<_ACEOF
8082 #define CRAY_STACKSEG_END $ac_func
8091 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8092 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8093 if test "${ac_cv_c_stack_direction+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 if test "$cross_compiling" = yes; then
8097 ac_cv_c_stack_direction=0
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 $ac_includes_default
8107 find_stack_direction ()
8109 static char *addr = 0;
8114 return find_stack_direction ();
8117 return (&dummy > addr) ? 1 : -1;
8123 return find_stack_direction () < 0;
8126 rm -f conftest$ac_exeext
8127 if { (ac_try="$ac_link"
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_link") 2>&5
8135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8137 { (case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_try") 2>&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_c_stack_direction=1
8148 echo "$as_me: program exited with status $ac_status" >&5
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8153 ac_cv_c_stack_direction=-1
8155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8160 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8161 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8163 cat >>confdefs.h <<_ACEOF
8164 #define STACK_DIRECTION $ac_cv_c_stack_direction
8172 for ac_header in stdlib.h unistd.h
8174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 ac_res=`eval echo '${'$as_ac_Header'}'`
8182 { echo "$as_me:$LINENO: result: $ac_res" >&5
8183 echo "${ECHO_T}$ac_res" >&6; }
8185 # Is the header compilable?
8186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 $ac_includes_default
8195 #include <$ac_header>
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204 (eval "$ac_compile") 2>conftest.er1
8206 grep -v '^ *+' conftest.er1 >conftest.err
8208 cat conftest.err >&5
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } && {
8211 test -z "$ac_c_werror_flag" ||
8212 test ! -s conftest.err
8213 } && test -s conftest.$ac_objext; then
8214 ac_header_compiler=yes
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 ac_header_compiler=no
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8224 echo "${ECHO_T}$ac_header_compiler" >&6; }
8226 # Is the header present?
8227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <$ac_header>
8237 if { (ac_try="$ac_cpp conftest.$ac_ext"
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8245 grep -v '^ *+' conftest.er1 >conftest.err
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } >/dev/null && {
8250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8251 test ! -s conftest.err
8253 ac_header_preproc=yes
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 ac_header_preproc=no
8261 rm -f conftest.err conftest.$ac_ext
8262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8263 echo "${ECHO_T}$ac_header_preproc" >&6; }
8265 # So? What about this header?
8266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8272 ac_header_preproc=yes
8275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8295 eval "$as_ac_Header=\$ac_header_preproc"
8297 ac_res=`eval echo '${'$as_ac_Header'}'`
8298 { echo "$as_me:$LINENO: result: $ac_res" >&5
8299 echo "${ECHO_T}$ac_res" >&6; }
8302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8303 cat >>confdefs.h <<_ACEOF
8304 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8312 for ac_func in getpagesize
8314 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8315 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8316 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8317 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8328 #define $ac_func innocuous_$ac_func
8330 /* System header to define __stub macros and hopefully few prototypes,
8331 which can conflict with char $ac_func (); below.
8332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8333 <limits.h> exists even on freestanding compilers. */
8336 # include <limits.h>
8338 # include <assert.h>
8343 /* Override any GCC internal prototype to avoid an error.
8344 Use char because int might match the return type of a GCC
8345 builtin and then its argument prototype would still apply. */
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined __stub_$ac_func || defined __stub___$ac_func
8365 rm -f conftest.$ac_objext conftest$ac_exeext
8366 if { (ac_try="$ac_link"
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_link") 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } && {
8379 test -z "$ac_c_werror_flag" ||
8380 test ! -s conftest.err
8381 } && test -s conftest$ac_exeext &&
8382 $as_test_x conftest$ac_exeext; then
8383 eval "$as_ac_var=yes"
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 eval "$as_ac_var=no"
8391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8392 conftest$ac_exeext conftest.$ac_ext
8394 ac_res=`eval echo '${'$as_ac_var'}'`
8395 { echo "$as_me:$LINENO: result: $ac_res" >&5
8396 echo "${ECHO_T}$ac_res" >&6; }
8397 if test `eval echo '${'$as_ac_var'}'` = yes; then
8398 cat >>confdefs.h <<_ACEOF
8399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8405 { echo "$as_me:$LINENO: checking for working mmap" >&5
8406 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
8407 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 if test "$cross_compiling" = yes; then
8411 ac_cv_func_mmap_fixed_mapped=no
8413 cat >conftest.$ac_ext <<_ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 $ac_includes_default
8420 /* malloc might have been renamed as rpl_malloc. */
8423 /* Thanks to Mike Haertel and Jim Avera for this test.
8424 Here is a matrix of mmap possibilities:
8425 mmap private not fixed
8426 mmap private fixed at somewhere currently unmapped
8427 mmap private fixed at somewhere already mapped
8428 mmap shared not fixed
8429 mmap shared fixed at somewhere currently unmapped
8430 mmap shared fixed at somewhere already mapped
8431 For private mappings, we should verify that changes cannot be read()
8432 back from the file, nor mmap's back from the file at a different
8433 address. (There have been systems where private was not correctly
8434 implemented like the infamous i386 svr4.0, and systems where the
8435 VM page cache was not coherent with the file system buffer cache
8436 like early versions of FreeBSD and possibly contemporary NetBSD.)
8437 For shared mappings, we should conversely verify that changes get
8438 propagated back to all the places they're supposed to be.
8440 Grep wants private fixed already mapped.
8441 The main things grep needs to know about mmap are:
8442 * does it exist and is it safe to write into the mmap'd area
8443 * how to use it (BSD variants) */
8446 #include <sys/mman.h>
8448 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8452 /* This mess was copied from the GNU getpagesize.h. */
8453 #ifndef HAVE_GETPAGESIZE
8454 /* Assume that all systems that can run configure have sys/param.h. */
8455 # ifndef HAVE_SYS_PARAM_H
8456 # define HAVE_SYS_PARAM_H 1
8459 # ifdef _SC_PAGESIZE
8460 # define getpagesize() sysconf(_SC_PAGESIZE)
8461 # else /* no _SC_PAGESIZE */
8462 # ifdef HAVE_SYS_PARAM_H
8463 # include <sys/param.h>
8464 # ifdef EXEC_PAGESIZE
8465 # define getpagesize() EXEC_PAGESIZE
8466 # else /* no EXEC_PAGESIZE */
8468 # define getpagesize() NBPG * CLSIZE
8471 # endif /* no CLSIZE */
8472 # else /* no NBPG */
8474 # define getpagesize() NBPC
8475 # else /* no NBPC */
8477 # define getpagesize() PAGESIZE
8478 # endif /* PAGESIZE */
8479 # endif /* no NBPC */
8480 # endif /* no NBPG */
8481 # endif /* no EXEC_PAGESIZE */
8482 # else /* no HAVE_SYS_PARAM_H */
8483 # define getpagesize() 8192 /* punt totally */
8484 # endif /* no HAVE_SYS_PARAM_H */
8485 # endif /* no _SC_PAGESIZE */
8487 #endif /* no HAVE_GETPAGESIZE */
8492 char *data, *data2, *data3;
8496 pagesize = getpagesize ();
8498 /* First, make a file with some known garbage in it. */
8499 data = (char *) malloc (pagesize);
8502 for (i = 0; i < pagesize; ++i)
8503 *(data + i) = rand ();
8505 fd = creat ("conftest.mmap", 0600);
8508 if (write (fd, data, pagesize) != pagesize)
8512 /* Next, try to mmap the file at a fixed address which already has
8513 something else allocated at it. If we can, also make sure that
8514 we see the same garbage. */
8515 fd = open ("conftest.mmap", O_RDWR);
8518 data2 = (char *) malloc (2 * pagesize);
8521 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8522 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8523 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8525 for (i = 0; i < pagesize; ++i)
8526 if (*(data + i) != *(data2 + i))
8529 /* Finally, make sure that changes to the mapped area do not
8530 percolate back to the file as seen by read(). (This is a bug on
8531 some variants of i386 svr4.0.) */
8532 for (i = 0; i < pagesize; ++i)
8533 *(data2 + i) = *(data2 + i) + 1;
8534 data3 = (char *) malloc (pagesize);
8537 if (read (fd, data3, pagesize) != pagesize)
8539 for (i = 0; i < pagesize; ++i)
8540 if (*(data + i) != *(data3 + i))
8546 rm -f conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>&5
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8557 { (case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8562 (eval "$ac_try") 2>&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_func_mmap_fixed_mapped=yes
8568 echo "$as_me: program exited with status $ac_status" >&5
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8573 ac_cv_func_mmap_fixed_mapped=no
8575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8580 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8581 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
8582 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8584 cat >>confdefs.h <<\_ACEOF
8591 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8592 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
8593 if test "${ac_cv_sys_largefile_source+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8603 #include <sys/types.h> /* for off_t */
8608 int (*fp) (FILE *, off_t, int) = fseeko;
8609 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8614 rm -f conftest.$ac_objext conftest$ac_exeext
8615 if { (ac_try="$ac_link"
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_link") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1 >conftest.err
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest$ac_exeext &&
8631 $as_test_x conftest$ac_exeext; then
8632 ac_cv_sys_largefile_source=no; break
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8641 conftest$ac_exeext conftest.$ac_ext
8642 cat >conftest.$ac_ext <<_ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8648 #define _LARGEFILE_SOURCE 1
8649 #include <sys/types.h> /* for off_t */
8654 int (*fp) (FILE *, off_t, int) = fseeko;
8655 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_link") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest$ac_exeext &&
8677 $as_test_x conftest$ac_exeext; then
8678 ac_cv_sys_largefile_source=1; break
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8687 conftest$ac_exeext conftest.$ac_ext
8688 ac_cv_sys_largefile_source=unknown
8692 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8693 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
8694 case $ac_cv_sys_largefile_source in #(
8697 cat >>confdefs.h <<_ACEOF
8698 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8704 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8705 # in glibc 2.1.3, but that breaks too many other things.
8706 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8707 if test $ac_cv_sys_largefile_source != unknown; then
8709 cat >>confdefs.h <<\_ACEOF
8710 #define HAVE_FSEEKO 1
8721 for ac_func in strptime timegm snprintf vsnprintf vasprintf drand48
8723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8727 echo $ECHO_N "(cached) $ECHO_C" >&6
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8737 #define $ac_func innocuous_$ac_func
8739 /* System header to define __stub macros and hopefully few prototypes,
8740 which can conflict with char $ac_func (); below.
8741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8742 <limits.h> exists even on freestanding compilers. */
8745 # include <limits.h>
8747 # include <assert.h>
8752 /* Override any GCC internal prototype to avoid an error.
8753 Use char because int might match the return type of a GCC
8754 builtin and then its argument prototype would still apply. */
8759 /* The GNU C library defines this for functions which it implements
8760 to always fail with ENOSYS. Some functions are actually named
8761 something starting with __ and the normal name is an alias. */
8762 #if defined __stub_$ac_func || defined __stub___$ac_func
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_link") 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest$ac_exeext &&
8791 $as_test_x conftest$ac_exeext; then
8792 eval "$as_ac_var=yes"
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 eval "$as_ac_var=no"
8800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801 conftest$ac_exeext conftest.$ac_ext
8803 ac_res=`eval echo '${'$as_ac_var'}'`
8804 { echo "$as_me:$LINENO: result: $ac_res" >&5
8805 echo "${ECHO_T}$ac_res" >&6; }
8806 if test `eval echo '${'$as_ac_var'}'` = yes; then
8807 cat >>confdefs.h <<_ACEOF
8808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8822 for ac_func in strtoll usleep ftello sigblock sigsetjmp memrchr wcwidth mbtowc
8824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8828 echo $ECHO_N "(cached) $ECHO_C" >&6
8830 cat >conftest.$ac_ext <<_ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h. */
8836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8838 #define $ac_func innocuous_$ac_func
8840 /* System header to define __stub macros and hopefully few prototypes,
8841 which can conflict with char $ac_func (); below.
8842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8843 <limits.h> exists even on freestanding compilers. */
8846 # include <limits.h>
8848 # include <assert.h>
8853 /* Override any GCC internal prototype to avoid an error.
8854 Use char because int might match the return type of a GCC
8855 builtin and then its argument prototype would still apply. */
8860 /* The GNU C library defines this for functions which it implements
8861 to always fail with ENOSYS. Some functions are actually named
8862 something starting with __ and the normal name is an alias. */
8863 #if defined __stub_$ac_func || defined __stub___$ac_func
8875 rm -f conftest.$ac_objext conftest$ac_exeext
8876 if { (ac_try="$ac_link"
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_link") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest$ac_exeext &&
8892 $as_test_x conftest$ac_exeext; then
8893 eval "$as_ac_var=yes"
8895 echo "$as_me: failed program was:" >&5
8896 sed 's/^/| /' conftest.$ac_ext >&5
8898 eval "$as_ac_var=no"
8901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902 conftest$ac_exeext conftest.$ac_ext
8904 ac_res=`eval echo '${'$as_ac_var'}'`
8905 { echo "$as_me:$LINENO: result: $ac_res" >&5
8906 echo "${ECHO_T}$ac_res" >&6; }
8907 if test `eval echo '${'$as_ac_var'}'` = yes; then
8908 cat >>confdefs.h <<_ACEOF
8909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8917 cat >>confdefs.h <<\_ACEOF
8918 #define HAVE_STRCASECMP 1
8922 cat >>confdefs.h <<\_ACEOF
8923 #define HAVE_STRNCASECMP 1
8927 cat >>confdefs.h <<\_ACEOF
8928 #define HAVE_STRDUP 1
8932 cat >>confdefs.h <<\_ACEOF
8933 #define HAVE_ISATTY 1
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_SYMLINK 1
8943 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
8944 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
8945 if test "${ac_cv_type_struct_utimbuf+set}" = set; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h. */
8956 #if HAVE_SYS_TYPES_H
8957 # include <sys/types.h>
8964 typedef struct utimbuf ac__type_new_;
8968 if ((ac__type_new_ *) 0)
8970 if (sizeof (ac__type_new_))
8976 rm -f conftest.$ac_objext
8977 if { (ac_try="$ac_compile"
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_compile") 2>conftest.er1
8985 grep -v '^ *+' conftest.er1 >conftest.err
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } && {
8990 test -z "$ac_c_werror_flag" ||
8991 test ! -s conftest.err
8992 } && test -s conftest.$ac_objext; then
8993 ac_cv_type_struct_utimbuf=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_type_struct_utimbuf=no
9001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9003 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_utimbuf" >&5
9004 echo "${ECHO_T}$ac_cv_type_struct_utimbuf" >&6; }
9005 if test $ac_cv_type_struct_utimbuf = yes; then
9007 cat >>confdefs.h <<_ACEOF
9008 #define HAVE_STRUCT_UTIMBUF 1
9016 { echo "$as_me:$LINENO: checking for socklen_t" >&5
9017 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
9018 cat >conftest.$ac_ext <<_ACEOF
9020 #include <sys/types.h>
9021 #include <sys/socket.h>
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9032 (eval "$ac_compile") 2>conftest.er1
9034 grep -v '^ *+' conftest.er1 >conftest.err
9036 cat conftest.err >&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); } && {
9039 test -z "$ac_c_werror_flag" ||
9040 test ! -s conftest.err
9041 } && test -s conftest.$ac_objext; then
9042 { echo "$as_me:$LINENO: result: socklen_t" >&5
9043 echo "${ECHO_T}socklen_t" >&6; }
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9049 cat >conftest.$ac_ext <<_ACEOF
9051 #include <sys/types.h>
9052 #include <sys/socket.h>
9053 int accept (int, struct sockaddr *, size_t *);
9056 rm -f conftest.$ac_objext
9057 if { (ac_try="$ac_compile"
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_compile") 2>conftest.er1
9065 grep -v '^ *+' conftest.er1 >conftest.err
9067 cat conftest.err >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); } && {
9070 test -z "$ac_c_werror_flag" ||
9071 test ! -s conftest.err
9072 } && test -s conftest.$ac_objext; then
9074 { echo "$as_me:$LINENO: result: size_t" >&5
9075 echo "${ECHO_T}size_t" >&6; }
9077 cat >>confdefs.h <<\_ACEOF
9078 #define socklen_t size_t
9083 echo "$as_me: failed program was:" >&5
9084 sed 's/^/| /' conftest.$ac_ext >&5
9087 { echo "$as_me:$LINENO: result: int" >&5
9088 echo "${ECHO_T}int" >&6; }
9090 cat >>confdefs.h <<\_ACEOF
9091 #define socklen_t int
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 { echo "$as_me:$LINENO: checking for working fnmatch.h" >&5
9105 echo $ECHO_N "checking for working fnmatch.h... $ECHO_C" >&6; }
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #include <fnmatch.h>
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest.$ac_objext; then
9128 { echo "$as_me:$LINENO: result: yes" >&5
9129 echo "${ECHO_T}yes" >&6; }
9131 cat >>confdefs.h <<\_ACEOF
9132 #define HAVE_WORKING_FNMATCH_H 1
9137 echo "$as_me: failed program was:" >&5
9138 sed 's/^/| /' conftest.$ac_ext >&5
9141 { echo "$as_me:$LINENO: result: no" >&5
9142 echo "${ECHO_T}no" >&6; }
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 for ac_func in nanosleep
9152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9166 #define $ac_func innocuous_$ac_func
9168 /* System header to define __stub macros and hopefully few prototypes,
9169 which can conflict with char $ac_func (); below.
9170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9171 <limits.h> exists even on freestanding compilers. */
9174 # include <limits.h>
9176 # include <assert.h>
9181 /* Override any GCC internal prototype to avoid an error.
9182 Use char because int might match the return type of a GCC
9183 builtin and then its argument prototype would still apply. */
9188 /* The GNU C library defines this for functions which it implements
9189 to always fail with ENOSYS. Some functions are actually named
9190 something starting with __ and the normal name is an alias. */
9191 #if defined __stub_$ac_func || defined __stub___$ac_func
9203 rm -f conftest.$ac_objext conftest$ac_exeext
9204 if { (ac_try="$ac_link"
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_link") 2>conftest.er1
9212 grep -v '^ *+' conftest.er1 >conftest.err
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } && {
9217 test -z "$ac_c_werror_flag" ||
9218 test ! -s conftest.err
9219 } && test -s conftest$ac_exeext &&
9220 $as_test_x conftest$ac_exeext; then
9221 eval "$as_ac_var=yes"
9223 echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9226 eval "$as_ac_var=no"
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230 conftest$ac_exeext conftest.$ac_ext
9232 ac_res=`eval echo '${'$as_ac_var'}'`
9233 { echo "$as_me:$LINENO: result: $ac_res" >&5
9234 echo "${ECHO_T}$ac_res" >&6; }
9235 if test `eval echo '${'$as_ac_var'}'` = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9242 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9243 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
9244 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9245 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 ac_check_lib_save_LIBS=$LIBS
9249 cat >conftest.$ac_ext <<_ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9256 /* Override any GCC internal prototype to avoid an error.
9257 Use char because int might match the return type of a GCC
9258 builtin and then its argument prototype would still apply. */
9266 return nanosleep ();
9271 rm -f conftest.$ac_objext conftest$ac_exeext
9272 if { (ac_try="$ac_link"
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_link") 2>conftest.er1
9280 grep -v '^ *+' conftest.er1 >conftest.err
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } && {
9285 test -z "$ac_c_werror_flag" ||
9286 test ! -s conftest.err
9287 } && test -s conftest$ac_exeext &&
9288 $as_test_x conftest$ac_exeext; then
9289 ac_cv_lib_rt_nanosleep=yes
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 ac_cv_lib_rt_nanosleep=no
9297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_lib_save_LIBS
9301 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9302 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
9303 if test $ac_cv_lib_rt_nanosleep = yes; then
9306 cat >>confdefs.h <<\_ACEOF
9307 #define HAVE_NANOSLEEP 1
9314 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9315 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
9316 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9317 echo $ECHO_N "(cached) $ECHO_C" >&6
9319 ac_check_lib_save_LIBS=$LIBS
9320 LIBS="-lposix4 $LIBS"
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9338 return nanosleep ();
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (ac_try="$ac_link"
9346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9347 *) ac_try_echo=$ac_try;;
9349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9350 (eval "$ac_link") 2>conftest.er1
9352 grep -v '^ *+' conftest.er1 >conftest.err
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && {
9357 test -z "$ac_c_werror_flag" ||
9358 test ! -s conftest.err
9359 } && test -s conftest$ac_exeext &&
9360 $as_test_x conftest$ac_exeext; then
9361 ac_cv_lib_posix4_nanosleep=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_cv_lib_posix4_nanosleep=no
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371 LIBS=$ac_check_lib_save_LIBS
9373 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9374 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
9375 if test $ac_cv_lib_posix4_nanosleep = yes; then
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_NANOSLEEP 1
9382 LIBS="-lposix4 $LIBS"
9396 for ac_func in clock_gettime
9398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9399 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9401 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9402 echo $ECHO_N "(cached) $ECHO_C" >&6
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9412 #define $ac_func innocuous_$ac_func
9414 /* System header to define __stub macros and hopefully few prototypes,
9415 which can conflict with char $ac_func (); below.
9416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9417 <limits.h> exists even on freestanding compilers. */
9420 # include <limits.h>
9422 # include <assert.h>
9427 /* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9434 /* The GNU C library defines this for functions which it implements
9435 to always fail with ENOSYS. Some functions are actually named
9436 something starting with __ and the normal name is an alias. */
9437 #if defined __stub_$ac_func || defined __stub___$ac_func
9449 rm -f conftest.$ac_objext conftest$ac_exeext
9450 if { (ac_try="$ac_link"
9452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9453 *) ac_try_echo=$ac_try;;
9455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9456 (eval "$ac_link") 2>conftest.er1
9458 grep -v '^ *+' conftest.er1 >conftest.err
9460 cat conftest.err >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); } && {
9463 test -z "$ac_c_werror_flag" ||
9464 test ! -s conftest.err
9465 } && test -s conftest$ac_exeext &&
9466 $as_test_x conftest$ac_exeext; then
9467 eval "$as_ac_var=yes"
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 eval "$as_ac_var=no"
9475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9476 conftest$ac_exeext conftest.$ac_ext
9478 ac_res=`eval echo '${'$as_ac_var'}'`
9479 { echo "$as_me:$LINENO: result: $ac_res" >&5
9480 echo "${ECHO_T}$ac_res" >&6; }
9481 if test `eval echo '${'$as_ac_var'}'` = yes; then
9482 cat >>confdefs.h <<_ACEOF
9483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9489 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
9490 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
9491 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 ac_check_lib_save_LIBS=$LIBS
9496 cat >conftest.$ac_ext <<_ACEOF
9499 cat confdefs.h >>conftest.$ac_ext
9500 cat >>conftest.$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9509 char clock_gettime ();
9513 return clock_gettime ();
9518 rm -f conftest.$ac_objext conftest$ac_exeext
9519 if { (ac_try="$ac_link"
9521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9522 *) ac_try_echo=$ac_try;;
9524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9525 (eval "$ac_link") 2>conftest.er1
9527 grep -v '^ *+' conftest.er1 >conftest.err
9529 cat conftest.err >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } && {
9532 test -z "$ac_c_werror_flag" ||
9533 test ! -s conftest.err
9534 } && test -s conftest$ac_exeext &&
9535 $as_test_x conftest$ac_exeext; then
9536 ac_cv_lib_rt_clock_gettime=yes
9538 echo "$as_me: failed program was:" >&5
9539 sed 's/^/| /' conftest.$ac_ext >&5
9541 ac_cv_lib_rt_clock_gettime=no
9544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9545 conftest$ac_exeext conftest.$ac_ext
9546 LIBS=$ac_check_lib_save_LIBS
9548 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
9549 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
9550 if test $ac_cv_lib_rt_clock_gettime = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define HAVE_LIBRT 1
9565 wget_check_in_nsl=NONE
9567 for ac_func in gethostbyname
9569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9575 cat >conftest.$ac_ext <<_ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9583 #define $ac_func innocuous_$ac_func
9585 /* System header to define __stub macros and hopefully few prototypes,
9586 which can conflict with char $ac_func (); below.
9587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9588 <limits.h> exists even on freestanding compilers. */
9591 # include <limits.h>
9593 # include <assert.h>
9598 /* Override any GCC internal prototype to avoid an error.
9599 Use char because int might match the return type of a GCC
9600 builtin and then its argument prototype would still apply. */
9605 /* The GNU C library defines this for functions which it implements
9606 to always fail with ENOSYS. Some functions are actually named
9607 something starting with __ and the normal name is an alias. */
9608 #if defined __stub_$ac_func || defined __stub___$ac_func
9620 rm -f conftest.$ac_objext conftest$ac_exeext
9621 if { (ac_try="$ac_link"
9623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624 *) ac_try_echo=$ac_try;;
9626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627 (eval "$ac_link") 2>conftest.er1
9629 grep -v '^ *+' conftest.er1 >conftest.err
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); } && {
9634 test -z "$ac_c_werror_flag" ||
9635 test ! -s conftest.err
9636 } && test -s conftest$ac_exeext &&
9637 $as_test_x conftest$ac_exeext; then
9638 eval "$as_ac_var=yes"
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9643 eval "$as_ac_var=no"
9646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647 conftest$ac_exeext conftest.$ac_ext
9649 ac_res=`eval echo '${'$as_ac_var'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9652 if test `eval echo '${'$as_ac_var'}'` = yes; then
9653 cat >>confdefs.h <<_ACEOF
9654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9659 wget_check_in_nsl=gethostbyname
9665 for ac_func in inet_ntoa
9667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9668 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9681 #define $ac_func innocuous_$ac_func
9683 /* System header to define __stub macros and hopefully few prototypes,
9684 which can conflict with char $ac_func (); below.
9685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9686 <limits.h> exists even on freestanding compilers. */
9689 # include <limits.h>
9691 # include <assert.h>
9696 /* Override any GCC internal prototype to avoid an error.
9697 Use char because int might match the return type of a GCC
9698 builtin and then its argument prototype would still apply. */
9703 /* The GNU C library defines this for functions which it implements
9704 to always fail with ENOSYS. Some functions are actually named
9705 something starting with __ and the normal name is an alias. */
9706 #if defined __stub_$ac_func || defined __stub___$ac_func
9718 rm -f conftest.$ac_objext conftest$ac_exeext
9719 if { (ac_try="$ac_link"
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_link") 2>conftest.er1
9727 grep -v '^ *+' conftest.er1 >conftest.err
9729 cat conftest.err >&5
9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } && {
9732 test -z "$ac_c_werror_flag" ||
9733 test ! -s conftest.err
9734 } && test -s conftest$ac_exeext &&
9735 $as_test_x conftest$ac_exeext; then
9736 eval "$as_ac_var=yes"
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 eval "$as_ac_var=no"
9744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9745 conftest$ac_exeext conftest.$ac_ext
9747 ac_res=`eval echo '${'$as_ac_var'}'`
9748 { echo "$as_me:$LINENO: result: $ac_res" >&5
9749 echo "${ECHO_T}$ac_res" >&6; }
9750 if test `eval echo '${'$as_ac_var'}'` = yes; then
9751 cat >>confdefs.h <<_ACEOF
9752 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9757 wget_check_in_nsl=inet_ntoa
9762 if test $wget_check_in_nsl != NONE; then
9764 as_ac_Lib=`echo "ac_cv_lib_nsl_$wget_check_in_nsl" | $as_tr_sh`
9765 { echo "$as_me:$LINENO: checking for $wget_check_in_nsl in -lnsl" >&5
9766 echo $ECHO_N "checking for $wget_check_in_nsl in -lnsl... $ECHO_C" >&6; }
9767 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
9768 echo $ECHO_N "(cached) $ECHO_C" >&6
9770 ac_check_lib_save_LIBS=$LIBS
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 /* Override any GCC internal prototype to avoid an error.
9780 Use char because int might match the return type of a GCC
9781 builtin and then its argument prototype would still apply. */
9785 char $wget_check_in_nsl ();
9789 return $wget_check_in_nsl ();
9794 rm -f conftest.$ac_objext conftest$ac_exeext
9795 if { (ac_try="$ac_link"
9797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798 *) ac_try_echo=$ac_try;;
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801 (eval "$ac_link") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } && {
9808 test -z "$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 } && test -s conftest$ac_exeext &&
9811 $as_test_x conftest$ac_exeext; then
9812 eval "$as_ac_Lib=yes"
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 eval "$as_ac_Lib=no"
9820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LIBS=$ac_check_lib_save_LIBS
9824 ac_res=`eval echo '${'$as_ac_Lib'}'`
9825 { echo "$as_me:$LINENO: result: $ac_res" >&5
9826 echo "${ECHO_T}$ac_res" >&6; }
9827 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
9828 cat >>confdefs.h <<_ACEOF
9829 #define HAVE_LIBNSL 1
9838 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9839 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
9840 if test "${ac_cv_lib_socket_socket+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9843 ac_check_lib_save_LIBS=$LIBS
9844 LIBS="-lsocket $LIBS"
9845 cat >conftest.$ac_ext <<_ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9852 /* Override any GCC internal prototype to avoid an error.
9853 Use char because int might match the return type of a GCC
9854 builtin and then its argument prototype would still apply. */
9867 rm -f conftest.$ac_objext conftest$ac_exeext
9868 if { (ac_try="$ac_link"
9870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871 *) ac_try_echo=$ac_try;;
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874 (eval "$ac_link") 2>conftest.er1
9876 grep -v '^ *+' conftest.er1 >conftest.err
9878 cat conftest.err >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); } && {
9881 test -z "$ac_c_werror_flag" ||
9882 test ! -s conftest.err
9883 } && test -s conftest$ac_exeext &&
9884 $as_test_x conftest$ac_exeext; then
9885 ac_cv_lib_socket_socket=yes
9887 echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9890 ac_cv_lib_socket_socket=no
9893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9894 conftest$ac_exeext conftest.$ac_ext
9895 LIBS=$ac_check_lib_save_LIBS
9897 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9898 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
9899 if test $ac_cv_lib_socket_socket = yes; then
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_LIBSOCKET 1
9904 LIBS="-lsocket $LIBS"
9910 { echo "$as_me:$LINENO: checking for getopt_long" >&5
9911 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6; }
9912 if test "${ac_cv_func_getopt_long+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9915 cat >conftest.$ac_ext <<_ACEOF
9918 cat confdefs.h >>conftest.$ac_ext
9919 cat >>conftest.$ac_ext <<_ACEOF
9920 /* end confdefs.h. */
9921 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
9922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9923 #define getopt_long innocuous_getopt_long
9925 /* System header to define __stub macros and hopefully few prototypes,
9926 which can conflict with char getopt_long (); below.
9927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9928 <limits.h> exists even on freestanding compilers. */
9931 # include <limits.h>
9933 # include <assert.h>
9938 /* Override any GCC internal prototype to avoid an error.
9939 Use char because int might match the return type of a GCC
9940 builtin and then its argument prototype would still apply. */
9944 char getopt_long ();
9945 /* The GNU C library defines this for functions which it implements
9946 to always fail with ENOSYS. Some functions are actually named
9947 something starting with __ and the normal name is an alias. */
9948 #if defined __stub_getopt_long || defined __stub___getopt_long
9955 return getopt_long ();
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (ac_try="$ac_link"
9963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9964 *) ac_try_echo=$ac_try;;
9966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9967 (eval "$ac_link") 2>conftest.er1
9969 grep -v '^ *+' conftest.er1 >conftest.err
9971 cat conftest.err >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); } && {
9974 test -z "$ac_c_werror_flag" ||
9975 test ! -s conftest.err
9976 } && test -s conftest$ac_exeext &&
9977 $as_test_x conftest$ac_exeext; then
9978 ac_cv_func_getopt_long=yes
9980 echo "$as_me: failed program was:" >&5
9981 sed 's/^/| /' conftest.$ac_ext >&5
9983 ac_cv_func_getopt_long=no
9986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9987 conftest$ac_exeext conftest.$ac_ext
9989 { echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
9990 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6; }
9991 if test $ac_cv_func_getopt_long = yes; then
9995 GETOPT_OBJ='getopt.o'
10003 if test "X$prefix" = "XNONE"; then
10004 acl_final_prefix="$ac_default_prefix"
10006 acl_final_prefix="$prefix"
10008 if test "X$exec_prefix" = "XNONE"; then
10009 acl_final_exec_prefix='${prefix}'
10011 acl_final_exec_prefix="$exec_prefix"
10013 acl_save_prefix="$prefix"
10014 prefix="$acl_final_prefix"
10015 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10016 prefix="$acl_save_prefix"
10019 # Check whether --with-gnu-ld was given.
10020 if test "${with_gnu_ld+set}" = set; then
10021 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10026 # Prepare PATH_SEPARATOR.
10027 # The user is always right.
10028 if test "${PATH_SEPARATOR+set}" != set; then
10029 echo "#! /bin/sh" >conf$$.sh
10030 echo "exit 0" >>conf$$.sh
10032 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10040 if test "$GCC" = yes; then
10041 # Check if gcc -print-prog-name=ld gives a path.
10042 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10043 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
10046 # gcc leaves a trailing carriage return which upsets mingw
10047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10052 # Accept absolute paths.
10053 [\\/]* | [A-Za-z]:[\\/]*)
10054 re_direlt='/[^/][^/]*/\.\./'
10055 # Canonicalize the path of ld
10056 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10057 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10058 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10060 test -z "$LD" && LD="$ac_prog"
10063 # If it fails, then pretend we aren't using GCC.
10067 # If it is relative, then search for the first ld in PATH.
10068 with_gnu_ld=unknown
10071 elif test "$with_gnu_ld" = yes; then
10072 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10073 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10075 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10076 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10078 if test "${acl_cv_path_LD+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 if test -z "$LD"; then
10082 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10083 for ac_dir in $PATH; do
10084 test -z "$ac_dir" && ac_dir=.
10085 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10086 acl_cv_path_LD="$ac_dir/$ac_prog"
10087 # Check to see if the program is GNU ld. I'd rather use --version,
10088 # but apparently some GNU ld's only accept -v.
10089 # Break only if it was the GNU/non-GNU ld that we prefer.
10090 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
10091 *GNU* | *'with BFD'*)
10092 test "$with_gnu_ld" != no && break ;;
10094 test "$with_gnu_ld" != yes && break ;;
10100 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10104 LD="$acl_cv_path_LD"
10105 if test -n "$LD"; then
10106 { echo "$as_me:$LINENO: result: $LD" >&5
10107 echo "${ECHO_T}$LD" >&6; }
10109 { echo "$as_me:$LINENO: result: no" >&5
10110 echo "${ECHO_T}no" >&6; }
10112 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10113 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10114 { (exit 1); exit 1; }; }
10115 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10116 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10117 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10121 case `$LD -v 2>&1 </dev/null` in
10122 *GNU* | *'with BFD'*)
10123 acl_cv_prog_gnu_ld=yes ;;
10125 acl_cv_prog_gnu_ld=no ;;
10128 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10129 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
10130 with_gnu_ld=$acl_cv_prog_gnu_ld
10135 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10136 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
10137 if test "${acl_cv_rpath+set}" = set; then
10138 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10142 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10144 rm -f ./conftest.sh
10148 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10149 echo "${ECHO_T}$acl_cv_rpath" >&6; }
10151 libext="$acl_cv_libext"
10152 shlibext="$acl_cv_shlibext"
10153 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10154 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10155 hardcode_direct="$acl_cv_hardcode_direct"
10156 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10157 # Check whether --enable-rpath was given.
10158 if test "${enable_rpath+set}" = set; then
10159 enableval=$enable_rpath; :
10165 if test x"$with_ssl" = xgnutls; then
10177 acl_save_prefix="$prefix"
10178 prefix="$acl_final_prefix"
10179 acl_save_exec_prefix="$exec_prefix"
10180 exec_prefix="$acl_final_exec_prefix"
10182 eval additional_includedir=\"$includedir\"
10183 eval additional_libdir=\"$libdir\"
10185 exec_prefix="$acl_save_exec_prefix"
10186 prefix="$acl_save_prefix"
10189 # Check whether --with-libgnutls-prefix was given.
10190 if test "${with_libgnutls_prefix+set}" = set; then
10191 withval=$with_libgnutls_prefix;
10192 if test "X$withval" = "Xno"; then
10195 if test "X$withval" = "X"; then
10197 acl_save_prefix="$prefix"
10198 prefix="$acl_final_prefix"
10199 acl_save_exec_prefix="$exec_prefix"
10200 exec_prefix="$acl_final_exec_prefix"
10202 eval additional_includedir=\"$includedir\"
10203 eval additional_libdir=\"$libdir\"
10205 exec_prefix="$acl_save_exec_prefix"
10206 prefix="$acl_save_prefix"
10209 additional_includedir="$withval/include"
10210 additional_libdir="$withval/lib"
10221 names_already_handled=
10222 names_next_round='gnutls '
10223 while test -n "$names_next_round"; do
10224 names_this_round="$names_next_round"
10226 for name in $names_this_round; do
10228 for n in $names_already_handled; do
10229 if test "$n" = "$name"; then
10230 already_handled=yes
10234 if test -z "$already_handled"; then
10235 names_already_handled="$names_already_handled $name"
10236 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10237 eval value=\"\$HAVE_LIB$uppername\"
10238 if test -n "$value"; then
10239 if test "$value" = yes; then
10240 eval value=\"\$LIB$uppername\"
10241 test -z "$value" || LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$value"
10242 eval value=\"\$LTLIB$uppername\"
10243 test -z "$value" || LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$value"
10252 if test $use_additional = yes; then
10253 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10254 found_dir="$additional_libdir"
10255 found_so="$additional_libdir/lib$name.$shlibext"
10256 if test -f "$additional_libdir/lib$name.la"; then
10257 found_la="$additional_libdir/lib$name.la"
10260 if test -f "$additional_libdir/lib$name.$libext"; then
10261 found_dir="$additional_libdir"
10262 found_a="$additional_libdir/lib$name.$libext"
10263 if test -f "$additional_libdir/lib$name.la"; then
10264 found_la="$additional_libdir/lib$name.la"
10269 if test "X$found_dir" = "X"; then
10270 for x in $LDFLAGS $LTLIBGNUTLS; do
10272 acl_save_prefix="$prefix"
10273 prefix="$acl_final_prefix"
10274 acl_save_exec_prefix="$exec_prefix"
10275 exec_prefix="$acl_final_exec_prefix"
10277 exec_prefix="$acl_save_exec_prefix"
10278 prefix="$acl_save_prefix"
10282 dir=`echo "X$x" | sed -e 's/^X-L//'`
10283 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10285 found_so="$dir/lib$name.$shlibext"
10286 if test -f "$dir/lib$name.la"; then
10287 found_la="$dir/lib$name.la"
10290 if test -f "$dir/lib$name.$libext"; then
10292 found_a="$dir/lib$name.$libext"
10293 if test -f "$dir/lib$name.la"; then
10294 found_la="$dir/lib$name.la"
10300 if test "X$found_dir" != "X"; then
10305 if test "X$found_dir" != "X"; then
10306 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$found_dir -l$name"
10307 if test "X$found_so" != "X"; then
10308 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10309 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10312 for x in $ltrpathdirs; do
10313 if test "X$x" = "X$found_dir"; then
10318 if test -z "$haveit"; then
10319 ltrpathdirs="$ltrpathdirs $found_dir"
10321 if test "$hardcode_direct" = yes; then
10322 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10324 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10325 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10327 for x in $rpathdirs; do
10328 if test "X$x" = "X$found_dir"; then
10333 if test -z "$haveit"; then
10334 rpathdirs="$rpathdirs $found_dir"
10338 for x in $LDFLAGS $LIBGNUTLS; do
10340 acl_save_prefix="$prefix"
10341 prefix="$acl_final_prefix"
10342 acl_save_exec_prefix="$exec_prefix"
10343 exec_prefix="$acl_final_exec_prefix"
10345 exec_prefix="$acl_save_exec_prefix"
10346 prefix="$acl_save_prefix"
10348 if test "X$x" = "X-L$found_dir"; then
10353 if test -z "$haveit"; then
10354 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir"
10356 if test "$hardcode_minus_L" != no; then
10357 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_so"
10359 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
10365 if test "X$found_a" != "X"; then
10366 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$found_a"
10368 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$found_dir -l$name"
10371 additional_includedir=
10372 case "$found_dir" in
10374 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10375 additional_includedir="$basedir/include"
10378 if test "X$additional_includedir" != "X"; then
10379 if test "X$additional_includedir" != "X/usr/include"; then
10381 if test "X$additional_includedir" = "X/usr/local/include"; then
10382 if test -n "$GCC"; then
10384 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10388 if test -z "$haveit"; then
10389 for x in $CPPFLAGS $INCGNUTLS; do
10391 acl_save_prefix="$prefix"
10392 prefix="$acl_final_prefix"
10393 acl_save_exec_prefix="$exec_prefix"
10394 exec_prefix="$acl_final_exec_prefix"
10396 exec_prefix="$acl_save_exec_prefix"
10397 prefix="$acl_save_prefix"
10399 if test "X$x" = "X-I$additional_includedir"; then
10404 if test -z "$haveit"; then
10405 if test -d "$additional_includedir"; then
10406 INCGNUTLS="${INCGNUTLS}${INCGNUTLS:+ }-I$additional_includedir"
10412 if test -n "$found_la"; then
10413 save_libdir="$libdir"
10414 case "$found_la" in
10415 */* | *\\*) . "$found_la" ;;
10416 *) . "./$found_la" ;;
10418 libdir="$save_libdir"
10419 for dep in $dependency_libs; do
10422 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10423 if test "X$additional_libdir" != "X/usr/lib"; then
10425 if test "X$additional_libdir" = "X/usr/local/lib"; then
10426 if test -n "$GCC"; then
10428 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
10432 if test -z "$haveit"; then
10434 for x in $LDFLAGS $LIBGNUTLS; do
10436 acl_save_prefix="$prefix"
10437 prefix="$acl_final_prefix"
10438 acl_save_exec_prefix="$exec_prefix"
10439 exec_prefix="$acl_final_exec_prefix"
10441 exec_prefix="$acl_save_exec_prefix"
10442 prefix="$acl_save_prefix"
10444 if test "X$x" = "X-L$additional_libdir"; then
10449 if test -z "$haveit"; then
10450 if test -d "$additional_libdir"; then
10451 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-L$additional_libdir"
10455 for x in $LDFLAGS $LTLIBGNUTLS; do
10457 acl_save_prefix="$prefix"
10458 prefix="$acl_final_prefix"
10459 acl_save_exec_prefix="$exec_prefix"
10460 exec_prefix="$acl_final_exec_prefix"
10462 exec_prefix="$acl_save_exec_prefix"
10463 prefix="$acl_save_prefix"
10465 if test "X$x" = "X-L$additional_libdir"; then
10470 if test -z "$haveit"; then
10471 if test -d "$additional_libdir"; then
10472 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-L$additional_libdir"
10479 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10480 if test "$enable_rpath" != no; then
10482 for x in $rpathdirs; do
10483 if test "X$x" = "X$dir"; then
10488 if test -z "$haveit"; then
10489 rpathdirs="$rpathdirs $dir"
10492 for x in $ltrpathdirs; do
10493 if test "X$x" = "X$dir"; then
10498 if test -z "$haveit"; then
10499 ltrpathdirs="$ltrpathdirs $dir"
10504 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10507 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10510 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$dep"
10511 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }$dep"
10517 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }-l$name"
10518 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-l$name"
10524 if test "X$rpathdirs" != "X"; then
10525 if test -n "$hardcode_libdir_separator"; then
10527 for found_dir in $rpathdirs; do
10528 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10530 acl_save_libdir="$libdir"
10532 eval flag=\"$hardcode_libdir_flag_spec\"
10533 libdir="$acl_save_libdir"
10534 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
10536 for found_dir in $rpathdirs; do
10537 acl_save_libdir="$libdir"
10538 libdir="$found_dir"
10539 eval flag=\"$hardcode_libdir_flag_spec\"
10540 libdir="$acl_save_libdir"
10541 LIBGNUTLS="${LIBGNUTLS}${LIBGNUTLS:+ }$flag"
10545 if test "X$ltrpathdirs" != "X"; then
10546 for found_dir in $ltrpathdirs; do
10547 LTLIBGNUTLS="${LTLIBGNUTLS}${LTLIBGNUTLS:+ }-R$found_dir"
10552 ac_save_CPPFLAGS="$CPPFLAGS"
10554 for element in $INCGNUTLS; do
10556 for x in $CPPFLAGS; do
10558 acl_save_prefix="$prefix"
10559 prefix="$acl_final_prefix"
10560 acl_save_exec_prefix="$exec_prefix"
10561 exec_prefix="$acl_final_exec_prefix"
10563 exec_prefix="$acl_save_exec_prefix"
10564 prefix="$acl_save_prefix"
10566 if test "X$x" = "X$element"; then
10571 if test -z "$haveit"; then
10572 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10577 { echo "$as_me:$LINENO: checking for libgnutls" >&5
10578 echo $ECHO_N "checking for libgnutls... $ECHO_C" >&6; }
10579 if test "${ac_cv_libgnutls+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 ac_save_LIBS="$LIBS"
10584 LIBS="$LIBS $LIBGNUTLS"
10585 cat >conftest.$ac_ext <<_ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10592 #include <gnutls/gnutls.h>
10597 gnutls_global_init()
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10611 grep -v '^ *+' conftest.er1 >conftest.err
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && {
10616 test -z "$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext &&
10619 $as_test_x conftest$ac_exeext; then
10620 ac_cv_libgnutls=yes
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629 conftest$ac_exeext conftest.$ac_ext
10630 LIBS="$ac_save_LIBS"
10633 { echo "$as_me:$LINENO: result: $ac_cv_libgnutls" >&5
10634 echo "${ECHO_T}$ac_cv_libgnutls" >&6; }
10635 if test "$ac_cv_libgnutls" = yes; then
10638 cat >>confdefs.h <<\_ACEOF
10639 #define HAVE_LIBGNUTLS 1
10642 { echo "$as_me:$LINENO: checking how to link with libgnutls" >&5
10643 echo $ECHO_N "checking how to link with libgnutls... $ECHO_C" >&6; }
10644 { echo "$as_me:$LINENO: result: $LIBGNUTLS" >&5
10645 echo "${ECHO_T}$LIBGNUTLS" >&6; }
10648 CPPFLAGS="$ac_save_CPPFLAGS"
10658 if test x"$LIBGNUTLS" != x
10660 { echo "$as_me:$LINENO: compiling in support for SSL via GnuTLS" >&5
10661 echo "$as_me: compiling in support for SSL via GnuTLS" >&6;}
10664 { { echo "$as_me:$LINENO: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&5
10665 echo "$as_me: error: --with-ssl=gnutls was given, but GNUTLS is not available." >&2;}
10666 { (exit 1); exit 1; }; }
10671 # --with-ssl is not gnutls: check if it's no
10672 if test x"$with_ssl" != xno; then
10675 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10680 ac_check_lib_save_LIBS=$LIBS
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10689 /* Override any GCC internal prototype to avoid an error.
10690 Use char because int might match the return type of a GCC
10691 builtin and then its argument prototype would still apply. */
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (ac_try="$ac_link"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_link") 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest$ac_exeext &&
10721 $as_test_x conftest$ac_exeext; then
10722 ac_cv_lib_dl_dlopen=yes
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10727 ac_cv_lib_dl_dlopen=no
10730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10734 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10735 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10736 if test $ac_cv_lib_dl_dlopen = yes; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define HAVE_LIBDL 1
10746 { echo "$as_me:$LINENO: checking for shl_load in -ldl" >&5
10747 echo $ECHO_N "checking for shl_load in -ldl... $ECHO_C" >&6; }
10748 if test "${ac_cv_lib_dl_shl_load+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 ac_check_lib_save_LIBS=$LIBS
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10760 /* Override any GCC internal prototype to avoid an error.
10761 Use char because int might match the return type of a GCC
10762 builtin and then its argument prototype would still apply. */
10770 return shl_load ();
10775 rm -f conftest.$ac_objext conftest$ac_exeext
10776 if { (ac_try="$ac_link"
10777 case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_link") 2>conftest.er1
10784 grep -v '^ *+' conftest.er1 >conftest.err
10786 cat conftest.err >&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && {
10789 test -z "$ac_c_werror_flag" ||
10790 test ! -s conftest.err
10791 } && test -s conftest$ac_exeext &&
10792 $as_test_x conftest$ac_exeext; then
10793 ac_cv_lib_dl_shl_load=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_lib_dl_shl_load=no
10801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10802 conftest$ac_exeext conftest.$ac_ext
10803 LIBS=$ac_check_lib_save_LIBS
10805 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_shl_load" >&5
10806 echo "${ECHO_T}$ac_cv_lib_dl_shl_load" >&6; }
10807 if test $ac_cv_lib_dl_shl_load = yes; then
10808 cat >>confdefs.h <<_ACEOF
10809 #define HAVE_LIBDL 1
10830 acl_save_prefix="$prefix"
10831 prefix="$acl_final_prefix"
10832 acl_save_exec_prefix="$exec_prefix"
10833 exec_prefix="$acl_final_exec_prefix"
10835 eval additional_includedir=\"$includedir\"
10836 eval additional_libdir=\"$libdir\"
10838 exec_prefix="$acl_save_exec_prefix"
10839 prefix="$acl_save_prefix"
10842 # Check whether --with-libssl-prefix was given.
10843 if test "${with_libssl_prefix+set}" = set; then
10844 withval=$with_libssl_prefix;
10845 if test "X$withval" = "Xno"; then
10848 if test "X$withval" = "X"; then
10850 acl_save_prefix="$prefix"
10851 prefix="$acl_final_prefix"
10852 acl_save_exec_prefix="$exec_prefix"
10853 exec_prefix="$acl_final_exec_prefix"
10855 eval additional_includedir=\"$includedir\"
10856 eval additional_libdir=\"$libdir\"
10858 exec_prefix="$acl_save_exec_prefix"
10859 prefix="$acl_save_prefix"
10862 additional_includedir="$withval/include"
10863 additional_libdir="$withval/lib"
10874 names_already_handled=
10875 names_next_round='ssl crypto'
10876 while test -n "$names_next_round"; do
10877 names_this_round="$names_next_round"
10879 for name in $names_this_round; do
10881 for n in $names_already_handled; do
10882 if test "$n" = "$name"; then
10883 already_handled=yes
10887 if test -z "$already_handled"; then
10888 names_already_handled="$names_already_handled $name"
10889 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10890 eval value=\"\$HAVE_LIB$uppername\"
10891 if test -n "$value"; then
10892 if test "$value" = yes; then
10893 eval value=\"\$LIB$uppername\"
10894 test -z "$value" || LIBSSL="${LIBSSL}${LIBSSL:+ }$value"
10895 eval value=\"\$LTLIB$uppername\"
10896 test -z "$value" || LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$value"
10905 if test $use_additional = yes; then
10906 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10907 found_dir="$additional_libdir"
10908 found_so="$additional_libdir/lib$name.$shlibext"
10909 if test -f "$additional_libdir/lib$name.la"; then
10910 found_la="$additional_libdir/lib$name.la"
10913 if test -f "$additional_libdir/lib$name.$libext"; then
10914 found_dir="$additional_libdir"
10915 found_a="$additional_libdir/lib$name.$libext"
10916 if test -f "$additional_libdir/lib$name.la"; then
10917 found_la="$additional_libdir/lib$name.la"
10922 if test "X$found_dir" = "X"; then
10923 for x in $LDFLAGS $LTLIBSSL; do
10925 acl_save_prefix="$prefix"
10926 prefix="$acl_final_prefix"
10927 acl_save_exec_prefix="$exec_prefix"
10928 exec_prefix="$acl_final_exec_prefix"
10930 exec_prefix="$acl_save_exec_prefix"
10931 prefix="$acl_save_prefix"
10935 dir=`echo "X$x" | sed -e 's/^X-L//'`
10936 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10938 found_so="$dir/lib$name.$shlibext"
10939 if test -f "$dir/lib$name.la"; then
10940 found_la="$dir/lib$name.la"
10943 if test -f "$dir/lib$name.$libext"; then
10945 found_a="$dir/lib$name.$libext"
10946 if test -f "$dir/lib$name.la"; then
10947 found_la="$dir/lib$name.la"
10953 if test "X$found_dir" != "X"; then
10958 if test "X$found_dir" != "X"; then
10959 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$found_dir -l$name"
10960 if test "X$found_so" != "X"; then
10961 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10962 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10965 for x in $ltrpathdirs; do
10966 if test "X$x" = "X$found_dir"; then
10971 if test -z "$haveit"; then
10972 ltrpathdirs="$ltrpathdirs $found_dir"
10974 if test "$hardcode_direct" = yes; then
10975 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10977 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10978 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
10980 for x in $rpathdirs; do
10981 if test "X$x" = "X$found_dir"; then
10986 if test -z "$haveit"; then
10987 rpathdirs="$rpathdirs $found_dir"
10991 for x in $LDFLAGS $LIBSSL; do
10993 acl_save_prefix="$prefix"
10994 prefix="$acl_final_prefix"
10995 acl_save_exec_prefix="$exec_prefix"
10996 exec_prefix="$acl_final_exec_prefix"
10998 exec_prefix="$acl_save_exec_prefix"
10999 prefix="$acl_save_prefix"
11001 if test "X$x" = "X-L$found_dir"; then
11006 if test -z "$haveit"; then
11007 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir"
11009 if test "$hardcode_minus_L" != no; then
11010 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_so"
11012 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
11018 if test "X$found_a" != "X"; then
11019 LIBSSL="${LIBSSL}${LIBSSL:+ }$found_a"
11021 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$found_dir -l$name"
11024 additional_includedir=
11025 case "$found_dir" in
11027 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11028 additional_includedir="$basedir/include"
11031 if test "X$additional_includedir" != "X"; then
11032 if test "X$additional_includedir" != "X/usr/include"; then
11034 if test "X$additional_includedir" = "X/usr/local/include"; then
11035 if test -n "$GCC"; then
11037 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11041 if test -z "$haveit"; then
11042 for x in $CPPFLAGS $INCSSL; do
11044 acl_save_prefix="$prefix"
11045 prefix="$acl_final_prefix"
11046 acl_save_exec_prefix="$exec_prefix"
11047 exec_prefix="$acl_final_exec_prefix"
11049 exec_prefix="$acl_save_exec_prefix"
11050 prefix="$acl_save_prefix"
11052 if test "X$x" = "X-I$additional_includedir"; then
11057 if test -z "$haveit"; then
11058 if test -d "$additional_includedir"; then
11059 INCSSL="${INCSSL}${INCSSL:+ }-I$additional_includedir"
11065 if test -n "$found_la"; then
11066 save_libdir="$libdir"
11067 case "$found_la" in
11068 */* | *\\*) . "$found_la" ;;
11069 *) . "./$found_la" ;;
11071 libdir="$save_libdir"
11072 for dep in $dependency_libs; do
11075 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11076 if test "X$additional_libdir" != "X/usr/lib"; then
11078 if test "X$additional_libdir" = "X/usr/local/lib"; then
11079 if test -n "$GCC"; then
11081 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11085 if test -z "$haveit"; then
11087 for x in $LDFLAGS $LIBSSL; do
11089 acl_save_prefix="$prefix"
11090 prefix="$acl_final_prefix"
11091 acl_save_exec_prefix="$exec_prefix"
11092 exec_prefix="$acl_final_exec_prefix"
11094 exec_prefix="$acl_save_exec_prefix"
11095 prefix="$acl_save_prefix"
11097 if test "X$x" = "X-L$additional_libdir"; then
11102 if test -z "$haveit"; then
11103 if test -d "$additional_libdir"; then
11104 LIBSSL="${LIBSSL}${LIBSSL:+ }-L$additional_libdir"
11108 for x in $LDFLAGS $LTLIBSSL; do
11110 acl_save_prefix="$prefix"
11111 prefix="$acl_final_prefix"
11112 acl_save_exec_prefix="$exec_prefix"
11113 exec_prefix="$acl_final_exec_prefix"
11115 exec_prefix="$acl_save_exec_prefix"
11116 prefix="$acl_save_prefix"
11118 if test "X$x" = "X-L$additional_libdir"; then
11123 if test -z "$haveit"; then
11124 if test -d "$additional_libdir"; then
11125 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-L$additional_libdir"
11132 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11133 if test "$enable_rpath" != no; then
11135 for x in $rpathdirs; do
11136 if test "X$x" = "X$dir"; then
11141 if test -z "$haveit"; then
11142 rpathdirs="$rpathdirs $dir"
11145 for x in $ltrpathdirs; do
11146 if test "X$x" = "X$dir"; then
11151 if test -z "$haveit"; then
11152 ltrpathdirs="$ltrpathdirs $dir"
11157 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11160 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11163 LIBSSL="${LIBSSL}${LIBSSL:+ }$dep"
11164 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }$dep"
11170 LIBSSL="${LIBSSL}${LIBSSL:+ }-l$name"
11171 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-l$name"
11177 if test "X$rpathdirs" != "X"; then
11178 if test -n "$hardcode_libdir_separator"; then
11180 for found_dir in $rpathdirs; do
11181 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11183 acl_save_libdir="$libdir"
11185 eval flag=\"$hardcode_libdir_flag_spec\"
11186 libdir="$acl_save_libdir"
11187 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
11189 for found_dir in $rpathdirs; do
11190 acl_save_libdir="$libdir"
11191 libdir="$found_dir"
11192 eval flag=\"$hardcode_libdir_flag_spec\"
11193 libdir="$acl_save_libdir"
11194 LIBSSL="${LIBSSL}${LIBSSL:+ }$flag"
11198 if test "X$ltrpathdirs" != "X"; then
11199 for found_dir in $ltrpathdirs; do
11200 LTLIBSSL="${LTLIBSSL}${LTLIBSSL:+ }-R$found_dir"
11205 ac_save_CPPFLAGS="$CPPFLAGS"
11207 for element in $INCSSL; do
11209 for x in $CPPFLAGS; do
11211 acl_save_prefix="$prefix"
11212 prefix="$acl_final_prefix"
11213 acl_save_exec_prefix="$exec_prefix"
11214 exec_prefix="$acl_final_exec_prefix"
11216 exec_prefix="$acl_save_exec_prefix"
11217 prefix="$acl_save_prefix"
11219 if test "X$x" = "X$element"; then
11224 if test -z "$haveit"; then
11225 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11230 { echo "$as_me:$LINENO: checking for libssl" >&5
11231 echo $ECHO_N "checking for libssl... $ECHO_C" >&6; }
11232 if test "${ac_cv_libssl+set}" = set; then
11233 echo $ECHO_N "(cached) $ECHO_C" >&6
11236 ac_save_LIBS="$LIBS"
11237 LIBS="$LIBS $LIBSSL"
11238 cat >conftest.$ac_ext <<_ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11245 #include <openssl/ssl.h>
11246 #include <openssl/x509.h>
11247 #include <openssl/err.h>
11248 #include <openssl/rand.h>
11249 #include <openssl/des.h>
11250 #include <openssl/md4.h>
11251 #include <openssl/md5.h>
11256 SSL_library_init ()
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (ac_try="$ac_link"
11263 case "(($ac_try" in
11264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11265 *) ac_try_echo=$ac_try;;
11267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11268 (eval "$ac_link") 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } && {
11275 test -z "$ac_c_werror_flag" ||
11276 test ! -s conftest.err
11277 } && test -s conftest$ac_exeext &&
11278 $as_test_x conftest$ac_exeext; then
11281 echo "$as_me: failed program was:" >&5
11282 sed 's/^/| /' conftest.$ac_ext >&5
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288 conftest$ac_exeext conftest.$ac_ext
11289 LIBS="$ac_save_LIBS"
11292 { echo "$as_me:$LINENO: result: $ac_cv_libssl" >&5
11293 echo "${ECHO_T}$ac_cv_libssl" >&6; }
11294 if test "$ac_cv_libssl" = yes; then
11297 cat >>confdefs.h <<\_ACEOF
11298 #define HAVE_LIBSSL 1
11301 { echo "$as_me:$LINENO: checking how to link with libssl" >&5
11302 echo $ECHO_N "checking how to link with libssl... $ECHO_C" >&6; }
11303 { echo "$as_me:$LINENO: result: $LIBSSL" >&5
11304 echo "${ECHO_T}$LIBSSL" >&6; }
11307 CPPFLAGS="$ac_save_CPPFLAGS"
11317 if test x"$LIBSSL" != x
11319 { echo "$as_me:$LINENO: compiling in support for SSL via OpenSSL" >&5
11320 echo "$as_me: compiling in support for SSL via OpenSSL" >&6;}
11321 SSL_OBJ='openssl.o'
11322 elif test x"$with_ssl" != x
11324 { { echo "$as_me:$LINENO: error: --with-ssl was given, but SSL is not available." >&5
11325 echo "$as_me: error: --with-ssl was given, but SSL is not available." >&2;}
11326 { (exit 1); exit 1; }; }
11330 # endif: --with-ssl == no?
11333 # endif: --with-ssl == gnutls?
11338 if test x"$LIBSSL" != x
11340 if test x"$ENABLE_NTLM" != xno
11343 cat >>confdefs.h <<\_ACEOF
11344 #define ENABLE_NTLM 1
11347 NTLM_OBJ='http-ntlm.o'
11350 if test x"$ENABLE_NTLM" = xyes
11352 { { echo "$as_me:$LINENO: error: NTLM authorization requested and OpenSSL not found; aborting" >&5
11353 echo "$as_me: error: NTLM authorization requested and OpenSSL not found; aborting" >&2;}
11354 { (exit 1); exit 1; }; }
11360 if test x"$wget_need_md5" = xyes
11363 MD5_OBJ='gen-md5.o'
11366 if test x"$found_md5" = xno; then
11367 { echo "$as_me:$LINENO: checking for md5_calc in -lmd5" >&5
11368 echo $ECHO_N "checking for md5_calc in -lmd5... $ECHO_C" >&6; }
11369 if test "${ac_cv_lib_md5_md5_calc+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 ac_check_lib_save_LIBS=$LIBS
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11381 /* Override any GCC internal prototype to avoid an error.
11382 Use char because int might match the return type of a GCC
11383 builtin and then its argument prototype would still apply. */
11391 return md5_calc ();
11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403 (eval "$ac_link") 2>conftest.er1
11405 grep -v '^ *+' conftest.er1 >conftest.err
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } && {
11410 test -z "$ac_c_werror_flag" ||
11411 test ! -s conftest.err
11412 } && test -s conftest$ac_exeext &&
11413 $as_test_x conftest$ac_exeext; then
11414 ac_cv_lib_md5_md5_calc=yes
11416 echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11419 ac_cv_lib_md5_md5_calc=no
11422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11423 conftest$ac_exeext conftest.$ac_ext
11424 LIBS=$ac_check_lib_save_LIBS
11426 { echo "$as_me:$LINENO: result: $ac_cv_lib_md5_md5_calc" >&5
11427 echo "${ECHO_T}$ac_cv_lib_md5_md5_calc" >&6; }
11428 if test $ac_cv_lib_md5_md5_calc = yes; then
11430 { echo "$as_me:$LINENO: checking for working md5.h" >&5
11431 echo $ECHO_N "checking for working md5.h... $ECHO_C" >&6; }
11432 cat >conftest.$ac_ext <<_ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (ac_try="$ac_compile"
11438 case "(($ac_try" in
11439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440 *) ac_try_echo=$ac_try;;
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443 (eval "$ac_compile") 2>conftest.er1
11445 grep -v '^ *+' conftest.er1 >conftest.err
11447 cat conftest.err >&5
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); } && {
11450 test -z "$ac_c_werror_flag" ||
11451 test ! -s conftest.err
11452 } && test -s conftest.$ac_objext; then
11454 { echo "$as_me:$LINENO: result: yes" >&5
11455 echo "${ECHO_T}yes" >&6; }
11457 cat >>confdefs.h <<\_ACEOF
11458 #define HAVE_SOLARIS_MD5 1
11463 { echo "$as_me:$LINENO: using the Solaris MD5 implementation" >&5
11464 echo "$as_me: using the Solaris MD5 implementation" >&6;}
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 { echo "$as_me:$LINENO: result: no" >&5
11471 echo "${ECHO_T}no" >&6; }
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11480 if test x"$found_md5" = xno; then
11481 if test x"$LIBSSL" != x; then
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_OPENSSL_MD5 1
11488 { echo "$as_me:$LINENO: using the OpenSSL MD5 implementation" >&5
11489 echo "$as_me: using the OpenSSL MD5 implementation" >&6;}
11493 if test x"$found_md5" = xno; then
11495 cat >>confdefs.h <<\_ACEOF
11496 #define HAVE_BUILTIN_MD5 1
11499 MD5_OBJ="$MD5_OBJ gnu-md5.o"
11501 { echo "$as_me:$LINENO: using the built-in (GNU) MD5 implementation" >&5
11502 echo "$as_me: using the built-in (GNU) MD5 implementation" >&6;}
11503 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
11504 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
11505 if test "${ac_cv_c_bigendian+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 # See if sys/param.h defines the BYTE_ORDER macro.
11509 cat >conftest.$ac_ext <<_ACEOF
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 #include <sys/types.h>
11516 #include <sys/param.h>
11521 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
11522 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
11523 bogus endian macros
11530 rm -f conftest.$ac_objext
11531 if { (ac_try="$ac_compile"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_compile") 2>conftest.er1
11539 grep -v '^ *+' conftest.er1 >conftest.err
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } && {
11544 test -z "$ac_c_werror_flag" ||
11545 test ! -s conftest.err
11546 } && test -s conftest.$ac_objext; then
11547 # It does; now see whether it defined to BIG_ENDIAN or not.
11548 cat >conftest.$ac_ext <<_ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h. */
11554 #include <sys/types.h>
11555 #include <sys/param.h>
11560 #if BYTE_ORDER != BIG_ENDIAN
11568 rm -f conftest.$ac_objext
11569 if { (ac_try="$ac_compile"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11575 (eval "$ac_compile") 2>conftest.er1
11577 grep -v '^ *+' conftest.er1 >conftest.err
11579 cat conftest.err >&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } && {
11582 test -z "$ac_c_werror_flag" ||
11583 test ! -s conftest.err
11584 } && test -s conftest.$ac_objext; then
11585 ac_cv_c_bigendian=yes
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_cv_c_bigendian=no
11593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 # It does not; compile a test program.
11599 if test "$cross_compiling" = yes; then
11600 # try to guess the endianness by grepping values into an object file
11601 ac_cv_c_bigendian=unknown
11602 cat >conftest.$ac_ext <<_ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11609 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11610 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
11611 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11612 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11613 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
11617 _ascii (); _ebcdic ();
11622 rm -f conftest.$ac_objext
11623 if { (ac_try="$ac_compile"
11624 case "(($ac_try" in
11625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11626 *) ac_try_echo=$ac_try;;
11628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11629 (eval "$ac_compile") 2>conftest.er1
11631 grep -v '^ *+' conftest.er1 >conftest.err
11633 cat conftest.err >&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && {
11636 test -z "$ac_c_werror_flag" ||
11637 test ! -s conftest.err
11638 } && test -s conftest.$ac_objext; then
11639 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
11640 ac_cv_c_bigendian=yes
11642 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11643 if test "$ac_cv_c_bigendian" = unknown; then
11644 ac_cv_c_bigendian=no
11646 # finding both strings is unlikely to happen, but who knows?
11647 ac_cv_c_bigendian=unknown
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 cat >conftest.$ac_ext <<_ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h. */
11665 $ac_includes_default
11670 /* Are we little or big endian? From Harbison&Steele. */
11674 char c[sizeof (long int)];
11677 return u.c[sizeof (long int) - 1] == 1;
11683 rm -f conftest$ac_exeext
11684 if { (ac_try="$ac_link"
11685 case "(($ac_try" in
11686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11687 *) ac_try_echo=$ac_try;;
11689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11690 (eval "$ac_link") 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11694 { (case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_try") 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; }; then
11703 ac_cv_c_bigendian=no
11705 echo "$as_me: program exited with status $ac_status" >&5
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ( exit $ac_status )
11710 ac_cv_c_bigendian=yes
11712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11720 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
11721 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
11722 case $ac_cv_c_bigendian in
11725 cat >>confdefs.h <<\_ACEOF
11726 #define WORDS_BIGENDIAN 1
11732 { { echo "$as_me:$LINENO: error: unknown endianness
11733 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
11734 echo "$as_me: error: unknown endianness
11735 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
11736 { (exit 1); exit 1; }; } ;;
11742 cat >>confdefs.h <<\_ACEOF
11750 # Check whether --enable-ipv6 was given.
11751 if test "${enable_ipv6+set}" = set; then
11752 enableval=$enable_ipv6; case "${enable_ipv6}" in
11754 { echo "$as_me:$LINENO: disabling IPv6 at user request" >&5
11755 echo "$as_me: disabling IPv6 at user request" >&6;}
11766 { { echo "$as_me:$LINENO: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&5
11767 echo "$as_me: error: Invalid --enable-ipv6 argument \`$enable_ipv6'" >&2;}
11768 { (exit 1); exit 1; }; }
11780 if test "X$ipv6" = "Xyes"; then
11782 for ac_func in getaddrinfo
11784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11787 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11798 #define $ac_func innocuous_$ac_func
11800 /* System header to define __stub macros and hopefully few prototypes,
11801 which can conflict with char $ac_func (); below.
11802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803 <limits.h> exists even on freestanding compilers. */
11806 # include <limits.h>
11808 # include <assert.h>
11813 /* Override any GCC internal prototype to avoid an error.
11814 Use char because int might match the return type of a GCC
11815 builtin and then its argument prototype would still apply. */
11820 /* The GNU C library defines this for functions which it implements
11821 to always fail with ENOSYS. Some functions are actually named
11822 something starting with __ and the normal name is an alias. */
11823 #if defined __stub_$ac_func || defined __stub___$ac_func
11830 return $ac_func ();
11835 rm -f conftest.$ac_objext conftest$ac_exeext
11836 if { (ac_try="$ac_link"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_link") 2>conftest.er1
11844 grep -v '^ *+' conftest.er1 >conftest.err
11846 cat conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } && {
11849 test -z "$ac_c_werror_flag" ||
11850 test ! -s conftest.err
11851 } && test -s conftest$ac_exeext &&
11852 $as_test_x conftest$ac_exeext; then
11853 eval "$as_ac_var=yes"
11855 echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 eval "$as_ac_var=no"
11861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11862 conftest$ac_exeext conftest.$ac_ext
11864 ac_res=`eval echo '${'$as_ac_var'}'`
11865 { echo "$as_me:$LINENO: result: $ac_res" >&5
11866 echo "${ECHO_T}$ac_res" >&6; }
11867 if test `eval echo '${'$as_ac_var'}'` = yes; then
11868 cat >>confdefs.h <<_ACEOF
11869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11874 { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&5
11875 echo "$as_me: Disabling IPv6 support: your system does not support getaddrinfo(3)" >&6;}
11883 if test "X$ipv6" = "Xyes"; then
11885 { echo "$as_me:$LINENO: checking for INET6 protocol support" >&5
11886 echo $ECHO_N "checking for INET6 protocol support... $ECHO_C" >&6; }
11887 if test "${wget_cv_proto_inet6+set}" = set; then
11888 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 #include <sys/types.h>
11899 #include <sys/socket.h>
11902 #error Missing PF_INET6
11905 #error Mlssing AF_INET6
11909 if { (ac_try="$ac_cpp conftest.$ac_ext"
11910 case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } >/dev/null && {
11922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11926 wget_cv_proto_inet6=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11933 wget_cv_proto_inet6=no
11937 rm -f conftest.err conftest.$ac_ext
11940 { echo "$as_me:$LINENO: result: $wget_cv_proto_inet6" >&5
11941 echo "${ECHO_T}$wget_cv_proto_inet6" >&6; }
11943 if test "X$wget_cv_proto_inet6" = "Xyes"; then :
11947 { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&5
11948 echo "$as_me: Disabling IPv6 support: your system does not support the PF_INET6 protocol family" >&6;}
11955 if test "X$ipv6" = "Xyes"; then
11957 wget_have_sockaddr_in6=
11958 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11959 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
11960 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11970 #include <sys/types.h>
11971 #include <sys/socket.h>
11972 #include <netinet/in.h>
11975 typedef struct sockaddr_in6 ac__type_new_;
11979 if ((ac__type_new_ *) 0)
11981 if (sizeof (ac__type_new_))
11987 rm -f conftest.$ac_objext
11988 if { (ac_try="$ac_compile"
11989 case "(($ac_try" in
11990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_compile") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest.$ac_objext; then
12004 ac_cv_type_struct_sockaddr_in6=yes
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ac_cv_type_struct_sockaddr_in6=no
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
12015 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
12016 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
12018 cat >>confdefs.h <<_ACEOF
12019 #define HAVE_STRUCT_SOCKADDR_IN6 1
12023 wget_have_sockaddr_in6=yes
12027 wget_have_sockaddr_in6=no
12032 if test "X$wget_have_sockaddr_in6" = "Xyes"; then :
12036 { echo "$as_me:$LINENO: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&5
12037 echo "$as_me: Disabling IPv6 support: your system does not support \`struct sockaddr_in6'" >&6;}
12042 if test "X$ipv6" = "Xyes"; then
12044 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
12045 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
12046 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 cat >conftest.$ac_ext <<_ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12056 #include <sys/types.h>
12057 #include <sys/socket.h>
12060 typedef struct sockaddr_storage ac__type_new_;
12064 if ((ac__type_new_ *) 0)
12066 if (sizeof (ac__type_new_))
12072 rm -f conftest.$ac_objext
12073 if { (ac_try="$ac_compile"
12074 case "(($ac_try" in
12075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12076 *) ac_try_echo=$ac_try;;
12078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12079 (eval "$ac_compile") 2>conftest.er1
12081 grep -v '^ *+' conftest.er1 >conftest.err
12083 cat conftest.err >&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest.$ac_objext; then
12089 ac_cv_type_struct_sockaddr_storage=yes
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 ac_cv_type_struct_sockaddr_storage=no
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
12100 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
12101 if test $ac_cv_type_struct_sockaddr_storage = yes; then
12103 cat >>confdefs.h <<_ACEOF
12104 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12114 wget_member_sin6_scope_id=
12115 if test "X$wget_have_sockaddr_in6" = "Xyes"; then
12116 { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
12117 echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
12118 if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12128 #include <sys/types.h>
12129 #include <sys/socket.h>
12130 #include <netinet/in.h>
12136 static struct sockaddr_in6 ac_aggr;
12137 if (ac_aggr.sin6_scope_id)
12143 rm -f conftest.$ac_objext
12144 if { (ac_try="$ac_compile"
12145 case "(($ac_try" in
12146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_compile") 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && {
12157 test -z "$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 } && test -s conftest.$ac_objext; then
12160 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12172 #include <sys/types.h>
12173 #include <sys/socket.h>
12174 #include <netinet/in.h>
12180 static struct sockaddr_in6 ac_aggr;
12181 if (sizeof ac_aggr.sin6_scope_id)
12187 rm -f conftest.$ac_objext
12188 if { (ac_try="$ac_compile"
12189 case "(($ac_try" in
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191 *) ac_try_echo=$ac_try;;
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_compile") 2>conftest.er1
12196 grep -v '^ *+' conftest.er1 >conftest.err
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_c_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest.$ac_objext; then
12204 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
12212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
12218 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
12219 if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
12221 wget_member_sin6_scope_id=yes
12225 wget_member_sin6_scope_id=no
12231 if test "X$wget_member_sin6_scope_id" = "Xyes"; then
12233 cat >>confdefs.h <<\_ACEOF
12234 #define HAVE_SOCKADDR_IN6_SCOPE_ID 1
12245 if test "X$ipv6" = "Xyes"; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define ENABLE_IPV6 1
12251 { echo "$as_me:$LINENO: Enabling support for IPv6." >&5
12252 echo "$as_me: Enabling support for IPv6." >&6;}
12253 elif test "x$force_ipv6" = "xyes"; then
12254 { { echo "$as_me:$LINENO: error: IPv6 support requested but not found; aborting" >&5
12255 echo "$as_me: error: IPv6 support requested but not found; aborting" >&2;}
12256 { (exit 1); exit 1; }; }
12260 ALL_LINGUAS=`(cd ${srcdir}/po && ls *.po | sed -e 's/\.po$//' | tr '\012' ' ')`
12262 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12263 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12264 # Check whether --enable-nls was given.
12265 if test "${enable_nls+set}" = set; then
12266 enableval=$enable_nls; HAVE_NLS=$enableval
12271 { echo "$as_me:$LINENO: result: $HAVE_NLS" >&5
12272 echo "${ECHO_T}$HAVE_NLS" >&6; }
12275 if test x"$HAVE_NLS" = xyes; then
12276 if test x"$LINGUAS" != x; then
12278 for lang1 in $ALL_LINGUAS; do
12279 for lang2 in $LINGUAS; do
12280 if test "$lang1" = "$lang2"; then
12281 new_linguas="$new_linguas $lang1"
12285 ALL_LINGUAS=$new_linguas
12287 { echo "$as_me:$LINENO: language catalogs: $ALL_LINGUAS" >&5
12288 echo "$as_me: language catalogs: $ALL_LINGUAS" >&6;}
12289 # Extract the first word of "msgfmt", so it can be a program name with args.
12290 set dummy msgfmt; ac_word=$2
12291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12293 if test "${ac_cv_path_MSGFMT+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12298 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12302 for ac_dir in $PATH; do
12303 test -z "$ac_dir" && ac_dir=.
12304 if test -f $ac_dir/$ac_word; then
12305 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12306 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12312 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
12316 MSGFMT="$ac_cv_path_MSGFMT"
12317 if test -n "$MSGFMT"; then
12318 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
12319 echo "${ECHO_T}$MSGFMT" >&6; }
12321 { echo "$as_me:$LINENO: result: no" >&5
12322 echo "${ECHO_T}no" >&6; }
12325 # Extract the first word of "xgettext", so it can be a program name with args.
12326 set dummy xgettext; ac_word=$2
12327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12329 if test "${ac_cv_path_XGETTEXT+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12332 case "$XGETTEXT" in
12334 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12338 for ac_dir in $PATH; do
12339 test -z "$ac_dir" && ac_dir=.
12340 if test -f $ac_dir/$ac_word; then
12341 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12342 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12348 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12352 XGETTEXT="$ac_cv_path_XGETTEXT"
12353 if test -n "$XGETTEXT"; then
12354 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
12355 echo "${ECHO_T}$XGETTEXT" >&6; }
12357 { echo "$as_me:$LINENO: result: no" >&5
12358 echo "${ECHO_T}no" >&6; }
12362 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12363 set dummy gmsgfmt; ac_word=$2
12364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12366 if test "${ac_cv_path_GMSGFMT+set}" = set; then
12367 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12389 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12393 GMSGFMT=$ac_cv_path_GMSGFMT
12394 if test -n "$GMSGFMT"; then
12395 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
12396 echo "${ECHO_T}$GMSGFMT" >&6; }
12398 { echo "$as_me:$LINENO: result: no" >&5
12399 echo "${ECHO_T}no" >&6; }
12407 if test "$XGETTEXT" != ":"; then
12408 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12411 { echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
12412 echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
12418 for ac_header in libintl.h
12420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 ac_res=`eval echo '${'$as_ac_Header'}'`
12428 { echo "$as_me:$LINENO: result: $ac_res" >&5
12429 echo "${ECHO_T}$ac_res" >&6; }
12431 # Is the header compilable?
12432 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12433 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12434 cat >conftest.$ac_ext <<_ACEOF
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 $ac_includes_default
12441 #include <$ac_header>
12443 rm -f conftest.$ac_objext
12444 if { (ac_try="$ac_compile"
12445 case "(($ac_try" in
12446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_compile") 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && {
12457 test -z "$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12459 } && test -s conftest.$ac_objext; then
12460 ac_header_compiler=yes
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 ac_header_compiler=no
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12469 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12470 echo "${ECHO_T}$ac_header_compiler" >&6; }
12472 # Is the header present?
12473 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12475 cat >conftest.$ac_ext <<_ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481 #include <$ac_header>
12483 if { (ac_try="$ac_cpp conftest.$ac_ext"
12484 case "(($ac_try" in
12485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } >/dev/null && {
12496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12499 ac_header_preproc=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 ac_header_preproc=no
12507 rm -f conftest.err conftest.$ac_ext
12508 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12509 echo "${ECHO_T}$ac_header_preproc" >&6; }
12511 # So? What about this header?
12512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12515 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12517 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12518 ac_header_preproc=yes
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12522 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12524 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12526 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12528 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12532 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12539 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 eval "$as_ac_Header=\$ac_header_preproc"
12543 ac_res=`eval echo '${'$as_ac_Header'}'`
12544 { echo "$as_me:$LINENO: result: $ac_res" >&5
12545 echo "${ECHO_T}$ac_res" >&6; }
12548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12549 cat >>confdefs.h <<_ACEOF
12550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12559 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
12560 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
12561 if test "${ac_cv_lib_intl_gettext+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-lintl $LIBS"
12566 cat >conftest.$ac_ext <<_ACEOF
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12573 /* Override any GCC internal prototype to avoid an error.
12574 Use char because int might match the return type of a GCC
12575 builtin and then its argument prototype would still apply. */
12588 rm -f conftest.$ac_objext conftest$ac_exeext
12589 if { (ac_try="$ac_link"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_link") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest$ac_exeext &&
12605 $as_test_x conftest$ac_exeext; then
12606 ac_cv_lib_intl_gettext=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_cv_lib_intl_gettext=no
12614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12615 conftest$ac_exeext conftest.$ac_ext
12616 LIBS=$ac_check_lib_save_LIBS
12618 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
12619 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
12620 if test $ac_cv_lib_intl_gettext = yes; then
12622 LIBS="-lintl $LIBS"
12624 cat >>confdefs.h <<\_ACEOF
12625 #define HAVE_GETTEXT 1
12632 for ac_func in gettext
12634 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12635 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12636 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12637 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 cat >conftest.$ac_ext <<_ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12648 #define $ac_func innocuous_$ac_func
12650 /* System header to define __stub macros and hopefully few prototypes,
12651 which can conflict with char $ac_func (); below.
12652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12653 <limits.h> exists even on freestanding compilers. */
12656 # include <limits.h>
12658 # include <assert.h>
12663 /* Override any GCC internal prototype to avoid an error.
12664 Use char because int might match the return type of a GCC
12665 builtin and then its argument prototype would still apply. */
12670 /* The GNU C library defines this for functions which it implements
12671 to always fail with ENOSYS. Some functions are actually named
12672 something starting with __ and the normal name is an alias. */
12673 #if defined __stub_$ac_func || defined __stub___$ac_func
12680 return $ac_func ();
12685 rm -f conftest.$ac_objext conftest$ac_exeext
12686 if { (ac_try="$ac_link"
12687 case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692 (eval "$ac_link") 2>conftest.er1
12694 grep -v '^ *+' conftest.er1 >conftest.err
12696 cat conftest.err >&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } && {
12699 test -z "$ac_c_werror_flag" ||
12700 test ! -s conftest.err
12701 } && test -s conftest$ac_exeext &&
12702 $as_test_x conftest$ac_exeext; then
12703 eval "$as_ac_var=yes"
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 eval "$as_ac_var=no"
12711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12712 conftest$ac_exeext conftest.$ac_ext
12714 ac_res=`eval echo '${'$as_ac_var'}'`
12715 { echo "$as_me:$LINENO: result: $ac_res" >&5
12716 echo "${ECHO_T}$ac_res" >&6; }
12717 if test `eval echo '${'$as_ac_var'}'` = yes; then
12718 cat >>confdefs.h <<_ACEOF
12719 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12724 { echo "$as_me:$LINENO: result: gettext not found; disabling NLS" >&5
12725 echo "${ECHO_T}gettext not found; disabling NLS" >&6; }
12735 for lang in $ALL_LINGUAS; do
12736 GMOFILES="$GMOFILES $lang.gmo"
12737 POFILES="$POFILES $lang.po"
12739 for lang in $ALL_LINGUAS; do
12740 CATALOGS="$CATALOGS ${lang}${CATOBJEXT}"
12754 if test "x$HAVE_NLS" = xyes; then
12756 cat >>confdefs.h <<\_ACEOF
12764 for ac_prog in makeinfo
12766 # Extract the first word of "$ac_prog", so it can be a program name with args.
12767 set dummy $ac_prog; ac_word=$2
12768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12770 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 if test -n "$MAKEINFO"; then
12774 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12777 for as_dir in $PATH
12780 test -z "$as_dir" && as_dir=.
12781 for ac_exec_ext in '' $ac_executable_extensions; do
12782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12783 ac_cv_prog_MAKEINFO="$ac_prog"
12784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 MAKEINFO=$ac_cv_prog_MAKEINFO
12794 if test -n "$MAKEINFO"; then
12795 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12796 echo "${ECHO_T}$MAKEINFO" >&6; }
12798 { echo "$as_me:$LINENO: result: no" >&5
12799 echo "${ECHO_T}no" >&6; }
12803 test -n "$MAKEINFO" && break
12805 test -n "$MAKEINFO" || MAKEINFO="true"
12809 for ac_prog in perl5 perl
12811 # Extract the first word of "$ac_prog", so it can be a program name with args.
12812 set dummy $ac_prog; ac_word=$2
12813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12815 if test "${ac_cv_path_PERL+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12820 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12830 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 PERL=$ac_cv_path_PERL
12842 if test -n "$PERL"; then
12843 { echo "$as_me:$LINENO: result: $PERL" >&5
12844 echo "${ECHO_T}$PERL" >&6; }
12846 { echo "$as_me:$LINENO: result: no" >&5
12847 echo "${ECHO_T}no" >&6; }
12851 test -n "$PERL" && break
12853 test -n "$PERL" || PERL="no"
12855 # Extract the first word of "pod2man", so it can be a program name with args.
12856 set dummy pod2man; ac_word=$2
12857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12859 if test "${ac_cv_path_POD2MAN+set}" = set; then
12860 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
12875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="no"
12886 POD2MAN=$ac_cv_path_POD2MAN
12887 if test -n "$POD2MAN"; then
12888 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
12889 echo "${ECHO_T}$POD2MAN" >&6; }
12891 { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12897 if test "x${POD2MAN}" = xno; then
12898 COMMENT_IF_NO_POD2MAN="# "
12900 COMMENT_IF_NO_POD2MAN=
12904 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile util/Makefile po/Makefile.in tests/Makefile tests/WgetTest.pm windows/Makefile"
12906 ac_config_headers="$ac_config_headers src/config.h"
12910 ac_config_files="$ac_config_files stamp-h"
12912 ac_config_commands="$ac_config_commands default"
12914 cat >confcache <<\_ACEOF
12915 # This file is a shell script that caches the results of configure
12916 # tests run on this system so they can be shared between configure
12917 # scripts and configure runs, see configure's option --config-cache.
12918 # It is not useful on other systems. If it contains results you don't
12919 # want to keep, you may remove or edit it.
12921 # config.status only pays attention to the cache file if you give it
12922 # the --recheck option to rerun configure.
12924 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12925 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12926 # following values.
12930 # The following way of writing the cache mishandles newlines in values,
12931 # but we know of no workaround that is simple, portable, and efficient.
12932 # So, we kill variables containing newlines.
12933 # Ultrix sh set writes to stderr and can't be redirected directly,
12934 # and sets the high bit in the cache file unless we assign to the vars.
12936 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12937 eval ac_val=\$$ac_var
12941 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12942 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12945 _ | IFS | as_nl) ;; #(
12946 *) $as_unset $ac_var ;;
12952 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12953 *${as_nl}ac_space=\ *)
12954 # `set' does not quote correctly, so add quotes (double-quote
12955 # substitution turns \\\\ into \\, and sed turns \\ into \).
12958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12961 # `set' quotes correctly as required by POSIX, so do not add quotes.
12962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12973 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12975 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12976 if test -w "$cache_file"; then
12977 test "x$cache_file" != "x/dev/null" &&
12978 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12979 echo "$as_me: updating cache $cache_file" >&6;}
12980 cat confcache >$cache_file
12982 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12983 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12989 # Let make expand exec_prefix.
12990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12992 DEFS=-DHAVE_CONFIG_H
12996 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12997 # 1. Remove the extension, and $U if already installed.
12998 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12999 ac_i=`echo "$ac_i" | sed "$ac_script"`
13000 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13001 # will be set to the directory where LIBOBJS objects are built.
13002 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13003 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13005 LIBOBJS=$ac_libobjs
13007 LTLIBOBJS=$ac_ltlibobjs
13011 : ${CONFIG_STATUS=./config.status}
13012 ac_clean_files_save=$ac_clean_files
13013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13014 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13015 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13016 cat >$CONFIG_STATUS <<_ACEOF
13018 # Generated by $as_me.
13019 # Run this file to recreate the current configuration.
13020 # Compiler output produced by configure, useful for debugging
13021 # configure, is in config.log if it exists.
13024 ac_cs_recheck=false
13026 SHELL=\${CONFIG_SHELL-$SHELL}
13029 cat >>$CONFIG_STATUS <<\_ACEOF
13030 ## --------------------- ##
13031 ## M4sh Initialization. ##
13032 ## --------------------- ##
13034 # Be more Bourne compatible
13035 DUALCASE=1; export DUALCASE # for MKS sh
13036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13039 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13040 # is contrary to our usage. Disable this feature.
13041 alias -g '${1+"$@"}'='"$@"'
13042 setopt NO_GLOB_SUBST
13044 case `(set -o) 2>/dev/null` in
13045 *posix*) set -o posix ;;
13054 # Avoid depending upon Character Ranges.
13055 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13056 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13057 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13058 as_cr_digits='0123456789'
13059 as_cr_alnum=$as_cr_Letters$as_cr_digits
13061 # The user is always right.
13062 if test "${PATH_SEPARATOR+set}" != set; then
13063 echo "#! /bin/sh" >conf$$.sh
13064 echo "exit 0" >>conf$$.sh
13066 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13074 # Support unset when possible.
13075 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13083 # We need space, tab and new line, in precisely that order. Quoting is
13084 # there to prevent editors from complaining about space-tab.
13085 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13086 # splitting by setting IFS to empty value.)
13091 # Find who we are. Look in the path if we contain no directory separator.
13093 *[\\/]* ) as_myself=$0 ;;
13094 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13098 test -z "$as_dir" && as_dir=.
13099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13105 # We did not find ourselves, most probably we were run as `sh COMMAND'
13106 # in which case we are not to be found in the path.
13107 if test "x$as_myself" = x; then
13110 if test ! -f "$as_myself"; then
13111 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13112 { (exit 1); exit 1; }
13115 # Work around bugs in pre-3.0 UWIN ksh.
13116 for as_var in ENV MAIL MAILPATH
13117 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13125 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13126 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13127 LC_TELEPHONE LC_TIME
13129 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13130 eval $as_var=C; export $as_var
13132 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13136 # Required to use basename.
13137 if expr a : '\(a\)' >/dev/null 2>&1 &&
13138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13145 as_basename=basename
13151 # Name of the executable.
13152 as_me=`$as_basename -- "$0" ||
13153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13154 X"$0" : 'X\(//\)$' \| \
13155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13157 sed '/^.*\/\([^/][^/]*\)\/*$/{
13176 as_lineno_1=$LINENO
13177 as_lineno_2=$LINENO
13178 test "x$as_lineno_1" != "x$as_lineno_2" &&
13179 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13181 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13182 # uniformly replaced by the line number. The first 'sed' inserts a
13183 # line-number line after each line using $LINENO; the second 'sed'
13184 # does the real work. The second script uses 'N' to pair each
13185 # line-number line with the line containing $LINENO, and appends
13186 # trailing '-' during substitution so that $LINENO is not a special
13187 # case at line end.
13188 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13189 # scripts with optimization help from Paolo Bonzini. Blame Lee
13190 # E. McMahon (1931-1989) for sed's syntax. :-)
13202 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13205 ' >$as_me.lineno &&
13206 chmod +x "$as_me.lineno" ||
13207 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13208 { (exit 1); exit 1; }; }
13210 # Don't try to exec as it changes $[0], causing all sort of problems
13211 # (the dirname of $[0] is not the place where we might find the
13212 # original and so on. Autoconf is especially sensitive to this).
13213 . "./$as_me.lineno"
13214 # Exit status is that of the last command.
13219 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13225 ECHO_C= ECHO_N= ECHO_T=
13226 case `echo -n x` in
13228 case `echo 'x\c'` in
13229 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13236 if expr a : '\(a\)' >/dev/null 2>&1 &&
13237 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13243 rm -f conf$$ conf$$.exe conf$$.file
13244 if test -d conf$$.dir; then
13245 rm -f conf$$.dir/conf$$.file
13251 if ln -s conf$$.file conf$$ 2>/dev/null; then
13253 # ... but there are two gotchas:
13254 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13255 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13256 # In both cases, we have to default to `cp -p'.
13257 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13259 elif ln conf$$.file conf$$ 2>/dev/null; then
13264 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13265 rmdir conf$$.dir 2>/dev/null
13267 if mkdir -p . 2>/dev/null; then
13270 test -d ./-p && rmdir ./-p
13274 if test -x / >/dev/null 2>&1; then
13275 as_test_x='test -x'
13277 if ls -dL / >/dev/null 2>&1; then
13284 if test -d "$1"; then
13290 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13291 ???[sx]*):;;*)false;;esac;fi
13295 as_executable_p=$as_test_x
13297 # Sed expression to map a string onto a valid CPP name.
13298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13300 # Sed expression to map a string onto a valid variable name.
13301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13306 # Save the log message, to keep $[0] and so on meaningful, and to
13307 # report actual input values of CONFIG_FILES etc. instead of their
13308 # values after options handling.
13310 This file was extended by $as_me, which was
13311 generated by GNU Autoconf 2.61. Invocation command line was
13313 CONFIG_FILES = $CONFIG_FILES
13314 CONFIG_HEADERS = $CONFIG_HEADERS
13315 CONFIG_LINKS = $CONFIG_LINKS
13316 CONFIG_COMMANDS = $CONFIG_COMMANDS
13319 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13324 cat >>$CONFIG_STATUS <<_ACEOF
13325 # Files that config.status was made for.
13326 config_files="$ac_config_files"
13327 config_headers="$ac_config_headers"
13328 config_commands="$ac_config_commands"
13332 cat >>$CONFIG_STATUS <<\_ACEOF
13334 \`$as_me' instantiates files from templates according to the
13335 current configuration.
13337 Usage: $0 [OPTIONS] [FILE]...
13339 -h, --help print this help, then exit
13340 -V, --version print version number and configuration settings, then exit
13341 -q, --quiet do not print progress messages
13342 -d, --debug don't remove temporary files
13343 --recheck update $as_me by reconfiguring in the same conditions
13344 --file=FILE[:TEMPLATE]
13345 instantiate the configuration file FILE
13346 --header=FILE[:TEMPLATE]
13347 instantiate the configuration header FILE
13349 Configuration files:
13352 Configuration headers:
13355 Configuration commands:
13358 Report bugs to <bug-autoconf@gnu.org>."
13361 cat >>$CONFIG_STATUS <<_ACEOF
13364 configured by $0, generated by GNU Autoconf 2.61,
13365 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13367 Copyright (C) 2006 Free Software Foundation, Inc.
13368 This config.status script is free software; the Free Software Foundation
13369 gives unlimited permission to copy, distribute and modify it."
13376 cat >>$CONFIG_STATUS <<\_ACEOF
13377 # If no file are specified by the user, then we need to provide default
13378 # value. By we need to know if files were specified by the user.
13384 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13385 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13396 # Handling of the options.
13397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13399 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13400 echo "$ac_cs_version"; exit ;;
13401 --debug | --debu | --deb | --de | --d | -d )
13403 --file | --fil | --fi | --f )
13405 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13406 ac_need_defaults=false;;
13407 --header | --heade | --head | --hea )
13409 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13410 ac_need_defaults=false;;
13412 # Conflict between --help and --header
13413 { echo "$as_me: error: ambiguous option: $1
13414 Try \`$0 --help' for more information." >&2
13415 { (exit 1); exit 1; }; };;
13416 --help | --hel | -h )
13417 echo "$ac_cs_usage"; exit ;;
13418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13419 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13422 # This is an error.
13423 -*) { echo "$as_me: error: unrecognized option: $1
13424 Try \`$0 --help' for more information." >&2
13425 { (exit 1); exit 1; }; } ;;
13427 *) ac_config_targets="$ac_config_targets $1"
13428 ac_need_defaults=false ;;
13434 ac_configure_extra_args=
13436 if $ac_cs_silent; then
13438 ac_configure_extra_args="$ac_configure_extra_args --silent"
13442 cat >>$CONFIG_STATUS <<_ACEOF
13443 if \$ac_cs_recheck; then
13444 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13445 CONFIG_SHELL=$SHELL
13446 export CONFIG_SHELL
13447 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13451 cat >>$CONFIG_STATUS <<\_ACEOF
13455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13456 ## Running $as_me. ##
13462 cat >>$CONFIG_STATUS <<_ACEOF
13465 cat >>$CONFIG_STATUS <<\_ACEOF
13467 # Handling of arguments.
13468 for ac_config_target in $ac_config_targets
13470 case $ac_config_target in
13471 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13472 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13473 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13474 "util/Makefile") CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
13475 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13476 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13477 "tests/WgetTest.pm") CONFIG_FILES="$CONFIG_FILES tests/WgetTest.pm" ;;
13478 "windows/Makefile") CONFIG_FILES="$CONFIG_FILES windows/Makefile" ;;
13479 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
13480 "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
13481 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
13483 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13484 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13485 { (exit 1); exit 1; }; };;
13490 # If the user did not use the arguments to specify the items to instantiate,
13491 # then the envvar interface is used. Set only those that are not.
13492 # We use the long form for the default assignment because of an extremely
13493 # bizarre bug on SunOS 4.1.3.
13494 if $ac_need_defaults; then
13495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13496 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13500 # Have a temporary directory for convenience. Make it in the build tree
13501 # simply because there is no reason against having it here, and in addition,
13502 # creating and moving files from /tmp can sometimes cause problems.
13503 # Hook for its removal unless debugging.
13504 # Note that there is a small window in which the directory will not be cleaned:
13505 # after its creation but before its name has been assigned to `$tmp'.
13509 trap 'exit_status=$?
13510 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13512 trap '{ (exit 1); exit 1; }' 1 2 13 15
13514 # Create a (secure) tmp directory for tmp files.
13517 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13518 test -n "$tmp" && test -d "$tmp"
13521 tmp=./conf$$-$RANDOM
13522 (umask 077 && mkdir "$tmp")
13525 echo "$me: cannot create a temporary directory in ." >&2
13526 { (exit 1); exit 1; }
13530 # Set up the sed scripts for CONFIG_FILES section.
13533 # No need to generate the scripts if there are no CONFIG_FILES.
13534 # This happens for instance when ./config.status config.h
13535 if test -n "$CONFIG_FILES"; then
13542 for ac_last_try in false false false false false :; do
13543 cat >conf$$subs.sed <<_ACEOF
13544 SHELL!$SHELL$ac_delim
13545 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13546 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13547 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13548 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13549 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13550 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13551 exec_prefix!$exec_prefix$ac_delim
13552 prefix!$prefix$ac_delim
13553 program_transform_name!$program_transform_name$ac_delim
13554 bindir!$bindir$ac_delim
13555 sbindir!$sbindir$ac_delim
13556 libexecdir!$libexecdir$ac_delim
13557 datarootdir!$datarootdir$ac_delim
13558 datadir!$datadir$ac_delim
13559 sysconfdir!$sysconfdir$ac_delim
13560 sharedstatedir!$sharedstatedir$ac_delim
13561 localstatedir!$localstatedir$ac_delim
13562 includedir!$includedir$ac_delim
13563 oldincludedir!$oldincludedir$ac_delim
13564 docdir!$docdir$ac_delim
13565 infodir!$infodir$ac_delim
13566 htmldir!$htmldir$ac_delim
13567 dvidir!$dvidir$ac_delim
13568 pdfdir!$pdfdir$ac_delim
13569 psdir!$psdir$ac_delim
13570 libdir!$libdir$ac_delim
13571 localedir!$localedir$ac_delim
13572 mandir!$mandir$ac_delim
13573 DEFS!$DEFS$ac_delim
13574 ECHO_C!$ECHO_C$ac_delim
13575 ECHO_N!$ECHO_N$ac_delim
13576 ECHO_T!$ECHO_T$ac_delim
13577 LIBS!$LIBS$ac_delim
13578 build_alias!$build_alias$ac_delim
13579 host_alias!$host_alias$ac_delim
13580 target_alias!$target_alias$ac_delim
13581 VERSION!$VERSION$ac_delim
13582 PACKAGE!$PACKAGE$ac_delim
13583 build!$build$ac_delim
13584 build_cpu!$build_cpu$ac_delim
13585 build_vendor!$build_vendor$ac_delim
13586 build_os!$build_os$ac_delim
13587 host!$host$ac_delim
13588 host_cpu!$host_cpu$ac_delim
13589 host_vendor!$host_vendor$ac_delim
13590 host_os!$host_os$ac_delim
13591 OPIE_OBJ!$OPIE_OBJ$ac_delim
13592 SET_MAKE!$SET_MAKE$ac_delim
13593 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
13594 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
13595 INSTALL_DATA!$INSTALL_DATA$ac_delim
13597 CFLAGS!$CFLAGS$ac_delim
13598 LDFLAGS!$LDFLAGS$ac_delim
13599 CPPFLAGS!$CPPFLAGS$ac_delim
13600 ac_ct_CC!$ac_ct_CC$ac_delim
13601 EXEEXT!$EXEEXT$ac_delim
13602 OBJEXT!$OBJEXT$ac_delim
13604 GREP!$GREP$ac_delim
13605 EGREP!$EGREP$ac_delim
13606 ALLOCA!$ALLOCA$ac_delim
13607 GETOPT_OBJ!$GETOPT_OBJ$ac_delim
13608 HAVE_LIBGNUTLS!$HAVE_LIBGNUTLS$ac_delim
13609 LIBGNUTLS!$LIBGNUTLS$ac_delim
13610 LTLIBGNUTLS!$LTLIBGNUTLS$ac_delim
13611 HAVE_LIBSSL!$HAVE_LIBSSL$ac_delim
13612 LIBSSL!$LIBSSL$ac_delim
13613 LTLIBSSL!$LTLIBSSL$ac_delim
13614 SSL_OBJ!$SSL_OBJ$ac_delim
13615 NTLM_OBJ!$NTLM_OBJ$ac_delim
13616 MD5_OBJ!$MD5_OBJ$ac_delim
13617 MSGFMT!$MSGFMT$ac_delim
13618 XGETTEXT!$XGETTEXT$ac_delim
13619 GMSGFMT!$GMSGFMT$ac_delim
13620 CATALOGS!$CATALOGS$ac_delim
13621 CATOBJEXT!$CATOBJEXT$ac_delim
13622 DATADIRNAME!$DATADIRNAME$ac_delim
13623 GMOFILES!$GMOFILES$ac_delim
13624 INSTOBJEXT!$INSTOBJEXT$ac_delim
13625 INTLLIBS!$INTLLIBS$ac_delim
13626 POFILES!$POFILES$ac_delim
13627 HAVE_NLS!$HAVE_NLS$ac_delim
13628 USE_NLS!$USE_NLS$ac_delim
13629 MAKEINFO!$MAKEINFO$ac_delim
13630 PERL!$PERL$ac_delim
13631 POD2MAN!$POD2MAN$ac_delim
13632 COMMENT_IF_NO_POD2MAN!$COMMENT_IF_NO_POD2MAN$ac_delim
13633 LIBOBJS!$LIBOBJS$ac_delim
13634 LTLIBOBJS!$LTLIBOBJS$ac_delim
13637 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
13639 elif $ac_last_try; then
13640 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13641 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13642 { (exit 1); exit 1; }; }
13644 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13648 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13649 if test -n "$ac_eof"; then
13650 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13651 ac_eof=`expr $ac_eof + 1`
13654 cat >>$CONFIG_STATUS <<_ACEOF
13655 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13659 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13660 s/^/s,@/; s/!/@,|#_!!_#|/
13663 s/'"$ac_delim"'$/,g/; t
13665 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13666 ' >>$CONFIG_STATUS <conf$$subs.sed
13667 rm -f conf$$subs.sed
13668 cat >>$CONFIG_STATUS <<_ACEOF
13675 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13676 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13677 # trailing colons and then remove the whole line if VPATH becomes empty
13678 # (actually we leave an empty line to preserve line numbers).
13679 if test "x$srcdir" = x.; then
13680 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13681 s/:*\$(srcdir):*/:/
13682 s/:*\${srcdir}:*/:/
13684 s/^\([^=]*=[ ]*\):*/\1/
13690 cat >>$CONFIG_STATUS <<\_ACEOF
13691 fi # test -n "$CONFIG_FILES"
13694 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13697 :[FHLC]) ac_mode=$ac_tag; continue;;
13699 case $ac_mode$ac_tag in
13701 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13702 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13703 { (exit 1); exit 1; }; };;
13704 :[FH]-) ac_tag=-:-;;
13705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13722 -) ac_f="$tmp/stdin";;
13723 *) # Look for the file first in the build tree, then in the source tree
13724 # (if the path is not absolute). The absolute path cannot be DOS-style,
13725 # because $ac_f cannot contain `:'.
13729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13731 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13732 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13733 { (exit 1); exit 1; }; };;
13735 ac_file_inputs="$ac_file_inputs $ac_f"
13738 # Let's still pretend it is `configure' which instantiates (i.e., don't
13739 # use $as_me), people would be surprised to read:
13740 # /* config.h. Generated by config.status. */
13741 configure_input="Generated from "`IFS=:
13742 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13743 if test x"$ac_file" != x-; then
13744 configure_input="$ac_file. $configure_input"
13745 { echo "$as_me:$LINENO: creating $ac_file" >&5
13746 echo "$as_me: creating $ac_file" >&6;}
13750 *:-:* | *:-) cat >"$tmp/stdin";;
13755 ac_dir=`$as_dirname -- "$ac_file" ||
13756 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13757 X"$ac_file" : 'X\(//\)[^/]' \| \
13758 X"$ac_file" : 'X\(//\)$' \| \
13759 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13765 /^X\(\/\/\)[^/].*/{
13780 -*) as_dir=./$as_dir;;
13782 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13786 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13787 *) as_qdir=$as_dir;;
13789 as_dirs="'$as_qdir' $as_dirs"
13790 as_dir=`$as_dirname -- "$as_dir" ||
13791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13792 X"$as_dir" : 'X\(//\)[^/]' \| \
13793 X"$as_dir" : 'X\(//\)$' \| \
13794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13800 /^X\(\/\/\)[^/].*/{
13813 test -d "$as_dir" && break
13815 test -z "$as_dirs" || eval "mkdir $as_dirs"
13816 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13817 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13818 { (exit 1); exit 1; }; }; }
13822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13825 # A ".." for each directory in $ac_dir_suffix.
13826 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13827 case $ac_top_builddir_sub in
13828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13832 ac_abs_top_builddir=$ac_pwd
13833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13834 # for backward compatibility:
13835 ac_top_builddir=$ac_top_build_prefix
13838 .) # We are building in place.
13840 ac_top_srcdir=$ac_top_builddir_sub
13841 ac_abs_top_srcdir=$ac_pwd ;;
13842 [\\/]* | ?:[\\/]* ) # Absolute name.
13843 ac_srcdir=$srcdir$ac_dir_suffix;
13844 ac_top_srcdir=$srcdir
13845 ac_abs_top_srcdir=$srcdir ;;
13846 *) # Relative name.
13847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13848 ac_top_srcdir=$ac_top_build_prefix$srcdir
13849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13861 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13862 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13866 cat >>$CONFIG_STATUS <<\_ACEOF
13867 # If the template does not know about datarootdir, expand it.
13868 # FIXME: This hack should be removed a few years after 2.60.
13869 ac_datarootdir_hack=; ac_datarootdir_seen=
13871 case `sed -n '/datarootdir/ {
13880 ' $ac_file_inputs` in
13881 *datarootdir*) ac_datarootdir_seen=yes;;
13882 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13883 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13884 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13886 cat >>$CONFIG_STATUS <<_ACEOF
13887 ac_datarootdir_hack='
13888 s&@datadir@&$datadir&g
13889 s&@docdir@&$docdir&g
13890 s&@infodir@&$infodir&g
13891 s&@localedir@&$localedir&g
13892 s&@mandir@&$mandir&g
13893 s&\\\${datarootdir}&$datarootdir&g' ;;
13897 # Neutralize VPATH when `$srcdir' = `.'.
13898 # Shell code in configure.ac might set extrasub.
13899 # FIXME: do we really want to maintain this feature?
13900 cat >>$CONFIG_STATUS <<_ACEOF
13904 cat >>$CONFIG_STATUS <<\_ACEOF
13906 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13907 s&@configure_input@&$configure_input&;t t
13908 s&@top_builddir@&$ac_top_builddir_sub&;t t
13909 s&@srcdir@&$ac_srcdir&;t t
13910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13911 s&@top_srcdir@&$ac_top_srcdir&;t t
13912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13913 s&@builddir@&$ac_builddir&;t t
13914 s&@abs_builddir@&$ac_abs_builddir&;t t
13915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13916 s&@INSTALL@&$ac_INSTALL&;t t
13917 $ac_datarootdir_hack
13918 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
13920 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13921 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13922 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13923 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13924 which seems to be undefined. Please make sure it is defined." >&5
13925 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13926 which seems to be undefined. Please make sure it is defined." >&2;}
13930 -) cat "$tmp/out"; rm -f "$tmp/out";;
13931 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13940 # Transform confdefs.h into a sed script `conftest.defines', that
13941 # substitutes the proper values into config.h.in to produce config.h.
13942 rm -f conftest.defines conftest.tail
13943 # First, append a space to every undef/define line, to ease matching.
13944 echo 's/$/ /' >conftest.defines
13945 # Then, protect against being on the right side of a sed subst, or in
13946 # an unquoted here document, in config.status. If some macros were
13947 # called several times there might be several #defines for the same
13948 # symbol, which is useless. But do not sort them, since the last
13949 # AC_DEFINE must be honored.
13950 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13951 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13952 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13953 # PARAMS is the parameter list in the macro definition--in most cases, it's
13954 # just an empty string.
13955 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13956 ac_dB='\\)[ (].*,\\1define\\2'
13964 s/^[ ]*#[ ]*define[ ][ ]*//
13969 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13970 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13971 ' >>conftest.defines
13973 # Remove the space that was appended to ease matching.
13974 # Then replace #undef with comments. This is necessary, for
13975 # example, in the case of _POSIX_SOURCE, which is predefined and required
13976 # on some systems where configure will not decide to define it.
13977 # (The regexp can be short, since the line contains either #define or #undef.)
13979 s,^[ #]*u.*,/* & */,' >>conftest.defines
13981 # Break up conftest.defines:
13982 ac_max_sed_lines=50
13984 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13985 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13986 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13988 ac_in='$ac_file_inputs'
13989 ac_out='"$tmp/out1"'
13990 ac_nxt='"$tmp/out2"'
13994 # Write a here document:
13995 cat >>$CONFIG_STATUS <<_ACEOF
13996 # First, check the format of the line:
13997 cat >"\$tmp/defines.sed" <<\\CEOF
13998 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13999 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14003 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14005 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14006 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14007 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14008 grep . conftest.tail >/dev/null || break
14009 rm -f conftest.defines
14010 mv conftest.tail conftest.defines
14012 rm -f conftest.defines conftest.tail
14014 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14015 cat >>$CONFIG_STATUS <<\_ACEOF
14016 if test x"$ac_file" != x-; then
14017 echo "/* $configure_input */" >"$tmp/config.h"
14018 cat "$ac_result" >>"$tmp/config.h"
14019 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14021 echo "$as_me: $ac_file is unchanged" >&6;}
14024 mv "$tmp/config.h" $ac_file
14027 echo "/* $configure_input */"
14033 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14034 echo "$as_me: executing $ac_file commands" >&6;}
14039 case $ac_file$ac_mode in
14040 "stamp-h":F) echo timestamp > stamp-h ;;
14042 if test "x$srcdir" != "x."; then
14043 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
14044 posrcprefix="$srcdir/"
14046 posrcprefix="../$srcdir/"
14052 echo "generating po/POTFILES from $srcdir/po/POTFILES.in"
14053 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," \
14054 -e "\$s/\(.*\) \\\\/\1/" \
14055 < $srcdir/po/POTFILES.in > po/POTFILES
14056 echo "creating po/Makefile"
14057 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
14064 { (exit 0); exit 0; }
14066 chmod +x $CONFIG_STATUS
14067 ac_clean_files=$ac_clean_files_save
14070 # configure is writing to config.log, and then calls config.status.
14071 # config.status does its own redirection, appending to config.log.
14072 # Unfortunately, on DOS this fails, as config.log is still kept open
14073 # by configure, so config.status won't be able to write to it; its
14074 # output is simply discarded. So we exec the FD to /dev/null,
14075 # effectively closing config.log, so it can be properly (re)opened and
14076 # appended to by config.status. When coming back to configure, we
14077 # need to make the FD available again.
14078 if test "$no_create" != yes; then
14080 ac_config_status_args=
14081 test "$silent" = yes &&
14082 ac_config_status_args="$ac_config_status_args --quiet"
14084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14087 # would make configure fail if this is the last instruction.
14088 $ac_cs_success || { (exit 1); exit 1; }