2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for charybdis 3.0.0-alpha1.
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir -p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554 exec 7<&0 </dev
/null
6>&1
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
564 ac_default_prefix
=/usr
/local
566 ac_config_libobj_dir
=.
572 SHELL
=${CONFIG_SHELL-/bin/sh}
574 # Identity of this package.
575 PACKAGE_NAME
='charybdis'
576 PACKAGE_TARNAME
='charybdis'
577 PACKAGE_VERSION
='3.0.0-alpha1'
578 PACKAGE_STRING
='charybdis 3.0.0-alpha1'
581 ac_default_prefix
=$HOME/ircd
582 # Factoring default headers for most tests.
583 ac_includes_default
="\
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
595 # ifdef HAVE_STDLIB_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
627 program_transform_name
712 ac_precious_vars
='build_alias
723 ac_subdirs_all
='libratbox'
725 # Initialize some variables set by options.
727 ac_init_version
=false
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
737 program_transform_name
=s
,x
,x
,
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir
='${exec_prefix}/bin'
752 sbindir
='${exec_prefix}/sbin'
753 libexecdir
='${exec_prefix}/libexec'
754 datarootdir
='${prefix}/share'
755 datadir
='${datarootdir}'
756 sysconfdir
='${prefix}/etc'
757 sharedstatedir
='${prefix}/com'
758 localstatedir
='${prefix}/var'
759 includedir
='${prefix}/include'
760 oldincludedir
='/usr/include'
761 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir
='${datarootdir}/info'
767 libdir
='${exec_prefix}/lib'
768 localedir
='${datarootdir}/locale'
769 mandir
='${datarootdir}/man'
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\
$ac_option
783 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
787 # Accept the important Cygnus configure options, so we can diagnose typos.
789 case $ac_dashdash$ac_option in
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798 -build | --build | --buil | --bui | --bu)
799 ac_prev
=build_alias
;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias
=$ac_optarg ;;
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev
=cache_file
;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file
=$ac_optarg ;;
811 cache_file
=config.cache
;;
813 -datadir | --datadir | --datadi | --datad)
815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
816 datadir
=$ac_optarg ;;
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev
=datarootdir
;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir
=$ac_optarg ;;
825 -disable-* | --disable-*)
826 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
829 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
830 { (exit 1); exit 1; }; }
831 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
832 eval enable_
$ac_feature=no
;;
834 -docdir | --docdir | --docdi | --doc | --do)
836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844 -enable-* | --enable-*)
845 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_
$ac_feature=\
$ac_optarg ;;
853 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855 | --exec | --exe | --ex)
856 ac_prev
=exec_prefix
;;
857 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859 | --exec=* | --exe=* | --ex=*)
860 exec_prefix
=$ac_optarg ;;
862 -gas | --gas | --ga | --g)
863 # Obsolete; use --with-gas.
866 -help | --help | --hel | --he | -h)
868 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
869 ac_init_help
=recursive
;;
870 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
871 ac_init_help
=short
;;
873 -host | --host | --hos | --ho)
874 ac_prev
=host_alias
;;
875 -host=* | --host=* | --hos=* | --ho=*)
876 host_alias
=$ac_optarg ;;
878 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882 htmldir
=$ac_optarg ;;
884 -includedir | --includedir | --includedi | --included | --include \
885 | --includ | --inclu | --incl | --inc)
886 ac_prev
=includedir
;;
887 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888 | --includ=* | --inclu=* | --incl=* | --inc=*)
889 includedir
=$ac_optarg ;;
891 -infodir | --infodir | --infodi | --infod | --info | --inf)
893 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894 infodir
=$ac_optarg ;;
896 -libdir | --libdir | --libdi | --libd)
898 -libdir=* | --libdir=* | --libdi=* | --libd=*)
901 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902 | --libexe | --libex | --libe)
903 ac_prev
=libexecdir
;;
904 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905 | --libexe=* | --libex=* | --libe=*)
906 libexecdir
=$ac_optarg ;;
908 -localedir | --localedir | --localedi | --localed | --locale)
910 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911 localedir
=$ac_optarg ;;
913 -localstatedir | --localstatedir | --localstatedi | --localstated \
914 | --localstate | --localstat | --localsta | --localst | --locals)
915 ac_prev
=localstatedir
;;
916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918 localstatedir
=$ac_optarg ;;
920 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
926 # Obsolete; use --without-fp.
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c | -n)
933 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939 | --oldin | --oldi | --old | --ol | --o)
940 ac_prev
=oldincludedir
;;
941 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944 oldincludedir
=$ac_optarg ;;
946 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951 -program-prefix | --program-prefix | --program-prefi | --program-pref \
952 | --program-pre | --program-pr | --program-p)
953 ac_prev
=program_prefix
;;
954 -program-prefix=* | --program-prefix=* | --program-prefi=* \
955 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956 program_prefix
=$ac_optarg ;;
958 -program-suffix | --program-suffix | --program-suffi | --program-suff \
959 | --program-suf | --program-su | --program-s)
960 ac_prev
=program_suffix
;;
961 -program-suffix=* | --program-suffix=* | --program-suffi=* \
962 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963 program_suffix
=$ac_optarg ;;
965 -program-transform-name | --program-transform-name \
966 | --program-transform-nam | --program-transform-na \
967 | --program-transform-n | --program-transform- \
968 | --program-transform | --program-transfor \
969 | --program-transfo | --program-transf \
970 | --program-trans | --program-tran \
971 | --progr-tra | --program-tr | --program-t)
972 ac_prev
=program_transform_name
;;
973 -program-transform-name=* | --program-transform-name=* \
974 | --program-transform-nam=* | --program-transform-na=* \
975 | --program-transform-n=* | --program-transform-=* \
976 | --program-transform=* | --program-transfor=* \
977 | --program-transfo=* | --program-transf=* \
978 | --program-trans=* | --program-tran=* \
979 | --progr-tra=* | --program-tr=* | --program-t=*)
980 program_transform_name
=$ac_optarg ;;
982 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987 -psdir | --psdir | --psdi | --psd | --ps)
989 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993 | -silent | --silent | --silen | --sile | --sil)
996 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000 sbindir
=$ac_optarg ;;
1002 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004 | --sharedst | --shareds | --shared | --share | --shar \
1006 ac_prev
=sharedstatedir
;;
1007 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011 sharedstatedir
=$ac_optarg ;;
1013 -site | --site | --sit)
1015 -site=* | --site=* | --sit=*)
1018 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021 srcdir
=$ac_optarg ;;
1023 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024 | --syscon | --sysco | --sysc | --sys | --sy)
1025 ac_prev
=sysconfdir
;;
1026 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028 sysconfdir
=$ac_optarg ;;
1030 -target | --target | --targe | --targ | --tar | --ta | --t)
1031 ac_prev
=target_alias
;;
1032 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033 target_alias
=$ac_optarg ;;
1035 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038 -version | --version | --versio | --versi | --vers | -V)
1039 ac_init_version
=: ;;
1042 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_
$ac_package=\
$ac_optarg ;;
1050 -without-* | --without-*)
1051 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1057 eval with_
$ac_package=no
;;
1060 # Obsolete; use --with-x.
1063 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1064 | --x-incl | --x-inc | --x-in | --x-i)
1065 ac_prev
=x_includes
;;
1066 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1067 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1068 x_includes
=$ac_optarg ;;
1070 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1071 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1072 ac_prev
=x_libraries
;;
1073 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1074 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1075 x_libraries
=$ac_optarg ;;
1077 -*) { echo "$as_me: error: unrecognized option: $ac_option
1078 Try \`$0 --help' for more information." >&2
1079 { (exit 1); exit 1; }; }
1083 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1086 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1087 { (exit 1); exit 1; }; }
1088 eval $ac_envvar=\
$ac_optarg
1089 export $ac_envvar ;;
1092 # FIXME: should be removed in autoconf 3.0.
1093 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1094 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1095 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1096 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1102 if test -n "$ac_prev"; then
1103 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1104 { echo "$as_me: error: missing argument to $ac_option" >&2
1105 { (exit 1); exit 1; }; }
1108 # Be sure to have absolute directory names.
1109 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110 datadir sysconfdir sharedstatedir localstatedir includedir \
1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112 libdir localedir mandir
1114 eval ac_val
=\$
$ac_var
1116 [\\/$
]* | ?
:[\\/]* ) continue;;
1117 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1119 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1120 { (exit 1); exit 1; }; }
1123 # There might be people who depend on the old broken behavior: `$host'
1124 # used to hold the argument of --host etc.
1125 # FIXME: To remove some day.
1128 target
=$target_alias
1130 # FIXME: To remove some day.
1131 if test "x$host_alias" != x
; then
1132 if test "x$build_alias" = x
; then
1133 cross_compiling
=maybe
1134 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1135 If a cross compiler is detected then cross compile mode will be used." >&2
1136 elif test "x$build_alias" != "x$host_alias"; then
1142 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1144 test "$silent" = yes && exec 6>/dev
/null
1147 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1148 ac_ls_di
=`ls -di .` &&
1149 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1150 { echo "$as_me: error: Working directory cannot be determined" >&2
1151 { (exit 1); exit 1; }; }
1152 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1153 { echo "$as_me: error: pwd does not report name of working directory" >&2
1154 { (exit 1); exit 1; }; }
1157 # Find the source files, if location was not specified.
1158 if test -z "$srcdir"; then
1159 ac_srcdir_defaulted
=yes
1160 # Try the directory containing this script, then the parent directory.
1161 ac_confdir
=`$as_dirname -- "$0" ||
1162 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163 X"$0" : 'X\(//\)[^/]' \| \
1164 X"$0" : 'X\(//\)$' \| \
1165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1189 ac_srcdir_defaulted
=no
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1192 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1193 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1194 { (exit 1); exit 1; }; }
1196 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1199 { (exit 1); exit 1; }; }
1201 # When building in place, set srcdir=.
1202 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205 # Remove unnecessary trailing slashes from srcdir.
1206 # Double slashes in file names in object file debugging info
1207 # mess up M-x gdb in Emacs.
1209 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 for ac_var
in $ac_precious_vars; do
1212 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1213 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1214 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1215 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1219 # Report the --help message.
1221 if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1225 \`configure' configures charybdis 3.0.0-alpha1 to adapt to many kinds of systems.
1227 Usage: $0 [OPTION]... [VAR=VALUE]...
1229 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230 VAR=VALUE. See below for descriptions of some of the useful variables.
1232 Defaults for the options are specified in brackets.
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1245 Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1251 By default, \`make install' will install all the files in
1252 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254 for instance \`--prefix=\$HOME'.
1256 For better control, use the options below.
1258 Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
1284 if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short
| recursive
) echo "Configuration of charybdis 3.0.0-alpha1:";;
1291 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1292 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1293 --enable-ipv6 Enable IPv6 support
1294 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1295 --disable-openssl Disable OpenSSL support.
1296 --disable-zlib Disable ziplinks support
1297 --enable-ports Force solaris I
/O ports subsystem usage.
1298 --enable-poll Force poll
() usage.
1299 --enable-select Force
select() usage.
1300 --enable-kqueue Force kqueue
() usage.
1301 --enable-epoll Force sys_epoll usage
(Linux only
).
1302 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1303 hard
(aborts the daemon
)
1304 --enable-iodebug Enable IO Debugging hooks
1305 --enable-profile Enable profiling
1306 --disable-balloc Disable the block allocator.
1307 --enable-small-net Enable small network support.
1308 --enable-warnings Enable all sorts of warnings
for debugging.
1311 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1312 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1313 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1314 --with-confdir=DIR Directory to
install config files.
1315 --with-logdir=DIR Directory where to
write logfiles.
1316 --with-helpdir=DIR Directory to
install help files.
1317 --with-moduledir=DIR Directory to
install modules.
1318 --with-nicklen=LENGTH Set the nick length to LENGTH
(default
15, max
50)
1319 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1322 Some influential environment variables
:
1323 CC C compiler
command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1326 nonstandard directory
<lib dir
>
1327 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1328 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1329 you have headers
in a nonstandard directory
<include dir
>
1331 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1332 the first program found out of: `bison
-y', `byacc', `yacc'.
1333 YFLAGS The list of arguments that will be passed by default to $YACC.
1334 This script will default YFLAGS to the empty string to avoid a
1335 default value of `-d' given by some make applications.
1337 Use these variables to override the choices made by `configure' or to
help
1338 it to
find libraries and programs with nonstandard names
/locations.
1344 if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1347 test -d "$ac_dir" || continue
1351 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1353 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1358 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1361 ac_abs_top_builddir
=$ac_pwd
1362 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir
=$ac_top_build_prefix
1367 .
) # We are building in place.
1369 ac_top_srcdir
=$ac_top_builddir_sub
1370 ac_abs_top_srcdir
=$ac_pwd ;;
1371 [\\/]* | ?
:[\\/]* ) # Absolute name.
1372 ac_srcdir
=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir
=$srcdir
1374 ac_abs_top_srcdir
=$srcdir ;;
1376 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1380 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1382 cd "$ac_dir" || { ac_status
=$?
; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1393 cd "$ac_pwd" || { ac_status
=$?
; break; }
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1400 charybdis configure
3.0.0-alpha1
1401 generated by GNU Autoconf
2.61
1403 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1404 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1405 This configure
script is free software
; the Free Software Foundation
1406 gives unlimited permission to copy
, distribute and modify it.
1408 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1412 cat >config.log
<<_ACEOF
1413 This file contains any messages produced by compilers while
1414 running configure, to aid debugging if configure makes a mistake.
1416 It was created by charybdis $as_me 3.0.0-alpha1, which was
1417 generated by GNU Autoconf 2.61. Invocation command line was
1429 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1435 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1436 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1438 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1439 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1440 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1441 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1442 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1443 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1444 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1452 test -z "$as_dir" && as_dir
=.
1453 echo "PATH: $as_dir"
1469 # Keep a trace of the command line.
1470 # Strip out --no-create and --no-recursion so they do not pile up.
1471 # Strip out --silent because we don't want to record it for future runs.
1472 # Also quote any args containing shell meta-characters.
1473 # Make two passes to allow for proper duplicate-argument suppression.
1477 ac_must_keep_next
=false
1483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485 | -silent | --silent | --silen | --sile | --sil)
1488 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1493 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1494 if test $ac_must_keep_next = true
; then
1495 ac_must_keep_next
=false
# Got value, back to normal.
1498 *=* | --config-cache | -C | -disable-* | --disable-* \
1499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1501 | -with-* | --with-* | -without-* | --without-* | --x)
1502 case "$ac_configure_args0 " in
1503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1506 -* ) ac_must_keep_next
=true
;;
1509 ac_configure_args
="$ac_configure_args '$ac_arg'"
1514 $as_unset ac_configure_args0
|| test "${ac_configure_args0+set}" != set || { ac_configure_args0
=; export ac_configure_args0
; }
1515 $as_unset ac_configure_args1
|| test "${ac_configure_args1+set}" != set || { ac_configure_args1
=; export ac_configure_args1
; }
1517 # When interrupted or exit'd, cleanup temporary files, and complete
1518 # config.log. We remove comments because anyway the quotes in there
1519 # would cause problems or look ugly.
1520 # WARNING: Use '\'' to represent an apostrophe within the trap.
1521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1522 trap 'exit_status=$?
1523 # Save into config.log some information that might help in debugging.
1528 ## ---------------- ##
1529 ## Cache variables. ##
1530 ## ---------------- ##
1533 # The following way of writing the cache mishandles newlines in values,
1535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1536 eval ac_val=\$$ac_var
1540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1544 _ | IFS | as_nl) ;; #(
1545 *) $as_unset $ac_var ;;
1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
1553 "s/'\''/'\''\\\\'\'''\''/g;
1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1565 ## ----------------- ##
1566 ## Output variables. ##
1567 ## ----------------- ##
1570 for ac_var in $ac_subst_vars
1572 eval ac_val=\$$ac_var
1574 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 echo "$ac_var='\''$ac_val'\''"
1580 if test -n "$ac_subst_files"; then
1582 ## ------------------- ##
1583 ## File substitutions. ##
1584 ## ------------------- ##
1587 for ac_var
in $ac_subst_files
1589 eval ac_val
=\$
$ac_var
1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593 echo "$ac_var='\''$ac_val'\''"
1598 if test -s confdefs.h; then
1608 test "$ac_signal" != 0 &&
1609 echo "$as_me: caught signal $ac_signal"
1610 echo "$as_me: exit $exit_status"
1612 rm -f core *.core core.conftest.* &&
1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1616 for ac_signal
in 1 2 13 15; do
1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1621 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1622 rm -f -r conftest
* confdefs.h
1624 # Predefined preprocessor variables.
1626 cat >>confdefs.h
<<_ACEOF
1627 #define PACKAGE_NAME "$PACKAGE_NAME"
1631 cat >>confdefs.h
<<_ACEOF
1632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1636 cat >>confdefs.h
<<_ACEOF
1637 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1641 cat >>confdefs.h
<<_ACEOF
1642 #define PACKAGE_STRING "$PACKAGE_STRING"
1646 cat >>confdefs.h
<<_ACEOF
1647 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1651 # Let the site file select an alternate cache file if it wants to.
1652 # Prefer explicitly selected file to automatically selected ones.
1653 if test -n "$CONFIG_SITE"; then
1654 set x
"$CONFIG_SITE"
1655 elif test "x$prefix" != xNONE
; then
1656 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1658 set x
"$ac_default_prefix/share/config.site" \
1659 "$ac_default_prefix/etc/config.site"
1664 if test -r "$ac_site_file"; then
1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1666 echo "$as_me: loading site script $ac_site_file" >&6;}
1667 sed 's/^/| /' "$ac_site_file" >&5
1672 if test -r "$cache_file"; then
1673 # Some versions of bash will fail to source /dev/null (special
1674 # files actually), so we avoid doing that.
1675 if test -f "$cache_file"; then
1676 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1677 echo "$as_me: loading cache $cache_file" >&6;}
1679 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1680 *) .
"./$cache_file";;
1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1685 echo "$as_me: creating cache $cache_file" >&6;}
1689 # Check that the precious variables saved in the cache have kept the same
1691 ac_cache_corrupted
=false
1692 for ac_var
in $ac_precious_vars; do
1693 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1694 eval ac_new_set
=\
$ac_env_${ac_var}_set
1695 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1696 eval ac_new_val
=\
$ac_env_${ac_var}_value
1697 case $ac_old_set,$ac_new_set in
1699 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1700 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1701 ac_cache_corrupted
=: ;;
1703 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1704 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1705 ac_cache_corrupted
=: ;;
1708 if test "x$ac_old_val" != "x$ac_new_val"; then
1709 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1710 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1712 echo "$as_me: former value: $ac_old_val" >&2;}
1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1714 echo "$as_me: current value: $ac_new_val" >&2;}
1715 ac_cache_corrupted
=:
1718 # Pass precious variables to config.status.
1719 if test "$ac_new_set" = set; then
1721 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 *) ac_arg
=$ac_var=$ac_new_val ;;
1724 case " $ac_configure_args " in
1725 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1726 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1730 if $ac_cache_corrupted; then
1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1732 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1733 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1734 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1735 { (exit 1); exit 1; }; }
1763 ac_cpp
='$CPP $CPPFLAGS'
1764 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1770 ac_config_headers
="$ac_config_headers include/setup.h"
1776 cat >>confdefs.h
<<\_ACEOF
1777 #define _GNU_SOURCE 1
1782 OLD_CFLAGS
="$CFLAGS"
1784 ac_cpp
='$CPP $CPPFLAGS'
1785 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1788 if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC
="$CC" # Let the user override the test.
1799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1803 test -z "$as_dir" && as_dir
=.
1804 for ac_exec_ext
in '' $ac_executable_extensions; do
1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1806 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 if test -n "$CC"; then
1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6; }
1821 { echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6; }
1827 if test -z "$ac_cv_prog_CC"; then
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc
; ac_word
=$2
1831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1839 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir
=.
1844 for ac_exec_ext
in '' $ac_executable_extensions; do
1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1846 ac_cv_prog_ac_ct_CC
="gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6; }
1861 { echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6; }
1865 if test "x$ac_ct_CC" = x
; then
1868 case $cross_compiling:$ac_tool_warned in
1870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1871 whose name does not start with the host triplet. If you think this
1872 configuration is useful to you, please write to autoconf@gnu.org." >&5
1873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1874 whose name does not start with the host triplet. If you think this
1875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876 ac_tool_warned
=yes ;;
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC
="$CC" # Let the user override the test.
1896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir
=.
1901 for ac_exec_ext
in '' $ac_executable_extensions; do
1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914 if test -n "$CC"; then
1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6; }
1918 { echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6; }
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc
; ac_word
=$2
1928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC
="$CC" # Let the user override the test.
1937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1941 test -z "$as_dir" && as_dir
=.
1942 for ac_exec_ext
in '' $ac_executable_extensions; do
1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected
=yes
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1956 if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy
$ac_cv_prog_CC
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1965 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1971 if test -n "$CC"; then
1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6; }
1975 { echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6; }
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog
in cl.exe
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC
="$CC" # Let the user override the test.
1995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1999 test -z "$as_dir" && as_dir
=.
2000 for ac_exec_ext
in '' $ac_executable_extensions; do
2001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2013 if test -n "$CC"; then
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6; }
2017 { echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6; }
2022 test -n "$CC" && break
2025 if test -z "$CC"; then
2027 for ac_prog
in cl.exe
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy
$ac_prog; ac_word
=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir
=.
2044 for ac_exec_ext
in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_ac_ct_CC
="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6; }
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2066 test -n "$ac_ct_CC" && break
2069 if test "x$ac_ct_CC" = x
; then
2072 case $cross_compiling:$ac_tool_warned in
2074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&5
2077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2080 ac_tool_warned
=yes ;;
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO: checking for C compiler version" >&5
2097 ac_compiler
=`set X $ac_compile; echo $2`
2098 { (ac_try
="$ac_compiler --version >&5"
2100 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -v >&5"
2110 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2111 *) ac_try_echo
=$ac_try;;
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (ac_try
="$ac_compiler -V >&5"
2120 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2129 cat >conftest.$ac_ext <<_ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2144 ac_clean_files_save=$ac_clean_files
2145 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2149 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153 # List of possible output files, starting from the most likely.
2154 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2155 # only as a last resort. b.out is created by i960 compilers.
2156 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2158 # The IRIX 6 linker writes into existing files which may not be
2159 # executable, retaining their permissions. Remove them first so a
2160 # subsequent execution test works.
2162 for ac_file in $ac_files
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2171 if { (ac_try="$ac_link_default"
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_link_default") 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2184 # so that the user can short-circuit this test for compilers unknown to
2186 for ac_file
in $ac_files ''
2188 test -f "$ac_file" || continue
2190 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
)
2193 # We found the default executable, but exeext='' is most
2197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2199 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2211 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6; }
2219 if test -z "$ac_file"; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.
$ac_ext >&5
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2230 ac_exeext
=$ac_cv_exeext
2232 # Check that the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try
='./$ac_file'
2240 { (case "(($ac_try" in
2241 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_try") 2>&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2251 if test "$cross_compiling" = maybe; then
2254 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details.
" >&5
2257 echo "$as_me: error
: cannot run C compiled programs.
2258 If you meant to cross compile
, use \
`--host'.
2259 See \`config.log
' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check that the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_link") 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2289 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2292 for ac_file
in conftest.exe conftest conftest.
*; do
2293 test -f "$ac_file" || continue
2295 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
) ;;
2296 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2309 rm -f conftest
$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2313 rm -f conftest.
$ac_ext
2314 EXEEXT
=$ac_cv_exeext
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 cat >conftest.
$ac_ext <<_ACEOF
2324 cat confdefs.h
>>conftest.
$ac_ext
2325 cat >>conftest.
$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try
="$ac_compile"
2339 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_compile") 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log
' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details.
" >&2;}
2363 { (exit 1); exit 1; }; }
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2368 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached
) $ECHO_C" >&6
2377 cat >conftest.$ac_ext <<_ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compile") 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2408 (exit $ac_status); } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then
2414 echo "$as_me: failed program was
:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
2427 ac_test_CFLAGS=${CFLAGS+set}
2428 ac_save_CFLAGS=$CFLAGS
2429 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2430 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached
) $ECHO_C" >&6
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.$ac_objext
2454 if { (ac_try="$ac_compile"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2466 (exit $ac_status); } && {
2467 test -z "$ac_c_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest.$ac_objext; then
2472 echo "$as_me: failed program was
:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2476 cat >conftest.$ac_ext <<_ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2491 rm -f conftest.$ac_objext
2492 if { (ac_try="$ac_compile"
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_compile") 2>conftest.er1
2500 grep -v '^ *+' conftest.er1 >conftest.err
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2504 (exit $ac_status); } && {
2505 test -z "$ac_c_werror_flag" ||
2506 test ! -s conftest.err
2507 } && test -s conftest.$ac_objext; then
2510 echo "$as_me: failed program was
:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2513 ac_c_werror_flag=$ac_save_c_werror_flag
2515 cat >conftest.$ac_ext <<_ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2530 rm -f conftest.$ac_objext
2531 if { (ac_try="$ac_compile"
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>conftest.er1
2539 grep -v '^ *+' conftest.er1 >conftest.err
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
2549 echo "$as_me: failed program was
:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 ac_c_werror_flag=$ac_save_c_werror_flag
2564 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2566 if test "$ac_test_CFLAGS" = set; then
2567 CFLAGS=$ac_save_CFLAGS
2568 elif test $ac_cv_prog_cc_g = yes; then
2569 if test "$GCC" = yes; then
2575 if test "$GCC" = yes; then
2581 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2582 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2583 if test "${ac_cv_prog_cc_c89+set}" = set; then
2584 echo $ECHO_N "(cached
) $ECHO_C" >&6
2586 ac_cv_prog_cc_c89=no
2588 cat >conftest.$ac_ext <<_ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2596 #include <sys/types.h>
2597 #include <sys/stat.h>
2598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2599 struct buf { int x; };
2600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601 static char *e (p, i)
2607 static char *f (char * (*g) (char **, int), char **p, ...)
2612 s = g (p, va_arg (v,int));
2617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2618 function prototypes and stuff, but not '\xHH' hex character constants.
2619 These don't provoke an error unfortunately, instead are silently treated
2620 as 'x'. The following induces an error, until -std is added to get
2621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2622 array size at least. It's necessary to write '\x00'==0 to get something
2623 that's true only with -std. */
2624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2627 inside strings and character constants. */
2629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2631 int test (int i, double x);
2632 struct s1 {int (*f) (int a);};
2633 struct s2 {int (*f) (double a);};
2634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
2650 if { (ac_try="$ac_compile"
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compile") 2>conftest.er1
2658 grep -v '^ *+' conftest.er1 >conftest.err
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2662 (exit $ac_status); } && {
2663 test -z "$ac_c_werror_flag" ||
2664 test ! -s conftest.err
2665 } && test -s conftest.$ac_objext; then
2666 ac_cv_prog_cc_c89=$ac_arg
2668 echo "$as_me: failed program was
:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2674 rm -f core conftest.err conftest.$ac_objext
2675 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2677 rm -f conftest.$ac_ext
2682 case "x
$ac_cv_prog_cc_c89" in
2684 { echo "$as_me:$LINENO: result
: none needed
" >&5
2685 echo "${ECHO_T}none needed
" >&6; } ;;
2687 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2688 echo "${ECHO_T}unsupported
" >&6; } ;;
2690 CC="$CC $ac_cv_prog_cc_c89"
2691 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2692 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709 CFLAGS="$OLD_CFLAGS"
2712 for ac_dir in "$srcdir" "$srcdir/..
" "$srcdir/..
/..
"; do
2713 if test -f "$ac_dir/install-sh"; then
2715 ac_install_sh="$ac_aux_dir/install-sh -c"
2717 elif test -f "$ac_dir/install.sh
"; then
2719 ac_install_sh="$ac_aux_dir/install.sh
-c"
2721 elif test -f "$ac_dir/shtool
"; then
2723 ac_install_sh="$ac_aux_dir/shtool
install -c"
2727 if test -z "$ac_aux_dir"; then
2728 { { echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&5
2729 echo "$as_me: error
: cannot
find install-sh or
install.sh
in \"$srcdir\" \"$srcdir/..
\" \"$srcdir/..
/..
\"" >&2;}
2730 { (exit 1); exit 1; }; }
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2742 subdirs="$subdirs libratbox
"
2746 if test "$ac_cv_c_compiler_gnu" != yes; then
2749 { echo "$as_me:$LINENO: checking
$CC -version for TenDRA or MIPSpro
" >&5
2750 echo $ECHO_N "checking
$CC -version for TenDRA or MIPSpro...
$ECHO_C" >&6; }
2751 case `$CC -version 2>&1` in
2753 { echo "$as_me:$LINENO: result
: yes, TenDRA
" >&5
2754 echo "${ECHO_T}yes, TenDRA
" >&6; }
2756 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr
/include
"
2761 { echo "$as_me:$LINENO: result
: yes, MIPSpro
" >&5
2762 echo "${ECHO_T}yes, MIPSpro
" >&6; }
2767 { echo "$as_me:$LINENO: result
: no
" >&5
2768 echo "${ECHO_T}no
" >&6; }
2774 { echo "$as_me:$LINENO: checking
$CC -V for Sun Workshop
, Forte
, HPUX or Tru64 cc
" >&5
2775 echo $ECHO_N "checking
$CC -V for Sun Workshop
, Forte
, HPUX or Tru64 cc...
$ECHO_C" >&6; }
2776 case `$CC -V 2>&1` in
2777 *Sun*WorkShop* | *Forte*Developer*)
2778 { echo "$as_me:$LINENO: result
: Sun Workshop
/Forte
" >&5
2779 echo "${ECHO_T}Sun Workshop
/Forte
" >&6; }
2780 IRC_CFLAGS="-fast -xinline=dlinkAdd
,dlinkAddBefore
,dlinkAddTail
,dlinkDelete
,dlink_list_length
,dlink_node
,dlinkMoveList
,_MyMalloc
,_MyRealloc
,_MyFree
,_DupString
"
2785 { echo "$as_me:$LINENO: result
: Tru64 cc
" >&5
2786 echo "${ECHO_T}Tru64 cc
" >&6; }
2788 CPPFLAGS="-I/usr
/local
/include
"
2792 { echo "$as_me:$LINENO: result
: HPUX cc
" >&5
2793 echo "${ECHO_T}HPUX cc
" >&6; }
2798 { echo "$as_me:$LINENO: result
: no
" >&5
2799 echo "${ECHO_T}no
" >&6; }
2805 { echo "$as_me:$LINENO: checking uname
-s for Cygwin
, Solaris
, AIX or HPUX
" >&5
2806 echo $ECHO_N "checking uname
-s for Cygwin
, Solaris
, AIX or HPUX...
$ECHO_C" >&6; }
2811 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2812 { echo "$as_me:$LINENO: result
: assuming old HPUX with its own cc
" >&5
2813 echo "${ECHO_T}assuming old HPUX with its own cc
" >&6; }
2814 IRC_CFLAGS="$IRC_CFLAGS +e
"
2817 { echo "$as_me:$LINENO: result
: already using newer HPUX
" >&5
2818 echo "${ECHO_T}already using newer HPUX
" >&6; }
2822 { echo "$as_me:$LINENO: result
: Cygwin
" >&5
2823 echo "${ECHO_T}Cygwin
" >&6; }
2827 { echo "$as_me:$LINENO: result
: SunOS or Solaris
" >&5
2828 echo "${ECHO_T}SunOS or Solaris
" >&6; }
2830 cat >>confdefs.h <<\_ACEOF
2831 #define __EXTENSIONS__ 1
2837 { echo "$as_me:$LINENO: result
: AIX
- Sorry you poor bastard..really we are
" >&5
2838 echo "${ECHO_T}AIX
- Sorry you poor bastard..really we are
" >&6; }
2839 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2842 { echo "$as_me:$LINENO: result
: no
" >&5
2843 echo "${ECHO_T}no
" >&6; }
2847 if test "$ac_cv_c_compiler_gnu" = yes; then
2848 { echo "$as_me:$LINENO: checking
if $CC is Apple GCC
" >&5
2849 echo $ECHO_N "checking
if $CC is Apple GCC...
$ECHO_C" >&6; }
2851 case `$CC -v 2>&1 | tail -n 1` in
2853 { echo "$as_me:$LINENO: result
: yes" >&5
2854 echo "${ECHO_T}yes" >&6; }
2858 { echo "$as_me:$LINENO: result
: no
" >&5
2859 echo "${ECHO_T}no
" >&6; }
2864 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
2867 if test "$ac_cv_prog_cc_g" = yes; then
2868 if test "$Tru" = yes; then
2869 IRC_CFLAGS="$IRC_CFLAGS -g3"
2871 IRC_CFLAGS="$IRC_CFLAGS -g"
2875 { echo "$as_me:$LINENO: checking
if $CC supports the SVR4 SGS interfaces
" >&5
2876 echo $ECHO_N "checking
if $CC supports the SVR4 SGS interfaces...
$ECHO_C" >&6; }
2877 if test "$SGS" = "yes"; then
2878 { echo "$as_me:$LINENO: result
: yes" >&5
2879 echo "${ECHO_T}yes" >&6; }
2881 { echo "$as_me:$LINENO: result
: no
" >&5
2882 echo "${ECHO_T}no
" >&6; }
2885 # Extract the first word of "mkdep
", so it can be a program name with args.
2886 set dummy mkdep; ac_word=$2
2887 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2888 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2889 if test "${ac_cv_path_MKDEP+set}" = set; then
2890 echo $ECHO_N "(cached
) $ECHO_C" >&6
2894 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2905 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2915 MKDEP=$ac_cv_path_MKDEP
2916 if test -n "$MKDEP"; then
2917 { echo "$as_me:$LINENO: result
: $MKDEP" >&5
2918 echo "${ECHO_T}$MKDEP" >&6; }
2920 { echo "$as_me:$LINENO: result
: no
" >&5
2921 echo "${ECHO_T}no
" >&6; }
2925 # Extract the first word of "makedepend
", so it can be a program name with args.
2926 set dummy makedepend; ac_word=$2
2927 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2928 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2929 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2930 echo $ECHO_N "(cached
) $ECHO_C" >&6
2934 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2945 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2955 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2956 if test -n "$MAKEDEPEND"; then
2957 { echo "$as_me:$LINENO: result
: $MAKEDEPEND" >&5
2958 echo "${ECHO_T}$MAKEDEPEND" >&6; }
2960 { echo "$as_me:$LINENO: result
: no
" >&5
2961 echo "${ECHO_T}no
" >&6; }
2966 { echo "$as_me:$LINENO: checking how to generate dependency info
" >&5
2967 echo $ECHO_N "checking how to generate dependency info...
$ECHO_C" >&6; }
2971 if test "$ac_cv_c_compiler_gnu" = yes; then
2972 { echo "$as_me:$LINENO: result
: gcc
-MM" >&5
2973 echo "${ECHO_T}gcc
-MM" >&6; }
2975 elif test ! -z "$MKDEP"; then
2976 { echo "$as_me:$LINENO: result
: mkdep
" >&5
2977 echo "${ECHO_T}mkdep
" >&6; }
2979 if test -z "$Tru"; then
2982 STDOUT=" 2> /dev
/null
"
2984 elif test "$SunWorkShop" = yes; then
2985 { echo "$as_me:$LINENO: result
: $CC -xM" >&5
2986 echo "${ECHO_T}$CC -xM" >&6; }
2988 STDOUT="> .depend
2> /dev
/null
"
2989 elif test ! -z "$MAKEDEPEND"; then
2990 { echo "$as_me:$LINENO: result
: makedepend
" >&5
2991 echo "${ECHO_T}makedepend
" >&6; }
2992 MKDEP="$MAKEDEPEND -f-"
2994 { echo "$as_me:$LINENO: result
: nothing suitable.. forget it
!" >&5
2995 echo "${ECHO_T}nothing suitable.. forget it
!" >&6; }
3002 { echo "$as_me:$LINENO: checking
for /dev
/null
" >&5
3003 echo $ECHO_N "checking
for /dev
/null...
$ECHO_C" >&6; }
3004 if test -c /dev/null ; then
3006 cat >>confdefs.h <<\_ACEOF
3007 #define PATH_DEVNULL "/dev
/null
"
3010 { echo "$as_me:$LINENO: result
: yes" >&5
3011 echo "${ECHO_T}yes" >&6; }
3014 cat >>confdefs.h <<\_ACEOF
3015 #define PATH_DEVNULL "devnull.log
"
3018 { echo "$as_me:$LINENO: result
: no
- using devnull.log
" >&5
3019 echo "${ECHO_T}no
- using devnull.log
" >&6; }
3022 if test ! -z "$CFLAGS"; then
3023 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
3027 { echo "$as_me:$LINENO: checking
for library containing strerror
" >&5
3028 echo $ECHO_N "checking
for library containing strerror...
$ECHO_C" >&6; }
3029 if test "${ac_cv_search_strerror+set}" = set; then
3030 echo $ECHO_N "(cached
) $ECHO_C" >&6
3032 ac_func_search_save_LIBS=$LIBS
3033 cat >conftest.$ac_ext <<_ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3040 /* Override any GCC internal prototype to avoid an error.
3041 Use char because int might match the return type of a GCC
3042 builtin and then its argument prototype would still apply. */
3055 for ac_lib in '' cposix; do
3056 if test -z "$ac_lib"; then
3057 ac_res="none required
"
3060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3062 rm -f conftest.$ac_objext conftest$ac_exeext
3063 if { (ac_try="$ac_link"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_link") 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest$ac_exeext &&
3079 $as_test_x conftest$ac_exeext; then
3080 ac_cv_search_strerror=$ac_res
3082 echo "$as_me: failed program was
:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3090 if test "${ac_cv_search_strerror+set}" = set; then
3094 if test "${ac_cv_search_strerror+set}" = set; then
3097 ac_cv_search_strerror=no
3100 LIBS=$ac_func_search_save_LIBS
3102 { echo "$as_me:$LINENO: result
: $ac_cv_search_strerror" >&5
3103 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3104 ac_res=$ac_cv_search_strerror
3105 if test "$ac_res" != no; then
3106 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
3110 { echo "$as_me:$LINENO: checking
for inline
" >&5
3111 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3112 if test "${ac_cv_c_inline+set}" = set; then
3113 echo $ECHO_N "(cached
) $ECHO_C" >&6
3116 for ac_kw in inline __inline__ __inline; do
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3125 static $ac_kw foo_t static_foo () {return 0; }
3126 $ac_kw foo_t foo () {return 0; }
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 ac_cv_c_inline=$ac_kw
3149 echo "$as_me: failed program was
:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 test "$ac_cv_c_inline" != no && break
3160 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
3161 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3164 case $ac_cv_c_inline in
3167 case $ac_cv_c_inline in
3169 *) ac_val=$ac_cv_c_inline;;
3171 cat >>confdefs.h <<_ACEOF
3173 #define inline $ac_val
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3185 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3186 # On Suns, sometimes $CPP names a directory.
3187 if test -n "$CPP" && test -d "$CPP"; then
3190 if test -z "$CPP"; then
3191 if test "${ac_cv_prog_CPP+set}" = set; then
3192 echo $ECHO_N "(cached
) $ECHO_C" >&6
3194 # Double quotes because CPP needs to be expanded
3195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3198 for ac_c_preproc_warn_flag in '' yes
3200 # Use a header file that comes with gcc, so configuring glibc
3201 # with a fresh cross-compiler works.
3202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203 # <limits.h> exists even on freestanding compilers.
3204 # On the NeXT, cc -E runs the code through the compiler's parser,
3205 # not just through cpp. "Syntax error
" is here to catch this case.
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3213 # include <limits.h>
3215 # include <assert.h>
3219 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval "echo \"\
$as_me:$LINENO: $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 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
3237 echo "$as_me: failed program was
:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3240 # Broken: fails on valid input.
3244 rm -f conftest.err conftest.$ac_ext
3246 # OK, works on sane cases. Now check whether nonexistent headers
3247 # can be detected and how.
3248 cat >conftest.$ac_ext <<_ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254 #include <ac_nonexistent.h>
3256 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3264 grep -v '^ *+' conftest.er1 >conftest.err
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3268 (exit $ac_status); } >/dev/null && {
3269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3272 # Broken: success on invalid input.
3275 echo "$as_me: failed program was
:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3278 # Passes both tests.
3283 rm -f conftest.err conftest.$ac_ext
3286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287 rm -f conftest.err conftest.$ac_ext
3288 if $ac_preproc_ok; then
3300 { echo "$as_me:$LINENO: result
: $CPP" >&5
3301 echo "${ECHO_T}$CPP" >&6; }
3303 for ac_c_preproc_warn_flag in '' yes
3305 # Use a header file that comes with gcc, so configuring glibc
3306 # with a fresh cross-compiler works.
3307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3308 # <limits.h> exists even on freestanding compilers.
3309 # On the NeXT, cc -E runs the code through the compiler's parser,
3310 # not just through cpp. "Syntax error
" is here to catch this case.
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3318 # include <limits.h>
3320 # include <assert.h>
3324 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3336 (exit $ac_status); } >/dev/null && {
3337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3342 echo "$as_me: failed program was
:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3345 # Broken: fails on valid input.
3349 rm -f conftest.err conftest.$ac_ext
3351 # OK, works on sane cases. Now check whether nonexistent headers
3352 # can be detected and how.
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #include <ac_nonexistent.h>
3361 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3377 # Broken: success on invalid input.
3380 echo "$as_me: failed program was
:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Passes both tests.
3388 rm -f conftest.err conftest.$ac_ext
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then
3396 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3397 See \
`config.log' for more details." >&5
3398 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3399 See \`config.log
' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3406 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3411 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3412 if test "${ac_cv_path_GREP+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 # Extract the first word of "grep ggrep" to use in msg output
3416 if test -z "$GREP"; then
3417 set dummy grep ggrep; ac_prog_name=$2
3418 if test "${ac_cv_path_GREP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 ac_path_GREP_found=false
3422 # Loop through the user's path and
test for each of PROGNAME
-LIST
3423 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3424 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3427 test -z "$as_dir" && as_dir
=.
3428 for ac_prog
in grep ggrep
; do
3429 for ac_exec_ext
in '' $ac_executable_extensions; do
3430 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3431 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3432 # Check for GNU ac_path_GREP and select it if it is found.
3433 # Check for GNU $ac_path_GREP
3434 case `"$ac_path_GREP" --version 2>&1` in
3436 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3439 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3442 cat "conftest.in" "conftest.in" >"conftest.tmp"
3443 mv "conftest.tmp" "conftest.in"
3444 cp "conftest.in" "conftest.nl"
3445 echo 'GREP' >> "conftest.nl"
3446 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3447 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3448 ac_count
=`expr $ac_count + 1`
3449 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3450 # Best one so far, save it but keep looking for a better one
3451 ac_cv_path_GREP
="$ac_path_GREP"
3452 ac_path_GREP_max
=$ac_count
3454 # 10*(2^10) chars as input seems more than enough
3455 test $ac_count -gt 10 && break
3457 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3461 $ac_path_GREP_found && break 3
3471 GREP
="$ac_cv_path_GREP"
3472 if test -z "$GREP"; then
3473 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3474 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3475 { (exit 1); exit 1; }; }
3479 ac_cv_path_GREP
=$GREP
3484 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3485 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3486 GREP
="$ac_cv_path_GREP"
3489 { echo "$as_me:$LINENO: checking for egrep" >&5
3490 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3491 if test "${ac_cv_path_EGREP+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3495 then ac_cv_path_EGREP
="$GREP -E"
3497 # Extract the first word of "egrep" to use in msg output
3498 if test -z "$EGREP"; then
3499 set dummy
egrep; ac_prog_name
=$2
3500 if test "${ac_cv_path_EGREP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 ac_path_EGREP_found
=false
3504 # Loop through the user's path and test for each of PROGNAME-LIST
3505 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3506 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3509 test -z "$as_dir" && as_dir
=.
3510 for ac_prog
in egrep; do
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3513 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3514 # Check for GNU ac_path_EGREP and select it if it is found.
3515 # Check for GNU $ac_path_EGREP
3516 case `"$ac_path_EGREP" --version 2>&1` in
3518 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3521 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3524 cat "conftest.in" "conftest.in" >"conftest.tmp"
3525 mv "conftest.tmp" "conftest.in"
3526 cp "conftest.in" "conftest.nl"
3527 echo 'EGREP' >> "conftest.nl"
3528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3529 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3530 ac_count
=`expr $ac_count + 1`
3531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3532 # Best one so far, save it but keep looking for a better one
3533 ac_cv_path_EGREP
="$ac_path_EGREP"
3534 ac_path_EGREP_max
=$ac_count
3536 # 10*(2^10) chars as input seems more than enough
3537 test $ac_count -gt 10 && break
3539 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3543 $ac_path_EGREP_found && break 3
3553 EGREP
="$ac_cv_path_EGREP"
3554 if test -z "$EGREP"; then
3555 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3556 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3557 { (exit 1); exit 1; }; }
3561 ac_cv_path_EGREP
=$EGREP
3567 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3568 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3569 EGREP
="$ac_cv_path_EGREP"
3572 if test $ac_cv_c_compiler_gnu = yes; then
3573 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3574 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_pattern
="Autoconf.*'x'"
3579 cat >conftest.
$ac_ext <<_ACEOF
3582 cat confdefs.h
>>conftest.
$ac_ext
3583 cat >>conftest.
$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3590 ac_cv_prog_gcc_traditional
=yes
3592 ac_cv_prog_gcc_traditional
=no
3597 if test $ac_cv_prog_gcc_traditional = no
; then
3598 cat >conftest.
$ac_ext <<_ACEOF
3601 cat confdefs.h
>>conftest.
$ac_ext
3602 cat >>conftest.
$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3609 ac_cv_prog_gcc_traditional
=yes
3615 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3616 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3617 if test $ac_cv_prog_gcc_traditional = yes; then
3618 CC
="$CC -traditional"
3622 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3623 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3624 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3625 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 cat >conftest.
make <<\_ACEOF
3631 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3634 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3636 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3638 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3642 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3647 { echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6; }
3649 SET_MAKE
="MAKE=${MAKE-make}"
3652 # Find a good install program. We prefer a C program (faster),
3653 # so one script is as good as another. But avoid the broken or
3654 # incompatible versions:
3655 # SysV /etc/install, /usr/sbin/install
3656 # SunOS /usr/etc/install
3657 # IRIX /sbin/install
3659 # AmigaOS /C/install, which installs bootblocks on floppy discs
3660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663 # OS/2's system install, which has a completely different semantic
3664 # ./install, which can be erroneously created by make from ./install.sh.
3665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3667 if test -z "$INSTALL"; then
3668 if test "${ac_cv_path_install+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3675 test -z "$as_dir" && as_dir
=.
3676 # Account for people who put trailing slashes in PATH elements.
3678 .
/ | .
// | /cC
/* | \
3679 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3680 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3683 # OSF1 and SCO ODT 3.0 have their own names for install.
3684 # Don't use installbsd from OSF since it installs stuff as root
3686 for ac_prog
in ginstall scoinst
install; do
3687 for ac_exec_ext
in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3689 if test $ac_prog = install &&
3690 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3691 # AIX install. It has an incompatible calling convention.
3693 elif test $ac_prog = install &&
3694 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3695 # program-specific install script used by HP pwplus--don't use.
3698 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL
=$ac_cv_path_install
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 INSTALL
=$ac_install_sh
3721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3722 echo "${ECHO_T}$INSTALL" >&6; }
3724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725 # It thinks the first close brace ends the variable substitution.
3726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3730 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3732 # Extract the first word of "rm", so it can be a program name with args.
3733 set dummy
rm; ac_word
=$2
3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_RM+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
3744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3748 test -z "$as_dir" && as_dir
=.
3749 for ac_exec_ext
in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 if test -n "$RM"; then
3764 { echo "$as_me:$LINENO: result: $RM" >&5
3765 echo "${ECHO_T}$RM" >&6; }
3767 { echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; }
3772 # Extract the first word of "cp", so it can be a program name with args.
3773 set dummy
cp; ac_word
=$2
3774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3776 if test "${ac_cv_path_CP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
3784 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3788 test -z "$as_dir" && as_dir
=.
3789 for ac_exec_ext
in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3803 if test -n "$CP"; then
3804 { echo "$as_me:$LINENO: result: $CP" >&5
3805 echo "${ECHO_T}$CP" >&6; }
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3812 # Extract the first word of "mv", so it can be a program name with args.
3813 set dummy
mv; ac_word
=$2
3814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3816 if test "${ac_cv_path_MV+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
3824 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3828 test -z "$as_dir" && as_dir
=.
3829 for ac_exec_ext
in '' $ac_executable_extensions; do
3830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3831 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3843 if test -n "$MV"; then
3844 { echo "$as_me:$LINENO: result: $MV" >&5
3845 echo "${ECHO_T}$MV" >&6; }
3847 { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3852 # Extract the first word of "ln", so it can be a program name with args.
3853 set dummy
ln; ac_word
=$2
3854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_LN+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3861 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
3864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3868 test -z "$as_dir" && as_dir
=.
3869 for ac_exec_ext
in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 if test -n "$LN"; then
3884 { echo "$as_me:$LINENO: result: $LN" >&5
3885 echo "${ECHO_T}$LN" >&6; }
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3892 # Extract the first word of "sed", so it can be a program name with args.
3893 set dummy
sed; ac_word
=$2
3894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3896 if test "${ac_cv_path_SED+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3901 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
3904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir
=.
3909 for ac_exec_ext
in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 if test -n "$SED"; then
3924 { echo "$as_me:$LINENO: result: $SED" >&5
3925 echo "${ECHO_T}$SED" >&6; }
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3932 # Extract the first word of "ar", so it can be a program name with args.
3933 set dummy
ar; ac_word
=$2
3934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_AR+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3941 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
3944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3948 test -z "$as_dir" && as_dir
=.
3949 for ac_exec_ext
in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 if test -n "$AR"; then
3964 { echo "$as_me:$LINENO: result: $AR" >&5
3965 echo "${ECHO_T}$AR" >&6; }
3967 { echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6; }
3972 # Extract the first word of "ld", so it can be a program name with args.
3973 set dummy ld
; ac_word
=$2
3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3976 if test "${ac_cv_path_LD+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
3984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3988 test -z "$as_dir" && as_dir
=.
3989 for ac_exec_ext
in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 if test -n "$LD"; then
4004 { echo "$as_me:$LINENO: result: $LD" >&5
4005 echo "${ECHO_T}$LD" >&6; }
4007 { echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6; }
4012 # Extract the first word of "ranlib", so it can be a program name with args.
4013 set dummy ranlib
; ac_word
=$2
4014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_RANLIB+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
4024 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir
=.
4029 for ac_exec_ext
in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_path_RANLIB
="$as_dir/$ac_word$ac_exec_ext"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 RANLIB
=$ac_cv_path_RANLIB
4043 if test -n "$RANLIB"; then
4044 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4045 echo "${ECHO_T}$RANLIB" >&6; }
4047 { echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6; }
4052 # Extract the first word of "touch", so it can be a program name with args.
4053 set dummy
touch; ac_word
=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_path_TOUCH+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
4064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4068 test -z "$as_dir" && as_dir
=.
4069 for ac_exec_ext
in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 TOUCH
=$ac_cv_path_TOUCH
4083 if test -n "$TOUCH"; then
4084 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4085 echo "${ECHO_T}$TOUCH" >&6; }
4087 { echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6; }
4093 for ac_prog
in 'bison -y' byacc
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy
$ac_prog; ac_word
=$2
4097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4099 if test "${ac_cv_prog_YACC+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4102 if test -n "$YACC"; then
4103 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir
=.
4110 for ac_exec_ext
in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_YACC
="$ac_prog"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 YACC
=$ac_cv_prog_YACC
4123 if test -n "$YACC"; then
4124 { echo "$as_me:$LINENO: result: $YACC" >&5
4125 echo "${ECHO_T}$YACC" >&6; }
4127 { echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6; }
4132 test -n "$YACC" && break
4134 test -n "$YACC" || YACC
="yacc"
4137 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4138 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4139 echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4140 { (exit 1); exit 1; }; }
4143 for ac_prog
in flex
lex
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy
$ac_prog; ac_word
=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_LEX+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 if test -n "$LEX"; then
4153 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4159 test -z "$as_dir" && as_dir
=.
4160 for ac_exec_ext
in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_LEX
="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 if test -n "$LEX"; then
4174 { echo "$as_me:$LINENO: result: $LEX" >&5
4175 echo "${ECHO_T}$LEX" >&6; }
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4182 test -n "$LEX" && break
4184 test -n "$LEX" || LEX
=":"
4186 if test "x$LEX" != "x:"; then
4187 cat >conftest.l
<<_ACEOF
4193 e { yyless (input () != 0); }
4194 f { unput (yytext[0]); }
4195 . { BEGIN INITIAL; }
4197 #ifdef YYTEXT_POINTER
4198 extern char *yytext;
4203 return ! yylex () + ! yywrap ();
4206 { (ac_try
="$LEX conftest.l"
4208 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$LEX conftest.l") 2>&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }
4216 { echo "$as_me:$LINENO: checking lex output file root" >&5
4217 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4218 if test "${ac_cv_prog_lex_root+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4222 if test -f lex.yy.c; then
4223 ac_cv_prog_lex_root=lex.yy
4224 elif test -f lexyy.c; then
4225 ac_cv_prog_lex_root=lexyy
4227 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4228 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4229 { (exit 1); exit 1; }; }
4232 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4233 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4234 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4236 if test -z "${LEXLIB+set}"; then
4237 { echo "$as_me:$LINENO: checking lex library" >&5
4238 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4239 if test "${ac_cv_lib_lex+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 ac_cv_lib_lex='none needed'
4245 for ac_lib in '' -lfl -ll; do
4246 LIBS="$ac_lib $ac_save_LIBS"
4247 cat >conftest.$ac_ext <<_ACEOF
4248 `cat $LEX_OUTPUT_ROOT.c
`
4250 rm -f conftest.$ac_objext conftest$ac_exeext
4251 if { (ac_try="$ac_link"
4253 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4254 *) ac_try_echo
=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_link") 2>conftest.er1
4259 grep -v '^ *+' conftest.er1
>conftest.err
4261 cat conftest.err
>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } && {
4264 test -z "$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4266 } && test -s conftest
$ac_exeext &&
4267 $as_test_x conftest
$ac_exeext; then
4268 ac_cv_lib_lex
=$ac_lib
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.
$ac_ext >&5
4276 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4277 conftest
$ac_exeext conftest.
$ac_ext
4278 test "$ac_cv_lib_lex" != 'none needed' && break
4283 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4284 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4285 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
4289 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4290 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4291 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 # POSIX says lex can declare yytext either as a pointer or an array; the
4295 # default is implementation-dependent. Figure out which it is, since
4296 # not all implementations provide the %pointer and %array declarations.
4297 ac_cv_prog_lex_yytext_pointer
=no
4299 LIBS
="$LEXLIB $ac_save_LIBS"
4300 cat >conftest.
$ac_ext <<_ACEOF
4301 #define YYTEXT_POINTER 1
4302 `cat $LEX_OUTPUT_ROOT.c`
4304 rm -f conftest.
$ac_objext conftest
$ac_exeext
4305 if { (ac_try
="$ac_link"
4307 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_link") 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && {
4318 test -z "$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 } && test -s conftest$ac_exeext &&
4321 $as_test_x conftest$ac_exeext; then
4322 ac_cv_prog_lex_yytext_pointer=yes
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4331 conftest$ac_exeext conftest.$ac_ext
4335 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4336 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4337 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4339 cat >>confdefs.h <<\_ACEOF
4340 #define YYTEXT_POINTER 1
4344 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4348 if test "$LEX" = ":"; then
4349 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4350 echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4351 { (exit 1); exit 1; }; }
4354 if test "$libexecdir" = '${exec_prefix}/libexec' &&
4355 test "$localstatedir" = '${prefix}/var'; then
4356 libexecdir='${bindir}'
4357 localstatedir='${prefix}'
4360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4362 if test "${ac_cv_header_stdc+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 cat >conftest.$ac_ext <<_ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4384 rm -f conftest.$ac_objext
4385 if { (ac_try="$ac_compile"
4387 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4388 *) ac_try_echo
=$ac_try;;
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_compile") 2>conftest.er1
4393 grep -v '^ *+' conftest.er1
>conftest.err
4395 cat conftest.err
>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest.
$ac_objext; then
4401 ac_cv_header_stdc
=yes
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.
$ac_ext >&5
4406 ac_cv_header_stdc
=no
4409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4411 if test $ac_cv_header_stdc = yes; then
4412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4413 cat >conftest.
$ac_ext <<_ACEOF
4416 cat confdefs.h
>>conftest.
$ac_ext
4417 cat >>conftest.
$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "memchr" >/dev
/null
2>&1; then
4426 ac_cv_header_stdc
=no
4432 if test $ac_cv_header_stdc = yes; then
4433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434 cat >conftest.
$ac_ext <<_ACEOF
4437 cat confdefs.h
>>conftest.
$ac_ext
4438 cat >>conftest.
$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4444 $EGREP "free" >/dev
/null
2>&1; then
4447 ac_cv_header_stdc
=no
4453 if test $ac_cv_header_stdc = yes; then
4454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4455 if test "$cross_compiling" = yes; then
4458 cat >conftest.
$ac_ext <<_ACEOF
4461 cat confdefs.h
>>conftest.
$ac_ext
4462 cat >>conftest.
$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4466 #if ((' ' & 0x0FF) == 0x020)
4467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4470 # define ISLOWER(c) \
4471 (('a' <= (c) && (c) <= 'i') \
4472 || ('j' <= (c) && (c) <= 'r') \
4473 || ('s' <= (c) && (c) <= 'z'))
4474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4482 for (i = 0; i < 256; i++)
4483 if (XOR (islower (i), ISLOWER (i))
4484 || toupper (i) != TOUPPER (i))
4489 rm -f conftest
$ac_exeext
4490 if { (ac_try
="$ac_link"
4492 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_link") 2>&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4500 { (case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4502 *) ac_try_echo
=$ac_try;;
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_try") 2>&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4511 echo "$as_me: program exited with status $ac_status" >&5
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.
$ac_ext >&5
4516 ac_cv_header_stdc
=no
4518 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4526 if test $ac_cv_header_stdc = yes; then
4528 cat >>confdefs.h
<<\_ACEOF
4529 #define STDC_HEADERS 1
4535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4545 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4546 inttypes.h stdint.h unistd.h
4548 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4551 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 cat >conftest.
$ac_ext <<_ACEOF
4557 cat confdefs.h
>>conftest.
$ac_ext
4558 cat >>conftest.
$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 $ac_includes_default
4562 #include <$ac_header>
4564 rm -f conftest.
$ac_objext
4565 if { (ac_try
="$ac_compile"
4567 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_compile") 2>conftest.er1
4573 grep -v '^ *+' conftest.er1 >conftest.err
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
4581 eval "$as_ac_Header=yes"
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4586 eval "$as_ac_Header=no"
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 ac_res=`eval echo '${'$as_ac_Header'}'`
4592 { echo "$as_me:$LINENO: result: $ac_res" >&5
4593 echo "${ECHO_T}$ac_res" >&6; }
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h <<_ACEOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4615 for ac_header in crypt.h sys/resource.h sys/param.h errno.h sys/syslog.h stddef.h sys/wait.h wait.h sys/epoll.h sys/uio.h machine/endian.h
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 ac_res=`eval echo '${'$as_ac_Header'}'`
4625 { echo "$as_me:$LINENO: result: $ac_res" >&5
4626 echo "${ECHO_T}$ac_res" >&6; }
4628 # Is the header compilable?
4629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4631 cat >conftest.$ac_ext <<_ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4638 #include <$ac_header>
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4643 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4644 *) ac_try_echo
=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1
>conftest.err
4651 cat conftest.err
>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.
$ac_objext; then
4657 ac_header_compiler
=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4662 ac_header_compiler
=no
4665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4667 echo "${ECHO_T}$ac_header_compiler" >&6; }
4669 # Is the header present?
4670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4672 cat >conftest.
$ac_ext <<_ACEOF
4675 cat confdefs.h
>>conftest.
$ac_ext
4676 cat >>conftest.
$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <$ac_header>
4680 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4682 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } >/dev/null && {
4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4696 ac_header_preproc=yes
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 ac_header_preproc=no
4704 rm -f conftest.err conftest.$ac_ext
4705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706 echo "${ECHO_T}$ac_header_preproc" >&6; }
4708 # So? What about this header?
4709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc=yes
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4738 eval "$as_ac_Header=\$ac_header_preproc"
4740 ac_res=`eval echo '${'$as_ac_Header'}'`
4741 { echo "$as_me:$LINENO: result: $ac_res" >&5
4742 echo "${ECHO_T}$ac_res" >&6; }
4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746 cat >>confdefs.h <<_ACEOF
4747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4756 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4758 if test "${ac_cv_c_const+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.$ac_ext <<_ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4771 /* FIXME: Include the comments suggested by Paul. */
4773 /* Ultrix mips cc rejects this. */
4774 typedef int charset[2];
4776 /* SunOS 4.1.1 cc rejects this. */
4777 char const *const *pcpcc;
4779 /* NEC SVR4.0.2 mips cc rejects this. */
4780 struct point {int x, y;};
4781 static struct point const zero = {0,0};
4782 /* AIX XL C 1.02.0.0 rejects this.
4783 It does not let you subtract one const X* pointer from another in
4784 an arm of an if-expression whose if-part is not a constant
4786 const char *g = "string";
4787 pcpcc = &g + (g ? g-g : 0);
4788 /* HPUX 7.0 cc rejects these. */
4790 ppc = (char**) pcpcc;
4791 pcpcc = (char const *const *) ppc;
4792 { /* SCO 3.2v4 cc rejects this. */
4794 char const *s = 0 ? (char *) 0 : (char const *) 0;
4799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4801 const int *foo = &x[0];
4804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4805 typedef const int *iptr;
4809 { /* AIX XL C 1.02.0.0 rejects this saying
4810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4811 struct s { int j; const int *ap[3]; };
4812 struct s *b; b->j = 5;
4814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4818 return !cs[0] && !zero.x;
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4828 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4829 *) ac_try_echo
=$ac_try;;
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_compile") 2>conftest.er1
4834 grep -v '^ *+' conftest.er1
>conftest.err
4836 cat conftest.err
>&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.
$ac_objext; then
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.
$ac_ext >&5
4850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4852 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4853 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4854 if test $ac_cv_c_const = no
; then
4856 cat >>confdefs.h
<<\_ACEOF
4862 if test "$ac_cv_header_machine_endian_h" = "no" ; then
4863 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4864 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4865 if test "${ac_cv_c_bigendian+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 # See if sys/param.h defines the BYTE_ORDER macro.
4869 cat >conftest.
$ac_ext <<_ACEOF
4872 cat confdefs.h
>>conftest.
$ac_ext
4873 cat >>conftest.
$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 #include <sys/types.h>
4876 #include <sys/param.h>
4881 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4882 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4890 rm -f conftest.
$ac_objext
4891 if { (ac_try
="$ac_compile"
4893 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
4899 grep -v '^ *+' conftest.er1 >conftest.err
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
4907 # It does; now see whether it defined to BIG_ENDIAN or not.
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <sys/types.h>
4915 #include <sys/param.h>
4920 #if BYTE_ORDER != BIG_ENDIAN
4928 rm -f conftest.$ac_objext
4929 if { (ac_try="$ac_compile"
4931 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4932 *) ac_try_echo
=$ac_try;;
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1
>conftest.err
4939 cat conftest.err
>&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.
$ac_objext; then
4945 ac_cv_c_bigendian
=yes
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.
$ac_ext >&5
4950 ac_cv_c_bigendian
=no
4953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.
$ac_ext >&5
4958 # It does not; compile a test program.
4959 if test "$cross_compiling" = yes; then
4960 # try to guess the endianness by grepping values into an object file
4961 ac_cv_c_bigendian
=unknown
4962 cat >conftest.
$ac_ext <<_ACEOF
4965 cat confdefs.h
>>conftest.
$ac_ext
4966 cat >>conftest.
$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4969 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4970 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4971 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4972 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4973 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4977 _ascii (); _ebcdic ();
4982 rm -f conftest.
$ac_objext
4983 if { (ac_try
="$ac_compile"
4985 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_compile") 2>conftest.er1
4991 grep -v '^ *+' conftest.er1 >conftest.err
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest.$ac_objext; then
4999 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5000 ac_cv_c_bigendian=yes
5002 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5003 if test "$ac_cv_c_bigendian" = unknown; then
5004 ac_cv_c_bigendian=no
5006 # finding both strings is unlikely to happen, but who knows?
5007 ac_cv_c_bigendian=unknown
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5030 /* Are we little or big endian? From Harbison&Steele. */
5034 char c[sizeof (long int)];
5037 return u.c[sizeof (long int) - 1] == 1;
5043 rm -f conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5046 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5047 *) ac_try_echo
=$ac_try;;
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5054 { (case "(($ac_try" in
5055 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_try") 2>&5
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_c_bigendian=no
5065 echo "$as_me: program exited with status $ac_status" >&5
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5070 ac_cv_c_bigendian=yes
5072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5080 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5081 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5082 case $ac_cv_c_bigendian in
5085 cat >>confdefs.h <<\_ACEOF
5086 #define WORDS_BIGENDIAN 1
5092 { { echo "$as_me:$LINENO: error: unknown endianness
5093 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5094 echo "$as_me: error: unknown endianness
5095 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5100 { echo "$as_me:$LINENO: checking for pid_t" >&5
5101 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5102 if test "${ac_cv_type_pid_t+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 cat >conftest.$ac_ext <<_ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 typedef pid_t ac__type_new_;
5116 if ((ac__type_new_ *) 0)
5118 if (sizeof (ac__type_new_))
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5127 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5128 *) ac_try_echo
=$ac_try;;
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5133 grep -v '^ *+' conftest.er1
>conftest.err
5135 cat conftest.err
>&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.
$ac_objext; then
5141 ac_cv_type_pid_t
=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.
$ac_ext >&5
5149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5151 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5152 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5153 if test $ac_cv_type_pid_t = yes; then
5157 cat >>confdefs.h
<<_ACEOF
5163 { echo "$as_me:$LINENO: checking for size_t" >&5
5164 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5165 if test "${ac_cv_type_size_t+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 cat >conftest.
$ac_ext <<_ACEOF
5171 cat confdefs.h
>>conftest.
$ac_ext
5172 cat >>conftest.
$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 typedef size_t ac__type_new_;
5179 if ((ac__type_new_ *) 0)
5181 if (sizeof (ac__type_new_))
5187 rm -f conftest.
$ac_objext
5188 if { (ac_try
="$ac_compile"
5190 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
5196 grep -v '^ *+' conftest.er1 >conftest.err
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
5204 ac_cv_type_size_t=yes
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5209 ac_cv_type_size_t=no
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5214 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5215 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5216 if test $ac_cv_type_size_t = yes; then
5220 cat >>confdefs.h <<_ACEOF
5221 #define size_t unsigned int
5226 { echo "$as_me:$LINENO: checking for short" >&5
5227 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5228 if test "${ac_cv_type_short+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 cat >conftest.$ac_ext <<_ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5238 typedef short ac__type_new_;
5242 if ((ac__type_new_ *) 0)
5244 if (sizeof (ac__type_new_))
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5253 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5254 *) ac_try_echo
=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1
>conftest.err
5261 cat conftest.err
>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.
$ac_objext; then
5267 ac_cv_type_short
=yes
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.
$ac_ext >&5
5275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5277 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5278 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5280 # The cast to long int works around a bug in the HP C Compiler
5281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283 # This bug is HP SR number 8606223364.
5284 { echo "$as_me:$LINENO: checking size of short" >&5
5285 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5286 if test "${ac_cv_sizeof_short+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 if test "$cross_compiling" = yes; then
5290 # Depending upon the size, compute the lo and hi bounds.
5291 cat >conftest.
$ac_ext <<_ACEOF
5294 cat confdefs.h
>>conftest.
$ac_ext
5295 cat >>conftest.
$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 typedef short ac__type_sizeof_;
5302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5309 rm -f conftest.
$ac_objext
5310 if { (ac_try
="$ac_compile"
5312 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5318 grep -v '^ *+' conftest.er1 >conftest.err
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
5328 cat >conftest.$ac_ext <<_ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 typedef short ac__type_sizeof_;
5339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5349 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5350 *) ac_try_echo
=$ac_try;;
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5355 grep -v '^ *+' conftest.er1
>conftest.err
5357 cat conftest.err
>&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.
$ac_objext; then
5363 ac_hi
=$ac_mid; break
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.
$ac_ext >&5
5368 ac_lo
=`expr $ac_mid + 1`
5369 if test $ac_lo -le $ac_mid; then
5373 ac_mid
=`expr 2 '*' $ac_mid + 1`
5376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.
$ac_ext >&5
5382 cat >conftest.
$ac_ext <<_ACEOF
5385 cat confdefs.h
>>conftest.
$ac_ext
5386 cat >>conftest.
$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 typedef short ac__type_sizeof_;
5393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5400 rm -f conftest.
$ac_objext
5401 if { (ac_try
="$ac_compile"
5403 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5426 typedef short ac__type_sizeof_;
5430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5440 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5441 *) ac_try_echo
=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5446 grep -v '^ *+' conftest.er1
>conftest.err
5448 cat conftest.err
>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.
$ac_objext; then
5454 ac_lo
=$ac_mid; break
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.
$ac_ext >&5
5459 ac_hi
=`expr '(' $ac_mid ')' - 1`
5460 if test $ac_mid -le $ac_hi; then
5464 ac_mid
=`expr 2 '*' $ac_mid`
5467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.
$ac_ext >&5
5476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5479 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5480 # Binary search between lo and hi bounds.
5481 while test "x$ac_lo" != "x$ac_hi"; do
5482 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5483 cat >conftest.
$ac_ext <<_ACEOF
5486 cat confdefs.h
>>conftest.
$ac_ext
5487 cat >>conftest.
$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 typedef short ac__type_sizeof_;
5494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5501 rm -f conftest.
$ac_objext
5502 if { (ac_try
="$ac_compile"
5504 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5523 ac_lo=`expr '(' $ac_mid ')' + 1`
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5529 ?*) ac_cv_sizeof_short=$ac_lo;;
5530 '') if test "$ac_cv_type_short" = yes; then
5531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5532 See \`config.log
' for more details." >&5
5533 echo "$as_me: error: cannot compute sizeof (short)
5534 See \`config.log' for more details.
" >&2;}
5535 { (exit 77); exit 77; }; }
5537 ac_cv_sizeof_short=0
5541 cat >conftest.$ac_ext <<_ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 $ac_includes_default
5548 typedef short ac__type_sizeof_;
5549 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5550 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5557 FILE *f = fopen ("conftest.val
", "w
");
5560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5562 long int i = longval ();
5563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5565 fprintf (f, "%ld
\n", i);
5569 unsigned long int i = ulongval ();
5570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5572 fprintf (f, "%lu
\n", i);
5574 return ferror (f) || fclose (f) != 0;
5580 rm -f conftest$ac_exeext
5581 if { (ac_try="$ac_link"
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_link") 2>&5
5589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
5598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_cv_sizeof_short=`cat conftest.val`
5602 echo "$as_me: program exited with status
$ac_status" >&5
5603 echo "$as_me: failed program was
:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5607 if test "$ac_cv_type_short" = yes; then
5608 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
5609 See \
`config.log' for more details." >&5
5610 echo "$as_me: error: cannot compute sizeof (short)
5611 See \`config.log
' for more details." >&2;}
5612 { (exit 77); exit 77; }; }
5614 ac_cv_sizeof_short=0
5617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5621 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5622 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5626 cat >>confdefs.h <<_ACEOF
5627 #define SIZEOF_SHORT $ac_cv_sizeof_short
5631 { echo "$as_me:$LINENO: checking for int" >&5
5632 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5633 if test "${ac_cv_type_int+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 cat >conftest.$ac_ext <<_ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5643 typedef int ac__type_new_;
5647 if ((ac__type_new_ *) 0)
5649 if (sizeof (ac__type_new_))
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5664 grep -v '^
*+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5674 echo "$as_me: failed program was:" >&5
5675 sed 's
/^
/| /' conftest.$ac_ext >&5
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5683 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5685 # The cast to long int works around a bug in the HP C Compiler
5686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5688 # This bug is HP SR number 8606223364.
5689 { echo "$as_me:$LINENO: checking size of int" >&5
5690 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5691 if test "${ac_cv_sizeof_int+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 if test "$cross_compiling" = yes; then
5695 # Depending upon the size, compute the lo and hi bounds.
5696 cat >conftest.
$ac_ext <<_ACEOF
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5703 typedef int ac__type_sizeof_;
5707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5714 rm -f conftest.
$ac_objext
5715 if { (ac_try
="$ac_compile"
5717 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
5733 cat >conftest.$ac_ext <<_ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5740 typedef int ac__type_sizeof_;
5744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5754 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5755 *) ac_try_echo
=$ac_try;;
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5760 grep -v '^ *+' conftest.er1
>conftest.err
5762 cat conftest.err
>&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.
$ac_objext; then
5768 ac_hi
=$ac_mid; break
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.
$ac_ext >&5
5773 ac_lo
=`expr $ac_mid + 1`
5774 if test $ac_lo -le $ac_mid; then
5778 ac_mid
=`expr 2 '*' $ac_mid + 1`
5781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.
$ac_ext >&5
5787 cat >conftest.
$ac_ext <<_ACEOF
5790 cat confdefs.h
>>conftest.
$ac_ext
5791 cat >>conftest.
$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 typedef int ac__type_sizeof_;
5798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5805 rm -f conftest.
$ac_objext
5806 if { (ac_try
="$ac_compile"
5808 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compile") 2>conftest.er1
5814 grep -v '^ *+' conftest.er1 >conftest.err
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } && {
5819 test -z "$ac_c_werror_flag" ||
5820 test ! -s conftest.err
5821 } && test -s conftest.$ac_objext; then
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5831 typedef int ac__type_sizeof_;
5835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5845 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5846 *) ac_try_echo
=$ac_try;;
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5851 grep -v '^ *+' conftest.er1
>conftest.err
5853 cat conftest.err
>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.
$ac_objext; then
5859 ac_lo
=$ac_mid; break
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.
$ac_ext >&5
5864 ac_hi
=`expr '(' $ac_mid ')' - 1`
5865 if test $ac_mid -le $ac_hi; then
5869 ac_mid
=`expr 2 '*' $ac_mid`
5872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.
$ac_ext >&5
5881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.
$ac_ext <<_ACEOF
5891 cat confdefs.h
>>conftest.
$ac_ext
5892 cat >>conftest.
$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5895 typedef int ac__type_sizeof_;
5899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5906 rm -f conftest.
$ac_objext
5907 if { (ac_try
="$ac_compile"
5909 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5915 grep -v '^ *+' conftest.er1 >conftest.err
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5928 ac_lo=`expr '(' $ac_mid ')' + 1`
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5934 ?*) ac_cv_sizeof_int=$ac_lo;;
5935 '') if test "$ac_cv_type_int" = yes; then
5936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5937 See \`config.log
' for more details." >&5
5938 echo "$as_me: error: cannot compute sizeof (int)
5939 See \`config.log' for more details.
" >&2;}
5940 { (exit 77); exit 77; }; }
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 $ac_includes_default
5953 typedef int ac__type_sizeof_;
5954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5962 FILE *f = fopen ("conftest.val
", "w
");
5965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5967 long int i = longval ();
5968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5970 fprintf (f, "%ld
\n", i);
5974 unsigned long int i = ulongval ();
5975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5977 fprintf (f, "%lu
\n", i);
5979 return ferror (f) || fclose (f) != 0;
5985 rm -f conftest$ac_exeext
5986 if { (ac_try="$ac_link"
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_link") 2>&5
5994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5996 { (case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
6000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
6003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_int=`cat conftest.val`
6007 echo "$as_me: program exited with status
$ac_status" >&5
6008 echo "$as_me: failed program was
:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6012 if test "$ac_cv_type_int" = yes; then
6013 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6014 See \
`config.log' for more details." >&5
6015 echo "$as_me: error: cannot compute sizeof (int)
6016 See \`config.log
' for more details." >&2;}
6017 { (exit 77); exit 77; }; }
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6027 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF_INT $ac_cv_sizeof_int
6036 { echo "$as_me:$LINENO: checking for long" >&5
6037 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6038 if test "${ac_cv_type_long+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 cat >conftest.$ac_ext <<_ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 typedef long ac__type_new_;
6052 if ((ac__type_new_ *) 0)
6054 if (sizeof (ac__type_new_))
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6069 grep -v '^
*+' conftest.er1 >conftest.err
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
6079 echo "$as_me: failed program was:" >&5
6080 sed 's
/^
/| /' conftest.$ac_ext >&5
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6087 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6088 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6090 # The cast to long int works around a bug in the HP C Compiler
6091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093 # This bug is HP SR number 8606223364.
6094 { echo "$as_me:$LINENO: checking size of long" >&5
6095 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6096 if test "${ac_cv_sizeof_long+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 if test "$cross_compiling" = yes; then
6100 # Depending upon the size, compute the lo and hi bounds.
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6108 typedef long ac__type_sizeof_;
6112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6119 rm -f conftest.
$ac_objext
6120 if { (ac_try
="$ac_compile"
6122 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6128 grep -v '^ *+' conftest.er1 >conftest.err
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
6138 cat >conftest.$ac_ext <<_ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 $ac_includes_default
6145 typedef long ac__type_sizeof_;
6149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6159 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6160 *) ac_try_echo
=$ac_try;;
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
6165 grep -v '^ *+' conftest.er1
>conftest.err
6167 cat conftest.err
>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.
$ac_objext; then
6173 ac_hi
=$ac_mid; break
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.
$ac_ext >&5
6178 ac_lo
=`expr $ac_mid + 1`
6179 if test $ac_lo -le $ac_mid; then
6183 ac_mid
=`expr 2 '*' $ac_mid + 1`
6186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.
$ac_ext >&5
6192 cat >conftest.
$ac_ext <<_ACEOF
6195 cat confdefs.h
>>conftest.
$ac_ext
6196 cat >>conftest.
$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6199 typedef long ac__type_sizeof_;
6203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6210 rm -f conftest.
$ac_objext
6211 if { (ac_try
="$ac_compile"
6213 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6219 grep -v '^ *+' conftest.er1 >conftest.err
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6229 cat >conftest.$ac_ext <<_ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6236 typedef long ac__type_sizeof_;
6240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6250 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6251 *) ac_try_echo
=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1
>conftest.err
6258 cat conftest.err
>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest.
$ac_objext; then
6264 ac_lo
=$ac_mid; break
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.
$ac_ext >&5
6269 ac_hi
=`expr '(' $ac_mid ')' - 1`
6270 if test $ac_mid -le $ac_hi; then
6274 ac_mid
=`expr 2 '*' $ac_mid`
6277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.
$ac_ext >&5
6286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6290 # Binary search between lo and hi bounds.
6291 while test "x$ac_lo" != "x$ac_hi"; do
6292 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6293 cat >conftest.
$ac_ext <<_ACEOF
6296 cat confdefs.h
>>conftest.
$ac_ext
6297 cat >>conftest.
$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 typedef long ac__type_sizeof_;
6304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6311 rm -f conftest.
$ac_objext
6312 if { (ac_try
="$ac_compile"
6314 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6320 grep -v '^ *+' conftest.er1 >conftest.err
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6333 ac_lo=`expr '(' $ac_mid ')' + 1`
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 ?*) ac_cv_sizeof_long=$ac_lo;;
6340 '') if test "$ac_cv_type_long" = yes; then
6341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6342 See \`config.log
' for more details." >&5
6343 echo "$as_me: error: cannot compute sizeof (long)
6344 See \`config.log' for more details.
" >&2;}
6345 { (exit 77); exit 77; }; }
6351 cat >conftest.$ac_ext <<_ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 typedef long ac__type_sizeof_;
6359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6367 FILE *f = fopen ("conftest.val
", "w
");
6370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6372 long int i = longval ();
6373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6375 fprintf (f, "%ld
\n", i);
6379 unsigned long int i = ulongval ();
6380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6382 fprintf (f, "%lu
\n", i);
6384 return ferror (f) || fclose (f) != 0;
6390 rm -f conftest$ac_exeext
6391 if { (ac_try="$ac_link"
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_link") 2>&5
6399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_try") 2>&5
6408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_sizeof_long=`cat conftest.val`
6412 echo "$as_me: program exited with status
$ac_status" >&5
6413 echo "$as_me: failed program was
:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6417 if test "$ac_cv_type_long" = yes; then
6418 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
6419 See \
`config.log' for more details." >&5
6420 echo "$as_me: error: cannot compute sizeof (long)
6421 See \`config.log
' for more details." >&2;}
6422 { (exit 77); exit 77; }; }
6427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6432 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6436 cat >>confdefs.h <<_ACEOF
6437 #define SIZEOF_LONG $ac_cv_sizeof_long
6441 { echo "$as_me:$LINENO: checking for long long" >&5
6442 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6443 if test "${ac_cv_type_long_long+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 cat >conftest.$ac_ext <<_ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6452 $ac_includes_default
6453 typedef long long ac__type_new_;
6457 if ((ac__type_new_ *) 0)
6459 if (sizeof (ac__type_new_))
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6474 grep -v '^
*+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 ac_cv_type_long_long=yes
6484 echo "$as_me: failed program was:" >&5
6485 sed 's
/^
/| /' conftest.$ac_ext >&5
6487 ac_cv_type_long_long=no
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6492 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6493 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6495 # The cast to long int works around a bug in the HP C Compiler
6496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6498 # This bug is HP SR number 8606223364.
6499 { echo "$as_me:$LINENO: checking size of long long" >&5
6500 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6501 if test "${ac_cv_sizeof_long_long+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 if test "$cross_compiling" = yes; then
6505 # Depending upon the size, compute the lo and hi bounds.
6506 cat >conftest.
$ac_ext <<_ACEOF
6509 cat confdefs.h
>>conftest.
$ac_ext
6510 cat >>conftest.
$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 $ac_includes_default
6513 typedef long long ac__type_sizeof_;
6517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6524 rm -f conftest.
$ac_objext
6525 if { (ac_try
="$ac_compile"
6527 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6543 cat >conftest.$ac_ext <<_ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 typedef long long ac__type_sizeof_;
6554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6564 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6565 *) ac_try_echo
=$ac_try;;
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6570 grep -v '^ *+' conftest.er1
>conftest.err
6572 cat conftest.err
>&5
6573 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
6578 ac_hi
=$ac_mid; break
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.
$ac_ext >&5
6583 ac_lo
=`expr $ac_mid + 1`
6584 if test $ac_lo -le $ac_mid; then
6588 ac_mid
=`expr 2 '*' $ac_mid + 1`
6591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.
$ac_ext >&5
6597 cat >conftest.
$ac_ext <<_ACEOF
6600 cat confdefs.h
>>conftest.
$ac_ext
6601 cat >>conftest.
$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 $ac_includes_default
6604 typedef long long ac__type_sizeof_;
6608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6615 rm -f conftest.
$ac_objext
6616 if { (ac_try
="$ac_compile"
6618 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_compile") 2>conftest.er1
6624 grep -v '^ *+' conftest.er1 >conftest.err
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.$ac_objext; then
6634 cat >conftest.$ac_ext <<_ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6641 typedef long long ac__type_sizeof_;
6645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6652 rm -f conftest.$ac_objext
6653 if { (ac_try="$ac_compile"
6655 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6656 *) ac_try_echo
=$ac_try;;
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_compile") 2>conftest.er1
6661 grep -v '^ *+' conftest.er1
>conftest.err
6663 cat conftest.err
>&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest.
$ac_objext; then
6669 ac_lo
=$ac_mid; break
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.
$ac_ext >&5
6674 ac_hi
=`expr '(' $ac_mid ')' - 1`
6675 if test $ac_mid -le $ac_hi; then
6679 ac_mid
=`expr 2 '*' $ac_mid`
6682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.
$ac_ext >&5
6691 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6695 # Binary search between lo and hi bounds.
6696 while test "x$ac_lo" != "x$ac_hi"; do
6697 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6698 cat >conftest.
$ac_ext <<_ACEOF
6701 cat confdefs.h
>>conftest.
$ac_ext
6702 cat >>conftest.
$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 typedef long long ac__type_sizeof_;
6709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6716 rm -f conftest.
$ac_objext
6717 if { (ac_try
="$ac_compile"
6719 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_lo=`expr '(' $ac_mid ')' + 1`
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6744 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6745 '') if test "$ac_cv_type_long_long" = yes; then
6746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6747 See \`config.log
' for more details." >&5
6748 echo "$as_me: error: cannot compute sizeof (long long)
6749 See \`config.log' for more details.
" >&2;}
6750 { (exit 77); exit 77; }; }
6752 ac_cv_sizeof_long_long=0
6756 cat >conftest.$ac_ext <<_ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 typedef long long ac__type_sizeof_;
6764 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6765 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6772 FILE *f = fopen ("conftest.val
", "w
");
6775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6777 long int i = longval ();
6778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6780 fprintf (f, "%ld
\n", i);
6784 unsigned long int i = ulongval ();
6785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6787 fprintf (f, "%lu
\n", i);
6789 return ferror (f) || fclose (f) != 0;
6795 rm -f conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>&5
6804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6806 { (case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_try") 2>&5
6813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_sizeof_long_long=`cat conftest.val`
6817 echo "$as_me: program exited with status
$ac_status" >&5
6818 echo "$as_me: failed program was
:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6822 if test "$ac_cv_type_long_long" = yes; then
6823 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
6824 See \
`config.log' for more details." >&5
6825 echo "$as_me: error: cannot compute sizeof (long long)
6826 See \`config.log
' for more details." >&2;}
6827 { (exit 77); exit 77; }; }
6829 ac_cv_sizeof_long_long=0
6832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6837 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6841 cat >>confdefs.h <<_ACEOF
6842 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6848 { echo "$as_me:$LINENO: checking the system's memory page size
" >&5
6849 echo $ECHO_N "checking the system
's memory page size... $ECHO_C" >&6; }
6851 if test "$cross_compiling" = yes; then
6852 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6853 See \`config.log' for more details.
" >&5
6854 echo "$as_me: error
: cannot run
test program
while cross compiling
6855 See \
`config.log' for more details." >&2;}
6856 { (exit 1); exit 1; }; }
6858 cat >conftest.$ac_ext <<_ACEOF
6861 cat confdefs.h >>conftest.$ac_ext
6862 cat >>conftest.$ac_ext <<_ACEOF
6863 /* end confdefs.h. */
6867 # include <unistd.h>
6871 FILE *fp = fopen("conftest.malloc", "w");
6874 fprintf(fp, "%d\n", getpagesize());
6881 rm -f conftest$ac_exeext
6882 if { (ac_try="$ac_link"
6884 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6885 *) ac_try_echo
=$ac_try;;
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_link") 2>&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6892 { (case "(($ac_try" in
6893 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_try") 2>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6902 if test -f "conftest.malloc" ; then
6903 pagesize=`cat conftest.malloc
`
6907 echo "$as_me: program exited with status $ac_status" >&5
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6916 if test "$pagesize" != "no" ; then
6917 { echo "$as_me:$LINENO: result: $pagesize" >&5
6918 echo "${ECHO_T}$pagesize" >&6; }
6920 if test "$ac_cv_sizeof_int" = "4" ; then
6925 { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6926 echo "${ECHO_T}$pagesize (guessing)" >&6; }
6929 cat >>confdefs.h <<_ACEOF
6930 #define MALLOC_PAGESIZE $pagesize
6935 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6936 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6937 if test "${ac_cv_search_socket+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 ac_func_search_save_LIBS=$LIBS
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6948 /* Override any GCC internal prototype to avoid an error.
6949 Use char because int might match the return type of a GCC
6950 builtin and then its argument prototype would still apply. */
6963 for ac_lib in '' socket; do
6964 if test -z "$ac_lib"; then
6965 ac_res="none required"
6968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (ac_try="$ac_link"
6973 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6974 *) ac_try_echo
=$ac_try;;
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_link") 2>conftest.er1
6979 grep -v '^ *+' conftest.er1
>conftest.err
6981 cat conftest.err
>&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest
$ac_exeext &&
6987 $as_test_x conftest
$ac_exeext; then
6988 ac_cv_search_socket
=$ac_res
6990 echo "$as_me: failed program was:" >&5
6991 sed 's/^/| /' conftest.
$ac_ext >&5
6996 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6998 if test "${ac_cv_search_socket+set}" = set; then
7002 if test "${ac_cv_search_socket+set}" = set; then
7005 ac_cv_search_socket
=no
7008 LIBS
=$ac_func_search_save_LIBS
7010 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7011 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7012 ac_res
=$ac_cv_search_socket
7013 if test "$ac_res" != no
; then
7014 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7017 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
7018 echo "$as_me: error: You have no socket()! Aborting." >&2;}
7019 { (exit 1); exit 1; }; }
7023 if test x
"$SUN" = xyes
; then
7024 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7025 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7026 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 ac_func_search_save_LIBS
=$LIBS
7030 cat >conftest.
$ac_ext <<_ACEOF
7033 cat confdefs.h
>>conftest.
$ac_ext
7034 cat >>conftest.
$ac_ext <<_ACEOF
7035 /* end confdefs.h. */
7037 /* Override any GCC internal prototype to avoid an error.
7038 Use char because int might match the return type of a GCC
7039 builtin and then its argument prototype would still apply. */
7047 return inet_ntoa ();
7052 for ac_lib
in '' nsl
; do
7053 if test -z "$ac_lib"; then
7054 ac_res
="none required"
7057 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7059 rm -f conftest.
$ac_objext conftest
$ac_exeext
7060 if { (ac_try
="$ac_link"
7062 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_link") 2>conftest.er1
7068 grep -v '^ *+' conftest.er1 >conftest.err
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest$ac_exeext &&
7076 $as_test_x conftest$ac_exeext; then
7077 ac_cv_search_inet_ntoa=$ac_res
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7087 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7091 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7094 ac_cv_search_inet_ntoa=no
7097 LIBS=$ac_func_search_save_LIBS
7099 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7100 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7101 ac_res=$ac_cv_search_inet_ntoa
7102 if test "$ac_res" != no; then
7103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7106 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7107 echo "$as_me: error: libnsl not found! Aborting." >&2;}
7108 { (exit 1); exit 1; }; }
7113 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7114 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7115 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <sys/socket.h>
7131 static struct sockaddr ac_aggr;
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7141 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7142 *) ac_try_echo
=$ac_try;;
7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_compile") 2>conftest.er1
7147 grep -v '^ *+' conftest.er1
>conftest.err
7149 cat conftest.err
>&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.
$ac_objext; then
7155 ac_cv_member_struct_sockaddr_sa_len
=yes
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.
$ac_ext >&5
7160 cat >conftest.
$ac_ext <<_ACEOF
7163 cat confdefs.h
>>conftest.
$ac_ext
7164 cat >>conftest.
$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 #include <sys/types.h>
7167 #include <sys/socket.h>
7173 static struct sockaddr ac_aggr;
7174 if (sizeof ac_aggr.sa_len)
7180 rm -f conftest.
$ac_objext
7181 if { (ac_try
="$ac_compile"
7183 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7189 grep -v '^ *+' conftest.er1 >conftest.err
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_cv_member_struct_sockaddr_sa_len=yes
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7202 ac_cv_member_struct_sockaddr_sa_len=no
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7211 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
7212 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7214 cat >>confdefs.h <<\_ACEOF
7215 #define SOCKADDR_IN_HAS_LEN 1
7221 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7222 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7223 if test "${ac_cv_type_socklen_t+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 cat >conftest.$ac_ext <<_ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h. */
7232 #include <sys/types.h>
7233 #include <sys/socket.h>
7235 typedef socklen_t ac__type_new_;
7239 if ((ac__type_new_ *) 0)
7241 if (sizeof (ac__type_new_))
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7250 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7251 *) ac_try_echo
=$ac_try;;
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1
>conftest.err
7258 cat conftest.err
>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.
$ac_objext; then
7264 ac_cv_type_socklen_t
=yes
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.
$ac_ext >&5
7269 ac_cv_type_socklen_t
=no
7272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7274 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7275 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7276 if test $ac_cv_type_socklen_t = yes; then
7280 cat >>confdefs.h
<<\_ACEOF
7281 #define socklen_t unsigned int
7287 # Check whether --enable-ipv6 was given.
7288 if test "${enable_ipv6+set}" = set; then
7289 enableval
=$enable_ipv6; ipv6
=$enableval
7295 if test $ipv6 != yes; then
7298 { echo "$as_me:$LINENO: checking for core IPv6 support" >&5
7299 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; }
7301 cat >conftest.
$ac_ext <<_ACEOF
7304 cat confdefs.h
>>conftest.
$ac_ext
7305 cat >>conftest.
$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7308 #include <sys/types.h>
7309 #include <sys/socket.h>
7310 #include <netinet/in.h>
7314 struct sockaddr_in6 s;
7321 rm -f conftest.
$ac_objext
7322 if { (ac_try
="$ac_compile"
7324 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7330 grep -v '^ *+' conftest.er1 >conftest.err
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
7339 if test "$CYGWIN" = "yes"; then
7340 { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7341 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; }
7346 cat >>confdefs.h <<\_ACEOF
7350 { echo "$as_me:$LINENO: result: yes" >&5
7351 echo "${ECHO_T}yes" >&6; }
7352 { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7353 echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; }
7354 cat >conftest.$ac_ext <<_ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7361 #include <sys/types.h>
7362 #include <sys/socket.h>
7363 #include <netinet/in.h>
7367 struct in6_addr a = in6addr_any;
7373 rm -f conftest.$ac_objext
7374 if { (ac_try="$ac_compile"
7376 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7377 *) ac_try_echo
=$ac_try;;
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_compile") 2>conftest.er1
7382 grep -v '^ *+' conftest.er1
>conftest.err
7384 cat conftest.err
>&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest.
$ac_objext; then
7390 { echo "$as_me:$LINENO: result: yes" >&5
7391 echo "${ECHO_T}yes" >&6; }
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.
$ac_ext >&5
7397 { echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6; }
7400 cat >>confdefs.h
<<\_ACEOF
7401 #define NO_IN6ADDR_ANY 1
7409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.
$ac_ext >&5
7416 { echo "$as_me:$LINENO: result: no" >&5
7417 echo "${ECHO_T}no" >&6; }
7421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7424 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7425 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7426 if test "${ac_cv_search_crypt+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7429 ac_func_search_save_LIBS
=$LIBS
7430 cat >conftest.
$ac_ext <<_ACEOF
7433 cat confdefs.h
>>conftest.
$ac_ext
7434 cat >>conftest.
$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7437 /* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
7452 for ac_lib
in '' crypt descrypt
; do
7453 if test -z "$ac_lib"; then
7454 ac_res
="none required"
7457 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7459 rm -f conftest.
$ac_objext conftest
$ac_exeext
7460 if { (ac_try
="$ac_link"
7462 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_link") 2>conftest.er1
7468 grep -v '^ *+' conftest.er1 >conftest.err
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest$ac_exeext &&
7476 $as_test_x conftest$ac_exeext; then
7477 ac_cv_search_crypt=$ac_res
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7487 if test "${ac_cv_search_crypt+set}" = set; then
7491 if test "${ac_cv_search_crypt+set}" = set; then
7494 ac_cv_search_crypt=no
7497 LIBS=$ac_func_search_save_LIBS
7499 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7500 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7501 ac_res=$ac_cv_search_crypt
7502 if test "$ac_res" != no; then
7503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7508 CRYPT_LIB=$ac_cv_search_crypt
7510 if test "$CRYPT_LIB" = "none required"; then
7512 elif test "$CRYPT_LIB" = no; then
7518 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7526 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7527 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
7528 if test "${gcc_cv_header_string+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 cat >conftest.$ac_ext <<_ACEOF
7534 #include <strings.h>
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7539 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7540 *) ac_try_echo
=$ac_try;;
7542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
7545 grep -v '^ *+' conftest.er1
>conftest.err
7547 cat conftest.err
>&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.
$ac_objext; then
7553 gcc_cv_header_string
=yes
7555 echo "$as_me: failed program was:" >&5
7556 sed 's/^/| /' conftest.
$ac_ext >&5
7558 gcc_cv_header_string
=no
7561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7564 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7565 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
7567 if test "$gcc_cv_header_string" = "yes"; then
7569 cat >>confdefs.h
<<\_ACEOF
7570 #define STRING_WITH_STRINGS 1
7575 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7576 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7577 if test "${ac_cv_c_bigendian+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7580 # See if sys/param.h defines the BYTE_ORDER macro.
7581 cat >conftest.
$ac_ext <<_ACEOF
7584 cat confdefs.h
>>conftest.
$ac_ext
7585 cat >>conftest.
$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 #include <sys/types.h>
7588 #include <sys/param.h>
7593 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7594 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7602 rm -f conftest.
$ac_objext
7603 if { (ac_try
="$ac_compile"
7605 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7609 (eval "$ac_compile") 2>conftest.er1
7611 grep -v '^ *+' conftest.er1 >conftest.err
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615 (exit $ac_status); } && {
7616 test -z "$ac_c_werror_flag" ||
7617 test ! -s conftest.err
7618 } && test -s conftest.$ac_objext; then
7619 # It does; now see whether it defined to BIG_ENDIAN or not.
7620 cat >conftest.$ac_ext <<_ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7626 #include <sys/types.h>
7627 #include <sys/param.h>
7632 #if BYTE_ORDER != BIG_ENDIAN
7640 rm -f conftest.$ac_objext
7641 if { (ac_try="$ac_compile"
7643 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7644 *) ac_try_echo
=$ac_try;;
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_compile") 2>conftest.er1
7649 grep -v '^ *+' conftest.er1
>conftest.err
7651 cat conftest.err
>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.
$ac_objext; then
7657 ac_cv_c_bigendian
=yes
7659 echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.
$ac_ext >&5
7662 ac_cv_c_bigendian
=no
7665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.
$ac_ext >&5
7670 # It does not; compile a test program.
7671 if test "$cross_compiling" = yes; then
7672 # try to guess the endianness by grepping values into an object file
7673 ac_cv_c_bigendian
=unknown
7674 cat >conftest.
$ac_ext <<_ACEOF
7677 cat confdefs.h
>>conftest.
$ac_ext
7678 cat >>conftest.
$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7680 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7681 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7682 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7683 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7684 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7685 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7689 _ascii (); _ebcdic ();
7694 rm -f conftest.
$ac_objext
7695 if { (ac_try
="$ac_compile"
7697 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7701 (eval "$ac_compile") 2>conftest.er1
7703 grep -v '^ *+' conftest.er1 >conftest.err
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest.$ac_objext; then
7711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7712 ac_cv_c_bigendian=yes
7714 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7715 if test "$ac_cv_c_bigendian" = unknown; then
7716 ac_cv_c_bigendian=no
7718 # finding both strings is unlikely to happen, but who knows?
7719 ac_cv_c_bigendian=unknown
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 cat >conftest.$ac_ext <<_ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 $ac_includes_default
7742 /* Are we little or big endian? From Harbison&Steele. */
7746 char c[sizeof (long int)];
7749 return u.c[sizeof (long int) - 1] == 1;
7755 rm -f conftest$ac_exeext
7756 if { (ac_try="$ac_link"
7758 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7759 *) ac_try_echo
=$ac_try;;
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_link") 2>&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7766 { (case "(($ac_try" in
7767 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_try") 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_c_bigendian=no
7777 echo "$as_me: program exited with status $ac_status" >&5
7778 echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7782 ac_cv_c_bigendian=yes
7784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7793 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7794 case $ac_cv_c_bigendian in
7797 cat >>confdefs.h <<\_ACEOF
7798 #define WORDS_BIGENDIAN 1
7804 { { echo "$as_me:$LINENO: error: unknown endianness
7805 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7806 echo "$as_me: error: unknown endianness
7807 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7808 { (exit 1); exit 1; }; } ;;
7812 if test "${ac_cv_header_stdarg_h+set}" = set; then
7813 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7814 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7815 if test "${ac_cv_header_stdarg_h+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7819 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7821 # Is the header compilable?
7822 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7823 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7830 $ac_includes_default
7833 rm -f conftest.$ac_objext
7834 if { (ac_try="$ac_compile"
7836 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7837 *) ac_try_echo
=$ac_try;;
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_compile") 2>conftest.er1
7842 grep -v '^ *+' conftest.er1
>conftest.err
7844 cat conftest.err
>&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } && {
7847 test -z "$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 } && test -s conftest.
$ac_objext; then
7850 ac_header_compiler
=yes
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.
$ac_ext >&5
7855 ac_header_compiler
=no
7858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7860 echo "${ECHO_T}$ac_header_compiler" >&6; }
7862 # Is the header present?
7863 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7864 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7865 cat >conftest.
$ac_ext <<_ACEOF
7868 cat confdefs.h
>>conftest.
$ac_ext
7869 cat >>conftest.
$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7873 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7875 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } >/dev/null && {
7886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7889 ac_header_preproc=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_header_preproc=no
7897 rm -f conftest.err conftest.$ac_ext
7898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7899 echo "${ECHO_T}$ac_header_preproc" >&6; }
7901 # So? What about this header?
7902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7904 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7905 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7907 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7908 ac_header_preproc=yes
7911 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7912 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7914 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7916 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7918 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7920 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7922 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7926 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7927 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7928 if test "${ac_cv_header_stdarg_h+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7931 ac_cv_header_stdarg_h=$ac_header_preproc
7933 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7934 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7937 if test $ac_cv_header_stdarg_h = yes; then
7940 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7941 echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7942 { (exit 1); exit 1; }; }
7948 if test "$ac_cv_c_compiler_gnu" = yes; then
7950 { echo "$as_me:$LINENO: checking for strlcpy" >&5
7951 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
7953 CFLAGS="$CFLAGS -Wimplicit -Werror"
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7966 char *a = malloc(6);
7967 strlcpy(a, "hello", 6);
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
7976 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7977 *) ac_try_echo
=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1
>conftest.err
7984 cat conftest.err
>&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest
$ac_exeext &&
7990 $as_test_x conftest
$ac_exeext; then
7991 { echo "$as_me:$LINENO: result: yes" >&5
7992 echo "${ECHO_T}yes" >&6; }
7994 cat >>confdefs.h
<<\_ACEOF
7995 #define HAVE_STRLCPY 1
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.
$ac_ext >&5
8002 { echo "$as_me:$LINENO: result: no" >&5
8003 echo "${ECHO_T}no" >&6; }
8007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8008 conftest
$ac_exeext conftest.
$ac_ext
8010 { echo "$as_me:$LINENO: checking for strlcat" >&5
8011 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
8012 cat >conftest.
$ac_ext <<_ACEOF
8015 cat confdefs.h
>>conftest.
$ac_ext
8016 cat >>conftest.
$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8023 char *a = malloc(6);
8025 strlcat(a, "hello", 6);
8031 rm -f conftest.
$ac_objext conftest
$ac_exeext
8032 if { (ac_try
="$ac_link"
8034 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest$ac_exeext &&
8048 $as_test_x conftest$ac_exeext; then
8049 { echo "$as_me:$LINENO: result: yes" >&5
8050 echo "${ECHO_T}yes" >&6; }
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_STRLCAT 1
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 { echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6; }
8065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8066 conftest$ac_exeext conftest.$ac_ext
8075 for ac_func in strlcat strlcpy
8077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8091 #define $ac_func innocuous_$ac_func
8093 /* System header to define __stub macros and hopefully few prototypes,
8094 which can conflict with char $ac_func (); below.
8095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8096 <limits.h> exists even on freestanding compilers. */
8099 # include <limits.h>
8101 # include <assert.h>
8106 /* Override any GCC internal prototype to avoid an error.
8107 Use char because int might match the return type of a GCC
8108 builtin and then its argument prototype would still apply. */
8113 /* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
8116 #if defined __stub_$ac_func || defined __stub___$ac_func
8128 rm -f conftest.$ac_objext conftest$ac_exeext
8129 if { (ac_try="$ac_link"
8131 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8132 *) ac_try_echo
=$ac_try;;
8134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_link") 2>conftest.er1
8137 grep -v '^ *+' conftest.er1
>conftest.err
8139 cat conftest.err
>&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } && {
8142 test -z "$ac_c_werror_flag" ||
8143 test ! -s conftest.err
8144 } && test -s conftest
$ac_exeext &&
8145 $as_test_x conftest
$ac_exeext; then
8146 eval "$as_ac_var=yes"
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.
$ac_ext >&5
8151 eval "$as_ac_var=no"
8154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8155 conftest
$ac_exeext conftest.
$ac_ext
8157 ac_res
=`eval echo '${'$as_ac_var'}'`
8158 { echo "$as_me:$LINENO: result: $ac_res" >&5
8159 echo "${ECHO_T}$ac_res" >&6; }
8160 if test `eval echo '${'$as_ac_var'}'` = yes; then
8161 cat >>confdefs.h
<<_ACEOF
8162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8171 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
8172 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
8173 if test "${ac_cv_type_u_int32_t+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.
$ac_ext <<_ACEOF
8179 cat confdefs.h
>>conftest.
$ac_ext
8180 cat >>conftest.
$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 typedef u_int32_t ac__type_new_;
8187 if ((ac__type_new_ *) 0)
8189 if (sizeof (ac__type_new_))
8195 rm -f conftest.
$ac_objext
8196 if { (ac_try
="$ac_compile"
8198 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1 >conftest.err
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest.$ac_objext; then
8212 ac_cv_type_u_int32_t=yes
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8217 ac_cv_type_u_int32_t=no
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8223 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
8224 if test $ac_cv_type_u_int32_t = yes; then
8228 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8229 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8230 if test "${ac_cv_type_uint32_t+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.$ac_ext <<_ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 $ac_includes_default
8240 typedef uint32_t ac__type_new_;
8244 if ((ac__type_new_ *) 0)
8246 if (sizeof (ac__type_new_))
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8255 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8256 *) ac_try_echo
=$ac_try;;
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1
>conftest.err
8263 cat conftest.err
>&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.
$ac_objext; then
8269 ac_cv_type_uint32_t
=yes
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.
$ac_ext >&5
8274 ac_cv_type_uint32_t
=no
8277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8279 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8280 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8281 if test $ac_cv_type_uint32_t = yes; then
8284 cat >>confdefs.h
<<\_ACEOF
8285 #define u_int32_t uint32_t
8291 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8292 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8294 cat >>confdefs.h
<<\_ACEOF
8295 #define u_int32_t unsigned long int
8305 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
8306 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
8307 if test "${ac_cv_type_u_int16_t+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8310 cat >conftest.
$ac_ext <<_ACEOF
8313 cat confdefs.h
>>conftest.
$ac_ext
8314 cat >>conftest.
$ac_ext <<_ACEOF
8315 /* end confdefs.h. */
8316 $ac_includes_default
8317 typedef u_int16_t ac__type_new_;
8321 if ((ac__type_new_ *) 0)
8323 if (sizeof (ac__type_new_))
8329 rm -f conftest.
$ac_objext
8330 if { (ac_try
="$ac_compile"
8332 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8338 grep -v '^ *+' conftest.er1 >conftest.err
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_type_u_int16_t=yes
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_type_u_int16_t=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8357 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
8358 if test $ac_cv_type_u_int16_t = yes; then
8362 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8363 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8364 if test "${ac_cv_type_uint16_t+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 typedef uint16_t ac__type_new_;
8378 if ((ac__type_new_ *) 0)
8380 if (sizeof (ac__type_new_))
8386 rm -f conftest.$ac_objext
8387 if { (ac_try="$ac_compile"
8389 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8390 *) ac_try_echo
=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
8395 grep -v '^ *+' conftest.er1
>conftest.err
8397 cat conftest.err
>&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } && {
8400 test -z "$ac_c_werror_flag" ||
8401 test ! -s conftest.err
8402 } && test -s conftest.
$ac_objext; then
8403 ac_cv_type_uint16_t
=yes
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.
$ac_ext >&5
8408 ac_cv_type_uint16_t
=no
8411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8413 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8414 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8415 if test $ac_cv_type_uint16_t = yes; then
8418 cat >>confdefs.h
<<\_ACEOF
8419 #define u_int16_t uint16_t
8425 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8426 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8428 cat >>confdefs.h
<<\_ACEOF
8429 #define u_int16_t unsigned short int
8439 { echo "$as_me:$LINENO: checking for in_port_t" >&5
8440 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
8441 if test "${ac_cv_type_in_port_t+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 cat >conftest.
$ac_ext <<_ACEOF
8447 cat confdefs.h
>>conftest.
$ac_ext
8448 cat >>conftest.
$ac_ext <<_ACEOF
8449 /* end confdefs.h. */
8450 #include <sys/types.h>
8451 #include <netinet/in.h>
8453 typedef in_port_t ac__type_new_;
8457 if ((ac__type_new_ *) 0)
8459 if (sizeof (ac__type_new_))
8465 rm -f conftest.
$ac_objext
8466 if { (ac_try
="$ac_compile"
8468 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_compile") 2>conftest.er1
8474 grep -v '^ *+' conftest.er1 >conftest.err
8476 cat conftest.err >&5
8477 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 ac_cv_type_in_port_t=yes
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8487 ac_cv_type_in_port_t=no
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8492 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8493 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
8494 if test $ac_cv_type_in_port_t = yes; then
8498 cat >>confdefs.h <<\_ACEOF
8499 #define in_port_t u_int16_t
8505 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
8506 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
8507 if test "${ac_cv_type_sa_family_t+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 #include <sys/types.h>
8517 #include <sys/socket.h>
8519 typedef sa_family_t ac__type_new_;
8523 if ((ac__type_new_ *) 0)
8525 if (sizeof (ac__type_new_))
8531 rm -f conftest.$ac_objext
8532 if { (ac_try="$ac_compile"
8534 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8535 *) ac_try_echo
=$ac_try;;
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8540 grep -v '^ *+' conftest.er1
>conftest.err
8542 cat conftest.err
>&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.
$ac_objext; then
8548 ac_cv_type_sa_family_t
=yes
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.
$ac_ext >&5
8553 ac_cv_type_sa_family_t
=no
8556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8558 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8559 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
8560 if test $ac_cv_type_sa_family_t = yes; then
8564 cat >>confdefs.h
<<\_ACEOF
8565 #define sa_family_t u_int16_t
8571 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8572 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8573 if test "${ac_cv_type_uintptr_t+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 cat >conftest.
$ac_ext <<_ACEOF
8579 cat confdefs.h
>>conftest.
$ac_ext
8580 cat >>conftest.
$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 typedef uintptr_t ac__type_new_;
8587 if ((ac__type_new_ *) 0)
8589 if (sizeof (ac__type_new_))
8595 rm -f conftest.
$ac_objext
8596 if { (ac_try
="$ac_compile"
8598 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_compile") 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } && {
8609 test -z "$ac_c_werror_flag" ||
8610 test ! -s conftest.err
8611 } && test -s conftest.$ac_objext; then
8612 ac_cv_type_uintptr_t=yes
8614 echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8617 ac_cv_type_uintptr_t=no
8620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8623 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
8624 if test $ac_cv_type_uintptr_t = yes; then
8626 cat >>confdefs.h <<_ACEOF
8627 #define HAVE_UINTPTR_T 1
8640 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8648 cat >conftest.$ac_ext <<_ACEOF
8651 cat confdefs.h >>conftest.$ac_ext
8652 cat >>conftest.$ac_ext <<_ACEOF
8653 /* end confdefs.h. */
8654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8656 #define $ac_func innocuous_$ac_func
8658 /* System header to define __stub macros and hopefully few prototypes,
8659 which can conflict with char $ac_func (); below.
8660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 <limits.h> exists even on freestanding compilers. */
8664 # include <limits.h>
8666 # include <assert.h>
8671 /* Override any GCC internal prototype to avoid an error.
8672 Use char because int might match the return type of a GCC
8673 builtin and then its argument prototype would still apply. */
8678 /* The GNU C library defines this for functions which it implements
8679 to always fail with ENOSYS. Some functions are actually named
8680 something starting with __ and the normal name is an alias. */
8681 #if defined __stub_$ac_func || defined __stub___$ac_func
8693 rm -f conftest.$ac_objext conftest$ac_exeext
8694 if { (ac_try="$ac_link"
8696 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8697 *) ac_try_echo
=$ac_try;;
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_link") 2>conftest.er1
8702 grep -v '^ *+' conftest.er1
>conftest.err
8704 cat conftest.err
>&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest
$ac_exeext &&
8710 $as_test_x conftest
$ac_exeext; then
8711 eval "$as_ac_var=yes"
8713 echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.
$ac_ext >&5
8716 eval "$as_ac_var=no"
8719 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8720 conftest
$ac_exeext conftest.
$ac_ext
8722 ac_res
=`eval echo '${'$as_ac_var'}'`
8723 { echo "$as_me:$LINENO: result: $ac_res" >&5
8724 echo "${ECHO_T}$ac_res" >&6; }
8725 if test `eval echo '${'$as_ac_var'}'` = yes; then
8726 cat >>confdefs.h
<<_ACEOF
8727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8734 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8735 # for constant arguments. Useless!
8736 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8737 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8738 if test "${ac_cv_working_alloca_h+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 cat >conftest.
$ac_ext <<_ACEOF
8744 cat confdefs.h
>>conftest.
$ac_ext
8745 cat >>conftest.
$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8751 char *p = (char *) alloca (2 * sizeof (int));
8757 rm -f conftest.
$ac_objext conftest
$ac_exeext
8758 if { (ac_try
="$ac_link"
8760 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_link") 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
8773 } && test -s conftest$ac_exeext &&
8774 $as_test_x conftest$ac_exeext; then
8775 ac_cv_working_alloca_h=yes
8777 echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 ac_cv_working_alloca_h=no
8783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8784 conftest$ac_exeext conftest.$ac_ext
8786 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8787 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8788 if test $ac_cv_working_alloca_h = yes; then
8790 cat >>confdefs.h <<\_ACEOF
8791 #define HAVE_ALLOCA_H 1
8796 { echo "$as_me:$LINENO: checking for alloca" >&5
8797 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8798 if test "${ac_cv_func_alloca_works+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 # define alloca __builtin_alloca
8811 # include <malloc.h>
8812 # define alloca _alloca
8814 # ifdef HAVE_ALLOCA_H
8815 # include <alloca.h>
8820 # ifndef alloca /* predefined by HP cc +Olibcalls */
8831 char *p = (char *) alloca (1);
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (ac_try="$ac_link"
8840 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8841 *) ac_try_echo
=$ac_try;;
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_link") 2>conftest.er1
8846 grep -v '^ *+' conftest.er1
>conftest.err
8848 cat conftest.err
>&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest
$ac_exeext &&
8854 $as_test_x conftest
$ac_exeext; then
8855 ac_cv_func_alloca_works
=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.
$ac_ext >&5
8860 ac_cv_func_alloca_works
=no
8863 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8864 conftest
$ac_exeext conftest.
$ac_ext
8866 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8867 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8869 if test $ac_cv_func_alloca_works = yes; then
8871 cat >>confdefs.h
<<\_ACEOF
8872 #define HAVE_ALLOCA 1
8876 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8877 # that cause trouble. Some versions do not even contain alloca or
8878 # contain a buggy version. If you still want to use their alloca,
8879 # use ar to extract alloca.o from them instead of compiling alloca.c.
8881 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8883 cat >>confdefs.h
<<\_ACEOF
8888 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8889 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8890 if test "${ac_cv_os_cray+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8893 cat >conftest.
$ac_ext <<_ACEOF
8896 cat confdefs.h
>>conftest.
$ac_ext
8897 cat >>conftest.
$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 #if defined CRAY && ! defined CRAY2
8906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8907 $EGREP "webecray" >/dev
/null
2>&1; then
8915 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8916 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8917 if test $ac_cv_os_cray = yes; then
8918 for ac_func
in _getb67 GETB67 getb67
; do
8919 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8920 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8921 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8922 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 cat >conftest.
$ac_ext <<_ACEOF
8928 cat confdefs.h
>>conftest.
$ac_ext
8929 cat >>conftest.
$ac_ext <<_ACEOF
8930 /* end confdefs.h. */
8931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8933 #define $ac_func innocuous_$ac_func
8935 /* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8941 # include <limits.h>
8943 # include <assert.h>
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8955 /* The GNU C library defines this for functions which it implements
8956 to always fail with ENOSYS. Some functions are actually named
8957 something starting with __ and the normal name is an alias. */
8958 #if defined __stub_$ac_func || defined __stub___$ac_func
8970 rm -f conftest.
$ac_objext conftest
$ac_exeext
8971 if { (ac_try
="$ac_link"
8973 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_link") 2>conftest.er1
8979 grep -v '^ *+' conftest.er1 >conftest.err
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest$ac_exeext &&
8987 $as_test_x conftest$ac_exeext; then
8988 eval "$as_ac_var=yes"
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8993 eval "$as_ac_var=no"
8996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8997 conftest$ac_exeext conftest.$ac_ext
8999 ac_res=`eval echo '${'$as_ac_var'}'`
9000 { echo "$as_me:$LINENO: result: $ac_res" >&5
9001 echo "${ECHO_T}$ac_res" >&6; }
9002 if test `eval echo '${'$as_ac_var'}'` = yes; then
9004 cat >>confdefs.h <<_ACEOF
9005 #define CRAY_STACKSEG_END $ac_func
9014 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9015 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9016 if test "${ac_cv_c_stack_direction+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 if test "$cross_compiling" = yes; then
9020 ac_cv_c_stack_direction=0
9022 cat >conftest.$ac_ext <<_ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9028 $ac_includes_default
9030 find_stack_direction ()
9032 static char *addr = 0;
9037 return find_stack_direction ();
9040 return (&dummy > addr) ? 1 : -1;
9046 return find_stack_direction () < 0;
9049 rm -f conftest$ac_exeext
9050 if { (ac_try="$ac_link"
9052 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9053 *) ac_try_echo
=$ac_try;;
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_link") 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9060 { (case "(($ac_try" in
9061 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_c_stack_direction=1
9071 echo "$as_me: program exited with status $ac_status" >&5
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_c_stack_direction=-1
9078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9083 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9084 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9086 cat >>confdefs.h <<_ACEOF
9087 #define STACK_DIRECTION $ac_cv_c_stack_direction
9095 { echo "$as_me:$LINENO: checking for nanosleep" >&5
9096 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
9097 if test "${ac_cv_func_nanosleep+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 cat >conftest.$ac_ext <<_ACEOF
9103 cat confdefs.h >>conftest.$ac_ext
9104 cat >>conftest.$ac_ext <<_ACEOF
9105 /* end confdefs.h. */
9106 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
9107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9108 #define nanosleep innocuous_nanosleep
9110 /* System header to define __stub macros and hopefully few prototypes,
9111 which can conflict with char nanosleep (); below.
9112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9113 <limits.h> exists even on freestanding compilers. */
9116 # include <limits.h>
9118 # include <assert.h>
9123 /* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
9130 /* The GNU C library defines this for functions which it implements
9131 to always fail with ENOSYS. Some functions are actually named
9132 something starting with __ and the normal name is an alias. */
9133 #if defined __stub_nanosleep || defined __stub___nanosleep
9140 return nanosleep ();
9145 rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9148 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9149 *) ac_try_echo
=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
9154 grep -v '^ *+' conftest.er1
>conftest.err
9156 cat conftest.err
>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } && {
9159 test -z "$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 } && test -s conftest
$ac_exeext &&
9162 $as_test_x conftest
$ac_exeext; then
9163 ac_cv_func_nanosleep
=yes
9165 echo "$as_me: failed program was:" >&5
9166 sed 's/^/| /' conftest.
$ac_ext >&5
9168 ac_cv_func_nanosleep
=no
9171 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9172 conftest
$ac_exeext conftest.
$ac_ext
9174 { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
9175 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
9176 if test $ac_cv_func_nanosleep = yes; then
9179 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9180 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
9181 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9184 ac_check_lib_save_LIBS
=$LIBS
9186 cat >conftest.
$ac_ext <<_ACEOF
9189 cat confdefs.h
>>conftest.
$ac_ext
9190 cat >>conftest.
$ac_ext <<_ACEOF
9191 /* end confdefs.h. */
9193 /* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9203 return nanosleep ();
9208 rm -f conftest.
$ac_objext conftest
$ac_exeext
9209 if { (ac_try
="$ac_link"
9211 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_link") 2>conftest.er1
9217 grep -v '^ *+' conftest.er1 >conftest.err
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest$ac_exeext &&
9225 $as_test_x conftest$ac_exeext; then
9226 ac_cv_lib_rt_nanosleep=yes
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_cv_lib_rt_nanosleep=no
9234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9235 conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9238 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9239 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
9240 if test $ac_cv_lib_rt_nanosleep = yes; then
9243 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9244 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
9245 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9248 ac_check_lib_save_LIBS=$LIBS
9249 LIBS="-lposix4 $LIBS"
9250 cat >conftest.$ac_ext <<_ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h. */
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9267 return nanosleep ();
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9275 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9276 *) ac_try_echo
=$ac_try;;
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_link") 2>conftest.er1
9281 grep -v '^ *+' conftest.er1
>conftest.err
9283 cat conftest.err
>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest
$ac_exeext &&
9289 $as_test_x conftest
$ac_exeext; then
9290 ac_cv_lib_posix4_nanosleep
=yes
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.
$ac_ext >&5
9295 ac_cv_lib_posix4_nanosleep
=no
9298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9299 conftest
$ac_exeext conftest.
$ac_ext
9300 LIBS
=$ac_check_lib_save_LIBS
9302 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9303 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
9304 if test $ac_cv_lib_posix4_nanosleep = yes; then
9305 LIBS
="${LIBS} -lposix4"
9313 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
9315 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9316 echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
9319 cat >>confdefs.h
<<\_ACEOF
9320 #define HAVE_NANOSLEEP 1
9325 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
9326 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9327 # Check whether --enable-openssl was given.
9328 if test "${enable_openssl+set}" = set; then
9329 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
9331 cf_enable_openssl
="auto"
9335 if test "$cf_enable_openssl" != "no" ; then
9336 cf_openssl_basedir
=""
9337 if test "$cf_enable_openssl" != "auto" &&
9338 test "$cf_enable_openssl" != "yes" ; then
9339 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9341 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
9342 /usr
/local
/openssl
; do
9343 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9344 cf_openssl_basedir
="${dirs}"
9350 if test ! -z "$cf_openssl_basedir"; then
9351 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9352 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
9353 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
9355 cf_openssl_basedir
=""
9358 if test -f "/usr/include/openssl/opensslv.h" ; then
9359 cf_openssl_basedir
="/usr"
9363 if test ! -z "$cf_openssl_basedir"; then
9364 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9365 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
9366 cf_enable_openssl
="yes"
9368 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9369 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
9370 cf_enable_openssl
="no"
9372 unset cf_openssl_basedir
9374 { echo "$as_me:$LINENO: result: disabled" >&5
9375 echo "${ECHO_T}disabled" >&6; }
9378 save_CPPFLAGS
="$CPPFLAGS"
9379 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
9381 LIBS
="$LIBS $SSL_LIBS"
9382 if test "$cf_enable_openssl" != no
; then
9383 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9384 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
9385 if test "$cross_compiling" = yes; then
9386 cf_openssl_version_ok
=no
9388 cat >conftest.
$ac_ext <<_ACEOF
9391 cat confdefs.h
>>conftest.
$ac_ext
9392 cat >>conftest.
$ac_ext <<_ACEOF
9393 /* end confdefs.h. */
9394 #include <openssl/opensslv.h>
9399 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9400 exit(0); else exit(1);
9405 rm -f conftest
$ac_exeext
9406 if { (ac_try
="$ac_link"
9408 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9416 { (case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9418 *) ac_try_echo
=$ac_try;;
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_try") 2>&5
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 cf_openssl_version_ok
=yes
9427 echo "$as_me: program exited with status $ac_status" >&5
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.
$ac_ext >&5
9432 cf_openssl_version_ok
=no
9434 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9439 if test "$cf_openssl_version_ok" = yes; then
9440 { echo "$as_me:$LINENO: result: found" >&5
9441 echo "${ECHO_T}found" >&6; }
9446 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
9448 { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9449 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
9450 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9453 ac_check_lib_save_LIBS
=$LIBS
9454 LIBS
="-lcrypto $LIBS"
9455 cat >conftest.
$ac_ext <<_ACEOF
9458 cat confdefs.h
>>conftest.
$ac_ext
9459 cat >>conftest.
$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9462 /* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
9477 rm -f conftest.
$ac_objext conftest
$ac_exeext
9478 if { (ac_try
="$ac_link"
9480 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_link") 2>conftest.er1
9486 grep -v '^ *+' conftest.er1 >conftest.err
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest$ac_exeext &&
9494 $as_test_x conftest$ac_exeext; then
9495 ac_cv_lib_crypto_RSA_free=yes
9497 echo "$as_me: failed program was:" >&5
9498 sed 's/^/| /' conftest.$ac_ext >&5
9500 ac_cv_lib_crypto_RSA_free=no
9503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9504 conftest$ac_exeext conftest.$ac_ext
9505 LIBS=$ac_check_lib_save_LIBS
9507 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9508 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
9509 if test $ac_cv_lib_crypto_RSA_free = yes; then
9510 cat >>confdefs.h <<_ACEOF
9511 #define HAVE_LIBCRYPTO 1
9514 LIBS="-lcrypto $LIBS"
9518 SSL_LIBS="$SSL_LIBS -lcrypto"
9519 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9521 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9522 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
9526 CPPFLAGS="$save_CPPFLAGS"
9533 # Check whether --with-zlib-path was given.
9534 if test "${with_zlib_path+set}" = set; then
9535 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9539 # Check whether --enable-zlib was given.
9540 if test "${enable_zlib+set}" = set; then
9541 enableval=$enable_zlib; zlib=$enableval
9547 if test "$zlib" = yes; then
9549 if test "${ac_cv_header_zlib_h+set}" = set; then
9550 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9551 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9552 if test "${ac_cv_header_zlib_h+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9555 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9556 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9558 # Is the header compilable?
9559 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
9560 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
9561 cat >conftest.$ac_ext <<_ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h. */
9567 $ac_includes_default
9570 rm -f conftest.$ac_objext
9571 if { (ac_try="$ac_compile"
9573 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9574 *) ac_try_echo
=$ac_try;;
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_compile") 2>conftest.er1
9579 grep -v '^ *+' conftest.er1
>conftest.err
9581 cat conftest.err
>&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest.
$ac_objext; then
9587 ac_header_compiler
=yes
9589 echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.
$ac_ext >&5
9592 ac_header_compiler
=no
9595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9596 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9597 echo "${ECHO_T}$ac_header_compiler" >&6; }
9599 # Is the header present?
9600 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
9601 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
9602 cat >conftest.
$ac_ext <<_ACEOF
9605 cat confdefs.h
>>conftest.
$ac_ext
9606 cat >>conftest.
$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9610 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9612 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } >/dev/null && {
9623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9626 ac_header_preproc=yes
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9631 ac_header_preproc=no
9634 rm -f conftest.err conftest.$ac_ext
9635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9636 echo "${ECHO_T}$ac_header_preproc" >&6; }
9638 # So? What about this header?
9639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9641 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9642 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9644 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9645 ac_header_preproc=yes
9648 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9649 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9651 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9653 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9655 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9657 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9659 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9663 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9664 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9665 if test "${ac_cv_header_zlib_h+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 ac_cv_header_zlib_h=$ac_header_preproc
9670 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9671 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9674 if test $ac_cv_header_zlib_h = yes; then
9676 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9677 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
9678 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9681 ac_check_lib_save_LIBS=$LIBS
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9690 /* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
9696 char zlibVersion ();
9700 return zlibVersion ();
9705 rm -f conftest.$ac_objext conftest$ac_exeext
9706 if { (ac_try="$ac_link"
9708 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9709 *) ac_try_echo
=$ac_try;;
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
9714 grep -v '^ *+' conftest.er1
>conftest.err
9716 cat conftest.err
>&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest
$ac_exeext &&
9722 $as_test_x conftest
$ac_exeext; then
9723 ac_cv_lib_z_zlibVersion
=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.
$ac_ext >&5
9728 ac_cv_lib_z_zlibVersion
=no
9731 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9732 conftest
$ac_exeext conftest.
$ac_ext
9733 LIBS
=$ac_check_lib_save_LIBS
9735 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9736 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
9737 if test $ac_cv_lib_z_zlibVersion = yes; then
9742 cat >>confdefs.h
<<\_ACEOF
9761 # Check whether --enable-ports was given.
9762 if test "${enable_ports+set}" = set; then
9763 enableval
=$enable_ports; if test $enableval = yes; then
9764 SELECT_TYPE_EXPLICIT
="ports"
9772 # Check whether --enable-poll was given.
9773 if test "${enable_poll+set}" = set; then
9774 enableval
=$enable_poll; if test $enableval = yes; then
9775 SELECT_TYPE_EXPLICIT
="poll"
9783 # Check whether --enable-select was given.
9784 if test "${enable_select+set}" = set; then
9785 enableval
=$enable_select; if test $enableval = yes; then
9786 SELECT_TYPE_EXPLICIT
="select"
9794 # Check whether --enable-kqueue was given.
9795 if test "${enable_kqueue+set}" = set; then
9796 enableval
=$enable_kqueue; if test $enableval = yes; then
9797 SELECT_TYPE_EXPLICIT
="kqueue"
9805 # Check whether --enable-epoll was given.
9806 if test "${enable_epoll+set}" = set; then
9807 enableval
=$enable_epoll; if test $enableval = yes; then
9808 SELECT_TYPE_EXPLICIT
="epoll"
9810 for ac_func
in epoll_ctl
9812 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9815 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9818 cat >conftest.
$ac_ext <<_ACEOF
9821 cat confdefs.h
>>conftest.
$ac_ext
9822 cat >>conftest.
$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9826 #define $ac_func innocuous_$ac_func
9828 /* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char $ac_func (); below.
9830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831 <limits.h> exists even on freestanding compilers. */
9834 # include <limits.h>
9836 # include <assert.h>
9841 /* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
9848 /* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
9851 #if defined __stub_$ac_func || defined __stub___$ac_func
9863 rm -f conftest.
$ac_objext conftest
$ac_exeext
9864 if { (ac_try
="$ac_link"
9866 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
9872 grep -v '^ *+' conftest.er1 >conftest.err
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest$ac_exeext &&
9880 $as_test_x conftest$ac_exeext; then
9881 eval "$as_ac_var=yes"
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 eval "$as_ac_var=no"
9889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9890 conftest$ac_exeext conftest.$ac_ext
9892 ac_res=`eval echo '${'$as_ac_var'}'`
9893 { echo "$as_me:$LINENO: result: $ac_res" >&5
9894 echo "${ECHO_T}$ac_res" >&6; }
9895 if test `eval echo '${'$as_ac_var'}'` = yes; then
9896 cat >>confdefs.h <<_ACEOF
9897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9913 { echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9914 echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
9916 # Check whether --with-confdir was given.
9917 if test "${with_confdir+set}" = set; then
9918 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9919 { echo "$as_me:$LINENO: result: yes" >&5
9920 echo "${ECHO_T}yes" >&6; }
9922 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9924 ac_define_dir=`eval echo $confdir`
9925 ac_define_dir=`eval echo $ac_define_dir`
9926 ETC_DIR="$ac_define_dir"
9929 cat >>confdefs.h <<_ACEOF
9930 #define ETC_DIR "$ac_define_dir"
9937 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9938 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
9939 eval echo \""$confdir"\"
9944 confdir='${prefix}/etc'
9945 { echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6; }
9948 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9950 ac_define_dir=`eval echo $confdir`
9951 ac_define_dir=`eval echo $ac_define_dir`
9952 ETC_DIR="$ac_define_dir"
9955 cat >>confdefs.h <<_ACEOF
9956 #define ETC_DIR "$ac_define_dir"
9963 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9964 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
9965 eval echo \""$confdir"\"
9974 { echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9975 echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
9977 # Check whether --with-logdir was given.
9978 if test "${with_logdir+set}" = set; then
9979 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9980 { echo "$as_me:$LINENO: result: yes" >&5
9981 echo "${ECHO_T}yes" >&6; }
9983 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9985 ac_define_dir=`eval echo $logdir`
9986 ac_define_dir=`eval echo $ac_define_dir`
9987 LOG_DIR="$ac_define_dir"
9990 cat >>confdefs.h <<_ACEOF
9991 #define LOG_DIR "$ac_define_dir"
9998 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9999 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10000 eval echo \""$logdir"\"
10005 logdir='${prefix}/logs'
10006 { echo "$as_me:$LINENO: result: no" >&5
10007 echo "${ECHO_T}no" >&6; }
10009 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10011 ac_define_dir=`eval echo $logdir`
10012 ac_define_dir=`eval echo $ac_define_dir`
10013 LOG_DIR="$ac_define_dir"
10016 cat >>confdefs.h <<_ACEOF
10017 #define LOG_DIR "$ac_define_dir"
10024 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10025 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10026 eval echo \""$logdir"\"
10035 { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
10036 echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
10038 # Check whether --with-helpdir was given.
10039 if test "${with_helpdir+set}" = set; then
10040 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
10041 { echo "$as_me:$LINENO: result: yes" >&5
10042 echo "${ECHO_T}yes" >&6; }
10044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10046 ac_define_dir=`eval echo $helpdir`
10047 ac_define_dir=`eval echo $ac_define_dir`
10048 HELP_DIR="$ac_define_dir"
10051 cat >>confdefs.h <<_ACEOF
10052 #define HELP_DIR "$ac_define_dir"
10059 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10060 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10061 eval echo \""$helpdir"\"
10066 helpdir='${prefix}/help'
10067 { echo "$as_me:$LINENO: result: no" >&5
10068 echo "${ECHO_T}no" >&6; }
10070 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10072 ac_define_dir=`eval echo $helpdir`
10073 ac_define_dir=`eval echo $ac_define_dir`
10074 HELP_DIR="$ac_define_dir"
10077 cat >>confdefs.h <<_ACEOF
10078 #define HELP_DIR "$ac_define_dir"
10085 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10086 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10087 eval echo \""$helpdir"\"
10096 { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
10097 echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
10099 # Check whether --with-moduledir was given.
10100 if test "${with_moduledir+set}" = set; then
10101 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
10102 { echo "$as_me:$LINENO: result: yes" >&5
10103 echo "${ECHO_T}yes" >&6; }
10105 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10107 ac_define_dir=`eval echo $moduledir`
10108 ac_define_dir=`eval echo $ac_define_dir`
10109 MODULE_DIR="$ac_define_dir"
10112 cat >>confdefs.h <<_ACEOF
10113 #define MODULE_DIR "$ac_define_dir"
10120 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10121 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10122 eval echo \""$moduledir"\"
10127 moduledir='${prefix}/modules'
10128 { echo "$as_me:$LINENO: result: no" >&5
10129 echo "${ECHO_T}no" >&6; }
10131 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10133 ac_define_dir=`eval echo $moduledir`
10134 ac_define_dir=`eval echo $ac_define_dir`
10135 MODULE_DIR="$ac_define_dir"
10138 cat >>confdefs.h <<_ACEOF
10139 #define MODULE_DIR "$ac_define_dir"
10146 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10147 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10148 eval echo \""$moduledir"\"
10156 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
10157 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
10158 echo "Forcing $SELECT_TYPE to be enabled"
10161 if test ! "x$use_ports" = "xno"; then
10163 for ac_func in port_getn
10165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10179 #define $ac_func innocuous_$ac_func
10181 /* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func (); below.
10183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184 <limits.h> exists even on freestanding compilers. */
10187 # include <limits.h>
10189 # include <assert.h>
10194 /* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10201 /* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204 #if defined __stub_$ac_func || defined __stub___$ac_func
10211 return $ac_func ();
10216 rm -f conftest.$ac_objext conftest$ac_exeext
10217 if { (ac_try="$ac_link"
10218 case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10220 *) ac_try_echo
=$ac_try;;
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10225 grep -v '^ *+' conftest.er1
>conftest.err
10227 cat conftest.err
>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest
$ac_exeext &&
10233 $as_test_x conftest
$ac_exeext; then
10234 eval "$as_ac_var=yes"
10236 echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.
$ac_ext >&5
10239 eval "$as_ac_var=no"
10242 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10243 conftest
$ac_exeext conftest.
$ac_ext
10245 ac_res
=`eval echo '${'$as_ac_var'}'`
10246 { echo "$as_me:$LINENO: result: $ac_res" >&5
10247 echo "${ECHO_T}$ac_res" >&6; }
10248 if test `eval echo '${'$as_ac_var'}'` = yes; then
10249 cat >>confdefs.h
<<_ACEOF
10250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10258 if test "x$haveports" = "xyes" ; then
10259 SELECT_TYPE
="ports"
10263 if test ! "x$use_select" = "xno"; then
10265 for ac_func
in select
10267 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10270 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 cat >conftest.
$ac_ext <<_ACEOF
10276 cat confdefs.h
>>conftest.
$ac_ext
10277 cat >>conftest.
$ac_ext <<_ACEOF
10278 /* end confdefs.h. */
10279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281 #define $ac_func innocuous_$ac_func
10283 /* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10289 # include <limits.h>
10291 # include <assert.h>
10296 /* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
10303 /* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
10306 #if defined __stub_$ac_func || defined __stub___$ac_func
10313 return $ac_func ();
10318 rm -f conftest.
$ac_objext conftest
$ac_exeext
10319 if { (ac_try
="$ac_link"
10320 case "(($ac_try" in
10321 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_link") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext &&
10335 $as_test_x conftest$ac_exeext; then
10336 eval "$as_ac_var=yes"
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 eval "$as_ac_var=no"
10344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345 conftest$ac_exeext conftest.$ac_ext
10347 ac_res=`eval echo '${'$as_ac_var'}'`
10348 { echo "$as_me:$LINENO: result: $ac_res" >&5
10349 echo "${ECHO_T}$ac_res" >&6; }
10350 if test `eval echo '${'$as_ac_var'}'` = yes; then
10351 cat >>confdefs.h <<_ACEOF
10352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10360 if test "x$haveselect" = "xyes" ; then
10361 SELECT_TYPE="select"
10365 if test ! "x$use_poll" = "xno"; then
10367 for ac_func in poll
10369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383 #define $ac_func innocuous_$ac_func
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char $ac_func (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10391 # include <limits.h>
10393 # include <assert.h>
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10405 /* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
10408 #if defined __stub_$ac_func || defined __stub___$ac_func
10415 return $ac_func ();
10420 rm -f conftest.$ac_objext conftest$ac_exeext
10421 if { (ac_try="$ac_link"
10422 case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10424 *) ac_try_echo
=$ac_try;;
10426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
10429 grep -v '^ *+' conftest.er1
>conftest.err
10431 cat conftest.err
>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest
$ac_exeext &&
10437 $as_test_x conftest
$ac_exeext; then
10438 eval "$as_ac_var=yes"
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.
$ac_ext >&5
10443 eval "$as_ac_var=no"
10446 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10447 conftest
$ac_exeext conftest.
$ac_ext
10449 ac_res
=`eval echo '${'$as_ac_var'}'`
10450 { echo "$as_me:$LINENO: result: $ac_res" >&5
10451 echo "${ECHO_T}$ac_res" >&6; }
10452 if test `eval echo '${'$as_ac_var'}'` = yes; then
10453 cat >>confdefs.h
<<_ACEOF
10454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10462 if test "x$havepoll" = "xyes" ; then
10467 if test ! "x$use_kqueue" = "xno"; then
10469 for ac_func
in kevent
10471 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10474 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10477 cat >conftest.
$ac_ext <<_ACEOF
10480 cat confdefs.h
>>conftest.
$ac_ext
10481 cat >>conftest.
$ac_ext <<_ACEOF
10482 /* end confdefs.h. */
10483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10485 #define $ac_func innocuous_$ac_func
10487 /* System header to define __stub macros and hopefully few prototypes,
10488 which can conflict with char $ac_func (); below.
10489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10490 <limits.h> exists even on freestanding compilers. */
10493 # include <limits.h>
10495 # include <assert.h>
10500 /* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
10507 /* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
10510 #if defined __stub_$ac_func || defined __stub___$ac_func
10517 return $ac_func ();
10522 rm -f conftest.
$ac_objext conftest
$ac_exeext
10523 if { (ac_try
="$ac_link"
10524 case "(($ac_try" in
10525 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_link") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext &&
10539 $as_test_x conftest$ac_exeext; then
10540 eval "$as_ac_var=yes"
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 eval "$as_ac_var=no"
10548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10549 conftest$ac_exeext conftest.$ac_ext
10551 ac_res=`eval echo '${'$as_ac_var'}'`
10552 { echo "$as_me:$LINENO: result: $ac_res" >&5
10553 echo "${ECHO_T}$ac_res" >&6; }
10554 if test `eval echo '${'$as_ac_var'}'` = yes; then
10555 cat >>confdefs.h <<_ACEOF
10556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10564 if test "x$havekqueue" = "xyes" ; then
10565 SELECT_TYPE="kqueue"
10569 if test ! "x$use_epoll" = "xno"; then
10571 for ac_func in epoll_ctl
10573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 cat >conftest.$ac_ext <<_ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10587 #define $ac_func innocuous_$ac_func
10589 /* System header to define __stub macros and hopefully few prototypes,
10590 which can conflict with char $ac_func (); below.
10591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10592 <limits.h> exists even on freestanding compilers. */
10595 # include <limits.h>
10597 # include <assert.h>
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10609 /* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612 #if defined __stub_$ac_func || defined __stub___$ac_func
10619 return $ac_func ();
10624 rm -f conftest.$ac_objext conftest$ac_exeext
10625 if { (ac_try="$ac_link"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10628 *) ac_try_echo
=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1
>conftest.err
10635 cat conftest.err
>&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } && {
10638 test -z "$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 } && test -s conftest
$ac_exeext &&
10641 $as_test_x conftest
$ac_exeext; then
10642 eval "$as_ac_var=yes"
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.
$ac_ext >&5
10647 eval "$as_ac_var=no"
10650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10651 conftest
$ac_exeext conftest.
$ac_ext
10653 ac_res
=`eval echo '${'$as_ac_var'}'`
10654 { echo "$as_me:$LINENO: result: $ac_res" >&5
10655 echo "${ECHO_T}$ac_res" >&6; }
10656 if test `eval echo '${'$as_ac_var'}'` = yes; then
10657 cat >>confdefs.h
<<_ACEOF
10658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10666 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10667 if test "x$haveepoll" = "xyes" ; then
10668 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10669 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
10670 if test "$cross_compiling" = yes; then
10671 { echo "$as_me:$LINENO: result: no" >&5
10672 echo "${ECHO_T}no" >&6; }
10674 cat >conftest.
$ac_ext <<_ACEOF
10677 cat confdefs.h
>>conftest.
$ac_ext
10678 cat >>conftest.
$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <stdint.h>
10681 #include <sys/param.h>
10682 #include <sys/types.h>
10683 #include <sys/epoll.h>
10684 #include <sys/syscall.h>
10685 #include <unistd.h>
10688 main(int argc, char **argv)
10692 epfd = epoll_create(256);
10693 return (epfd == -1 ? 1 : 0);
10696 rm -f conftest
$ac_exeext
10697 if { (ac_try
="$ac_link"
10698 case "(($ac_try" in
10699 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_link") 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10709 *) ac_try_echo
=$ac_try;;
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 { echo "$as_me:$LINENO: result: yes" >&5
10717 echo "${ECHO_T}yes" >&6; }
10719 cat >>confdefs.h
<<\_ACEOF
10720 #define HAVE_EPOLL 1
10723 SELECT_TYPE
="epoll"
10725 echo "$as_me: program exited with status $ac_status" >&5
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.
$ac_ext >&5
10729 ( exit $ac_status )
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10740 haveepollsyscall
=no
10742 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10743 if test "x$haveepoll" = "xno" ; then
10744 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10745 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
10746 if test "$cross_compiling" = yes; then
10747 { echo "$as_me:$LINENO: result: no" >&5
10748 echo "${ECHO_T}no" >&6; }
10750 cat >conftest.
$ac_ext <<_ACEOF
10753 cat confdefs.h
>>conftest.
$ac_ext
10754 cat >>conftest.
$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 #include <stdint.h>
10757 #include <sys/param.h>
10758 #include <sys/types.h>
10759 #include <sys/epoll.h>
10760 #include <sys/syscall.h>
10761 #include <unistd.h>
10764 epoll_create(int size)
10766 return (syscall(__NR_epoll_create, size));
10770 main(int argc, char **argv)
10774 epfd = epoll_create(256);
10775 exit (epfd == -1 ? 1 : 0);
10778 rm -f conftest
$ac_exeext
10779 if { (ac_try
="$ac_link"
10780 case "(($ac_try" in
10781 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_link") 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10791 *) ac_try_echo
=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
10798 { echo "$as_me:$LINENO: result: yes" >&5
10799 echo "${ECHO_T}yes" >&6; }
10801 cat >>confdefs.h
<<\_ACEOF
10802 #define HAVE_EPOLL 1
10805 SELECT_TYPE
="epoll"
10807 echo "$as_me: program exited with status $ac_status" >&5
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.
$ac_ext >&5
10811 ( exit $ac_status )
10812 { echo "$as_me:$LINENO: result: no" >&5
10813 echo "${ECHO_T}no" >&6; }
10815 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10826 if test -z "$SELECT_TYPE"; then
10827 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10828 echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10829 { (exit 1); exit 1; }; }
10832 echo "Using $SELECT_TYPE for select loop."
10835 cat >>confdefs.h
<<_ACEOF
10836 #define SELECT_TYPE "$SELECT_TYPE"
10843 # Check whether --enable-assert was given.
10844 if test "${enable_assert+set}" = set; then
10845 enableval
=$enable_assert; assert
=$enableval
10851 if test "$assert" = no
; then
10853 cat >>confdefs.h
<<\_ACEOF
10857 elif test "$assert" = soft
; then
10859 cat >>confdefs.h
<<\_ACEOF
10860 #define SOFT_ASSERT 1
10864 cat >>confdefs.h
<<\_ACEOF
10868 elif test "$assert" = yes; then
10872 { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10873 echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10874 # Check whether --enable-iodebug was given.
10875 if test "${enable_iodebug+set}" = set; then
10876 enableval
=$enable_iodebug; iodebug
=$enableval
10882 if test "$iodebug" = yes; then
10884 cat >>confdefs.h
<<\_ACEOF
10885 #define USE_IODEBUG_HOOKS 1
10888 { echo "$as_me:$LINENO: result: yes" >&5
10889 echo "${ECHO_T}yes" >&6; }
10891 { echo "$as_me:$LINENO: result: no" >&5
10892 echo "${ECHO_T}no" >&6; }
10896 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10897 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10898 # Check whether --enable-profile was given.
10899 if test "${enable_profile+set}" = set; then
10900 enableval
=$enable_profile; profile
=$enableval
10906 if test "$profile" = yes; then
10907 if test "$ac_cv_c_compiler_gnu" = yes; then
10908 IRC_CFLAGS
="$IRC_CFLAGS -pg"
10909 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10910 echo "${ECHO_T}yes, adding -pg" >&6; }
10912 cat >>confdefs.h
<<\_ACEOF
10913 #define CHARYBDIS_PROFILE 1
10917 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10918 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
10921 { echo "$as_me:$LINENO: result: no" >&5
10922 echo "${ECHO_T}no" >&6; }
10925 # Check whether --enable-balloc was given.
10926 if test "${enable_balloc+set}" = set; then
10927 enableval
=$enable_balloc; balloc
=$enableval
10933 if test "$balloc" = no
; then
10935 cat >>confdefs.h
<<\_ACEOF
10941 # Check whether --enable-small-net was given.
10942 if test "${enable_small_net+set}" = set; then
10943 enableval
=$enable_small_net; small_net
=$enableval
10949 if test "$small_net" = yes; then
10951 cat >>confdefs.h
<<\_ACEOF
10952 #define NICKNAMEHISTORYLENGTH 1500
10956 cat >>confdefs.h
<<\_ACEOF
10957 #define CHANNEL_HEAP_SIZE 256
10961 cat >>confdefs.h
<<\_ACEOF
10962 #define BAN_HEAP_SIZE 128
10966 cat >>confdefs.h
<<\_ACEOF
10967 #define CLIENT_HEAP_SIZE 256
10971 cat >>confdefs.h
<<\_ACEOF
10972 #define LCLIENT_HEAP_SIZE 128
10976 cat >>confdefs.h
<<\_ACEOF
10977 #define PCLIENT_HEAP_SIZE 32
10981 cat >>confdefs.h
<<\_ACEOF
10982 #define USER_HEAP_SIZE 128
10986 cat >>confdefs.h
<<\_ACEOF
10987 #define DNODE_HEAP_SIZE 256
10991 cat >>confdefs.h
<<\_ACEOF
10992 #define TOPIC_HEAP_SIZE 256
10996 cat >>confdefs.h
<<\_ACEOF
10997 #define LINEBUF_HEAP_SIZE 128
11001 cat >>confdefs.h
<<\_ACEOF
11002 #define MEMBER_HEAP_SIZE 256
11006 cat >>confdefs.h
<<\_ACEOF
11007 #define ND_HEAP_SIZE 128
11011 cat >>confdefs.h
<<\_ACEOF
11012 #define CONFITEM_HEAP_SIZE 128
11016 cat >>confdefs.h
<<\_ACEOF
11017 #define MONITOR_HEAP_SIZE 128
11021 cat >>confdefs.h
<<\_ACEOF
11022 #define FD_HEAP_SIZE 128
11026 cat >>confdefs.h
<<\_ACEOF
11027 #define AWAY_HEAP_SIZE 128
11032 cat >>confdefs.h
<<\_ACEOF
11033 #define NICKNAMEHISTORYLENGTH 15000
11037 cat >>confdefs.h
<<\_ACEOF
11038 #define CHANNEL_HEAP_SIZE 8192
11042 cat >>confdefs.h
<<\_ACEOF
11043 #define BAN_HEAP_SIZE 4096
11047 cat >>confdefs.h
<<\_ACEOF
11048 #define CLIENT_HEAP_SIZE 8192
11052 cat >>confdefs.h
<<\_ACEOF
11053 #define LCLIENT_HEAP_SIZE 1024
11057 cat >>confdefs.h
<<\_ACEOF
11058 #define PCLIENT_HEAP_SIZE 256
11062 cat >>confdefs.h
<<\_ACEOF
11063 #define USER_HEAP_SIZE 8192
11067 cat >>confdefs.h
<<\_ACEOF
11068 #define DNODE_HEAP_SIZE 8192
11072 cat >>confdefs.h
<<\_ACEOF
11073 #define TOPIC_HEAP_SIZE 4096
11077 cat >>confdefs.h
<<\_ACEOF
11078 #define LINEBUF_HEAP_SIZE 2048
11082 cat >>confdefs.h
<<\_ACEOF
11083 #define MEMBER_HEAP_SIZE 32768
11087 cat >>confdefs.h
<<\_ACEOF
11088 #define ND_HEAP_SIZE 512
11092 cat >>confdefs.h
<<\_ACEOF
11093 #define CONFITEM_HEAP_SIZE 256
11097 cat >>confdefs.h
<<\_ACEOF
11098 #define MONITOR_HEAP_SIZE 1024
11102 cat >>confdefs.h
<<\_ACEOF
11103 #define FD_HEAP_SIZE 1024
11107 cat >>confdefs.h
<<\_ACEOF
11108 #define AWAY_HEAP_SIZE 512
11114 # Check whether --with-nicklen was given.
11115 if test "${with_nicklen+set}" = set; then
11116 withval
=$with_nicklen;
11117 if test $withval -ge 50; then
11119 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
11120 echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
11131 # Check whether --with-topiclen was given.
11132 if test "${with_topiclen+set}" = set; then
11133 withval
=$with_topiclen;
11134 if test $withval -ge 390; then
11136 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11137 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11148 cat >>confdefs.h
<<_ACEOF
11149 #define TOPICLEN ${TOPICLEN}
11153 cat >>confdefs.h
<<_ACEOF
11154 #define NICKLEN (${NICKLEN}+1)
11158 shared_modules
="yes"
11159 if test "$shared_modules" = yes; then
11161 if test "$CYGWIN" = yes; then
11162 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11163 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11164 shared_modules
="no"
11167 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
11168 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11169 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11170 shared_modules
="no"
11174 if test "$shared_modules" = yes; then
11175 DYNLINK_C
=dynlink.c
11177 for ac_header
in dlfcn.h
11179 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11180 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11183 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 ac_res
=`eval echo '${'$as_ac_Header'}'`
11187 { echo "$as_me:$LINENO: result: $ac_res" >&5
11188 echo "${ECHO_T}$ac_res" >&6; }
11190 # Is the header compilable?
11191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11193 cat >conftest.
$ac_ext <<_ACEOF
11196 cat confdefs.h
>>conftest.
$ac_ext
11197 cat >>conftest.
$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 $ac_includes_default
11200 #include <$ac_header>
11202 rm -f conftest.
$ac_objext
11203 if { (ac_try
="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_compile") 2>conftest.er1
11211 grep -v '^ *+' conftest.er1 >conftest.err
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.$ac_objext; then
11219 ac_header_compiler=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_header_compiler=no
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11229 echo "${ECHO_T}$ac_header_compiler" >&6; }
11231 # Is the header present?
11232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11234 cat >conftest.$ac_ext <<_ACEOF
11237 cat confdefs.h >>conftest.$ac_ext
11238 cat >>conftest.$ac_ext <<_ACEOF
11239 /* end confdefs.h. */
11240 #include <$ac_header>
11242 if { (ac_try="$ac_cpp conftest.$ac_ext"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11245 *) ac_try_echo
=$ac_try;;
11247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11250 grep -v '^ *+' conftest.er1
>conftest.err
11252 cat conftest.err
>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); } >/dev
/null
&& {
11255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11256 test ! -s conftest.err
11258 ac_header_preproc
=yes
11260 echo "$as_me: failed program was:" >&5
11261 sed 's/^/| /' conftest.
$ac_ext >&5
11263 ac_header_preproc
=no
11266 rm -f conftest.err conftest.
$ac_ext
11267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11268 echo "${ECHO_T}$ac_header_preproc" >&6; }
11270 # So? What about this header?
11271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11277 ac_header_preproc
=yes
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11297 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298 echo $ECHO_N "(cached) $ECHO_C" >&6
11300 eval "$as_ac_Header=\$ac_header_preproc"
11302 ac_res
=`eval echo '${'$as_ac_Header'}'`
11303 { echo "$as_me:$LINENO: result: $ac_res" >&5
11304 echo "${ECHO_T}$ac_res" >&6; }
11307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11308 cat >>confdefs.h
<<_ACEOF
11309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11316 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11317 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
11318 if test "${ac_cv_search_shl_load+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 ac_func_search_save_LIBS
=$LIBS
11322 cat >conftest.
$ac_ext <<_ACEOF
11325 cat confdefs.h
>>conftest.
$ac_ext
11326 cat >>conftest.
$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11339 return shl_load ();
11344 for ac_lib
in '' dld
; do
11345 if test -z "$ac_lib"; then
11346 ac_res
="none required"
11349 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11351 rm -f conftest.
$ac_objext conftest
$ac_exeext
11352 if { (ac_try
="$ac_link"
11353 case "(($ac_try" in
11354 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11355 *) ac_try_echo=$ac_try;;
11357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11358 (eval "$ac_link") 2>conftest.er1
11360 grep -v '^ *+' conftest.er1 >conftest.err
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } && {
11365 test -z "$ac_c_werror_flag" ||
11366 test ! -s conftest.err
11367 } && test -s conftest$ac_exeext &&
11368 $as_test_x conftest$ac_exeext; then
11369 ac_cv_search_shl_load=$ac_res
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11379 if test "${ac_cv_search_shl_load+set}" = set; then
11383 if test "${ac_cv_search_shl_load+set}" = set; then
11386 ac_cv_search_shl_load=no
11388 rm conftest.$ac_ext
11389 LIBS=$ac_func_search_save_LIBS
11391 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11392 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11393 ac_res=$ac_cv_search_shl_load
11394 if test "$ac_res" != no; then
11395 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11398 cat >>confdefs.h <<\_ACEOF
11399 #define HAVE_SHL_LOAD 1
11403 MOD_TARGET=hpux_shared
11404 SEDOBJ="s/\.o/.sl/g"
11408 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11409 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11410 if test "${ac_cv_search_dlopen+set}" = set; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 ac_func_search_save_LIBS=$LIBS
11414 cat >conftest.$ac_ext <<_ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11436 for ac_lib in '' dl c_r; do
11437 if test -z "$ac_lib"; then
11438 ac_res="none required"
11441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11443 rm -f conftest.$ac_objext conftest$ac_exeext
11444 if { (ac_try="$ac_link"
11445 case "(($ac_try" in
11446 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11447 *) ac_try_echo
=$ac_try;;
11449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11450 (eval "$ac_link") 2>conftest.er1
11452 grep -v '^ *+' conftest.er1
>conftest.err
11454 cat conftest.err
>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); } && {
11457 test -z "$ac_c_werror_flag" ||
11458 test ! -s conftest.err
11459 } && test -s conftest
$ac_exeext &&
11460 $as_test_x conftest
$ac_exeext; then
11461 ac_cv_search_dlopen
=$ac_res
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.
$ac_ext >&5
11469 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11471 if test "${ac_cv_search_dlopen+set}" = set; then
11475 if test "${ac_cv_search_dlopen+set}" = set; then
11478 ac_cv_search_dlopen
=no
11480 rm conftest.
$ac_ext
11481 LIBS
=$ac_func_search_save_LIBS
11483 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11484 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11485 ac_res
=$ac_cv_search_dlopen
11486 if test "$ac_res" != no
; then
11487 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11490 cat >>confdefs.h
<<\_ACEOF
11491 #define HAVE_DLOPEN 1
11495 MOD_TARGET
=shared_modules
11496 SEDOBJ
="s/\.o/.so/g"
11497 if test "$AppleGCC" = yes; then
11499 for ac_header
in mach
-o/dyld.h
11501 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 ac_res
=`eval echo '${'$as_ac_Header'}'`
11509 { echo "$as_me:$LINENO: result: $ac_res" >&5
11510 echo "${ECHO_T}$ac_res" >&6; }
11512 # Is the header compilable?
11513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11515 cat >conftest.
$ac_ext <<_ACEOF
11518 cat confdefs.h
>>conftest.
$ac_ext
11519 cat >>conftest.
$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521 $ac_includes_default
11522 #include <$ac_header>
11524 rm -f conftest.
$ac_objext
11525 if { (ac_try
="$ac_compile"
11526 case "(($ac_try" in
11527 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_compile") 2>conftest.er1
11533 grep -v '^ *+' conftest.er1 >conftest.err
11535 cat conftest.err >&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest.$ac_objext; then
11541 ac_header_compiler=yes
11543 echo "$as_me: failed program was:" >&5
11544 sed 's/^/| /' conftest.$ac_ext >&5
11546 ac_header_compiler=no
11549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 echo "${ECHO_T}$ac_header_compiler" >&6; }
11553 # Is the header present?
11554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11556 cat >conftest.$ac_ext <<_ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 #include <$ac_header>
11564 if { (ac_try="$ac_cpp conftest.$ac_ext"
11565 case "(($ac_try" in
11566 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11567 *) ac_try_echo
=$ac_try;;
11569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11572 grep -v '^ *+' conftest.er1
>conftest.err
11574 cat conftest.err
>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } >/dev
/null
&& {
11577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11578 test ! -s conftest.err
11580 ac_header_preproc
=yes
11582 echo "$as_me: failed program was:" >&5
11583 sed 's/^/| /' conftest.
$ac_ext >&5
11585 ac_header_preproc
=no
11588 rm -f conftest.err conftest.
$ac_ext
11589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11590 echo "${ECHO_T}$ac_header_preproc" >&6; }
11592 # So? What about this header?
11593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11599 ac_header_preproc
=yes
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 eval "$as_ac_Header=\$ac_header_preproc"
11624 ac_res
=`eval echo '${'$as_ac_Header'}'`
11625 { echo "$as_me:$LINENO: result: $ac_res" >&5
11626 echo "${ECHO_T}$ac_res" >&6; }
11629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11630 cat >>confdefs.h
<<_ACEOF
11631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11639 { echo "$as_me:$LINENO: checking for dlsym" >&5
11640 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
11641 if test "${ac_cv_func_dlsym+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11644 cat >conftest.
$ac_ext <<_ACEOF
11647 cat confdefs.h
>>conftest.
$ac_ext
11648 cat >>conftest.
$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11652 #define dlsym innocuous_dlsym
11654 /* System header to define __stub macros and hopefully few prototypes,
11655 which can conflict with char dlsym (); below.
11656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11657 <limits.h> exists even on freestanding compilers. */
11660 # include <limits.h>
11662 # include <assert.h>
11667 /* Override any GCC internal prototype to avoid an error.
11668 Use char because int might match the return type of a GCC
11669 builtin and then its argument prototype would still apply. */
11674 /* The GNU C library defines this for functions which it implements
11675 to always fail with ENOSYS. Some functions are actually named
11676 something starting with __ and the normal name is an alias. */
11677 #if defined __stub_dlsym || defined __stub___dlsym
11689 rm -f conftest.
$ac_objext conftest
$ac_exeext
11690 if { (ac_try
="$ac_link"
11691 case "(($ac_try" in
11692 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11693 *) ac_try_echo=$ac_try;;
11695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11696 (eval "$ac_link") 2>conftest.er1
11698 grep -v '^ *+' conftest.er1 >conftest.err
11700 cat conftest.err >&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); } && {
11703 test -z "$ac_c_werror_flag" ||
11704 test ! -s conftest.err
11705 } && test -s conftest$ac_exeext &&
11706 $as_test_x conftest$ac_exeext; then
11707 ac_cv_func_dlsym=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_func_dlsym=no
11715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11716 conftest$ac_exeext conftest.$ac_ext
11718 { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11719 echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
11720 if test $ac_cv_func_dlsym = yes; then
11724 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11725 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11731 for ac_func in dlfunc
11733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11747 #define $ac_func innocuous_$ac_func
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. */
11755 # include <limits.h>
11757 # include <assert.h>
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11769 /* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 return $ac_func ();
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (ac_try="$ac_link"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11788 *) ac_try_echo
=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_link") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1
>conftest.err
11795 cat conftest.err
>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest
$ac_exeext &&
11801 $as_test_x conftest
$ac_exeext; then
11802 eval "$as_ac_var=yes"
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.
$ac_ext >&5
11807 eval "$as_ac_var=no"
11810 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11811 conftest
$ac_exeext conftest.
$ac_ext
11813 ac_res
=`eval echo '${'$as_ac_var'}'`
11814 { echo "$as_me:$LINENO: result: $ac_res" >&5
11815 echo "${ECHO_T}$ac_res" >&6; }
11816 if test `eval echo '${'$as_ac_var'}'` = yes; then
11817 cat >>confdefs.h
<<_ACEOF
11818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11837 cat >>confdefs.h
<<_ACEOF
11838 #define SHARED_SUFFIX "$SUFFIX"
11842 if test "$shared_modules" = yes; then
11843 # The GNU linker requires the -export-dynamic option to make
11844 # all symbols visible in the dynamic symbol table.
11845 hold_ldflags
=$LDFLAGS
11846 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11847 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
11848 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
11849 cat >conftest.
$ac_ext <<_ACEOF
11852 cat confdefs.h
>>conftest.
$ac_ext
11853 cat >>conftest.
$ac_ext <<_ACEOF
11854 /* end confdefs.h. */
11864 rm -f conftest.
$ac_objext conftest
$ac_exeext
11865 if { (ac_try
="$ac_link"
11866 case "(($ac_try" in
11867 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11868 *) ac_try_echo=$ac_try;;
11870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11871 (eval "$ac_link") 2>conftest.er1
11873 grep -v '^ *+' conftest.er1 >conftest.err
11875 cat conftest.err >&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && {
11878 test -z "$ac_c_werror_flag" ||
11879 test ! -s conftest.err
11880 } && test -s conftest$ac_exeext &&
11881 $as_test_x conftest$ac_exeext; then
11884 echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11891 conftest$ac_exeext conftest.$ac_ext
11892 LDFLAGS=$hold_ldflags
11894 if expr "`uname
-s`" : ^IRIX >/dev/null 2>&1; then
11895 found="no, IRIX ld uses -B,dynamic"
11896 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11899 if expr "`uname
-s`" : ^AIX >/dev/null 2>&1; then
11900 found="no, AIX ld uses -G -brtl"
11901 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11904 { echo "$as_me:$LINENO: result: $found" >&5
11905 echo "${ECHO_T}$found" >&6; }
11907 if test "$found" = yes; then
11908 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11911 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11912 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
11913 if test "$SGS" = "yes"; then
11914 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11915 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
11916 PICFLAGS="-KPIC -DPIC -G"
11919 if test "$AppleGCC" = "yes"; then
11920 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11921 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
11922 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11924 if test "$HPUX" = "yes" -a "$CC" != gcc; then
11925 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11926 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
11927 PICFLAGS="+z -r -q -n -c"
11928 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11929 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
11931 if expr "`$CC +ESfic
2>&1`" : ".*neither supported.*" >/dev/null; then
11932 { echo "$as_me:$LINENO: result: no" >&5
11933 echo "${ECHO_T}no" >&6; }
11935 { echo "$as_me:$LINENO: result: yes" >&5
11936 echo "${ECHO_T}yes" >&6; }
11937 PICFLAGS="$PICFLAGS +ESfic"
11940 LDFLAGS="${LDFLAGS} -Wl,-E"
11942 if test "$Tru" = yes -a "$CC" != gcc; then
11943 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11944 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
11945 PICFLAGS="-shared -expect_unresolved '*' "
11946 LDFLAGS="-call_shared"
11948 if test -z "$PICFLAGS"; then
11949 if test "$ac_cv_c_compiler_gnu" = "yes"; then
11950 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11951 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
11952 PICFLAGS="-fPIC -DPIC -shared"
11954 { echo "$as_me:$LINENO: result: no" >&5
11955 echo "${ECHO_T}no" >&6; }
11961 # This must be down here, or it will mess up checks like the ones
11962 # for -Wl,-export-dynamic
11964 # Check whether --enable-warnings was given.
11965 if test "${enable_warnings+set}" = set; then
11966 enableval=$enable_warnings;
11967 IRC_CFLAGS="$IRC_CFLAGS -O0"
11968 CFLAGS="$IRC_CFLAGS"
11971 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11972 echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
11973 if test "${GCC-no}" = yes
11975 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11979 oldcflags="${CFLAGS-}"
11980 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11988 #include <string.h>
11996 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12006 *) ac_try_echo
=$ac_try;;
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_compile") 2>conftest.er1
12011 grep -v '^ *+' conftest.er1
>conftest.err
12013 cat conftest.err
>&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } && {
12016 test -z "$ac_c_werror_flag" ||
12017 test ! -s conftest.err
12018 } && test -s conftest.
$ac_objext; then
12019 charybdis_cv_c_gcc_w_all
=yes
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.
$ac_ext >&5
12024 charybdis_cv_c_gcc_w_all
=no
12027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12028 CFLAGS
="${oldcflags}"
12031 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
12032 CWARNS
="${CWARNS}-Wall "
12033 { echo "$as_me:$LINENO: result: ok" >&5
12034 echo "${ECHO_T}ok" >&6; }
12036 charybdis_cv_c_gcc_w_all
=''
12037 { echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6; }
12041 { echo "$as_me:$LINENO: result: no" >&5
12042 echo "${ECHO_T}no" >&6; }
12046 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
12047 echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
12048 if test "${GCC-no}" = yes
12050 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12054 oldcflags
="${CFLAGS-}"
12055 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
12056 cat >conftest.
$ac_ext <<_ACEOF
12059 cat confdefs.h
>>conftest.
$ac_ext
12060 cat >>conftest.
$ac_ext <<_ACEOF
12061 /* end confdefs.h. */
12063 #include <string.h>
12071 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12077 rm -f conftest.
$ac_objext
12078 if { (ac_try
="$ac_compile"
12079 case "(($ac_try" in
12080 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12081 *) ac_try_echo=$ac_try;;
12083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12084 (eval "$ac_compile") 2>conftest.er1
12086 grep -v '^ *+' conftest.er1 >conftest.err
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); } && {
12091 test -z "$ac_c_werror_flag" ||
12092 test ! -s conftest.err
12093 } && test -s conftest.$ac_objext; then
12094 charybdis_cv_c_gcc_w_pointer_arith=yes
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 charybdis_cv_c_gcc_w_pointer_arith=no
12102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12103 CFLAGS="${oldcflags}"
12106 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
12107 CWARNS="${CWARNS}-Wpointer-arith "
12108 { echo "$as_me:$LINENO: result: ok" >&5
12109 echo "${ECHO_T}ok" >&6; }
12111 charybdis_cv_c_gcc_w_pointer_arith=''
12112 { echo "$as_me:$LINENO: result: no" >&5
12113 echo "${ECHO_T}no" >&6; }
12116 { echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6; }
12121 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
12122 echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
12123 if test "${GCC-no}" = yes
12125 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 oldcflags="${CFLAGS-}"
12130 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12131 cat >conftest.$ac_ext <<_ACEOF
12134 cat confdefs.h >>conftest.$ac_ext
12135 cat >>conftest.$ac_ext <<_ACEOF
12136 /* end confdefs.h. */
12138 #include <string.h>
12146 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12152 rm -f conftest.$ac_objext
12153 if { (ac_try="$ac_compile"
12154 case "(($ac_try" in
12155 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12156 *) ac_try_echo
=$ac_try;;
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159 (eval "$ac_compile") 2>conftest.er1
12161 grep -v '^ *+' conftest.er1
>conftest.err
12163 cat conftest.err
>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } && {
12166 test -z "$ac_c_werror_flag" ||
12167 test ! -s conftest.err
12168 } && test -s conftest.
$ac_objext; then
12169 charybdis_cv_c_gcc_w_implicit
=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.
$ac_ext >&5
12174 charybdis_cv_c_gcc_w_implicit
=no
12177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12178 CFLAGS
="${oldcflags}"
12181 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
12182 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
12183 { echo "$as_me:$LINENO: result: ok" >&5
12184 echo "${ECHO_T}ok" >&6; }
12186 charybdis_cv_c_gcc_w_implicit
=''
12187 { echo "$as_me:$LINENO: result: no" >&5
12188 echo "${ECHO_T}no" >&6; }
12191 { echo "$as_me:$LINENO: result: no" >&5
12192 echo "${ECHO_T}no" >&6; }
12196 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12197 echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
12198 if test "${GCC-no}" = yes
12200 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12201 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 oldcflags
="${CFLAGS-}"
12205 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12206 cat >conftest.
$ac_ext <<_ACEOF
12209 cat confdefs.h
>>conftest.
$ac_ext
12210 cat >>conftest.
$ac_ext <<_ACEOF
12211 /* end confdefs.h. */
12213 #include <string.h>
12221 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12227 rm -f conftest.
$ac_objext
12228 if { (ac_try
="$ac_compile"
12229 case "(($ac_try" in
12230 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_compile") 2>conftest.er1
12236 grep -v '^ *+' conftest.er1 >conftest.err
12238 cat conftest.err >&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } && {
12241 test -z "$ac_c_werror_flag" ||
12242 test ! -s conftest.err
12243 } && test -s conftest.$ac_objext; then
12244 charybdis_cv_c_gcc_w_cast_align=yes
12246 echo "$as_me: failed program was:" >&5
12247 sed 's/^/| /' conftest.$ac_ext >&5
12249 charybdis_cv_c_gcc_w_cast_align=no
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253 CFLAGS="${oldcflags}"
12256 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
12257 CWARNS="${CWARNS}-Wcast-align "
12258 { echo "$as_me:$LINENO: result: ok" >&5
12259 echo "${ECHO_T}ok" >&6; }
12261 charybdis_cv_c_gcc_w_cast_align=''
12262 { echo "$as_me:$LINENO: result: no" >&5
12263 echo "${ECHO_T}no" >&6; }
12266 { echo "$as_me:$LINENO: result: no" >&5
12267 echo "${ECHO_T}no" >&6; }
12271 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12272 echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
12273 if test "${GCC-no}" = yes
12275 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 oldcflags="${CFLAGS-}"
12280 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12288 #include <string.h>
12296 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12306 *) ac_try_echo
=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_compile") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1
>conftest.err
12313 cat conftest.err
>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest.
$ac_objext; then
12319 charybdis_cv_c_gcc_w_cast_qual
=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.
$ac_ext >&5
12324 charybdis_cv_c_gcc_w_cast_qual
=no
12327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12328 CFLAGS
="${oldcflags}"
12331 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
12332 CWARNS
="${CWARNS}-Wcast-qual "
12333 { echo "$as_me:$LINENO: result: ok" >&5
12334 echo "${ECHO_T}ok" >&6; }
12336 charybdis_cv_c_gcc_w_cast_qual
=''
12337 { echo "$as_me:$LINENO: result: no" >&5
12338 echo "${ECHO_T}no" >&6; }
12341 { echo "$as_me:$LINENO: result: no" >&5
12342 echo "${ECHO_T}no" >&6; }
12346 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12347 echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
12348 if test "${GCC-no}" = yes
12350 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 oldcflags
="${CFLAGS-}"
12355 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12356 cat >conftest.
$ac_ext <<_ACEOF
12359 cat confdefs.h
>>conftest.
$ac_ext
12360 cat >>conftest.
$ac_ext <<_ACEOF
12361 /* end confdefs.h. */
12363 #include <string.h>
12371 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12377 rm -f conftest.
$ac_objext
12378 if { (ac_try
="$ac_compile"
12379 case "(($ac_try" in
12380 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_compile") 2>conftest.er1
12386 grep -v '^ *+' conftest.er1 >conftest.err
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest.$ac_objext; then
12394 charybdis_cv_c_gcc_prototypes=yes
12396 echo "$as_me: failed program was:" >&5
12397 sed 's/^/| /' conftest.$ac_ext >&5
12399 charybdis_cv_c_gcc_prototypes=no
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403 CFLAGS="${oldcflags}"
12406 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12407 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12408 { echo "$as_me:$LINENO: result: ok" >&5
12409 echo "${ECHO_T}ok" >&6; }
12411 charybdis_cv_c_gcc_prototypes=''
12412 { echo "$as_me:$LINENO: result: no" >&5
12413 echo "${ECHO_T}no" >&6; }
12416 { echo "$as_me:$LINENO: result: no" >&5
12417 echo "${ECHO_T}no" >&6; }
12421 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12422 echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
12423 if test "${GCC-no}" = yes
12425 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12426 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 oldcflags="${CFLAGS-}"
12430 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12431 cat >conftest.$ac_ext <<_ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h. */
12438 #include <string.h>
12446 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12452 rm -f conftest.$ac_objext
12453 if { (ac_try="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12456 *) ac_try_echo
=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12461 grep -v '^ *+' conftest.er1
>conftest.err
12463 cat conftest.err
>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.
$ac_objext; then
12469 charybdis_cv_c_gcc_parenthesis
=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.
$ac_ext >&5
12474 charybdis_cv_c_gcc_parenthesis
=no
12477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12478 CFLAGS
="${oldcflags}"
12481 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
12482 CWARNS
="${CWARNS}-Wparenthesis "
12483 { echo "$as_me:$LINENO: result: ok" >&5
12484 echo "${ECHO_T}ok" >&6; }
12486 charybdis_cv_c_gcc_parenthesis
=''
12487 { echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6; }
12491 { echo "$as_me:$LINENO: result: no" >&5
12492 echo "${ECHO_T}no" >&6; }
12496 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12497 echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
12498 if test "${GCC-no}" = yes
12500 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 oldcflags
="${CFLAGS-}"
12505 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12506 cat >conftest.
$ac_ext <<_ACEOF
12509 cat confdefs.h
>>conftest.
$ac_ext
12510 cat >>conftest.
$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12513 #include <string.h>
12521 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12527 rm -f conftest.
$ac_objext
12528 if { (ac_try
="$ac_compile"
12529 case "(($ac_try" in
12530 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_compile") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 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 charybdis_cv_c_gcc_w=yes
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12549 charybdis_cv_c_gcc_w=no
12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12553 CFLAGS="${oldcflags}"
12556 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12557 CWARNS="${CWARNS}-W -Wno-unused "
12558 { echo "$as_me:$LINENO: result: ok" >&5
12559 echo "${ECHO_T}ok" >&6; }
12561 charybdis_cv_c_gcc_w=''
12562 { echo "$as_me:$LINENO: result: no" >&5
12563 echo "${ECHO_T}no" >&6; }
12566 { echo "$as_me:$LINENO: result: no" >&5
12567 echo "${ECHO_T}no" >&6; }
12571 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12572 echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
12573 if test "${GCC-no}" = yes
12575 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 oldcflags="${CFLAGS-}"
12580 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12588 #include <string.h>
12596 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12602 rm -f conftest.$ac_objext
12603 if { (ac_try="$ac_compile"
12604 case "(($ac_try" in
12605 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12606 *) ac_try_echo
=$ac_try;;
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609 (eval "$ac_compile") 2>conftest.er1
12611 grep -v '^ *+' conftest.er1
>conftest.err
12613 cat conftest.err
>&5
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } && {
12616 test -z "$ac_c_werror_flag" ||
12617 test ! -s conftest.err
12618 } && test -s conftest.
$ac_objext; then
12619 charybdis_cv_c_gcc_w_extra
=yes
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.
$ac_ext >&5
12624 charybdis_cv_c_gcc_w_extra
=no
12627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12628 CFLAGS
="${oldcflags}"
12631 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
12632 CWARNS
="${CWARNS}-Wextra "
12633 { echo "$as_me:$LINENO: result: ok" >&5
12634 echo "${ECHO_T}ok" >&6; }
12636 charybdis_cv_c_gcc_w_extra
=''
12637 { echo "$as_me:$LINENO: result: no" >&5
12638 echo "${ECHO_T}no" >&6; }
12641 { echo "$as_me:$LINENO: result: no" >&5
12642 echo "${ECHO_T}no" >&6; }
12646 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12647 echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
12648 if test "${GCC-no}" = yes
12650 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 oldcflags
="${CFLAGS-}"
12655 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12656 cat >conftest.
$ac_ext <<_ACEOF
12659 cat confdefs.h
>>conftest.
$ac_ext
12660 cat >>conftest.
$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12663 #include <string.h>
12671 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12677 rm -f conftest.
$ac_objext
12678 if { (ac_try
="$ac_compile"
12679 case "(($ac_try" in
12680 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_compile") 2>conftest.er1
12686 grep -v '^ *+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } && {
12691 test -z "$ac_c_werror_flag" ||
12692 test ! -s conftest.err
12693 } && test -s conftest.$ac_objext; then
12694 charybdis_cv_c_gcc_w_shadow=yes
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 charybdis_cv_c_gcc_w_shadow=no
12702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12703 CFLAGS="${oldcflags}"
12706 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12707 CWARNS="${CWARNS}-Wshadow "
12708 { echo "$as_me:$LINENO: result: ok" >&5
12709 echo "${ECHO_T}ok" >&6; }
12711 charybdis_cv_c_gcc_w_shadow=''
12712 { echo "$as_me:$LINENO: result: no" >&5
12713 echo "${ECHO_T}no" >&6; }
12716 { echo "$as_me:$LINENO: result: no" >&5
12717 echo "${ECHO_T}no" >&6; }
12721 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12722 echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
12723 if test "${GCC-no}" = yes
12725 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12726 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 oldcflags="${CFLAGS-}"
12730 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12731 cat >conftest.$ac_ext <<_ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12738 #include <string.h>
12746 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12752 rm -f conftest.$ac_objext
12753 if { (ac_try="$ac_compile"
12754 case "(($ac_try" in
12755 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12756 *) ac_try_echo
=$ac_try;;
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759 (eval "$ac_compile") 2>conftest.er1
12761 grep -v '^ *+' conftest.er1
>conftest.err
12763 cat conftest.err
>&5
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); } && {
12766 test -z "$ac_c_werror_flag" ||
12767 test ! -s conftest.err
12768 } && test -s conftest.
$ac_objext; then
12769 charybdis_cv_c_gcc_w_missing_noreturn
=yes
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.
$ac_ext >&5
12774 charybdis_cv_c_gcc_w_missing_noreturn
=no
12777 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12778 CFLAGS
="${oldcflags}"
12781 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
12782 CWARNS
="${CWARNS}-Wmissing-noreturn "
12783 { echo "$as_me:$LINENO: result: ok" >&5
12784 echo "${ECHO_T}ok" >&6; }
12786 charybdis_cv_c_gcc_w_missing_noreturn
=''
12787 { echo "$as_me:$LINENO: result: no" >&5
12788 echo "${ECHO_T}no" >&6; }
12791 { echo "$as_me:$LINENO: result: no" >&5
12792 echo "${ECHO_T}no" >&6; }
12796 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12797 echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
12798 if test "${GCC-no}" = yes
12800 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 oldcflags
="${CFLAGS-}"
12805 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12806 cat >conftest.
$ac_ext <<_ACEOF
12809 cat confdefs.h
>>conftest.
$ac_ext
12810 cat >>conftest.
$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12813 #include <string.h>
12821 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12827 rm -f conftest.
$ac_objext
12828 if { (ac_try
="$ac_compile"
12829 case "(($ac_try" in
12830 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12831 *) ac_try_echo=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_compile") 2>conftest.er1
12836 grep -v '^ *+' conftest.er1 >conftest.err
12838 cat conftest.err >&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } && {
12841 test -z "$ac_c_werror_flag" ||
12842 test ! -s conftest.err
12843 } && test -s conftest.$ac_objext; then
12844 charybdis_cv_c_gcc_w_undef=yes
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 charybdis_cv_c_gcc_w_undef=no
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 CFLAGS="${oldcflags}"
12856 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12857 CWARNS="${CWARNS}-Wundef "
12858 { echo "$as_me:$LINENO: result: ok" >&5
12859 echo "${ECHO_T}ok" >&6; }
12861 charybdis_cv_c_gcc_w_undef=''
12862 { echo "$as_me:$LINENO: result: no" >&5
12863 echo "${ECHO_T}no" >&6; }
12866 { echo "$as_me:$LINENO: result: no" >&5
12867 echo "${ECHO_T}no" >&6; }
12871 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12872 echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
12873 if test "${GCC-no}" = yes
12875 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 oldcflags="${CFLAGS-}"
12880 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12881 cat >conftest.$ac_ext <<_ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12888 #include <string.h>
12896 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12902 rm -f conftest.$ac_objext
12903 if { (ac_try="$ac_compile"
12904 case "(($ac_try" in
12905 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12906 *) ac_try_echo
=$ac_try;;
12908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12909 (eval "$ac_compile") 2>conftest.er1
12911 grep -v '^ *+' conftest.er1
>conftest.err
12913 cat conftest.err
>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); } && {
12916 test -z "$ac_c_werror_flag" ||
12917 test ! -s conftest.err
12918 } && test -s conftest.
$ac_objext; then
12919 charybdis_cv_c_gcc_w_packed
=yes
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.
$ac_ext >&5
12924 charybdis_cv_c_gcc_w_packed
=no
12927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12928 CFLAGS
="${oldcflags}"
12931 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
12932 CWARNS
="${CWARNS}-Wpacked "
12933 { echo "$as_me:$LINENO: result: ok" >&5
12934 echo "${ECHO_T}ok" >&6; }
12936 charybdis_cv_c_gcc_w_packed
=''
12937 { echo "$as_me:$LINENO: result: no" >&5
12938 echo "${ECHO_T}no" >&6; }
12941 { echo "$as_me:$LINENO: result: no" >&5
12942 echo "${ECHO_T}no" >&6; }
12946 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12947 echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
12948 if test "${GCC-no}" = yes
12950 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 oldcflags
="${CFLAGS-}"
12955 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12956 cat >conftest.
$ac_ext <<_ACEOF
12959 cat confdefs.h
>>conftest.
$ac_ext
12960 cat >>conftest.
$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12963 #include <string.h>
12971 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12977 rm -f conftest.
$ac_objext
12978 if { (ac_try
="$ac_compile"
12979 case "(($ac_try" in
12980 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_compile") 2>conftest.er1
12986 grep -v '^ *+' conftest.er1 >conftest.err
12988 cat conftest.err >&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); } && {
12991 test -z "$ac_c_werror_flag" ||
12992 test ! -s conftest.err
12993 } && test -s conftest.$ac_objext; then
12994 charybdis_cv_c_gcc_w_nested_externs=yes
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 charybdis_cv_c_gcc_w_nested_externs=no
13002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13003 CFLAGS="${oldcflags}"
13006 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
13007 CWARNS="${CWARNS}-Wnested-externs "
13008 { echo "$as_me:$LINENO: result: ok" >&5
13009 echo "${ECHO_T}ok" >&6; }
13011 charybdis_cv_c_gcc_w_nested_externs=''
13012 { echo "$as_me:$LINENO: result: no" >&5
13013 echo "${ECHO_T}no" >&6; }
13016 { echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6; }
13021 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
13022 echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
13023 if test "${GCC-no}" = yes
13025 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 oldcflags="${CFLAGS-}"
13030 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
13031 cat >conftest.$ac_ext <<_ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13038 #include <string.h>
13046 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13052 rm -f conftest.$ac_objext
13053 if { (ac_try="$ac_compile"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13056 *) ac_try_echo
=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_compile") 2>conftest.er1
13061 grep -v '^ *+' conftest.er1
>conftest.err
13063 cat conftest.err
>&5
13064 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 charybdis_cv_c_gcc_w_bad_function_cast
=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.
$ac_ext >&5
13074 charybdis_cv_c_gcc_w_bad_function_cast
=no
13077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13078 CFLAGS
="${oldcflags}"
13081 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes
; then
13082 CWARNS
="${CWARNS}-Wbad-function-cast "
13083 { echo "$as_me:$LINENO: result: ok" >&5
13084 echo "${ECHO_T}ok" >&6; }
13086 charybdis_cv_c_gcc_w_bad_function_cast
=''
13087 { echo "$as_me:$LINENO: result: no" >&5
13088 echo "${ECHO_T}no" >&6; }
13091 { echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6; }
13096 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
13097 echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
13098 if test "${GCC-no}" = yes
13100 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13104 oldcflags
="${CFLAGS-}"
13105 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
13106 cat >conftest.
$ac_ext <<_ACEOF
13109 cat confdefs.h
>>conftest.
$ac_ext
13110 cat >>conftest.
$ac_ext <<_ACEOF
13111 /* end confdefs.h. */
13113 #include <string.h>
13121 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13127 rm -f conftest.
$ac_objext
13128 if { (ac_try
="$ac_compile"
13129 case "(($ac_try" in
13130 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_compile") 2>conftest.er1
13136 grep -v '^ *+' conftest.er1 >conftest.err
13138 cat conftest.err >&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } && {
13141 test -z "$ac_c_werror_flag" ||
13142 test ! -s conftest.err
13143 } && test -s conftest.$ac_objext; then
13144 charybdis_cv_c_gcc_w_unused=yes
13146 echo "$as_me: failed program was:" >&5
13147 sed 's/^/| /' conftest.$ac_ext >&5
13149 charybdis_cv_c_gcc_w_unused=no
13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153 CFLAGS="${oldcflags}"
13156 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
13157 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13158 { echo "$as_me:$LINENO: result: ok" >&5
13159 echo "${ECHO_T}ok" >&6; }
13161 charybdis_cv_c_gcc_w_unused=''
13162 { echo "$as_me:$LINENO: result: no" >&5
13163 echo "${ECHO_T}no" >&6; }
13166 { echo "$as_me:$LINENO: result: no" >&5
13167 echo "${ECHO_T}no" >&6; }
13171 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13172 echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
13173 if test "${GCC-no}" = yes
13175 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13179 oldcflags="${CFLAGS-}"
13180 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13181 cat >conftest.$ac_ext <<_ACEOF
13184 cat confdefs.h >>conftest.$ac_ext
13185 cat >>conftest.$ac_ext <<_ACEOF
13186 /* end confdefs.h. */
13188 #include <string.h>
13196 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13206 *) ac_try_echo
=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1
>conftest.err
13213 cat conftest.err
>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest.
$ac_objext; then
13219 charybdis_cv_c_gcc_w_redundant_decls
=yes
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.
$ac_ext >&5
13224 charybdis_cv_c_gcc_w_redundant_decls
=no
13227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13228 CFLAGS
="${oldcflags}"
13231 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
13232 CWARNS
="${CWARNS}-Wredundant-decls "
13233 { echo "$as_me:$LINENO: result: ok" >&5
13234 echo "${ECHO_T}ok" >&6; }
13236 charybdis_cv_c_gcc_w_redundant_decls
=''
13237 { echo "$as_me:$LINENO: result: no" >&5
13238 echo "${ECHO_T}no" >&6; }
13241 { echo "$as_me:$LINENO: result: no" >&5
13242 echo "${ECHO_T}no" >&6; }
13246 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13247 echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
13248 if test "${GCC-no}" = yes
13250 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13254 oldcflags
="${CFLAGS-}"
13255 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13256 cat >conftest.
$ac_ext <<_ACEOF
13259 cat confdefs.h
>>conftest.
$ac_ext
13260 cat >>conftest.
$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13263 #include <string.h>
13271 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13277 rm -f conftest.
$ac_objext
13278 if { (ac_try
="$ac_compile"
13279 case "(($ac_try" in
13280 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13281 *) ac_try_echo=$ac_try;;
13283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13284 (eval "$ac_compile") 2>conftest.er1
13286 grep -v '^ *+' conftest.er1 >conftest.err
13288 cat conftest.err >&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); } && {
13291 test -z "$ac_c_werror_flag" ||
13292 test ! -s conftest.err
13293 } && test -s conftest.$ac_objext; then
13294 charybdis_cv_c_gcc_w_float_equal=yes
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 charybdis_cv_c_gcc_w_float_equal=no
13302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13303 CFLAGS="${oldcflags}"
13306 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13307 CWARNS="${CWARNS}-Wfloat-equal "
13308 { echo "$as_me:$LINENO: result: ok" >&5
13309 echo "${ECHO_T}ok" >&6; }
13311 charybdis_cv_c_gcc_w_float_equal=''
13312 { echo "$as_me:$LINENO: result: no" >&5
13313 echo "${ECHO_T}no" >&6; }
13316 { echo "$as_me:$LINENO: result: no" >&5
13317 echo "${ECHO_T}no" >&6; }
13321 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13322 echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; }
13323 if test "${GCC-no}" = yes
13325 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 oldcflags="${CFLAGS-}"
13330 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13338 #include <string.h>
13346 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13352 rm -f conftest.$ac_objext
13353 if { (ac_try="$ac_compile"
13354 case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13356 *) ac_try_echo
=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_compile") 2>conftest.er1
13361 grep -v '^ *+' conftest.er1
>conftest.err
13363 cat conftest.err
>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && {
13366 test -z "$ac_c_werror_flag" ||
13367 test ! -s conftest.err
13368 } && test -s conftest.
$ac_objext; then
13369 charybdis_cv_c_gcc_w_format
=yes
13371 echo "$as_me: failed program was:" >&5
13372 sed 's/^/| /' conftest.
$ac_ext >&5
13374 charybdis_cv_c_gcc_w_format
=no
13377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13378 CFLAGS
="${oldcflags}"
13381 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
13382 CWARNS
="${CWARNS}-Wformat=2 "
13383 { echo "$as_me:$LINENO: result: ok" >&5
13384 echo "${ECHO_T}ok" >&6; }
13386 charybdis_cv_c_gcc_w_format
=''
13387 { echo "$as_me:$LINENO: result: no" >&5
13388 echo "${ECHO_T}no" >&6; }
13391 { echo "$as_me:$LINENO: result: no" >&5
13392 echo "${ECHO_T}no" >&6; }
13396 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13397 echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
13398 if test "${GCC-no}" = yes
13400 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13401 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 oldcflags
="${CFLAGS-}"
13405 CFLAGS
="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13406 cat >conftest.
$ac_ext <<_ACEOF
13409 cat confdefs.h
>>conftest.
$ac_ext
13410 cat >>conftest.
$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13413 #include <string.h>
13421 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13427 rm -f conftest.
$ac_objext
13428 if { (ac_try
="$ac_compile"
13429 case "(($ac_try" in
13430 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13431 *) ac_try_echo=$ac_try;;
13433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13434 (eval "$ac_compile") 2>conftest.er1
13436 grep -v '^ *+' conftest.er1 >conftest.err
13438 cat conftest.err >&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); } && {
13441 test -z "$ac_c_werror_flag" ||
13442 test ! -s conftest.err
13443 } && test -s conftest.$ac_objext; then
13444 charybdis_cv_c_gcc_pedantic=yes
13446 echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 charybdis_cv_c_gcc_pedantic=no
13452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 CFLAGS="${oldcflags}"
13456 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13457 CWARNS="${CWARNS}-pedantic "
13458 { echo "$as_me:$LINENO: result: ok" >&5
13459 echo "${ECHO_T}ok" >&6; }
13461 charybdis_cv_c_gcc_pedantic=''
13462 { echo "$as_me:$LINENO: result: no" >&5
13463 echo "${ECHO_T}no" >&6; }
13466 { echo "$as_me:$LINENO: result: no" >&5
13467 echo "${ECHO_T}no" >&6; }
13471 IRC_CFLAGS="$CFLAGS"
13476 if test "$shared_modules" = no; then
13478 MOD_TARGET="libmodules.a"
13479 MODULES_LIBS="../modules/libmodules.a"
13482 cat >>confdefs.h <<\_ACEOF
13483 #define STATIC_MODULES 1
13486 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13487 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13490 if test "$shared_modules" = yes; then
13492 { echo "$as_me:$LINENO: checking for nlist" >&5
13493 echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
13494 if test "${ac_cv_func_nlist+set}" = set; then
13495 echo $ECHO_N "(cached) $ECHO_C" >&6
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13505 #define nlist innocuous_nlist
13507 /* System header to define __stub macros and hopefully few prototypes,
13508 which can conflict with char nlist (); below.
13509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13510 <limits.h> exists even on freestanding compilers. */
13513 # include <limits.h>
13515 # include <assert.h>
13520 /* Override any GCC internal prototype to avoid an error.
13521 Use char because int might match the return type of a GCC
13522 builtin and then its argument prototype would still apply. */
13527 /* The GNU C library defines this for functions which it implements
13528 to always fail with ENOSYS. Some functions are actually named
13529 something starting with __ and the normal name is an alias. */
13530 #if defined __stub_nlist || defined __stub___nlist
13542 rm -f conftest.$ac_objext conftest$ac_exeext
13543 if { (ac_try="$ac_link"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13546 *) ac_try_echo
=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_link") 2>conftest.er1
13551 grep -v '^ *+' conftest.er1
>conftest.err
13553 cat conftest.err
>&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } && {
13556 test -z "$ac_c_werror_flag" ||
13557 test ! -s conftest.err
13558 } && test -s conftest
$ac_exeext &&
13559 $as_test_x conftest
$ac_exeext; then
13560 ac_cv_func_nlist
=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.
$ac_ext >&5
13565 ac_cv_func_nlist
=no
13568 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13569 conftest
$ac_exeext conftest.
$ac_ext
13571 { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13572 echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
13573 if test $ac_cv_func_nlist = yes; then
13576 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13577 echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
13578 if test "${ac_cv_lib_dl_nlist+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 ac_check_lib_save_LIBS
=$LIBS
13583 cat >conftest.
$ac_ext <<_ACEOF
13586 cat confdefs.h
>>conftest.
$ac_ext
13587 cat >>conftest.
$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 /* Override any GCC internal prototype to avoid an error.
13591 Use char because int might match the return type of a GCC
13592 builtin and then its argument prototype would still apply. */
13605 rm -f conftest.
$ac_objext conftest
$ac_exeext
13606 if { (ac_try
="$ac_link"
13607 case "(($ac_try" in
13608 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_link") 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } && {
13619 test -z "$ac_c_werror_flag" ||
13620 test ! -s conftest.err
13621 } && test -s conftest$ac_exeext &&
13622 $as_test_x conftest$ac_exeext; then
13623 ac_cv_lib_dl_nlist=yes
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_cv_lib_dl_nlist=no
13631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13632 conftest$ac_exeext conftest.$ac_ext
13633 LIBS=$ac_check_lib_save_LIBS
13635 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13636 echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
13637 if test $ac_cv_lib_dl_nlist = yes; then
13640 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13641 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
13642 if test "${ac_cv_lib_elf_nlist+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 ac_check_lib_save_LIBS=$LIBS
13647 cat >conftest.$ac_ext <<_ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h. */
13654 /* Override any GCC internal prototype to avoid an error.
13655 Use char because int might match the return type of a GCC
13656 builtin and then its argument prototype would still apply. */
13669 rm -f conftest.$ac_objext conftest$ac_exeext
13670 if { (ac_try="$ac_link"
13671 case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13673 *) ac_try_echo
=$ac_try;;
13675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676 (eval "$ac_link") 2>conftest.er1
13678 grep -v '^ *+' conftest.er1
>conftest.err
13680 cat conftest.err
>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } && {
13683 test -z "$ac_c_werror_flag" ||
13684 test ! -s conftest.err
13685 } && test -s conftest
$ac_exeext &&
13686 $as_test_x conftest
$ac_exeext; then
13687 ac_cv_lib_elf_nlist
=yes
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.
$ac_ext >&5
13692 ac_cv_lib_elf_nlist
=no
13695 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13696 conftest
$ac_exeext conftest.
$ac_ext
13697 LIBS
=$ac_check_lib_save_LIBS
13699 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13700 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
13701 if test $ac_cv_lib_elf_nlist = yes; then
13712 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13713 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13714 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13715 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13716 echo $ECHO_N "(cached) $ECHO_C" >&6
13718 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13719 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13721 # Is the header compilable?
13722 { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13723 echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
13724 cat >conftest.
$ac_ext <<_ACEOF
13727 cat confdefs.h
>>conftest.
$ac_ext
13728 cat >>conftest.
$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 $ac_includes_default
13731 #include <libelf/nlist.h>
13733 rm -f conftest.
$ac_objext
13734 if { (ac_try
="$ac_compile"
13735 case "(($ac_try" in
13736 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_compile") 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } && {
13747 test -z "$ac_c_werror_flag" ||
13748 test ! -s conftest.err
13749 } && test -s conftest.$ac_objext; then
13750 ac_header_compiler=yes
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_header_compiler=no
13758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13760 echo "${ECHO_T}$ac_header_compiler" >&6; }
13762 # Is the header present?
13763 { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13764 echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
13765 cat >conftest.$ac_ext <<_ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 #include <libelf/nlist.h>
13773 if { (ac_try="$ac_cpp conftest.$ac_ext"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13776 *) ac_try_echo
=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13781 grep -v '^ *+' conftest.er1
>conftest.err
13783 cat conftest.err
>&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } >/dev
/null
&& {
13786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13787 test ! -s conftest.err
13789 ac_header_preproc
=yes
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.
$ac_ext >&5
13794 ac_header_preproc
=no
13797 rm -f conftest.err conftest.
$ac_ext
13798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13799 echo "${ECHO_T}$ac_header_preproc" >&6; }
13801 # So? What about this header?
13802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13804 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13805 echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13807 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13808 ac_header_preproc
=yes
13811 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13812 echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13814 echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13816 echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13818 echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13819 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13820 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13821 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13822 echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13826 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13827 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13828 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 ac_cv_header_libelf_nlist_h
=$ac_header_preproc
13833 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13834 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13837 if test $ac_cv_header_libelf_nlist_h = yes; then
13838 nlist_h
="libelf/nlist.h"
13842 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13843 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13844 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13845 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13849 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13851 # Is the header compilable?
13852 { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13853 echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
13854 cat >conftest.
$ac_ext <<_ACEOF
13857 cat confdefs.h
>>conftest.
$ac_ext
13858 cat >>conftest.
$ac_ext <<_ACEOF
13859 /* end confdefs.h. */
13860 $ac_includes_default
13861 #include <elf/nlist.h>
13863 rm -f conftest.
$ac_objext
13864 if { (ac_try
="$ac_compile"
13865 case "(($ac_try" in
13866 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13867 *) ac_try_echo=$ac_try;;
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870 (eval "$ac_compile") 2>conftest.er1
13872 grep -v '^ *+' conftest.er1 >conftest.err
13874 cat conftest.err >&5
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); } && {
13877 test -z "$ac_c_werror_flag" ||
13878 test ! -s conftest.err
13879 } && test -s conftest.$ac_objext; then
13880 ac_header_compiler=yes
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_header_compiler=no
13888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13890 echo "${ECHO_T}$ac_header_compiler" >&6; }
13892 # Is the header present?
13893 { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13894 echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
13895 cat >conftest.$ac_ext <<_ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 #include <elf/nlist.h>
13903 if { (ac_try="$ac_cpp conftest.$ac_ext"
13904 case "(($ac_try" in
13905 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13906 *) ac_try_echo
=$ac_try;;
13908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13911 grep -v '^ *+' conftest.er1
>conftest.err
13913 cat conftest.err
>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } >/dev
/null
&& {
13916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13919 ac_header_preproc
=yes
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.
$ac_ext >&5
13924 ac_header_preproc
=no
13927 rm -f conftest.err conftest.
$ac_ext
13928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13929 echo "${ECHO_T}$ac_header_preproc" >&6; }
13931 # So? What about this header?
13932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13934 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13935 echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13936 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13937 echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13938 ac_header_preproc
=yes
13941 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13942 echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13944 echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13946 echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13947 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13948 echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13950 echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13951 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13952 echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
13956 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13957 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13958 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 ac_cv_header_elf_nlist_h
=$ac_header_preproc
13963 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13964 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13967 if test $ac_cv_header_elf_nlist_h = yes; then
13968 nlist_h
="elf/nlist.h"
13972 if test "${ac_cv_header_nlist_h+set}" = set; then
13973 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13974 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13975 if test "${ac_cv_header_nlist_h+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13979 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13981 # Is the header compilable?
13982 { echo "$as_me:$LINENO: checking nlist.h usability" >&5
13983 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
13984 cat >conftest.
$ac_ext <<_ACEOF
13987 cat confdefs.h
>>conftest.
$ac_ext
13988 cat >>conftest.
$ac_ext <<_ACEOF
13989 /* end confdefs.h. */
13990 $ac_includes_default
13993 rm -f conftest.
$ac_objext
13994 if { (ac_try
="$ac_compile"
13995 case "(($ac_try" in
13996 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_compile") 2>conftest.er1
14002 grep -v '^ *+' conftest.er1 >conftest.err
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } && {
14007 test -z "$ac_c_werror_flag" ||
14008 test ! -s conftest.err
14009 } && test -s conftest.$ac_objext; then
14010 ac_header_compiler=yes
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14015 ac_header_compiler=no
14018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14020 echo "${ECHO_T}$ac_header_compiler" >&6; }
14022 # Is the header present?
14023 { echo "$as_me:$LINENO: checking nlist.h presence" >&5
14024 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
14025 cat >conftest.$ac_ext <<_ACEOF
14028 cat confdefs.h >>conftest.$ac_ext
14029 cat >>conftest.$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14033 if { (ac_try="$ac_cpp conftest.$ac_ext"
14034 case "(($ac_try" in
14035 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
14036 *) ac_try_echo
=$ac_try;;
14038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14041 grep -v '^ *+' conftest.er1
>conftest.err
14043 cat conftest.err
>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); } >/dev
/null
&& {
14046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14047 test ! -s conftest.err
14049 ac_header_preproc
=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.
$ac_ext >&5
14054 ac_header_preproc
=no
14057 rm -f conftest.err conftest.
$ac_ext
14058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14059 echo "${ECHO_T}$ac_header_preproc" >&6; }
14061 # So? What about this header?
14062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14064 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14065 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14066 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
14067 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
14068 ac_header_preproc
=yes
14071 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
14072 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
14073 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
14074 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
14075 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
14076 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14078 echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
14080 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
14082 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
14086 { echo "$as_me:$LINENO: checking for nlist.h" >&5
14087 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
14088 if test "${ac_cv_header_nlist_h+set}" = set; then
14089 echo $ECHO_N "(cached) $ECHO_C" >&6
14091 ac_cv_header_nlist_h
=$ac_header_preproc
14093 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14094 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
14097 if test $ac_cv_header_nlist_h = yes; then
14102 if test x
"$nlist_h" = "x"; then
14104 cat >>confdefs.h
<<_ACEOF
14105 #define SYMBOL_PREFIX ""
14109 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
14110 echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
14111 if test "${symbol_underscores+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 cat << EOF > conftest.c
14116 #include <$nlist_h>
14118 #include <stdlib.h>
14119 void _modinit(void);
14120 int main(int argc, char *argv[]) {
14122 struct nlist nl[5];
14124 /* fill the names in this way, so it'll work almost everywhere */
14125 nl[0].n_name = "_modinit";
14126 nl[1].n_name = "__modinit";
14127 nl[2].n_name = "___modinit";
14128 nl[3].n_name = "____modinit";
14129 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14131 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14132 for(i = 0; i < 4; i++) {
14133 if(nl[i].n_value != NULL)
14136 for(j = 0; j < i; j++)
14143 void _modinit(void) { return; }
14145 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
14146 symbol_underscores
=`./conftest conftest`
14147 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14148 echo "${ECHO_T}$symbol_underscores" >&6; }
14149 $RM -f conftest conftest.c
14154 cat >>confdefs.h
<<_ACEOF
14155 #define SYMBOL_PREFIX "${symbol_underscores}"
14174 if test "$prefix" = "NONE"; then
14176 cat >>confdefs.h
<<_ACEOF
14177 #define IRCD_PREFIX "$ac_default_prefix"
14184 prefix
=`echo $prefix | sed 's/\/$//'`
14186 cat >>confdefs.h
<<_ACEOF
14187 #define IRCD_PREFIX "$prefix"
14193 ac_config_files
="$ac_config_files Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14196 cat >confcache
<<\_ACEOF
14197 # This file is a shell script that caches the results of configure
14198 # tests run on this system so they can be shared between configure
14199 # scripts and configure runs, see configure's option --config-cache.
14200 # It is not useful on other systems. If it contains results you don't
14201 # want to keep, you may remove or edit it.
14203 # config.status only pays attention to the cache file if you give it
14204 # the --recheck option to rerun configure.
14206 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14207 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14208 # following values.
14212 # The following way of writing the cache mishandles newlines in values,
14213 # but we know of no workaround that is simple, portable, and efficient.
14214 # So, we kill variables containing newlines.
14215 # Ultrix sh set writes to stderr and can't be redirected directly,
14216 # and sets the high bit in the cache file unless we assign to the vars.
14218 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14219 eval ac_val
=\$
$ac_var
14223 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14224 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14227 _
| IFS
| as_nl
) ;; #(
14228 *) $as_unset $ac_var ;;
14234 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14235 *${as_nl}ac_space
=\
*)
14236 # `set' does not quote correctly, so add quotes (double-quote
14237 # substitution turns \\\\ into \\, and sed turns \\ into \).
14240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14243 # `set' quotes correctly as required by POSIX, so do not add quotes.
14244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14253 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14255 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14257 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14258 if test -w "$cache_file"; then
14259 test "x$cache_file" != "x/dev/null" &&
14260 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14261 echo "$as_me: updating cache $cache_file" >&6;}
14262 cat confcache
>$cache_file
14264 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14265 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14270 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14271 # Let make expand exec_prefix.
14272 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14274 DEFS
=-DHAVE_CONFIG_H
14278 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14279 # 1. Remove the extension, and $U if already installed.
14280 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14281 ac_i
=`echo "$ac_i" | sed "$ac_script"`
14282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14283 # will be set to the directory where LIBOBJS objects are built.
14284 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14285 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14287 LIBOBJS
=$ac_libobjs
14289 LTLIBOBJS
=$ac_ltlibobjs
14293 : ${CONFIG_STATUS=./config.status}
14294 ac_clean_files_save
=$ac_clean_files
14295 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14296 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14297 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14298 cat >$CONFIG_STATUS <<_ACEOF
14300 # Generated by $as_me.
14301 # Run this file to recreate the current configuration.
14302 # Compiler output produced by configure, useful for debugging
14303 # configure, is in config.log if it exists.
14306 ac_cs_recheck=false
14308 SHELL=\${CONFIG_SHELL-$SHELL}
14311 cat >>$CONFIG_STATUS <<\_ACEOF
14312 ## --------------------- ##
14313 ## M4sh Initialization. ##
14314 ## --------------------- ##
14316 # Be more Bourne compatible
14317 DUALCASE
=1; export DUALCASE
# for MKS sh
14318 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14321 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14322 # is contrary to our usage. Disable this feature.
14323 alias -g '${1+"$@"}'='"$@"'
14324 setopt NO_GLOB_SUBST
14326 case `(set -o) 2>/dev/null` in
14327 *posix
*) set -o posix
;;
14336 # Avoid depending upon Character Ranges.
14337 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14338 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14339 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14340 as_cr_digits
='0123456789'
14341 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14343 # The user is always right.
14344 if test "${PATH_SEPARATOR+set}" != set; then
14345 echo "#! /bin/sh" >conf$$.sh
14346 echo "exit 0" >>conf$$.sh
14348 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14356 # Support unset when possible.
14357 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
14365 # We need space, tab and new line, in precisely that order. Quoting is
14366 # there to prevent editors from complaining about space-tab.
14367 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14368 # splitting by setting IFS to empty value.)
14373 # Find who we are. Look in the path if we contain no directory separator.
14375 *[\\/]* ) as_myself
=$0 ;;
14376 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14377 for as_dir
in $PATH
14380 test -z "$as_dir" && as_dir
=.
14381 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14387 # We did not find ourselves, most probably we were run as `sh COMMAND'
14388 # in which case we are not to be found in the path.
14389 if test "x$as_myself" = x
; then
14392 if test ! -f "$as_myself"; then
14393 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14394 { (exit 1); exit 1; }
14397 # Work around bugs in pre-3.0 UWIN ksh.
14398 for as_var
in ENV MAIL MAILPATH
14399 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14407 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14408 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14409 LC_TELEPHONE LC_TIME
14411 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14412 eval $as_var=C
; export $as_var
14414 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14418 # Required to use basename.
14419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14427 as_basename
=basename
14433 # Name of the executable.
14434 as_me
=`$as_basename -- "$0" ||
14435 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14436 X"$0" : 'X\(//\)$' \| \
14437 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14439 sed '/^.*\/\([^/][^/]*\)\/*$/{
14458 as_lineno_1
=$LINENO
14459 as_lineno_2
=$LINENO
14460 test "x$as_lineno_1" != "x$as_lineno_2" &&
14461 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14463 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14464 # uniformly replaced by the line number. The first 'sed' inserts a
14465 # line-number line after each line using $LINENO; the second 'sed'
14466 # does the real work. The second script uses 'N' to pair each
14467 # line-number line with the line containing $LINENO, and appends
14468 # trailing '-' during substitution so that $LINENO is not a special
14469 # case at line end.
14470 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14471 # scripts with optimization help from Paolo Bonzini. Blame Lee
14472 # E. McMahon (1931-1989) for sed's syntax. :-)
14484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14487 ' >$as_me.lineno
&&
14488 chmod +x
"$as_me.lineno" ||
14489 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14490 { (exit 1); exit 1; }; }
14492 # Don't try to exec as it changes $[0], causing all sort of problems
14493 # (the dirname of $[0] is not the place where we might find the
14494 # original and so on. Autoconf is especially sensitive to this).
14495 .
"./$as_me.lineno"
14496 # Exit status is that of the last command.
14501 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14507 ECHO_C
= ECHO_N
= ECHO_T
=
14508 case `echo -n x` in
14510 case `echo 'x\c'` in
14511 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14518 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14519 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14525 rm -f conf$$ conf$$.exe conf$$.
file
14526 if test -d conf$$.dir
; then
14527 rm -f conf$$.dir
/conf$$.
file
14533 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14535 # ... but there are two gotchas:
14536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14538 # In both cases, we have to default to `cp -p'.
14539 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
14541 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14546 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14547 rmdir conf$$.dir
2>/dev
/null
14549 if mkdir -p .
2>/dev
/null
; then
14552 test -d .
/-p && rmdir .
/-p
14556 if test -x / >/dev
/null
2>&1; then
14557 as_test_x
='test -x'
14559 if ls -dL / >/dev
/null
2>&1; then
14566 if test -d "$1"; then
14572 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14573 ???[sx]*):;;*)false;;esac;fi
14577 as_executable_p
=$as_test_x
14579 # Sed expression to map a string onto a valid CPP name.
14580 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14582 # Sed expression to map a string onto a valid variable name.
14583 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14588 # Save the log message, to keep $[0] and so on meaningful, and to
14589 # report actual input values of CONFIG_FILES etc. instead of their
14590 # values after options handling.
14592 This file was extended by charybdis $as_me 3.0.0-alpha1, which was
14593 generated by GNU Autoconf 2.61. Invocation command line was
14595 CONFIG_FILES = $CONFIG_FILES
14596 CONFIG_HEADERS = $CONFIG_HEADERS
14597 CONFIG_LINKS = $CONFIG_LINKS
14598 CONFIG_COMMANDS = $CONFIG_COMMANDS
14601 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14606 cat >>$CONFIG_STATUS <<_ACEOF
14607 # Files that config.status was made for.
14608 config_files="$ac_config_files"
14609 config_headers="$ac_config_headers"
14613 cat >>$CONFIG_STATUS <<\_ACEOF
14615 \`$as_me' instantiates files from templates according to the
14616 current configuration.
14618 Usage: $0 [OPTIONS] [FILE]...
14620 -h, --help print this help, then exit
14621 -V, --version print version number and configuration settings, then exit
14622 -q, --quiet do not print progress messages
14623 -d, --debug don't remove temporary files
14624 --recheck update $as_me by reconfiguring in the same conditions
14625 --file=FILE[:TEMPLATE]
14626 instantiate the configuration file FILE
14627 --header=FILE[:TEMPLATE]
14628 instantiate the configuration header FILE
14630 Configuration files:
14633 Configuration headers:
14636 Report bugs to <bug-autoconf@gnu.org>."
14639 cat >>$CONFIG_STATUS <<_ACEOF
14641 charybdis config.status 3.0.0-alpha1
14642 configured by $0, generated by GNU Autoconf 2.61,
14643 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14645 Copyright (C) 2006 Free Software Foundation, Inc.
14646 This config.status script is free software; the Free Software Foundation
14647 gives unlimited permission to copy, distribute and modify it."
14654 cat >>$CONFIG_STATUS <<\_ACEOF
14655 # If no file are specified by the user, then we need to provide default
14656 # value. By we need to know if files were specified by the user.
14662 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14663 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14674 # Handling of the options.
14675 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14677 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14678 echo "$ac_cs_version"; exit ;;
14679 --debug | --debu | --deb | --de | --d | -d )
14681 --file | --fil | --fi | --f )
14683 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14684 ac_need_defaults
=false
;;
14685 --header | --heade | --head | --hea )
14687 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14688 ac_need_defaults
=false
;;
14690 # Conflict between --help and --header
14691 { echo "$as_me: error: ambiguous option: $1
14692 Try \`$0 --help' for more information." >&2
14693 { (exit 1); exit 1; }; };;
14694 --help | --hel | -h )
14695 echo "$ac_cs_usage"; exit ;;
14696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14697 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14700 # This is an error.
14701 -*) { echo "$as_me: error: unrecognized option: $1
14702 Try \`$0 --help' for more information." >&2
14703 { (exit 1); exit 1; }; } ;;
14705 *) ac_config_targets
="$ac_config_targets $1"
14706 ac_need_defaults
=false
;;
14712 ac_configure_extra_args
=
14714 if $ac_cs_silent; then
14716 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14720 cat >>$CONFIG_STATUS <<_ACEOF
14721 if \$ac_cs_recheck; then
14722 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14723 CONFIG_SHELL=$SHELL
14724 export CONFIG_SHELL
14725 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14729 cat >>$CONFIG_STATUS <<\_ACEOF
14733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14734 ## Running $as_me. ##
14740 cat >>$CONFIG_STATUS <<_ACEOF
14743 cat >>$CONFIG_STATUS <<\_ACEOF
14745 # Handling of arguments.
14746 for ac_config_target
in $ac_config_targets
14748 case $ac_config_target in
14749 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
14750 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14751 "servlink/Makefile") CONFIG_FILES
="$CONFIG_FILES servlink/Makefile" ;;
14752 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
14753 "unsupported/Makefile") CONFIG_FILES
="$CONFIG_FILES unsupported/Makefile" ;;
14754 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
14755 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
14756 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
14757 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14758 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
14760 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14761 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14762 { (exit 1); exit 1; }; };;
14767 # If the user did not use the arguments to specify the items to instantiate,
14768 # then the envvar interface is used. Set only those that are not.
14769 # We use the long form for the default assignment because of an extremely
14770 # bizarre bug on SunOS 4.1.3.
14771 if $ac_need_defaults; then
14772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14773 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14776 # Have a temporary directory for convenience. Make it in the build tree
14777 # simply because there is no reason against having it here, and in addition,
14778 # creating and moving files from /tmp can sometimes cause problems.
14779 # Hook for its removal unless debugging.
14780 # Note that there is a small window in which the directory will not be cleaned:
14781 # after its creation but before its name has been assigned to `$tmp'.
14785 trap 'exit_status=$?
14786 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14788 trap '{ (exit 1); exit 1; }' 1 2 13 15
14790 # Create a (secure) tmp directory for tmp files.
14793 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14794 test -n "$tmp" && test -d "$tmp"
14797 tmp
=.
/conf$$
-$RANDOM
14798 (umask 077 && mkdir "$tmp")
14801 echo "$me: cannot create a temporary directory in ." >&2
14802 { (exit 1); exit 1; }
14806 # Set up the sed scripts for CONFIG_FILES section.
14809 # No need to generate the scripts if there are no CONFIG_FILES.
14810 # This happens for instance when ./config.status config.h
14811 if test -n "$CONFIG_FILES"; then
14818 for ac_last_try
in false false false false false
:; do
14819 cat >conf$
$subs.
sed <<_ACEOF
14820 SHELL!$SHELL$ac_delim
14821 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14822 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14823 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14824 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14825 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14826 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14827 exec_prefix!$exec_prefix$ac_delim
14828 prefix!$prefix$ac_delim
14829 program_transform_name!$program_transform_name$ac_delim
14830 bindir!$bindir$ac_delim
14831 sbindir!$sbindir$ac_delim
14832 libexecdir!$libexecdir$ac_delim
14833 datarootdir!$datarootdir$ac_delim
14834 datadir!$datadir$ac_delim
14835 sysconfdir!$sysconfdir$ac_delim
14836 sharedstatedir!$sharedstatedir$ac_delim
14837 localstatedir!$localstatedir$ac_delim
14838 includedir!$includedir$ac_delim
14839 oldincludedir!$oldincludedir$ac_delim
14840 docdir!$docdir$ac_delim
14841 infodir!$infodir$ac_delim
14842 htmldir!$htmldir$ac_delim
14843 dvidir!$dvidir$ac_delim
14844 pdfdir!$pdfdir$ac_delim
14845 psdir!$psdir$ac_delim
14846 libdir!$libdir$ac_delim
14847 localedir!$localedir$ac_delim
14848 mandir!$mandir$ac_delim
14849 DEFS!$DEFS$ac_delim
14850 ECHO_C!$ECHO_C$ac_delim
14851 ECHO_N!$ECHO_N$ac_delim
14852 ECHO_T!$ECHO_T$ac_delim
14853 LIBS!$LIBS$ac_delim
14854 build_alias!$build_alias$ac_delim
14855 host_alias!$host_alias$ac_delim
14856 target_alias!$target_alias$ac_delim
14858 CFLAGS!$CFLAGS$ac_delim
14859 LDFLAGS!$LDFLAGS$ac_delim
14860 CPPFLAGS!$CPPFLAGS$ac_delim
14861 ac_ct_CC!$ac_ct_CC$ac_delim
14862 EXEEXT!$EXEEXT$ac_delim
14863 OBJEXT!$OBJEXT$ac_delim
14864 subdirs!$subdirs$ac_delim
14865 MKDEP!$MKDEP$ac_delim
14866 MAKEDEPEND!$MAKEDEPEND$ac_delim
14867 STDOUT!$STDOUT$ac_delim
14869 GREP!$GREP$ac_delim
14870 EGREP!$EGREP$ac_delim
14871 SET_MAKE!$SET_MAKE$ac_delim
14872 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14873 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14874 INSTALL_DATA!$INSTALL_DATA$ac_delim
14882 RANLIB!$RANLIB$ac_delim
14883 TOUCH!$TOUCH$ac_delim
14884 YACC!$YACC$ac_delim
14885 YFLAGS!$YFLAGS$ac_delim
14887 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14888 LEXLIB!$LEXLIB$ac_delim
14889 CRYPT_LIB!$CRYPT_LIB$ac_delim
14890 VICONF!$VICONF$ac_delim
14891 ALLOCA!$ALLOCA$ac_delim
14892 ENCSPEED!$ENCSPEED$ac_delim
14893 ZLIB_LD!$ZLIB_LD$ac_delim
14894 ETC_DIR!$ETC_DIR$ac_delim
14895 confdir!$confdir$ac_delim
14896 LOG_DIR!$LOG_DIR$ac_delim
14897 logdir!$logdir$ac_delim
14898 HELP_DIR!$HELP_DIR$ac_delim
14899 helpdir!$helpdir$ac_delim
14900 MODULE_DIR!$MODULE_DIR$ac_delim
14901 moduledir!$moduledir$ac_delim
14902 SELECT_TYPE!$SELECT_TYPE$ac_delim
14903 MODULES_LIBS!$MODULES_LIBS$ac_delim
14904 MOD_TARGET!$MOD_TARGET$ac_delim
14905 SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14906 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14907 SSL_LIBS!$SSL_LIBS$ac_delim
14908 PICFLAGS!$PICFLAGS$ac_delim
14909 IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14910 SEDOBJ!$SEDOBJ$ac_delim
14911 LIBOBJS!$LIBOBJS$ac_delim
14912 LTLIBOBJS!$LTLIBOBJS$ac_delim
14915 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
14917 elif $ac_last_try; then
14918 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14919 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14920 { (exit 1); exit 1; }; }
14922 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
14926 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14927 if test -n "$ac_eof"; then
14928 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
14929 ac_eof
=`expr $ac_eof + 1`
14932 cat >>$CONFIG_STATUS <<_ACEOF
14933 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14934 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14937 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14938 s/^/s,@/; s/!/@,|#_!!_#|/
14941 s/'"$ac_delim"'$/,g/; t
14943 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14944 ' >>$CONFIG_STATUS <conf$
$subs.
sed
14945 rm -f conf$
$subs.
sed
14946 cat >>$CONFIG_STATUS <<_ACEOF
14953 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14954 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14955 # trailing colons and then remove the whole line if VPATH becomes empty
14956 # (actually we leave an empty line to preserve line numbers).
14957 if test "x$srcdir" = x.
; then
14958 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14959 s/:*\$(srcdir):*/:/
14960 s/:*\${srcdir}:*/:/
14962 s/^\([^=]*=[ ]*\):*/\1/
14968 cat >>$CONFIG_STATUS <<\_ACEOF
14969 fi # test -n "$CONFIG_FILES"
14972 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
14975 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14977 case $ac_mode$ac_tag in
14979 :L
* | :C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14980 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14981 { (exit 1); exit 1; }; };;
14982 :[FH
]-) ac_tag
=-:-;;
14983 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15000 -) ac_f
="$tmp/stdin";;
15001 *) # Look for the file first in the build tree, then in the source tree
15002 # (if the path is not absolute). The absolute path cannot be DOS-style,
15003 # because $ac_f cannot contain `:'.
15007 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15009 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15010 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15011 { (exit 1); exit 1; }; };;
15013 ac_file_inputs
="$ac_file_inputs $ac_f"
15016 # Let's still pretend it is `configure' which instantiates (i.e., don't
15017 # use $as_me), people would be surprised to read:
15018 # /* config.h. Generated by config.status. */
15019 configure_input
="Generated from "`IFS=:
15020 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15021 if test x
"$ac_file" != x
-; then
15022 configure_input
="$ac_file. $configure_input"
15023 { echo "$as_me:$LINENO: creating $ac_file" >&5
15024 echo "$as_me: creating $ac_file" >&6;}
15028 *:-:* | *:-) cat >"$tmp/stdin";;
15033 ac_dir
=`$as_dirname -- "$ac_file" ||
15034 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15035 X"$ac_file" : 'X\(//\)[^/]' \| \
15036 X"$ac_file" : 'X\(//\)$' \| \
15037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15043 /^X\(\/\/\)[^/].*/{
15058 -*) as_dir
=.
/$as_dir;;
15060 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15064 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15065 *) as_qdir
=$as_dir;;
15067 as_dirs
="'$as_qdir' $as_dirs"
15068 as_dir
=`$as_dirname -- "$as_dir" ||
15069 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15070 X"$as_dir" : 'X\(//\)[^/]' \| \
15071 X"$as_dir" : 'X\(//\)$' \| \
15072 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15078 /^X\(\/\/\)[^/].*/{
15091 test -d "$as_dir" && break
15093 test -z "$as_dirs" || eval "mkdir $as_dirs"
15094 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15095 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15096 { (exit 1); exit 1; }; }; }
15100 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15102 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15103 # A ".." for each directory in $ac_dir_suffix.
15104 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15105 case $ac_top_builddir_sub in
15106 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15107 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15110 ac_abs_top_builddir
=$ac_pwd
15111 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15112 # for backward compatibility:
15113 ac_top_builddir
=$ac_top_build_prefix
15116 .
) # We are building in place.
15118 ac_top_srcdir
=$ac_top_builddir_sub
15119 ac_abs_top_srcdir
=$ac_pwd ;;
15120 [\\/]* | ?
:[\\/]* ) # Absolute name.
15121 ac_srcdir
=$srcdir$ac_dir_suffix;
15122 ac_top_srcdir
=$srcdir
15123 ac_abs_top_srcdir
=$srcdir ;;
15124 *) # Relative name.
15125 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15126 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15127 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15129 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15139 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15140 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15144 cat >>$CONFIG_STATUS <<\_ACEOF
15145 # If the template does not know about datarootdir, expand it.
15146 # FIXME: This hack should be removed a few years after 2.60.
15147 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15149 case `sed -n '/datarootdir/ {
15158 ' $ac_file_inputs` in
15159 *datarootdir
*) ac_datarootdir_seen
=yes;;
15160 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
15161 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15164 cat >>$CONFIG_STATUS <<_ACEOF
15165 ac_datarootdir_hack='
15166 s&@datadir@&$datadir&g
15167 s&@docdir@&$docdir&g
15168 s&@infodir@&$infodir&g
15169 s&@localedir@&$localedir&g
15170 s&@mandir@&$mandir&g
15171 s&\\\${datarootdir}&$datarootdir&g' ;;
15175 # Neutralize VPATH when `$srcdir' = `.'.
15176 # Shell code in configure.ac might set extrasub.
15177 # FIXME: do we really want to maintain this feature?
15178 cat >>$CONFIG_STATUS <<_ACEOF
15182 cat >>$CONFIG_STATUS <<\_ACEOF
15184 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
15185 s
&@configure_input@
&$configure_input&;t t
15186 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15187 s
&@srcdir@
&$ac_srcdir&;t t
15188 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15189 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15190 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15191 s
&@builddir@
&$ac_builddir&;t t
15192 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15193 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15194 s
&@INSTALL@
&$ac_INSTALL&;t t
15195 $ac_datarootdir_hack
15196 " $ac_file_inputs | sed -f "$tmp/subs
-1.
sed" >$tmp/out
15198 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15199 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15200 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15201 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15202 which seems to be undefined. Please make sure it is defined." >&5
15203 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15204 which seems to be undefined. Please make sure it is defined." >&2;}
15208 -) cat "$tmp/out"; rm -f "$tmp/out";;
15209 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15218 # Transform confdefs.h into a sed script `conftest.defines', that
15219 # substitutes the proper values into config.h.in to produce config.h.
15220 rm -f conftest.defines conftest.
tail
15221 # First, append a space to every undef/define line, to ease matching.
15222 echo 's/$/ /' >conftest.defines
15223 # Then, protect against being on the right side of a sed subst, or in
15224 # an unquoted here document, in config.status. If some macros were
15225 # called several times there might be several #defines for the same
15226 # symbol, which is useless. But do not sort them, since the last
15227 # AC_DEFINE must be honored.
15228 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
15229 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15230 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15231 # PARAMS is the parameter list in the macro definition--in most cases, it's
15232 # just an empty string.
15233 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15234 ac_dB
='\\)[ (].*,\\1define\\2'
15242 s/^[ ]*#[ ]*define[ ][ ]*//
15247 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15248 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15249 ' >>conftest.defines
15251 # Remove the space that was appended to ease matching.
15252 # Then replace #undef with comments. This is necessary, for
15253 # example, in the case of _POSIX_SOURCE, which is predefined and required
15254 # on some systems where configure will not decide to define it.
15255 # (The regexp can be short, since the line contains either #define or #undef.)
15257 s,^[ #]*u.*,/* & */,' >>conftest.defines
15259 # Break up conftest.defines:
15260 ac_max_sed_lines
=50
15262 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15263 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15264 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15266 ac_in
='$ac_file_inputs'
15267 ac_out
='"$tmp/out1"'
15268 ac_nxt
='"$tmp/out2"'
15272 # Write a here document:
15273 cat >>$CONFIG_STATUS <<_ACEOF
15274 # First, check the format of the line:
15275 cat >"\$tmp/defines.sed" <<\\CEOF
15276 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15277 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15281 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
15283 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15284 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
15285 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
15286 grep . conftest.
tail >/dev
/null
|| break
15287 rm -f conftest.defines
15288 mv conftest.
tail conftest.defines
15290 rm -f conftest.defines conftest.
tail
15292 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15293 cat >>$CONFIG_STATUS <<\_ACEOF
15294 if test x
"$ac_file" != x
-; then
15295 echo "/* $configure_input */" >"$tmp/config.h"
15296 cat "$ac_result" >>"$tmp/config.h"
15297 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15298 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15299 echo "$as_me: $ac_file is unchanged" >&6;}
15302 mv "$tmp/config.h" $ac_file
15305 echo "/* $configure_input */"
15317 { (exit 0); exit 0; }
15319 chmod +x
$CONFIG_STATUS
15320 ac_clean_files
=$ac_clean_files_save
15323 # configure is writing to config.log, and then calls config.status.
15324 # config.status does its own redirection, appending to config.log.
15325 # Unfortunately, on DOS this fails, as config.log is still kept open
15326 # by configure, so config.status won't be able to write to it; its
15327 # output is simply discarded. So we exec the FD to /dev/null,
15328 # effectively closing config.log, so it can be properly (re)opened and
15329 # appended to by config.status. When coming back to configure, we
15330 # need to make the FD available again.
15331 if test "$no_create" != yes; then
15333 ac_config_status_args
=
15334 test "$silent" = yes &&
15335 ac_config_status_args
="$ac_config_status_args --quiet"
15337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15340 # would make configure fail if this is the last instruction.
15341 $ac_cs_success || { (exit 1); exit 1; }
15345 # CONFIG_SUBDIRS section.
15347 if test "$no_recursion" != yes; then
15349 # Remove --cache-file and --srcdir arguments so they do not pile up.
15350 ac_sub_configure_args
=
15352 eval "set x $ac_configure_args"
15356 if test -n "$ac_prev"; then
15361 -cache-file | --cache-file | --cache-fil | --cache-fi \
15362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15363 ac_prev
=cache_file
;;
15364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15368 --config-cache | -C)
15370 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15372 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15374 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15376 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15380 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15382 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
15386 # Always prepend --prefix to ensure using the same prefix
15387 # in subdir configurations.
15388 ac_arg
="--prefix=$prefix"
15390 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15392 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
15395 if test "$silent" = yes; then
15396 ac_sub_configure_args
="--silent $ac_sub_configure_args"
15400 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
15402 # Do not complain, so a configure script can configure whichever
15403 # parts of a large source tree are present.
15404 test -d "$srcdir/$ac_dir" || continue
15406 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15407 echo "$as_me:$LINENO: $ac_msg" >&5
15411 -*) as_dir
=.
/$as_dir;;
15413 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15417 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15418 *) as_qdir
=$as_dir;;
15420 as_dirs
="'$as_qdir' $as_dirs"
15421 as_dir
=`$as_dirname -- "$as_dir" ||
15422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15423 X"$as_dir" : 'X\(//\)[^/]' \| \
15424 X"$as_dir" : 'X\(//\)$' \| \
15425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15431 /^X\(\/\/\)[^/].*/{
15444 test -d "$as_dir" && break
15446 test -z "$as_dirs" || eval "mkdir $as_dirs"
15447 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15448 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15449 { (exit 1); exit 1; }; }; }
15453 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15455 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15456 # A ".." for each directory in $ac_dir_suffix.
15457 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15458 case $ac_top_builddir_sub in
15459 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15460 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15463 ac_abs_top_builddir
=$ac_pwd
15464 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15465 # for backward compatibility:
15466 ac_top_builddir
=$ac_top_build_prefix
15469 .
) # We are building in place.
15471 ac_top_srcdir
=$ac_top_builddir_sub
15472 ac_abs_top_srcdir
=$ac_pwd ;;
15473 [\\/]* | ?
:[\\/]* ) # Absolute name.
15474 ac_srcdir
=$srcdir$ac_dir_suffix;
15475 ac_top_srcdir
=$srcdir
15476 ac_abs_top_srcdir
=$srcdir ;;
15477 *) # Relative name.
15478 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15479 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15480 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15482 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15487 # Check for guested configure; otherwise get Cygnus style configure.
15488 if test -f "$ac_srcdir/configure.gnu"; then
15489 ac_sub_configure
=$ac_srcdir/configure.gnu
15490 elif test -f "$ac_srcdir/configure"; then
15491 ac_sub_configure
=$ac_srcdir/configure
15492 elif test -f "$ac_srcdir/configure.in"; then
15493 # This should be Cygnus configure.
15494 ac_sub_configure
=$ac_aux_dir/configure
15496 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15497 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15501 # The recursion is here.
15502 if test -n "$ac_sub_configure"; then
15503 # Make the cache file name correct relative to the subdirectory.
15504 case $cache_file in
15505 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
15506 *) # Relative name.
15507 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
15510 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15511 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15512 # The eval makes quoting arguments work.
15513 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15514 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15515 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15516 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15517 { (exit 1); exit 1; }; }
15525 if test "$cf_openssl_version_ok" = yes; then
15531 if test "$shared_modules" = yes; then
15539 Install directory : $prefix
15543 IPv6 support : $have_v6
15544 Socket Engine : $SELECT_TYPE
15545 Small network : $small_net
15546 Block allocator : $balloc
15548 Nickname length : $NICKLEN
15549 Topic length : $TOPICLEN
15551 Use make to compile Charybdis, then make install to install it.