2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="event.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
696 program_transform_name
708 enable_option_checking
710 enable_thread_support
711 enable_malloc_replacement
714 enable_libevent_install
715 enable_libevent_regress
716 enable_function_sections
718 ac_precious_vars='build_alias
729 # Initialize some variables set by options.
731 ac_init_version=false
732 ac_unrecognized_opts=
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name=s,x,x,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\$ac_option
789 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev=build_alias ;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev=cache_file ;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file=$ac_optarg ;;
817 cache_file=config.cache ;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev=datarootdir ;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
836 { (exit 1); exit 1; }; }
837 ac_useropt_orig=$ac_useropt
838 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
839 case $ac_user_opts in
843 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
844 ac_unrecognized_sep=', ';;
846 eval enable_$ac_useropt=no ;;
848 -docdir | --docdir | --docdi | --doc | --do)
850 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
853 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
858 -enable-* | --enable-*)
859 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
862 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
863 { (exit 1); exit 1; }; }
864 ac_useropt_orig=$ac_useropt
865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
873 eval enable_$ac_useropt=\$ac_optarg ;;
875 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
876 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
877 | --exec | --exe | --ex)
878 ac_prev=exec_prefix ;;
879 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
880 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
881 | --exec=* | --exe=* | --ex=*)
882 exec_prefix=$ac_optarg ;;
884 -gas | --gas | --ga | --g)
885 # Obsolete; use --with-gas.
888 -help | --help | --hel | --he | -h)
890 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
891 ac_init_help=recursive ;;
892 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
893 ac_init_help=short ;;
895 -host | --host | --hos | --ho)
896 ac_prev=host_alias ;;
897 -host=* | --host=* | --hos=* | --ho=*)
898 host_alias=$ac_optarg ;;
900 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
902 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
904 htmldir=$ac_optarg ;;
906 -includedir | --includedir | --includedi | --included | --include \
907 | --includ | --inclu | --incl | --inc)
908 ac_prev=includedir ;;
909 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
910 | --includ=* | --inclu=* | --incl=* | --inc=*)
911 includedir=$ac_optarg ;;
913 -infodir | --infodir | --infodi | --infod | --info | --inf)
915 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
916 infodir=$ac_optarg ;;
918 -libdir | --libdir | --libdi | --libd)
920 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
924 | --libexe | --libex | --libe)
925 ac_prev=libexecdir ;;
926 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
927 | --libexe=* | --libex=* | --libe=*)
928 libexecdir=$ac_optarg ;;
930 -localedir | --localedir | --localedi | --localed | --locale)
932 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
933 localedir=$ac_optarg ;;
935 -localstatedir | --localstatedir | --localstatedi | --localstated \
936 | --localstate | --localstat | --localsta | --localst | --locals)
937 ac_prev=localstatedir ;;
938 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
939 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
940 localstatedir=$ac_optarg ;;
942 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
944 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
948 # Obsolete; use --without-fp.
951 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
952 | --no-cr | --no-c | -n)
955 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
956 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
960 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
961 | --oldin | --oldi | --old | --ol | --o)
962 ac_prev=oldincludedir ;;
963 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
964 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
965 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
966 oldincludedir=$ac_optarg ;;
968 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
970 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 -program-prefix | --program-prefix | --program-prefi | --program-pref \
974 | --program-pre | --program-pr | --program-p)
975 ac_prev=program_prefix ;;
976 -program-prefix=* | --program-prefix=* | --program-prefi=* \
977 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
978 program_prefix=$ac_optarg ;;
980 -program-suffix | --program-suffix | --program-suffi | --program-suff \
981 | --program-suf | --program-su | --program-s)
982 ac_prev=program_suffix ;;
983 -program-suffix=* | --program-suffix=* | --program-suffi=* \
984 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
985 program_suffix=$ac_optarg ;;
987 -program-transform-name | --program-transform-name \
988 | --program-transform-nam | --program-transform-na \
989 | --program-transform-n | --program-transform- \
990 | --program-transform | --program-transfor \
991 | --program-transfo | --program-transf \
992 | --program-trans | --program-tran \
993 | --progr-tra | --program-tr | --program-t)
994 ac_prev=program_transform_name ;;
995 -program-transform-name=* | --program-transform-name=* \
996 | --program-transform-nam=* | --program-transform-na=* \
997 | --program-transform-n=* | --program-transform-=* \
998 | --program-transform=* | --program-transfor=* \
999 | --program-transfo=* | --program-transf=* \
1000 | --program-trans=* | --program-tran=* \
1001 | --progr-tra=* | --program-tr=* | --program-t=*)
1002 program_transform_name=$ac_optarg ;;
1004 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1006 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1007 pdfdir=$ac_optarg ;;
1009 -psdir | --psdir | --psdi | --psd | --ps)
1011 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1018 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1020 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1022 sbindir=$ac_optarg ;;
1024 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1025 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1026 | --sharedst | --shareds | --shared | --share | --shar \
1028 ac_prev=sharedstatedir ;;
1029 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1030 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1031 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1033 sharedstatedir=$ac_optarg ;;
1035 -site | --site | --sit)
1037 -site=* | --site=* | --sit=*)
1040 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1042 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1043 srcdir=$ac_optarg ;;
1045 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1046 | --syscon | --sysco | --sysc | --sys | --sy)
1047 ac_prev=sysconfdir ;;
1048 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1049 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1050 sysconfdir=$ac_optarg ;;
1052 -target | --target | --targe | --targ | --tar | --ta | --t)
1053 ac_prev=target_alias ;;
1054 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1055 target_alias=$ac_optarg ;;
1057 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 -version | --version | --versio | --versi | --vers | -V)
1061 ac_init_version=: ;;
1064 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1067 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
1078 eval with_$ac_useropt=\$ac_optarg ;;
1080 -without-* | --without-*)
1081 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1084 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1095 eval with_$ac_useropt=no ;;
1098 # Obsolete; use --with-x.
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1115 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1116 Try \`$0 --help' for more information." >&2
1117 { (exit 1); exit 1; }; }
1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1124 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1125 { (exit 1); exit 1; }; }
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1130 # FIXME: should be removed in autoconf 3.0.
1131 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1140 if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1143 { (exit 1); exit 1; }; }
1146 if test -n "$ac_unrecognized_opts"; then
1147 case $enable_option_checking in
1149 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1150 { (exit 1); exit 1; }; } ;;
1151 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1155 # Check all directory arguments for consistency.
1156 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1157 datadir sysconfdir sharedstatedir localstatedir includedir \
1158 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1159 libdir localedir mandir
1161 eval ac_val=\$$ac_var
1162 # Remove trailing slashes.
1165 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1166 eval $ac_var=\$ac_val;;
1168 # Be sure to have absolute directory names.
1170 [\\/$]* | ?:[\\/]* ) continue;;
1171 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1173 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1174 { (exit 1); exit 1; }; }
1177 # There might be people who depend on the old broken behavior: `$host'
1178 # used to hold the argument of --host etc.
1179 # FIXME: To remove some day.
1182 target=$target_alias
1184 # FIXME: To remove some day.
1185 if test "x$host_alias" != x; then
1186 if test "x$build_alias" = x; then
1187 cross_compiling=maybe
1188 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1189 If a cross compiler is detected then cross compile mode will be used." >&2
1190 elif test "x$build_alias" != "x$host_alias"; then
1196 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198 test "$silent" = yes && exec 6>/dev/null
1201 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1202 ac_ls_di=`ls -di .` &&
1203 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1204 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1205 { (exit 1); exit 1; }; }
1206 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1207 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1208 { (exit 1); exit 1; }; }
1211 # Find the source files, if location was not specified.
1212 if test -z "$srcdir"; then
1213 ac_srcdir_defaulted=yes
1214 # Try the directory containing this script, then the parent directory.
1215 ac_confdir=`$as_dirname -- "$as_myself" ||
1216 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1217 X"$as_myself" : 'X\(//\)[^/]' \| \
1218 X"$as_myself" : 'X\(//\)$' \| \
1219 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1220 $as_echo X"$as_myself" |
1221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 if test ! -r "$srcdir/$ac_unique_file"; then
1243 ac_srcdir_defaulted=no
1245 if test ! -r "$srcdir/$ac_unique_file"; then
1246 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1247 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1248 { (exit 1); exit 1; }; }
1250 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1253 { (exit 1); exit 1; }; }
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1263 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 for ac_var in $ac_precious_vars; do
1266 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267 eval ac_env_${ac_var}_value=\$${ac_var}
1268 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1279 \`configure' configures this package to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1337 --build=BUILD configure for building on BUILD [guessed]
1338 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1342 if test -n "$ac_init_help"; then
1347 --disable-option-checking ignore unrecognized --enable/--with options
1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1350 --enable-gcc-warnings enable verbose warnings with GCC
1351 --disable-thread-support
1352 disable support for threading
1353 --disable-malloc-replacement
1354 disable support for replacing the memory mgt
1356 --disable-openssl disable support for openssl encryption
1357 --disable-debug-mode disable support for running in debug mode
1358 --disable-libevent-install, disable installation of libevent
1360 --disable-libevent-regress, skip regress in make check
1362 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1375 Use these variables to override the choices made by `configure' or to help
1376 it to find libraries and programs with nonstandard names/locations.
1382 if test "$ac_init_help" = "recursive"; then
1383 # If there are subdirs, report their specific --help.
1384 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1385 test -d "$ac_dir" ||
1386 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1407 .) # We are building in place.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1441 generated by GNU Autoconf 2.63
1443 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1450 cat >config.log <<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1454 It was created by $as_me, which was
1455 generated by GNU Autoconf 2.63. Invocation command line was
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 test -z "$as_dir" && as_dir=.
1491 $as_echo "PATH: $as_dir"
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1515 ac_must_keep_next=false
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1526 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1544 -* ) ac_must_keep_next=true ;;
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1571 # The following way of writing the cache mishandles newlines in values,
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1578 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1582 _ | IFS | as_nl) ;; #(
1583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1584 *) $as_unset $ac_var ;;
1589 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1590 *${as_nl}ac_space=\ *)
1592 "s/'\''/'\''\\\\'\'''\''/g;
1593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1604 ## ----------------- ##
1605 ## Output variables. ##
1606 ## ----------------- ##
1609 for ac_var in $ac_subst_vars
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 $as_echo "$ac_var='\''$ac_val'\''"
1619 if test -n "$ac_subst_files"; then
1621 ## ------------------- ##
1622 ## File substitutions. ##
1623 ## ------------------- ##
1626 for ac_var in $ac_subst_files
1628 eval ac_val=\$$ac_var
1630 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 $as_echo "$ac_var='\''$ac_val'\''"
1637 if test -s confdefs.h; then
1647 test "$ac_signal" != 0 &&
1648 $as_echo "$as_me: caught signal $ac_signal"
1649 $as_echo "$as_me: exit $exit_status"
1651 rm -f core *.core core.conftest.* &&
1652 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1655 for ac_signal in 1 2 13 15; do
1656 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1661 rm -f -r conftest* confdefs.h
1663 # Predefined preprocessor variables.
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_NAME "$PACKAGE_NAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_STRING "$PACKAGE_STRING"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690 # Let the site file select an alternate cache file if it wants to.
1691 # Prefer an explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 ac_site_file1=$CONFIG_SITE
1696 elif test "x$prefix" != xNONE; then
1697 ac_site_file1=$prefix/share/config.site
1698 ac_site_file2=$prefix/etc/config.site
1700 ac_site_file1=$ac_default_prefix/share/config.site
1701 ac_site_file2=$ac_default_prefix/etc/config.site
1703 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1705 test "x$ac_site_file" = xNONE && continue
1706 if test -r "$ac_site_file"; then
1707 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1708 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1709 sed 's/^/| /' "$ac_site_file" >&5
1714 if test -r "$cache_file"; then
1715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
1718 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1719 $as_echo "$as_me: loading cache $cache_file" >&6;}
1721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
1726 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1727 $as_echo "$as_me: creating cache $cache_file" >&6;}
1731 # Check that the precious variables saved in the cache have kept the same
1733 ac_cache_corrupted=false
1734 for ac_var in $ac_precious_vars; do
1735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
1737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
1739 case $ac_old_set,$ac_new_set in
1741 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1742 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1745 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1746 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
1751 # differences in whitespace do not lead to failure.
1752 ac_old_val_w=`echo x $ac_old_val`
1753 ac_new_val_w=`echo x $ac_new_val`
1754 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1755 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1756 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1757 ac_cache_corrupted=:
1759 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1760 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1761 eval $ac_var=\$ac_old_val
1763 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1764 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1765 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1766 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1769 # Pass precious variables to config.status.
1770 if test "$ac_new_set" = set; then
1772 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1773 *) ac_arg=$ac_var=$ac_new_val ;;
1775 case " $ac_configure_args " in
1776 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1777 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 if $ac_cache_corrupted; then
1782 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1785 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1808 ac_cpp='$CPP $CPPFLAGS'
1809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1817 AM_INIT_AUTOMAKE(libevent,2.0.17-stable)
1818 AM_CONFIG_HEADER(config.h)
1820 cat >>confdefs.h <<\_ACEOF
1821 #define NUMERIC_VERSION 0x02001100
1825 if test "$prefix" = "NONE"; then
1830 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1831 if test -f "$ac_dir/install-sh"; then
1833 ac_install_sh="$ac_aux_dir/install-sh -c"
1835 elif test -f "$ac_dir/install.sh"; then
1837 ac_install_sh="$ac_aux_dir/install.sh -c"
1839 elif test -f "$ac_dir/shtool"; then
1841 ac_install_sh="$ac_aux_dir/shtool install -c"
1845 if test -z "$ac_aux_dir"; then
1846 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1847 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1848 { (exit 1); exit 1; }; }
1851 # These three variables are undocumented and unsupported,
1852 # and are intended to be withdrawn in a future Autoconf release.
1853 # They can cause serious problems if a builder's source tree is in a directory
1854 # whose full name contains unusual characters.
1855 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1856 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1857 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1860 # Make sure we can run config.sub.
1861 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1862 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1863 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1864 { (exit 1); exit 1; }; }
1866 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1867 $as_echo_n "checking build system type... " >&6; }
1868 if test "${ac_cv_build+set}" = set; then
1869 $as_echo_n "(cached) " >&6
1871 ac_build_alias=$build_alias
1872 test "x$ac_build_alias" = x &&
1873 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1874 test "x$ac_build_alias" = x &&
1875 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1876 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1877 { (exit 1); exit 1; }; }
1878 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1879 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1880 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1881 { (exit 1); exit 1; }; }
1884 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1885 $as_echo "$ac_cv_build" >&6; }
1886 case $ac_cv_build in
1888 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1889 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1890 { (exit 1); exit 1; }; };;
1893 ac_save_IFS=$IFS; IFS='-'
1899 # Remember, the first character of IFS is used to create $*,
1900 # except with old shells:
1903 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1906 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1907 $as_echo_n "checking host system type... " >&6; }
1908 if test "${ac_cv_host+set}" = set; then
1909 $as_echo_n "(cached) " >&6
1911 if test "x$host_alias" = x; then
1912 ac_cv_host=$ac_cv_build
1914 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1915 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1916 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1917 { (exit 1); exit 1; }; }
1921 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1922 $as_echo "$ac_cv_host" >&6; }
1925 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1926 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1927 { (exit 1); exit 1; }; };;
1930 ac_save_IFS=$IFS; IFS='-'
1936 # Remember, the first character of IFS is used to create $*,
1937 # except with old shells:
1940 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1947 CFLAGS="$CFLAGS -D_OSF_SOURCE"
1952 ac_cpp='$CPP $CPPFLAGS'
1953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956 if test -n "$ac_tool_prefix"; then
1957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1959 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1960 $as_echo_n "checking for $ac_word... " >&6; }
1961 if test "${ac_cv_prog_CC+set}" = set; then
1962 $as_echo_n "(cached) " >&6
1964 if test -n "$CC"; then
1965 ac_cv_prog_CC="$CC" # Let the user override the test.
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1974 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1975 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 if test -n "$CC"; then
1986 { $as_echo "$as_me:$LINENO: result: $CC" >&5
1987 $as_echo "$CC" >&6; }
1989 { $as_echo "$as_me:$LINENO: result: no" >&5
1990 $as_echo "no" >&6; }
1995 if test -z "$ac_cv_prog_CC"; then
1997 # Extract the first word of "gcc", so it can be a program name with args.
1998 set dummy gcc; ac_word=$2
1999 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 $as_echo_n "checking for $ac_word... " >&6; }
2001 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002 $as_echo_n "(cached) " >&6
2004 if test -n "$ac_ct_CC"; then
2005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
2013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2014 ac_cv_prog_ac_ct_CC="gcc"
2015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2025 if test -n "$ac_ct_CC"; then
2026 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2027 $as_echo "$ac_ct_CC" >&6; }
2029 { $as_echo "$as_me:$LINENO: result: no" >&5
2030 $as_echo "no" >&6; }
2033 if test "x$ac_ct_CC" = x; then
2036 case $cross_compiling:$ac_tool_warned in
2038 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2040 ac_tool_warned=yes ;;
2048 if test -z "$CC"; then
2049 if test -n "$ac_tool_prefix"; then
2050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2051 set dummy ${ac_tool_prefix}cc; ac_word=$2
2052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 $as_echo_n "checking for $ac_word... " >&6; }
2054 if test "${ac_cv_prog_CC+set}" = set; then
2055 $as_echo_n "(cached) " >&6
2057 if test -n "$CC"; then
2058 ac_cv_prog_CC="$CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2067 ac_cv_prog_CC="${ac_tool_prefix}cc"
2068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2078 if test -n "$CC"; then
2079 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2080 $as_echo "$CC" >&6; }
2082 { $as_echo "$as_me:$LINENO: result: no" >&5
2083 $as_echo "no" >&6; }
2089 if test -z "$CC"; then
2090 # Extract the first word of "cc", so it can be a program name with args.
2091 set dummy cc; ac_word=$2
2092 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 $as_echo_n "checking for $ac_word... " >&6; }
2094 if test "${ac_cv_prog_CC+set}" = set; then
2095 $as_echo_n "(cached) " >&6
2097 if test -n "$CC"; then
2098 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 for ac_exec_ext in '' $ac_executable_extensions; do
2107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2109 ac_prog_rejected=yes
2113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120 if test $ac_prog_rejected = yes; then
2121 # We found a bogon in the path, so make sure we never use it.
2122 set dummy $ac_cv_prog_CC
2124 if test $# != 0; then
2125 # We chose a different compiler from the bogus one.
2126 # However, it has the same basename, so the bogon will be chosen
2127 # first if we set CC to just the basename; use the full file name.
2129 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2135 if test -n "$CC"; then
2136 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2137 $as_echo "$CC" >&6; }
2139 { $as_echo "$as_me:$LINENO: result: no" >&5
2140 $as_echo "no" >&6; }
2145 if test -z "$CC"; then
2146 if test -n "$ac_tool_prefix"; then
2147 for ac_prog in cl.exe
2149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2151 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2152 $as_echo_n "checking for $ac_word... " >&6; }
2153 if test "${ac_cv_prog_CC+set}" = set; then
2154 $as_echo_n "(cached) " >&6
2156 if test -n "$CC"; then
2157 ac_cv_prog_CC="$CC" # Let the user override the test.
2159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 test -z "$as_dir" && as_dir=.
2164 for ac_exec_ext in '' $ac_executable_extensions; do
2165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2167 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177 if test -n "$CC"; then
2178 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2179 $as_echo "$CC" >&6; }
2181 { $as_echo "$as_me:$LINENO: result: no" >&5
2182 $as_echo "no" >&6; }
2186 test -n "$CC" && break
2189 if test -z "$CC"; then
2191 for ac_prog in cl.exe
2193 # Extract the first word of "$ac_prog", so it can be a program name with args.
2194 set dummy $ac_prog; ac_word=$2
2195 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 $as_echo_n "checking for $ac_word... " >&6; }
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198 $as_echo_n "(cached) " >&6
2200 if test -n "$ac_ct_CC"; then
2201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210 ac_cv_prog_ac_ct_CC="$ac_prog"
2211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 $as_echo "$ac_ct_CC" >&6; }
2225 { $as_echo "$as_me:$LINENO: result: no" >&5
2226 $as_echo "no" >&6; }
2230 test -n "$ac_ct_CC" && break
2233 if test "x$ac_ct_CC" = x; then
2236 case $cross_compiling:$ac_tool_warned in
2238 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2240 ac_tool_warned=yes ;;
2249 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2252 See \`config.log' for more details." >&5
2253 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2254 See \`config.log' for more details." >&2;}
2255 { (exit 1); exit 1; }; }; }
2257 # Provide some information about the compiler.
2258 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2261 { (ac_try="$ac_compiler --version >&5"
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2267 $as_echo "$ac_try_echo") >&5
2268 (eval "$ac_compiler --version >&5") 2>&5
2270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }
2272 { (ac_try="$ac_compiler -v >&5"
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2278 $as_echo "$ac_try_echo") >&5
2279 (eval "$ac_compiler -v >&5") 2>&5
2281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282 (exit $ac_status); }
2283 { (ac_try="$ac_compiler -V >&5"
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2289 $as_echo "$ac_try_echo") >&5
2290 (eval "$ac_compiler -V >&5") 2>&5
2292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }
2295 cat >conftest.$ac_ext <<_ACEOF
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2310 ac_clean_files_save=$ac_clean_files
2311 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2312 # Try to create an executable without -o first, disregard a.out.
2313 # It will help us diagnose broken compilers, and finding out an intuition
2315 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2316 $as_echo_n "checking for C compiler default output file name... " >&6; }
2317 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319 # The possible output files:
2320 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2323 for ac_file in $ac_files
2326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2327 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2332 if { (ac_try="$ac_link_default"
2334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2335 *) ac_try_echo=$ac_try;;
2337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2338 $as_echo "$ac_try_echo") >&5
2339 (eval "$ac_link_default") 2>&5
2341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
2343 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2344 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2345 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2346 # so that the user can short-circuit this test for compilers unknown to
2348 for ac_file in $ac_files ''
2350 test -f "$ac_file" || continue
2352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2355 # We found the default executable, but exeext='' is most
2359 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2361 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2363 # We set ac_cv_exeext here because the later test for it is not
2364 # safe: cross compilers may not add the suffix if given an `-o'
2365 # argument, so we may need to know it at that point already.
2366 # Even if this section looks crufty: it has the advantage of
2373 test "$ac_cv_exeext" = no && ac_cv_exeext=
2379 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2380 $as_echo "$ac_file" >&6; }
2381 if test -z "$ac_file"; then
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2385 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2387 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2388 See \`config.log' for more details." >&5
2389 $as_echo "$as_me: error: C compiler cannot create executables
2390 See \`config.log' for more details." >&2;}
2391 { (exit 77); exit 77; }; }; }
2394 ac_exeext=$ac_cv_exeext
2396 # Check that the compiler produces executables we can run. If not, either
2397 # the compiler is broken, or we cross compile.
2398 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2399 $as_echo_n "checking whether the C compiler works... " >&6; }
2400 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2401 # If not cross compiling, check that we can run a simple program.
2402 if test "$cross_compiling" != yes; then
2403 if { ac_try='./$ac_file'
2404 { (case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2409 $as_echo "$ac_try_echo") >&5
2410 (eval "$ac_try") 2>&5
2412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }; }; then
2416 if test "$cross_compiling" = maybe; then
2419 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2422 If you meant to cross compile, use \`--host'.
2423 See \`config.log' for more details." >&5
2424 $as_echo "$as_me: error: cannot run C compiled programs.
2425 If you meant to cross compile, use \`--host'.
2426 See \`config.log' for more details." >&2;}
2427 { (exit 1); exit 1; }; }; }
2431 { $as_echo "$as_me:$LINENO: result: yes" >&5
2432 $as_echo "yes" >&6; }
2434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2435 ac_clean_files=$ac_clean_files_save
2436 # Check that the compiler produces executables we can run. If not, either
2437 # the compiler is broken, or we cross compile.
2438 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2439 $as_echo_n "checking whether we are cross compiling... " >&6; }
2440 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2441 $as_echo "$cross_compiling" >&6; }
2443 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2444 $as_echo_n "checking for suffix of executables... " >&6; }
2445 if { (ac_try="$ac_link"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2451 $as_echo "$ac_try_echo") >&5
2452 (eval "$ac_link") 2>&5
2454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2457 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2458 # work properly (i.e., refer to `conftest.exe'), while it won't with
2460 for ac_file in conftest.exe conftest conftest.*; do
2461 test -f "$ac_file" || continue
2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2464 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2470 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2472 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2473 See \`config.log' for more details." >&5
2474 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2475 See \`config.log' for more details." >&2;}
2476 { (exit 1); exit 1; }; }; }
2479 rm -f conftest$ac_cv_exeext
2480 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2481 $as_echo "$ac_cv_exeext" >&6; }
2483 rm -f conftest.$ac_ext
2484 EXEEXT=$ac_cv_exeext
2486 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2487 $as_echo_n "checking for suffix of object files... " >&6; }
2488 if test "${ac_cv_objext+set}" = set; then
2489 $as_echo_n "(cached) " >&6
2491 cat >conftest.$ac_ext <<_ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2506 rm -f conftest.o conftest.obj
2507 if { (ac_try="$ac_compile"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2513 $as_echo "$ac_try_echo") >&5
2514 (eval "$ac_compile") 2>&5
2516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }; then
2518 for ac_file in conftest.o conftest.obj conftest.*; do
2519 test -f "$ac_file" || continue;
2521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2522 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2527 $as_echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2530 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2533 See \`config.log' for more details." >&5
2534 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2535 See \`config.log' for more details." >&2;}
2536 { (exit 1); exit 1; }; }; }
2539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2541 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2542 $as_echo "$ac_cv_objext" >&6; }
2543 OBJEXT=$ac_cv_objext
2545 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2546 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2547 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2548 $as_echo_n "(cached) " >&6
2550 cat >conftest.$ac_ext <<_ACEOF
2553 cat confdefs.h >>conftest.$ac_ext
2554 cat >>conftest.$ac_ext <<_ACEOF
2555 /* end confdefs.h. */
2568 rm -f conftest.$ac_objext
2569 if { (ac_try="$ac_compile"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2575 $as_echo "$ac_try_echo") >&5
2576 (eval "$ac_compile") 2>conftest.er1
2578 grep -v '^ *+' conftest.er1 >conftest.err
2580 cat conftest.err >&5
2581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } && {
2583 test -z "$ac_c_werror_flag" ||
2584 test ! -s conftest.err
2585 } && test -s conftest.$ac_objext; then
2588 $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2598 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2599 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2600 if test $ac_compiler_gnu = yes; then
2605 ac_test_CFLAGS=${CFLAGS+set}
2606 ac_save_CFLAGS=$CFLAGS
2607 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2608 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2609 if test "${ac_cv_prog_cc_g+set}" = set; then
2610 $as_echo_n "(cached) " >&6
2612 ac_save_c_werror_flag=$ac_c_werror_flag
2613 ac_c_werror_flag=yes
2616 cat >conftest.$ac_ext <<_ACEOF
2619 cat confdefs.h >>conftest.$ac_ext
2620 cat >>conftest.$ac_ext <<_ACEOF
2621 /* end confdefs.h. */
2631 rm -f conftest.$ac_objext
2632 if { (ac_try="$ac_compile"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2638 $as_echo "$ac_try_echo") >&5
2639 (eval "$ac_compile") 2>conftest.er1
2641 grep -v '^ *+' conftest.er1 >conftest.err
2643 cat conftest.err >&5
2644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); } && {
2646 test -z "$ac_c_werror_flag" ||
2647 test ! -s conftest.err
2648 } && test -s conftest.$ac_objext; then
2651 $as_echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 cat >conftest.$ac_ext <<_ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2677 $as_echo "$ac_try_echo") >&5
2678 (eval "$ac_compile") 2>conftest.er1
2680 grep -v '^ *+' conftest.er1 >conftest.err
2682 cat conftest.err >&5
2683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } && {
2685 test -z "$ac_c_werror_flag" ||
2686 test ! -s conftest.err
2687 } && test -s conftest.$ac_objext; then
2690 $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 ac_c_werror_flag=$ac_save_c_werror_flag
2695 cat >conftest.$ac_ext <<_ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2710 rm -f conftest.$ac_objext
2711 if { (ac_try="$ac_compile"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2717 $as_echo "$ac_try_echo") >&5
2718 (eval "$ac_compile") 2>conftest.er1
2720 grep -v '^ *+' conftest.er1 >conftest.err
2722 cat conftest.err >&5
2723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } && {
2725 test -z "$ac_c_werror_flag" ||
2726 test ! -s conftest.err
2727 } && test -s conftest.$ac_objext; then
2730 $as_echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743 ac_c_werror_flag=$ac_save_c_werror_flag
2745 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 $as_echo "$ac_cv_prog_cc_g" >&6; }
2747 if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2756 if test "$GCC" = yes; then
2762 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2764 if test "${ac_cv_prog_cc_c89+set}" = set; then
2765 $as_echo_n "(cached) " >&6
2767 ac_cv_prog_cc_c89=no
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2793 s = g (p, va_arg (v,int));
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std. */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2808 inside strings and character constants. */
2810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2812 int test (int i, double x);
2813 struct s1 {int (*f) (int a);};
2814 struct s2 {int (*f) (double a);};
2815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2821 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2827 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 CC="$ac_save_CC $ac_arg"
2830 rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2837 $as_echo "$ac_try_echo") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2848 ac_cv_prog_cc_c89=$ac_arg
2850 $as_echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2856 rm -f core conftest.err conftest.$ac_objext
2857 test "x$ac_cv_prog_cc_c89" != "xno" && break
2859 rm -f conftest.$ac_ext
2864 case "x$ac_cv_prog_cc_c89" in
2866 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2867 $as_echo "none needed" >&6; } ;;
2869 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2870 $as_echo "unsupported" >&6; } ;;
2872 CC="$CC $ac_cv_prog_cc_c89"
2873 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 # Find a good install program. We prefer a C program (faster),
2886 # so one script is as good as another. But avoid the broken or
2887 # incompatible versions:
2888 # SysV /etc/install, /usr/sbin/install
2889 # SunOS /usr/etc/install
2890 # IRIX /sbin/install
2892 # AmigaOS /C/install, which installs bootblocks on floppy discs
2893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2896 # OS/2's system install, which has a completely different semantic
2897 # ./install, which can be erroneously created by make from ./install.sh.
2898 # Reject install programs that cannot install multiple files.
2899 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2901 if test -z "$INSTALL"; then
2902 if test "${ac_cv_path_install+set}" = set; then
2903 $as_echo_n "(cached) " >&6
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir=.
2910 # Account for people who put trailing slashes in PATH elements.
2912 ./ | .// | /cC/* | \
2913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2914 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2917 # OSF1 and SCO ODT 3.0 have their own names for install.
2918 # Don't use installbsd from OSF since it installs stuff as root
2920 for ac_prog in ginstall scoinst install; do
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2923 if test $ac_prog = install &&
2924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2927 elif test $ac_prog = install &&
2928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2929 # program-specific install script used by HP pwplus--don't use.
2932 rm -rf conftest.one conftest.two conftest.dir
2933 echo one > conftest.one
2934 echo two > conftest.two
2936 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2937 test -s conftest.one && test -s conftest.two &&
2938 test -s conftest.dir/conftest.one &&
2939 test -s conftest.dir/conftest.two
2941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2954 rm -rf conftest.one conftest.two conftest.dir
2957 if test "${ac_cv_path_install+set}" = set; then
2958 INSTALL=$ac_cv_path_install
2960 # As a last resort, use the slow shell script. Don't cache a
2961 # value for INSTALL within a source directory, because that will
2962 # break other packages using the cache if that directory is
2963 # removed, or if the value is a relative name.
2964 INSTALL=$ac_install_sh
2967 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2968 $as_echo "$INSTALL" >&6; }
2970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2971 # It thinks the first close brace ends the variable substitution.
2972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2978 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2979 $as_echo_n "checking whether ln -s works... " >&6; }
2981 if test "$LN_S" = "ln -s"; then
2982 { $as_echo "$as_me:$LINENO: result: yes" >&5
2983 $as_echo "yes" >&6; }
2985 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2986 $as_echo "no, using $LN_S" >&6; }
2989 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2990 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2991 if test -z "$MKDIR_P"; then
2992 if test "${ac_cv_path_mkdir+set}" = set; then
2993 $as_echo_n "(cached) " >&6
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2999 test -z "$as_dir" && as_dir=.
3000 for ac_prog in mkdir gmkdir; do
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3003 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004 'mkdir (GNU coreutils) '* | \
3005 'mkdir (coreutils) '* | \
3006 'mkdir (fileutils) '4.1*)
3007 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3017 if test "${ac_cv_path_mkdir+set}" = set; then
3018 MKDIR_P="$ac_cv_path_mkdir -p"
3020 # As a last resort, use the slow shell script. Don't cache a
3021 # value for MKDIR_P within a source directory, because that will
3022 # break other packages using the cache if that directory is
3023 # removed, or if the value is a relative name.
3024 test -d ./--version && rmdir ./--version
3025 MKDIR_P="$ac_install_sh -d"
3028 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3029 $as_echo "$MKDIR_P" >&6; }
3034 ac_cpp='$CPP $CPPFLAGS'
3035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3039 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3040 # On Suns, sometimes $CPP names a directory.
3041 if test -n "$CPP" && test -d "$CPP"; then
3044 if test -z "$CPP"; then
3045 if test "${ac_cv_prog_CPP+set}" = set; then
3046 $as_echo_n "(cached) " >&6
3048 # Double quotes because CPP needs to be expanded
3049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3052 for ac_c_preproc_warn_flag in '' yes
3054 # Use a header file that comes with gcc, so configuring glibc
3055 # with a fresh cross-compiler works.
3056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3057 # <limits.h> exists even on freestanding compilers.
3058 # On the NeXT, cc -E runs the code through the compiler's parser,
3059 # not just through cpp. "Syntax error" is here to catch this case.
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3067 # include <limits.h>
3069 # include <assert.h>
3073 if { (ac_try="$ac_cpp conftest.$ac_ext"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3079 $as_echo "$ac_try_echo") >&5
3080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null && {
3087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3088 test ! -s conftest.err
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 # Broken: fails on valid input.
3099 rm -f conftest.err conftest.$ac_ext
3101 # OK, works on sane cases. Now check whether nonexistent headers
3102 # can be detected and how.
3103 cat >conftest.$ac_ext <<_ACEOF
3106 cat confdefs.h >>conftest.$ac_ext
3107 cat >>conftest.$ac_ext <<_ACEOF
3108 /* end confdefs.h. */
3109 #include <ac_nonexistent.h>
3111 if { (ac_try="$ac_cpp conftest.$ac_ext"
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3117 $as_echo "$ac_try_echo") >&5
3118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3120 grep -v '^ *+' conftest.er1 >conftest.err
3122 cat conftest.err >&5
3123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null && {
3125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3126 test ! -s conftest.err
3128 # Broken: success on invalid input.
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3134 # Passes both tests.
3139 rm -f conftest.err conftest.$ac_ext
3142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3143 rm -f conftest.err conftest.$ac_ext
3144 if $ac_preproc_ok; then
3156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3157 $as_echo "$CPP" >&6; }
3159 for ac_c_preproc_warn_flag in '' yes
3161 # Use a header file that comes with gcc, so configuring glibc
3162 # with a fresh cross-compiler works.
3163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3164 # <limits.h> exists even on freestanding compilers.
3165 # On the NeXT, cc -E runs the code through the compiler's parser,
3166 # not just through cpp. "Syntax error" is here to catch this case.
3167 cat >conftest.$ac_ext <<_ACEOF
3170 cat confdefs.h >>conftest.$ac_ext
3171 cat >>conftest.$ac_ext <<_ACEOF
3172 /* end confdefs.h. */
3174 # include <limits.h>
3176 # include <assert.h>
3180 if { (ac_try="$ac_cpp conftest.$ac_ext"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3186 $as_echo "$ac_try_echo") >&5
3187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } >/dev/null && {
3194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3195 test ! -s conftest.err
3199 $as_echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3202 # Broken: fails on valid input.
3206 rm -f conftest.err conftest.$ac_ext
3208 # OK, works on sane cases. Now check whether nonexistent headers
3209 # can be detected and how.
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3216 #include <ac_nonexistent.h>
3218 if { (ac_try="$ac_cpp conftest.$ac_ext"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3224 $as_echo "$ac_try_echo") >&5
3225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3227 grep -v '^ *+' conftest.er1 >conftest.err
3229 cat conftest.err >&5
3230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } >/dev/null && {
3232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3235 # Broken: success on invalid input.
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 # Passes both tests.
3246 rm -f conftest.err conftest.$ac_ext
3249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3250 rm -f conftest.err conftest.$ac_ext
3251 if $ac_preproc_ok; then
3254 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3257 See \`config.log' for more details." >&5
3258 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3259 See \`config.log' for more details." >&2;}
3260 { (exit 1); exit 1; }; }; }
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3271 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3272 if test "${ac_cv_path_GREP+set}" = set; then
3273 $as_echo_n "(cached) " >&6
3275 if test -z "$GREP"; then
3276 ac_path_GREP_found=false
3277 # Loop through the user's path and test for each of PROGNAME-LIST
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3282 test -z "$as_dir" && as_dir=.
3283 for ac_prog in grep ggrep; do
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3286 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3287 # Check for GNU ac_path_GREP and select it if it is found.
3288 # Check for GNU $ac_path_GREP
3289 case `"$ac_path_GREP" --version 2>&1` in
3291 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3294 $as_echo_n 0123456789 >"conftest.in"
3297 cat "conftest.in" "conftest.in" >"conftest.tmp"
3298 mv "conftest.tmp" "conftest.in"
3299 cp "conftest.in" "conftest.nl"
3300 $as_echo 'GREP' >> "conftest.nl"
3301 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3303 ac_count=`expr $ac_count + 1`
3304 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3305 # Best one so far, save it but keep looking for a better one
3306 ac_cv_path_GREP="$ac_path_GREP"
3307 ac_path_GREP_max=$ac_count
3309 # 10*(2^10) chars as input seems more than enough
3310 test $ac_count -gt 10 && break
3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3315 $ac_path_GREP_found && break 3
3320 if test -z "$ac_cv_path_GREP"; then
3321 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3322 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3323 { (exit 1); exit 1; }; }
3326 ac_cv_path_GREP=$GREP
3330 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3331 $as_echo "$ac_cv_path_GREP" >&6; }
3332 GREP="$ac_cv_path_GREP"
3335 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3336 $as_echo_n "checking for egrep... " >&6; }
3337 if test "${ac_cv_path_EGREP+set}" = set; then
3338 $as_echo_n "(cached) " >&6
3340 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3341 then ac_cv_path_EGREP="$GREP -E"
3343 if test -z "$EGREP"; then
3344 ac_path_EGREP_found=false
3345 # Loop through the user's path and test for each of PROGNAME-LIST
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3350 test -z "$as_dir" && as_dir=.
3351 for ac_prog in egrep; do
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3354 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3355 # Check for GNU ac_path_EGREP and select it if it is found.
3356 # Check for GNU $ac_path_EGREP
3357 case `"$ac_path_EGREP" --version 2>&1` in
3359 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3362 $as_echo_n 0123456789 >"conftest.in"
3365 cat "conftest.in" "conftest.in" >"conftest.tmp"
3366 mv "conftest.tmp" "conftest.in"
3367 cp "conftest.in" "conftest.nl"
3368 $as_echo 'EGREP' >> "conftest.nl"
3369 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3370 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3371 ac_count=`expr $ac_count + 1`
3372 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3373 # Best one so far, save it but keep looking for a better one
3374 ac_cv_path_EGREP="$ac_path_EGREP"
3375 ac_path_EGREP_max=$ac_count
3377 # 10*(2^10) chars as input seems more than enough
3378 test $ac_count -gt 10 && break
3380 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3383 $ac_path_EGREP_found && break 3
3388 if test -z "$ac_cv_path_EGREP"; then
3389 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3390 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3391 { (exit 1); exit 1; }; }
3394 ac_cv_path_EGREP=$EGREP
3399 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3400 $as_echo "$ac_cv_path_EGREP" >&6; }
3401 EGREP="$ac_cv_path_EGREP"
3404 if test $ac_cv_c_compiler_gnu = yes; then
3405 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3406 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3407 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3408 $as_echo_n "(cached) " >&6
3410 ac_pattern="Autoconf.*'x'"
3411 cat >conftest.$ac_ext <<_ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3421 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3422 ac_cv_prog_gcc_traditional=yes
3424 ac_cv_prog_gcc_traditional=no
3429 if test $ac_cv_prog_gcc_traditional = no; then
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3441 ac_cv_prog_gcc_traditional=yes
3447 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3448 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3449 if test $ac_cv_prog_gcc_traditional = yes; then
3450 CC="$CC -traditional"
3455 if test "$GCC" = "yes" ; then
3456 # Enable many gcc warnings by default...
3457 CFLAGS="$CFLAGS -Wall"
3458 # And disable the strict-aliasing optimization, since it breaks
3459 # our sockaddr-handling code in strange ways.
3460 CFLAGS="$CFLAGS -fno-strict-aliasing"
3463 # OS X Lion started deprecating the system openssl. Let's just disable
3464 # all deprecation warnings on OS X.
3468 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
3472 # Check whether --enable-gcc-warnings was given.
3473 if test "${enable_gcc_warnings+set}" = set; then
3474 enableval=$enable_gcc_warnings;
3477 # Check whether --enable-thread-support was given.
3478 if test "${enable_thread_support+set}" = set; then
3479 enableval=$enable_thread_support;
3481 enable_thread_support=yes
3484 # Check whether --enable-malloc-replacement was given.
3485 if test "${enable_malloc_replacement+set}" = set; then
3486 enableval=$enable_malloc_replacement;
3488 enable_malloc_replacement=yes
3491 # Check whether --enable-openssl was given.
3492 if test "${enable_openssl+set}" = set; then
3493 enableval=$enable_openssl;
3498 # Check whether --enable-debug-mode was given.
3499 if test "${enable_debug_mode+set}" = set; then
3500 enableval=$enable_debug_mode;
3502 enable_debug_mode=yes
3505 # Check whether --enable-libevent-install was given.
3506 if test "${enable_libevent_install+set}" = set; then
3507 enableval=$enable_libevent_install;
3509 enable_libevent_install=yes
3512 # Check whether --enable-libevent-regress was given.
3513 if test "${enable_libevent_regress+set}" = set; then
3514 enableval=$enable_libevent_regress;
3516 enable_libevent_regress=yes
3519 # Check whether --enable-function-sections was given.
3520 if test "${enable_function_sections+set}" = set; then
3521 enableval=$enable_function_sections;
3523 enable_function_sections=no
3532 AM_CONDITIONAL(BUILD_REGRESS, test "$enable_libevent_regress" = "yes")
3534 { $as_echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
3535 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
3536 if test "${ac_cv_search_inet_ntoa+set}" = set; then
3537 $as_echo_n "(cached) " >&6
3539 ac_func_search_save_LIBS=$LIBS
3540 cat >conftest.$ac_ext <<_ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h. */
3547 /* Override any GCC internal prototype to avoid an error.
3548 Use char because int might match the return type of a GCC
3549 builtin and then its argument prototype would still apply. */
3557 return inet_ntoa ();
3562 for ac_lib in '' nsl; do
3563 if test -z "$ac_lib"; then
3564 ac_res="none required"
3567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3569 rm -f conftest.$ac_objext conftest$ac_exeext
3570 if { (ac_try="$ac_link"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3576 $as_echo "$ac_try_echo") >&5
3577 (eval "$ac_link") 2>conftest.er1
3579 grep -v '^ *+' conftest.er1 >conftest.err
3581 cat conftest.err >&5
3582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); } && {
3584 test -z "$ac_c_werror_flag" ||
3585 test ! -s conftest.err
3586 } && test -s conftest$ac_exeext && {
3587 test "$cross_compiling" = yes ||
3588 $as_test_x conftest$ac_exeext
3590 ac_cv_search_inet_ntoa=$ac_res
3592 $as_echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -rf conftest.dSYM
3599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3601 if test "${ac_cv_search_inet_ntoa+set}" = set; then
3605 if test "${ac_cv_search_inet_ntoa+set}" = set; then
3608 ac_cv_search_inet_ntoa=no
3611 LIBS=$ac_func_search_save_LIBS
3613 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
3614 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
3615 ac_res=$ac_cv_search_inet_ntoa
3616 if test "$ac_res" != no; then
3617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3621 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
3622 $as_echo_n "checking for library containing socket... " >&6; }
3623 if test "${ac_cv_search_socket+set}" = set; then
3624 $as_echo_n "(cached) " >&6
3626 ac_func_search_save_LIBS=$LIBS
3627 cat >conftest.$ac_ext <<_ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3634 /* Override any GCC internal prototype to avoid an error.
3635 Use char because int might match the return type of a GCC
3636 builtin and then its argument prototype would still apply. */
3649 for ac_lib in '' socket; do
3650 if test -z "$ac_lib"; then
3651 ac_res="none required"
3654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664 (eval "$ac_link") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } && {
3671 test -z "$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3673 } && test -s conftest$ac_exeext && {
3674 test "$cross_compiling" = yes ||
3675 $as_test_x conftest$ac_exeext
3677 ac_cv_search_socket=$ac_res
3679 $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -rf conftest.dSYM
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3688 if test "${ac_cv_search_socket+set}" = set; then
3692 if test "${ac_cv_search_socket+set}" = set; then
3695 ac_cv_search_socket=no
3698 LIBS=$ac_func_search_save_LIBS
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
3701 $as_echo "$ac_cv_search_socket" >&6; }
3702 ac_res=$ac_cv_search_socket
3703 if test "$ac_res" != no; then
3704 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3708 { $as_echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
3709 $as_echo_n "checking for library containing inet_aton... " >&6; }
3710 if test "${ac_cv_search_inet_aton+set}" = set; then
3711 $as_echo_n "(cached) " >&6
3713 ac_func_search_save_LIBS=$LIBS
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3721 /* Override any GCC internal prototype to avoid an error.
3722 Use char because int might match the return type of a GCC
3723 builtin and then its argument prototype would still apply. */
3731 return inet_aton ();
3736 for ac_lib in '' resolv; do
3737 if test -z "$ac_lib"; then
3738 ac_res="none required"
3741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3743 rm -f conftest.$ac_objext conftest$ac_exeext
3744 if { (ac_try="$ac_link"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3750 $as_echo "$ac_try_echo") >&5
3751 (eval "$ac_link") 2>conftest.er1
3753 grep -v '^ *+' conftest.er1 >conftest.err
3755 cat conftest.err >&5
3756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } && {
3758 test -z "$ac_c_werror_flag" ||
3759 test ! -s conftest.err
3760 } && test -s conftest$ac_exeext && {
3761 test "$cross_compiling" = yes ||
3762 $as_test_x conftest$ac_exeext
3764 ac_cv_search_inet_aton=$ac_res
3766 $as_echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3772 rm -rf conftest.dSYM
3773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3775 if test "${ac_cv_search_inet_aton+set}" = set; then
3779 if test "${ac_cv_search_inet_aton+set}" = set; then
3782 ac_cv_search_inet_aton=no
3785 LIBS=$ac_func_search_save_LIBS
3787 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
3788 $as_echo "$ac_cv_search_inet_aton" >&6; }
3789 ac_res=$ac_cv_search_inet_aton
3790 if test "$ac_res" != no; then
3791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3795 { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
3796 $as_echo_n "checking for library containing clock_gettime... " >&6; }
3797 if test "${ac_cv_search_clock_gettime+set}" = set; then
3798 $as_echo_n "(cached) " >&6
3800 ac_func_search_save_LIBS=$LIBS
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3808 /* Override any GCC internal prototype to avoid an error.
3809 Use char because int might match the return type of a GCC
3810 builtin and then its argument prototype would still apply. */
3814 char clock_gettime ();
3818 return clock_gettime ();
3823 for ac_lib in '' rt; do
3824 if test -z "$ac_lib"; then
3825 ac_res="none required"
3828 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (ac_try="$ac_link"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3837 $as_echo "$ac_try_echo") >&5
3838 (eval "$ac_link") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } && {
3845 test -z "$ac_c_werror_flag" ||
3846 test ! -s conftest.err
3847 } && test -s conftest$ac_exeext && {
3848 test "$cross_compiling" = yes ||
3849 $as_test_x conftest$ac_exeext
3851 ac_cv_search_clock_gettime=$ac_res
3853 $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3859 rm -rf conftest.dSYM
3860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3862 if test "${ac_cv_search_clock_gettime+set}" = set; then
3866 if test "${ac_cv_search_clock_gettime+set}" = set; then
3869 ac_cv_search_clock_gettime=no
3872 LIBS=$ac_func_search_save_LIBS
3874 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
3875 $as_echo "$ac_cv_search_clock_gettime" >&6; }
3876 ac_res=$ac_cv_search_clock_gettime
3877 if test "$ac_res" != no; then
3878 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3882 { $as_echo "$as_me:$LINENO: checking for library containing sendfile" >&5
3883 $as_echo_n "checking for library containing sendfile... " >&6; }
3884 if test "${ac_cv_search_sendfile+set}" = set; then
3885 $as_echo_n "(cached) " >&6
3887 ac_func_search_save_LIBS=$LIBS
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3895 /* Override any GCC internal prototype to avoid an error.
3896 Use char because int might match the return type of a GCC
3897 builtin and then its argument prototype would still apply. */
3910 for ac_lib in '' sendfile; do
3911 if test -z "$ac_lib"; then
3912 ac_res="none required"
3915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3917 rm -f conftest.$ac_objext conftest$ac_exeext
3918 if { (ac_try="$ac_link"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3924 $as_echo "$ac_try_echo") >&5
3925 (eval "$ac_link") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest$ac_exeext && {
3935 test "$cross_compiling" = yes ||
3936 $as_test_x conftest$ac_exeext
3938 ac_cv_search_sendfile=$ac_res
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3946 rm -rf conftest.dSYM
3947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3949 if test "${ac_cv_search_sendfile+set}" = set; then
3953 if test "${ac_cv_search_sendfile+set}" = set; then
3956 ac_cv_search_sendfile=no
3959 LIBS=$ac_func_search_save_LIBS
3961 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_sendfile" >&5
3962 $as_echo "$ac_cv_search_sendfile" >&6; }
3963 ac_res=$ac_cv_search_sendfile
3964 if test "$ac_res" != no; then
3965 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3970 { $as_echo "$as_me:$LINENO: checking for WIN32" >&5
3971 $as_echo_n "checking for WIN32... " >&6; }
3972 cat >conftest.$ac_ext <<_ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compile") 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest.$ac_objext; then
4009 bwin32=true; { $as_echo "$as_me:$LINENO: result: yes" >&5
4010 $as_echo "yes" >&6; }
4012 $as_echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4015 bwin32=false; { $as_echo "$as_me:$LINENO: result: no" >&5
4016 $as_echo "no" >&6; }
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021 { $as_echo "$as_me:$LINENO: checking for CYGWIN" >&5
4022 $as_echo_n "checking for CYGWIN... " >&6; }
4023 cat >conftest.$ac_ext <<_ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4049 $as_echo "$ac_try_echo") >&5
4050 (eval "$ac_compile") 2>conftest.er1
4052 grep -v '^ *+' conftest.er1 >conftest.err
4054 cat conftest.err >&5
4055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } && {
4057 test -z "$ac_c_werror_flag" ||
4058 test ! -s conftest.err
4059 } && test -s conftest.$ac_objext; then
4060 cygwin=true; { $as_echo "$as_me:$LINENO: result: yes" >&5
4061 $as_echo "yes" >&6; }
4063 $as_echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 cygwin=false; { $as_echo "$as_me:$LINENO: result: no" >&5
4067 $as_echo "no" >&6; }
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4073 $as_echo_n "checking for ANSI C header files... " >&6; }
4074 if test "${ac_cv_header_stdc+set}" = set; then
4075 $as_echo_n "(cached) " >&6
4077 cat >conftest.$ac_ext <<_ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */
4096 rm -f conftest.$ac_objext
4097 if { (ac_try="$ac_compile"
4099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100 *) ac_try_echo=$ac_try;;
4102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4103 $as_echo "$ac_try_echo") >&5
4104 (eval "$ac_compile") 2>conftest.er1
4106 grep -v '^ *+' conftest.er1 >conftest.err
4108 cat conftest.err >&5
4109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } && {
4111 test -z "$ac_c_werror_flag" ||
4112 test ! -s conftest.err
4113 } && test -s conftest.$ac_objext; then
4114 ac_cv_header_stdc=yes
4116 $as_echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4119 ac_cv_header_stdc=no
4122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 if test $ac_cv_header_stdc = yes; then
4125 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4126 cat >conftest.$ac_ext <<_ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4136 $EGREP "memchr" >/dev/null 2>&1; then
4139 ac_cv_header_stdc=no
4145 if test $ac_cv_header_stdc = yes; then
4146 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4157 $EGREP "free" >/dev/null 2>&1; then
4160 ac_cv_header_stdc=no
4166 if test $ac_cv_header_stdc = yes; then
4167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4168 if test "$cross_compiling" = yes; then
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4179 #if ((' ' & 0x0FF) == 0x020)
4180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4183 # define ISLOWER(c) \
4184 (('a' <= (c) && (c) <= 'i') \
4185 || ('j' <= (c) && (c) <= 'r') \
4186 || ('s' <= (c) && (c) <= 'z'))
4187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4195 for (i = 0; i < 256; i++)
4196 if (XOR (islower (i), ISLOWER (i))
4197 || toupper (i) != TOUPPER (i))
4202 rm -f conftest$ac_exeext
4203 if { (ac_try="$ac_link"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4209 $as_echo "$ac_try_echo") >&5
4210 (eval "$ac_link") 2>&5
4212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4214 { (case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4219 $as_echo "$ac_try_echo") >&5
4220 (eval "$ac_try") 2>&5
4222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
4226 $as_echo "$as_me: program exited with status $ac_status" >&5
4227 $as_echo "$as_me: failed program was:" >&5
4228 sed 's/^/| /' conftest.$ac_ext >&5
4231 ac_cv_header_stdc=no
4233 rm -rf conftest.dSYM
4234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4240 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4241 $as_echo "$ac_cv_header_stdc" >&6; }
4242 if test $ac_cv_header_stdc = yes; then
4244 cat >>confdefs.h <<\_ACEOF
4245 #define STDC_HEADERS 1
4250 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4260 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4261 inttypes.h stdint.h unistd.h
4263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4265 $as_echo_n "checking for $ac_header... " >&6; }
4266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4267 $as_echo_n "(cached) " >&6
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4275 $ac_includes_default
4277 #include <$ac_header>
4279 rm -f conftest.$ac_objext
4280 if { (ac_try="$ac_compile"
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4286 $as_echo "$ac_try_echo") >&5
4287 (eval "$ac_compile") 2>conftest.er1
4289 grep -v '^ *+' conftest.er1 >conftest.err
4291 cat conftest.err >&5
4292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && {
4294 test -z "$ac_c_werror_flag" ||
4295 test ! -s conftest.err
4296 } && test -s conftest.$ac_objext; then
4297 eval "$as_ac_Header=yes"
4299 $as_echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 eval "$as_ac_Header=no"
4305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307 ac_res=`eval 'as_val=${'$as_ac_Header'}
4308 $as_echo "$as_val"'`
4309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4310 $as_echo "$ac_res" >&6; }
4311 as_val=`eval 'as_val=${'$as_ac_Header'}
4312 $as_echo "$as_val"'`
4313 if test "x$as_val" = x""yes; then
4314 cat >>confdefs.h <<_ACEOF
4315 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324 for ac_header in zlib.h
4326 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4329 $as_echo_n "checking for $ac_header... " >&6; }
4330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4331 $as_echo_n "(cached) " >&6
4333 ac_res=`eval 'as_val=${'$as_ac_Header'}
4334 $as_echo "$as_val"'`
4335 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4336 $as_echo "$ac_res" >&6; }
4338 # Is the header compilable?
4339 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4340 $as_echo_n "checking $ac_header usability... " >&6; }
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4347 $ac_includes_default
4348 #include <$ac_header>
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354 *) ac_try_echo=$ac_try;;
4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357 $as_echo "$ac_try_echo") >&5
4358 (eval "$ac_compile") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); } && {
4365 test -z "$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4367 } && test -s conftest.$ac_objext; then
4368 ac_header_compiler=yes
4370 $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 ac_header_compiler=no
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4378 $as_echo "$ac_header_compiler" >&6; }
4380 # Is the header present?
4381 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4382 $as_echo_n "checking $ac_header presence... " >&6; }
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4389 #include <$ac_header>
4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
4393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394 *) ac_try_echo=$ac_try;;
4396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4397 $as_echo "$ac_try_echo") >&5
4398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4400 grep -v '^ *+' conftest.er1 >conftest.err
4402 cat conftest.err >&5
4403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } >/dev/null && {
4405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4406 test ! -s conftest.err
4408 ac_header_preproc=yes
4410 $as_echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4413 ac_header_preproc=no
4416 rm -f conftest.err conftest.$ac_ext
4417 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4418 $as_echo "$ac_header_preproc" >&6; }
4420 # So? What about this header?
4421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4424 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4426 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4427 ac_header_preproc=yes
4430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4431 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4433 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4435 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4437 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4441 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4446 $as_echo_n "checking for $ac_header... " >&6; }
4447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4448 $as_echo_n "(cached) " >&6
4450 eval "$as_ac_Header=\$ac_header_preproc"
4452 ac_res=`eval 'as_val=${'$as_ac_Header'}
4453 $as_echo "$as_val"'`
4454 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4455 $as_echo "$ac_res" >&6; }
4458 as_val=`eval 'as_val=${'$as_ac_Header'}
4459 $as_echo "$as_val"'`
4460 if test "x$as_val" = x""yes; then
4461 cat >>confdefs.h <<_ACEOF
4462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4470 if test "x$ac_cv_header_zlib_h" = "xyes"; then
4475 { $as_echo "$as_me:$LINENO: checking for library containing inflateEnd" >&5
4476 $as_echo_n "checking for library containing inflateEnd... " >&6; }
4477 if test "${ac_cv_search_inflateEnd+set}" = set; then
4478 $as_echo_n "(cached) " >&6
4480 ac_func_search_save_LIBS=$LIBS
4481 cat >conftest.$ac_ext <<_ACEOF
4484 cat confdefs.h >>conftest.$ac_ext
4485 cat >>conftest.$ac_ext <<_ACEOF
4486 /* end confdefs.h. */
4488 /* Override any GCC internal prototype to avoid an error.
4489 Use char because int might match the return type of a GCC
4490 builtin and then its argument prototype would still apply. */
4498 return inflateEnd ();
4503 for ac_lib in '' z; do
4504 if test -z "$ac_lib"; then
4505 ac_res="none required"
4508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4510 rm -f conftest.$ac_objext conftest$ac_exeext
4511 if { (ac_try="$ac_link"
4513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4514 *) ac_try_echo=$ac_try;;
4516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4517 $as_echo "$ac_try_echo") >&5
4518 (eval "$ac_link") 2>conftest.er1
4520 grep -v '^ *+' conftest.er1 >conftest.err
4522 cat conftest.err >&5
4523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } && {
4525 test -z "$ac_c_werror_flag" ||
4526 test ! -s conftest.err
4527 } && test -s conftest$ac_exeext && {
4528 test "$cross_compiling" = yes ||
4529 $as_test_x conftest$ac_exeext
4531 ac_cv_search_inflateEnd=$ac_res
4533 $as_echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4539 rm -rf conftest.dSYM
4540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4542 if test "${ac_cv_search_inflateEnd+set}" = set; then
4546 if test "${ac_cv_search_inflateEnd+set}" = set; then
4549 ac_cv_search_inflateEnd=no
4552 LIBS=$ac_func_search_save_LIBS
4554 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_inflateEnd" >&5
4555 $as_echo "$ac_cv_search_inflateEnd" >&6; }
4556 ac_res=$ac_cv_search_inflateEnd
4557 if test "$ac_res" != no; then
4558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4562 cat >>confdefs.h <<\_ACEOF
4571 AM_CONDITIONAL(ZLIB_REGRESS, test "$have_zlib" = "yes")
4573 if test "$bwin32" = true; then
4574 EV_LIB_WS32=-lws2_32
4584 for ac_header in openssl/bio.h
4586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4588 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4589 $as_echo_n "checking for $ac_header... " >&6; }
4590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4591 $as_echo_n "(cached) " >&6
4593 ac_res=`eval 'as_val=${'$as_ac_Header'}
4594 $as_echo "$as_val"'`
4595 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4596 $as_echo "$ac_res" >&6; }
4598 # Is the header compilable?
4599 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4600 $as_echo_n "checking $ac_header usability... " >&6; }
4601 cat >conftest.$ac_ext <<_ACEOF
4604 cat confdefs.h >>conftest.$ac_ext
4605 cat >>conftest.$ac_ext <<_ACEOF
4606 /* end confdefs.h. */
4607 $ac_includes_default
4608 #include <$ac_header>
4610 rm -f conftest.$ac_objext
4611 if { (ac_try="$ac_compile"
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617 $as_echo "$ac_try_echo") >&5
4618 (eval "$ac_compile") 2>conftest.er1
4620 grep -v '^ *+' conftest.er1 >conftest.err
4622 cat conftest.err >&5
4623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } && {
4625 test -z "$ac_c_werror_flag" ||
4626 test ! -s conftest.err
4627 } && test -s conftest.$ac_objext; then
4628 ac_header_compiler=yes
4630 $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 ac_header_compiler=no
4636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4638 $as_echo "$ac_header_compiler" >&6; }
4640 # Is the header present?
4641 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4642 $as_echo_n "checking $ac_header presence... " >&6; }
4643 cat >conftest.$ac_ext <<_ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 #include <$ac_header>
4651 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4654 *) ac_try_echo=$ac_try;;
4656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4657 $as_echo "$ac_try_echo") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev/null && {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4668 ac_header_preproc=yes
4670 $as_echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 ac_header_preproc=no
4676 rm -f conftest.err conftest.$ac_ext
4677 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4678 $as_echo "$ac_header_preproc" >&6; }
4680 # So? What about this header?
4681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4684 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4686 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4687 ac_header_preproc=yes
4690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4691 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4693 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4695 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4697 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4701 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4705 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4706 $as_echo_n "checking for $ac_header... " >&6; }
4707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4708 $as_echo_n "(cached) " >&6
4710 eval "$as_ac_Header=\$ac_header_preproc"
4712 ac_res=`eval 'as_val=${'$as_ac_Header'}
4713 $as_echo "$as_val"'`
4714 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4715 $as_echo "$ac_res" >&6; }
4718 as_val=`eval 'as_val=${'$as_ac_Header'}
4719 $as_echo "$as_val"'`
4720 if test "x$as_val" = x""yes; then
4721 cat >>confdefs.h <<_ACEOF
4722 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730 if test "$enable_openssl" = "yes"; then
4735 { $as_echo "$as_me:$LINENO: checking for library containing SSL_new" >&5
4736 $as_echo_n "checking for library containing SSL_new... " >&6; }
4737 if test "${ac_cv_search_SSL_new+set}" = set; then
4738 $as_echo_n "(cached) " >&6
4740 ac_func_search_save_LIBS=$LIBS
4741 cat >conftest.$ac_ext <<_ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h. */
4748 /* Override any GCC internal prototype to avoid an error.
4749 Use char because int might match the return type of a GCC
4750 builtin and then its argument prototype would still apply. */
4763 for ac_lib in '' ssl; do
4764 if test -z "$ac_lib"; then
4765 ac_res="none required"
4768 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $ac_func_search_save_LIBS"
4770 rm -f conftest.$ac_objext conftest$ac_exeext
4771 if { (ac_try="$ac_link"
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4777 $as_echo "$ac_try_echo") >&5
4778 (eval "$ac_link") 2>conftest.er1
4780 grep -v '^ *+' conftest.er1 >conftest.err
4782 cat conftest.err >&5
4783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } && {
4785 test -z "$ac_c_werror_flag" ||
4786 test ! -s conftest.err
4787 } && test -s conftest$ac_exeext && {
4788 test "$cross_compiling" = yes ||
4789 $as_test_x conftest$ac_exeext
4791 ac_cv_search_SSL_new=$ac_res
4793 $as_echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.$ac_ext >&5
4799 rm -rf conftest.dSYM
4800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4802 if test "${ac_cv_search_SSL_new+set}" = set; then
4806 if test "${ac_cv_search_SSL_new+set}" = set; then
4809 ac_cv_search_SSL_new=no
4812 LIBS=$ac_func_search_save_LIBS
4814 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_new" >&5
4815 $as_echo "$ac_cv_search_SSL_new" >&6; }
4816 ac_res=$ac_cv_search_SSL_new
4817 if test "$ac_res" != no; then
4818 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4820 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32"
4822 cat >>confdefs.h <<\_ACEOF
4823 #define HAVE_OPENSSL 1
4834 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4835 $as_echo_n "checking for ANSI C header files... " >&6; }
4836 if test "${ac_cv_header_stdc+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4839 cat >conftest.$ac_ext <<_ACEOF
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4865 $as_echo "$ac_try_echo") >&5
4866 (eval "$ac_compile") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } && {
4873 test -z "$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 } && test -s conftest.$ac_objext; then
4876 ac_cv_header_stdc=yes
4878 $as_echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_cv_header_stdc=no
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 if test $ac_cv_header_stdc = yes; then
4887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4888 cat >conftest.$ac_ext <<_ACEOF
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "memchr" >/dev/null 2>&1; then
4901 ac_cv_header_stdc=no
4907 if test $ac_cv_header_stdc = yes; then
4908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909 cat >conftest.$ac_ext <<_ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4919 $EGREP "free" >/dev/null 2>&1; then
4922 ac_cv_header_stdc=no
4928 if test $ac_cv_header_stdc = yes; then
4929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4930 if test "$cross_compiling" = yes; then
4933 cat >conftest.$ac_ext <<_ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4941 #if ((' ' & 0x0FF) == 0x020)
4942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4945 # define ISLOWER(c) \
4946 (('a' <= (c) && (c) <= 'i') \
4947 || ('j' <= (c) && (c) <= 'r') \
4948 || ('s' <= (c) && (c) <= 'z'))
4949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4957 for (i = 0; i < 256; i++)
4958 if (XOR (islower (i), ISLOWER (i))
4959 || toupper (i) != TOUPPER (i))
4964 rm -f conftest$ac_exeext
4965 if { (ac_try="$ac_link"
4967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4968 *) ac_try_echo=$ac_try;;
4970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4971 $as_echo "$ac_try_echo") >&5
4972 (eval "$ac_link") 2>&5
4974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4976 { (case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4981 $as_echo "$ac_try_echo") >&5
4982 (eval "$ac_try") 2>&5
4984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4988 $as_echo "$as_me: program exited with status $ac_status" >&5
4989 $as_echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4993 ac_cv_header_stdc=no
4995 rm -rf conftest.dSYM
4996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5002 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5003 $as_echo "$ac_cv_header_stdc" >&6; }
5004 if test $ac_cv_header_stdc = yes; then
5006 cat >>confdefs.h <<\_ACEOF
5007 #define STDC_HEADERS 1
5038 for ac_header in fcntl.h stdarg.h inttypes.h stdint.h stddef.h poll.h unistd.h sys/epoll.h sys/time.h sys/queue.h sys/event.h sys/param.h sys/ioctl.h sys/select.h sys/devpoll.h port.h netinet/in.h netinet/in6.h sys/socket.h sys/uio.h arpa/inet.h sys/eventfd.h sys/mman.h sys/sendfile.h sys/wait.h netdb.h
5040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5043 $as_echo_n "checking for $ac_header... " >&6; }
5044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5045 $as_echo_n "(cached) " >&6
5047 ac_res=`eval 'as_val=${'$as_ac_Header'}
5048 $as_echo "$as_val"'`
5049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5050 $as_echo "$ac_res" >&6; }
5052 # Is the header compilable?
5053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5054 $as_echo_n "checking $ac_header usability... " >&6; }
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5061 $ac_includes_default
5062 #include <$ac_header>
5064 rm -f conftest.$ac_objext
5065 if { (ac_try="$ac_compile"
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5071 $as_echo "$ac_try_echo") >&5
5072 (eval "$ac_compile") 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } && {
5079 test -z "$ac_c_werror_flag" ||
5080 test ! -s conftest.err
5081 } && test -s conftest.$ac_objext; then
5082 ac_header_compiler=yes
5084 $as_echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5087 ac_header_compiler=no
5090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092 $as_echo "$ac_header_compiler" >&6; }
5094 # Is the header present?
5095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096 $as_echo_n "checking $ac_header presence... " >&6; }
5097 cat >conftest.$ac_ext <<_ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <$ac_header>
5105 if { (ac_try="$ac_cpp conftest.$ac_ext"
5107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108 *) ac_try_echo=$ac_try;;
5110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5111 $as_echo "$ac_try_echo") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null && {
5119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5120 test ! -s conftest.err
5122 ac_header_preproc=yes
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5127 ac_header_preproc=no
5130 rm -f conftest.err conftest.$ac_ext
5131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5132 $as_echo "$ac_header_preproc" >&6; }
5134 # So? What about this header?
5135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5141 ac_header_preproc=yes
5144 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5146 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5147 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5148 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5150 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5151 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5152 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5160 $as_echo_n "checking for $ac_header... " >&6; }
5161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5162 $as_echo_n "(cached) " >&6
5164 eval "$as_ac_Header=\$ac_header_preproc"
5166 ac_res=`eval 'as_val=${'$as_ac_Header'}
5167 $as_echo "$as_val"'`
5168 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5169 $as_echo "$ac_res" >&6; }
5172 as_val=`eval 'as_val=${'$as_ac_Header'}
5173 $as_echo "$as_val"'`
5174 if test "x$as_val" = x""yes; then
5175 cat >>confdefs.h <<_ACEOF
5176 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184 for ac_header in sys/sysctl.h
5186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5187 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5188 $as_echo_n "checking for $ac_header... " >&6; }
5189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5190 $as_echo_n "(cached) " >&6
5192 cat >conftest.$ac_ext <<_ACEOF
5195 cat confdefs.h >>conftest.$ac_ext
5196 cat >>conftest.$ac_ext <<_ACEOF
5197 /* end confdefs.h. */
5199 #ifdef HAVE_SYS_PARAM_H
5200 #include <sys/param.h>
5204 #include <$ac_header>
5206 rm -f conftest.$ac_objext
5207 if { (ac_try="$ac_compile"
5209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210 *) ac_try_echo=$ac_try;;
5212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5213 $as_echo "$ac_try_echo") >&5
5214 (eval "$ac_compile") 2>conftest.er1
5216 grep -v '^ *+' conftest.er1 >conftest.err
5218 cat conftest.err >&5
5219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } && {
5221 test -z "$ac_c_werror_flag" ||
5222 test ! -s conftest.err
5223 } && test -s conftest.$ac_objext; then
5224 eval "$as_ac_Header=yes"
5226 $as_echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5229 eval "$as_ac_Header=no"
5232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5234 ac_res=`eval 'as_val=${'$as_ac_Header'}
5235 $as_echo "$as_val"'`
5236 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5237 $as_echo "$ac_res" >&6; }
5238 as_val=`eval 'as_val=${'$as_ac_Header'}
5239 $as_echo "$as_val"'`
5240 if test "x$as_val" = x""yes; then
5241 cat >>confdefs.h <<_ACEOF
5242 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5249 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
5250 { $as_echo "$as_me:$LINENO: checking for TAILQ_FOREACH in sys/queue.h" >&5
5251 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
5252 cat >conftest.$ac_ext <<_ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h. */
5259 #include <sys/queue.h>
5260 #ifdef TAILQ_FOREACH
5265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266 $EGREP "yes" >/dev/null 2>&1; then
5267 { $as_echo "$as_me:$LINENO: result: yes" >&5
5268 $as_echo "yes" >&6; }
5270 cat >>confdefs.h <<\_ACEOF
5271 #define HAVE_TAILQFOREACH 1
5275 { $as_echo "$as_me:$LINENO: result: no" >&5
5276 $as_echo "no" >&6; }
5283 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5284 { $as_echo "$as_me:$LINENO: checking for timeradd in sys/time.h" >&5
5285 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5293 #include <sys/time.h>
5299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5300 $EGREP "yes" >/dev/null 2>&1; then
5302 cat >>confdefs.h <<\_ACEOF
5303 #define HAVE_TIMERADD 1
5306 { $as_echo "$as_me:$LINENO: result: yes" >&5
5307 $as_echo "yes" >&6; }
5309 { $as_echo "$as_me:$LINENO: result: no" >&5
5310 $as_echo "no" >&6; }
5317 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5318 { $as_echo "$as_me:$LINENO: checking for timercmp in sys/time.h" >&5
5319 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5327 #include <sys/time.h>
5333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5334 $EGREP "yes" >/dev/null 2>&1; then
5336 cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_TIMERCMP 1
5340 { $as_echo "$as_me:$LINENO: result: yes" >&5
5341 $as_echo "yes" >&6; }
5343 { $as_echo "$as_me:$LINENO: result: no" >&5
5344 $as_echo "no" >&6; }
5351 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5352 { $as_echo "$as_me:$LINENO: checking for timerclear in sys/time.h" >&5
5353 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
5354 cat >conftest.$ac_ext <<_ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5361 #include <sys/time.h>
5367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368 $EGREP "yes" >/dev/null 2>&1; then
5370 cat >>confdefs.h <<\_ACEOF
5371 #define HAVE_TIMERCLEAR 1
5374 { $as_echo "$as_me:$LINENO: result: yes" >&5
5375 $as_echo "yes" >&6; }
5377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378 $as_echo "no" >&6; }
5385 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
5386 { $as_echo "$as_me:$LINENO: checking for timerisset in sys/time.h" >&5
5387 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
5388 cat >conftest.$ac_ext <<_ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5395 #include <sys/time.h>
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "yes" >/dev/null 2>&1; then
5404 cat >>confdefs.h <<\_ACEOF
5405 #define HAVE_TIMERISSET 1
5408 { $as_echo "$as_me:$LINENO: result: yes" >&5
5409 $as_echo "yes" >&6; }
5411 { $as_echo "$as_me:$LINENO: result: no" >&5
5412 $as_echo "no" >&6; }
5419 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
5420 { $as_echo "$as_me:$LINENO: checking whether CTL_KERN is declared" >&5
5421 $as_echo_n "checking whether CTL_KERN is declared... " >&6; }
5422 if test "${ac_cv_have_decl_CTL_KERN+set}" = set; then
5423 $as_echo_n "(cached) " >&6
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <sys/types.h>
5432 #include <sys/sysctl.h>
5446 rm -f conftest.$ac_objext
5447 if { (ac_try="$ac_compile"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454 (eval "$ac_compile") 2>conftest.er1
5456 grep -v '^ *+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } && {
5461 test -z "$ac_c_werror_flag" ||
5462 test ! -s conftest.err
5463 } && test -s conftest.$ac_objext; then
5464 ac_cv_have_decl_CTL_KERN=yes
5466 $as_echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5469 ac_cv_have_decl_CTL_KERN=no
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_CTL_KERN" >&5
5475 $as_echo "$ac_cv_have_decl_CTL_KERN" >&6; }
5476 if test "x$ac_cv_have_decl_CTL_KERN" = x""yes; then
5478 cat >>confdefs.h <<_ACEOF
5479 #define HAVE_DECL_CTL_KERN 1
5484 cat >>confdefs.h <<_ACEOF
5485 #define HAVE_DECL_CTL_KERN 0
5490 { $as_echo "$as_me:$LINENO: checking whether KERN_RANDOM is declared" >&5
5491 $as_echo_n "checking whether KERN_RANDOM is declared... " >&6; }
5492 if test "${ac_cv_have_decl_KERN_RANDOM+set}" = set; then
5493 $as_echo_n "(cached) " >&6
5495 cat >conftest.$ac_ext <<_ACEOF
5498 cat confdefs.h >>conftest.$ac_ext
5499 cat >>conftest.$ac_ext <<_ACEOF
5500 /* end confdefs.h. */
5501 #include <sys/types.h>
5502 #include <sys/sysctl.h>
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5523 $as_echo "$ac_try_echo") >&5
5524 (eval "$ac_compile") 2>conftest.er1
5526 grep -v '^ *+' conftest.er1 >conftest.err
5528 cat conftest.err >&5
5529 $as_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
5534 ac_cv_have_decl_KERN_RANDOM=yes
5536 $as_echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 ac_cv_have_decl_KERN_RANDOM=no
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_KERN_RANDOM" >&5
5545 $as_echo "$ac_cv_have_decl_KERN_RANDOM" >&6; }
5546 if test "x$ac_cv_have_decl_KERN_RANDOM" = x""yes; then
5548 cat >>confdefs.h <<_ACEOF
5549 #define HAVE_DECL_KERN_RANDOM 1
5554 cat >>confdefs.h <<_ACEOF
5555 #define HAVE_DECL_KERN_RANDOM 0
5560 { $as_echo "$as_me:$LINENO: checking whether RANDOM_UUID is declared" >&5
5561 $as_echo_n "checking whether RANDOM_UUID is declared... " >&6; }
5562 if test "${ac_cv_have_decl_RANDOM_UUID+set}" = set; then
5563 $as_echo_n "(cached) " >&6
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5571 #include <sys/types.h>
5572 #include <sys/sysctl.h>
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5593 $as_echo "$ac_try_echo") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1 >conftest.err
5598 cat conftest.err >&5
5599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 ac_cv_have_decl_RANDOM_UUID=yes
5606 $as_echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_cv_have_decl_RANDOM_UUID=no
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_RANDOM_UUID" >&5
5615 $as_echo "$ac_cv_have_decl_RANDOM_UUID" >&6; }
5616 if test "x$ac_cv_have_decl_RANDOM_UUID" = x""yes; then
5618 cat >>confdefs.h <<_ACEOF
5619 #define HAVE_DECL_RANDOM_UUID 1
5624 cat >>confdefs.h <<_ACEOF
5625 #define HAVE_DECL_RANDOM_UUID 0
5630 { $as_echo "$as_me:$LINENO: checking whether KERN_ARND is declared" >&5
5631 $as_echo_n "checking whether KERN_ARND is declared... " >&6; }
5632 if test "${ac_cv_have_decl_KERN_ARND+set}" = set; then
5633 $as_echo_n "(cached) " >&6
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5641 #include <sys/types.h>
5642 #include <sys/sysctl.h>
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5663 $as_echo "$ac_try_echo") >&5
5664 (eval "$ac_compile") 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest.$ac_objext; then
5674 ac_cv_have_decl_KERN_ARND=yes
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_cv_have_decl_KERN_ARND=no
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_KERN_ARND" >&5
5685 $as_echo "$ac_cv_have_decl_KERN_ARND" >&6; }
5686 if test "x$ac_cv_have_decl_KERN_ARND" = x""yes; then
5688 cat >>confdefs.h <<_ACEOF
5689 #define HAVE_DECL_KERN_ARND 1
5694 cat >>confdefs.h <<_ACEOF
5695 #define HAVE_DECL_KERN_ARND 0
5704 AM_CONDITIONAL(BUILD_WIN32, test x$bwin32 = xtrue)
5705 AM_CONDITIONAL(BUILD_CYGWIN, test x$cygwin = xtrue)
5706 AM_CONDITIONAL(BUILD_WITH_NO_UNDEFINED, test x$bwin32 = xtrue || test x$cygwin = xtrue)
5708 if test x$bwin32 = xtrue; then
5709 { $as_echo "$as_me:$LINENO: checking for library containing getservbyname" >&5
5710 $as_echo_n "checking for library containing getservbyname... " >&6; }
5711 if test "${ac_cv_search_getservbyname+set}" = set; then
5712 $as_echo_n "(cached) " >&6
5714 ac_func_search_save_LIBS=$LIBS
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5722 /* Override any GCC internal prototype to avoid an error.
5723 Use char because int might match the return type of a GCC
5724 builtin and then its argument prototype would still apply. */
5728 char getservbyname ();
5732 return getservbyname ();
5737 for ac_lib in '' ws2_32; do
5738 if test -z "$ac_lib"; then
5739 ac_res="none required"
5742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5744 rm -f conftest.$ac_objext conftest$ac_exeext
5745 if { (ac_try="$ac_link"
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751 $as_echo "$ac_try_echo") >&5
5752 (eval "$ac_link") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest$ac_exeext && {
5762 test "$cross_compiling" = yes ||
5763 $as_test_x conftest$ac_exeext
5765 ac_cv_search_getservbyname=$ac_res
5767 $as_echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5773 rm -rf conftest.dSYM
5774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5776 if test "${ac_cv_search_getservbyname+set}" = set; then
5780 if test "${ac_cv_search_getservbyname+set}" = set; then
5783 ac_cv_search_getservbyname=no
5786 LIBS=$ac_func_search_save_LIBS
5788 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getservbyname" >&5
5789 $as_echo "$ac_cv_search_getservbyname" >&6; }
5790 ac_res=$ac_cv_search_getservbyname
5791 if test "$ac_res" != no; then
5792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5798 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5799 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5800 if test "${ac_cv_c_const+set}" = set; then
5801 $as_echo_n "(cached) " >&6
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5813 /* FIXME: Include the comments suggested by Paul. */
5815 /* Ultrix mips cc rejects this. */
5816 typedef int charset[2];
5818 /* SunOS 4.1.1 cc rejects this. */
5819 char const *const *pcpcc;
5821 /* NEC SVR4.0.2 mips cc rejects this. */
5822 struct point {int x, y;};
5823 static struct point const zero = {0,0};
5824 /* AIX XL C 1.02.0.0 rejects this.
5825 It does not let you subtract one const X* pointer from another in
5826 an arm of an if-expression whose if-part is not a constant
5828 const char *g = "string";
5829 pcpcc = &g + (g ? g-g : 0);
5830 /* HPUX 7.0 cc rejects these. */
5832 ppc = (char**) pcpcc;
5833 pcpcc = (char const *const *) ppc;
5834 { /* SCO 3.2v4 cc rejects this. */
5836 char const *s = 0 ? (char *) 0 : (char const *) 0;
5841 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5843 const int *foo = &x[0];
5846 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5847 typedef const int *iptr;
5851 { /* AIX XL C 1.02.0.0 rejects this saying
5852 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5853 struct s { int j; const int *ap[3]; };
5854 struct s *b; b->j = 5;
5856 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5860 return !cs[0] && !zero.x;
5867 rm -f conftest.$ac_objext
5868 if { (ac_try="$ac_compile"
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5874 $as_echo "$ac_try_echo") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5877 grep -v '^ *+' conftest.er1 >conftest.err
5879 cat conftest.err >&5
5880 $as_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
5887 $as_echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5896 $as_echo "$ac_cv_c_const" >&6; }
5897 if test $ac_cv_c_const = no; then
5899 cat >>confdefs.h <<\_ACEOF
5905 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5906 $as_echo_n "checking for inline... " >&6; }
5907 if test "${ac_cv_c_inline+set}" = set; then
5908 $as_echo_n "(cached) " >&6
5911 for ac_kw in inline __inline__ __inline; do
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5920 static $ac_kw foo_t static_foo () {return 0; }
5921 $ac_kw foo_t foo () {return 0; }
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5932 $as_echo "$ac_try_echo") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1 >conftest.err
5937 cat conftest.err >&5
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.$ac_objext; then
5943 ac_cv_c_inline=$ac_kw
5945 $as_echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5952 test "$ac_cv_c_inline" != no && break
5956 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5957 $as_echo "$ac_cv_c_inline" >&6; }
5960 case $ac_cv_c_inline in
5963 case $ac_cv_c_inline in
5965 *) ac_val=$ac_cv_c_inline;;
5967 cat >>confdefs.h <<_ACEOF
5969 #define inline $ac_val
5975 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5976 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5977 if test "${ac_cv_header_time+set}" = set; then
5978 $as_echo_n "(cached) " >&6
5980 cat >conftest.$ac_ext <<_ACEOF
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 #include <sys/types.h>
5987 #include <sys/time.h>
5993 if ((struct tm *) 0)
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6017 ac_cv_header_time=yes
6019 $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_header_time=no
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6028 $as_echo "$ac_cv_header_time" >&6; }
6029 if test $ac_cv_header_time = yes; then
6031 cat >>confdefs.h <<\_ACEOF
6032 #define TIME_WITH_SYS_TIME 1
6044 for ac_func in gettimeofday vasprintf fcntl clock_gettime strtok_r strsep
6046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6047 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6048 $as_echo_n "checking for $ac_func... " >&6; }
6049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6050 $as_echo_n "(cached) " >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6060 #define $ac_func innocuous_$ac_func
6062 /* System header to define __stub macros and hopefully few prototypes,
6063 which can conflict with char $ac_func (); below.
6064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6065 <limits.h> exists even on freestanding compilers. */
6068 # include <limits.h>
6070 # include <assert.h>
6075 /* Override any GCC internal prototype to avoid an error.
6076 Use char because int might match the return type of a GCC
6077 builtin and then its argument prototype would still apply. */
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined __stub_$ac_func || defined __stub___$ac_func
6097 rm -f conftest.$ac_objext conftest$ac_exeext
6098 if { (ac_try="$ac_link"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_link") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1 >conftest.err
6109 cat conftest.err >&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest$ac_exeext && {
6115 test "$cross_compiling" = yes ||
6116 $as_test_x conftest$ac_exeext
6118 eval "$as_ac_var=yes"
6120 $as_echo "$as_me: failed program was:" >&5
6121 sed 's/^/| /' conftest.$ac_ext >&5
6123 eval "$as_ac_var=no"
6126 rm -rf conftest.dSYM
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128 conftest$ac_exeext conftest.$ac_ext
6130 ac_res=`eval 'as_val=${'$as_ac_var'}
6131 $as_echo "$as_val"'`
6132 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6133 $as_echo "$ac_res" >&6; }
6134 as_val=`eval 'as_val=${'$as_ac_var'}
6135 $as_echo "$as_val"'`
6136 if test "x$as_val" = x""yes; then
6137 cat >>confdefs.h <<_ACEOF
6138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6167 for ac_func in getnameinfo strlcpy inet_ntop inet_pton signal sigaction strtoll inet_aton pipe eventfd sendfile mmap splice arc4random arc4random_buf issetugid geteuid getegid getprotobynumber setenv unsetenv putenv sysctl
6169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6170 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6171 $as_echo_n "checking for $ac_func... " >&6; }
6172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6173 $as_echo_n "(cached) " >&6
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6183 #define $ac_func innocuous_$ac_func
6185 /* System header to define __stub macros and hopefully few prototypes,
6186 which can conflict with char $ac_func (); below.
6187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6188 <limits.h> exists even on freestanding compilers. */
6191 # include <limits.h>
6193 # include <assert.h>
6198 /* Override any GCC internal prototype to avoid an error.
6199 Use char because int might match the return type of a GCC
6200 builtin and then its argument prototype would still apply. */
6205 /* The GNU C library defines this for functions which it implements
6206 to always fail with ENOSYS. Some functions are actually named
6207 something starting with __ and the normal name is an alias. */
6208 #if defined __stub_$ac_func || defined __stub___$ac_func
6220 rm -f conftest.$ac_objext conftest$ac_exeext
6221 if { (ac_try="$ac_link"
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6227 $as_echo "$ac_try_echo") >&5
6228 (eval "$ac_link") 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } && {
6235 test -z "$ac_c_werror_flag" ||
6236 test ! -s conftest.err
6237 } && test -s conftest$ac_exeext && {
6238 test "$cross_compiling" = yes ||
6239 $as_test_x conftest$ac_exeext
6241 eval "$as_ac_var=yes"
6243 $as_echo "$as_me: failed program was:" >&5
6244 sed 's/^/| /' conftest.$ac_ext >&5
6246 eval "$as_ac_var=no"
6249 rm -rf conftest.dSYM
6250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6251 conftest$ac_exeext conftest.$ac_ext
6253 ac_res=`eval 'as_val=${'$as_ac_var'}
6254 $as_echo "$as_val"'`
6255 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6256 $as_echo "$ac_res" >&6; }
6257 as_val=`eval 'as_val=${'$as_ac_var'}
6258 $as_echo "$as_val"'`
6259 if test "x$as_val" = x""yes; then
6260 cat >>confdefs.h <<_ACEOF
6261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6268 { $as_echo "$as_me:$LINENO: checking for getaddrinfo" >&5
6269 $as_echo_n "checking for getaddrinfo... " >&6; }
6270 if test "${libevent_cv_getaddrinfo+set}" = set; then
6271 $as_echo_n "(cached) " >&6
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6295 rm -f conftest.$ac_objext conftest$ac_exeext
6296 if { (ac_try="$ac_link"
6298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6299 *) ac_try_echo=$ac_try;;
6301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6302 $as_echo "$ac_try_echo") >&5
6303 (eval "$ac_link") 2>conftest.er1
6305 grep -v '^ *+' conftest.er1 >conftest.err
6307 cat conftest.err >&5
6308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309 (exit $ac_status); } && {
6310 test -z "$ac_c_werror_flag" ||
6311 test ! -s conftest.err
6312 } && test -s conftest$ac_exeext && {
6313 test "$cross_compiling" = yes ||
6314 $as_test_x conftest$ac_exeext
6316 libevent_cv_getaddrinfo=yes
6318 $as_echo "$as_me: failed program was:" >&5
6319 sed 's/^/| /' conftest.$ac_ext >&5
6321 libevent_cv_getaddrinfo=no
6325 rm -rf conftest.dSYM
6326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6327 conftest$ac_exeext conftest.$ac_ext
6330 { $as_echo "$as_me:$LINENO: result: $libevent_cv_getaddrinfo" >&5
6331 $as_echo "$libevent_cv_getaddrinfo" >&6; }
6332 if test "$libevent_cv_getaddrinfo" = "yes" ; then
6334 cat >>confdefs.h <<\_ACEOF
6335 #define HAVE_GETADDRINFO 1
6341 for ac_func in getservbyname
6343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6344 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6345 $as_echo_n "checking for $ac_func... " >&6; }
6346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6347 $as_echo_n "(cached) " >&6
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6357 #define $ac_func innocuous_$ac_func
6359 /* System header to define __stub macros and hopefully few prototypes,
6360 which can conflict with char $ac_func (); below.
6361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362 <limits.h> exists even on freestanding compilers. */
6365 # include <limits.h>
6367 # include <assert.h>
6372 /* Override any GCC internal prototype to avoid an error.
6373 Use char because int might match the return type of a GCC
6374 builtin and then its argument prototype would still apply. */
6379 /* The GNU C library defines this for functions which it implements
6380 to always fail with ENOSYS. Some functions are actually named
6381 something starting with __ and the normal name is an alias. */
6382 #if defined __stub_$ac_func || defined __stub___$ac_func
6394 rm -f conftest.$ac_objext conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402 (eval "$ac_link") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest$ac_exeext && {
6412 test "$cross_compiling" = yes ||
6413 $as_test_x conftest$ac_exeext
6415 eval "$as_ac_var=yes"
6417 $as_echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 eval "$as_ac_var=no"
6423 rm -rf conftest.dSYM
6424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6425 conftest$ac_exeext conftest.$ac_ext
6427 ac_res=`eval 'as_val=${'$as_ac_var'}
6428 $as_echo "$as_val"'`
6429 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6430 $as_echo "$ac_res" >&6; }
6431 as_val=`eval 'as_val=${'$as_ac_var'}
6432 $as_echo "$as_val"'`
6433 if test "x$as_val" = x""yes; then
6434 cat >>confdefs.h <<_ACEOF
6435 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6441 # Check for gethostbyname_r in all its glorious incompatible versions.
6442 # (This is cut-and-pasted from Tor, which based its logic on
6443 # Python's configure.in.)
6447 { $as_echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
6448 $as_echo_n "checking for gethostbyname_r... " >&6; }
6449 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
6450 $as_echo_n "(cached) " >&6
6452 cat >conftest.$ac_ext <<_ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
6459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6460 #define gethostbyname_r innocuous_gethostbyname_r
6462 /* System header to define __stub macros and hopefully few prototypes,
6463 which can conflict with char gethostbyname_r (); below.
6464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6465 <limits.h> exists even on freestanding compilers. */
6468 # include <limits.h>
6470 # include <assert.h>
6473 #undef gethostbyname_r
6475 /* Override any GCC internal prototype to avoid an error.
6476 Use char because int might match the return type of a GCC
6477 builtin and then its argument prototype would still apply. */
6481 char gethostbyname_r ();
6482 /* The GNU C library defines this for functions which it implements
6483 to always fail with ENOSYS. Some functions are actually named
6484 something starting with __ and the normal name is an alias. */
6485 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6492 return gethostbyname_r ();
6497 rm -f conftest.$ac_objext conftest$ac_exeext
6498 if { (ac_try="$ac_link"
6500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6501 *) ac_try_echo=$ac_try;;
6503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6504 $as_echo "$ac_try_echo") >&5
6505 (eval "$ac_link") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1 >conftest.err
6509 cat conftest.err >&5
6510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && {
6512 test -z "$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 } && test -s conftest$ac_exeext && {
6515 test "$cross_compiling" = yes ||
6516 $as_test_x conftest$ac_exeext
6518 ac_cv_func_gethostbyname_r=yes
6520 $as_echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 ac_cv_func_gethostbyname_r=no
6526 rm -rf conftest.dSYM
6527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6528 conftest$ac_exeext conftest.$ac_ext
6530 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
6531 $as_echo "$ac_cv_func_gethostbyname_r" >&6; }
6532 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then
6534 { $as_echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() wants" >&5
6535 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
6537 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6552 struct hostent *h1, *h2;
6554 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
6560 rm -f conftest.$ac_objext
6561 if { (ac_try="$ac_compile"
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6567 $as_echo "$ac_try_echo") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6579 cat >>confdefs.h <<\_ACEOF
6580 #define HAVE_GETHOSTBYNAME_R 1
6584 cat >>confdefs.h <<\_ACEOF
6585 #define HAVE_GETHOSTBYNAME_R_6_ARG 1
6588 { $as_echo "$as_me:$LINENO: result: 6" >&5
6592 $as_echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6596 cat >conftest.$ac_ext <<_ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h. */
6612 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
6618 rm -f conftest.$ac_objext
6619 if { (ac_try="$ac_compile"
6621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6622 *) ac_try_echo=$ac_try;;
6624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6625 $as_echo "$ac_try_echo") >&5
6626 (eval "$ac_compile") 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } && {
6633 test -z "$ac_c_werror_flag" ||
6634 test ! -s conftest.err
6635 } && test -s conftest.$ac_objext; then
6637 cat >>confdefs.h <<\_ACEOF
6638 #define HAVE_GETHOSTBYNAME_R 1
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_GETHOSTBYNAME_R_5_ARG 1
6646 { $as_echo "$as_me:$LINENO: result: 5" >&5
6650 $as_echo "$as_me: failed program was:" >&5
6651 sed 's/^/| /' conftest.$ac_ext >&5
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6669 struct hostent_data hd;
6670 (void) gethostbyname_r(cp1,h1,&hd);
6676 rm -f conftest.$ac_objext
6677 if { (ac_try="$ac_compile"
6679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6680 *) ac_try_echo=$ac_try;;
6682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6683 $as_echo "$ac_try_echo") >&5
6684 (eval "$ac_compile") 2>conftest.er1
6686 grep -v '^ *+' conftest.er1 >conftest.err
6688 cat conftest.err >&5
6689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } && {
6691 test -z "$ac_c_werror_flag" ||
6692 test ! -s conftest.err
6693 } && test -s conftest.$ac_objext; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define HAVE_GETHOSTBYNAME_R 1
6700 cat >>confdefs.h <<\_ACEOF
6701 #define HAVE_GETHOSTBYNAME_R_3_ARG 1
6704 { $as_echo "$as_me:$LINENO: result: 3" >&5
6708 $as_echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6712 { $as_echo "$as_me:$LINENO: result: 0" >&5
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 # The cast to long int works around a bug in the HP C Compiler
6734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6736 # This bug is HP SR number 8606223364.
6737 { $as_echo "$as_me:$LINENO: checking size of long" >&5
6738 $as_echo_n "checking size of long... " >&6; }
6739 if test "${ac_cv_sizeof_long+set}" = set; then
6740 $as_echo_n "(cached) " >&6
6742 if test "$cross_compiling" = yes; then
6743 # Depending upon the size, compute the lo and hi bounds.
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 $ac_includes_default
6754 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
6761 rm -f conftest.$ac_objext
6762 if { (ac_try="$ac_compile"
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6768 $as_echo "$ac_try_echo") >&5
6769 (eval "$ac_compile") 2>conftest.er1
6771 grep -v '^ *+' conftest.er1 >conftest.err
6773 cat conftest.err >&5
6774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); } && {
6776 test -z "$ac_c_werror_flag" ||
6777 test ! -s conftest.err
6778 } && test -s conftest.$ac_objext; then
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 $ac_includes_default
6791 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6798 rm -f conftest.$ac_objext
6799 if { (ac_try="$ac_compile"
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6805 $as_echo "$ac_try_echo") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6808 grep -v '^ *+' conftest.er1 >conftest.err
6810 cat conftest.err >&5
6811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 ac_hi=$ac_mid; break
6818 $as_echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 ac_lo=`expr $ac_mid + 1`
6822 if test $ac_lo -le $ac_mid; then
6826 ac_mid=`expr 2 '*' $ac_mid + 1`
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 $as_echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6835 cat >conftest.$ac_ext <<_ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6841 $ac_includes_default
6845 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
6852 rm -f conftest.$ac_objext
6853 if { (ac_try="$ac_compile"
6855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6856 *) ac_try_echo=$ac_try;;
6858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6859 $as_echo "$ac_try_echo") >&5
6860 (eval "$ac_compile") 2>conftest.er1
6862 grep -v '^ *+' conftest.er1 >conftest.err
6864 cat conftest.err >&5
6865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); } && {
6867 test -z "$ac_c_werror_flag" ||
6868 test ! -s conftest.err
6869 } && test -s conftest.$ac_objext; then
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6878 $ac_includes_default
6882 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
6889 rm -f conftest.$ac_objext
6890 if { (ac_try="$ac_compile"
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6896 $as_echo "$ac_try_echo") >&5
6897 (eval "$ac_compile") 2>conftest.er1
6899 grep -v '^ *+' conftest.er1 >conftest.err
6901 cat conftest.err >&5
6902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && {
6904 test -z "$ac_c_werror_flag" ||
6905 test ! -s conftest.err
6906 } && test -s conftest.$ac_objext; then
6907 ac_lo=$ac_mid; break
6909 $as_echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6912 ac_hi=`expr '(' $ac_mid ')' - 1`
6913 if test $ac_mid -le $ac_hi; then
6917 ac_mid=`expr 2 '*' $ac_mid`
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 $as_echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 # Binary search between lo and hi bounds.
6934 while test "x$ac_lo" != "x$ac_hi"; do
6935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6936 cat >conftest.$ac_ext <<_ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 $ac_includes_default
6946 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6953 rm -f conftest.$ac_objext
6954 if { (ac_try="$ac_compile"
6956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957 *) ac_try_echo=$ac_try;;
6959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6960 $as_echo "$ac_try_echo") >&5
6961 (eval "$ac_compile") 2>conftest.er1
6963 grep -v '^ *+' conftest.er1 >conftest.err
6965 cat conftest.err >&5
6966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } && {
6968 test -z "$ac_c_werror_flag" ||
6969 test ! -s conftest.err
6970 } && test -s conftest.$ac_objext; then
6973 $as_echo "$as_me: failed program was:" >&5
6974 sed 's/^/| /' conftest.$ac_ext >&5
6976 ac_lo=`expr '(' $ac_mid ')' + 1`
6979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 ?*) ac_cv_sizeof_long=$ac_lo;;
6983 '') if test "$ac_cv_type_long" = yes; then
6984 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6986 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6987 See \`config.log' for more details." >&5
6988 $as_echo "$as_me: error: cannot compute sizeof (long)
6989 See \`config.log' for more details." >&2;}
6990 { (exit 77); exit 77; }; }; }
6996 cat >conftest.$ac_ext <<_ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 $ac_includes_default
7003 static long int longval () { return (long int) (sizeof (long)); }
7004 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
7011 FILE *f = fopen ("conftest.val", "w");
7014 if (((long int) (sizeof (long))) < 0)
7016 long int i = longval ();
7017 if (i != ((long int) (sizeof (long))))
7019 fprintf (f, "%ld", i);
7023 unsigned long int i = ulongval ();
7024 if (i != ((long int) (sizeof (long))))
7026 fprintf (f, "%lu", i);
7028 /* Do not output a trailing newline, as this causes \r\n confusion
7029 on some platforms. */
7030 return ferror (f) || fclose (f) != 0;
7036 rm -f conftest$ac_exeext
7037 if { (ac_try="$ac_link"
7039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7043 $as_echo "$ac_try_echo") >&5
7044 (eval "$ac_link") 2>&5
7046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7048 { (case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054 (eval "$ac_try") 2>&5
7056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 ac_cv_sizeof_long=`cat conftest.val`
7060 $as_echo "$as_me: program exited with status $ac_status" >&5
7061 $as_echo "$as_me: failed program was:" >&5
7062 sed 's/^/| /' conftest.$ac_ext >&5
7065 if test "$ac_cv_type_long" = yes; then
7066 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7068 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
7069 See \`config.log' for more details." >&5
7070 $as_echo "$as_me: error: cannot compute sizeof (long)
7071 See \`config.log' for more details." >&2;}
7072 { (exit 77); exit 77; }; }; }
7077 rm -rf conftest.dSYM
7078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7082 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7083 $as_echo "$ac_cv_sizeof_long" >&6; }
7087 cat >>confdefs.h <<_ACEOF
7088 #define SIZEOF_LONG $ac_cv_sizeof_long
7093 { $as_echo "$as_me:$LINENO: checking for F_SETFD in fcntl.h" >&5
7094 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110 $EGREP "yes" >/dev/null 2>&1; then
7112 cat >>confdefs.h <<\_ACEOF
7113 #define HAVE_SETFD 1
7116 { $as_echo "$as_me:$LINENO: result: yes" >&5
7117 $as_echo "yes" >&6; }
7119 { $as_echo "$as_me:$LINENO: result: no" >&5
7120 $as_echo "no" >&6; }
7127 if test x$bwin32 != xtrue; then
7129 for ac_func in select
7131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7133 $as_echo_n "checking for $ac_func... " >&6; }
7134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7135 $as_echo_n "(cached) " >&6
7137 cat >conftest.$ac_ext <<_ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7145 #define $ac_func innocuous_$ac_func
7147 /* System header to define __stub macros and hopefully few prototypes,
7148 which can conflict with char $ac_func (); below.
7149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7150 <limits.h> exists even on freestanding compilers. */
7153 # include <limits.h>
7155 # include <assert.h>
7160 /* Override any GCC internal prototype to avoid an error.
7161 Use char because int might match the return type of a GCC
7162 builtin and then its argument prototype would still apply. */
7167 /* The GNU C library defines this for functions which it implements
7168 to always fail with ENOSYS. Some functions are actually named
7169 something starting with __ and the normal name is an alias. */
7170 #if defined __stub_$ac_func || defined __stub___$ac_func
7182 rm -f conftest.$ac_objext conftest$ac_exeext
7183 if { (ac_try="$ac_link"
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7189 $as_echo "$ac_try_echo") >&5
7190 (eval "$ac_link") 2>conftest.er1
7192 grep -v '^ *+' conftest.er1 >conftest.err
7194 cat conftest.err >&5
7195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } && {
7197 test -z "$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 } && test -s conftest$ac_exeext && {
7200 test "$cross_compiling" = yes ||
7201 $as_test_x conftest$ac_exeext
7203 eval "$as_ac_var=yes"
7205 $as_echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 eval "$as_ac_var=no"
7211 rm -rf conftest.dSYM
7212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7213 conftest$ac_exeext conftest.$ac_ext
7215 ac_res=`eval 'as_val=${'$as_ac_var'}
7216 $as_echo "$as_val"'`
7217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7218 $as_echo "$ac_res" >&6; }
7219 as_val=`eval 'as_val=${'$as_ac_var'}
7220 $as_echo "$as_val"'`
7221 if test "x$as_val" = x""yes; then
7222 cat >>confdefs.h <<_ACEOF
7223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7229 if test "x$haveselect" = "xyes" ; then
7233 AM_CONDITIONAL(SELECT_BACKEND, test "x$haveselect" = "xyes")
7239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7240 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7241 $as_echo_n "checking for $ac_func... " >&6; }
7242 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7243 $as_echo_n "(cached) " >&6
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7253 #define $ac_func innocuous_$ac_func
7255 /* System header to define __stub macros and hopefully few prototypes,
7256 which can conflict with char $ac_func (); below.
7257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7258 <limits.h> exists even on freestanding compilers. */
7261 # include <limits.h>
7263 # include <assert.h>
7268 /* Override any GCC internal prototype to avoid an error.
7269 Use char because int might match the return type of a GCC
7270 builtin and then its argument prototype would still apply. */
7275 /* The GNU C library defines this for functions which it implements
7276 to always fail with ENOSYS. Some functions are actually named
7277 something starting with __ and the normal name is an alias. */
7278 #if defined __stub_$ac_func || defined __stub___$ac_func
7290 rm -f conftest.$ac_objext conftest$ac_exeext
7291 if { (ac_try="$ac_link"
7293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7294 *) ac_try_echo=$ac_try;;
7296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7297 $as_echo "$ac_try_echo") >&5
7298 (eval "$ac_link") 2>conftest.er1
7300 grep -v '^ *+' conftest.er1 >conftest.err
7302 cat conftest.err >&5
7303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); } && {
7305 test -z "$ac_c_werror_flag" ||
7306 test ! -s conftest.err
7307 } && test -s conftest$ac_exeext && {
7308 test "$cross_compiling" = yes ||
7309 $as_test_x conftest$ac_exeext
7311 eval "$as_ac_var=yes"
7313 $as_echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 eval "$as_ac_var=no"
7319 rm -rf conftest.dSYM
7320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7321 conftest$ac_exeext conftest.$ac_ext
7323 ac_res=`eval 'as_val=${'$as_ac_var'}
7324 $as_echo "$as_val"'`
7325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7326 $as_echo "$ac_res" >&6; }
7327 as_val=`eval 'as_val=${'$as_ac_var'}
7328 $as_echo "$as_val"'`
7329 if test "x$as_val" = x""yes; then
7330 cat >>confdefs.h <<_ACEOF
7331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7337 if test "x$havepoll" = "xyes" ; then
7340 AM_CONDITIONAL(POLL_BACKEND, test "x$havepoll" = "xyes")
7343 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
7345 cat >>confdefs.h <<\_ACEOF
7346 #define HAVE_DEVPOLL 1
7350 AM_CONDITIONAL(DEVPOLL_BACKEND, test "x$ac_cv_header_sys_devpoll_h" = "xyes")
7353 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
7355 for ac_func in kqueue
7357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7358 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7359 $as_echo_n "checking for $ac_func... " >&6; }
7360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7361 $as_echo_n "(cached) " >&6
7363 cat >conftest.$ac_ext <<_ACEOF
7366 cat confdefs.h >>conftest.$ac_ext
7367 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */
7369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7371 #define $ac_func innocuous_$ac_func
7373 /* System header to define __stub macros and hopefully few prototypes,
7374 which can conflict with char $ac_func (); below.
7375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376 <limits.h> exists even on freestanding compilers. */
7379 # include <limits.h>
7381 # include <assert.h>
7386 /* Override any GCC internal prototype to avoid an error.
7387 Use char because int might match the return type of a GCC
7388 builtin and then its argument prototype would still apply. */
7393 /* The GNU C library defines this for functions which it implements
7394 to always fail with ENOSYS. Some functions are actually named
7395 something starting with __ and the normal name is an alias. */
7396 #if defined __stub_$ac_func || defined __stub___$ac_func
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (ac_try="$ac_link"
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415 $as_echo "$ac_try_echo") >&5
7416 (eval "$ac_link") 2>conftest.er1
7418 grep -v '^ *+' conftest.er1 >conftest.err
7420 cat conftest.err >&5
7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest$ac_exeext && {
7426 test "$cross_compiling" = yes ||
7427 $as_test_x conftest$ac_exeext
7429 eval "$as_ac_var=yes"
7431 $as_echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 eval "$as_ac_var=no"
7437 rm -rf conftest.dSYM
7438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439 conftest$ac_exeext conftest.$ac_ext
7441 ac_res=`eval 'as_val=${'$as_ac_var'}
7442 $as_echo "$as_val"'`
7443 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7444 $as_echo "$ac_res" >&6; }
7445 as_val=`eval 'as_val=${'$as_ac_var'}
7446 $as_echo "$as_val"'`
7447 if test "x$as_val" = x""yes; then
7448 cat >>confdefs.h <<_ACEOF
7449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7455 if test "x$havekqueue" = "xyes" ; then
7456 { $as_echo "$as_me:$LINENO: checking for working kqueue" >&5
7457 $as_echo_n "checking for working kqueue... " >&6; }
7458 if test "$cross_compiling" = yes; then
7459 { $as_echo "$as_me:$LINENO: result: no" >&5
7460 $as_echo "no" >&6; }
7462 cat >conftest.$ac_ext <<_ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7469 #include <sys/time.h>
7470 #include <sys/event.h>
7476 main(int argc, char **argv)
7487 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
7490 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
7493 if ((kq = kqueue()) == -1)
7496 memset(&ev, 0, sizeof(ev));
7498 ev.filter = EVFILT_WRITE;
7499 ev.flags = EV_ADD | EV_ENABLE;
7500 n = kevent(kq, &ev, 1, NULL, 0, NULL);
7504 read(fd[0], buf, sizeof(buf));
7508 n = kevent(kq, NULL, 0, &ev, 1, &ts);
7509 if (n == -1 || n == 0)
7515 rm -f conftest$ac_exeext
7516 if { (ac_try="$ac_link"
7518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519 *) ac_try_echo=$ac_try;;
7521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522 $as_echo "$ac_try_echo") >&5
7523 (eval "$ac_link") 2>&5
7525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7527 { (case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533 (eval "$ac_try") 2>&5
7535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 { $as_echo "$as_me:$LINENO: result: yes" >&5
7538 $as_echo "yes" >&6; }
7540 cat >>confdefs.h <<\_ACEOF
7541 #define HAVE_WORKING_KQUEUE 1
7547 $as_echo "$as_me: program exited with status $ac_status" >&5
7548 $as_echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7552 { $as_echo "$as_me:$LINENO: result: no" >&5
7553 $as_echo "no" >&6; }
7555 rm -rf conftest.dSYM
7556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7562 AM_CONDITIONAL(KQUEUE_BACKEND, test "x$havekqueue" = "xyes")
7567 for ac_func in epoll_ctl
7569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7570 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7571 $as_echo_n "checking for $ac_func... " >&6; }
7572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7573 $as_echo_n "(cached) " >&6
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7583 #define $ac_func innocuous_$ac_func
7585 /* System header to define __stub macros and hopefully few prototypes,
7586 which can conflict with char $ac_func (); below.
7587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7588 <limits.h> exists even on freestanding compilers. */
7591 # include <limits.h>
7593 # include <assert.h>
7598 /* Override any GCC internal prototype to avoid an error.
7599 Use char because int might match the return type of a GCC
7600 builtin and then its argument prototype would still apply. */
7605 /* The GNU C library defines this for functions which it implements
7606 to always fail with ENOSYS. Some functions are actually named
7607 something starting with __ and the normal name is an alias. */
7608 #if defined __stub_$ac_func || defined __stub___$ac_func
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628 (eval "$ac_link") 2>conftest.er1
7630 grep -v '^ *+' conftest.er1 >conftest.err
7632 cat conftest.err >&5
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest$ac_exeext && {
7638 test "$cross_compiling" = yes ||
7639 $as_test_x conftest$ac_exeext
7641 eval "$as_ac_var=yes"
7643 $as_echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 eval "$as_ac_var=no"
7649 rm -rf conftest.dSYM
7650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7651 conftest$ac_exeext conftest.$ac_ext
7653 ac_res=`eval 'as_val=${'$as_ac_var'}
7654 $as_echo "$as_val"'`
7655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7656 $as_echo "$ac_res" >&6; }
7657 as_val=`eval 'as_val=${'$as_ac_var'}
7658 $as_echo "$as_val"'`
7659 if test "x$as_val" = x""yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7667 if test "x$haveepoll" = "xyes" ; then
7669 cat >>confdefs.h <<\_ACEOF
7670 #define HAVE_EPOLL 1
7675 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7676 if test "x$haveepoll" = "xno" ; then
7677 { $as_echo "$as_me:$LINENO: checking for epoll system call" >&5
7678 $as_echo_n "checking for epoll system call... " >&6; }
7679 if test "$cross_compiling" = yes; then
7680 { $as_echo "$as_me:$LINENO: result: no" >&5
7681 $as_echo "no" >&6; }
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7690 #include <sys/param.h>
7691 #include <sys/types.h>
7692 #include <sys/syscall.h>
7693 #include <sys/epoll.h>
7697 epoll_create(int size)
7699 return (syscall(__NR_epoll_create, size));
7703 main(int argc, char **argv)
7707 epfd = epoll_create(256);
7708 exit (epfd == -1 ? 1 : 0);
7711 rm -f conftest$ac_exeext
7712 if { (ac_try="$ac_link"
7714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7715 *) ac_try_echo=$ac_try;;
7717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7718 $as_echo "$ac_try_echo") >&5
7719 (eval "$ac_link") 2>&5
7721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7723 { (case "(($ac_try" in
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7728 $as_echo "$ac_try_echo") >&5
7729 (eval "$ac_try") 2>&5
7731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 { $as_echo "$as_me:$LINENO: result: yes" >&5
7734 $as_echo "yes" >&6; }
7736 cat >>confdefs.h <<\_ACEOF
7737 #define HAVE_EPOLL 1
7742 case " $LIBOBJS " in
7743 *" epoll_sub.$ac_objext "* ) ;;
7744 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
7750 $as_echo "$as_me: program exited with status $ac_status" >&5
7751 $as_echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7755 { $as_echo "$as_me:$LINENO: result: no" >&5
7756 $as_echo "no" >&6; }
7758 rm -rf conftest.dSYM
7759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7765 AM_CONDITIONAL(EPOLL_BACKEND, test "x$haveepoll" = "xyes")
7769 for ac_func in port_create
7771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7772 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7773 $as_echo_n "checking for $ac_func... " >&6; }
7774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7775 $as_echo_n "(cached) " >&6
7777 cat >conftest.$ac_ext <<_ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7785 #define $ac_func innocuous_$ac_func
7787 /* System header to define __stub macros and hopefully few prototypes,
7788 which can conflict with char $ac_func (); below.
7789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7790 <limits.h> exists even on freestanding compilers. */
7793 # include <limits.h>
7795 # include <assert.h>
7800 /* Override any GCC internal prototype to avoid an error.
7801 Use char because int might match the return type of a GCC
7802 builtin and then its argument prototype would still apply. */
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined __stub_$ac_func || defined __stub___$ac_func
7822 rm -f conftest.$ac_objext conftest$ac_exeext
7823 if { (ac_try="$ac_link"
7825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7829 $as_echo "$ac_try_echo") >&5
7830 (eval "$ac_link") 2>conftest.er1
7832 grep -v '^ *+' conftest.er1 >conftest.err
7834 cat conftest.err >&5
7835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && {
7837 test -z "$ac_c_werror_flag" ||
7838 test ! -s conftest.err
7839 } && test -s conftest$ac_exeext && {
7840 test "$cross_compiling" = yes ||
7841 $as_test_x conftest$ac_exeext
7843 eval "$as_ac_var=yes"
7845 $as_echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 eval "$as_ac_var=no"
7851 rm -rf conftest.dSYM
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853 conftest$ac_exeext conftest.$ac_ext
7855 ac_res=`eval 'as_val=${'$as_ac_var'}
7856 $as_echo "$as_val"'`
7857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7858 $as_echo "$ac_res" >&6; }
7859 as_val=`eval 'as_val=${'$as_ac_var'}
7860 $as_echo "$as_val"'`
7861 if test "x$as_val" = x""yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7869 if test "x$haveeventports" = "xyes" ; then
7871 cat >>confdefs.h <<\_ACEOF
7872 #define HAVE_EVENT_PORTS 1
7877 AM_CONDITIONAL(EVPORT_BACKEND, test "x$haveeventports" = "xyes")
7879 if test "x$bwin32" = "xtrue"; then
7883 AM_CONDITIONAL(SIGNAL_SUPPORT, test "x$needsignal" = "xyes")
7885 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7886 $as_echo_n "checking for pid_t... " >&6; }
7887 if test "${ac_cv_type_pid_t+set}" = set; then
7888 $as_echo_n "(cached) " >&6
7891 cat >conftest.$ac_ext <<_ACEOF
7894 cat confdefs.h >>conftest.$ac_ext
7895 cat >>conftest.$ac_ext <<_ACEOF
7896 /* end confdefs.h. */
7897 $ac_includes_default
7907 rm -f conftest.$ac_objext
7908 if { (ac_try="$ac_compile"
7910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7911 *) ac_try_echo=$ac_try;;
7913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7914 $as_echo "$ac_try_echo") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7917 grep -v '^ *+' conftest.er1 >conftest.err
7919 cat conftest.err >&5
7920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 cat >conftest.$ac_ext <<_ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7935 if (sizeof ((pid_t)))
7941 rm -f conftest.$ac_objext
7942 if { (ac_try="$ac_compile"
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7948 $as_echo "$ac_try_echo") >&5
7949 (eval "$ac_compile") 2>conftest.er1
7951 grep -v '^ *+' conftest.er1 >conftest.err
7953 cat conftest.err >&5
7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
7961 $as_echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_cv_type_pid_t=yes
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 $as_echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7978 $as_echo "$ac_cv_type_pid_t" >&6; }
7979 if test "x$ac_cv_type_pid_t" = x""yes; then
7983 cat >>confdefs.h <<_ACEOF
7989 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
7990 $as_echo_n "checking for size_t... " >&6; }
7991 if test "${ac_cv_type_size_t+set}" = set; then
7992 $as_echo_n "(cached) " >&6
7994 ac_cv_type_size_t=no
7995 cat >conftest.$ac_ext <<_ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 $ac_includes_default
8005 if (sizeof (size_t))
8011 rm -f conftest.$ac_objext
8012 if { (ac_try="$ac_compile"
8014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015 *) ac_try_echo=$ac_try;;
8017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8018 $as_echo "$ac_try_echo") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 cat >conftest.$ac_ext <<_ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8039 if (sizeof ((size_t)))
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8052 $as_echo "$ac_try_echo") >&5
8053 (eval "$ac_compile") 2>conftest.er1
8055 grep -v '^ *+' conftest.er1 >conftest.err
8057 cat conftest.err >&5
8058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } && {
8060 test -z "$ac_c_werror_flag" ||
8061 test ! -s conftest.err
8062 } && test -s conftest.$ac_objext; then
8065 $as_echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8068 ac_cv_type_size_t=yes
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 $as_echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8082 $as_echo "$ac_cv_type_size_t" >&6; }
8083 if test "x$ac_cv_type_size_t" = x""yes; then
8087 cat >>confdefs.h <<_ACEOF
8088 #define size_t unsigned int
8093 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8094 $as_echo_n "checking for ssize_t... " >&6; }
8095 if test "${ac_cv_type_ssize_t+set}" = set; then
8096 $as_echo_n "(cached) " >&6
8098 ac_cv_type_ssize_t=no
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
8109 if (sizeof (ssize_t))
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8122 $as_echo "$ac_try_echo") >&5
8123 (eval "$ac_compile") 2>conftest.er1
8125 grep -v '^ *+' conftest.er1 >conftest.err
8127 cat conftest.err >&5
8128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest.$ac_objext; then
8133 cat >conftest.$ac_ext <<_ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 $ac_includes_default
8143 if (sizeof ((ssize_t)))
8149 rm -f conftest.$ac_objext
8150 if { (ac_try="$ac_compile"
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156 $as_echo "$ac_try_echo") >&5
8157 (eval "$ac_compile") 2>conftest.er1
8159 grep -v '^ *+' conftest.er1 >conftest.err
8161 cat conftest.err >&5
8162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); } && {
8164 test -z "$ac_c_werror_flag" ||
8165 test ! -s conftest.err
8166 } && test -s conftest.$ac_objext; then
8169 $as_echo "$as_me: failed program was:" >&5
8170 sed 's/^/| /' conftest.$ac_ext >&5
8172 ac_cv_type_ssize_t=yes
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 $as_echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8186 $as_echo "$ac_cv_type_ssize_t" >&6; }
8187 if test "x$ac_cv_type_ssize_t" = x""yes; then
8191 cat >>confdefs.h <<_ACEOF
8198 { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
8199 $as_echo_n "checking for uint64_t... " >&6; }
8200 if test "${ac_cv_type_uint64_t+set}" = set; then
8201 $as_echo_n "(cached) " >&6
8203 ac_cv_type_uint64_t=no
8204 cat >conftest.$ac_ext <<_ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 #ifdef HAVE_STDINT_H
8212 #elif defined(HAVE_INTTYPES_H)
8213 #include <inttypes.h>
8215 #ifdef HAVE_SYS_TYPES_H
8216 #include <sys/types.h>
8222 if (sizeof (uint64_t))
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8235 $as_echo "$ac_try_echo") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 cat >conftest.$ac_ext <<_ACEOF
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 #ifdef HAVE_STDINT_H
8254 #elif defined(HAVE_INTTYPES_H)
8255 #include <inttypes.h>
8257 #ifdef HAVE_SYS_TYPES_H
8258 #include <sys/types.h>
8264 if (sizeof ((uint64_t)))
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8277 $as_echo "$ac_try_echo") >&5
8278 (eval "$ac_compile") 2>conftest.er1
8280 grep -v '^ *+' conftest.er1 >conftest.err
8282 cat conftest.err >&5
8283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } && {
8285 test -z "$ac_c_werror_flag" ||
8286 test ! -s conftest.err
8287 } && test -s conftest.$ac_objext; then
8290 $as_echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8293 ac_cv_type_uint64_t=yes
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8298 $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
8307 $as_echo "$ac_cv_type_uint64_t" >&6; }
8308 if test "x$ac_cv_type_uint64_t" = x""yes; then
8310 cat >>confdefs.h <<_ACEOF
8311 #define HAVE_UINT64_T 1
8316 { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8317 $as_echo_n "checking for uint32_t... " >&6; }
8318 if test "${ac_cv_type_uint32_t+set}" = set; then
8319 $as_echo_n "(cached) " >&6
8321 ac_cv_type_uint32_t=no
8322 cat >conftest.$ac_ext <<_ACEOF
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8328 #ifdef HAVE_STDINT_H
8330 #elif defined(HAVE_INTTYPES_H)
8331 #include <inttypes.h>
8333 #ifdef HAVE_SYS_TYPES_H
8334 #include <sys/types.h>
8340 if (sizeof (uint32_t))
8346 rm -f conftest.$ac_objext
8347 if { (ac_try="$ac_compile"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8353 $as_echo "$ac_try_echo") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 #ifdef HAVE_STDINT_H
8372 #elif defined(HAVE_INTTYPES_H)
8373 #include <inttypes.h>
8375 #ifdef HAVE_SYS_TYPES_H
8376 #include <sys/types.h>
8382 if (sizeof ((uint32_t)))
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8395 $as_echo "$ac_try_echo") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8408 $as_echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 ac_cv_type_uint32_t=yes
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 $as_echo "$as_me: failed program was:" >&5
8417 sed 's/^/| /' conftest.$ac_ext >&5
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8425 $as_echo "$ac_cv_type_uint32_t" >&6; }
8426 if test "x$ac_cv_type_uint32_t" = x""yes; then
8428 cat >>confdefs.h <<_ACEOF
8429 #define HAVE_UINT32_T 1
8434 { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
8435 $as_echo_n "checking for uint16_t... " >&6; }
8436 if test "${ac_cv_type_uint16_t+set}" = set; then
8437 $as_echo_n "(cached) " >&6
8439 ac_cv_type_uint16_t=no
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 #ifdef HAVE_STDINT_H
8448 #elif defined(HAVE_INTTYPES_H)
8449 #include <inttypes.h>
8451 #ifdef HAVE_SYS_TYPES_H
8452 #include <sys/types.h>
8458 if (sizeof (uint16_t))
8464 rm -f conftest.$ac_objext
8465 if { (ac_try="$ac_compile"
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8471 $as_echo "$ac_try_echo") >&5
8472 (eval "$ac_compile") 2>conftest.er1
8474 grep -v '^ *+' conftest.er1 >conftest.err
8476 cat conftest.err >&5
8477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } && {
8479 test -z "$ac_c_werror_flag" ||
8480 test ! -s conftest.err
8481 } && test -s conftest.$ac_objext; then
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 #ifdef HAVE_STDINT_H
8490 #elif defined(HAVE_INTTYPES_H)
8491 #include <inttypes.h>
8493 #ifdef HAVE_SYS_TYPES_H
8494 #include <sys/types.h>
8500 if (sizeof ((uint16_t)))
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8513 $as_echo "$ac_try_echo") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8526 $as_echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 ac_cv_type_uint16_t=yes
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8542 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8543 $as_echo "$ac_cv_type_uint16_t" >&6; }
8544 if test "x$ac_cv_type_uint16_t" = x""yes; then
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_UINT16_T 1
8552 { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
8553 $as_echo_n "checking for uint8_t... " >&6; }
8554 if test "${ac_cv_type_uint8_t+set}" = set; then
8555 $as_echo_n "(cached) " >&6
8557 ac_cv_type_uint8_t=no
8558 cat >conftest.$ac_ext <<_ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 #ifdef HAVE_STDINT_H
8566 #elif defined(HAVE_INTTYPES_H)
8567 #include <inttypes.h>
8569 #ifdef HAVE_SYS_TYPES_H
8570 #include <sys/types.h>
8576 if (sizeof (uint8_t))
8582 rm -f conftest.$ac_objext
8583 if { (ac_try="$ac_compile"
8585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8586 *) ac_try_echo=$ac_try;;
8588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8589 $as_echo "$ac_try_echo") >&5
8590 (eval "$ac_compile") 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } && {
8597 test -z "$ac_c_werror_flag" ||
8598 test ! -s conftest.err
8599 } && test -s conftest.$ac_objext; then
8600 cat >conftest.$ac_ext <<_ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 #ifdef HAVE_STDINT_H
8608 #elif defined(HAVE_INTTYPES_H)
8609 #include <inttypes.h>
8611 #ifdef HAVE_SYS_TYPES_H
8612 #include <sys/types.h>
8618 if (sizeof ((uint8_t)))
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632 (eval "$ac_compile") 2>conftest.er1
8634 grep -v '^ *+' conftest.er1 >conftest.err
8636 cat conftest.err >&5
8637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } && {
8639 test -z "$ac_c_werror_flag" ||
8640 test ! -s conftest.err
8641 } && test -s conftest.$ac_objext; then
8644 $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8647 ac_cv_type_uint8_t=yes
8650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 $as_echo "$as_me: failed program was:" >&5
8653 sed 's/^/| /' conftest.$ac_ext >&5
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
8661 $as_echo "$ac_cv_type_uint8_t" >&6; }
8662 if test "x$ac_cv_type_uint8_t" = x""yes; then
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_UINT8_T 1
8670 { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
8671 $as_echo_n "checking for uintptr_t... " >&6; }
8672 if test "${ac_cv_type_uintptr_t+set}" = set; then
8673 $as_echo_n "(cached) " >&6
8675 ac_cv_type_uintptr_t=no
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 #ifdef HAVE_STDINT_H
8684 #elif defined(HAVE_INTTYPES_H)
8685 #include <inttypes.h>
8687 #ifdef HAVE_SYS_TYPES_H
8688 #include <sys/types.h>
8694 if (sizeof (uintptr_t))
8700 rm -f conftest.$ac_objext
8701 if { (ac_try="$ac_compile"
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8707 $as_echo "$ac_try_echo") >&5
8708 (eval "$ac_compile") 2>conftest.er1
8710 grep -v '^ *+' conftest.er1 >conftest.err
8712 cat conftest.err >&5
8713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && {
8715 test -z "$ac_c_werror_flag" ||
8716 test ! -s conftest.err
8717 } && test -s conftest.$ac_objext; then
8718 cat >conftest.$ac_ext <<_ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8724 #ifdef HAVE_STDINT_H
8726 #elif defined(HAVE_INTTYPES_H)
8727 #include <inttypes.h>
8729 #ifdef HAVE_SYS_TYPES_H
8730 #include <sys/types.h>
8736 if (sizeof ((uintptr_t)))
8742 rm -f conftest.$ac_objext
8743 if { (ac_try="$ac_compile"
8745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8746 *) ac_try_echo=$ac_try;;
8748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8749 $as_echo "$ac_try_echo") >&5
8750 (eval "$ac_compile") 2>conftest.er1
8752 grep -v '^ *+' conftest.er1 >conftest.err
8754 cat conftest.err >&5
8755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } && {
8757 test -z "$ac_c_werror_flag" ||
8758 test ! -s conftest.err
8759 } && test -s conftest.$ac_objext; then
8762 $as_echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 ac_cv_type_uintptr_t=yes
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8778 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8779 $as_echo "$ac_cv_type_uintptr_t" >&6; }
8780 if test "x$ac_cv_type_uintptr_t" = x""yes; then
8782 cat >>confdefs.h <<_ACEOF
8783 #define HAVE_UINTPTR_T 1
8790 { $as_echo "$as_me:$LINENO: checking for fd_mask" >&5
8791 $as_echo_n "checking for fd_mask... " >&6; }
8792 if test "${ac_cv_type_fd_mask+set}" = set; then
8793 $as_echo_n "(cached) " >&6
8795 ac_cv_type_fd_mask=no
8796 cat >conftest.$ac_ext <<_ACEOF
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 #ifdef HAVE_SYS_TYPES_H
8803 #include <sys/types.h>
8805 #ifdef HAVE_SYS_SELECT_H
8806 #include <sys/select.h>
8812 if (sizeof (fd_mask))
8818 rm -f conftest.$ac_objext
8819 if { (ac_try="$ac_compile"
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_compile") 2>conftest.er1
8828 grep -v '^ *+' conftest.er1 >conftest.err
8830 cat conftest.err >&5
8831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); } && {
8833 test -z "$ac_c_werror_flag" ||
8834 test ! -s conftest.err
8835 } && test -s conftest.$ac_objext; then
8836 cat >conftest.$ac_ext <<_ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8842 #ifdef HAVE_SYS_TYPES_H
8843 #include <sys/types.h>
8845 #ifdef HAVE_SYS_SELECT_H
8846 #include <sys/select.h>
8852 if (sizeof ((fd_mask)))
8858 rm -f conftest.$ac_objext
8859 if { (ac_try="$ac_compile"
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8865 $as_echo "$ac_try_echo") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8868 grep -v '^ *+' conftest.er1 >conftest.err
8870 cat conftest.err >&5
8871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_c_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8878 $as_echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8881 ac_cv_type_fd_mask=yes
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8886 $as_echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
8895 $as_echo "$ac_cv_type_fd_mask" >&6; }
8896 if test "x$ac_cv_type_fd_mask" = x""yes; then
8898 cat >>confdefs.h <<_ACEOF
8899 #define HAVE_FD_MASK 1
8906 # The cast to long int works around a bug in the HP C Compiler
8907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8909 # This bug is HP SR number 8606223364.
8910 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
8911 $as_echo_n "checking size of long long... " >&6; }
8912 if test "${ac_cv_sizeof_long_long+set}" = set; then
8913 $as_echo_n "(cached) " >&6
8915 if test "$cross_compiling" = yes; then
8916 # Depending upon the size, compute the lo and hi bounds.
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8923 $ac_includes_default
8927 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
8934 rm -f conftest.$ac_objext
8935 if { (ac_try="$ac_compile"
8937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8941 $as_echo "$ac_try_echo") >&5
8942 (eval "$ac_compile") 2>conftest.er1
8944 grep -v '^ *+' conftest.er1 >conftest.err
8946 cat conftest.err >&5
8947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } && {
8949 test -z "$ac_c_werror_flag" ||
8950 test ! -s conftest.err
8951 } && test -s conftest.$ac_objext; then
8954 cat >conftest.$ac_ext <<_ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 $ac_includes_default
8964 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
8971 rm -f conftest.$ac_objext
8972 if { (ac_try="$ac_compile"
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8978 $as_echo "$ac_try_echo") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1 >conftest.err
8983 cat conftest.err >&5
8984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
8989 ac_hi=$ac_mid; break
8991 $as_echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_lo=`expr $ac_mid + 1`
8995 if test $ac_lo -le $ac_mid; then
8999 ac_mid=`expr 2 '*' $ac_mid + 1`
9002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9005 $as_echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9008 cat >conftest.$ac_ext <<_ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9018 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9032 $as_echo "$ac_try_echo") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9035 grep -v '^ *+' conftest.er1 >conftest.err
9037 cat conftest.err >&5
9038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9045 cat >conftest.$ac_ext <<_ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 $ac_includes_default
9055 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9069 $as_echo "$ac_try_echo") >&5
9070 (eval "$ac_compile") 2>conftest.er1
9072 grep -v '^ *+' conftest.er1 >conftest.err
9074 cat conftest.err >&5
9075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } && {
9077 test -z "$ac_c_werror_flag" ||
9078 test ! -s conftest.err
9079 } && test -s conftest.$ac_objext; then
9080 ac_lo=$ac_mid; break
9082 $as_echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9085 ac_hi=`expr '(' $ac_mid ')' - 1`
9086 if test $ac_mid -le $ac_hi; then
9090 ac_mid=`expr 2 '*' $ac_mid`
9093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9096 $as_echo "$as_me: failed program was:" >&5
9097 sed 's/^/| /' conftest.$ac_ext >&5
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 # Binary search between lo and hi bounds.
9107 while test "x$ac_lo" != "x$ac_hi"; do
9108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9109 cat >conftest.$ac_ext <<_ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h. */
9115 $ac_includes_default
9119 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
9126 rm -f conftest.$ac_objext
9127 if { (ac_try="$ac_compile"
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9133 $as_echo "$ac_try_echo") >&5
9134 (eval "$ac_compile") 2>conftest.er1
9136 grep -v '^ *+' conftest.er1 >conftest.err
9138 cat conftest.err >&5
9139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } && {
9141 test -z "$ac_c_werror_flag" ||
9142 test ! -s conftest.err
9143 } && test -s conftest.$ac_objext; then
9146 $as_echo "$as_me: failed program was:" >&5
9147 sed 's/^/| /' conftest.$ac_ext >&5
9149 ac_lo=`expr '(' $ac_mid ')' + 1`
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 ?*) ac_cv_sizeof_long_long=$ac_lo;;
9156 '') if test "$ac_cv_type_long_long" = yes; then
9157 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9159 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9160 See \`config.log' for more details." >&5
9161 $as_echo "$as_me: error: cannot compute sizeof (long long)
9162 See \`config.log' for more details." >&2;}
9163 { (exit 77); exit 77; }; }; }
9165 ac_cv_sizeof_long_long=0
9169 cat >conftest.$ac_ext <<_ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 static long int longval () { return (long int) (sizeof (long long)); }
9177 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
9184 FILE *f = fopen ("conftest.val", "w");
9187 if (((long int) (sizeof (long long))) < 0)
9189 long int i = longval ();
9190 if (i != ((long int) (sizeof (long long))))
9192 fprintf (f, "%ld", i);
9196 unsigned long int i = ulongval ();
9197 if (i != ((long int) (sizeof (long long))))
9199 fprintf (f, "%lu", i);
9201 /* Do not output a trailing newline, as this causes \r\n confusion
9202 on some platforms. */
9203 return ferror (f) || fclose (f) != 0;
9209 rm -f conftest$ac_exeext
9210 if { (ac_try="$ac_link"
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9216 $as_echo "$ac_try_echo") >&5
9217 (eval "$ac_link") 2>&5
9219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9221 { (case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9226 $as_echo "$ac_try_echo") >&5
9227 (eval "$ac_try") 2>&5
9229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; }; then
9231 ac_cv_sizeof_long_long=`cat conftest.val`
9233 $as_echo "$as_me: program exited with status $ac_status" >&5
9234 $as_echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9238 if test "$ac_cv_type_long_long" = yes; then
9239 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9241 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9242 See \`config.log' for more details." >&5
9243 $as_echo "$as_me: error: cannot compute sizeof (long long)
9244 See \`config.log' for more details." >&2;}
9245 { (exit 77); exit 77; }; }; }
9247 ac_cv_sizeof_long_long=0
9250 rm -rf conftest.dSYM
9251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9255 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9256 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9260 cat >>confdefs.h <<_ACEOF
9261 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9265 # The cast to long int works around a bug in the HP C Compiler
9266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9268 # This bug is HP SR number 8606223364.
9269 { $as_echo "$as_me:$LINENO: checking size of long" >&5
9270 $as_echo_n "checking size of long... " >&6; }
9271 if test "${ac_cv_sizeof_long+set}" = set; then
9272 $as_echo_n "(cached) " >&6
9274 if test "$cross_compiling" = yes; then
9275 # Depending upon the size, compute the lo and hi bounds.
9276 cat >conftest.$ac_ext <<_ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282 $ac_includes_default
9286 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
9293 rm -f conftest.$ac_objext
9294 if { (ac_try="$ac_compile"
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9300 $as_echo "$ac_try_echo") >&5
9301 (eval "$ac_compile") 2>conftest.er1
9303 grep -v '^ *+' conftest.er1 >conftest.err
9305 cat conftest.err >&5
9306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } && {
9308 test -z "$ac_c_werror_flag" ||
9309 test ! -s conftest.err
9310 } && test -s conftest.$ac_objext; then
9313 cat >conftest.$ac_ext <<_ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9319 $ac_includes_default
9323 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334 *) ac_try_echo=$ac_try;;
9336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9337 $as_echo "$ac_try_echo") >&5
9338 (eval "$ac_compile") 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest.$ac_objext; then
9348 ac_hi=$ac_mid; break
9350 $as_echo "$as_me: failed program was:" >&5
9351 sed 's/^/| /' conftest.$ac_ext >&5
9353 ac_lo=`expr $ac_mid + 1`
9354 if test $ac_lo -le $ac_mid; then
9358 ac_mid=`expr 2 '*' $ac_mid + 1`
9361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 $as_echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 cat >conftest.$ac_ext <<_ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 $ac_includes_default
9377 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
9384 rm -f conftest.$ac_objext
9385 if { (ac_try="$ac_compile"
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9391 $as_echo "$ac_try_echo") >&5
9392 (eval "$ac_compile") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1 >conftest.err
9396 cat conftest.err >&5
9397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest.$ac_objext; then
9404 cat >conftest.$ac_ext <<_ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h. */
9410 $ac_includes_default
9414 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
9421 rm -f conftest.$ac_objext
9422 if { (ac_try="$ac_compile"
9424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425 *) ac_try_echo=$ac_try;;
9427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9428 $as_echo "$ac_try_echo") >&5
9429 (eval "$ac_compile") 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } && {
9436 test -z "$ac_c_werror_flag" ||
9437 test ! -s conftest.err
9438 } && test -s conftest.$ac_objext; then
9439 ac_lo=$ac_mid; break
9441 $as_echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9444 ac_hi=`expr '(' $ac_mid ')' - 1`
9445 if test $ac_mid -le $ac_hi; then
9449 ac_mid=`expr 2 '*' $ac_mid`
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9455 $as_echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 # Binary search between lo and hi bounds.
9466 while test "x$ac_lo" != "x$ac_hi"; do
9467 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9468 cat >conftest.$ac_ext <<_ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h. */
9474 $ac_includes_default
9478 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
9485 rm -f conftest.$ac_objext
9486 if { (ac_try="$ac_compile"
9488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489 *) ac_try_echo=$ac_try;;
9491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9492 $as_echo "$ac_try_echo") >&5
9493 (eval "$ac_compile") 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } && {
9500 test -z "$ac_c_werror_flag" ||
9501 test ! -s conftest.err
9502 } && test -s conftest.$ac_objext; then
9505 $as_echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_lo=`expr '(' $ac_mid ')' + 1`
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9514 ?*) ac_cv_sizeof_long=$ac_lo;;
9515 '') if test "$ac_cv_type_long" = yes; then
9516 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9517 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9518 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9519 See \`config.log' for more details." >&5
9520 $as_echo "$as_me: error: cannot compute sizeof (long)
9521 See \`config.log' for more details." >&2;}
9522 { (exit 77); exit 77; }; }; }
9528 cat >conftest.$ac_ext <<_ACEOF
9531 cat confdefs.h >>conftest.$ac_ext
9532 cat >>conftest.$ac_ext <<_ACEOF
9533 /* end confdefs.h. */
9534 $ac_includes_default
9535 static long int longval () { return (long int) (sizeof (long)); }
9536 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
9543 FILE *f = fopen ("conftest.val", "w");
9546 if (((long int) (sizeof (long))) < 0)
9548 long int i = longval ();
9549 if (i != ((long int) (sizeof (long))))
9551 fprintf (f, "%ld", i);
9555 unsigned long int i = ulongval ();
9556 if (i != ((long int) (sizeof (long))))
9558 fprintf (f, "%lu", i);
9560 /* Do not output a trailing newline, as this causes \r\n confusion
9561 on some platforms. */
9562 return ferror (f) || fclose (f) != 0;
9568 rm -f conftest$ac_exeext
9569 if { (ac_try="$ac_link"
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9575 $as_echo "$ac_try_echo") >&5
9576 (eval "$ac_link") 2>&5
9578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9580 { (case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9585 $as_echo "$ac_try_echo") >&5
9586 (eval "$ac_try") 2>&5
9588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); }; }; then
9590 ac_cv_sizeof_long=`cat conftest.val`
9592 $as_echo "$as_me: program exited with status $ac_status" >&5
9593 $as_echo "$as_me: failed program was:" >&5
9594 sed 's/^/| /' conftest.$ac_ext >&5
9597 if test "$ac_cv_type_long" = yes; then
9598 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9600 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
9601 See \`config.log' for more details." >&5
9602 $as_echo "$as_me: error: cannot compute sizeof (long)
9603 See \`config.log' for more details." >&2;}
9604 { (exit 77); exit 77; }; }; }
9609 rm -rf conftest.dSYM
9610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9614 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
9615 $as_echo "$ac_cv_sizeof_long" >&6; }
9619 cat >>confdefs.h <<_ACEOF
9620 #define SIZEOF_LONG $ac_cv_sizeof_long
9624 # The cast to long int works around a bug in the HP C Compiler
9625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9627 # This bug is HP SR number 8606223364.
9628 { $as_echo "$as_me:$LINENO: checking size of int" >&5
9629 $as_echo_n "checking size of int... " >&6; }
9630 if test "${ac_cv_sizeof_int+set}" = set; then
9631 $as_echo_n "(cached) " >&6
9633 if test "$cross_compiling" = yes; then
9634 # Depending upon the size, compute the lo and hi bounds.
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9641 $ac_includes_default
9645 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
9652 rm -f conftest.$ac_objext
9653 if { (ac_try="$ac_compile"
9655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656 *) ac_try_echo=$ac_try;;
9658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9659 $as_echo "$ac_try_echo") >&5
9660 (eval "$ac_compile") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest.$ac_objext; then
9672 cat >conftest.$ac_ext <<_ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 $ac_includes_default
9682 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
9689 rm -f conftest.$ac_objext
9690 if { (ac_try="$ac_compile"
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9696 $as_echo "$ac_try_echo") >&5
9697 (eval "$ac_compile") 2>conftest.er1
9699 grep -v '^ *+' conftest.er1 >conftest.err
9701 cat conftest.err >&5
9702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest.$ac_objext; then
9707 ac_hi=$ac_mid; break
9709 $as_echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9712 ac_lo=`expr $ac_mid + 1`
9713 if test $ac_lo -le $ac_mid; then
9717 ac_mid=`expr 2 '*' $ac_mid + 1`
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $ac_includes_default
9736 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
9743 rm -f conftest.$ac_objext
9744 if { (ac_try="$ac_compile"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750 $as_echo "$ac_try_echo") >&5
9751 (eval "$ac_compile") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } && {
9758 test -z "$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9760 } && test -s conftest.$ac_objext; then
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 $ac_includes_default
9773 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
9780 rm -f conftest.$ac_objext
9781 if { (ac_try="$ac_compile"
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9787 $as_echo "$ac_try_echo") >&5
9788 (eval "$ac_compile") 2>conftest.er1
9790 grep -v '^ *+' conftest.er1 >conftest.err
9792 cat conftest.err >&5
9793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } && {
9795 test -z "$ac_c_werror_flag" ||
9796 test ! -s conftest.err
9797 } && test -s conftest.$ac_objext; then
9798 ac_lo=$ac_mid; break
9800 $as_echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 ac_hi=`expr '(' $ac_mid ')' - 1`
9804 if test $ac_mid -le $ac_hi; then
9808 ac_mid=`expr 2 '*' $ac_mid`
9811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9814 $as_echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9824 # Binary search between lo and hi bounds.
9825 while test "x$ac_lo" != "x$ac_hi"; do
9826 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9827 cat >conftest.$ac_ext <<_ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h. */
9833 $ac_includes_default
9837 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
9844 rm -f conftest.$ac_objext
9845 if { (ac_try="$ac_compile"
9847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848 *) ac_try_echo=$ac_try;;
9850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9851 $as_echo "$ac_try_echo") >&5
9852 (eval "$ac_compile") 2>conftest.er1
9854 grep -v '^ *+' conftest.er1 >conftest.err
9856 cat conftest.err >&5
9857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); } && {
9859 test -z "$ac_c_werror_flag" ||
9860 test ! -s conftest.err
9861 } && test -s conftest.$ac_objext; then
9864 $as_echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_lo=`expr '(' $ac_mid ')' + 1`
9870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 ?*) ac_cv_sizeof_int=$ac_lo;;
9874 '') if test "$ac_cv_type_int" = yes; then
9875 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9877 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9878 See \`config.log' for more details." >&5
9879 $as_echo "$as_me: error: cannot compute sizeof (int)
9880 See \`config.log' for more details." >&2;}
9881 { (exit 77); exit 77; }; }; }
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 $ac_includes_default
9894 static long int longval () { return (long int) (sizeof (int)); }
9895 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
9902 FILE *f = fopen ("conftest.val", "w");
9905 if (((long int) (sizeof (int))) < 0)
9907 long int i = longval ();
9908 if (i != ((long int) (sizeof (int))))
9910 fprintf (f, "%ld", i);
9914 unsigned long int i = ulongval ();
9915 if (i != ((long int) (sizeof (int))))
9917 fprintf (f, "%lu", i);
9919 /* Do not output a trailing newline, as this causes \r\n confusion
9920 on some platforms. */
9921 return ferror (f) || fclose (f) != 0;
9927 rm -f conftest$ac_exeext
9928 if { (ac_try="$ac_link"
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9934 $as_echo "$ac_try_echo") >&5
9935 (eval "$ac_link") 2>&5
9937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9939 { (case "(($ac_try" in
9940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9941 *) ac_try_echo=$ac_try;;
9943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9944 $as_echo "$ac_try_echo") >&5
9945 (eval "$ac_try") 2>&5
9947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_sizeof_int=`cat conftest.val`
9951 $as_echo "$as_me: program exited with status $ac_status" >&5
9952 $as_echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9956 if test "$ac_cv_type_int" = yes; then
9957 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9959 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9960 See \`config.log' for more details." >&5
9961 $as_echo "$as_me: error: cannot compute sizeof (int)
9962 See \`config.log' for more details." >&2;}
9963 { (exit 77); exit 77; }; }; }
9968 rm -rf conftest.dSYM
9969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9973 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9974 $as_echo "$ac_cv_sizeof_int" >&6; }
9978 cat >>confdefs.h <<_ACEOF
9979 #define SIZEOF_INT $ac_cv_sizeof_int
9983 # The cast to long int works around a bug in the HP C Compiler
9984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9986 # This bug is HP SR number 8606223364.
9987 { $as_echo "$as_me:$LINENO: checking size of short" >&5
9988 $as_echo_n "checking size of short... " >&6; }
9989 if test "${ac_cv_sizeof_short+set}" = set; then
9990 $as_echo_n "(cached) " >&6
9992 if test "$cross_compiling" = yes; then
9993 # Depending upon the size, compute the lo and hi bounds.
9994 cat >conftest.$ac_ext <<_ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 $ac_includes_default
10004 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
10011 rm -f conftest.$ac_objext
10012 if { (ac_try="$ac_compile"
10013 case "(($ac_try" in
10014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015 *) ac_try_echo=$ac_try;;
10017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10018 $as_echo "$ac_try_echo") >&5
10019 (eval "$ac_compile") 2>conftest.er1
10021 grep -v '^ *+' conftest.er1 >conftest.err
10023 cat conftest.err >&5
10024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } && {
10026 test -z "$ac_c_werror_flag" ||
10027 test ! -s conftest.err
10028 } && test -s conftest.$ac_objext; then
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 $ac_includes_default
10041 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052 *) ac_try_echo=$ac_try;;
10054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10055 $as_echo "$ac_try_echo") >&5
10056 (eval "$ac_compile") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1 >conftest.err
10060 cat conftest.err >&5
10061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest.$ac_objext; then
10066 ac_hi=$ac_mid; break
10068 $as_echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 ac_lo=`expr $ac_mid + 1`
10072 if test $ac_lo -le $ac_mid; then
10076 ac_mid=`expr 2 '*' $ac_mid + 1`
10079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082 $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 cat >conftest.$ac_ext <<_ACEOF
10088 cat confdefs.h >>conftest.$ac_ext
10089 cat >>conftest.$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10091 $ac_includes_default
10095 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
10102 rm -f conftest.$ac_objext
10103 if { (ac_try="$ac_compile"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10109 $as_echo "$ac_try_echo") >&5
10110 (eval "$ac_compile") 2>conftest.er1
10112 grep -v '^ *+' conftest.er1 >conftest.err
10114 cat conftest.err >&5
10115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest.$ac_objext; then
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10132 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
10139 rm -f conftest.$ac_objext
10140 if { (ac_try="$ac_compile"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10146 $as_echo "$ac_try_echo") >&5
10147 (eval "$ac_compile") 2>conftest.er1
10149 grep -v '^ *+' conftest.er1 >conftest.err
10151 cat conftest.err >&5
10152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } && {
10154 test -z "$ac_c_werror_flag" ||
10155 test ! -s conftest.err
10156 } && test -s conftest.$ac_objext; then
10157 ac_lo=$ac_mid; break
10159 $as_echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ac_hi=`expr '(' $ac_mid ')' - 1`
10163 if test $ac_mid -le $ac_hi; then
10167 ac_mid=`expr 2 '*' $ac_mid`
10170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10173 $as_echo "$as_me: failed program was:" >&5
10174 sed 's/^/| /' conftest.$ac_ext >&5
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10183 # Binary search between lo and hi bounds.
10184 while test "x$ac_lo" != "x$ac_hi"; do
10185 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10186 cat >conftest.$ac_ext <<_ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192 $ac_includes_default
10196 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
10203 rm -f conftest.$ac_objext
10204 if { (ac_try="$ac_compile"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10210 $as_echo "$ac_try_echo") >&5
10211 (eval "$ac_compile") 2>conftest.er1
10213 grep -v '^ *+' conftest.er1 >conftest.err
10215 cat conftest.err >&5
10216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && {
10218 test -z "$ac_c_werror_flag" ||
10219 test ! -s conftest.err
10220 } && test -s conftest.$ac_objext; then
10223 $as_echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_lo=`expr '(' $ac_mid ')' + 1`
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 ?*) ac_cv_sizeof_short=$ac_lo;;
10233 '') if test "$ac_cv_type_short" = yes; then
10234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10236 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10237 See \`config.log' for more details." >&5
10238 $as_echo "$as_me: error: cannot compute sizeof (short)
10239 See \`config.log' for more details." >&2;}
10240 { (exit 77); exit 77; }; }; }
10242 ac_cv_sizeof_short=0
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 $ac_includes_default
10253 static long int longval () { return (long int) (sizeof (short)); }
10254 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
10256 #include <stdlib.h>
10261 FILE *f = fopen ("conftest.val", "w");
10264 if (((long int) (sizeof (short))) < 0)
10266 long int i = longval ();
10267 if (i != ((long int) (sizeof (short))))
10269 fprintf (f, "%ld", i);
10273 unsigned long int i = ulongval ();
10274 if (i != ((long int) (sizeof (short))))
10276 fprintf (f, "%lu", i);
10278 /* Do not output a trailing newline, as this causes \r\n confusion
10279 on some platforms. */
10280 return ferror (f) || fclose (f) != 0;
10286 rm -f conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10293 $as_echo "$ac_try_echo") >&5
10294 (eval "$ac_link") 2>&5
10296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10298 { (case "(($ac_try" in
10299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300 *) ac_try_echo=$ac_try;;
10302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10303 $as_echo "$ac_try_echo") >&5
10304 (eval "$ac_try") 2>&5
10306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 ac_cv_sizeof_short=`cat conftest.val`
10310 $as_echo "$as_me: program exited with status $ac_status" >&5
10311 $as_echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.$ac_ext >&5
10314 ( exit $ac_status )
10315 if test "$ac_cv_type_short" = yes; then
10316 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10318 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
10319 See \`config.log' for more details." >&5
10320 $as_echo "$as_me: error: cannot compute sizeof (short)
10321 See \`config.log' for more details." >&2;}
10322 { (exit 77); exit 77; }; }; }
10324 ac_cv_sizeof_short=0
10327 rm -rf conftest.dSYM
10328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10332 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10333 $as_echo "$ac_cv_sizeof_short" >&6; }
10337 cat >>confdefs.h <<_ACEOF
10338 #define SIZEOF_SHORT $ac_cv_sizeof_short
10342 # The cast to long int works around a bug in the HP C Compiler
10343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10345 # This bug is HP SR number 8606223364.
10346 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
10347 $as_echo_n "checking size of size_t... " >&6; }
10348 if test "${ac_cv_sizeof_size_t+set}" = set; then
10349 $as_echo_n "(cached) " >&6
10351 if test "$cross_compiling" = yes; then
10352 # Depending upon the size, compute the lo and hi bounds.
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 $ac_includes_default
10363 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374 *) ac_try_echo=$ac_try;;
10376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10377 $as_echo "$ac_try_echo") >&5
10378 (eval "$ac_compile") 2>conftest.er1
10380 grep -v '^ *+' conftest.er1 >conftest.err
10382 cat conftest.err >&5
10383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); } && {
10385 test -z "$ac_c_werror_flag" ||
10386 test ! -s conftest.err
10387 } && test -s conftest.$ac_objext; then
10390 cat >conftest.$ac_ext <<_ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 $ac_includes_default
10400 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10414 $as_echo "$ac_try_echo") >&5
10415 (eval "$ac_compile") 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } && {
10422 test -z "$ac_c_werror_flag" ||
10423 test ! -s conftest.err
10424 } && test -s conftest.$ac_objext; then
10425 ac_hi=$ac_mid; break
10427 $as_echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_lo=`expr $ac_mid + 1`
10431 if test $ac_lo -le $ac_mid; then
10435 ac_mid=`expr 2 '*' $ac_mid + 1`
10438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 $as_echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10454 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465 *) ac_try_echo=$ac_try;;
10467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10468 $as_echo "$ac_try_echo") >&5
10469 (eval "$ac_compile") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1 >conftest.err
10473 cat conftest.err >&5
10474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest.$ac_objext; then
10481 cat >conftest.$ac_ext <<_ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487 $ac_includes_default
10491 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
10498 rm -f conftest.$ac_objext
10499 if { (ac_try="$ac_compile"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_compile") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest.$ac_objext; then
10516 ac_lo=$ac_mid; break
10518 $as_echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_hi=`expr '(' $ac_mid ')' - 1`
10522 if test $ac_mid -le $ac_hi; then
10526 ac_mid=`expr 2 '*' $ac_mid`
10529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10532 $as_echo "$as_me: failed program was:" >&5
10533 sed 's/^/| /' conftest.$ac_ext >&5
10538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10542 # Binary search between lo and hi bounds.
10543 while test "x$ac_lo" != "x$ac_hi"; do
10544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10545 cat >conftest.$ac_ext <<_ACEOF
10548 cat confdefs.h >>conftest.$ac_ext
10549 cat >>conftest.$ac_ext <<_ACEOF
10550 /* end confdefs.h. */
10551 $ac_includes_default
10555 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
10562 rm -f conftest.$ac_objext
10563 if { (ac_try="$ac_compile"
10564 case "(($ac_try" in
10565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10569 $as_echo "$ac_try_echo") >&5
10570 (eval "$ac_compile") 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest.$ac_objext; then
10582 $as_echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_lo=`expr '(' $ac_mid ')' + 1`
10588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591 ?*) ac_cv_sizeof_size_t=$ac_lo;;
10592 '') if test "$ac_cv_type_size_t" = yes; then
10593 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10595 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10596 See \`config.log' for more details." >&5
10597 $as_echo "$as_me: error: cannot compute sizeof (size_t)
10598 See \`config.log' for more details." >&2;}
10599 { (exit 77); exit 77; }; }; }
10601 ac_cv_sizeof_size_t=0
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 static long int longval () { return (long int) (sizeof (size_t)); }
10613 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
10615 #include <stdlib.h>
10620 FILE *f = fopen ("conftest.val", "w");
10623 if (((long int) (sizeof (size_t))) < 0)
10625 long int i = longval ();
10626 if (i != ((long int) (sizeof (size_t))))
10628 fprintf (f, "%ld", i);
10632 unsigned long int i = ulongval ();
10633 if (i != ((long int) (sizeof (size_t))))
10635 fprintf (f, "%lu", i);
10637 /* Do not output a trailing newline, as this causes \r\n confusion
10638 on some platforms. */
10639 return ferror (f) || fclose (f) != 0;
10645 rm -f conftest$ac_exeext
10646 if { (ac_try="$ac_link"
10647 case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10652 $as_echo "$ac_try_echo") >&5
10653 (eval "$ac_link") 2>&5
10655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10657 { (case "(($ac_try" in
10658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10659 *) ac_try_echo=$ac_try;;
10661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663 (eval "$ac_try") 2>&5
10665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 (exit $ac_status); }; }; then
10667 ac_cv_sizeof_size_t=`cat conftest.val`
10669 $as_echo "$as_me: program exited with status $ac_status" >&5
10670 $as_echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ( exit $ac_status )
10674 if test "$ac_cv_type_size_t" = yes; then
10675 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10677 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
10678 See \`config.log' for more details." >&5
10679 $as_echo "$as_me: error: cannot compute sizeof (size_t)
10680 See \`config.log' for more details." >&2;}
10681 { (exit 77); exit 77; }; }; }
10683 ac_cv_sizeof_size_t=0
10686 rm -rf conftest.dSYM
10687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10691 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
10692 $as_echo "$ac_cv_sizeof_size_t" >&6; }
10696 cat >>confdefs.h <<_ACEOF
10697 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
10701 # The cast to long int works around a bug in the HP C Compiler
10702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10704 # This bug is HP SR number 8606223364.
10705 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
10706 $as_echo_n "checking size of void *... " >&6; }
10707 if test "${ac_cv_sizeof_void_p+set}" = set; then
10708 $as_echo_n "(cached) " >&6
10710 if test "$cross_compiling" = yes; then
10711 # Depending upon the size, compute the lo and hi bounds.
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 $ac_includes_default
10722 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
10729 rm -f conftest.$ac_objext
10730 if { (ac_try="$ac_compile"
10731 case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10736 $as_echo "$ac_try_echo") >&5
10737 (eval "$ac_compile") 2>conftest.er1
10739 grep -v '^ *+' conftest.er1 >conftest.err
10741 cat conftest.err >&5
10742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest.$ac_objext; then
10749 cat >conftest.$ac_ext <<_ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h. */
10755 $ac_includes_default
10759 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
10766 rm -f conftest.$ac_objext
10767 if { (ac_try="$ac_compile"
10768 case "(($ac_try" in
10769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770 *) ac_try_echo=$ac_try;;
10772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10773 $as_echo "$ac_try_echo") >&5
10774 (eval "$ac_compile") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest.$ac_objext; then
10784 ac_hi=$ac_mid; break
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10789 ac_lo=`expr $ac_mid + 1`
10790 if test $ac_lo -le $ac_mid; then
10794 ac_mid=`expr 2 '*' $ac_mid + 1`
10797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10800 $as_echo "$as_me: failed program was:" >&5
10801 sed 's/^/| /' conftest.$ac_ext >&5
10803 cat >conftest.$ac_ext <<_ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809 $ac_includes_default
10813 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
10820 rm -f conftest.$ac_objext
10821 if { (ac_try="$ac_compile"
10822 case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10827 $as_echo "$ac_try_echo") >&5
10828 (eval "$ac_compile") 2>conftest.er1
10830 grep -v '^ *+' conftest.er1 >conftest.err
10832 cat conftest.err >&5
10833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } && {
10835 test -z "$ac_c_werror_flag" ||
10836 test ! -s conftest.err
10837 } && test -s conftest.$ac_objext; then
10840 cat >conftest.$ac_ext <<_ACEOF
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 $ac_includes_default
10850 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
10857 rm -f conftest.$ac_objext
10858 if { (ac_try="$ac_compile"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10867 grep -v '^ *+' conftest.er1 >conftest.err
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest.$ac_objext; then
10875 ac_lo=$ac_mid; break
10877 $as_echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10880 ac_hi=`expr '(' $ac_mid ')' - 1`
10881 if test $ac_mid -le $ac_hi; then
10885 ac_mid=`expr 2 '*' $ac_mid`
10888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10891 $as_echo "$as_me: failed program was:" >&5
10892 sed 's/^/| /' conftest.$ac_ext >&5
10897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901 # Binary search between lo and hi bounds.
10902 while test "x$ac_lo" != "x$ac_hi"; do
10903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10904 cat >conftest.$ac_ext <<_ACEOF
10907 cat confdefs.h >>conftest.$ac_ext
10908 cat >>conftest.$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 $ac_includes_default
10914 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
10921 rm -f conftest.$ac_objext
10922 if { (ac_try="$ac_compile"
10923 case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10928 $as_echo "$ac_try_echo") >&5
10929 (eval "$ac_compile") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest.$ac_objext; then
10941 $as_echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 ac_lo=`expr '(' $ac_mid ')' + 1`
10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950 ?*) ac_cv_sizeof_void_p=$ac_lo;;
10951 '') if test "$ac_cv_type_void_p" = yes; then
10952 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10954 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
10955 See \`config.log' for more details." >&5
10956 $as_echo "$as_me: error: cannot compute sizeof (void *)
10957 See \`config.log' for more details." >&2;}
10958 { (exit 77); exit 77; }; }; }
10960 ac_cv_sizeof_void_p=0
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 $ac_includes_default
10971 static long int longval () { return (long int) (sizeof (void *)); }
10972 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
10974 #include <stdlib.h>
10979 FILE *f = fopen ("conftest.val", "w");
10982 if (((long int) (sizeof (void *))) < 0)
10984 long int i = longval ();
10985 if (i != ((long int) (sizeof (void *))))
10987 fprintf (f, "%ld", i);
10991 unsigned long int i = ulongval ();
10992 if (i != ((long int) (sizeof (void *))))
10994 fprintf (f, "%lu", i);
10996 /* Do not output a trailing newline, as this causes \r\n confusion
10997 on some platforms. */
10998 return ferror (f) || fclose (f) != 0;
11004 rm -f conftest$ac_exeext
11005 if { (ac_try="$ac_link"
11006 case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11011 $as_echo "$ac_try_echo") >&5
11012 (eval "$ac_link") 2>&5
11014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11016 { (case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11021 $as_echo "$ac_try_echo") >&5
11022 (eval "$ac_try") 2>&5
11024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
11026 ac_cv_sizeof_void_p=`cat conftest.val`
11028 $as_echo "$as_me: program exited with status $ac_status" >&5
11029 $as_echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ( exit $ac_status )
11033 if test "$ac_cv_type_void_p" = yes; then
11034 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11036 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
11037 See \`config.log' for more details." >&5
11038 $as_echo "$as_me: error: cannot compute sizeof (void *)
11039 See \`config.log' for more details." >&2;}
11040 { (exit 77); exit 77; }; }; }
11042 ac_cv_sizeof_void_p=0
11045 rm -rf conftest.dSYM
11046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11050 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
11051 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11055 cat >>confdefs.h <<_ACEOF
11056 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11061 { $as_echo "$as_me:$LINENO: checking for struct in6_addr" >&5
11062 $as_echo_n "checking for struct in6_addr... " >&6; }
11063 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
11064 $as_echo_n "(cached) " >&6
11066 ac_cv_type_struct_in6_addr=no
11067 cat >conftest.$ac_ext <<_ACEOF
11070 cat confdefs.h >>conftest.$ac_ext
11071 cat >>conftest.$ac_ext <<_ACEOF
11072 /* end confdefs.h. */
11073 #define _GNU_SOURCE
11074 #include <sys/types.h>
11075 #ifdef HAVE_NETINET_IN_H
11076 #include <netinet/in.h>
11078 #ifdef HAVE_NETINET_IN6_H
11079 #include <netinet/in6.h>
11081 #ifdef HAVE_SYS_SOCKET_H
11082 #include <sys/socket.h>
11084 #ifdef HAVE_NETDB_H
11088 #define WIN32_WINNT 0x400
11089 #define _WIN32_WINNT 0x400
11090 #define WIN32_LEAN_AND_MEAN
11091 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11092 #include <winsock.h>
11094 #include <winsock2.h>
11095 #include <ws2tcpip.h>
11103 if (sizeof (struct in6_addr))
11109 rm -f conftest.$ac_objext
11110 if { (ac_try="$ac_compile"
11111 case "(($ac_try" in
11112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11113 *) ac_try_echo=$ac_try;;
11115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11116 $as_echo "$ac_try_echo") >&5
11117 (eval "$ac_compile") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } && {
11124 test -z "$ac_c_werror_flag" ||
11125 test ! -s conftest.err
11126 } && test -s conftest.$ac_objext; then
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #define _GNU_SOURCE
11134 #include <sys/types.h>
11135 #ifdef HAVE_NETINET_IN_H
11136 #include <netinet/in.h>
11138 #ifdef HAVE_NETINET_IN6_H
11139 #include <netinet/in6.h>
11141 #ifdef HAVE_SYS_SOCKET_H
11142 #include <sys/socket.h>
11144 #ifdef HAVE_NETDB_H
11148 #define WIN32_WINNT 0x400
11149 #define _WIN32_WINNT 0x400
11150 #define WIN32_LEAN_AND_MEAN
11151 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11152 #include <winsock.h>
11154 #include <winsock2.h>
11155 #include <ws2tcpip.h>
11163 if (sizeof ((struct in6_addr)))
11169 rm -f conftest.$ac_objext
11170 if { (ac_try="$ac_compile"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11176 $as_echo "$ac_try_echo") >&5
11177 (eval "$ac_compile") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1 >conftest.err
11181 cat conftest.err >&5
11182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest.$ac_objext; then
11189 $as_echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11192 ac_cv_type_struct_in6_addr=yes
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197 $as_echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
11206 $as_echo "$ac_cv_type_struct_in6_addr" >&6; }
11207 if test "x$ac_cv_type_struct_in6_addr" = x""yes; then
11209 cat >>confdefs.h <<_ACEOF
11210 #define HAVE_STRUCT_IN6_ADDR 1
11215 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
11216 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
11217 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
11218 $as_echo_n "(cached) " >&6
11220 ac_cv_type_struct_sockaddr_in6=no
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 #define _GNU_SOURCE
11228 #include <sys/types.h>
11229 #ifdef HAVE_NETINET_IN_H
11230 #include <netinet/in.h>
11232 #ifdef HAVE_NETINET_IN6_H
11233 #include <netinet/in6.h>
11235 #ifdef HAVE_SYS_SOCKET_H
11236 #include <sys/socket.h>
11238 #ifdef HAVE_NETDB_H
11242 #define WIN32_WINNT 0x400
11243 #define _WIN32_WINNT 0x400
11244 #define WIN32_LEAN_AND_MEAN
11245 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11246 #include <winsock.h>
11248 #include <winsock2.h>
11249 #include <ws2tcpip.h>
11257 if (sizeof (struct sockaddr_in6))
11263 rm -f conftest.$ac_objext
11264 if { (ac_try="$ac_compile"
11265 case "(($ac_try" in
11266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267 *) ac_try_echo=$ac_try;;
11269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11270 $as_echo "$ac_try_echo") >&5
11271 (eval "$ac_compile") 2>conftest.er1
11273 grep -v '^ *+' conftest.er1 >conftest.err
11275 cat conftest.err >&5
11276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); } && {
11278 test -z "$ac_c_werror_flag" ||
11279 test ! -s conftest.err
11280 } && test -s conftest.$ac_objext; then
11281 cat >conftest.$ac_ext <<_ACEOF
11284 cat confdefs.h >>conftest.$ac_ext
11285 cat >>conftest.$ac_ext <<_ACEOF
11286 /* end confdefs.h. */
11287 #define _GNU_SOURCE
11288 #include <sys/types.h>
11289 #ifdef HAVE_NETINET_IN_H
11290 #include <netinet/in.h>
11292 #ifdef HAVE_NETINET_IN6_H
11293 #include <netinet/in6.h>
11295 #ifdef HAVE_SYS_SOCKET_H
11296 #include <sys/socket.h>
11298 #ifdef HAVE_NETDB_H
11302 #define WIN32_WINNT 0x400
11303 #define _WIN32_WINNT 0x400
11304 #define WIN32_LEAN_AND_MEAN
11305 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11306 #include <winsock.h>
11308 #include <winsock2.h>
11309 #include <ws2tcpip.h>
11317 if (sizeof ((struct sockaddr_in6)))
11323 rm -f conftest.$ac_objext
11324 if { (ac_try="$ac_compile"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331 (eval "$ac_compile") 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest.$ac_objext; then
11343 $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 ac_cv_type_struct_sockaddr_in6=yes
11349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11351 $as_echo "$as_me: failed program was:" >&5
11352 sed 's/^/| /' conftest.$ac_ext >&5
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
11360 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
11361 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
11363 cat >>confdefs.h <<_ACEOF
11364 #define HAVE_STRUCT_SOCKADDR_IN6 1
11369 { $as_echo "$as_me:$LINENO: checking for sa_family_t" >&5
11370 $as_echo_n "checking for sa_family_t... " >&6; }
11371 if test "${ac_cv_type_sa_family_t+set}" = set; then
11372 $as_echo_n "(cached) " >&6
11374 ac_cv_type_sa_family_t=no
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #define _GNU_SOURCE
11382 #include <sys/types.h>
11383 #ifdef HAVE_NETINET_IN_H
11384 #include <netinet/in.h>
11386 #ifdef HAVE_NETINET_IN6_H
11387 #include <netinet/in6.h>
11389 #ifdef HAVE_SYS_SOCKET_H
11390 #include <sys/socket.h>
11392 #ifdef HAVE_NETDB_H
11396 #define WIN32_WINNT 0x400
11397 #define _WIN32_WINNT 0x400
11398 #define WIN32_LEAN_AND_MEAN
11399 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11400 #include <winsock.h>
11402 #include <winsock2.h>
11403 #include <ws2tcpip.h>
11411 if (sizeof (sa_family_t))
11417 rm -f conftest.$ac_objext
11418 if { (ac_try="$ac_compile"
11419 case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11424 $as_echo "$ac_try_echo") >&5
11425 (eval "$ac_compile") 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } && {
11432 test -z "$ac_c_werror_flag" ||
11433 test ! -s conftest.err
11434 } && test -s conftest.$ac_objext; then
11435 cat >conftest.$ac_ext <<_ACEOF
11438 cat confdefs.h >>conftest.$ac_ext
11439 cat >>conftest.$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11441 #define _GNU_SOURCE
11442 #include <sys/types.h>
11443 #ifdef HAVE_NETINET_IN_H
11444 #include <netinet/in.h>
11446 #ifdef HAVE_NETINET_IN6_H
11447 #include <netinet/in6.h>
11449 #ifdef HAVE_SYS_SOCKET_H
11450 #include <sys/socket.h>
11452 #ifdef HAVE_NETDB_H
11456 #define WIN32_WINNT 0x400
11457 #define _WIN32_WINNT 0x400
11458 #define WIN32_LEAN_AND_MEAN
11459 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11460 #include <winsock.h>
11462 #include <winsock2.h>
11463 #include <ws2tcpip.h>
11471 if (sizeof ((sa_family_t)))
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481 *) ac_try_echo=$ac_try;;
11483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11484 $as_echo "$ac_try_echo") >&5
11485 (eval "$ac_compile") 2>conftest.er1
11487 grep -v '^ *+' conftest.er1 >conftest.err
11489 cat conftest.err >&5
11490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); } && {
11492 test -z "$ac_c_werror_flag" ||
11493 test ! -s conftest.err
11494 } && test -s conftest.$ac_objext; then
11497 $as_echo "$as_me: failed program was:" >&5
11498 sed 's/^/| /' conftest.$ac_ext >&5
11500 ac_cv_type_sa_family_t=yes
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11505 $as_echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11513 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
11514 $as_echo "$ac_cv_type_sa_family_t" >&6; }
11515 if test "x$ac_cv_type_sa_family_t" = x""yes; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define HAVE_SA_FAMILY_T 1
11523 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
11524 $as_echo_n "checking for struct addrinfo... " >&6; }
11525 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
11526 $as_echo_n "(cached) " >&6
11528 ac_cv_type_struct_addrinfo=no
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #define _GNU_SOURCE
11536 #include <sys/types.h>
11537 #ifdef HAVE_NETINET_IN_H
11538 #include <netinet/in.h>
11540 #ifdef HAVE_NETINET_IN6_H
11541 #include <netinet/in6.h>
11543 #ifdef HAVE_SYS_SOCKET_H
11544 #include <sys/socket.h>
11546 #ifdef HAVE_NETDB_H
11550 #define WIN32_WINNT 0x400
11551 #define _WIN32_WINNT 0x400
11552 #define WIN32_LEAN_AND_MEAN
11553 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11554 #include <winsock.h>
11556 #include <winsock2.h>
11557 #include <ws2tcpip.h>
11565 if (sizeof (struct addrinfo))
11571 rm -f conftest.$ac_objext
11572 if { (ac_try="$ac_compile"
11573 case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11578 $as_echo "$ac_try_echo") >&5
11579 (eval "$ac_compile") 2>conftest.er1
11581 grep -v '^ *+' conftest.er1 >conftest.err
11583 cat conftest.err >&5
11584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); } && {
11586 test -z "$ac_c_werror_flag" ||
11587 test ! -s conftest.err
11588 } && test -s conftest.$ac_objext; then
11589 cat >conftest.$ac_ext <<_ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11595 #define _GNU_SOURCE
11596 #include <sys/types.h>
11597 #ifdef HAVE_NETINET_IN_H
11598 #include <netinet/in.h>
11600 #ifdef HAVE_NETINET_IN6_H
11601 #include <netinet/in6.h>
11603 #ifdef HAVE_SYS_SOCKET_H
11604 #include <sys/socket.h>
11606 #ifdef HAVE_NETDB_H
11610 #define WIN32_WINNT 0x400
11611 #define _WIN32_WINNT 0x400
11612 #define WIN32_LEAN_AND_MEAN
11613 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11614 #include <winsock.h>
11616 #include <winsock2.h>
11617 #include <ws2tcpip.h>
11625 if (sizeof ((struct addrinfo)))
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11638 $as_echo "$ac_try_echo") >&5
11639 (eval "$ac_compile") 2>conftest.er1
11641 grep -v '^ *+' conftest.er1 >conftest.err
11643 cat conftest.err >&5
11644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); } && {
11646 test -z "$ac_c_werror_flag" ||
11647 test ! -s conftest.err
11648 } && test -s conftest.$ac_objext; then
11651 $as_echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 ac_cv_type_struct_addrinfo=yes
11657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 $as_echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11667 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
11668 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
11669 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
11671 cat >>confdefs.h <<_ACEOF
11672 #define HAVE_STRUCT_ADDRINFO 1
11677 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
11678 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
11679 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
11680 $as_echo_n "(cached) " >&6
11682 ac_cv_type_struct_sockaddr_storage=no
11683 cat >conftest.$ac_ext <<_ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11689 #define _GNU_SOURCE
11690 #include <sys/types.h>
11691 #ifdef HAVE_NETINET_IN_H
11692 #include <netinet/in.h>
11694 #ifdef HAVE_NETINET_IN6_H
11695 #include <netinet/in6.h>
11697 #ifdef HAVE_SYS_SOCKET_H
11698 #include <sys/socket.h>
11700 #ifdef HAVE_NETDB_H
11704 #define WIN32_WINNT 0x400
11705 #define _WIN32_WINNT 0x400
11706 #define WIN32_LEAN_AND_MEAN
11707 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11708 #include <winsock.h>
11710 #include <winsock2.h>
11711 #include <ws2tcpip.h>
11719 if (sizeof (struct sockaddr_storage))
11725 rm -f conftest.$ac_objext
11726 if { (ac_try="$ac_compile"
11727 case "(($ac_try" in
11728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729 *) ac_try_echo=$ac_try;;
11731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11732 $as_echo "$ac_try_echo") >&5
11733 (eval "$ac_compile") 2>conftest.er1
11735 grep -v '^ *+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } && {
11740 test -z "$ac_c_werror_flag" ||
11741 test ! -s conftest.err
11742 } && test -s conftest.$ac_objext; then
11743 cat >conftest.$ac_ext <<_ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 #define _GNU_SOURCE
11750 #include <sys/types.h>
11751 #ifdef HAVE_NETINET_IN_H
11752 #include <netinet/in.h>
11754 #ifdef HAVE_NETINET_IN6_H
11755 #include <netinet/in6.h>
11757 #ifdef HAVE_SYS_SOCKET_H
11758 #include <sys/socket.h>
11760 #ifdef HAVE_NETDB_H
11764 #define WIN32_WINNT 0x400
11765 #define _WIN32_WINNT 0x400
11766 #define WIN32_LEAN_AND_MEAN
11767 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11768 #include <winsock.h>
11770 #include <winsock2.h>
11771 #include <ws2tcpip.h>
11779 if (sizeof ((struct sockaddr_storage)))
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789 *) ac_try_echo=$ac_try;;
11791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792 $as_echo "$ac_try_echo") >&5
11793 (eval "$ac_compile") 2>conftest.er1
11795 grep -v '^ *+' conftest.er1 >conftest.err
11797 cat conftest.err >&5
11798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } && {
11800 test -z "$ac_c_werror_flag" ||
11801 test ! -s conftest.err
11802 } && test -s conftest.$ac_objext; then
11805 $as_echo "$as_me: failed program was:" >&5
11806 sed 's/^/| /' conftest.$ac_ext >&5
11808 ac_cv_type_struct_sockaddr_storage=yes
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 $as_echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11821 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
11822 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
11823 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
11825 cat >>confdefs.h <<_ACEOF
11826 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
11832 { $as_echo "$as_me:$LINENO: checking for struct in6_addr.s6_addr32" >&5
11833 $as_echo_n "checking for struct in6_addr.s6_addr32... " >&6; }
11834 if test "${ac_cv_member_struct_in6_addr_s6_addr32+set}" = set; then
11835 $as_echo_n "(cached) " >&6
11837 cat >conftest.$ac_ext <<_ACEOF
11840 cat confdefs.h >>conftest.$ac_ext
11841 cat >>conftest.$ac_ext <<_ACEOF
11842 /* end confdefs.h. */
11843 #include <sys/types.h>
11844 #ifdef HAVE_NETINET_IN_H
11845 #include <netinet/in.h>
11847 #ifdef HAVE_NETINET_IN6_H
11848 #include <netinet/in6.h>
11850 #ifdef HAVE_SYS_SOCKET_H
11851 #include <sys/socket.h>
11854 #define WIN32_WINNT 0x400
11855 #define _WIN32_WINNT 0x400
11856 #define WIN32_LEAN_AND_MEAN
11857 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11858 #include <winsock.h>
11860 #include <winsock2.h>
11861 #include <ws2tcpip.h>
11869 static struct in6_addr ac_aggr;
11870 if (ac_aggr.s6_addr32)
11876 rm -f conftest.$ac_objext
11877 if { (ac_try="$ac_compile"
11878 case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11883 $as_echo "$ac_try_echo") >&5
11884 (eval "$ac_compile") 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.$ac_objext; then
11894 ac_cv_member_struct_in6_addr_s6_addr32=yes
11896 $as_echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 #include <sys/types.h>
11906 #ifdef HAVE_NETINET_IN_H
11907 #include <netinet/in.h>
11909 #ifdef HAVE_NETINET_IN6_H
11910 #include <netinet/in6.h>
11912 #ifdef HAVE_SYS_SOCKET_H
11913 #include <sys/socket.h>
11916 #define WIN32_WINNT 0x400
11917 #define _WIN32_WINNT 0x400
11918 #define WIN32_LEAN_AND_MEAN
11919 #if defined(_MSC_VER) && (_MSC_VER < 1300)
11920 #include <winsock.h>
11922 #include <winsock2.h>
11923 #include <ws2tcpip.h>
11931 static struct in6_addr ac_aggr;
11932 if (sizeof ac_aggr.s6_addr32)
11938 rm -f conftest.$ac_objext
11939 if { (ac_try="$ac_compile"
11940 case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11945 $as_echo "$ac_try_echo") >&5
11946 (eval "$ac_compile") 2>conftest.er1
11948 grep -v '^ *+' conftest.er1 >conftest.err
11950 cat conftest.err >&5
11951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } && {
11953 test -z "$ac_c_werror_flag" ||
11954 test ! -s conftest.err
11955 } && test -s conftest.$ac_objext; then
11956 ac_cv_member_struct_in6_addr_s6_addr32=yes
11958 $as_echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_cv_member_struct_in6_addr_s6_addr32=no
11964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_in6_addr_s6_addr32" >&5
11970 $as_echo "$ac_cv_member_struct_in6_addr_s6_addr32" >&6; }
11971 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = x""yes; then
11973 cat >>confdefs.h <<_ACEOF
11974 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
11979 { $as_echo "$as_me:$LINENO: checking for struct in6_addr.s6_addr16" >&5
11980 $as_echo_n "checking for struct in6_addr.s6_addr16... " >&6; }
11981 if test "${ac_cv_member_struct_in6_addr_s6_addr16+set}" = set; then
11982 $as_echo_n "(cached) " >&6
11984 cat >conftest.$ac_ext <<_ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h. */
11990 #include <sys/types.h>
11991 #ifdef HAVE_NETINET_IN_H
11992 #include <netinet/in.h>
11994 #ifdef HAVE_NETINET_IN6_H
11995 #include <netinet/in6.h>
11997 #ifdef HAVE_SYS_SOCKET_H
11998 #include <sys/socket.h>
12001 #define WIN32_WINNT 0x400
12002 #define _WIN32_WINNT 0x400
12003 #define WIN32_LEAN_AND_MEAN
12004 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12005 #include <winsock.h>
12007 #include <winsock2.h>
12008 #include <ws2tcpip.h>
12016 static struct in6_addr ac_aggr;
12017 if (ac_aggr.s6_addr16)
12023 rm -f conftest.$ac_objext
12024 if { (ac_try="$ac_compile"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12030 $as_echo "$ac_try_echo") >&5
12031 (eval "$ac_compile") 2>conftest.er1
12033 grep -v '^ *+' conftest.er1 >conftest.err
12035 cat conftest.err >&5
12036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } && {
12038 test -z "$ac_c_werror_flag" ||
12039 test ! -s conftest.err
12040 } && test -s conftest.$ac_objext; then
12041 ac_cv_member_struct_in6_addr_s6_addr16=yes
12043 $as_echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <sys/types.h>
12053 #ifdef HAVE_NETINET_IN_H
12054 #include <netinet/in.h>
12056 #ifdef HAVE_NETINET_IN6_H
12057 #include <netinet/in6.h>
12059 #ifdef HAVE_SYS_SOCKET_H
12060 #include <sys/socket.h>
12063 #define WIN32_WINNT 0x400
12064 #define _WIN32_WINNT 0x400
12065 #define WIN32_LEAN_AND_MEAN
12066 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12067 #include <winsock.h>
12069 #include <winsock2.h>
12070 #include <ws2tcpip.h>
12078 static struct in6_addr ac_aggr;
12079 if (sizeof ac_aggr.s6_addr16)
12085 rm -f conftest.$ac_objext
12086 if { (ac_try="$ac_compile"
12087 case "(($ac_try" in
12088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089 *) ac_try_echo=$ac_try;;
12091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12092 $as_echo "$ac_try_echo") >&5
12093 (eval "$ac_compile") 2>conftest.er1
12095 grep -v '^ *+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } && {
12100 test -z "$ac_c_werror_flag" ||
12101 test ! -s conftest.err
12102 } && test -s conftest.$ac_objext; then
12103 ac_cv_member_struct_in6_addr_s6_addr16=yes
12105 $as_echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12108 ac_cv_member_struct_in6_addr_s6_addr16=no
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_in6_addr_s6_addr16" >&5
12117 $as_echo "$ac_cv_member_struct_in6_addr_s6_addr16" >&6; }
12118 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = x""yes; then
12120 cat >>confdefs.h <<_ACEOF
12121 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
12126 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
12127 $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
12128 if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
12129 $as_echo_n "(cached) " >&6
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12137 #include <sys/types.h>
12138 #ifdef HAVE_NETINET_IN_H
12139 #include <netinet/in.h>
12141 #ifdef HAVE_NETINET_IN6_H
12142 #include <netinet/in6.h>
12144 #ifdef HAVE_SYS_SOCKET_H
12145 #include <sys/socket.h>
12148 #define WIN32_WINNT 0x400
12149 #define _WIN32_WINNT 0x400
12150 #define WIN32_LEAN_AND_MEAN
12151 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12152 #include <winsock.h>
12154 #include <winsock2.h>
12155 #include <ws2tcpip.h>
12163 static struct sockaddr_in ac_aggr;
12164 if (ac_aggr.sin_len)
12170 rm -f conftest.$ac_objext
12171 if { (ac_try="$ac_compile"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12177 $as_echo "$ac_try_echo") >&5
12178 (eval "$ac_compile") 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && {
12185 test -z "$ac_c_werror_flag" ||
12186 test ! -s conftest.err
12187 } && test -s conftest.$ac_objext; then
12188 ac_cv_member_struct_sockaddr_in_sin_len=yes
12190 $as_echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 cat >conftest.$ac_ext <<_ACEOF
12196 cat confdefs.h >>conftest.$ac_ext
12197 cat >>conftest.$ac_ext <<_ACEOF
12198 /* end confdefs.h. */
12199 #include <sys/types.h>
12200 #ifdef HAVE_NETINET_IN_H
12201 #include <netinet/in.h>
12203 #ifdef HAVE_NETINET_IN6_H
12204 #include <netinet/in6.h>
12206 #ifdef HAVE_SYS_SOCKET_H
12207 #include <sys/socket.h>
12210 #define WIN32_WINNT 0x400
12211 #define _WIN32_WINNT 0x400
12212 #define WIN32_LEAN_AND_MEAN
12213 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12214 #include <winsock.h>
12216 #include <winsock2.h>
12217 #include <ws2tcpip.h>
12225 static struct sockaddr_in ac_aggr;
12226 if (sizeof ac_aggr.sin_len)
12232 rm -f conftest.$ac_objext
12233 if { (ac_try="$ac_compile"
12234 case "(($ac_try" in
12235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12236 *) ac_try_echo=$ac_try;;
12238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12239 $as_echo "$ac_try_echo") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 ac_cv_member_struct_sockaddr_in_sin_len=yes
12252 $as_echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 ac_cv_member_struct_sockaddr_in_sin_len=no
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
12264 $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
12265 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
12267 cat >>confdefs.h <<_ACEOF
12268 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12273 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_len" >&5
12274 $as_echo_n "checking for struct sockaddr_in6.sin6_len... " >&6; }
12275 if test "${ac_cv_member_struct_sockaddr_in6_sin6_len+set}" = set; then
12276 $as_echo_n "(cached) " >&6
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 #include <sys/types.h>
12285 #ifdef HAVE_NETINET_IN_H
12286 #include <netinet/in.h>
12288 #ifdef HAVE_NETINET_IN6_H
12289 #include <netinet/in6.h>
12291 #ifdef HAVE_SYS_SOCKET_H
12292 #include <sys/socket.h>
12295 #define WIN32_WINNT 0x400
12296 #define _WIN32_WINNT 0x400
12297 #define WIN32_LEAN_AND_MEAN
12298 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12299 #include <winsock.h>
12301 #include <winsock2.h>
12302 #include <ws2tcpip.h>
12310 static struct sockaddr_in6 ac_aggr;
12311 if (ac_aggr.sin6_len)
12317 rm -f conftest.$ac_objext
12318 if { (ac_try="$ac_compile"
12319 case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12324 $as_echo "$ac_try_echo") >&5
12325 (eval "$ac_compile") 2>conftest.er1
12327 grep -v '^ *+' conftest.er1 >conftest.err
12329 cat conftest.err >&5
12330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } && {
12332 test -z "$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 } && test -s conftest.$ac_objext; then
12335 ac_cv_member_struct_sockaddr_in6_sin6_len=yes
12337 $as_echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <sys/types.h>
12347 #ifdef HAVE_NETINET_IN_H
12348 #include <netinet/in.h>
12350 #ifdef HAVE_NETINET_IN6_H
12351 #include <netinet/in6.h>
12353 #ifdef HAVE_SYS_SOCKET_H
12354 #include <sys/socket.h>
12357 #define WIN32_WINNT 0x400
12358 #define _WIN32_WINNT 0x400
12359 #define WIN32_LEAN_AND_MEAN
12360 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12361 #include <winsock.h>
12363 #include <winsock2.h>
12364 #include <ws2tcpip.h>
12372 static struct sockaddr_in6 ac_aggr;
12373 if (sizeof ac_aggr.sin6_len)
12379 rm -f conftest.$ac_objext
12380 if { (ac_try="$ac_compile"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12386 $as_echo "$ac_try_echo") >&5
12387 (eval "$ac_compile") 2>conftest.er1
12389 grep -v '^ *+' conftest.er1 >conftest.err
12391 cat conftest.err >&5
12392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } && {
12394 test -z "$ac_c_werror_flag" ||
12395 test ! -s conftest.err
12396 } && test -s conftest.$ac_objext; then
12397 ac_cv_member_struct_sockaddr_in6_sin6_len=yes
12399 $as_echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12402 ac_cv_member_struct_sockaddr_in6_sin6_len=no
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_len" >&5
12411 $as_echo "$ac_cv_member_struct_sockaddr_in6_sin6_len" >&6; }
12412 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = x""yes; then
12414 cat >>confdefs.h <<_ACEOF
12415 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
12420 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
12421 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
12422 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
12423 $as_echo_n "(cached) " >&6
12425 cat >conftest.$ac_ext <<_ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 #include <sys/types.h>
12432 #ifdef HAVE_NETINET_IN_H
12433 #include <netinet/in.h>
12435 #ifdef HAVE_NETINET_IN6_H
12436 #include <netinet/in6.h>
12438 #ifdef HAVE_SYS_SOCKET_H
12439 #include <sys/socket.h>
12442 #define WIN32_WINNT 0x400
12443 #define _WIN32_WINNT 0x400
12444 #define WIN32_LEAN_AND_MEAN
12445 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12446 #include <winsock.h>
12448 #include <winsock2.h>
12449 #include <ws2tcpip.h>
12457 static struct sockaddr_storage ac_aggr;
12458 if (ac_aggr.ss_family)
12464 rm -f conftest.$ac_objext
12465 if { (ac_try="$ac_compile"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471 $as_echo "$ac_try_echo") >&5
12472 (eval "$ac_compile") 2>conftest.er1
12474 grep -v '^ *+' conftest.er1 >conftest.err
12476 cat conftest.err >&5
12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } && {
12479 test -z "$ac_c_werror_flag" ||
12480 test ! -s conftest.err
12481 } && test -s conftest.$ac_objext; then
12482 ac_cv_member_struct_sockaddr_storage_ss_family=yes
12484 $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 #include <sys/types.h>
12494 #ifdef HAVE_NETINET_IN_H
12495 #include <netinet/in.h>
12497 #ifdef HAVE_NETINET_IN6_H
12498 #include <netinet/in6.h>
12500 #ifdef HAVE_SYS_SOCKET_H
12501 #include <sys/socket.h>
12504 #define WIN32_WINNT 0x400
12505 #define _WIN32_WINNT 0x400
12506 #define WIN32_LEAN_AND_MEAN
12507 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12508 #include <winsock.h>
12510 #include <winsock2.h>
12511 #include <ws2tcpip.h>
12519 static struct sockaddr_storage ac_aggr;
12520 if (sizeof ac_aggr.ss_family)
12526 rm -f conftest.$ac_objext
12527 if { (ac_try="$ac_compile"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533 $as_echo "$ac_try_echo") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } && {
12541 test -z "$ac_c_werror_flag" ||
12542 test ! -s conftest.err
12543 } && test -s conftest.$ac_objext; then
12544 ac_cv_member_struct_sockaddr_storage_ss_family=yes
12546 $as_echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 ac_cv_member_struct_sockaddr_storage_ss_family=no
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
12558 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
12559 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
12561 cat >>confdefs.h <<_ACEOF
12562 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
12567 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
12568 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
12569 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
12570 $as_echo_n "(cached) " >&6
12572 cat >conftest.$ac_ext <<_ACEOF
12575 cat confdefs.h >>conftest.$ac_ext
12576 cat >>conftest.$ac_ext <<_ACEOF
12577 /* end confdefs.h. */
12578 #include <sys/types.h>
12579 #ifdef HAVE_NETINET_IN_H
12580 #include <netinet/in.h>
12582 #ifdef HAVE_NETINET_IN6_H
12583 #include <netinet/in6.h>
12585 #ifdef HAVE_SYS_SOCKET_H
12586 #include <sys/socket.h>
12589 #define WIN32_WINNT 0x400
12590 #define _WIN32_WINNT 0x400
12591 #define WIN32_LEAN_AND_MEAN
12592 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12593 #include <winsock.h>
12595 #include <winsock2.h>
12596 #include <ws2tcpip.h>
12604 static struct sockaddr_storage ac_aggr;
12605 if (ac_aggr.__ss_family)
12611 rm -f conftest.$ac_objext
12612 if { (ac_try="$ac_compile"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12618 $as_echo "$ac_try_echo") >&5
12619 (eval "$ac_compile") 2>conftest.er1
12621 grep -v '^ *+' conftest.er1 >conftest.err
12623 cat conftest.err >&5
12624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } && {
12626 test -z "$ac_c_werror_flag" ||
12627 test ! -s conftest.err
12628 } && test -s conftest.$ac_objext; then
12629 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12631 $as_echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 cat >conftest.$ac_ext <<_ACEOF
12637 cat confdefs.h >>conftest.$ac_ext
12638 cat >>conftest.$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12640 #include <sys/types.h>
12641 #ifdef HAVE_NETINET_IN_H
12642 #include <netinet/in.h>
12644 #ifdef HAVE_NETINET_IN6_H
12645 #include <netinet/in6.h>
12647 #ifdef HAVE_SYS_SOCKET_H
12648 #include <sys/socket.h>
12651 #define WIN32_WINNT 0x400
12652 #define _WIN32_WINNT 0x400
12653 #define WIN32_LEAN_AND_MEAN
12654 #if defined(_MSC_VER) && (_MSC_VER < 1300)
12655 #include <winsock.h>
12657 #include <winsock2.h>
12658 #include <ws2tcpip.h>
12666 static struct sockaddr_storage ac_aggr;
12667 if (sizeof ac_aggr.__ss_family)
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12680 $as_echo "$ac_try_echo") >&5
12681 (eval "$ac_compile") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } && {
12688 test -z "$ac_c_werror_flag" ||
12689 test ! -s conftest.err
12690 } && test -s conftest.$ac_objext; then
12691 ac_cv_member_struct_sockaddr_storage___ss_family=yes
12693 $as_echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12696 ac_cv_member_struct_sockaddr_storage___ss_family=no
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12704 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
12705 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
12706 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
12708 cat >>confdefs.h <<_ACEOF
12709 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
12716 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
12717 $as_echo_n "checking for socklen_t... " >&6; }
12718 cat >conftest.$ac_ext <<_ACEOF
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12725 #include <sys/types.h>
12726 #include <sys/socket.h>
12735 rm -f conftest.$ac_objext
12736 if { (ac_try="$ac_compile"
12737 case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12742 $as_echo "$ac_try_echo") >&5
12743 (eval "$ac_compile") 2>conftest.er1
12745 grep -v '^ *+' conftest.er1 >conftest.err
12747 cat conftest.err >&5
12748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } && {
12750 test -z "$ac_c_werror_flag" ||
12751 test ! -s conftest.err
12752 } && test -s conftest.$ac_objext; then
12753 { $as_echo "$as_me:$LINENO: result: yes" >&5
12754 $as_echo "yes" >&6; }
12756 $as_echo "$as_me: failed program was:" >&5
12757 sed 's/^/| /' conftest.$ac_ext >&5
12759 { $as_echo "$as_me:$LINENO: result: no" >&5
12760 $as_echo "no" >&6; }
12762 cat >>confdefs.h <<\_ACEOF
12763 #define socklen_t unsigned int
12769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
12772 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
12773 cat >conftest.$ac_ext <<_ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h. */
12783 const char *cp = __func__;
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12795 $as_echo "$ac_try_echo") >&5
12796 (eval "$ac_compile") 2>conftest.er1
12798 grep -v '^ *+' conftest.er1 >conftest.err
12800 cat conftest.err >&5
12801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802 (exit $ac_status); } && {
12803 test -z "$ac_c_werror_flag" ||
12804 test ! -s conftest.err
12805 } && test -s conftest.$ac_objext; then
12806 { $as_echo "$as_me:$LINENO: result: yes" >&5
12807 $as_echo "yes" >&6; }
12809 $as_echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 { $as_echo "$as_me:$LINENO: result: no" >&5
12813 $as_echo "no" >&6; }
12814 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
12815 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
12816 cat >conftest.$ac_ext <<_ACEOF
12819 cat confdefs.h >>conftest.$ac_ext
12820 cat >>conftest.$ac_ext <<_ACEOF
12821 /* end confdefs.h. */
12826 const char *cp = __FUNCTION__;
12831 rm -f conftest.$ac_objext
12832 if { (ac_try="$ac_compile"
12833 case "(($ac_try" in
12834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12835 *) ac_try_echo=$ac_try;;
12837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12838 $as_echo "$ac_try_echo") >&5
12839 (eval "$ac_compile") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && {
12846 test -z "$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 } && test -s conftest.$ac_objext; then
12849 { $as_echo "$as_me:$LINENO: result: yes" >&5
12850 $as_echo "yes" >&6; }
12852 cat >>confdefs.h <<\_ACEOF
12853 #define __func__ __FUNCTION__
12857 $as_echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 { $as_echo "$as_me:$LINENO: result: no" >&5
12861 $as_echo "no" >&6; }
12863 cat >>confdefs.h <<\_ACEOF
12864 #define __func__ __FILE__
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 # check if we can compile with pthreads
12877 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
12879 AC_DEFINE(HAVE_PTHREADS, 1,
12880 [Define if we have pthreads on this system])
12882 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
12883 # The cast to long int works around a bug in the HP C Compiler
12884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12886 # This bug is HP SR number 8606223364.
12887 { $as_echo "$as_me:$LINENO: checking size of pthread_t" >&5
12888 $as_echo_n "checking size of pthread_t... " >&6; }
12889 if test "${ac_cv_sizeof_pthread_t+set}" = set; then
12890 $as_echo_n "(cached) " >&6
12892 if test "$cross_compiling" = yes; then
12893 # Depending upon the size, compute the lo and hi bounds.
12894 cat >conftest.$ac_ext <<_ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12900 $ac_includes_default
12901 #include <pthread.h>
12907 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= 0)];
12914 rm -f conftest.$ac_objext
12915 if { (ac_try="$ac_compile"
12916 case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12921 $as_echo "$ac_try_echo") >&5
12922 (eval "$ac_compile") 2>conftest.er1
12924 grep -v '^ *+' conftest.er1 >conftest.err
12926 cat conftest.err >&5
12927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } && {
12929 test -z "$ac_c_werror_flag" ||
12930 test ! -s conftest.err
12931 } && test -s conftest.$ac_objext; then
12934 cat >conftest.$ac_ext <<_ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h. */
12940 $ac_includes_default
12941 #include <pthread.h>
12947 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961 $as_echo "$ac_try_echo") >&5
12962 (eval "$ac_compile") 2>conftest.er1
12964 grep -v '^ *+' conftest.er1 >conftest.err
12966 cat conftest.err >&5
12967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
12971 } && test -s conftest.$ac_objext; then
12972 ac_hi=$ac_mid; break
12974 $as_echo "$as_me: failed program was:" >&5
12975 sed 's/^/| /' conftest.$ac_ext >&5
12977 ac_lo=`expr $ac_mid + 1`
12978 if test $ac_lo -le $ac_mid; then
12982 ac_mid=`expr 2 '*' $ac_mid + 1`
12985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12988 $as_echo "$as_me: failed program was:" >&5
12989 sed 's/^/| /' conftest.$ac_ext >&5
12991 cat >conftest.$ac_ext <<_ACEOF
12994 cat confdefs.h >>conftest.$ac_ext
12995 cat >>conftest.$ac_ext <<_ACEOF
12996 /* end confdefs.h. */
12997 $ac_includes_default
12998 #include <pthread.h>
13004 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) < 0)];
13011 rm -f conftest.$ac_objext
13012 if { (ac_try="$ac_compile"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13018 $as_echo "$ac_try_echo") >&5
13019 (eval "$ac_compile") 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } && {
13026 test -z "$ac_c_werror_flag" ||
13027 test ! -s conftest.err
13028 } && test -s conftest.$ac_objext; then
13031 cat >conftest.$ac_ext <<_ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 $ac_includes_default
13038 #include <pthread.h>
13044 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) >= $ac_mid)];
13051 rm -f conftest.$ac_objext
13052 if { (ac_try="$ac_compile"
13053 case "(($ac_try" in
13054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13055 *) ac_try_echo=$ac_try;;
13057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13058 $as_echo "$ac_try_echo") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } && {
13066 test -z "$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13068 } && test -s conftest.$ac_objext; then
13069 ac_lo=$ac_mid; break
13071 $as_echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_hi=`expr '(' $ac_mid ')' - 1`
13075 if test $ac_mid -le $ac_hi; then
13079 ac_mid=`expr 2 '*' $ac_mid`
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 $as_echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13095 # Binary search between lo and hi bounds.
13096 while test "x$ac_lo" != "x$ac_hi"; do
13097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 $ac_includes_default
13105 #include <pthread.h>
13111 static int test_array [1 - 2 * !(((long int) (sizeof (pthread_t))) <= $ac_mid)];
13118 rm -f conftest.$ac_objext
13119 if { (ac_try="$ac_compile"
13120 case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13125 $as_echo "$ac_try_echo") >&5
13126 (eval "$ac_compile") 2>conftest.er1
13128 grep -v '^ *+' conftest.er1 >conftest.err
13130 cat conftest.err >&5
13131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); } && {
13133 test -z "$ac_c_werror_flag" ||
13134 test ! -s conftest.err
13135 } && test -s conftest.$ac_objext; then
13138 $as_echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 ac_lo=`expr '(' $ac_mid ')' + 1`
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13147 ?*) ac_cv_sizeof_pthread_t=$ac_lo;;
13148 '') if test "$ac_cv_type_pthread_t" = yes; then
13149 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13151 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
13152 See \`config.log' for more details." >&5
13153 $as_echo "$as_me: error: cannot compute sizeof (pthread_t)
13154 See \`config.log' for more details." >&2;}
13155 { (exit 77); exit 77; }; }; }
13157 ac_cv_sizeof_pthread_t=0
13161 cat >conftest.$ac_ext <<_ACEOF
13164 cat confdefs.h >>conftest.$ac_ext
13165 cat >>conftest.$ac_ext <<_ACEOF
13166 /* end confdefs.h. */
13167 $ac_includes_default
13168 #include <pthread.h>
13171 static long int longval () { return (long int) (sizeof (pthread_t)); }
13172 static unsigned long int ulongval () { return (long int) (sizeof (pthread_t)); }
13174 #include <stdlib.h>
13179 FILE *f = fopen ("conftest.val", "w");
13182 if (((long int) (sizeof (pthread_t))) < 0)
13184 long int i = longval ();
13185 if (i != ((long int) (sizeof (pthread_t))))
13187 fprintf (f, "%ld", i);
13191 unsigned long int i = ulongval ();
13192 if (i != ((long int) (sizeof (pthread_t))))
13194 fprintf (f, "%lu", i);
13196 /* Do not output a trailing newline, as this causes \r\n confusion
13197 on some platforms. */
13198 return ferror (f) || fclose (f) != 0;
13204 rm -f conftest$ac_exeext
13205 if { (ac_try="$ac_link"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13211 $as_echo "$ac_try_echo") >&5
13212 (eval "$ac_link") 2>&5
13214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13216 { (case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13221 $as_echo "$ac_try_echo") >&5
13222 (eval "$ac_try") 2>&5
13224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_cv_sizeof_pthread_t=`cat conftest.val`
13228 $as_echo "$as_me: program exited with status $ac_status" >&5
13229 $as_echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13232 ( exit $ac_status )
13233 if test "$ac_cv_type_pthread_t" = yes; then
13234 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13236 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (pthread_t)
13237 See \`config.log' for more details." >&5
13238 $as_echo "$as_me: error: cannot compute sizeof (pthread_t)
13239 See \`config.log' for more details." >&2;}
13240 { (exit 77); exit 77; }; }; }
13242 ac_cv_sizeof_pthread_t=0
13245 rm -rf conftest.dSYM
13246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13250 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_pthread_t" >&5
13251 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
13255 cat >>confdefs.h <<_ACEOF
13256 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
13261 AM_CONDITIONAL(PTHREADS, test "$have_pthreads" != "no" && test "$enable_thread_support" != "no")
13263 # check if we should compile locking into the library
13264 if test x$enable_thread_support = xno; then
13266 cat >>confdefs.h <<\_ACEOF
13267 #define DISABLE_THREAD_SUPPORT 1
13272 # check if we should hard-code the mm functions.
13273 if test x$enable_malloc_replacement = xno; then
13275 cat >>confdefs.h <<\_ACEOF
13276 #define DISABLE_MM_REPLACEMENT 1
13281 # check if we should hard-code debugging out
13282 if test x$enable_debug_mode = xno; then
13284 cat >>confdefs.h <<\_ACEOF
13285 #define DISABLE_DEBUG_MODE 1
13290 # check if we have and should use openssl
13291 AM_CONDITIONAL(OPENSSL, test "$enable_openssl" != "no" && test "$have_openssl" = "yes")
13293 # Add some more warnings which we use in development but not in the
13294 # released versions. (Some relevant gcc versions can't handle these.)
13295 if test x$enable_gcc_warnings = xyes && test "$GCC" = "yes"; then
13297 cat >conftest.$ac_ext <<_ACEOF
13300 cat confdefs.h >>conftest.$ac_ext
13301 cat >>conftest.$ac_ext <<_ACEOF
13302 /* end confdefs.h. */
13308 #if !defined(__GNUC__) || (__GNUC__ < 4)
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13322 $as_echo "$ac_try_echo") >&5
13323 (eval "$ac_compile") 2>conftest.er1
13325 grep -v '^ *+' conftest.er1 >conftest.err
13327 cat conftest.err >&5
13328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); } && {
13330 test -z "$ac_c_werror_flag" ||
13331 test ! -s conftest.err
13332 } && test -s conftest.$ac_objext; then
13335 $as_echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 cat >conftest.$ac_ext <<_ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13354 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365 *) ac_try_echo=$ac_try;;
13367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13368 $as_echo "$ac_try_echo") >&5
13369 (eval "$ac_compile") 2>conftest.er1
13371 grep -v '^ *+' conftest.er1 >conftest.err
13373 cat conftest.err >&5
13374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } && {
13376 test -z "$ac_c_werror_flag" ||
13377 test ! -s conftest.err
13378 } && test -s conftest.$ac_objext; then
13381 $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 cat >conftest.$ac_ext <<_ACEOF
13392 cat confdefs.h >>conftest.$ac_ext
13393 cat >>conftest.$ac_ext <<_ACEOF
13394 /* end confdefs.h. */
13400 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
13407 rm -f conftest.$ac_objext
13408 if { (ac_try="$ac_compile"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13414 $as_echo "$ac_try_echo") >&5
13415 (eval "$ac_compile") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } && {
13422 test -z "$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 } && test -s conftest.$ac_objext; then
13427 $as_echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13446 #if !defined(__clang__)
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13460 $as_echo "$ac_try_echo") >&5
13461 (eval "$ac_compile") 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest.$ac_objext; then
13473 $as_echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13492 #if !defined(__clang__) || (__clang_major__ > 2) || (__clang_major__ == 2 && __clang_minor__ > 9)
13499 rm -f conftest.$ac_objext
13500 if { (ac_try="$ac_compile"
13501 case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13506 $as_echo "$ac_try_echo") >&5
13507 (eval "$ac_compile") 2>conftest.er1
13509 grep -v '^ *+' conftest.er1 >conftest.err
13511 cat conftest.err >&5
13512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest.$ac_objext; then
13517 have_clang29orlower=yes
13519 $as_echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 have_clang29orlower=no
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13527 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum -Werror"
13528 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
13530 if test x$have_gcc4 = xyes ; then
13531 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
13532 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
13533 #CFLAGS="$CFLAGS -Wold-style-definition"
13536 if test x$have_gcc42 = xyes ; then
13537 # These warnings break gcc 4.0.2 and work on gcc 4.2
13538 CFLAGS="$CFLAGS -Waddress"
13541 if test x$have_gcc42 = xyes && test x$have_clang29orlower = xno; then
13542 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
13543 # We only disable these for clang 2.9 and lower, in case they are
13544 # supported in later versions.
13545 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
13548 if test x$have_gcc45 = xyes ; then
13549 # These warnings work on gcc 4.5
13550 CFLAGS="$CFLAGS -Wlogical-op"
13553 if test x$have_clang = xyes; then
13554 # Disable the unused-function warnings, because these trigger
13555 # for minheap-internal.h related code.
13556 CFLAGS="$CFLAGS -Wno-unused-function"
13559 ##This will break the world on some 64-bit architectures
13560 # CFLAGS="$CFLAGS -Winline"
13564 LIBEVENT_GC_SECTIONS=
13565 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
13566 { $as_echo "$as_me:$LINENO: checking if linker supports omitting unused code and data" >&5
13567 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
13568 if test "${libevent_cv_gc_sections_runs+set}" = set; then
13569 $as_echo_n "(cached) " >&6
13572 origCFLAGS="$CFLAGS"
13573 CFLAGS="$CFLAGS -Wl,--gc-sections"
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13581 #include <stdlib.h>
13591 int read_success_once;
13593 fpC = fopen("conftest.c", "r");
13597 cch = fread(buf, sizeof(buf), 1, fpC);
13598 read_success_once |= (0 != cch);
13599 } while (0 != cch);
13600 if (!read_success_once)
13604 if (0 != fclose(fpC))
13607 exit(EXIT_SUCCESS);
13614 rm -f conftest.$ac_objext conftest$ac_exeext
13615 if { (ac_try="$ac_link"
13616 case "(($ac_try" in
13617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13618 *) ac_try_echo=$ac_try;;
13620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13621 $as_echo "$ac_try_echo") >&5
13622 (eval "$ac_link") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest$ac_exeext && {
13632 test "$cross_compiling" = yes ||
13633 $as_test_x conftest$ac_exeext
13636 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
13637 libevent_cv_gc_sections_runs=no
13639 libevent_cv_gc_sections_runs=no
13640 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
13644 $as_echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13647 libevent_cv_gc_sections_runs=no
13651 rm -rf conftest.dSYM
13652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13653 conftest$ac_exeext conftest.$ac_ext
13654 CFLAGS="$origCFLAGS"
13655 $as_unset origCFLAGS || test "${origCFLAGS+set}" != set || { origCFLAGS=; export origCFLAGS; }
13659 { $as_echo "$as_me:$LINENO: result: $libevent_cv_gc_sections_runs" >&5
13660 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
13661 case "$libevent_cv_gc_sections_runs" in
13663 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
13664 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
13670 AM_CONDITIONAL(INSTALL_LIBEVENT, test "$enable_libevent_install" = "yes")
13672 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
13674 ac_config_files="$ac_config_files Makefile include/Makefile test/Makefile sample/Makefile"
13676 cat >confcache <<\_ACEOF
13677 # This file is a shell script that caches the results of configure
13678 # tests run on this system so they can be shared between configure
13679 # scripts and configure runs, see configure's option --config-cache.
13680 # It is not useful on other systems. If it contains results you don't
13681 # want to keep, you may remove or edit it.
13683 # config.status only pays attention to the cache file if you give it
13684 # the --recheck option to rerun configure.
13686 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13687 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13688 # following values.
13692 # The following way of writing the cache mishandles newlines in values,
13693 # but we know of no workaround that is simple, portable, and efficient.
13694 # So, we kill variables containing newlines.
13695 # Ultrix sh set writes to stderr and can't be redirected directly,
13696 # and sets the high bit in the cache file unless we assign to the vars.
13698 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13699 eval ac_val=\$$ac_var
13703 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
13704 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13707 _ | IFS | as_nl) ;; #(
13708 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13709 *) $as_unset $ac_var ;;
13715 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13716 *${as_nl}ac_space=\ *)
13717 # `set' does not quote correctly, so add quotes (double-quote
13718 # substitution turns \\\\ into \\, and sed turns \\ into \).
13721 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13724 # `set' quotes correctly as required by POSIX, so do not add quotes.
13725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13734 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13736 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13738 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13739 if test -w "$cache_file"; then
13740 test "x$cache_file" != "x/dev/null" &&
13741 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13742 $as_echo "$as_me: updating cache $cache_file" >&6;}
13743 cat confcache >$cache_file
13745 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13752 # Let make expand exec_prefix.
13753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13755 # Transform confdefs.h into DEFS.
13756 # Protect against shell expansion while executing Makefile rules.
13757 # Protect against Makefile macro expansion.
13759 # If the first sed substitution is executed (which looks for macros that
13760 # take arguments), then branch to the quote section. Otherwise,
13761 # look for a macro that doesn't take arguments.
13771 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
13773 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
13777 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13790 DEFS=`sed -n "$ac_script" confdefs.h`
13795 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13796 # 1. Remove the extension, and $U if already installed.
13797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13800 # will be set to the directory where LIBOBJS objects are built.
13801 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13802 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13804 LIBOBJS=$ac_libobjs
13806 LTLIBOBJS=$ac_ltlibobjs
13810 : ${CONFIG_STATUS=./config.status}
13812 ac_clean_files_save=$ac_clean_files
13813 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13814 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13815 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13816 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13818 # Generated by $as_me.
13819 # Run this file to recreate the current configuration.
13820 # Compiler output produced by configure, useful for debugging
13821 # configure, is in config.log if it exists.
13824 ac_cs_recheck=false
13826 SHELL=\${CONFIG_SHELL-$SHELL}
13829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13830 ## --------------------- ##
13831 ## M4sh Initialization. ##
13832 ## --------------------- ##
13834 # Be more Bourne compatible
13835 DUALCASE=1; export DUALCASE # for MKS sh
13836 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13839 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13840 # is contrary to our usage. Disable this feature.
13841 alias -g '${1+"$@"}'='"$@"'
13842 setopt NO_GLOB_SUBST
13844 case `(set -o) 2>/dev/null` in
13845 *posix*) set -o posix ;;
13854 # Avoid depending upon Character Ranges.
13855 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13856 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13857 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13858 as_cr_digits='0123456789'
13859 as_cr_alnum=$as_cr_Letters$as_cr_digits
13864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13868 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13869 as_echo='printf %s\n'
13870 as_echo_n='printf %s'
13872 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13873 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13874 as_echo_n='/usr/ucb/echo -n'
13876 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13877 as_echo_n_body='eval
13881 expr "X$arg" : "X\\(.*\\)$as_nl";
13882 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13884 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13886 export as_echo_n_body
13887 as_echo_n='sh -c $as_echo_n_body as_echo'
13889 export as_echo_body
13890 as_echo='sh -c $as_echo_body as_echo'
13893 # The user is always right.
13894 if test "${PATH_SEPARATOR+set}" != set; then
13896 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13897 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13902 # Support unset when possible.
13903 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13911 # We need space, tab and new line, in precisely that order. Quoting is
13912 # there to prevent editors from complaining about space-tab.
13913 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13914 # splitting by setting IFS to empty value.)
13917 # Find who we are. Look in the path if we contain no directory separator.
13919 *[\\/]* ) as_myself=$0 ;;
13920 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13924 test -z "$as_dir" && as_dir=.
13925 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13931 # We did not find ourselves, most probably we were run as `sh COMMAND'
13932 # in which case we are not to be found in the path.
13933 if test "x$as_myself" = x; then
13936 if test ! -f "$as_myself"; then
13937 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13938 { (exit 1); exit 1; }
13941 # Work around bugs in pre-3.0 UWIN ksh.
13942 for as_var in ENV MAIL MAILPATH
13943 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13955 # Required to use basename.
13956 if expr a : '\(a\)' >/dev/null 2>&1 &&
13957 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13963 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13964 as_basename=basename
13970 # Name of the executable.
13971 as_me=`$as_basename -- "$0" ||
13972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13973 X"$0" : 'X\(//\)$' \| \
13974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13976 sed '/^.*\/\([^/][^/]*\)\/*$/{
13995 as_lineno_1=$LINENO
13996 as_lineno_2=$LINENO
13997 test "x$as_lineno_1" != "x$as_lineno_2" &&
13998 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14000 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14001 # uniformly replaced by the line number. The first 'sed' inserts a
14002 # line-number line after each line using $LINENO; the second 'sed'
14003 # does the real work. The second script uses 'N' to pair each
14004 # line-number line with the line containing $LINENO, and appends
14005 # trailing '-' during substitution so that $LINENO is not a special
14006 # case at line end.
14007 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14008 # scripts with optimization help from Paolo Bonzini. Blame Lee
14009 # E. McMahon (1931-1989) for sed's syntax. :-)
14021 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14024 ' >$as_me.lineno &&
14025 chmod +x "$as_me.lineno" ||
14026 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14027 { (exit 1); exit 1; }; }
14029 # Don't try to exec as it changes $[0], causing all sort of problems
14030 # (the dirname of $[0] is not the place where we might find the
14031 # original and so on. Autoconf is especially sensitive to this).
14032 . "./$as_me.lineno"
14033 # Exit status is that of the last command.
14038 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14044 ECHO_C= ECHO_N= ECHO_T=
14045 case `echo -n x` in
14047 case `echo 'x\c'` in
14048 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14054 if expr a : '\(a\)' >/dev/null 2>&1 &&
14055 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14061 rm -f conf$$ conf$$.exe conf$$.file
14062 if test -d conf$$.dir; then
14063 rm -f conf$$.dir/conf$$.file
14066 mkdir conf$$.dir 2>/dev/null
14068 if (echo >conf$$.file) 2>/dev/null; then
14069 if ln -s conf$$.file conf$$ 2>/dev/null; then
14071 # ... but there are two gotchas:
14072 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14073 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14074 # In both cases, we have to default to `cp -p'.
14075 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14077 elif ln conf$$.file conf$$ 2>/dev/null; then
14085 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14086 rmdir conf$$.dir 2>/dev/null
14088 if mkdir -p . 2>/dev/null; then
14091 test -d ./-p && rmdir ./-p
14095 if test -x / >/dev/null 2>&1; then
14096 as_test_x='test -x'
14098 if ls -dL / >/dev/null 2>&1; then
14105 if test -d "$1"; then
14111 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14112 ???[sx]*):;;*)false;;esac;fi
14116 as_executable_p=$as_test_x
14118 # Sed expression to map a string onto a valid CPP name.
14119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14121 # Sed expression to map a string onto a valid variable name.
14122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14127 # Save the log message, to keep $[0] and so on meaningful, and to
14128 # report actual input values of CONFIG_FILES etc. instead of their
14129 # values after options handling.
14131 This file was extended by $as_me, which was
14132 generated by GNU Autoconf 2.63. Invocation command line was
14134 CONFIG_FILES = $CONFIG_FILES
14135 CONFIG_HEADERS = $CONFIG_HEADERS
14136 CONFIG_LINKS = $CONFIG_LINKS
14137 CONFIG_COMMANDS = $CONFIG_COMMANDS
14140 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14145 case $ac_config_files in *"
14146 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14152 # Files that config.status was made for.
14153 config_files="$ac_config_files"
14157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14159 \`$as_me' instantiates files from templates according to the
14160 current configuration.
14162 Usage: $0 [OPTION]... [FILE]...
14164 -h, --help print this help, then exit
14165 -V, --version print version number and configuration settings, then exit
14166 -q, --quiet, --silent
14167 do not print progress messages
14168 -d, --debug don't remove temporary files
14169 --recheck update $as_me by reconfiguring in the same conditions
14170 --file=FILE[:TEMPLATE]
14171 instantiate the configuration file FILE
14173 Configuration files:
14176 Report bugs to <bug-autoconf@gnu.org>."
14179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14182 configured by $0, generated by GNU Autoconf 2.63,
14183 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14185 Copyright (C) 2008 Free Software Foundation, Inc.
14186 This config.status script is free software; the Free Software Foundation
14187 gives unlimited permission to copy, distribute and modify it."
14193 test -n "\$AWK" || AWK=awk
14196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14197 # The default lists apply if the user does not specify any file.
14203 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14204 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14215 # Handling of the options.
14216 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14218 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14219 $as_echo "$ac_cs_version"; exit ;;
14220 --debug | --debu | --deb | --de | --d | -d )
14222 --file | --fil | --fi | --f )
14225 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14227 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14228 ac_need_defaults=false;;
14229 --he | --h | --help | --hel | -h )
14230 $as_echo "$ac_cs_usage"; exit ;;
14231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14235 # This is an error.
14236 -*) { $as_echo "$as_me: error: unrecognized option: $1
14237 Try \`$0 --help' for more information." >&2
14238 { (exit 1); exit 1; }; } ;;
14240 *) ac_config_targets="$ac_config_targets $1"
14241 ac_need_defaults=false ;;
14247 ac_configure_extra_args=
14249 if $ac_cs_silent; then
14251 ac_configure_extra_args="$ac_configure_extra_args --silent"
14255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14256 if \$ac_cs_recheck; then
14257 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14260 CONFIG_SHELL='$SHELL'
14261 export CONFIG_SHELL
14266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14271 ## Running $as_me. ##
14277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14282 # Handling of arguments.
14283 for ac_config_target in $ac_config_targets
14285 case $ac_config_target in
14286 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
14287 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
14288 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
14289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14290 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14291 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
14292 "sample/Makefile") CONFIG_FILES="$CONFIG_FILES sample/Makefile" ;;
14294 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14295 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14296 { (exit 1); exit 1; }; };;
14301 # If the user did not use the arguments to specify the items to instantiate,
14302 # then the envvar interface is used. Set only those that are not.
14303 # We use the long form for the default assignment because of an extremely
14304 # bizarre bug on SunOS 4.1.3.
14305 if $ac_need_defaults; then
14306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14309 # Have a temporary directory for convenience. Make it in the build tree
14310 # simply because there is no reason against having it here, and in addition,
14311 # creating and moving files from /tmp can sometimes cause problems.
14312 # Hook for its removal unless debugging.
14313 # Note that there is a small window in which the directory will not be cleaned:
14314 # after its creation but before its name has been assigned to `$tmp'.
14318 trap 'exit_status=$?
14319 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14321 trap '{ (exit 1); exit 1; }' 1 2 13 15
14323 # Create a (secure) tmp directory for tmp files.
14326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14327 test -n "$tmp" && test -d "$tmp"
14330 tmp=./conf$$-$RANDOM
14331 (umask 077 && mkdir "$tmp")
14334 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14335 { (exit 1); exit 1; }
14338 # Set up the scripts for CONFIG_FILES section.
14339 # No need to generate them if there are no CONFIG_FILES.
14340 # This happens for instance with `./config.status config.h'.
14341 if test -n "$CONFIG_FILES"; then
14345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14349 ac_cs_awk_cr=$ac_cr
14352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14357 echo "cat >conf$$subs.awk <<_ACEOF" &&
14358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14360 } >conf$$subs.sh ||
14361 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14362 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14363 { (exit 1); exit 1; }; }
14364 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14366 for ac_last_try in false false false false false :; do
14367 . ./conf$$subs.sh ||
14368 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14369 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14370 { (exit 1); exit 1; }; }
14372 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14373 if test $ac_delim_n = $ac_delim_num; then
14375 elif $ac_last_try; then
14376 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14377 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14378 { (exit 1); exit 1; }; }
14380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14383 rm -f conf$$subs.sh
14385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14386 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14390 s/^/S["/; s/!.*/"]=/
14400 s/\(.\{148\}\).*/\1/
14402 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14407 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14414 s/\(.\{148\}\).*/\1/
14416 s/["\\]/\\&/g; s/^/"/; s/$/"/
14420 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14425 ' <conf$$subs.awk | sed '
14430 ' >>$CONFIG_STATUS || ac_write_fail=1
14431 rm -f conf$$subs.awk
14432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14435 for (key in S) S_is_set[key] = 1
14441 nfields = split(line, field, "@")
14443 len = length(field[1])
14444 for (i = 2; i < nfields; i++) {
14446 keylen = length(key)
14447 if (S_is_set[key]) {
14449 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14450 len += length(value) + length(field[++i])
14461 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14462 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14463 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14466 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14467 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14468 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
14469 { (exit 1); exit 1; }; }
14472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14474 # trailing colons and then remove the whole line if VPATH becomes empty
14475 # (actually we leave an empty line to preserve line numbers).
14476 if test "x$srcdir" = x.; then
14477 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14478 s/:*\$(srcdir):*/:/
14479 s/:*\${srcdir}:*/:/
14481 s/^\([^=]*=[ ]*\):*/\1/
14487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14488 fi # test -n "$CONFIG_FILES"
14491 eval set X " :F $CONFIG_FILES "
14496 :[FHLC]) ac_mode=$ac_tag; continue;;
14498 case $ac_mode$ac_tag in
14500 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
14501 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
14502 { (exit 1); exit 1; }; };;
14503 :[FH]-) ac_tag=-:-;;
14504 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14521 -) ac_f="$tmp/stdin";;
14522 *) # Look for the file first in the build tree, then in the source tree
14523 # (if the path is not absolute). The absolute path cannot be DOS-style,
14524 # because $ac_f cannot contain `:'.
14528 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14530 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14531 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14532 { (exit 1); exit 1; }; };;
14534 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14535 ac_file_inputs="$ac_file_inputs '$ac_f'"
14538 # Let's still pretend it is `configure' which instantiates (i.e., don't
14539 # use $as_me), people would be surprised to read:
14540 # /* config.h. Generated by config.status. */
14541 configure_input='Generated from '`
14542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14544 if test x"$ac_file" != x-; then
14545 configure_input="$ac_file. $configure_input"
14546 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14547 $as_echo "$as_me: creating $ac_file" >&6;}
14549 # Neutralize special characters interpreted by sed in replacement strings.
14550 case $configure_input in #(
14551 *\&* | *\|* | *\\* )
14552 ac_sed_conf_input=`$as_echo "$configure_input" |
14553 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14554 *) ac_sed_conf_input=$configure_input;;
14558 *:-:* | *:-) cat >"$tmp/stdin" \
14559 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14560 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14561 { (exit 1); exit 1; }; } ;;
14566 ac_dir=`$as_dirname -- "$ac_file" ||
14567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14568 X"$ac_file" : 'X\(//\)[^/]' \| \
14569 X"$ac_file" : 'X\(//\)$' \| \
14570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14571 $as_echo X"$ac_file" |
14572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14576 /^X\(\/\/\)[^/].*/{
14591 -*) as_dir=./$as_dir;;
14593 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14597 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14598 *) as_qdir=$as_dir;;
14600 as_dirs="'$as_qdir' $as_dirs"
14601 as_dir=`$as_dirname -- "$as_dir" ||
14602 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14603 X"$as_dir" : 'X\(//\)[^/]' \| \
14604 X"$as_dir" : 'X\(//\)$' \| \
14605 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14606 $as_echo X"$as_dir" |
14607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14611 /^X\(\/\/\)[^/].*/{
14624 test -d "$as_dir" && break
14626 test -z "$as_dirs" || eval "mkdir $as_dirs"
14627 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14628 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14629 { (exit 1); exit 1; }; }; }
14633 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14635 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14636 # A ".." for each directory in $ac_dir_suffix.
14637 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14638 case $ac_top_builddir_sub in
14639 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14640 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14643 ac_abs_top_builddir=$ac_pwd
14644 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14645 # for backward compatibility:
14646 ac_top_builddir=$ac_top_build_prefix
14649 .) # We are building in place.
14651 ac_top_srcdir=$ac_top_builddir_sub
14652 ac_abs_top_srcdir=$ac_pwd ;;
14653 [\\/]* | ?:[\\/]* ) # Absolute name.
14654 ac_srcdir=$srcdir$ac_dir_suffix;
14655 ac_top_srcdir=$srcdir
14656 ac_abs_top_srcdir=$srcdir ;;
14657 *) # Relative name.
14658 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14659 ac_top_srcdir=$ac_top_build_prefix$srcdir
14660 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14662 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14672 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14673 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14675 ac_MKDIR_P=$MKDIR_P
14677 [\\/$]* | ?:[\\/]* ) ;;
14678 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14683 # If the template does not know about datarootdir, expand it.
14684 # FIXME: This hack should be removed a few years after 2.60.
14685 ac_datarootdir_hack=; ac_datarootdir_seen=
14698 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14699 *datarootdir*) ac_datarootdir_seen=yes;;
14700 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14701 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14702 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14705 ac_datarootdir_hack='
14706 s&@datadir@&$datadir&g
14707 s&@docdir@&$docdir&g
14708 s&@infodir@&$infodir&g
14709 s&@localedir@&$localedir&g
14710 s&@mandir@&$mandir&g
14711 s&\\\${datarootdir}&$datarootdir&g' ;;
14715 # Neutralize VPATH when `$srcdir' = `.'.
14716 # Shell code in configure.ac might set extrasub.
14717 # FIXME: do we really want to maintain this feature?
14718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14719 ac_sed_extra="$ac_vpsub
14722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14725 s|@configure_input@|$ac_sed_conf_input|;t t
14726 s&@top_builddir@&$ac_top_builddir_sub&;t t
14727 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14728 s&@srcdir@&$ac_srcdir&;t t
14729 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14730 s&@top_srcdir@&$ac_top_srcdir&;t t
14731 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14732 s&@builddir@&$ac_builddir&;t t
14733 s&@abs_builddir@&$ac_abs_builddir&;t t
14734 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14735 s&@INSTALL@&$ac_INSTALL&;t t
14736 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14737 $ac_datarootdir_hack
14739 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14740 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14741 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14742 { (exit 1); exit 1; }; }
14744 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14745 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14746 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14747 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14748 which seems to be undefined. Please make sure it is defined." >&5
14749 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14750 which seems to be undefined. Please make sure it is defined." >&2;}
14754 -) cat "$tmp/out" && rm -f "$tmp/out";;
14755 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14757 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14758 $as_echo "$as_me: error: could not create $ac_file" >&2;}
14759 { (exit 1); exit 1; }; }
14769 { (exit 0); exit 0; }
14771 chmod +x $CONFIG_STATUS
14772 ac_clean_files=$ac_clean_files_save
14774 test $ac_write_fail = 0 ||
14775 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
14776 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
14777 { (exit 1); exit 1; }; }
14780 # configure is writing to config.log, and then calls config.status.
14781 # config.status does its own redirection, appending to config.log.
14782 # Unfortunately, on DOS this fails, as config.log is still kept open
14783 # by configure, so config.status won't be able to write to it; its
14784 # output is simply discarded. So we exec the FD to /dev/null,
14785 # effectively closing config.log, so it can be properly (re)opened and
14786 # appended to by config.status. When coming back to configure, we
14787 # need to make the FD available again.
14788 if test "$no_create" != yes; then
14790 ac_config_status_args=
14791 test "$silent" = yes &&
14792 ac_config_status_args="$ac_config_status_args --quiet"
14794 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14796 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14797 # would make configure fail if this is the last instruction.
14798 $ac_cs_success || { (exit 1); exit 1; }
14800 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14801 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14802 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}