2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for charybdis 2.2.0.
5 # $Id: configure 3362 2007-04-03 09:49:11Z nenolod $
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
='2.2.0'
578 PACKAGE_STRING
='charybdis 2.2.0'
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
711 ac_precious_vars
='build_alias
724 # Initialize some variables set by options.
726 ac_init_version
=false
727 # The variables have the same names as the options, with
728 # dashes changed to underlines.
736 program_transform_name
=s
,x
,x
,
744 # Installation directory options.
745 # These are left unexpanded so users can "make install exec_prefix=/foo"
746 # and all the variables that are supposed to be based on exec_prefix
747 # by default will actually change.
748 # Use braces instead of parens because sh, perl, etc. also accept them.
749 # (The list follows the same order as the GNU Coding Standards.)
750 bindir
='${exec_prefix}/bin'
751 sbindir
='${exec_prefix}/sbin'
752 libexecdir
='${exec_prefix}/libexec'
753 datarootdir
='${prefix}/share'
754 datadir
='${datarootdir}'
755 sysconfdir
='${prefix}/etc'
756 sharedstatedir
='${prefix}/com'
757 localstatedir
='${prefix}/var'
758 includedir
='${prefix}/include'
759 oldincludedir
='/usr/include'
760 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
761 infodir
='${datarootdir}/info'
766 libdir
='${exec_prefix}/lib'
767 localedir
='${datarootdir}/locale'
768 mandir
='${datarootdir}/man'
774 # If the previous option needs an argument, assign it.
775 if test -n "$ac_prev"; then
776 eval $ac_prev=\
$ac_option
782 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786 # Accept the important Cygnus configure options, so we can diagnose typos.
788 case $ac_dashdash$ac_option in
792 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 -build | --build | --buil | --bui | --bu)
798 ac_prev
=build_alias
;;
799 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
800 build_alias
=$ac_optarg ;;
802 -cache-file | --cache-file | --cache-fil | --cache-fi \
803 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
804 ac_prev
=cache_file
;;
805 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
806 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
807 cache_file
=$ac_optarg ;;
810 cache_file
=config.cache
;;
812 -datadir | --datadir | --datadi | --datad)
814 -datadir=* | --datadir=* | --datadi=* | --datad=*)
815 datadir
=$ac_optarg ;;
817 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
818 | --dataroo | --dataro | --datar)
819 ac_prev
=datarootdir
;;
820 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
821 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
822 datarootdir
=$ac_optarg ;;
824 -disable-* | --disable-*)
825 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
826 # Reject names that are not valid shell variable names.
827 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
828 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
829 { (exit 1); exit 1; }; }
830 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
831 eval enable_
$ac_feature=no
;;
833 -docdir | --docdir | --docdi | --doc | --do)
835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 -enable-* | --enable-*)
844 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_
$ac_feature=\
$ac_optarg ;;
852 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
853 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
854 | --exec | --exe | --ex)
855 ac_prev
=exec_prefix
;;
856 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
857 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
858 | --exec=* | --exe=* | --ex=*)
859 exec_prefix
=$ac_optarg ;;
861 -gas | --gas | --ga | --g)
862 # Obsolete; use --with-gas.
865 -help | --help | --hel | --he | -h)
867 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
868 ac_init_help
=recursive
;;
869 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
870 ac_init_help
=short
;;
872 -host | --host | --hos | --ho)
873 ac_prev
=host_alias
;;
874 -host=* | --host=* | --hos=* | --ho=*)
875 host_alias
=$ac_optarg ;;
877 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 htmldir
=$ac_optarg ;;
883 -includedir | --includedir | --includedi | --included | --include \
884 | --includ | --inclu | --incl | --inc)
885 ac_prev
=includedir
;;
886 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
887 | --includ=* | --inclu=* | --incl=* | --inc=*)
888 includedir
=$ac_optarg ;;
890 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
893 infodir
=$ac_optarg ;;
895 -libdir | --libdir | --libdi | --libd)
897 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
901 | --libexe | --libex | --libe)
902 ac_prev
=libexecdir
;;
903 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
904 | --libexe=* | --libex=* | --libe=*)
905 libexecdir
=$ac_optarg ;;
907 -localedir | --localedir | --localedi | --localed | --locale)
909 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
910 localedir
=$ac_optarg ;;
912 -localstatedir | --localstatedir | --localstatedi | --localstated \
913 | --localstate | --localstat | --localsta | --localst | --locals)
914 ac_prev
=localstatedir
;;
915 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
916 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
917 localstatedir
=$ac_optarg ;;
919 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925 # Obsolete; use --without-fp.
928 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
929 | --no-cr | --no-c | -n)
932 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
933 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
937 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
938 | --oldin | --oldi | --old | --ol | --o)
939 ac_prev
=oldincludedir
;;
940 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
941 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
942 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
943 oldincludedir
=$ac_optarg ;;
945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 -program-prefix | --program-prefix | --program-prefi | --program-pref \
951 | --program-pre | --program-pr | --program-p)
952 ac_prev
=program_prefix
;;
953 -program-prefix=* | --program-prefix=* | --program-prefi=* \
954 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
955 program_prefix
=$ac_optarg ;;
957 -program-suffix | --program-suffix | --program-suffi | --program-suff \
958 | --program-suf | --program-su | --program-s)
959 ac_prev
=program_suffix
;;
960 -program-suffix=* | --program-suffix=* | --program-suffi=* \
961 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
962 program_suffix
=$ac_optarg ;;
964 -program-transform-name | --program-transform-name \
965 | --program-transform-nam | --program-transform-na \
966 | --program-transform-n | --program-transform- \
967 | --program-transform | --program-transfor \
968 | --program-transfo | --program-transf \
969 | --program-trans | --program-tran \
970 | --progr-tra | --program-tr | --program-t)
971 ac_prev
=program_transform_name
;;
972 -program-transform-name=* | --program-transform-name=* \
973 | --program-transform-nam=* | --program-transform-na=* \
974 | --program-transform-n=* | --program-transform-=* \
975 | --program-transform=* | --program-transfor=* \
976 | --program-transfo=* | --program-transf=* \
977 | --program-trans=* | --program-tran=* \
978 | --progr-tra=* | --program-tr=* | --program-t=*)
979 program_transform_name
=$ac_optarg ;;
981 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 -psdir | --psdir | --psdi | --psd | --ps)
988 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
992 | -silent | --silent | --silen | --sile | --sil)
995 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 sbindir
=$ac_optarg ;;
1001 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1002 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1003 | --sharedst | --shareds | --shared | --share | --shar \
1005 ac_prev
=sharedstatedir
;;
1006 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1007 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1008 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 sharedstatedir
=$ac_optarg ;;
1012 -site | --site | --sit)
1014 -site=* | --site=* | --sit=*)
1017 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1020 srcdir
=$ac_optarg ;;
1022 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1023 | --syscon | --sysco | --sysc | --sys | --sy)
1024 ac_prev
=sysconfdir
;;
1025 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1026 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1027 sysconfdir
=$ac_optarg ;;
1029 -target | --target | --targe | --targ | --tar | --ta | --t)
1030 ac_prev
=target_alias
;;
1031 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1032 target_alias
=$ac_optarg ;;
1034 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 -version | --version | --versio | --versi | --vers | -V)
1038 ac_init_version
=: ;;
1041 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1044 { echo "$as_me: error: invalid package name: $ac_package" >&2
1045 { (exit 1); exit 1; }; }
1046 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1047 eval with_
$ac_package=\
$ac_optarg ;;
1049 -without-* | --without-*)
1050 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1053 { echo "$as_me: error: invalid package name: $ac_package" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1056 eval with_
$ac_package=no
;;
1059 # Obsolete; use --with-x.
1062 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1063 | --x-incl | --x-inc | --x-in | --x-i)
1064 ac_prev
=x_includes
;;
1065 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1066 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1067 x_includes
=$ac_optarg ;;
1069 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1070 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1071 ac_prev
=x_libraries
;;
1072 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1073 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1074 x_libraries
=$ac_optarg ;;
1076 -*) { echo "$as_me: error: unrecognized option: $ac_option
1077 Try \`$0 --help' for more information." >&2
1078 { (exit 1); exit 1; }; }
1082 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1085 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1086 { (exit 1); exit 1; }; }
1087 eval $ac_envvar=\
$ac_optarg
1088 export $ac_envvar ;;
1091 # FIXME: should be removed in autoconf 3.0.
1092 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1093 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1094 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1095 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1101 if test -n "$ac_prev"; then
1102 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1103 { echo "$as_me: error: missing argument to $ac_option" >&2
1104 { (exit 1); exit 1; }; }
1107 # Be sure to have absolute directory names.
1108 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1109 datadir sysconfdir sharedstatedir localstatedir includedir \
1110 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1111 libdir localedir mandir
1113 eval ac_val
=\$
$ac_var
1115 [\\/$
]* | ?
:[\\/]* ) continue;;
1116 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1118 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1119 { (exit 1); exit 1; }; }
1122 # There might be people who depend on the old broken behavior: `$host'
1123 # used to hold the argument of --host etc.
1124 # FIXME: To remove some day.
1127 target
=$target_alias
1129 # FIXME: To remove some day.
1130 if test "x$host_alias" != x
; then
1131 if test "x$build_alias" = x
; then
1132 cross_compiling
=maybe
1133 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1134 If a cross compiler is detected then cross compile mode will be used." >&2
1135 elif test "x$build_alias" != "x$host_alias"; then
1141 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1143 test "$silent" = yes && exec 6>/dev
/null
1146 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1147 ac_ls_di
=`ls -di .` &&
1148 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1149 { echo "$as_me: error: Working directory cannot be determined" >&2
1150 { (exit 1); exit 1; }; }
1151 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1152 { echo "$as_me: error: pwd does not report name of working directory" >&2
1153 { (exit 1); exit 1; }; }
1156 # Find the source files, if location was not specified.
1157 if test -z "$srcdir"; then
1158 ac_srcdir_defaulted
=yes
1159 # Try the directory containing this script, then the parent directory.
1160 ac_confdir
=`$as_dirname -- "$0" ||
1161 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1162 X"$0" : 'X\(//\)[^/]' \| \
1163 X"$0" : 'X\(//\)$' \| \
1164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1188 ac_srcdir_defaulted
=no
1190 if test ! -r "$srcdir/$ac_unique_file"; then
1191 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1192 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1193 { (exit 1); exit 1; }; }
1195 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1198 { (exit 1); exit 1; }; }
1200 # When building in place, set srcdir=.
1201 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 # Remove unnecessary trailing slashes from srcdir.
1205 # Double slashes in file names in object file debugging info
1206 # mess up M-x gdb in Emacs.
1208 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 for ac_var
in $ac_precious_vars; do
1211 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1212 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1213 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1214 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1218 # Report the --help message.
1220 if test "$ac_init_help" = "long"; then
1221 # Omit some internal or obsolete options to make the list less imposing.
1222 # This message is too long to be a string in the A/UX 3.1 sh.
1224 \`configure' configures charybdis 2.2.0 to adapt to many kinds of systems.
1226 Usage: $0 [OPTION]... [VAR=VALUE]...
1228 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1229 VAR=VALUE. See below for descriptions of some of the useful variables.
1231 Defaults for the options are specified in brackets.
1234 -h, --help display this help and exit
1235 --help=short display options specific to this package
1236 --help=recursive display the short help of all the included packages
1237 -V, --version display version information and exit
1238 -q, --quiet, --silent do not print \`checking...' messages
1239 --cache-file=FILE cache test results in FILE [disabled]
1240 -C, --config-cache alias for \`--cache-file=config.cache'
1241 -n, --no-create do not create output files
1242 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244 Installation directories:
1245 --prefix=PREFIX install architecture-independent files in PREFIX
1246 [$ac_default_prefix]
1247 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 By default, \`make install' will install all the files in
1251 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1252 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1253 for instance \`--prefix=\$HOME'.
1255 For better control, use the options below.
1257 Fine tuning of the installation directories:
1258 --bindir=DIR user executables [EPREFIX/bin]
1259 --sbindir=DIR system admin executables [EPREFIX/sbin]
1260 --libexecdir=DIR program executables [EPREFIX/libexec]
1261 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1262 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1263 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1264 --libdir=DIR object code libraries [EPREFIX/lib]
1265 --includedir=DIR C header files [PREFIX/include]
1266 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1267 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1268 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1269 --infodir=DIR info documentation [DATAROOTDIR/info]
1270 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1271 --mandir=DIR man documentation [DATAROOTDIR/man]
1272 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1273 --htmldir=DIR html documentation [DOCDIR]
1274 --dvidir=DIR dvi documentation [DOCDIR]
1275 --pdfdir=DIR pdf documentation [DOCDIR]
1276 --psdir=DIR ps documentation [DOCDIR]
1283 if test -n "$ac_init_help"; then
1284 case $ac_init_help in
1285 short
| recursive
) echo "Configuration of charybdis 2.2.0:";;
1290 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1291 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1292 --enable-ipv6 Enable IPv6 support
1293 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1294 --disable-openssl Disable OpenSSL support.
1295 --disable-zlib Disable ziplinks support
1296 --enable-poll Force poll
() usage.
1297 --enable-select Force
select() usage.
1298 --enable-kqueue Force kqueue
() usage.
1299 --enable-devpoll Force usage of
/dev
/poll.
1300 --enable-epoll Force sys_epoll usage
(Linux only
).
1301 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1302 hard
(aborts the daemon
)
1303 --enable-iodebug Enable IO Debugging hooks
1304 --enable-profile Enable profiling
1305 --disable-balloc Disable the block allocator.
1306 --enable-small-net Enable small network support.
1307 --disable-shared-modules
1308 Disable shared modules.
1309 --enable-warnings Enable all sorts of warnings
for debugging.
1312 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1313 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1314 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1315 --with-confdir=DIR Directory to
install config files.
1316 --with-logdir=DIR Directory where to
write logfiles.
1317 --with-helpdir=DIR Directory to
install help files.
1318 --with-moduledir=DIR Directory to
install modules.
1319 --with-nicklen=LENGTH Set the nick length to LENGTH
(default
15, max
50)
1320 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1323 Some influential environment variables
:
1324 CC C compiler
command
1325 CFLAGS C compiler flags
1326 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1327 nonstandard directory
<lib dir
>
1328 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1329 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1330 you have headers
in a nonstandard directory
<include dir
>
1332 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1333 the first program found out of: `bison
-y', `byacc', `yacc'.
1334 YFLAGS The list of arguments that will be passed by default to $YACC.
1335 This script will default YFLAGS to the empty string to avoid a
1336 default value of `-d' given by some make applications.
1338 Use these variables to override the choices made by `configure' or to
help
1339 it to
find libraries and programs with nonstandard names
/locations.
1345 if test "$ac_init_help" = "recursive"; then
1346 # If there are subdirs, report their specific --help.
1347 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1348 test -d "$ac_dir" || continue
1352 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1354 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1355 # A ".." for each directory in $ac_dir_suffix.
1356 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1357 case $ac_top_builddir_sub in
1358 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1359 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1362 ac_abs_top_builddir
=$ac_pwd
1363 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1364 # for backward compatibility:
1365 ac_top_builddir
=$ac_top_build_prefix
1368 .
) # We are building in place.
1370 ac_top_srcdir
=$ac_top_builddir_sub
1371 ac_abs_top_srcdir
=$ac_pwd ;;
1372 [\\/]* | ?
:[\\/]* ) # Absolute name.
1373 ac_srcdir
=$srcdir$ac_dir_suffix;
1374 ac_top_srcdir
=$srcdir
1375 ac_abs_top_srcdir
=$srcdir ;;
1377 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1378 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1379 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1381 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1383 cd "$ac_dir" || { ac_status
=$?
; continue; }
1384 # Check for guested configure.
1385 if test -f "$ac_srcdir/configure.gnu"; then
1387 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1388 elif test -f "$ac_srcdir/configure"; then
1390 $SHELL "$ac_srcdir/configure" --help=recursive
1392 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1394 cd "$ac_pwd" || { ac_status
=$?
; break; }
1398 test -n "$ac_init_help" && exit $ac_status
1399 if $ac_init_version; then
1401 charybdis configure
2.2.0
1402 generated by GNU Autoconf
2.61
1404 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1405 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1406 This configure
script is free software
; the Free Software Foundation
1407 gives unlimited permission to copy
, distribute and modify it.
1409 $Id: configure
3362 2007-04-03 09:49:11Z nenolod $
1413 cat >config.log
<<_ACEOF
1414 This file contains any messages produced by compilers while
1415 running configure, to aid debugging if configure makes a mistake.
1417 It was created by charybdis $as_me 2.2.0, which was
1418 generated by GNU Autoconf 2.61. Invocation command line was
1430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1453 test -z "$as_dir" && as_dir
=.
1454 echo "PATH: $as_dir"
1470 # Keep a trace of the command line.
1471 # Strip out --no-create and --no-recursion so they do not pile up.
1472 # Strip out --silent because we don't want to record it for future runs.
1473 # Also quote any args containing shell meta-characters.
1474 # Make two passes to allow for proper duplicate-argument suppression.
1478 ac_must_keep_next
=false
1484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486 | -silent | --silent | --silen | --sile | --sil)
1489 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1492 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1494 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1495 if test $ac_must_keep_next = true
; then
1496 ac_must_keep_next
=false
# Got value, back to normal.
1499 *=* | --config-cache | -C | -disable-* | --disable-* \
1500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1502 | -with-* | --with-* | -without-* | --without-* | --x)
1503 case "$ac_configure_args0 " in
1504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1507 -* ) ac_must_keep_next
=true
;;
1510 ac_configure_args
="$ac_configure_args '$ac_arg'"
1515 $as_unset ac_configure_args0
|| test "${ac_configure_args0+set}" != set || { ac_configure_args0
=; export ac_configure_args0
; }
1516 $as_unset ac_configure_args1
|| test "${ac_configure_args1+set}" != set || { ac_configure_args1
=; export ac_configure_args1
; }
1518 # When interrupted or exit'd, cleanup temporary files, and complete
1519 # config.log. We remove comments because anyway the quotes in there
1520 # would cause problems or look ugly.
1521 # WARNING: Use '\'' to represent an apostrophe within the trap.
1522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1523 trap 'exit_status=$?
1524 # Save into config.log some information that might help in debugging.
1529 ## ---------------- ##
1530 ## Cache variables. ##
1531 ## ---------------- ##
1534 # The following way of writing the cache mishandles newlines in values,
1536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1537 eval ac_val=\$$ac_var
1541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1542 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1545 _ | IFS | as_nl) ;; #(
1546 *) $as_unset $ac_var ;;
1551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1552 *${as_nl}ac_space=\ *)
1554 "s/'\''/'\''\\\\'\'''\''/g;
1555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1566 ## ----------------- ##
1567 ## Output variables. ##
1568 ## ----------------- ##
1571 for ac_var in $ac_subst_vars
1573 eval ac_val=\$$ac_var
1575 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1577 echo "$ac_var='\''$ac_val'\''"
1581 if test -n "$ac_subst_files"; then
1583 ## ------------------- ##
1584 ## File substitutions. ##
1585 ## ------------------- ##
1588 for ac_var
in $ac_subst_files
1590 eval ac_val
=\$
$ac_var
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594 echo "$ac_var='\''$ac_val'\''"
1599 if test -s confdefs.h; then
1609 test "$ac_signal" != 0 &&
1610 echo "$as_me: caught signal $ac_signal"
1611 echo "$as_me: exit $exit_status"
1613 rm -f core *.core core.conftest.* &&
1614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1617 for ac_signal
in 1 2 13 15; do
1618 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1623 rm -f -r conftest
* confdefs.h
1625 # Predefined preprocessor variables.
1627 cat >>confdefs.h
<<_ACEOF
1628 #define PACKAGE_NAME "$PACKAGE_NAME"
1632 cat >>confdefs.h
<<_ACEOF
1633 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1637 cat >>confdefs.h
<<_ACEOF
1638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1642 cat >>confdefs.h
<<_ACEOF
1643 #define PACKAGE_STRING "$PACKAGE_STRING"
1647 cat >>confdefs.h
<<_ACEOF
1648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652 # Let the site file select an alternate cache file if it wants to.
1653 # Prefer explicitly selected file to automatically selected ones.
1654 if test -n "$CONFIG_SITE"; then
1655 set x
"$CONFIG_SITE"
1656 elif test "x$prefix" != xNONE
; then
1657 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1659 set x
"$ac_default_prefix/share/config.site" \
1660 "$ac_default_prefix/etc/config.site"
1665 if test -r "$ac_site_file"; then
1666 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1667 echo "$as_me: loading site script $ac_site_file" >&6;}
1668 sed 's/^/| /' "$ac_site_file" >&5
1673 if test -r "$cache_file"; then
1674 # Some versions of bash will fail to source /dev/null (special
1675 # files actually), so we avoid doing that.
1676 if test -f "$cache_file"; then
1677 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1678 echo "$as_me: loading cache $cache_file" >&6;}
1680 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1681 *) .
"./$cache_file";;
1685 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1686 echo "$as_me: creating cache $cache_file" >&6;}
1690 # Check that the precious variables saved in the cache have kept the same
1692 ac_cache_corrupted
=false
1693 for ac_var
in $ac_precious_vars; do
1694 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1695 eval ac_new_set
=\
$ac_env_${ac_var}_set
1696 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1697 eval ac_new_val
=\
$ac_env_${ac_var}_value
1698 case $ac_old_set,$ac_new_set in
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1702 ac_cache_corrupted
=: ;;
1704 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1706 ac_cache_corrupted
=: ;;
1709 if test "x$ac_old_val" != "x$ac_new_val"; then
1710 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1711 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1712 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1713 echo "$as_me: former value: $ac_old_val" >&2;}
1714 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1715 echo "$as_me: current value: $ac_new_val" >&2;}
1716 ac_cache_corrupted
=:
1719 # Pass precious variables to config.status.
1720 if test "$ac_new_set" = set; then
1722 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 *) ac_arg
=$ac_var=$ac_new_val ;;
1725 case " $ac_configure_args " in
1726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1727 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1731 if $ac_cache_corrupted; then
1732 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1733 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1734 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1735 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1736 { (exit 1); exit 1; }; }
1764 ac_cpp
='$CPP $CPPFLAGS'
1765 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1771 ac_config_headers
="$ac_config_headers include/setup.h"
1777 cat >>confdefs.h
<<\_ACEOF
1778 #define _GNU_SOURCE 1
1783 OLD_CFLAGS
="$CFLAGS"
1785 ac_cpp
='$CPP $CPPFLAGS'
1786 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1791 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
1792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC
="$CC" # Let the user override the test.
1800 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir
=.
1805 for ac_exec_ext
in '' $ac_executable_extensions; do
1806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1807 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 if test -n "$CC"; then
1819 { echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6; }
1822 { echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6; }
1828 if test -z "$ac_cv_prog_CC"; then
1830 # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc
; ac_word
=$2
1832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$ac_ct_CC"; then
1838 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
1840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir
=.
1845 for ac_exec_ext
in '' $ac_executable_extensions; do
1846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1847 ac_cv_prog_ac_ct_CC
="gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1857 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
1858 if test -n "$ac_ct_CC"; then
1859 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1860 echo "${ECHO_T}$ac_ct_CC" >&6; }
1862 { echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6; }
1866 if test "x$ac_ct_CC" = x
; then
1869 case $cross_compiling:$ac_tool_warned in
1871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1872 whose name does not start with the host triplet. If you think this
1873 configuration is useful to you, please write to autoconf@gnu.org." >&5
1874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1875 whose name does not start with the host triplet. If you think this
1876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1877 ac_tool_warned
=yes ;;
1885 if test -z "$CC"; then
1886 if test -n "$ac_tool_prefix"; then
1887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1888 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
1889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1891 if test "${ac_cv_prog_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 if test -n "$CC"; then
1895 ac_cv_prog_CC
="$CC" # Let the user override the test.
1897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1901 test -z "$as_dir" && as_dir
=.
1902 for ac_exec_ext
in '' $ac_executable_extensions; do
1903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1904 ac_cv_prog_CC
="${ac_tool_prefix}cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 if test -n "$CC"; then
1916 { echo "$as_me:$LINENO: result: $CC" >&5
1917 echo "${ECHO_T}$CC" >&6; }
1919 { echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6; }
1926 if test -z "$CC"; then
1927 # Extract the first word of "cc", so it can be a program name with args.
1928 set dummy cc
; ac_word
=$2
1929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1931 if test "${ac_cv_prog_CC+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1934 if test -n "$CC"; then
1935 ac_cv_prog_CC
="$CC" # Let the user override the test.
1938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1942 test -z "$as_dir" && as_dir
=.
1943 for ac_exec_ext
in '' $ac_executable_extensions; do
1944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1946 ac_prog_rejected
=yes
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957 if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy
$ac_cv_prog_CC
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1966 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
1972 if test -n "$CC"; then
1973 { echo "$as_me:$LINENO: result: $CC" >&5
1974 echo "${ECHO_T}$CC" >&6; }
1976 { echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6; }
1982 if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog
in cl.exe
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
1988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 if test -n "$CC"; then
1994 ac_cv_prog_CC
="$CC" # Let the user override the test.
1996 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2000 test -z "$as_dir" && as_dir
=.
2001 for ac_exec_ext
in '' $ac_executable_extensions; do
2002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2003 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2014 if test -n "$CC"; then
2015 { echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6; }
2018 { echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6; }
2023 test -n "$CC" && break
2026 if test -z "$CC"; then
2028 for ac_prog
in cl.exe
2030 # Extract the first word of "$ac_prog", so it can be a program name with args.
2031 set dummy
$ac_prog; ac_word
=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 if test -n "$ac_ct_CC"; then
2038 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2040 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2044 test -z "$as_dir" && as_dir
=.
2045 for ac_exec_ext
in '' $ac_executable_extensions; do
2046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2047 ac_cv_prog_ac_ct_CC
="$ac_prog"
2048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6; }
2062 { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2067 test -n "$ac_ct_CC" && break
2070 if test "x$ac_ct_CC" = x
; then
2073 case $cross_compiling:$ac_tool_warned in
2075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2076 whose name does not start with the host triplet. If you think this
2077 configuration is useful to you, please write to autoconf@gnu.org." >&5
2078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2079 whose name does not start with the host triplet. If you think this
2080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2081 ac_tool_warned
=yes ;;
2090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2091 See \`config.log' for more details." >&5
2092 echo "$as_me: error: no acceptable C compiler found in \$PATH
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2096 # Provide some information about the compiler.
2097 echo "$as_me:$LINENO: checking for C compiler version" >&5
2098 ac_compiler
=`set X $ac_compile; echo $2`
2099 { (ac_try
="$ac_compiler --version >&5"
2101 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2105 (eval "$ac_compiler --version >&5") 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (ac_try="$ac_compiler -v >&5"
2111 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2112 *) ac_try_echo
=$ac_try;;
2114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2115 (eval "$ac_compiler -v >&5") 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (ac_try
="$ac_compiler -V >&5"
2121 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2122 *) ac_try_echo=$ac_try;;
2124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2125 (eval "$ac_compiler -V >&5") 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2130 cat >conftest.$ac_ext <<_ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2145 ac_clean_files_save=$ac_clean_files
2146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2147 # Try to create an executable without -o first, disregard a.out.
2148 # It will help us diagnose broken compilers, and finding out an intuition
2150 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2151 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 # List of possible output files, starting from the most likely.
2155 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2156 # only as a last resort. b.out is created by i960 compilers.
2157 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2159 # The IRIX 6 linker writes into existing files which may not be
2160 # executable, retaining their permissions. Remove them first so a
2161 # subsequent execution test works.
2163 for ac_file in $ac_files
2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2167 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2172 if { (ac_try="$ac_link_default"
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2178 (eval "$ac_link_default") 2>&5
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; then
2182 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2183 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2184 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2185 # so that the user can short-circuit this test for compilers unknown to
2187 for ac_file
in $ac_files ''
2189 test -f "$ac_file" || continue
2191 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
)
2194 # We found the default executable, but exeext='' is most
2198 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2200 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2202 # We set ac_cv_exeext here because the later test for it is not
2203 # safe: cross compilers may not add the suffix if given an `-o'
2204 # argument, so we may need to know it at that point already.
2205 # Even if this section looks crufty: it has the advantage of
2212 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2218 { echo "$as_me:$LINENO: result: $ac_file" >&5
2219 echo "${ECHO_T}$ac_file" >&6; }
2220 if test -z "$ac_file"; then
2221 echo "$as_me: failed program was:" >&5
2222 sed 's/^/| /' conftest.
$ac_ext >&5
2224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2225 See \`config.log' for more details." >&5
2226 echo "$as_me: error: C compiler cannot create executables
2227 See \`config.log' for more details." >&2;}
2228 { (exit 77); exit 77; }; }
2231 ac_exeext
=$ac_cv_exeext
2233 # Check that the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2238 # If not cross compiling, check that we can run a simple program.
2239 if test "$cross_compiling" != yes; then
2240 if { ac_try
='./$ac_file'
2241 { (case "(($ac_try" in
2242 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2243 *) ac_try_echo=$ac_try;;
2245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2246 (eval "$ac_try") 2>&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2252 if test "$cross_compiling" = maybe; then
2255 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2256 If you meant to cross compile, use \`--host'.
2257 See \`config.log' for more details.
" >&5
2258 echo "$as_me: error
: cannot run C compiled programs.
2259 If you meant to cross compile
, use \
`--host'.
2260 See \`config.log
' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: yes" >&5
2266 echo "${ECHO_T}yes" >&6; }
2268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2269 ac_clean_files=$ac_clean_files_save
2270 # Check that the compiler produces executables we can run. If not, either
2271 # the compiler is broken, or we cross compile.
2272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2275 echo "${ECHO_T}$cross_compiling" >&6; }
2277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2279 if { (ac_try="$ac_link"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285 (eval "$ac_link") 2>&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); }; then
2289 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2290 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2291 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2293 for ac_file
in conftest.exe conftest conftest.
*; do
2294 test -f "$ac_file" || continue
2296 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.o
| *.obj
) ;;
2297 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2310 rm -f conftest
$ac_cv_exeext
2311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2314 rm -f conftest.
$ac_ext
2315 EXEEXT
=$ac_cv_exeext
2317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2319 if test "${ac_cv_objext+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 cat >conftest.
$ac_ext <<_ACEOF
2325 cat confdefs.h
>>conftest.
$ac_ext
2326 cat >>conftest.
$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2337 rm -f conftest.o conftest.obj
2338 if { (ac_try
="$ac_compile"
2340 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compile") 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }; then
2348 for ac_file in conftest.o conftest.obj conftest.*; do
2349 test -f "$ac_file" || continue;
2351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2357 echo "$as_me: failed program was:" >&5
2358 sed 's/^/| /' conftest.$ac_ext >&5
2360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2361 See \`config.log
' for more details." >&5
2362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2363 See \`config.log' for more details.
" >&2;}
2364 { (exit 1); exit 1; }; }
2367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2369 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2370 echo "${ECHO_T}$ac_cv_objext" >&6; }
2371 OBJEXT=$ac_cv_objext
2373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2374 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2376 echo $ECHO_N "(cached
) $ECHO_C" >&6
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2396 rm -f conftest.$ac_objext
2397 if { (ac_try="$ac_compile"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_compile") 2>conftest.er1
2405 grep -v '^ *+' conftest.er1 >conftest.err
2407 cat conftest.err >&5
2408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2409 (exit $ac_status); } && {
2410 test -z "$ac_c_werror_flag" ||
2411 test ! -s conftest.err
2412 } && test -s conftest.$ac_objext; then
2415 echo "$as_me: failed program was
:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2425 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
2426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2427 GCC=`test $ac_compiler_gnu = yes && echo yes`
2428 ac_test_CFLAGS=${CFLAGS+set}
2429 ac_save_CFLAGS=$CFLAGS
2430 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
2431 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
2432 if test "${ac_cv_prog_cc_g+set}" = set; then
2433 echo $ECHO_N "(cached
) $ECHO_C" >&6
2435 ac_save_c_werror_flag=$ac_c_werror_flag
2436 ac_c_werror_flag=yes
2439 cat >conftest.$ac_ext <<_ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h. */
2454 rm -f conftest.$ac_objext
2455 if { (ac_try="$ac_compile"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_compile") 2>conftest.er1
2463 grep -v '^ *+' conftest.er1 >conftest.err
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2467 (exit $ac_status); } && {
2468 test -z "$ac_c_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest.$ac_objext; then
2473 echo "$as_me: failed program was
:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2477 cat >conftest.$ac_ext <<_ACEOF
2480 cat confdefs.h >>conftest.$ac_ext
2481 cat >>conftest.$ac_ext <<_ACEOF
2482 /* end confdefs.h. */
2492 rm -f conftest.$ac_objext
2493 if { (ac_try="$ac_compile"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2499 (eval "$ac_compile") 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2505 (exit $ac_status); } && {
2506 test -z "$ac_c_werror_flag" ||
2507 test ! -s conftest.err
2508 } && test -s conftest.$ac_objext; then
2511 echo "$as_me: failed program was
:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 ac_c_werror_flag=$ac_save_c_werror_flag
2516 cat >conftest.$ac_ext <<_ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.$ac_objext
2532 if { (ac_try="$ac_compile"
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_compile") 2>conftest.er1
2540 grep -v '^ *+' conftest.er1 >conftest.err
2542 cat conftest.err >&5
2543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2544 (exit $ac_status); } && {
2545 test -z "$ac_c_werror_flag" ||
2546 test ! -s conftest.err
2547 } && test -s conftest.$ac_objext; then
2550 echo "$as_me: failed program was
:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563 ac_c_werror_flag=$ac_save_c_werror_flag
2565 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
2566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2567 if test "$ac_test_CFLAGS" = set; then
2568 CFLAGS=$ac_save_CFLAGS
2569 elif test $ac_cv_prog_cc_g = yes; then
2570 if test "$GCC" = yes; then
2576 if test "$GCC" = yes; then
2582 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
2583 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
2584 if test "${ac_cv_prog_cc_c89+set}" = set; then
2585 echo $ECHO_N "(cached
) $ECHO_C" >&6
2587 ac_cv_prog_cc_c89=no
2589 cat >conftest.$ac_ext <<_ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2597 #include <sys/types.h>
2598 #include <sys/stat.h>
2599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2600 struct buf { int x; };
2601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2602 static char *e (p, i)
2608 static char *f (char * (*g) (char **, int), char **p, ...)
2613 s = g (p, va_arg (v,int));
2618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2619 function prototypes and stuff, but not '\xHH' hex character constants.
2620 These don't provoke an error unfortunately, instead are silently treated
2621 as 'x'. The following induces an error, until -std is added to get
2622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2623 array size at least. It's necessary to write '\x00'==0 to get something
2624 that's true only with -std. */
2625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2628 inside strings and character constants. */
2630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2632 int test (int i, double x);
2633 struct s1 {int (*f) (int a);};
2634 struct s2 {int (*f) (double a);};
2635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2649 CC="$ac_save_CC $ac_arg"
2650 rm -f conftest.$ac_objext
2651 if { (ac_try="$ac_compile"
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compile") 2>conftest.er1
2659 grep -v '^ *+' conftest.er1 >conftest.err
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2663 (exit $ac_status); } && {
2664 test -z "$ac_c_werror_flag" ||
2665 test ! -s conftest.err
2666 } && test -s conftest.$ac_objext; then
2667 ac_cv_prog_cc_c89=$ac_arg
2669 echo "$as_me: failed program was
:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2675 rm -f core conftest.err conftest.$ac_objext
2676 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
2678 rm -f conftest.$ac_ext
2683 case "x
$ac_cv_prog_cc_c89" in
2685 { echo "$as_me:$LINENO: result
: none needed
" >&5
2686 echo "${ECHO_T}none needed
" >&6; } ;;
2688 { echo "$as_me:$LINENO: result
: unsupported
" >&5
2689 echo "${ECHO_T}unsupported
" >&6; } ;;
2691 CC="$CC $ac_cv_prog_cc_c89"
2692 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
2693 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2698 ac_cpp='$CPP $CPPFLAGS'
2699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710 CFLAGS="$OLD_CFLAGS"
2713 if test "$ac_cv_c_compiler_gnu" != yes; then
2716 { echo "$as_me:$LINENO: checking
$CC -version for TenDRA or MIPSpro
" >&5
2717 echo $ECHO_N "checking
$CC -version for TenDRA or MIPSpro...
$ECHO_C" >&6; }
2718 case `$CC -version 2>&1` in
2720 { echo "$as_me:$LINENO: result
: yes, TenDRA
" >&5
2721 echo "${ECHO_T}yes, TenDRA
" >&6; }
2723 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr
/include
"
2728 { echo "$as_me:$LINENO: result
: yes, MIPSpro
" >&5
2729 echo "${ECHO_T}yes, MIPSpro
" >&6; }
2734 { echo "$as_me:$LINENO: result
: no
" >&5
2735 echo "${ECHO_T}no
" >&6; }
2741 { echo "$as_me:$LINENO: checking
$CC -V for Sun Workshop
, Forte
, HPUX or Tru64 cc
" >&5
2742 echo $ECHO_N "checking
$CC -V for Sun Workshop
, Forte
, HPUX or Tru64 cc...
$ECHO_C" >&6; }
2743 case `$CC -V 2>&1` in
2744 *Sun*WorkShop* | *Forte*Developer*)
2745 { echo "$as_me:$LINENO: result
: Sun Workshop
/Forte
" >&5
2746 echo "${ECHO_T}Sun Workshop
/Forte
" >&6; }
2747 IRC_CFLAGS="-fast -xinline=dlinkAdd
,dlinkAddBefore
,dlinkAddTail
,dlinkDelete
,dlink_list_length
,dlink_node
,dlinkMoveList
,_MyMalloc
,_MyRealloc
,_MyFree
,_DupString
"
2752 { echo "$as_me:$LINENO: result
: Tru64 cc
" >&5
2753 echo "${ECHO_T}Tru64 cc
" >&6; }
2755 CPPFLAGS="-I/usr
/local
/include
"
2759 { echo "$as_me:$LINENO: result
: HPUX cc
" >&5
2760 echo "${ECHO_T}HPUX cc
" >&6; }
2765 { echo "$as_me:$LINENO: result
: no
" >&5
2766 echo "${ECHO_T}no
" >&6; }
2772 { echo "$as_me:$LINENO: checking uname
-s for Cygwin
, Solaris
, AIX or HPUX
" >&5
2773 echo $ECHO_N "checking uname
-s for Cygwin
, Solaris
, AIX or HPUX...
$ECHO_C" >&6; }
2778 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2779 { echo "$as_me:$LINENO: result
: assuming old HPUX with its own cc
" >&5
2780 echo "${ECHO_T}assuming old HPUX with its own cc
" >&6; }
2781 IRC_CFLAGS="$IRC_CFLAGS +e
"
2784 { echo "$as_me:$LINENO: result
: already using newer HPUX
" >&5
2785 echo "${ECHO_T}already using newer HPUX
" >&6; }
2789 { echo "$as_me:$LINENO: result
: Cygwin
" >&5
2790 echo "${ECHO_T}Cygwin
" >&6; }
2794 { echo "$as_me:$LINENO: result
: SunOS or Solaris
" >&5
2795 echo "${ECHO_T}SunOS or Solaris
" >&6; }
2797 cat >>confdefs.h <<\_ACEOF
2798 #define __EXTENSIONS__ 1
2804 { echo "$as_me:$LINENO: result
: AIX
- Sorry you poor bastard..really we are
" >&5
2805 echo "${ECHO_T}AIX
- Sorry you poor bastard..really we are
" >&6; }
2806 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2809 { echo "$as_me:$LINENO: result
: no
" >&5
2810 echo "${ECHO_T}no
" >&6; }
2814 if test "$ac_cv_c_compiler_gnu" = yes; then
2815 { echo "$as_me:$LINENO: checking
if $CC is Apple GCC
" >&5
2816 echo $ECHO_N "checking
if $CC is Apple GCC...
$ECHO_C" >&6; }
2818 case `$CC -v 2>&1 | tail -n 1` in
2820 { echo "$as_me:$LINENO: result
: yes" >&5
2821 echo "${ECHO_T}yes" >&6; }
2825 { echo "$as_me:$LINENO: result
: no
" >&5
2826 echo "${ECHO_T}no
" >&6; }
2831 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
2834 if test "$ac_cv_prog_cc_g" = yes; then
2835 if test "$Tru" = yes; then
2836 IRC_CFLAGS="$IRC_CFLAGS -g3"
2838 IRC_CFLAGS="$IRC_CFLAGS -g"
2842 { echo "$as_me:$LINENO: checking
if $CC supports the SVR4 SGS interfaces
" >&5
2843 echo $ECHO_N "checking
if $CC supports the SVR4 SGS interfaces...
$ECHO_C" >&6; }
2844 if test "$SGS" = "yes"; then
2845 { echo "$as_me:$LINENO: result
: yes" >&5
2846 echo "${ECHO_T}yes" >&6; }
2848 { echo "$as_me:$LINENO: result
: no
" >&5
2849 echo "${ECHO_T}no
" >&6; }
2852 # Extract the first word of "mkdep
", so it can be a program name with args.
2853 set dummy mkdep; ac_word=$2
2854 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2855 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2856 if test "${ac_cv_path_MKDEP+set}" = set; then
2857 echo $ECHO_N "(cached
) $ECHO_C" >&6
2861 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2871 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2872 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2882 MKDEP=$ac_cv_path_MKDEP
2883 if test -n "$MKDEP"; then
2884 { echo "$as_me:$LINENO: result
: $MKDEP" >&5
2885 echo "${ECHO_T}$MKDEP" >&6; }
2887 { echo "$as_me:$LINENO: result
: no
" >&5
2888 echo "${ECHO_T}no
" >&6; }
2892 # Extract the first word of "makedepend
", so it can be a program name with args.
2893 set dummy makedepend; ac_word=$2
2894 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
2895 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
2896 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2897 echo $ECHO_N "(cached
) $ECHO_C" >&6
2901 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2911 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2912 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2922 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2923 if test -n "$MAKEDEPEND"; then
2924 { echo "$as_me:$LINENO: result
: $MAKEDEPEND" >&5
2925 echo "${ECHO_T}$MAKEDEPEND" >&6; }
2927 { echo "$as_me:$LINENO: result
: no
" >&5
2928 echo "${ECHO_T}no
" >&6; }
2933 { echo "$as_me:$LINENO: checking how to generate dependency info
" >&5
2934 echo $ECHO_N "checking how to generate dependency info...
$ECHO_C" >&6; }
2938 if test "$ac_cv_c_compiler_gnu" = yes; then
2939 { echo "$as_me:$LINENO: result
: gcc
-MM" >&5
2940 echo "${ECHO_T}gcc
-MM" >&6; }
2942 elif test ! -z "$MKDEP"; then
2943 { echo "$as_me:$LINENO: result
: mkdep
" >&5
2944 echo "${ECHO_T}mkdep
" >&6; }
2946 if test -z "$Tru"; then
2949 STDOUT=" 2> /dev
/null
"
2951 elif test "$SunWorkShop" = yes; then
2952 { echo "$as_me:$LINENO: result
: $CC -xM" >&5
2953 echo "${ECHO_T}$CC -xM" >&6; }
2955 STDOUT="> .depend
2> /dev
/null
"
2956 elif test ! -z "$MAKEDEPEND"; then
2957 { echo "$as_me:$LINENO: result
: makedepend
" >&5
2958 echo "${ECHO_T}makedepend
" >&6; }
2959 MKDEP="$MAKEDEPEND -f-"
2961 { echo "$as_me:$LINENO: result
: nothing suitable.. forget it
!" >&5
2962 echo "${ECHO_T}nothing suitable.. forget it
!" >&6; }
2969 { echo "$as_me:$LINENO: checking
for /dev
/null
" >&5
2970 echo $ECHO_N "checking
for /dev
/null...
$ECHO_C" >&6; }
2971 if test -c /dev/null ; then
2973 cat >>confdefs.h <<\_ACEOF
2974 #define PATH_DEVNULL "/dev
/null
"
2977 { echo "$as_me:$LINENO: result
: yes" >&5
2978 echo "${ECHO_T}yes" >&6; }
2981 cat >>confdefs.h <<\_ACEOF
2982 #define PATH_DEVNULL "devnull.log
"
2985 { echo "$as_me:$LINENO: result
: no
- using devnull.log
" >&5
2986 echo "${ECHO_T}no
- using devnull.log
" >&6; }
2989 if test ! -z "$CFLAGS"; then
2990 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
2994 { echo "$as_me:$LINENO: checking
for library containing strerror
" >&5
2995 echo $ECHO_N "checking
for library containing strerror...
$ECHO_C" >&6; }
2996 if test "${ac_cv_search_strerror+set}" = set; then
2997 echo $ECHO_N "(cached
) $ECHO_C" >&6
2999 ac_func_search_save_LIBS=$LIBS
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3007 /* Override any GCC internal prototype to avoid an error.
3008 Use char because int might match the return type of a GCC
3009 builtin and then its argument prototype would still apply. */
3022 for ac_lib in '' cposix; do
3023 if test -z "$ac_lib"; then
3024 ac_res="none required
"
3027 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3029 rm -f conftest.$ac_objext conftest$ac_exeext
3030 if { (ac_try="$ac_link"
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_link") 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3042 (exit $ac_status); } && {
3043 test -z "$ac_c_werror_flag" ||
3044 test ! -s conftest.err
3045 } && test -s conftest$ac_exeext &&
3046 $as_test_x conftest$ac_exeext; then
3047 ac_cv_search_strerror=$ac_res
3049 echo "$as_me: failed program was
:" >&5
3050 sed 's/^/| /' conftest.$ac_ext >&5
3055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3057 if test "${ac_cv_search_strerror+set}" = set; then
3061 if test "${ac_cv_search_strerror+set}" = set; then
3064 ac_cv_search_strerror=no
3067 LIBS=$ac_func_search_save_LIBS
3069 { echo "$as_me:$LINENO: result
: $ac_cv_search_strerror" >&5
3070 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3071 ac_res=$ac_cv_search_strerror
3072 if test "$ac_res" != no; then
3073 test "$ac_res" = "none required
" || LIBS="$ac_res $LIBS"
3077 { echo "$as_me:$LINENO: checking
for inline
" >&5
3078 echo $ECHO_N "checking
for inline...
$ECHO_C" >&6; }
3079 if test "${ac_cv_c_inline+set}" = set; then
3080 echo $ECHO_N "(cached
) $ECHO_C" >&6
3083 for ac_kw in inline __inline__ __inline; do
3084 cat >conftest.$ac_ext <<_ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3092 static $ac_kw foo_t static_foo () {return 0; }
3093 $ac_kw foo_t foo () {return 0; }
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3114 ac_cv_c_inline=$ac_kw
3116 echo "$as_me: failed program was
:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3123 test "$ac_cv_c_inline" != no && break
3127 { echo "$as_me:$LINENO: result
: $ac_cv_c_inline" >&5
3128 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3131 case $ac_cv_c_inline in
3134 case $ac_cv_c_inline in
3136 *) ac_val=$ac_cv_c_inline;;
3138 cat >>confdefs.h <<_ACEOF
3140 #define inline $ac_val
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3152 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3153 # On Suns, sometimes $CPP names a directory.
3154 if test -n "$CPP" && test -d "$CPP"; then
3157 if test -z "$CPP"; then
3158 if test "${ac_cv_prog_CPP+set}" = set; then
3159 echo $ECHO_N "(cached
) $ECHO_C" >&6
3161 # Double quotes because CPP needs to be expanded
3162 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3165 for ac_c_preproc_warn_flag in '' yes
3167 # Use a header file that comes with gcc, so configuring glibc
3168 # with a fresh cross-compiler works.
3169 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3170 # <limits.h> exists even on freestanding compilers.
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp. "Syntax error
" is here to catch this case.
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3180 # include <limits.h>
3182 # include <assert.h>
3186 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3192 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3194 grep -v '^ *+' conftest.er1 >conftest.err
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3198 (exit $ac_status); } >/dev/null && {
3199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3204 echo "$as_me: failed program was
:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 # Broken: fails on valid input.
3211 rm -f conftest.err conftest.$ac_ext
3213 # OK, works on sane cases. Now check whether nonexistent headers
3214 # can be detected and how.
3215 cat >conftest.$ac_ext <<_ACEOF
3218 cat confdefs.h >>conftest.$ac_ext
3219 cat >>conftest.$ac_ext <<_ACEOF
3220 /* end confdefs.h. */
3221 #include <ac_nonexistent.h>
3223 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3229 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3231 grep -v '^ *+' conftest.er1 >conftest.err
3233 cat conftest.err >&5
3234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3235 (exit $ac_status); } >/dev/null && {
3236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3239 # Broken: success on invalid input.
3242 echo "$as_me: failed program was
:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 # Passes both tests.
3250 rm -f conftest.err conftest.$ac_ext
3253 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3254 rm -f conftest.err conftest.$ac_ext
3255 if $ac_preproc_ok; then
3267 { echo "$as_me:$LINENO: result
: $CPP" >&5
3268 echo "${ECHO_T}$CPP" >&6; }
3270 for ac_c_preproc_warn_flag in '' yes
3272 # Use a header file that comes with gcc, so configuring glibc
3273 # with a fresh cross-compiler works.
3274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275 # <limits.h> exists even on freestanding compilers.
3276 # On the NeXT, cc -E runs the code through the compiler's parser,
3277 # not just through cpp. "Syntax error
" is here to catch this case.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3285 # include <limits.h>
3287 # include <assert.h>
3291 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3297 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3299 grep -v '^ *+' conftest.er1 >conftest.err
3301 cat conftest.err >&5
3302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3303 (exit $ac_status); } >/dev/null && {
3304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3305 test ! -s conftest.err
3309 echo "$as_me: failed program was
:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 # Broken: fails on valid input.
3316 rm -f conftest.err conftest.$ac_ext
3318 # OK, works on sane cases. Now check whether nonexistent headers
3319 # can be detected and how.
3320 cat >conftest.$ac_ext <<_ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h. */
3326 #include <ac_nonexistent.h>
3328 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3336 grep -v '^ *+' conftest.er1 >conftest.err
3338 cat conftest.err >&5
3339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3340 (exit $ac_status); } >/dev/null && {
3341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3342 test ! -s conftest.err
3344 # Broken: success on invalid input.
3347 echo "$as_me: failed program was
:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3350 # Passes both tests.
3355 rm -f conftest.err conftest.$ac_ext
3358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3359 rm -f conftest.err conftest.$ac_ext
3360 if $ac_preproc_ok; then
3363 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3364 See \
`config.log' for more details." >&5
3365 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3366 See \`config.log
' for more details." >&2;}
3367 { (exit 1); exit 1; }; }
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3373 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3378 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3379 if test "${ac_cv_path_GREP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 # Extract the first word of "grep ggrep" to use in msg output
3383 if test -z "$GREP"; then
3384 set dummy grep ggrep; ac_prog_name=$2
3385 if test "${ac_cv_path_GREP+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 ac_path_GREP_found=false
3389 # Loop through the user's path and
test for each of PROGNAME
-LIST
3390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3391 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3394 test -z "$as_dir" && as_dir
=.
3395 for ac_prog
in grep ggrep
; do
3396 for ac_exec_ext
in '' $ac_executable_extensions; do
3397 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3398 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3399 # Check for GNU ac_path_GREP and select it if it is found.
3400 # Check for GNU $ac_path_GREP
3401 case `"$ac_path_GREP" --version 2>&1` in
3403 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3406 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3409 cat "conftest.in" "conftest.in" >"conftest.tmp"
3410 mv "conftest.tmp" "conftest.in"
3411 cp "conftest.in" "conftest.nl"
3412 echo 'GREP' >> "conftest.nl"
3413 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3414 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3415 ac_count
=`expr $ac_count + 1`
3416 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3417 # Best one so far, save it but keep looking for a better one
3418 ac_cv_path_GREP
="$ac_path_GREP"
3419 ac_path_GREP_max
=$ac_count
3421 # 10*(2^10) chars as input seems more than enough
3422 test $ac_count -gt 10 && break
3424 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3428 $ac_path_GREP_found && break 3
3438 GREP
="$ac_cv_path_GREP"
3439 if test -z "$GREP"; then
3440 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3441 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3442 { (exit 1); exit 1; }; }
3446 ac_cv_path_GREP
=$GREP
3451 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3452 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3453 GREP
="$ac_cv_path_GREP"
3456 { echo "$as_me:$LINENO: checking for egrep" >&5
3457 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3458 if test "${ac_cv_path_EGREP+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3462 then ac_cv_path_EGREP
="$GREP -E"
3464 # Extract the first word of "egrep" to use in msg output
3465 if test -z "$EGREP"; then
3466 set dummy
egrep; ac_prog_name
=$2
3467 if test "${ac_cv_path_EGREP+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 ac_path_EGREP_found
=false
3471 # Loop through the user's path and test for each of PROGNAME-LIST
3472 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3473 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3476 test -z "$as_dir" && as_dir
=.
3477 for ac_prog
in egrep; do
3478 for ac_exec_ext
in '' $ac_executable_extensions; do
3479 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3480 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3481 # Check for GNU ac_path_EGREP and select it if it is found.
3482 # Check for GNU $ac_path_EGREP
3483 case `"$ac_path_EGREP" --version 2>&1` in
3485 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3488 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3491 cat "conftest.in" "conftest.in" >"conftest.tmp"
3492 mv "conftest.tmp" "conftest.in"
3493 cp "conftest.in" "conftest.nl"
3494 echo 'EGREP' >> "conftest.nl"
3495 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3496 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3497 ac_count
=`expr $ac_count + 1`
3498 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3499 # Best one so far, save it but keep looking for a better one
3500 ac_cv_path_EGREP
="$ac_path_EGREP"
3501 ac_path_EGREP_max
=$ac_count
3503 # 10*(2^10) chars as input seems more than enough
3504 test $ac_count -gt 10 && break
3506 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3510 $ac_path_EGREP_found && break 3
3520 EGREP
="$ac_cv_path_EGREP"
3521 if test -z "$EGREP"; then
3522 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3523 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3524 { (exit 1); exit 1; }; }
3528 ac_cv_path_EGREP
=$EGREP
3534 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3535 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3536 EGREP
="$ac_cv_path_EGREP"
3539 if test $ac_cv_c_compiler_gnu = yes; then
3540 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3541 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3542 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 ac_pattern
="Autoconf.*'x'"
3546 cat >conftest.
$ac_ext <<_ACEOF
3549 cat confdefs.h
>>conftest.
$ac_ext
3550 cat >>conftest.
$ac_ext <<_ACEOF
3551 /* end confdefs.h. */
3555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3556 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3557 ac_cv_prog_gcc_traditional
=yes
3559 ac_cv_prog_gcc_traditional
=no
3564 if test $ac_cv_prog_gcc_traditional = no
; then
3565 cat >conftest.
$ac_ext <<_ACEOF
3568 cat confdefs.h
>>conftest.
$ac_ext
3569 cat >>conftest.
$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3575 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3576 ac_cv_prog_gcc_traditional
=yes
3582 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3583 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3584 if test $ac_cv_prog_gcc_traditional = yes; then
3585 CC
="$CC -traditional"
3589 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3590 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3591 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3592 if { as_var
=ac_cv_prog_make_
${ac_make}_set
; eval "test \"\${$as_var+set}\" = set"; }; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 cat >conftest.
make <<\_ACEOF
3598 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3600 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3601 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3603 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3605 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3609 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3610 { echo "$as_me:$LINENO: result: yes" >&5
3611 echo "${ECHO_T}yes" >&6; }
3614 { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3616 SET_MAKE
="MAKE=${MAKE-make}"
3620 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3621 if test -f "$ac_dir/install-sh"; then
3623 ac_install_sh
="$ac_aux_dir/install-sh -c"
3625 elif test -f "$ac_dir/install.sh"; then
3627 ac_install_sh
="$ac_aux_dir/install.sh -c"
3629 elif test -f "$ac_dir/shtool"; then
3631 ac_install_sh
="$ac_aux_dir/shtool install -c"
3635 if test -z "$ac_aux_dir"; then
3636 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3637 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3638 { (exit 1); exit 1; }; }
3641 # These three variables are undocumented and unsupported,
3642 # and are intended to be withdrawn in a future Autoconf release.
3643 # They can cause serious problems if a builder's source tree is in a directory
3644 # whose full name contains unusual characters.
3645 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3646 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3647 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3650 # Find a good install program. We prefer a C program (faster),
3651 # so one script is as good as another. But avoid the broken or
3652 # incompatible versions:
3653 # SysV /etc/install, /usr/sbin/install
3654 # SunOS /usr/etc/install
3655 # IRIX /sbin/install
3657 # AmigaOS /C/install, which installs bootblocks on floppy discs
3658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3661 # OS/2's system install, which has a completely different semantic
3662 # ./install, which can be erroneously created by make from ./install.sh.
3663 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3664 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3665 if test -z "$INSTALL"; then
3666 if test "${ac_cv_path_install+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3673 test -z "$as_dir" && as_dir
=.
3674 # Account for people who put trailing slashes in PATH elements.
3676 .
/ | .
// | /cC
/* | \
3677 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3678 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3681 # OSF1 and SCO ODT 3.0 have their own names for install.
3682 # Don't use installbsd from OSF since it installs stuff as root
3684 for ac_prog
in ginstall scoinst
install; do
3685 for ac_exec_ext
in '' $ac_executable_extensions; do
3686 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3687 if test $ac_prog = install &&
3688 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3689 # AIX install. It has an incompatible calling convention.
3691 elif test $ac_prog = install &&
3692 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3693 # program-specific install script used by HP pwplus--don't use.
3696 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3709 if test "${ac_cv_path_install+set}" = set; then
3710 INSTALL
=$ac_cv_path_install
3712 # As a last resort, use the slow shell script. Don't cache a
3713 # value for INSTALL within a source directory, because that will
3714 # break other packages using the cache if that directory is
3715 # removed, or if the value is a relative name.
3716 INSTALL
=$ac_install_sh
3719 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3720 echo "${ECHO_T}$INSTALL" >&6; }
3722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3723 # It thinks the first close brace ends the variable substitution.
3724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3728 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3730 # Extract the first word of "rm", so it can be a program name with args.
3731 set dummy
rm; ac_word
=$2
3732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3734 if test "${ac_cv_path_RM+set}" = set; then
3735 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
3742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3746 test -z "$as_dir" && as_dir
=.
3747 for ac_exec_ext
in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
3750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3761 if test -n "$RM"; then
3762 { echo "$as_me:$LINENO: result: $RM" >&5
3763 echo "${ECHO_T}$RM" >&6; }
3765 { echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6; }
3770 # Extract the first word of "cp", so it can be a program name with args.
3771 set dummy
cp; ac_word
=$2
3772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3774 if test "${ac_cv_path_CP+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
3782 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 test -z "$as_dir" && as_dir
=.
3787 for ac_exec_ext
in '' $ac_executable_extensions; do
3788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3789 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
3790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 if test -n "$CP"; then
3802 { echo "$as_me:$LINENO: result: $CP" >&5
3803 echo "${ECHO_T}$CP" >&6; }
3805 { echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6; }
3810 # Extract the first word of "mv", so it can be a program name with args.
3811 set dummy
mv; ac_word
=$2
3812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3814 if test "${ac_cv_path_MV+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
3822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir
=.
3827 for ac_exec_ext
in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 if test -n "$MV"; then
3842 { echo "$as_me:$LINENO: result: $MV" >&5
3843 echo "${ECHO_T}$MV" >&6; }
3845 { echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6; }
3850 # Extract the first word of "ln", so it can be a program name with args.
3851 set dummy
ln; ac_word
=$2
3852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3854 if test "${ac_cv_path_LN+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3859 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
3862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir
=.
3867 for ac_exec_ext
in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
3870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 if test -n "$LN"; then
3882 { echo "$as_me:$LINENO: result: $LN" >&5
3883 echo "${ECHO_T}$LN" >&6; }
3885 { echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6; }
3890 # Extract the first word of "sed", so it can be a program name with args.
3891 set dummy
sed; ac_word
=$2
3892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3894 if test "${ac_cv_path_SED+set}" = set; then
3895 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 test -z "$as_dir" && as_dir
=.
3907 for ac_exec_ext
in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
3910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 if test -n "$SED"; then
3922 { echo "$as_me:$LINENO: result: $SED" >&5
3923 echo "${ECHO_T}$SED" >&6; }
3925 { echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6; }
3930 # Extract the first word of "ar", so it can be a program name with args.
3931 set dummy
ar; ac_word
=$2
3932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3934 if test "${ac_cv_path_AR+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 ac_cv_path_AR
="$AR" # Let the user override the test with a path.
3942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3946 test -z "$as_dir" && as_dir
=.
3947 for ac_exec_ext
in '' $ac_executable_extensions; do
3948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3949 ac_cv_path_AR
="$as_dir/$ac_word$ac_exec_ext"
3950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 if test -n "$AR"; then
3962 { echo "$as_me:$LINENO: result: $AR" >&5
3963 echo "${ECHO_T}$AR" >&6; }
3965 { echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6; }
3970 # Extract the first word of "ld", so it can be a program name with args.
3971 set dummy ld
; ac_word
=$2
3972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_LD+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
3982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir
=.
3987 for ac_exec_ext
in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 if test -n "$LD"; then
4002 { echo "$as_me:$LINENO: result: $LD" >&5
4003 echo "${ECHO_T}$LD" >&6; }
4005 { echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6; }
4010 # Extract the first word of "ranlib", so it can be a program name with args.
4011 set dummy ranlib
; ac_word
=$2
4012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4014 if test "${ac_cv_path_RANLIB+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 ac_cv_path_RANLIB
="$RANLIB" # Let the user override the test with a path.
4022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4026 test -z "$as_dir" && as_dir
=.
4027 for ac_exec_ext
in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4029 ac_cv_path_RANLIB
="$as_dir/$ac_word$ac_exec_ext"
4030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 RANLIB
=$ac_cv_path_RANLIB
4041 if test -n "$RANLIB"; then
4042 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4043 echo "${ECHO_T}$RANLIB" >&6; }
4045 { echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6; }
4050 # Extract the first word of "touch", so it can be a program name with args.
4051 set dummy
touch; ac_word
=$2
4052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4054 if test "${ac_cv_path_TOUCH+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4059 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
4062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4066 test -z "$as_dir" && as_dir
=.
4067 for ac_exec_ext
in '' $ac_executable_extensions; do
4068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
4070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 TOUCH
=$ac_cv_path_TOUCH
4081 if test -n "$TOUCH"; then
4082 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4083 echo "${ECHO_T}$TOUCH" >&6; }
4085 { echo "$as_me:$LINENO: result: no" >&5
4086 echo "${ECHO_T}no" >&6; }
4091 for ac_prog
in 'bison -y' byacc
4093 # Extract the first word of "$ac_prog", so it can be a program name with args.
4094 set dummy
$ac_prog; ac_word
=$2
4095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4097 if test "${ac_cv_prog_YACC+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 if test -n "$YACC"; then
4101 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir
=.
4108 for ac_exec_ext
in '' $ac_executable_extensions; do
4109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4110 ac_cv_prog_YACC
="$ac_prog"
4111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 YACC
=$ac_cv_prog_YACC
4121 if test -n "$YACC"; then
4122 { echo "$as_me:$LINENO: result: $YACC" >&5
4123 echo "${ECHO_T}$YACC" >&6; }
4125 { echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6; }
4130 test -n "$YACC" && break
4132 test -n "$YACC" || YACC
="yacc"
4135 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4136 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4137 echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4138 { (exit 1); exit 1; }; }
4141 for ac_prog
in flex
lex
4143 # Extract the first word of "$ac_prog", so it can be a program name with args.
4144 set dummy
$ac_prog; ac_word
=$2
4145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4147 if test "${ac_cv_prog_LEX+set}" = set; then
4148 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 if test -n "$LEX"; then
4151 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4157 test -z "$as_dir" && as_dir
=.
4158 for ac_exec_ext
in '' $ac_executable_extensions; do
4159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160 ac_cv_prog_LEX
="$ac_prog"
4161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 if test -n "$LEX"; then
4172 { echo "$as_me:$LINENO: result: $LEX" >&5
4173 echo "${ECHO_T}$LEX" >&6; }
4175 { echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6; }
4180 test -n "$LEX" && break
4182 test -n "$LEX" || LEX
=":"
4184 if test "x$LEX" != "x:"; then
4185 cat >conftest.l
<<_ACEOF
4191 e { yyless (input () != 0); }
4192 f { unput (yytext[0]); }
4193 . { BEGIN INITIAL; }
4195 #ifdef YYTEXT_POINTER
4196 extern char *yytext;
4201 return ! yylex () + ! yywrap ();
4204 { (ac_try
="$LEX conftest.l"
4206 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$LEX conftest.l") 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }
4214 { echo "$as_me:$LINENO: checking lex output file root" >&5
4215 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4216 if test "${ac_cv_prog_lex_root+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -f lex.yy.c; then
4221 ac_cv_prog_lex_root=lex.yy
4222 elif test -f lexyy.c; then
4223 ac_cv_prog_lex_root=lexyy
4225 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4226 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4227 { (exit 1); exit 1; }; }
4230 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4231 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4232 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4234 if test -z "${LEXLIB+set}"; then
4235 { echo "$as_me:$LINENO: checking lex library" >&5
4236 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4237 if test "${ac_cv_lib_lex+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 ac_cv_lib_lex='none needed'
4243 for ac_lib in '' -lfl -ll; do
4244 LIBS="$ac_lib $ac_save_LIBS"
4245 cat >conftest.$ac_ext <<_ACEOF
4246 `cat $LEX_OUTPUT_ROOT.c
`
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (ac_try="$ac_link"
4251 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4252 *) ac_try_echo
=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_link") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1
>conftest.err
4259 cat conftest.err
>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest
$ac_exeext &&
4265 $as_test_x conftest
$ac_exeext; then
4266 ac_cv_lib_lex
=$ac_lib
4268 echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.
$ac_ext >&5
4274 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4275 conftest
$ac_exeext conftest.
$ac_ext
4276 test "$ac_cv_lib_lex" != 'none needed' && break
4281 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4282 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4283 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
4287 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4288 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4289 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 # POSIX says lex can declare yytext either as a pointer or an array; the
4293 # default is implementation-dependent. Figure out which it is, since
4294 # not all implementations provide the %pointer and %array declarations.
4295 ac_cv_prog_lex_yytext_pointer
=no
4297 LIBS
="$LEXLIB $ac_save_LIBS"
4298 cat >conftest.
$ac_ext <<_ACEOF
4299 #define YYTEXT_POINTER 1
4300 `cat $LEX_OUTPUT_ROOT.c`
4302 rm -f conftest.
$ac_objext conftest
$ac_exeext
4303 if { (ac_try
="$ac_link"
4305 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_link") 2>conftest.er1
4311 grep -v '^ *+' conftest.er1 >conftest.err
4313 cat conftest.err >&5
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); } && {
4316 test -z "$ac_c_werror_flag" ||
4317 test ! -s conftest.err
4318 } && test -s conftest$ac_exeext &&
4319 $as_test_x conftest$ac_exeext; then
4320 ac_cv_prog_lex_yytext_pointer=yes
4322 echo "$as_me: failed program was:" >&5
4323 sed 's/^/| /' conftest.$ac_ext >&5
4328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4329 conftest$ac_exeext conftest.$ac_ext
4333 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4334 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4335 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4337 cat >>confdefs.h <<\_ACEOF
4338 #define YYTEXT_POINTER 1
4342 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4346 if test "$LEX" = ":"; then
4347 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4348 echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4349 { (exit 1); exit 1; }; }
4352 if test "$libexecdir" = '${exec_prefix}/libexec' &&
4353 test "$localstatedir" = '${prefix}/var'; then
4354 libexecdir='${bindir}'
4355 localstatedir='${prefix}'
4358 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4360 if test "${ac_cv_header_stdc+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4382 rm -f conftest.$ac_objext
4383 if { (ac_try="$ac_compile"
4385 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4386 *) ac_try_echo
=$ac_try;;
4388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4389 (eval "$ac_compile") 2>conftest.er1
4391 grep -v '^ *+' conftest.er1
>conftest.err
4393 cat conftest.err
>&5
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest.
$ac_objext; then
4399 ac_cv_header_stdc
=yes
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.
$ac_ext >&5
4404 ac_cv_header_stdc
=no
4407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4409 if test $ac_cv_header_stdc = yes; then
4410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4411 cat >conftest.
$ac_ext <<_ACEOF
4414 cat confdefs.h
>>conftest.
$ac_ext
4415 cat >>conftest.
$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421 $EGREP "memchr" >/dev
/null
2>&1; then
4424 ac_cv_header_stdc
=no
4430 if test $ac_cv_header_stdc = yes; then
4431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4432 cat >conftest.
$ac_ext <<_ACEOF
4435 cat confdefs.h
>>conftest.
$ac_ext
4436 cat >>conftest.
$ac_ext <<_ACEOF
4437 /* end confdefs.h. */
4441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 $EGREP "free" >/dev
/null
2>&1; then
4445 ac_cv_header_stdc
=no
4451 if test $ac_cv_header_stdc = yes; then
4452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4453 if test "$cross_compiling" = yes; then
4456 cat >conftest.
$ac_ext <<_ACEOF
4459 cat confdefs.h
>>conftest.
$ac_ext
4460 cat >>conftest.
$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4464 #if ((' ' & 0x0FF) == 0x020)
4465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4468 # define ISLOWER(c) \
4469 (('a' <= (c) && (c) <= 'i') \
4470 || ('j' <= (c) && (c) <= 'r') \
4471 || ('s' <= (c) && (c) <= 'z'))
4472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4480 for (i = 0; i < 256; i++)
4481 if (XOR (islower (i), ISLOWER (i))
4482 || toupper (i) != TOUPPER (i))
4487 rm -f conftest
$ac_exeext
4488 if { (ac_try
="$ac_link"
4490 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_link") 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4498 { (case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4500 *) ac_try_echo
=$ac_try;;
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503 (eval "$ac_try") 2>&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; }; then
4509 echo "$as_me: program exited with status $ac_status" >&5
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.
$ac_ext >&5
4514 ac_cv_header_stdc
=no
4516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4522 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4523 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4524 if test $ac_cv_header_stdc = yes; then
4526 cat >>confdefs.h
<<\_ACEOF
4527 #define STDC_HEADERS 1
4533 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4543 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4544 inttypes.h stdint.h unistd.h
4546 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4549 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 cat >conftest.
$ac_ext <<_ACEOF
4555 cat confdefs.h
>>conftest.
$ac_ext
4556 cat >>conftest.
$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558 $ac_includes_default
4560 #include <$ac_header>
4562 rm -f conftest.
$ac_objext
4563 if { (ac_try
="$ac_compile"
4565 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_compile") 2>conftest.er1
4571 grep -v '^ *+' conftest.er1 >conftest.err
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } && {
4576 test -z "$ac_c_werror_flag" ||
4577 test ! -s conftest.err
4578 } && test -s conftest.$ac_objext; then
4579 eval "$as_ac_Header=yes"
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 eval "$as_ac_Header=no"
4587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4589 ac_res=`eval echo '${'$as_ac_Header'}'`
4590 { echo "$as_me:$LINENO: result: $ac_res" >&5
4591 echo "${ECHO_T}$ac_res" >&6; }
4592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4613 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
4615 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 ac_res=`eval echo '${'$as_ac_Header'}'`
4623 { echo "$as_me:$LINENO: result: $ac_res" >&5
4624 echo "${ECHO_T}$ac_res" >&6; }
4626 # Is the header compilable?
4627 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4629 cat >conftest.$ac_ext <<_ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 $ac_includes_default
4636 #include <$ac_header>
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4641 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4642 *) ac_try_echo
=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1
>conftest.err
4649 cat conftest.err
>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.
$ac_objext; then
4655 ac_header_compiler
=yes
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.
$ac_ext >&5
4660 ac_header_compiler
=no
4663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4665 echo "${ECHO_T}$ac_header_compiler" >&6; }
4667 # Is the header present?
4668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4670 cat >conftest.
$ac_ext <<_ACEOF
4673 cat confdefs.h
>>conftest.
$ac_ext
4674 cat >>conftest.
$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <$ac_header>
4678 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4680 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4681 *) ac_try_echo=$ac_try;;
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null && {
4691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4692 test ! -s conftest.err
4694 ac_header_preproc=yes
4696 echo "$as_me: failed program was:" >&5
4697 sed 's/^/| /' conftest.$ac_ext >&5
4699 ac_header_preproc=no
4702 rm -f conftest.err conftest.$ac_ext
4703 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4704 echo "${ECHO_T}$ac_header_preproc" >&6; }
4706 # So? What about this header?
4707 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4710 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4712 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4713 ac_header_preproc=yes
4716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4717 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4719 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4721 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4723 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4725 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4727 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4734 echo $ECHO_N "(cached) $ECHO_C" >&6
4736 eval "$as_ac_Header=\$ac_header_preproc"
4738 ac_res=`eval echo '${'$as_ac_Header'}'`
4739 { echo "$as_me:$LINENO: result: $ac_res" >&5
4740 echo "${ECHO_T}$ac_res" >&6; }
4743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4744 cat >>confdefs.h <<_ACEOF
4745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4754 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4755 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4756 if test "${ac_cv_c_const+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4769 /* FIXME: Include the comments suggested by Paul. */
4771 /* Ultrix mips cc rejects this. */
4772 typedef int charset[2];
4774 /* SunOS 4.1.1 cc rejects this. */
4775 char const *const *pcpcc;
4777 /* NEC SVR4.0.2 mips cc rejects this. */
4778 struct point {int x, y;};
4779 static struct point const zero = {0,0};
4780 /* AIX XL C 1.02.0.0 rejects this.
4781 It does not let you subtract one const X* pointer from another in
4782 an arm of an if-expression whose if-part is not a constant
4784 const char *g = "string";
4785 pcpcc = &g + (g ? g-g : 0);
4786 /* HPUX 7.0 cc rejects these. */
4788 ppc = (char**) pcpcc;
4789 pcpcc = (char const *const *) ppc;
4790 { /* SCO 3.2v4 cc rejects this. */
4792 char const *s = 0 ? (char *) 0 : (char const *) 0;
4797 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4799 const int *foo = &x[0];
4802 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4803 typedef const int *iptr;
4807 { /* AIX XL C 1.02.0.0 rejects this saying
4808 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4809 struct s { int j; const int *ap[3]; };
4810 struct s *b; b->j = 5;
4812 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4816 return !cs[0] && !zero.x;
4823 rm -f conftest.$ac_objext
4824 if { (ac_try="$ac_compile"
4826 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4827 *) ac_try_echo
=$ac_try;;
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_compile") 2>conftest.er1
4832 grep -v '^ *+' conftest.er1
>conftest.err
4834 cat conftest.err
>&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } && {
4837 test -z "$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 } && test -s conftest.
$ac_objext; then
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.
$ac_ext >&5
4848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4850 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4851 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4852 if test $ac_cv_c_const = no
; then
4854 cat >>confdefs.h
<<\_ACEOF
4860 if test "$ac_cv_header_machine_endian_h" = "no" ; then
4861 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4862 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4863 if test "${ac_cv_c_bigendian+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 # See if sys/param.h defines the BYTE_ORDER macro.
4867 cat >conftest.
$ac_ext <<_ACEOF
4870 cat confdefs.h
>>conftest.
$ac_ext
4871 cat >>conftest.
$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4873 #include <sys/types.h>
4874 #include <sys/param.h>
4879 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4880 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4888 rm -f conftest.
$ac_objext
4889 if { (ac_try
="$ac_compile"
4891 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4892 *) ac_try_echo=$ac_try;;
4894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4895 (eval "$ac_compile") 2>conftest.er1
4897 grep -v '^ *+' conftest.er1 >conftest.err
4899 cat conftest.err >&5
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); } && {
4902 test -z "$ac_c_werror_flag" ||
4903 test ! -s conftest.err
4904 } && test -s conftest.$ac_objext; then
4905 # It does; now see whether it defined to BIG_ENDIAN or not.
4906 cat >conftest.$ac_ext <<_ACEOF
4909 cat confdefs.h >>conftest.$ac_ext
4910 cat >>conftest.$ac_ext <<_ACEOF
4911 /* end confdefs.h. */
4912 #include <sys/types.h>
4913 #include <sys/param.h>
4918 #if BYTE_ORDER != BIG_ENDIAN
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4929 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
4930 *) ac_try_echo
=$ac_try;;
4932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_compile") 2>conftest.er1
4935 grep -v '^ *+' conftest.er1
>conftest.err
4937 cat conftest.err
>&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } && {
4940 test -z "$ac_c_werror_flag" ||
4941 test ! -s conftest.err
4942 } && test -s conftest.
$ac_objext; then
4943 ac_cv_c_bigendian
=yes
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.
$ac_ext >&5
4948 ac_cv_c_bigendian
=no
4951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.
$ac_ext >&5
4956 # It does not; compile a test program.
4957 if test "$cross_compiling" = yes; then
4958 # try to guess the endianness by grepping values into an object file
4959 ac_cv_c_bigendian
=unknown
4960 cat >conftest.
$ac_ext <<_ACEOF
4963 cat confdefs.h
>>conftest.
$ac_ext
4964 cat >>conftest.
$ac_ext <<_ACEOF
4965 /* end confdefs.h. */
4966 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4967 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4968 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4969 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4970 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4971 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4975 _ascii (); _ebcdic ();
4980 rm -f conftest.
$ac_objext
4981 if { (ac_try
="$ac_compile"
4983 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_compile") 2>conftest.er1
4989 grep -v '^ *+' conftest.er1 >conftest.err
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } && {
4994 test -z "$ac_c_werror_flag" ||
4995 test ! -s conftest.err
4996 } && test -s conftest.$ac_objext; then
4997 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4998 ac_cv_c_bigendian=yes
5000 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5001 if test "$ac_cv_c_bigendian" = unknown; then
5002 ac_cv_c_bigendian=no
5004 # finding both strings is unlikely to happen, but who knows?
5005 ac_cv_c_bigendian=unknown
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5023 $ac_includes_default
5028 /* Are we little or big endian? From Harbison&Steele. */
5032 char c[sizeof (long int)];
5035 return u.c[sizeof (long int) - 1] == 1;
5041 rm -f conftest$ac_exeext
5042 if { (ac_try="$ac_link"
5044 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5045 *) ac_try_echo
=$ac_try;;
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_link") 2>&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5052 { (case "(($ac_try" in
5053 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_try") 2>&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; }; then
5061 ac_cv_c_bigendian=no
5063 echo "$as_me: program exited with status $ac_status" >&5
5064 echo "$as_me: failed program was:" >&5
5065 sed 's/^/| /' conftest.$ac_ext >&5
5068 ac_cv_c_bigendian=yes
5070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5078 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5079 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5080 case $ac_cv_c_bigendian in
5083 cat >>confdefs.h <<\_ACEOF
5084 #define WORDS_BIGENDIAN 1
5090 { { echo "$as_me:$LINENO: error: unknown endianness
5091 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5092 echo "$as_me: error: unknown endianness
5093 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5094 { (exit 1); exit 1; }; } ;;
5098 { echo "$as_me:$LINENO: checking for pid_t" >&5
5099 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5100 if test "${ac_cv_type_pid_t+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 $ac_includes_default
5110 typedef pid_t ac__type_new_;
5114 if ((ac__type_new_ *) 0)
5116 if (sizeof (ac__type_new_))
5122 rm -f conftest.$ac_objext
5123 if { (ac_try="$ac_compile"
5125 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5126 *) ac_try_echo
=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_compile") 2>conftest.er1
5131 grep -v '^ *+' conftest.er1
>conftest.err
5133 cat conftest.err
>&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && {
5136 test -z "$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 } && test -s conftest.
$ac_objext; then
5139 ac_cv_type_pid_t
=yes
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.
$ac_ext >&5
5147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5149 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5150 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5151 if test $ac_cv_type_pid_t = yes; then
5155 cat >>confdefs.h
<<_ACEOF
5161 { echo "$as_me:$LINENO: checking for size_t" >&5
5162 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5163 if test "${ac_cv_type_size_t+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 cat >conftest.
$ac_ext <<_ACEOF
5169 cat confdefs.h
>>conftest.
$ac_ext
5170 cat >>conftest.
$ac_ext <<_ACEOF
5171 /* end confdefs.h. */
5172 $ac_includes_default
5173 typedef size_t ac__type_new_;
5177 if ((ac__type_new_ *) 0)
5179 if (sizeof (ac__type_new_))
5185 rm -f conftest.
$ac_objext
5186 if { (ac_try
="$ac_compile"
5188 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_compile") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } && {
5199 test -z "$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 } && test -s conftest.$ac_objext; then
5202 ac_cv_type_size_t=yes
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 ac_cv_type_size_t=no
5210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5213 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5214 if test $ac_cv_type_size_t = yes; then
5218 cat >>confdefs.h <<_ACEOF
5219 #define size_t unsigned int
5224 { echo "$as_me:$LINENO: checking for short" >&5
5225 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5226 if test "${ac_cv_type_short+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 cat >conftest.$ac_ext <<_ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5236 typedef short ac__type_new_;
5240 if ((ac__type_new_ *) 0)
5242 if (sizeof (ac__type_new_))
5248 rm -f conftest.$ac_objext
5249 if { (ac_try="$ac_compile"
5251 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5252 *) ac_try_echo
=$ac_try;;
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5257 grep -v '^ *+' conftest.er1
>conftest.err
5259 cat conftest.err
>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.
$ac_objext; then
5265 ac_cv_type_short
=yes
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.
$ac_ext >&5
5273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5275 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5276 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5278 # The cast to long int works around a bug in the HP C Compiler
5279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5281 # This bug is HP SR number 8606223364.
5282 { echo "$as_me:$LINENO: checking size of short" >&5
5283 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5284 if test "${ac_cv_sizeof_short+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 if test "$cross_compiling" = yes; then
5288 # Depending upon the size, compute the lo and hi bounds.
5289 cat >conftest.
$ac_ext <<_ACEOF
5292 cat confdefs.h
>>conftest.
$ac_ext
5293 cat >>conftest.
$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 $ac_includes_default
5296 typedef short ac__type_sizeof_;
5300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5307 rm -f conftest.
$ac_objext
5308 if { (ac_try
="$ac_compile"
5310 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5314 (eval "$ac_compile") 2>conftest.er1
5316 grep -v '^ *+' conftest.er1 >conftest.err
5318 cat conftest.err >&5
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); } && {
5321 test -z "$ac_c_werror_flag" ||
5322 test ! -s conftest.err
5323 } && test -s conftest.$ac_objext; then
5326 cat >conftest.$ac_ext <<_ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5333 typedef short ac__type_sizeof_;
5337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5344 rm -f conftest.$ac_objext
5345 if { (ac_try="$ac_compile"
5347 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5348 *) ac_try_echo
=$ac_try;;
5350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5353 grep -v '^ *+' conftest.er1
>conftest.err
5355 cat conftest.err
>&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } && {
5358 test -z "$ac_c_werror_flag" ||
5359 test ! -s conftest.err
5360 } && test -s conftest.
$ac_objext; then
5361 ac_hi
=$ac_mid; break
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.
$ac_ext >&5
5366 ac_lo
=`expr $ac_mid + 1`
5367 if test $ac_lo -le $ac_mid; then
5371 ac_mid
=`expr 2 '*' $ac_mid + 1`
5374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.
$ac_ext >&5
5380 cat >conftest.
$ac_ext <<_ACEOF
5383 cat confdefs.h
>>conftest.
$ac_ext
5384 cat >>conftest.
$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 $ac_includes_default
5387 typedef short ac__type_sizeof_;
5391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5398 rm -f conftest.
$ac_objext
5399 if { (ac_try
="$ac_compile"
5401 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_c_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 $ac_includes_default
5424 typedef short ac__type_sizeof_;
5428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5438 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5439 *) ac_try_echo
=$ac_try;;
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5444 grep -v '^ *+' conftest.er1
>conftest.err
5446 cat conftest.err
>&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_c_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.
$ac_objext; then
5452 ac_lo
=$ac_mid; break
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.
$ac_ext >&5
5457 ac_hi
=`expr '(' $ac_mid ')' - 1`
5458 if test $ac_mid -le $ac_hi; then
5462 ac_mid
=`expr 2 '*' $ac_mid`
5465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.
$ac_ext >&5
5474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5478 # Binary search between lo and hi bounds.
5479 while test "x$ac_lo" != "x$ac_hi"; do
5480 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5481 cat >conftest.
$ac_ext <<_ACEOF
5484 cat confdefs.h
>>conftest.
$ac_ext
5485 cat >>conftest.
$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5488 typedef short ac__type_sizeof_;
5492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5499 rm -f conftest.
$ac_objext
5500 if { (ac_try
="$ac_compile"
5502 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5506 (eval "$ac_compile") 2>conftest.er1
5508 grep -v '^ *+' conftest.er1 >conftest.err
5510 cat conftest.err >&5
5511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5512 (exit $ac_status); } && {
5513 test -z "$ac_c_werror_flag" ||
5514 test ! -s conftest.err
5515 } && test -s conftest.$ac_objext; then
5518 echo "$as_me: failed program was:" >&5
5519 sed 's/^/| /' conftest.$ac_ext >&5
5521 ac_lo=`expr '(' $ac_mid ')' + 1`
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 ?*) ac_cv_sizeof_short=$ac_lo;;
5528 '') if test "$ac_cv_type_short" = yes; then
5529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5530 See \`config.log
' for more details." >&5
5531 echo "$as_me: error: cannot compute sizeof (short)
5532 See \`config.log' for more details.
" >&2;}
5533 { (exit 77); exit 77; }; }
5535 ac_cv_sizeof_short=0
5539 cat >conftest.$ac_ext <<_ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 $ac_includes_default
5546 typedef short ac__type_sizeof_;
5547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5555 FILE *f = fopen ("conftest.val
", "w
");
5558 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5560 long int i = longval ();
5561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5563 fprintf (f, "%ld
\n", i);
5567 unsigned long int i = ulongval ();
5568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5570 fprintf (f, "%lu
\n", i);
5572 return ferror (f) || fclose (f) != 0;
5578 rm -f conftest$ac_exeext
5579 if { (ac_try="$ac_link"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_link") 2>&5
5587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5589 { (case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_try") 2>&5
5596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5597 (exit $ac_status); }; }; then
5598 ac_cv_sizeof_short=`cat conftest.val`
5600 echo "$as_me: program exited with status
$ac_status" >&5
5601 echo "$as_me: failed program was
:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5605 if test "$ac_cv_type_short" = yes; then
5606 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(short
)
5607 See \
`config.log' for more details." >&5
5608 echo "$as_me: error: cannot compute sizeof (short)
5609 See \`config.log
' for more details." >&2;}
5610 { (exit 77); exit 77; }; }
5612 ac_cv_sizeof_short=0
5615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5620 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5624 cat >>confdefs.h <<_ACEOF
5625 #define SIZEOF_SHORT $ac_cv_sizeof_short
5629 { echo "$as_me:$LINENO: checking for int" >&5
5630 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5631 if test "${ac_cv_type_int+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5640 $ac_includes_default
5641 typedef int ac__type_new_;
5645 if ((ac__type_new_ *) 0)
5647 if (sizeof (ac__type_new_))
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660 (eval "$ac_compile") 2>conftest.er1
5662 grep -v '^
*+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest.$ac_objext; then
5672 echo "$as_me: failed program was:" >&5
5673 sed 's
/^
/| /' conftest.$ac_ext >&5
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5681 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5683 # The cast to long int works around a bug in the HP C Compiler
5684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5686 # This bug is HP SR number 8606223364.
5687 { echo "$as_me:$LINENO: checking size of int" >&5
5688 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5689 if test "${ac_cv_sizeof_int+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 if test "$cross_compiling" = yes; then
5693 # Depending upon the size, compute the lo and hi bounds.
5694 cat >conftest.
$ac_ext <<_ACEOF
5697 cat confdefs.h
>>conftest.
$ac_ext
5698 cat >>conftest.
$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 $ac_includes_default
5701 typedef int ac__type_sizeof_;
5705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5712 rm -f conftest.
$ac_objext
5713 if { (ac_try
="$ac_compile"
5715 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5716 *) ac_try_echo=$ac_try;;
5718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5721 grep -v '^ *+' conftest.er1 >conftest.err
5723 cat conftest.err >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.$ac_objext; then
5731 cat >conftest.$ac_ext <<_ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h. */
5737 $ac_includes_default
5738 typedef int ac__type_sizeof_;
5742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5752 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5753 *) ac_try_echo
=$ac_try;;
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5758 grep -v '^ *+' conftest.er1
>conftest.err
5760 cat conftest.err
>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } && {
5763 test -z "$ac_c_werror_flag" ||
5764 test ! -s conftest.err
5765 } && test -s conftest.
$ac_objext; then
5766 ac_hi
=$ac_mid; break
5768 echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.
$ac_ext >&5
5771 ac_lo
=`expr $ac_mid + 1`
5772 if test $ac_lo -le $ac_mid; then
5776 ac_mid
=`expr 2 '*' $ac_mid + 1`
5779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.
$ac_ext >&5
5785 cat >conftest.
$ac_ext <<_ACEOF
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 $ac_includes_default
5792 typedef int ac__type_sizeof_;
5796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5803 rm -f conftest.
$ac_objext
5804 if { (ac_try
="$ac_compile"
5806 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_compile") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } && {
5817 test -z "$ac_c_werror_flag" ||
5818 test ! -s conftest.err
5819 } && test -s conftest.$ac_objext; then
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 $ac_includes_default
5829 typedef int ac__type_sizeof_;
5833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5843 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5844 *) ac_try_echo
=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.
$ac_objext; then
5857 ac_lo
=$ac_mid; break
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.
$ac_ext >&5
5862 ac_hi
=`expr '(' $ac_mid ')' - 1`
5863 if test $ac_mid -le $ac_hi; then
5867 ac_mid
=`expr 2 '*' $ac_mid`
5870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.
$ac_ext >&5
5879 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 # Binary search between lo and hi bounds.
5884 while test "x$ac_lo" != "x$ac_hi"; do
5885 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5886 cat >conftest.
$ac_ext <<_ACEOF
5889 cat confdefs.h
>>conftest.
$ac_ext
5890 cat >>conftest.
$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5892 $ac_includes_default
5893 typedef int ac__type_sizeof_;
5897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5904 rm -f conftest.
$ac_objext
5905 if { (ac_try
="$ac_compile"
5907 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } && {
5918 test -z "$ac_c_werror_flag" ||
5919 test ! -s conftest.err
5920 } && test -s conftest.$ac_objext; then
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_lo=`expr '(' $ac_mid ')' + 1`
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 ?*) ac_cv_sizeof_int=$ac_lo;;
5933 '') if test "$ac_cv_type_int" = yes; then
5934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5935 See \`config.log
' for more details." >&5
5936 echo "$as_me: error: cannot compute sizeof (int)
5937 See \`config.log' for more details.
" >&2;}
5938 { (exit 77); exit 77; }; }
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5950 $ac_includes_default
5951 typedef int ac__type_sizeof_;
5952 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5953 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5960 FILE *f = fopen ("conftest.val
", "w
");
5963 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5965 long int i = longval ();
5966 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5968 fprintf (f, "%ld
\n", i);
5972 unsigned long int i = ulongval ();
5973 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5975 fprintf (f, "%lu
\n", i);
5977 return ferror (f) || fclose (f) != 0;
5983 rm -f conftest$ac_exeext
5984 if { (ac_try="$ac_link"
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_link") 2>&5
5992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_sizeof_int=`cat conftest.val`
6005 echo "$as_me: program exited with status
$ac_status" >&5
6006 echo "$as_me: failed program was
:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6010 if test "$ac_cv_type_int" = yes; then
6011 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
6012 See \
`config.log' for more details." >&5
6013 echo "$as_me: error: cannot compute sizeof (int)
6014 See \`config.log
' for more details." >&2;}
6015 { (exit 77); exit 77; }; }
6020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6024 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6025 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6029 cat >>confdefs.h <<_ACEOF
6030 #define SIZEOF_INT $ac_cv_sizeof_int
6034 { echo "$as_me:$LINENO: checking for long" >&5
6035 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6036 if test "${ac_cv_type_long+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 cat >conftest.$ac_ext <<_ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6046 typedef long ac__type_new_;
6050 if ((ac__type_new_ *) 0)
6052 if (sizeof (ac__type_new_))
6058 rm -f conftest.$ac_objext
6059 if { (ac_try="$ac_compile"
6061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6062 *) ac_try_echo=$ac_try;;
6064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6067 grep -v '^
*+' conftest.er1 >conftest.err
6069 cat conftest.err >&5
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6077 echo "$as_me: failed program was:" >&5
6078 sed 's
/^
/| /' conftest.$ac_ext >&5
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6086 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6088 # The cast to long int works around a bug in the HP C Compiler
6089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6091 # This bug is HP SR number 8606223364.
6092 { echo "$as_me:$LINENO: checking size of long" >&5
6093 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6094 if test "${ac_cv_sizeof_long+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test "$cross_compiling" = yes; then
6098 # Depending upon the size, compute the lo and hi bounds.
6099 cat >conftest.
$ac_ext <<_ACEOF
6102 cat confdefs.h
>>conftest.
$ac_ext
6103 cat >>conftest.
$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 $ac_includes_default
6106 typedef long ac__type_sizeof_;
6110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6117 rm -f conftest.
$ac_objext
6118 if { (ac_try
="$ac_compile"
6120 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6126 grep -v '^ *+' conftest.er1 >conftest.err
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 $ac_includes_default
6143 typedef long ac__type_sizeof_;
6147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6154 rm -f conftest.$ac_objext
6155 if { (ac_try="$ac_compile"
6157 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6158 *) ac_try_echo
=$ac_try;;
6160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6163 grep -v '^ *+' conftest.er1
>conftest.err
6165 cat conftest.err
>&5
6166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.
$ac_objext; then
6171 ac_hi
=$ac_mid; break
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.
$ac_ext >&5
6176 ac_lo
=`expr $ac_mid + 1`
6177 if test $ac_lo -le $ac_mid; then
6181 ac_mid
=`expr 2 '*' $ac_mid + 1`
6184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.
$ac_ext >&5
6190 cat >conftest.
$ac_ext <<_ACEOF
6193 cat confdefs.h
>>conftest.
$ac_ext
6194 cat >>conftest.
$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6196 $ac_includes_default
6197 typedef long ac__type_sizeof_;
6201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6208 rm -f conftest.
$ac_objext
6209 if { (ac_try
="$ac_compile"
6211 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_compile") 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } && {
6222 test -z "$ac_c_werror_flag" ||
6223 test ! -s conftest.err
6224 } && test -s conftest.$ac_objext; then
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6233 $ac_includes_default
6234 typedef long ac__type_sizeof_;
6238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6245 rm -f conftest.$ac_objext
6246 if { (ac_try="$ac_compile"
6248 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6249 *) ac_try_echo
=$ac_try;;
6251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6254 grep -v '^ *+' conftest.er1
>conftest.err
6256 cat conftest.err
>&5
6257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_c_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest.
$ac_objext; then
6262 ac_lo
=$ac_mid; break
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.
$ac_ext >&5
6267 ac_hi
=`expr '(' $ac_mid ')' - 1`
6268 if test $ac_mid -le $ac_hi; then
6272 ac_mid
=`expr 2 '*' $ac_mid`
6275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.
$ac_ext >&5
6284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6288 # Binary search between lo and hi bounds.
6289 while test "x$ac_lo" != "x$ac_hi"; do
6290 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6291 cat >conftest.
$ac_ext <<_ACEOF
6294 cat confdefs.h
>>conftest.
$ac_ext
6295 cat >>conftest.
$ac_ext <<_ACEOF
6296 /* end confdefs.h. */
6297 $ac_includes_default
6298 typedef long ac__type_sizeof_;
6302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6309 rm -f conftest.
$ac_objext
6310 if { (ac_try
="$ac_compile"
6312 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316 (eval "$ac_compile") 2>conftest.er1
6318 grep -v '^ *+' conftest.er1 >conftest.err
6320 cat conftest.err >&5
6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest.$ac_objext; then
6328 echo "$as_me: failed program was:" >&5
6329 sed 's/^/| /' conftest.$ac_ext >&5
6331 ac_lo=`expr '(' $ac_mid ')' + 1`
6334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 ?*) ac_cv_sizeof_long=$ac_lo;;
6338 '') if test "$ac_cv_type_long" = yes; then
6339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6340 See \`config.log
' for more details." >&5
6341 echo "$as_me: error: cannot compute sizeof (long)
6342 See \`config.log' for more details.
" >&2;}
6343 { (exit 77); exit 77; }; }
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6356 typedef long ac__type_sizeof_;
6357 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6358 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6365 FILE *f = fopen ("conftest.val
", "w
");
6368 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6370 long int i = longval ();
6371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6373 fprintf (f, "%ld
\n", i);
6377 unsigned long int i = ulongval ();
6378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6380 fprintf (f, "%lu
\n", i);
6382 return ferror (f) || fclose (f) != 0;
6388 rm -f conftest$ac_exeext
6389 if { (ac_try="$ac_link"
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6395 (eval "$ac_link") 2>&5
6397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6399 { (case "(($ac_try" in
6400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6401 *) ac_try_echo=$ac_try;;
6403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_try") 2>&5
6406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6407 (exit $ac_status); }; }; then
6408 ac_cv_sizeof_long=`cat conftest.val`
6410 echo "$as_me: program exited with status
$ac_status" >&5
6411 echo "$as_me: failed program was
:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6415 if test "$ac_cv_type_long" = yes; then
6416 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
6417 See \
`config.log' for more details." >&5
6418 echo "$as_me: error: cannot compute sizeof (long)
6419 See \`config.log
' for more details." >&2;}
6420 { (exit 77); exit 77; }; }
6425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6429 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6430 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6434 cat >>confdefs.h <<_ACEOF
6435 #define SIZEOF_LONG $ac_cv_sizeof_long
6439 { echo "$as_me:$LINENO: checking for long long" >&5
6440 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6441 if test "${ac_cv_type_long_long+set}" = set; then
6442 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6451 typedef long long ac__type_new_;
6455 if ((ac__type_new_ *) 0)
6457 if (sizeof (ac__type_new_))
6463 rm -f conftest.$ac_objext
6464 if { (ac_try="$ac_compile"
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compile") 2>conftest.er1
6472 grep -v '^
*+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } && {
6477 test -z "$ac_c_werror_flag" ||
6478 test ! -s conftest.err
6479 } && test -s conftest.$ac_objext; then
6480 ac_cv_type_long_long=yes
6482 echo "$as_me: failed program was:" >&5
6483 sed 's
/^
/| /' conftest.$ac_ext >&5
6485 ac_cv_type_long_long=no
6488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6490 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6491 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6493 # The cast to long int works around a bug in the HP C Compiler
6494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6496 # This bug is HP SR number 8606223364.
6497 { echo "$as_me:$LINENO: checking size of long long" >&5
6498 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6499 if test "${ac_cv_sizeof_long_long+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 if test "$cross_compiling" = yes; then
6503 # Depending upon the size, compute the lo and hi bounds.
6504 cat >conftest.
$ac_ext <<_ACEOF
6507 cat confdefs.h
>>conftest.
$ac_ext
6508 cat >>conftest.
$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6511 typedef long long ac__type_sizeof_;
6515 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6522 rm -f conftest.
$ac_objext
6523 if { (ac_try
="$ac_compile"
6525 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6526 *) ac_try_echo=$ac_try;;
6528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6529 (eval "$ac_compile") 2>conftest.er1
6531 grep -v '^ *+' conftest.er1 >conftest.err
6533 cat conftest.err >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); } && {
6536 test -z "$ac_c_werror_flag" ||
6537 test ! -s conftest.err
6538 } && test -s conftest.$ac_objext; then
6541 cat >conftest.$ac_ext <<_ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h. */
6547 $ac_includes_default
6548 typedef long long ac__type_sizeof_;
6552 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6559 rm -f conftest.$ac_objext
6560 if { (ac_try="$ac_compile"
6562 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6563 *) ac_try_echo
=$ac_try;;
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_compile") 2>conftest.er1
6568 grep -v '^ *+' conftest.er1
>conftest.err
6570 cat conftest.err
>&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest.
$ac_objext; then
6576 ac_hi
=$ac_mid; break
6578 echo "$as_me: failed program was:" >&5
6579 sed 's/^/| /' conftest.
$ac_ext >&5
6581 ac_lo
=`expr $ac_mid + 1`
6582 if test $ac_lo -le $ac_mid; then
6586 ac_mid
=`expr 2 '*' $ac_mid + 1`
6589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6592 echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.
$ac_ext >&5
6595 cat >conftest.
$ac_ext <<_ACEOF
6598 cat confdefs.h
>>conftest.
$ac_ext
6599 cat >>conftest.
$ac_ext <<_ACEOF
6600 /* end confdefs.h. */
6601 $ac_includes_default
6602 typedef long long ac__type_sizeof_;
6606 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6613 rm -f conftest.
$ac_objext
6614 if { (ac_try
="$ac_compile"
6616 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_compile") 2>conftest.er1
6622 grep -v '^ *+' conftest.er1 >conftest.err
6624 cat conftest.err >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); } && {
6627 test -z "$ac_c_werror_flag" ||
6628 test ! -s conftest.err
6629 } && test -s conftest.$ac_objext; then
6632 cat >conftest.$ac_ext <<_ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 $ac_includes_default
6639 typedef long long ac__type_sizeof_;
6643 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6650 rm -f conftest.$ac_objext
6651 if { (ac_try="$ac_compile"
6653 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6654 *) ac_try_echo
=$ac_try;;
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657 (eval "$ac_compile") 2>conftest.er1
6659 grep -v '^ *+' conftest.er1
>conftest.err
6661 cat conftest.err
>&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest.
$ac_objext; then
6667 ac_lo
=$ac_mid; break
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.
$ac_ext >&5
6672 ac_hi
=`expr '(' $ac_mid ')' - 1`
6673 if test $ac_mid -le $ac_hi; then
6677 ac_mid
=`expr 2 '*' $ac_mid`
6680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.
$ac_ext >&5
6689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6693 # Binary search between lo and hi bounds.
6694 while test "x$ac_lo" != "x$ac_hi"; do
6695 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6696 cat >conftest.
$ac_ext <<_ACEOF
6699 cat confdefs.h
>>conftest.
$ac_ext
6700 cat >>conftest.
$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 $ac_includes_default
6703 typedef long long ac__type_sizeof_;
6707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6714 rm -f conftest.
$ac_objext
6715 if { (ac_try
="$ac_compile"
6717 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_compile") 2>conftest.er1
6723 grep -v '^ *+' conftest.er1 >conftest.err
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest.$ac_objext; then
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 ac_lo=`expr '(' $ac_mid ')' + 1`
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6743 '') if test "$ac_cv_type_long_long" = yes; then
6744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6745 See \`config.log
' for more details." >&5
6746 echo "$as_me: error: cannot compute sizeof (long long)
6747 See \`config.log' for more details.
" >&2;}
6748 { (exit 77); exit 77; }; }
6750 ac_cv_sizeof_long_long=0
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 $ac_includes_default
6761 typedef long long ac__type_sizeof_;
6762 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6763 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6770 FILE *f = fopen ("conftest.val
", "w
");
6773 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6775 long int i = longval ();
6776 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6778 fprintf (f, "%ld
\n", i);
6782 unsigned long int i = ulongval ();
6783 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6785 fprintf (f, "%lu
\n", i);
6787 return ferror (f) || fclose (f) != 0;
6793 rm -f conftest$ac_exeext
6794 if { (ac_try="$ac_link"
6796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797 *) ac_try_echo=$ac_try;;
6799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6800 (eval "$ac_link") 2>&5
6802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6804 { (case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_try") 2>&5
6811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6812 (exit $ac_status); }; }; then
6813 ac_cv_sizeof_long_long=`cat conftest.val`
6815 echo "$as_me: program exited with status
$ac_status" >&5
6816 echo "$as_me: failed program was
:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6820 if test "$ac_cv_type_long_long" = yes; then
6821 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
6822 See \
`config.log' for more details." >&5
6823 echo "$as_me: error: cannot compute sizeof (long long)
6824 See \`config.log
' for more details." >&2;}
6825 { (exit 77); exit 77; }; }
6827 ac_cv_sizeof_long_long=0
6830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6834 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6835 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6839 cat >>confdefs.h <<_ACEOF
6840 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6846 { echo "$as_me:$LINENO: checking the system's memory page size
" >&5
6847 echo $ECHO_N "checking the system
's memory page size... $ECHO_C" >&6; }
6849 if test "$cross_compiling" = yes; then
6850 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6851 See \`config.log' for more details.
" >&5
6852 echo "$as_me: error
: cannot run
test program
while cross compiling
6853 See \
`config.log' for more details." >&2;}
6854 { (exit 1); exit 1; }; }
6856 cat >conftest.$ac_ext <<_ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6865 # include <unistd.h>
6869 FILE *fp = fopen("conftest.malloc", "w");
6872 fprintf(fp, "%d\n", getpagesize());
6879 rm -f conftest$ac_exeext
6880 if { (ac_try="$ac_link"
6882 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6883 *) ac_try_echo
=$ac_try;;
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_link") 2>&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6890 { (case "(($ac_try" in
6891 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_try") 2>&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; }; then
6900 if test -f "conftest.malloc" ; then
6901 pagesize=`cat conftest.malloc
`
6905 echo "$as_me: program exited with status $ac_status" >&5
6906 echo "$as_me: failed program was:" >&5
6907 sed 's/^/| /' conftest.$ac_ext >&5
6910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6914 if test "$pagesize" != "no" ; then
6915 { echo "$as_me:$LINENO: result: $pagesize" >&5
6916 echo "${ECHO_T}$pagesize" >&6; }
6918 if test "$ac_cv_sizeof_int" = "4" ; then
6923 { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6924 echo "${ECHO_T}$pagesize (guessing)" >&6; }
6927 cat >>confdefs.h <<_ACEOF
6928 #define MALLOC_PAGESIZE $pagesize
6933 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6934 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6935 if test "${ac_cv_search_socket+set}" = set; then
6936 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_func_search_save_LIBS=$LIBS
6939 cat >conftest.$ac_ext <<_ACEOF
6942 cat confdefs.h >>conftest.$ac_ext
6943 cat >>conftest.$ac_ext <<_ACEOF
6944 /* end confdefs.h. */
6946 /* Override any GCC internal prototype to avoid an error.
6947 Use char because int might match the return type of a GCC
6948 builtin and then its argument prototype would still apply. */
6961 for ac_lib in '' socket; do
6962 if test -z "$ac_lib"; then
6963 ac_res="none required"
6966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (ac_try="$ac_link"
6971 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
6972 *) ac_try_echo
=$ac_try;;
6974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975 (eval "$ac_link") 2>conftest.er1
6977 grep -v '^ *+' conftest.er1
>conftest.err
6979 cat conftest.err
>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest
$ac_exeext &&
6985 $as_test_x conftest
$ac_exeext; then
6986 ac_cv_search_socket
=$ac_res
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.
$ac_ext >&5
6994 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6996 if test "${ac_cv_search_socket+set}" = set; then
7000 if test "${ac_cv_search_socket+set}" = set; then
7003 ac_cv_search_socket
=no
7006 LIBS
=$ac_func_search_save_LIBS
7008 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7009 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7010 ac_res
=$ac_cv_search_socket
7011 if test "$ac_res" != no
; then
7012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7015 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
7016 echo "$as_me: error: You have no socket()! Aborting." >&2;}
7017 { (exit 1); exit 1; }; }
7021 if test x
"$SUN" = xyes
; then
7022 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7023 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7024 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7027 ac_func_search_save_LIBS
=$LIBS
7028 cat >conftest.
$ac_ext <<_ACEOF
7031 cat confdefs.h
>>conftest.
$ac_ext
7032 cat >>conftest.
$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7035 /* Override any GCC internal prototype to avoid an error.
7036 Use char because int might match the return type of a GCC
7037 builtin and then its argument prototype would still apply. */
7045 return inet_ntoa ();
7050 for ac_lib
in '' nsl
; do
7051 if test -z "$ac_lib"; then
7052 ac_res
="none required"
7055 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7057 rm -f conftest.
$ac_objext conftest
$ac_exeext
7058 if { (ac_try
="$ac_link"
7060 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_link") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest$ac_exeext &&
7074 $as_test_x conftest$ac_exeext; then
7075 ac_cv_search_inet_ntoa=$ac_res
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7085 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7089 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7092 ac_cv_search_inet_ntoa=no
7095 LIBS=$ac_func_search_save_LIBS
7097 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7098 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7099 ac_res=$ac_cv_search_inet_ntoa
7100 if test "$ac_res" != no; then
7101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7104 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7105 echo "$as_me: error: libnsl not found! Aborting." >&2;}
7106 { (exit 1); exit 1; }; }
7111 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7112 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7113 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 cat >conftest.$ac_ext <<_ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #include <sys/types.h>
7123 #include <sys/socket.h>
7129 static struct sockaddr ac_aggr;
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7139 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7140 *) ac_try_echo
=$ac_try;;
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1
>conftest.err
7147 cat conftest.err
>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.
$ac_objext; then
7153 ac_cv_member_struct_sockaddr_sa_len
=yes
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.
$ac_ext >&5
7158 cat >conftest.
$ac_ext <<_ACEOF
7161 cat confdefs.h
>>conftest.
$ac_ext
7162 cat >>conftest.
$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 #include <sys/types.h>
7165 #include <sys/socket.h>
7171 static struct sockaddr ac_aggr;
7172 if (sizeof ac_aggr.sa_len)
7178 rm -f conftest.
$ac_objext
7179 if { (ac_try
="$ac_compile"
7181 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7182 *) ac_try_echo=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_compile") 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest.$ac_objext; then
7195 ac_cv_member_struct_sockaddr_sa_len=yes
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.$ac_ext >&5
7200 ac_cv_member_struct_sockaddr_sa_len=no
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7209 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
7210 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define SOCKADDR_IN_HAS_LEN 1
7219 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7220 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7221 if test "${ac_cv_type_socklen_t+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 #include <sys/types.h>
7231 #include <sys/socket.h>
7233 typedef socklen_t ac__type_new_;
7237 if ((ac__type_new_ *) 0)
7239 if (sizeof (ac__type_new_))
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7248 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7249 *) ac_try_echo
=$ac_try;;
7251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7254 grep -v '^ *+' conftest.er1
>conftest.err
7256 cat conftest.err
>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.
$ac_objext; then
7262 ac_cv_type_socklen_t
=yes
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.
$ac_ext >&5
7267 ac_cv_type_socklen_t
=no
7270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7272 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7273 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7274 if test $ac_cv_type_socklen_t = yes; then
7278 cat >>confdefs.h
<<\_ACEOF
7279 #define socklen_t unsigned int
7285 # Check whether --enable-ipv6 was given.
7286 if test "${enable_ipv6+set}" = set; then
7287 enableval
=$enable_ipv6; ipv6
=$enableval
7293 if test $ipv6 != yes; then
7296 { echo "$as_me:$LINENO: checking for core IPv6 support" >&5
7297 echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; }
7299 cat >conftest.
$ac_ext <<_ACEOF
7302 cat confdefs.h
>>conftest.
$ac_ext
7303 cat >>conftest.
$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7306 #include <sys/types.h>
7307 #include <sys/socket.h>
7308 #include <netinet/in.h>
7312 struct sockaddr_in6 s;
7319 rm -f conftest.
$ac_objext
7320 if { (ac_try
="$ac_compile"
7322 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7323 *) ac_try_echo=$ac_try;;
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7328 grep -v '^ *+' conftest.er1 >conftest.err
7330 cat conftest.err >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.$ac_objext; then
7337 if test "$CYGWIN" = "yes"; then
7338 { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7339 echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; }
7344 cat >>confdefs.h <<\_ACEOF
7348 { echo "$as_me:$LINENO: result: yes" >&5
7349 echo "${ECHO_T}yes" >&6; }
7350 { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7351 echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; }
7352 cat >conftest.$ac_ext <<_ACEOF
7355 cat confdefs.h >>conftest.$ac_ext
7356 cat >>conftest.$ac_ext <<_ACEOF
7357 /* end confdefs.h. */
7359 #include <sys/types.h>
7360 #include <sys/socket.h>
7361 #include <netinet/in.h>
7365 struct in6_addr a = in6addr_any;
7371 rm -f conftest.$ac_objext
7372 if { (ac_try="$ac_compile"
7374 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7375 *) ac_try_echo
=$ac_try;;
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378 (eval "$ac_compile") 2>conftest.er1
7380 grep -v '^ *+' conftest.er1
>conftest.err
7382 cat conftest.err
>&5
7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 (exit $ac_status); } && {
7385 test -z "$ac_c_werror_flag" ||
7386 test ! -s conftest.err
7387 } && test -s conftest.
$ac_objext; then
7388 { echo "$as_me:$LINENO: result: yes" >&5
7389 echo "${ECHO_T}yes" >&6; }
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.
$ac_ext >&5
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7398 cat >>confdefs.h
<<\_ACEOF
7399 #define NO_IN6ADDR_ANY 1
7407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.
$ac_ext >&5
7414 { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7423 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7424 if test "${ac_cv_search_crypt+set}" = set; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 ac_func_search_save_LIBS
=$LIBS
7428 cat >conftest.
$ac_ext <<_ACEOF
7431 cat confdefs.h
>>conftest.
$ac_ext
7432 cat >>conftest.
$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7435 /* Override any GCC internal prototype to avoid an error.
7436 Use char because int might match the return type of a GCC
7437 builtin and then its argument prototype would still apply. */
7450 for ac_lib
in '' crypt descrypt
; do
7451 if test -z "$ac_lib"; then
7452 ac_res
="none required"
7455 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7457 rm -f conftest.
$ac_objext conftest
$ac_exeext
7458 if { (ac_try
="$ac_link"
7460 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_link") 2>conftest.er1
7466 grep -v '^ *+' conftest.er1 >conftest.err
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest$ac_exeext &&
7474 $as_test_x conftest$ac_exeext; then
7475 ac_cv_search_crypt=$ac_res
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485 if test "${ac_cv_search_crypt+set}" = set; then
7489 if test "${ac_cv_search_crypt+set}" = set; then
7492 ac_cv_search_crypt=no
7495 LIBS=$ac_func_search_save_LIBS
7497 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7498 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7499 ac_res=$ac_cv_search_crypt
7500 if test "$ac_res" != no; then
7501 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7506 CRYPT_LIB=$ac_cv_search_crypt
7508 if test "$CRYPT_LIB" = "none required"; then
7510 elif test "$CRYPT_LIB" = no; then
7516 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7524 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7525 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
7526 if test "${gcc_cv_header_string+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7530 cat >conftest.$ac_ext <<_ACEOF
7532 #include <strings.h>
7534 rm -f conftest.$ac_objext
7535 if { (ac_try="$ac_compile"
7537 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7538 *) ac_try_echo
=$ac_try;;
7540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7541 (eval "$ac_compile") 2>conftest.er1
7543 grep -v '^ *+' conftest.er1
>conftest.err
7545 cat conftest.err
>&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); } && {
7548 test -z "$ac_c_werror_flag" ||
7549 test ! -s conftest.err
7550 } && test -s conftest.
$ac_objext; then
7551 gcc_cv_header_string
=yes
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.
$ac_ext >&5
7556 gcc_cv_header_string
=no
7559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7562 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7563 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
7565 if test "$gcc_cv_header_string" = "yes"; then
7567 cat >>confdefs.h
<<\_ACEOF
7568 #define STRING_WITH_STRINGS 1
7573 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7574 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7575 if test "${ac_cv_c_bigendian+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 # See if sys/param.h defines the BYTE_ORDER macro.
7579 cat >conftest.
$ac_ext <<_ACEOF
7582 cat confdefs.h
>>conftest.
$ac_ext
7583 cat >>conftest.
$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #include <sys/types.h>
7586 #include <sys/param.h>
7591 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7592 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7600 rm -f conftest.
$ac_objext
7601 if { (ac_try
="$ac_compile"
7603 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_compile") 2>conftest.er1
7609 grep -v '^ *+' conftest.er1 >conftest.err
7611 cat conftest.err >&5
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && {
7614 test -z "$ac_c_werror_flag" ||
7615 test ! -s conftest.err
7616 } && test -s conftest.$ac_objext; then
7617 # It does; now see whether it defined to BIG_ENDIAN or not.
7618 cat >conftest.$ac_ext <<_ACEOF
7621 cat confdefs.h >>conftest.$ac_ext
7622 cat >>conftest.$ac_ext <<_ACEOF
7623 /* end confdefs.h. */
7624 #include <sys/types.h>
7625 #include <sys/param.h>
7630 #if BYTE_ORDER != BIG_ENDIAN
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7641 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7642 *) ac_try_echo
=$ac_try;;
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645 (eval "$ac_compile") 2>conftest.er1
7647 grep -v '^ *+' conftest.er1
>conftest.err
7649 cat conftest.err
>&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } && {
7652 test -z "$ac_c_werror_flag" ||
7653 test ! -s conftest.err
7654 } && test -s conftest.
$ac_objext; then
7655 ac_cv_c_bigendian
=yes
7657 echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.
$ac_ext >&5
7660 ac_cv_c_bigendian
=no
7663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.
$ac_ext >&5
7668 # It does not; compile a test program.
7669 if test "$cross_compiling" = yes; then
7670 # try to guess the endianness by grepping values into an object file
7671 ac_cv_c_bigendian
=unknown
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7679 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7680 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7681 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7682 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7683 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7687 _ascii (); _ebcdic ();
7692 rm -f conftest.
$ac_objext
7693 if { (ac_try
="$ac_compile"
7695 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7710 ac_cv_c_bigendian=yes
7712 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7713 if test "$ac_cv_c_bigendian" = unknown; then
7714 ac_cv_c_bigendian=no
7716 # finding both strings is unlikely to happen, but who knows?
7717 ac_cv_c_bigendian=unknown
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 $ac_includes_default
7740 /* Are we little or big endian? From Harbison&Steele. */
7744 char c[sizeof (long int)];
7747 return u.c[sizeof (long int) - 1] == 1;
7753 rm -f conftest$ac_exeext
7754 if { (ac_try="$ac_link"
7756 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7757 *) ac_try_echo
=$ac_try;;
7759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7760 (eval "$ac_link") 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7764 { (case "(($ac_try" in
7765 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_try") 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773 ac_cv_c_bigendian=no
7775 echo "$as_me: program exited with status $ac_status" >&5
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7780 ac_cv_c_bigendian=yes
7782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7791 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7792 case $ac_cv_c_bigendian in
7795 cat >>confdefs.h <<\_ACEOF
7796 #define WORDS_BIGENDIAN 1
7802 { { echo "$as_me:$LINENO: error: unknown endianness
7803 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7804 echo "$as_me: error: unknown endianness
7805 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7806 { (exit 1); exit 1; }; } ;;
7810 if test "${ac_cv_header_stdarg_h+set}" = set; then
7811 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7812 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7813 if test "${ac_cv_header_stdarg_h+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7817 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7819 # Is the header compilable?
7820 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7821 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7822 cat >conftest.$ac_ext <<_ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 $ac_includes_default
7831 rm -f conftest.$ac_objext
7832 if { (ac_try="$ac_compile"
7834 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7835 *) ac_try_echo
=$ac_try;;
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_compile") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1
>conftest.err
7842 cat conftest.err
>&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest.
$ac_objext; then
7848 ac_header_compiler
=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.
$ac_ext >&5
7853 ac_header_compiler
=no
7856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7858 echo "${ECHO_T}$ac_header_compiler" >&6; }
7860 # Is the header present?
7861 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7862 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7863 cat >conftest.
$ac_ext <<_ACEOF
7866 cat confdefs.h
>>conftest.
$ac_ext
7867 cat >>conftest.
$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7871 if { (ac_try
="$ac_cpp conftest.$ac_ext"
7873 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7879 grep -v '^ *+' conftest.er1 >conftest.err
7881 cat conftest.err >&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } >/dev/null && {
7884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7885 test ! -s conftest.err
7887 ac_header_preproc=yes
7889 echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7892 ac_header_preproc=no
7895 rm -f conftest.err conftest.$ac_ext
7896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7897 echo "${ECHO_T}$ac_header_preproc" >&6; }
7899 # So? What about this header?
7900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7902 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7903 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7905 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7906 ac_header_preproc=yes
7909 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7910 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7912 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7914 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7916 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7918 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7920 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7924 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7925 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7926 if test "${ac_cv_header_stdarg_h+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 ac_cv_header_stdarg_h=$ac_header_preproc
7931 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7932 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7935 if test $ac_cv_header_stdarg_h = yes; then
7938 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7939 echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7940 { (exit 1); exit 1; }; }
7946 if test "$ac_cv_c_compiler_gnu" = yes; then
7948 { echo "$as_me:$LINENO: checking for strlcpy" >&5
7949 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
7951 CFLAGS="$CFLAGS -Wimplicit -Werror"
7953 cat >conftest.$ac_ext <<_ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7964 char *a = malloc(6);
7965 strlcpy(a, "hello", 6);
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
7975 *) ac_try_echo
=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1
>conftest.err
7982 cat conftest.err
>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest
$ac_exeext &&
7988 $as_test_x conftest
$ac_exeext; then
7989 { echo "$as_me:$LINENO: result: yes" >&5
7990 echo "${ECHO_T}yes" >&6; }
7992 cat >>confdefs.h
<<\_ACEOF
7993 #define HAVE_STRLCPY 1
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.
$ac_ext >&5
8000 { echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6; }
8005 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8006 conftest
$ac_exeext conftest.
$ac_ext
8008 { echo "$as_me:$LINENO: checking for strlcat" >&5
8009 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
8010 cat >conftest.
$ac_ext <<_ACEOF
8013 cat confdefs.h
>>conftest.
$ac_ext
8014 cat >>conftest.
$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8021 char *a = malloc(6);
8023 strlcat(a, "hello", 6);
8029 rm -f conftest.
$ac_objext conftest
$ac_exeext
8030 if { (ac_try
="$ac_link"
8032 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_link") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1 >conftest.err
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest$ac_exeext &&
8046 $as_test_x conftest$ac_exeext; then
8047 { echo "$as_me:$LINENO: result: yes" >&5
8048 echo "${ECHO_T}yes" >&6; }
8050 cat >>confdefs.h <<\_ACEOF
8051 #define HAVE_STRLCAT 1
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 { echo "$as_me:$LINENO: result: no" >&5
8059 echo "${ECHO_T}no" >&6; }
8063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8064 conftest$ac_exeext conftest.$ac_ext
8073 for ac_func in strlcat strlcpy
8075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 cat >conftest.$ac_ext <<_ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8089 #define $ac_func innocuous_$ac_func
8091 /* System header to define __stub macros and hopefully few prototypes,
8092 which can conflict with char $ac_func (); below.
8093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8094 <limits.h> exists even on freestanding compilers. */
8097 # include <limits.h>
8099 # include <assert.h>
8104 /* Override any GCC internal prototype to avoid an error.
8105 Use char because int might match the return type of a GCC
8106 builtin and then its argument prototype would still apply. */
8111 /* The GNU C library defines this for functions which it implements
8112 to always fail with ENOSYS. Some functions are actually named
8113 something starting with __ and the normal name is an alias. */
8114 #if defined __stub_$ac_func || defined __stub___$ac_func
8126 rm -f conftest.$ac_objext conftest$ac_exeext
8127 if { (ac_try="$ac_link"
8129 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8130 *) ac_try_echo
=$ac_try;;
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133 (eval "$ac_link") 2>conftest.er1
8135 grep -v '^ *+' conftest.er1
>conftest.err
8137 cat conftest.err
>&5
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } && {
8140 test -z "$ac_c_werror_flag" ||
8141 test ! -s conftest.err
8142 } && test -s conftest
$ac_exeext &&
8143 $as_test_x conftest
$ac_exeext; then
8144 eval "$as_ac_var=yes"
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.
$ac_ext >&5
8149 eval "$as_ac_var=no"
8152 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8153 conftest
$ac_exeext conftest.
$ac_ext
8155 ac_res
=`eval echo '${'$as_ac_var'}'`
8156 { echo "$as_me:$LINENO: result: $ac_res" >&5
8157 echo "${ECHO_T}$ac_res" >&6; }
8158 if test `eval echo '${'$as_ac_var'}'` = yes; then
8159 cat >>confdefs.h
<<_ACEOF
8160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8169 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
8170 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
8171 if test "${ac_cv_type_u_int32_t+set}" = set; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 cat >conftest.
$ac_ext <<_ACEOF
8177 cat confdefs.h
>>conftest.
$ac_ext
8178 cat >>conftest.
$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 $ac_includes_default
8181 typedef u_int32_t ac__type_new_;
8185 if ((ac__type_new_ *) 0)
8187 if (sizeof (ac__type_new_))
8193 rm -f conftest.
$ac_objext
8194 if { (ac_try
="$ac_compile"
8196 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200 (eval "$ac_compile") 2>conftest.er1
8202 grep -v '^ *+' conftest.er1 >conftest.err
8204 cat conftest.err >&5
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } && {
8207 test -z "$ac_c_werror_flag" ||
8208 test ! -s conftest.err
8209 } && test -s conftest.$ac_objext; then
8210 ac_cv_type_u_int32_t=yes
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8215 ac_cv_type_u_int32_t=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8221 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
8222 if test $ac_cv_type_u_int32_t = yes; then
8226 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8227 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
8228 if test "${ac_cv_type_uint32_t+set}" = set; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 typedef uint32_t ac__type_new_;
8242 if ((ac__type_new_ *) 0)
8244 if (sizeof (ac__type_new_))
8250 rm -f conftest.$ac_objext
8251 if { (ac_try="$ac_compile"
8253 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8254 *) ac_try_echo
=$ac_try;;
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257 (eval "$ac_compile") 2>conftest.er1
8259 grep -v '^ *+' conftest.er1
>conftest.err
8261 cat conftest.err
>&5
8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263 (exit $ac_status); } && {
8264 test -z "$ac_c_werror_flag" ||
8265 test ! -s conftest.err
8266 } && test -s conftest.
$ac_objext; then
8267 ac_cv_type_uint32_t
=yes
8269 echo "$as_me: failed program was:" >&5
8270 sed 's/^/| /' conftest.
$ac_ext >&5
8272 ac_cv_type_uint32_t
=no
8275 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8277 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8278 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
8279 if test $ac_cv_type_uint32_t = yes; then
8282 cat >>confdefs.h
<<\_ACEOF
8283 #define u_int32_t uint32_t
8289 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8290 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8292 cat >>confdefs.h
<<\_ACEOF
8293 #define u_int32_t unsigned long int
8303 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
8304 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
8305 if test "${ac_cv_type_u_int16_t+set}" = set; then
8306 echo $ECHO_N "(cached) $ECHO_C" >&6
8308 cat >conftest.
$ac_ext <<_ACEOF
8311 cat confdefs.h
>>conftest.
$ac_ext
8312 cat >>conftest.
$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 typedef u_int16_t ac__type_new_;
8319 if ((ac__type_new_ *) 0)
8321 if (sizeof (ac__type_new_))
8327 rm -f conftest.
$ac_objext
8328 if { (ac_try
="$ac_compile"
8330 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest.$ac_objext; then
8344 ac_cv_type_u_int16_t=yes
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 ac_cv_type_u_int16_t=no
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8355 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
8356 if test $ac_cv_type_u_int16_t = yes; then
8360 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8361 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8362 if test "${ac_cv_type_uint16_t+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 typedef uint16_t ac__type_new_;
8376 if ((ac__type_new_ *) 0)
8378 if (sizeof (ac__type_new_))
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8387 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8388 *) ac_try_echo
=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_compile") 2>conftest.er1
8393 grep -v '^ *+' conftest.er1
>conftest.err
8395 cat conftest.err
>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && {
8398 test -z "$ac_c_werror_flag" ||
8399 test ! -s conftest.err
8400 } && test -s conftest.
$ac_objext; then
8401 ac_cv_type_uint16_t
=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.
$ac_ext >&5
8406 ac_cv_type_uint16_t
=no
8409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8411 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8412 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8413 if test $ac_cv_type_uint16_t = yes; then
8416 cat >>confdefs.h
<<\_ACEOF
8417 #define u_int16_t uint16_t
8423 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8424 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8426 cat >>confdefs.h
<<\_ACEOF
8427 #define u_int16_t unsigned short int
8437 { echo "$as_me:$LINENO: checking for in_port_t" >&5
8438 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
8439 if test "${ac_cv_type_in_port_t+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
8442 cat >conftest.
$ac_ext <<_ACEOF
8445 cat confdefs.h
>>conftest.
$ac_ext
8446 cat >>conftest.
$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448 #include <sys/types.h>
8449 #include <netinet/in.h>
8451 typedef in_port_t ac__type_new_;
8455 if ((ac__type_new_ *) 0)
8457 if (sizeof (ac__type_new_))
8463 rm -f conftest.
$ac_objext
8464 if { (ac_try
="$ac_compile"
8466 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compile") 2>conftest.er1
8472 grep -v '^ *+' conftest.er1 >conftest.err
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest.$ac_objext; then
8480 ac_cv_type_in_port_t=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_cv_type_in_port_t=no
8488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8490 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8491 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
8492 if test $ac_cv_type_in_port_t = yes; then
8496 cat >>confdefs.h <<\_ACEOF
8497 #define in_port_t u_int16_t
8503 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
8504 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
8505 if test "${ac_cv_type_sa_family_t+set}" = set; then
8506 echo $ECHO_N "(cached) $ECHO_C" >&6
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 #include <sys/types.h>
8515 #include <sys/socket.h>
8517 typedef sa_family_t ac__type_new_;
8521 if ((ac__type_new_ *) 0)
8523 if (sizeof (ac__type_new_))
8529 rm -f conftest.$ac_objext
8530 if { (ac_try="$ac_compile"
8532 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8533 *) ac_try_echo
=$ac_try;;
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8538 grep -v '^ *+' conftest.er1
>conftest.err
8540 cat conftest.err
>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.
$ac_objext; then
8546 ac_cv_type_sa_family_t
=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.
$ac_ext >&5
8551 ac_cv_type_sa_family_t
=no
8554 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8556 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8557 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
8558 if test $ac_cv_type_sa_family_t = yes; then
8562 cat >>confdefs.h
<<\_ACEOF
8563 #define sa_family_t u_int16_t
8569 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8570 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8571 if test "${ac_cv_type_uintptr_t+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 cat >conftest.
$ac_ext <<_ACEOF
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 typedef uintptr_t ac__type_new_;
8585 if ((ac__type_new_ *) 0)
8587 if (sizeof (ac__type_new_))
8593 rm -f conftest.
$ac_objext
8594 if { (ac_try
="$ac_compile"
8596 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest.$ac_objext; then
8610 ac_cv_type_uintptr_t=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 ac_cv_type_uintptr_t=no
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8621 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
8622 if test $ac_cv_type_uintptr_t = yes; then
8624 cat >>confdefs.h <<_ACEOF
8625 #define HAVE_UINTPTR_T 1
8638 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8640 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8641 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8642 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8654 #define $ac_func innocuous_$ac_func
8656 /* System header to define __stub macros and hopefully few prototypes,
8657 which can conflict with char $ac_func (); below.
8658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8659 <limits.h> exists even on freestanding compilers. */
8662 # include <limits.h>
8664 # include <assert.h>
8669 /* Override any GCC internal prototype to avoid an error.
8670 Use char because int might match the return type of a GCC
8671 builtin and then its argument prototype would still apply. */
8676 /* The GNU C library defines this for functions which it implements
8677 to always fail with ENOSYS. Some functions are actually named
8678 something starting with __ and the normal name is an alias. */
8679 #if defined __stub_$ac_func || defined __stub___$ac_func
8691 rm -f conftest.$ac_objext conftest$ac_exeext
8692 if { (ac_try="$ac_link"
8694 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8695 *) ac_try_echo
=$ac_try;;
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698 (eval "$ac_link") 2>conftest.er1
8700 grep -v '^ *+' conftest.er1
>conftest.err
8702 cat conftest.err
>&5
8703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704 (exit $ac_status); } && {
8705 test -z "$ac_c_werror_flag" ||
8706 test ! -s conftest.err
8707 } && test -s conftest
$ac_exeext &&
8708 $as_test_x conftest
$ac_exeext; then
8709 eval "$as_ac_var=yes"
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.
$ac_ext >&5
8714 eval "$as_ac_var=no"
8717 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8718 conftest
$ac_exeext conftest.
$ac_ext
8720 ac_res
=`eval echo '${'$as_ac_var'}'`
8721 { echo "$as_me:$LINENO: result: $ac_res" >&5
8722 echo "${ECHO_T}$ac_res" >&6; }
8723 if test `eval echo '${'$as_ac_var'}'` = yes; then
8724 cat >>confdefs.h
<<_ACEOF
8725 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8732 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8733 # for constant arguments. Useless!
8734 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8735 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8736 if test "${ac_cv_working_alloca_h+set}" = set; then
8737 echo $ECHO_N "(cached) $ECHO_C" >&6
8739 cat >conftest.
$ac_ext <<_ACEOF
8742 cat confdefs.h
>>conftest.
$ac_ext
8743 cat >>conftest.
$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8749 char *p = (char *) alloca (2 * sizeof (int));
8755 rm -f conftest.
$ac_objext conftest
$ac_exeext
8756 if { (ac_try
="$ac_link"
8758 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_link") 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest$ac_exeext &&
8772 $as_test_x conftest$ac_exeext; then
8773 ac_cv_working_alloca_h=yes
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_cv_working_alloca_h=no
8781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8782 conftest$ac_exeext conftest.$ac_ext
8784 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8785 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8786 if test $ac_cv_working_alloca_h = yes; then
8788 cat >>confdefs.h <<\_ACEOF
8789 #define HAVE_ALLOCA_H 1
8794 { echo "$as_me:$LINENO: checking for alloca" >&5
8795 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8796 if test "${ac_cv_func_alloca_works+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 cat >conftest.$ac_ext <<_ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8806 # define alloca __builtin_alloca
8809 # include <malloc.h>
8810 # define alloca _alloca
8812 # ifdef HAVE_ALLOCA_H
8813 # include <alloca.h>
8818 # ifndef alloca /* predefined by HP cc +Olibcalls */
8829 char *p = (char *) alloca (1);
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8838 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
8839 *) ac_try_echo
=$ac_try;;
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>conftest.er1
8844 grep -v '^ *+' conftest.er1
>conftest.err
8846 cat conftest.err
>&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } && {
8849 test -z "$ac_c_werror_flag" ||
8850 test ! -s conftest.err
8851 } && test -s conftest
$ac_exeext &&
8852 $as_test_x conftest
$ac_exeext; then
8853 ac_cv_func_alloca_works
=yes
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.
$ac_ext >&5
8858 ac_cv_func_alloca_works
=no
8861 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8862 conftest
$ac_exeext conftest.
$ac_ext
8864 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8865 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8867 if test $ac_cv_func_alloca_works = yes; then
8869 cat >>confdefs.h
<<\_ACEOF
8870 #define HAVE_ALLOCA 1
8874 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8875 # that cause trouble. Some versions do not even contain alloca or
8876 # contain a buggy version. If you still want to use their alloca,
8877 # use ar to extract alloca.o from them instead of compiling alloca.c.
8879 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
8881 cat >>confdefs.h
<<\_ACEOF
8886 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8887 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8888 if test "${ac_cv_os_cray+set}" = set; then
8889 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 cat >conftest.
$ac_ext <<_ACEOF
8894 cat confdefs.h
>>conftest.
$ac_ext
8895 cat >>conftest.
$ac_ext <<_ACEOF
8896 /* end confdefs.h. */
8897 #if defined CRAY && ! defined CRAY2
8904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8905 $EGREP "webecray" >/dev
/null
2>&1; then
8913 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8914 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8915 if test $ac_cv_os_cray = yes; then
8916 for ac_func
in _getb67 GETB67 getb67
; do
8917 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8920 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 cat >conftest.
$ac_ext <<_ACEOF
8926 cat confdefs.h
>>conftest.
$ac_ext
8927 cat >>conftest.
$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8931 #define $ac_func innocuous_$ac_func
8933 /* System header to define __stub macros and hopefully few prototypes,
8934 which can conflict with char $ac_func (); below.
8935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8936 <limits.h> exists even on freestanding compilers. */
8939 # include <limits.h>
8941 # include <assert.h>
8946 /* Override any GCC internal prototype to avoid an error.
8947 Use char because int might match the return type of a GCC
8948 builtin and then its argument prototype would still apply. */
8953 /* The GNU C library defines this for functions which it implements
8954 to always fail with ENOSYS. Some functions are actually named
8955 something starting with __ and the normal name is an alias. */
8956 #if defined __stub_$ac_func || defined __stub___$ac_func
8968 rm -f conftest.
$ac_objext conftest
$ac_exeext
8969 if { (ac_try
="$ac_link"
8971 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_link") 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest$ac_exeext &&
8985 $as_test_x conftest$ac_exeext; then
8986 eval "$as_ac_var=yes"
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.$ac_ext >&5
8991 eval "$as_ac_var=no"
8994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8995 conftest$ac_exeext conftest.$ac_ext
8997 ac_res=`eval echo '${'$as_ac_var'}'`
8998 { echo "$as_me:$LINENO: result: $ac_res" >&5
8999 echo "${ECHO_T}$ac_res" >&6; }
9000 if test `eval echo '${'$as_ac_var'}'` = yes; then
9002 cat >>confdefs.h <<_ACEOF
9003 #define CRAY_STACKSEG_END $ac_func
9012 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9013 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9014 if test "${ac_cv_c_stack_direction+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 if test "$cross_compiling" = yes; then
9018 ac_cv_c_stack_direction=0
9020 cat >conftest.$ac_ext <<_ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9028 find_stack_direction ()
9030 static char *addr = 0;
9035 return find_stack_direction ();
9038 return (&dummy > addr) ? 1 : -1;
9044 return find_stack_direction () < 0;
9047 rm -f conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9050 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9051 *) ac_try_echo
=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_link") 2>&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9058 { (case "(($ac_try" in
9059 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_try") 2>&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 ac_cv_c_stack_direction=1
9069 echo "$as_me: program exited with status $ac_status" >&5
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_cv_c_stack_direction=-1
9076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9081 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9082 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9084 cat >>confdefs.h <<_ACEOF
9085 #define STACK_DIRECTION $ac_cv_c_stack_direction
9093 { echo "$as_me:$LINENO: checking for nanosleep" >&5
9094 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
9095 if test "${ac_cv_func_nanosleep+set}" = set; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9104 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
9105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9106 #define nanosleep innocuous_nanosleep
9108 /* System header to define __stub macros and hopefully few prototypes,
9109 which can conflict with char nanosleep (); below.
9110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9111 <limits.h> exists even on freestanding compilers. */
9114 # include <limits.h>
9116 # include <assert.h>
9121 /* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9128 /* The GNU C library defines this for functions which it implements
9129 to always fail with ENOSYS. Some functions are actually named
9130 something starting with __ and the normal name is an alias. */
9131 #if defined __stub_nanosleep || defined __stub___nanosleep
9138 return nanosleep ();
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (ac_try="$ac_link"
9146 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9147 *) ac_try_echo
=$ac_try;;
9149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150 (eval "$ac_link") 2>conftest.er1
9152 grep -v '^ *+' conftest.er1
>conftest.err
9154 cat conftest.err
>&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest
$ac_exeext &&
9160 $as_test_x conftest
$ac_exeext; then
9161 ac_cv_func_nanosleep
=yes
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.
$ac_ext >&5
9166 ac_cv_func_nanosleep
=no
9169 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9170 conftest
$ac_exeext conftest.
$ac_ext
9172 { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
9173 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
9174 if test $ac_cv_func_nanosleep = yes; then
9177 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9178 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
9179 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 ac_check_lib_save_LIBS
=$LIBS
9184 cat >conftest.
$ac_ext <<_ACEOF
9187 cat confdefs.h
>>conftest.
$ac_ext
9188 cat >>conftest.
$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9191 /* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
9201 return nanosleep ();
9206 rm -f conftest.
$ac_objext conftest
$ac_exeext
9207 if { (ac_try
="$ac_link"
9209 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_link") 2>conftest.er1
9215 grep -v '^ *+' conftest.er1 >conftest.err
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } && {
9220 test -z "$ac_c_werror_flag" ||
9221 test ! -s conftest.err
9222 } && test -s conftest$ac_exeext &&
9223 $as_test_x conftest$ac_exeext; then
9224 ac_cv_lib_rt_nanosleep=yes
9226 echo "$as_me: failed program was:" >&5
9227 sed 's/^/| /' conftest.$ac_ext >&5
9229 ac_cv_lib_rt_nanosleep=no
9232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9233 conftest$ac_exeext conftest.$ac_ext
9234 LIBS=$ac_check_lib_save_LIBS
9236 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9237 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
9238 if test $ac_cv_lib_rt_nanosleep = yes; then
9241 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9242 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
9243 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9244 echo $ECHO_N "(cached) $ECHO_C" >&6
9246 ac_check_lib_save_LIBS=$LIBS
9247 LIBS="-lposix4 $LIBS"
9248 cat >conftest.$ac_ext <<_ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9255 /* Override any GCC internal prototype to avoid an error.
9256 Use char because int might match the return type of a GCC
9257 builtin and then its argument prototype would still apply. */
9265 return nanosleep ();
9270 rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9273 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9274 *) ac_try_echo
=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_link") 2>conftest.er1
9279 grep -v '^ *+' conftest.er1
>conftest.err
9281 cat conftest.err
>&5
9282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283 (exit $ac_status); } && {
9284 test -z "$ac_c_werror_flag" ||
9285 test ! -s conftest.err
9286 } && test -s conftest
$ac_exeext &&
9287 $as_test_x conftest
$ac_exeext; then
9288 ac_cv_lib_posix4_nanosleep
=yes
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.
$ac_ext >&5
9293 ac_cv_lib_posix4_nanosleep
=no
9296 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9297 conftest
$ac_exeext conftest.
$ac_ext
9298 LIBS
=$ac_check_lib_save_LIBS
9300 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9301 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
9302 if test $ac_cv_lib_posix4_nanosleep = yes; then
9303 LIBS
="${LIBS} -lposix4"
9311 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
9313 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9314 echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
9317 cat >>confdefs.h
<<\_ACEOF
9318 #define HAVE_NANOSLEEP 1
9323 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
9324 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9325 # Check whether --enable-openssl was given.
9326 if test "${enable_openssl+set}" = set; then
9327 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
9329 cf_enable_openssl
="auto"
9333 if test "$cf_enable_openssl" != "no" ; then
9334 cf_openssl_basedir
=""
9335 if test "$cf_enable_openssl" != "auto" &&
9336 test "$cf_enable_openssl" != "yes" ; then
9337 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9339 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
9340 /usr
/local
/openssl
; do
9341 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9342 cf_openssl_basedir
="${dirs}"
9348 if test ! -z "$cf_openssl_basedir"; then
9349 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9350 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
9351 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
9353 cf_openssl_basedir
=""
9356 if test -f "/usr/include/openssl/opensslv.h" ; then
9357 cf_openssl_basedir
="/usr"
9361 if test ! -z "$cf_openssl_basedir"; then
9362 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9363 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
9364 cf_enable_openssl
="yes"
9366 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9367 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
9368 cf_enable_openssl
="no"
9370 unset cf_openssl_basedir
9372 { echo "$as_me:$LINENO: result: disabled" >&5
9373 echo "${ECHO_T}disabled" >&6; }
9376 save_CPPFLAGS
="$CPPFLAGS"
9377 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
9379 LIBS
="$LIBS $SSL_LIBS"
9380 if test "$cf_enable_openssl" != no
; then
9381 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9382 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
9383 if test "$cross_compiling" = yes; then
9384 cf_openssl_version_ok
=no
9386 cat >conftest.
$ac_ext <<_ACEOF
9389 cat confdefs.h
>>conftest.
$ac_ext
9390 cat >>conftest.
$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392 #include <openssl/opensslv.h>
9397 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9398 exit(0); else exit(1);
9403 rm -f conftest
$ac_exeext
9404 if { (ac_try
="$ac_link"
9406 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_link") 2>&5
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9414 { (case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9416 *) ac_try_echo
=$ac_try;;
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_try") 2>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 cf_openssl_version_ok
=yes
9425 echo "$as_me: program exited with status $ac_status" >&5
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.
$ac_ext >&5
9430 cf_openssl_version_ok
=no
9432 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9437 if test "$cf_openssl_version_ok" = yes; then
9438 { echo "$as_me:$LINENO: result: found" >&5
9439 echo "${ECHO_T}found" >&6; }
9444 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
9446 { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9447 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
9448 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 ac_check_lib_save_LIBS
=$LIBS
9452 LIBS
="-lcrypto $LIBS"
9453 cat >conftest.
$ac_ext <<_ACEOF
9456 cat confdefs.h
>>conftest.
$ac_ext
9457 cat >>conftest.
$ac_ext <<_ACEOF
9458 /* end confdefs.h. */
9460 /* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
9475 rm -f conftest.
$ac_objext conftest
$ac_exeext
9476 if { (ac_try
="$ac_link"
9478 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9479 *) ac_try_echo=$ac_try;;
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482 (eval "$ac_link") 2>conftest.er1
9484 grep -v '^ *+' conftest.er1 >conftest.err
9486 cat conftest.err >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); } && {
9489 test -z "$ac_c_werror_flag" ||
9490 test ! -s conftest.err
9491 } && test -s conftest$ac_exeext &&
9492 $as_test_x conftest$ac_exeext; then
9493 ac_cv_lib_crypto_RSA_free=yes
9495 echo "$as_me: failed program was:" >&5
9496 sed 's/^/| /' conftest.$ac_ext >&5
9498 ac_cv_lib_crypto_RSA_free=no
9501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9502 conftest$ac_exeext conftest.$ac_ext
9503 LIBS=$ac_check_lib_save_LIBS
9505 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9506 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
9507 if test $ac_cv_lib_crypto_RSA_free = yes; then
9508 cat >>confdefs.h <<_ACEOF
9509 #define HAVE_LIBCRYPTO 1
9512 LIBS="-lcrypto $LIBS"
9516 SSL_LIBS="$SSL_LIBS -lcrypto"
9517 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9519 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9520 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
9524 CPPFLAGS="$save_CPPFLAGS"
9531 # Check whether --with-zlib-path was given.
9532 if test "${with_zlib_path+set}" = set; then
9533 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9537 # Check whether --enable-zlib was given.
9538 if test "${enable_zlib+set}" = set; then
9539 enableval=$enable_zlib; zlib=$enableval
9545 if test "$zlib" = yes; then
9547 if test "${ac_cv_header_zlib_h+set}" = set; then
9548 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9549 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9550 if test "${ac_cv_header_zlib_h+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9554 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9556 # Is the header compilable?
9557 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
9558 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
9559 cat >conftest.$ac_ext <<_ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565 $ac_includes_default
9568 rm -f conftest.$ac_objext
9569 if { (ac_try="$ac_compile"
9571 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9572 *) ac_try_echo
=$ac_try;;
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_compile") 2>conftest.er1
9577 grep -v '^ *+' conftest.er1
>conftest.err
9579 cat conftest.err
>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && {
9582 test -z "$ac_c_werror_flag" ||
9583 test ! -s conftest.err
9584 } && test -s conftest.
$ac_objext; then
9585 ac_header_compiler
=yes
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.
$ac_ext >&5
9590 ac_header_compiler
=no
9593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9595 echo "${ECHO_T}$ac_header_compiler" >&6; }
9597 # Is the header present?
9598 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
9599 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
9600 cat >conftest.
$ac_ext <<_ACEOF
9603 cat confdefs.h
>>conftest.
$ac_ext
9604 cat >>conftest.
$ac_ext <<_ACEOF
9605 /* end confdefs.h. */
9608 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9610 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9611 *) ac_try_echo=$ac_try;;
9613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9616 grep -v '^ *+' conftest.er1 >conftest.err
9618 cat conftest.err >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } >/dev/null && {
9621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9622 test ! -s conftest.err
9624 ac_header_preproc=yes
9626 echo "$as_me: failed program was:" >&5
9627 sed 's/^/| /' conftest.$ac_ext >&5
9629 ac_header_preproc=no
9632 rm -f conftest.err conftest.$ac_ext
9633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9634 echo "${ECHO_T}$ac_header_preproc" >&6; }
9636 # So? What about this header?
9637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9639 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9640 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9642 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9643 ac_header_preproc=yes
9646 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9647 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9649 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9651 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9653 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9655 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9657 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9661 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9662 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9663 if test "${ac_cv_header_zlib_h+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 ac_cv_header_zlib_h=$ac_header_preproc
9668 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9669 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9672 if test $ac_cv_header_zlib_h = yes; then
9674 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9675 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
9676 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 ac_check_lib_save_LIBS=$LIBS
9681 cat >conftest.$ac_ext <<_ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9688 /* Override any GCC internal prototype to avoid an error.
9689 Use char because int might match the return type of a GCC
9690 builtin and then its argument prototype would still apply. */
9694 char zlibVersion ();
9698 return zlibVersion ();
9703 rm -f conftest.$ac_objext conftest$ac_exeext
9704 if { (ac_try="$ac_link"
9706 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9707 *) ac_try_echo
=$ac_try;;
9709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9710 (eval "$ac_link") 2>conftest.er1
9712 grep -v '^ *+' conftest.er1
>conftest.err
9714 cat conftest.err
>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } && {
9717 test -z "$ac_c_werror_flag" ||
9718 test ! -s conftest.err
9719 } && test -s conftest
$ac_exeext &&
9720 $as_test_x conftest
$ac_exeext; then
9721 ac_cv_lib_z_zlibVersion
=yes
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.
$ac_ext >&5
9726 ac_cv_lib_z_zlibVersion
=no
9729 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9730 conftest
$ac_exeext conftest.
$ac_ext
9731 LIBS
=$ac_check_lib_save_LIBS
9733 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9734 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
9735 if test $ac_cv_lib_z_zlibVersion = yes; then
9740 cat >>confdefs.h
<<\_ACEOF
9759 # Check whether --enable-poll was given.
9760 if test "${enable_poll+set}" = set; then
9761 enableval
=$enable_poll; if test $enableval = yes; then
9762 SELECT_TYPE_EXPLICIT
="poll"
9770 # Check whether --enable-select was given.
9771 if test "${enable_select+set}" = set; then
9772 enableval
=$enable_select; if test $enableval = yes; then
9773 SELECT_TYPE_EXPLICIT
="select"
9781 # Check whether --enable-kqueue was given.
9782 if test "${enable_kqueue+set}" = set; then
9783 enableval
=$enable_kqueue; if test $enableval = yes; then
9784 SELECT_TYPE_EXPLICIT
="kqueue"
9792 # Check whether --enable-devpoll was given.
9793 if test "${enable_devpoll+set}" = set; then
9794 enableval
=$enable_devpoll; if test $enableval = yes; then
9795 SELECT_TYPE_EXPLICIT
="devpoll"
9798 for ac_header
in sys
/devpoll.h devpoll.h
9800 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9801 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9804 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 ac_res
=`eval echo '${'$as_ac_Header'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9811 # Is the header compilable?
9812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9814 cat >conftest.
$ac_ext <<_ACEOF
9817 cat confdefs.h
>>conftest.
$ac_ext
9818 cat >>conftest.
$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 #include <$ac_header>
9823 rm -f conftest.
$ac_objext
9824 if { (ac_try
="$ac_compile"
9826 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_compile") 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest.$ac_objext; then
9840 ac_header_compiler=yes
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_header_compiler=no
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9850 echo "${ECHO_T}$ac_header_compiler" >&6; }
9852 # Is the header present?
9853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9855 cat >conftest.$ac_ext <<_ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 #include <$ac_header>
9863 if { (ac_try="$ac_cpp conftest.$ac_ext"
9865 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
9866 *) ac_try_echo
=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1
>conftest.err
9873 cat conftest.err
>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } >/dev
/null
&& {
9876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9879 ac_header_preproc
=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.
$ac_ext >&5
9884 ac_header_preproc
=no
9887 rm -f conftest.err conftest.
$ac_ext
9888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9889 echo "${ECHO_T}$ac_header_preproc" >&6; }
9891 # So? What about this header?
9892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9898 ac_header_preproc
=yes
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9918 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 eval "$as_ac_Header=\$ac_header_preproc"
9923 ac_res
=`eval echo '${'$as_ac_Header'}'`
9924 { echo "$as_me:$LINENO: result: $ac_res" >&5
9925 echo "${ECHO_T}$ac_res" >&6; }
9928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9929 cat >>confdefs.h
<<_ACEOF
9930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9944 # Check whether --enable-epoll was given.
9945 if test "${enable_epoll+set}" = set; then
9946 enableval
=$enable_epoll; if test $enableval = yes; then
9947 SELECT_TYPE_EXPLICIT
="epoll"
9949 for ac_func
in epoll_ctl
9951 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9954 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.
$ac_ext <<_ACEOF
9960 cat confdefs.h
>>conftest.
$ac_ext
9961 cat >>conftest.
$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define $ac_func innocuous_$ac_func
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char $ac_func (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9973 # include <limits.h>
9975 # include <assert.h>
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_$ac_func || defined __stub___$ac_func
10002 rm -f conftest.
$ac_objext conftest
$ac_exeext
10003 if { (ac_try
="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10009 (eval "$ac_link") 2>conftest.er1
10011 grep -v '^ *+' conftest.er1 >conftest.err
10013 cat conftest.err >&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest$ac_exeext &&
10019 $as_test_x conftest$ac_exeext; then
10020 eval "$as_ac_var=yes"
10022 echo "$as_me: failed program was:" >&5
10023 sed 's/^/| /' conftest.$ac_ext >&5
10025 eval "$as_ac_var=no"
10028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10029 conftest$ac_exeext conftest.$ac_ext
10031 ac_res=`eval echo '${'$as_ac_var'}'`
10032 { echo "$as_me:$LINENO: result: $ac_res" >&5
10033 echo "${ECHO_T}$ac_res" >&6; }
10034 if test `eval echo '${'$as_ac_var'}'` = yes; then
10035 cat >>confdefs.h <<_ACEOF
10036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10052 { echo "$as_me:$LINENO: checking whether to modify confdir" >&5
10053 echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
10055 # Check whether --with-confdir was given.
10056 if test "${with_confdir+set}" = set; then
10057 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
10058 { echo "$as_me:$LINENO: result: yes" >&5
10059 echo "${ECHO_T}yes" >&6; }
10061 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10062 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10063 ac_define_dir=`eval echo $confdir`
10064 ac_define_dir=`eval echo $ac_define_dir`
10065 ETC_DIR="$ac_define_dir"
10068 cat >>confdefs.h <<_ACEOF
10069 #define ETC_DIR "$ac_define_dir"
10076 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10077 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10078 eval echo \""$confdir"\"
10083 confdir='${prefix}/etc'
10084 { echo "$as_me:$LINENO: result: no" >&5
10085 echo "${ECHO_T}no" >&6; }
10087 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10088 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10089 ac_define_dir=`eval echo $confdir`
10090 ac_define_dir=`eval echo $ac_define_dir`
10091 ETC_DIR="$ac_define_dir"
10094 cat >>confdefs.h <<_ACEOF
10095 #define ETC_DIR "$ac_define_dir"
10102 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10103 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10104 eval echo \""$confdir"\"
10113 { echo "$as_me:$LINENO: checking whether to modify logdir" >&5
10114 echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
10116 # Check whether --with-logdir was given.
10117 if test "${with_logdir+set}" = set; then
10118 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
10119 { echo "$as_me:$LINENO: result: yes" >&5
10120 echo "${ECHO_T}yes" >&6; }
10122 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10123 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10124 ac_define_dir=`eval echo $logdir`
10125 ac_define_dir=`eval echo $ac_define_dir`
10126 LOG_DIR="$ac_define_dir"
10129 cat >>confdefs.h <<_ACEOF
10130 #define LOG_DIR "$ac_define_dir"
10137 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10138 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10139 eval echo \""$logdir"\"
10144 logdir='${prefix}/logs'
10145 { echo "$as_me:$LINENO: result: no" >&5
10146 echo "${ECHO_T}no" >&6; }
10148 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10149 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10150 ac_define_dir=`eval echo $logdir`
10151 ac_define_dir=`eval echo $ac_define_dir`
10152 LOG_DIR="$ac_define_dir"
10155 cat >>confdefs.h <<_ACEOF
10156 #define LOG_DIR "$ac_define_dir"
10163 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10164 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10165 eval echo \""$logdir"\"
10174 { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
10175 echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
10177 # Check whether --with-helpdir was given.
10178 if test "${with_helpdir+set}" = set; then
10179 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
10180 { echo "$as_me:$LINENO: result: yes" >&5
10181 echo "${ECHO_T}yes" >&6; }
10183 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10185 ac_define_dir=`eval echo $helpdir`
10186 ac_define_dir=`eval echo $ac_define_dir`
10187 HELP_DIR="$ac_define_dir"
10190 cat >>confdefs.h <<_ACEOF
10191 #define HELP_DIR "$ac_define_dir"
10198 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10199 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10200 eval echo \""$helpdir"\"
10205 helpdir='${prefix}/help'
10206 { echo "$as_me:$LINENO: result: no" >&5
10207 echo "${ECHO_T}no" >&6; }
10209 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10211 ac_define_dir=`eval echo $helpdir`
10212 ac_define_dir=`eval echo $ac_define_dir`
10213 HELP_DIR="$ac_define_dir"
10216 cat >>confdefs.h <<_ACEOF
10217 #define HELP_DIR "$ac_define_dir"
10224 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10225 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10226 eval echo \""$helpdir"\"
10235 { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
10236 echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
10238 # Check whether --with-moduledir was given.
10239 if test "${with_moduledir+set}" = set; then
10240 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
10241 { echo "$as_me:$LINENO: result: yes" >&5
10242 echo "${ECHO_T}yes" >&6; }
10244 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10246 ac_define_dir=`eval echo $moduledir`
10247 ac_define_dir=`eval echo $ac_define_dir`
10248 MODULE_DIR="$ac_define_dir"
10251 cat >>confdefs.h <<_ACEOF
10252 #define MODULE_DIR "$ac_define_dir"
10259 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10260 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10261 eval echo \""$moduledir"\"
10266 moduledir='${prefix}/modules'
10267 { echo "$as_me:$LINENO: result: no" >&5
10268 echo "${ECHO_T}no" >&6; }
10270 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10272 ac_define_dir=`eval echo $moduledir`
10273 ac_define_dir=`eval echo $ac_define_dir`
10274 MODULE_DIR="$ac_define_dir"
10277 cat >>confdefs.h <<_ACEOF
10278 #define MODULE_DIR "$ac_define_dir"
10285 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
10286 test "x$exec_prefix" = xNONE
&& exec_prefix
="${prefix}"
10287 eval echo \""$moduledir"\"
10295 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
10296 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
10297 echo "Forcing $SELECT_TYPE to be enabled"
10300 if test ! "x$use_select" = "xno"; then
10302 for ac_func in select
10304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 cat >conftest.$ac_ext <<_ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10317 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10318 #define $ac_func innocuous_$ac_func
10320 /* System header to define __stub macros and hopefully few prototypes,
10321 which can conflict with char $ac_func (); below.
10322 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10323 <limits.h> exists even on freestanding compilers. */
10326 # include <limits.h>
10328 # include <assert.h>
10333 /* Override any GCC internal prototype to avoid an error.
10334 Use char because int might match the return type of a GCC
10335 builtin and then its argument prototype would still apply. */
10340 /* The GNU C library defines this for functions which it implements
10341 to always fail with ENOSYS. Some functions are actually named
10342 something starting with __ and the normal name is an alias. */
10343 #if defined __stub_$ac_func || defined __stub___$ac_func
10350 return $ac_func ();
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (ac_try="$ac_link"
10357 case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10359 *) ac_try_echo
=$ac_try;;
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_link") 2>conftest.er1
10364 grep -v '^ *+' conftest.er1
>conftest.err
10366 cat conftest.err
>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && {
10369 test -z "$ac_c_werror_flag" ||
10370 test ! -s conftest.err
10371 } && test -s conftest
$ac_exeext &&
10372 $as_test_x conftest
$ac_exeext; then
10373 eval "$as_ac_var=yes"
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.
$ac_ext >&5
10378 eval "$as_ac_var=no"
10381 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10382 conftest
$ac_exeext conftest.
$ac_ext
10384 ac_res
=`eval echo '${'$as_ac_var'}'`
10385 { echo "$as_me:$LINENO: result: $ac_res" >&5
10386 echo "${ECHO_T}$ac_res" >&6; }
10387 if test `eval echo '${'$as_ac_var'}'` = yes; then
10388 cat >>confdefs.h
<<_ACEOF
10389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10397 if test "x$haveselect" = "xyes" ; then
10398 SELECT_TYPE
="select"
10402 if test ! "x$use_poll" = "xno"; then
10404 for ac_func
in poll
10406 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10409 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 cat >conftest.
$ac_ext <<_ACEOF
10415 cat confdefs.h
>>conftest.
$ac_ext
10416 cat >>conftest.
$ac_ext <<_ACEOF
10417 /* end confdefs.h. */
10418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10420 #define $ac_func innocuous_$ac_func
10422 /* System header to define __stub macros and hopefully few prototypes,
10423 which can conflict with char $ac_func (); below.
10424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10425 <limits.h> exists even on freestanding compilers. */
10428 # include <limits.h>
10430 # include <assert.h>
10435 /* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
10442 /* The GNU C library defines this for functions which it implements
10443 to always fail with ENOSYS. Some functions are actually named
10444 something starting with __ and the normal name is an alias. */
10445 #if defined __stub_$ac_func || defined __stub___$ac_func
10452 return $ac_func ();
10457 rm -f conftest.
$ac_objext conftest
$ac_exeext
10458 if { (ac_try
="$ac_link"
10459 case "(($ac_try" in
10460 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10461 *) ac_try_echo=$ac_try;;
10463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10464 (eval "$ac_link") 2>conftest.er1
10466 grep -v '^ *+' conftest.er1 >conftest.err
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } && {
10471 test -z "$ac_c_werror_flag" ||
10472 test ! -s conftest.err
10473 } && test -s conftest$ac_exeext &&
10474 $as_test_x conftest$ac_exeext; then
10475 eval "$as_ac_var=yes"
10477 echo "$as_me: failed program was:" >&5
10478 sed 's/^/| /' conftest.$ac_ext >&5
10480 eval "$as_ac_var=no"
10483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10484 conftest$ac_exeext conftest.$ac_ext
10486 ac_res=`eval echo '${'$as_ac_var'}'`
10487 { echo "$as_me:$LINENO: result: $ac_res" >&5
10488 echo "${ECHO_T}$ac_res" >&6; }
10489 if test `eval echo '${'$as_ac_var'}'` = yes; then
10490 cat >>confdefs.h <<_ACEOF
10491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10499 if test "x$havepoll" = "xyes" ; then
10504 if test ! "x$use_devpoll" = "xno"; then
10505 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
10506 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
10507 if test -c "/dev/poll"; then
10508 { echo "$as_me:$LINENO: result: yes" >&5
10509 echo "${ECHO_T}yes" >&6; }
10512 for ac_header in devpoll.h sys/devpoll.h
10514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 ac_res=`eval echo '${'$as_ac_Header'}'`
10522 { echo "$as_me:$LINENO: result: $ac_res" >&5
10523 echo "${ECHO_T}$ac_res" >&6; }
10525 # Is the header compilable?
10526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10528 cat >conftest.$ac_ext <<_ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 $ac_includes_default
10535 #include <$ac_header>
10537 rm -f conftest.$ac_objext
10538 if { (ac_try="$ac_compile"
10539 case "(($ac_try" in
10540 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10541 *) ac_try_echo
=$ac_try;;
10543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10544 (eval "$ac_compile") 2>conftest.er1
10546 grep -v '^ *+' conftest.er1
>conftest.err
10548 cat conftest.err
>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); } && {
10551 test -z "$ac_c_werror_flag" ||
10552 test ! -s conftest.err
10553 } && test -s conftest.
$ac_objext; then
10554 ac_header_compiler
=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.
$ac_ext >&5
10559 ac_header_compiler
=no
10562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10564 echo "${ECHO_T}$ac_header_compiler" >&6; }
10566 # Is the header present?
10567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10569 cat >conftest.
$ac_ext <<_ACEOF
10572 cat confdefs.h
>>conftest.
$ac_ext
10573 cat >>conftest.
$ac_ext <<_ACEOF
10574 /* end confdefs.h. */
10575 #include <$ac_header>
10577 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10578 case "(($ac_try" in
10579 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10580 *) ac_try_echo=$ac_try;;
10582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10585 grep -v '^ *+' conftest.er1 >conftest.err
10587 cat conftest.err >&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } >/dev/null && {
10590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10591 test ! -s conftest.err
10593 ac_header_preproc=yes
10595 echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10598 ac_header_preproc=no
10601 rm -f conftest.err conftest.$ac_ext
10602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10603 echo "${ECHO_T}$ac_header_preproc" >&6; }
10605 # So? What about this header?
10606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10612 ac_header_preproc=yes
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 eval "$as_ac_Header=\$ac_header_preproc"
10637 ac_res=`eval echo '${'$as_ac_Header'}'`
10638 { echo "$as_me:$LINENO: result: $ac_res" >&5
10639 echo "${ECHO_T}$ac_res" >&6; }
10642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10643 cat >>confdefs.h <<_ACEOF
10644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10651 SELECT_TYPE="devpoll"
10653 { echo "$as_me:$LINENO: result: no" >&5
10654 echo "${ECHO_T}no" >&6; }
10658 if test ! "x$use_kqueue" = "xno"; then
10660 for ac_func in kevent
10662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10665 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 cat >conftest.$ac_ext <<_ACEOF
10671 cat confdefs.h >>conftest.$ac_ext
10672 cat >>conftest.$ac_ext <<_ACEOF
10673 /* end confdefs.h. */
10674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10676 #define $ac_func innocuous_$ac_func
10678 /* System header to define __stub macros and hopefully few prototypes,
10679 which can conflict with char $ac_func (); below.
10680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10681 <limits.h> exists even on freestanding compilers. */
10684 # include <limits.h>
10686 # include <assert.h>
10691 /* Override any GCC internal prototype to avoid an error.
10692 Use char because int might match the return type of a GCC
10693 builtin and then its argument prototype would still apply. */
10698 /* The GNU C library defines this for functions which it implements
10699 to always fail with ENOSYS. Some functions are actually named
10700 something starting with __ and the normal name is an alias. */
10701 #if defined __stub_$ac_func || defined __stub___$ac_func
10708 return $ac_func ();
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10717 *) ac_try_echo
=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>conftest.er1
10722 grep -v '^ *+' conftest.er1
>conftest.err
10724 cat conftest.err
>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest
$ac_exeext &&
10730 $as_test_x conftest
$ac_exeext; then
10731 eval "$as_ac_var=yes"
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.
$ac_ext >&5
10736 eval "$as_ac_var=no"
10739 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10740 conftest
$ac_exeext conftest.
$ac_ext
10742 ac_res
=`eval echo '${'$as_ac_var'}'`
10743 { echo "$as_me:$LINENO: result: $ac_res" >&5
10744 echo "${ECHO_T}$ac_res" >&6; }
10745 if test `eval echo '${'$as_ac_var'}'` = yes; then
10746 cat >>confdefs.h
<<_ACEOF
10747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10755 if test "x$havekqueue" = "xyes" ; then
10756 SELECT_TYPE
="kqueue"
10760 if test ! "x$use_epoll" = "xno"; then
10762 for ac_func
in epoll_ctl
10764 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10765 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10767 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 cat >conftest.
$ac_ext <<_ACEOF
10773 cat confdefs.h
>>conftest.
$ac_ext
10774 cat >>conftest.
$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10778 #define $ac_func innocuous_$ac_func
10780 /* System header to define __stub macros and hopefully few prototypes,
10781 which can conflict with char $ac_func (); below.
10782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10783 <limits.h> exists even on freestanding compilers. */
10786 # include <limits.h>
10788 # include <assert.h>
10793 /* Override any GCC internal prototype to avoid an error.
10794 Use char because int might match the return type of a GCC
10795 builtin and then its argument prototype would still apply. */
10800 /* The GNU C library defines this for functions which it implements
10801 to always fail with ENOSYS. Some functions are actually named
10802 something starting with __ and the normal name is an alias. */
10803 #if defined __stub_$ac_func || defined __stub___$ac_func
10810 return $ac_func ();
10815 rm -f conftest.
$ac_objext conftest
$ac_exeext
10816 if { (ac_try
="$ac_link"
10817 case "(($ac_try" in
10818 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_link") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest$ac_exeext &&
10832 $as_test_x conftest$ac_exeext; then
10833 eval "$as_ac_var=yes"
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 eval "$as_ac_var=no"
10841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10842 conftest$ac_exeext conftest.$ac_ext
10844 ac_res=`eval echo '${'$as_ac_var'}'`
10845 { echo "$as_me:$LINENO: result: $ac_res" >&5
10846 echo "${ECHO_T}$ac_res" >&6; }
10847 if test `eval echo '${'$as_ac_var'}'` = yes; then
10848 cat >>confdefs.h <<_ACEOF
10849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10857 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10858 if test "x$haveepoll" = "xyes" ; then
10859 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10860 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
10861 if test "$cross_compiling" = yes; then
10862 { echo "$as_me:$LINENO: result: no" >&5
10863 echo "${ECHO_T}no" >&6; }
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 #include <stdint.h>
10872 #include <sys/param.h>
10873 #include <sys/types.h>
10874 #include <sys/epoll.h>
10875 #include <sys/syscall.h>
10876 #include <unistd.h>
10879 main(int argc, char **argv)
10883 epfd = epoll_create(256);
10884 exit (epfd == -1 ? 1 : 0);
10887 rm -f conftest$ac_exeext
10888 if { (ac_try="$ac_link"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10891 *) ac_try_echo
=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_link") 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10898 { (case "(($ac_try" in
10899 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10900 *) ac_try_echo=$ac_try;;
10902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10903 (eval "$ac_try") 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 { echo "$as_me:$LINENO: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6; }
10910 cat >>confdefs.h <<\_ACEOF
10911 #define HAVE_EPOLL 1
10914 SELECT_TYPE="epoll"
10916 echo "$as_me: program exited with status $ac_status" >&5
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ( exit $ac_status )
10921 { echo "$as_me:$LINENO: result: no" >&5
10922 echo "${ECHO_T}no" >&6; }
10924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10931 haveepollsyscall=no
10933 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10934 if test "x$haveepoll" = "xno" ; then
10935 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10936 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
10937 if test "$cross_compiling" = yes; then
10938 { echo "$as_me:$LINENO: result: no" >&5
10939 echo "${ECHO_T}no" >&6; }
10941 cat >conftest.$ac_ext <<_ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h. */
10947 #include <stdint.h>
10948 #include <sys/param.h>
10949 #include <sys/types.h>
10950 #include <sys/epoll.h>
10951 #include <sys/syscall.h>
10952 #include <unistd.h>
10955 epoll_create(int size)
10957 return (syscall(__NR_epoll_create, size));
10961 main(int argc, char **argv)
10965 epfd = epoll_create(256);
10966 exit (epfd == -1 ? 1 : 0);
10969 rm -f conftest$ac_exeext
10970 if { (ac_try="$ac_link"
10971 case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
10973 *) ac_try_echo
=$ac_try;;
10975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_link") 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10980 { (case "(($ac_try" in
10981 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
10982 *) ac_try_echo=$ac_try;;
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985 (eval "$ac_try") 2>&5
10987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); }; }; then
10989 { echo "$as_me:$LINENO: result: yes" >&5
10990 echo "${ECHO_T}yes" >&6; }
10992 cat >>confdefs.h <<\_ACEOF
10993 #define HAVE_EPOLL 1
10996 SELECT_TYPE="epoll"
10998 echo "$as_me: program exited with status $ac_status" >&5
10999 echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11002 ( exit $ac_status )
11003 { echo "$as_me:$LINENO: result: no" >&5
11004 echo "${ECHO_T}no" >&6; }
11006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11017 if test -z "$SELECT_TYPE"; then
11018 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
11019 echo "$as_me: error: Unable to find a usable IO interface" >&2;}
11020 { (exit 1); exit 1; }; }
11023 echo "Using $SELECT_TYPE for select loop."
11026 cat >>confdefs.h <<_ACEOF
11027 #define SELECT_TYPE "$SELECT_TYPE"
11034 # Check whether --enable-assert was given.
11035 if test "${enable_assert+set}" = set; then
11036 enableval=$enable_assert; assert=$enableval
11042 if test "$assert" = no; then
11044 cat >>confdefs.h <<\_ACEOF
11048 elif test "$assert" = soft; then
11050 cat >>confdefs.h <<\_ACEOF
11051 #define SOFT_ASSERT 1
11055 cat >>confdefs.h <<\_ACEOF
11059 elif test "$assert" = yes; then
11063 { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
11064 echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
11065 # Check whether --enable-iodebug was given.
11066 if test "${enable_iodebug+set}" = set; then
11067 enableval=$enable_iodebug; iodebug=$enableval
11073 if test "$iodebug" = yes; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define USE_IODEBUG_HOOKS 1
11079 { echo "$as_me:$LINENO: result: yes" >&5
11080 echo "${ECHO_T}yes" >&6; }
11082 { echo "$as_me:$LINENO: result: no" >&5
11083 echo "${ECHO_T}no" >&6; }
11087 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
11088 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
11089 # Check whether --enable-profile was given.
11090 if test "${enable_profile+set}" = set; then
11091 enableval=$enable_profile; profile=$enableval
11097 if test "$profile" = yes; then
11098 if test "$ac_cv_c_compiler_gnu" = yes; then
11099 IRC_CFLAGS="$IRC_CFLAGS -pg"
11100 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
11101 echo "${ECHO_T}yes, adding -pg" >&6; }
11103 cat >>confdefs.h <<\_ACEOF
11104 #define CHARYBDIS_PROFILE 1
11108 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
11109 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
11112 { echo "$as_me:$LINENO: result: no" >&5
11113 echo "${ECHO_T}no" >&6; }
11116 # Check whether --enable-balloc was given.
11117 if test "${enable_balloc+set}" = set; then
11118 enableval=$enable_balloc; balloc=$enableval
11124 if test "$balloc" = no; then
11126 cat >>confdefs.h <<\_ACEOF
11132 # Check whether --enable-small-net was given.
11133 if test "${enable_small_net+set}" = set; then
11134 enableval=$enable_small_net; small_net=$enableval
11140 if test "$small_net" = yes; then
11142 cat >>confdefs.h <<\_ACEOF
11143 #define NICKNAMEHISTORYLENGTH 1500
11147 cat >>confdefs.h <<\_ACEOF
11148 #define CHANNEL_HEAP_SIZE 256
11152 cat >>confdefs.h <<\_ACEOF
11153 #define BAN_HEAP_SIZE 128
11157 cat >>confdefs.h <<\_ACEOF
11158 #define CLIENT_HEAP_SIZE 256
11162 cat >>confdefs.h <<\_ACEOF
11163 #define LCLIENT_HEAP_SIZE 128
11167 cat >>confdefs.h <<\_ACEOF
11168 #define PCLIENT_HEAP_SIZE 32
11172 cat >>confdefs.h <<\_ACEOF
11173 #define USER_HEAP_SIZE 128
11177 cat >>confdefs.h <<\_ACEOF
11178 #define DNODE_HEAP_SIZE 256
11182 cat >>confdefs.h <<\_ACEOF
11183 #define TOPIC_HEAP_SIZE 256
11187 cat >>confdefs.h <<\_ACEOF
11188 #define LINEBUF_HEAP_SIZE 128
11192 cat >>confdefs.h <<\_ACEOF
11193 #define MEMBER_HEAP_SIZE 256
11197 cat >>confdefs.h <<\_ACEOF
11198 #define ND_HEAP_SIZE 128
11202 cat >>confdefs.h <<\_ACEOF
11203 #define CONFITEM_HEAP_SIZE 128
11207 cat >>confdefs.h <<\_ACEOF
11208 #define MONITOR_HEAP_SIZE 128
11213 cat >>confdefs.h <<\_ACEOF
11214 #define NICKNAMEHISTORYLENGTH 15000
11218 cat >>confdefs.h <<\_ACEOF
11219 #define CHANNEL_HEAP_SIZE 8192
11223 cat >>confdefs.h <<\_ACEOF
11224 #define BAN_HEAP_SIZE 4096
11228 cat >>confdefs.h <<\_ACEOF
11229 #define CLIENT_HEAP_SIZE 8192
11233 cat >>confdefs.h <<\_ACEOF
11234 #define LCLIENT_HEAP_SIZE 1024
11238 cat >>confdefs.h <<\_ACEOF
11239 #define PCLIENT_HEAP_SIZE 256
11243 cat >>confdefs.h <<\_ACEOF
11244 #define USER_HEAP_SIZE 8192
11248 cat >>confdefs.h <<\_ACEOF
11249 #define DNODE_HEAP_SIZE 8192
11253 cat >>confdefs.h <<\_ACEOF
11254 #define TOPIC_HEAP_SIZE 4096
11258 cat >>confdefs.h <<\_ACEOF
11259 #define LINEBUF_HEAP_SIZE 2048
11263 cat >>confdefs.h <<\_ACEOF
11264 #define MEMBER_HEAP_SIZE 32768
11268 cat >>confdefs.h <<\_ACEOF
11269 #define ND_HEAP_SIZE 512
11273 cat >>confdefs.h <<\_ACEOF
11274 #define CONFITEM_HEAP_SIZE 256
11278 cat >>confdefs.h <<\_ACEOF
11279 #define MONITOR_HEAP_SIZE 1024
11285 # Check whether --with-nicklen was given.
11286 if test "${with_nicklen+set}" = set; then
11287 withval=$with_nicklen;
11288 if test $withval -ge 50; then
11290 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
11291 echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
11302 # Check whether --with-topiclen was given.
11303 if test "${with_topiclen+set}" = set; then
11304 withval=$with_topiclen;
11305 if test $withval -ge 390; then
11307 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11308 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11319 cat >>confdefs.h <<_ACEOF
11320 #define TOPICLEN ${TOPICLEN}
11324 cat >>confdefs.h <<_ACEOF
11325 #define NICKLEN (${NICKLEN}+1)
11329 # Check whether --enable-shared-modules was given.
11330 if test "${enable_shared_modules+set}" = set; then
11331 enableval=$enable_shared_modules; shared_modules=$enableval
11333 shared_modules="yes"
11337 if test "$shared_modules" = yes; then
11339 if test "$CYGWIN" = yes; then
11340 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11341 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11342 shared_modules="no"
11345 if test "$CC" = tcc -a "$TenDRA" = "no"; then
11346 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11347 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11348 shared_modules="no"
11352 if test "$shared_modules" = yes; then
11353 DYNLINK_C=dynlink.c
11355 for ac_header in dlfcn.h
11357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11362 echo $ECHO_N "(cached) $ECHO_C" >&6
11364 ac_res=`eval echo '${'$as_ac_Header'}'`
11365 { echo "$as_me:$LINENO: result: $ac_res" >&5
11366 echo "${ECHO_T}$ac_res" >&6; }
11368 # Is the header compilable?
11369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11371 cat >conftest.$ac_ext <<_ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 $ac_includes_default
11378 #include <$ac_header>
11380 rm -f conftest.$ac_objext
11381 if { (ac_try="$ac_compile"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11384 *) ac_try_echo
=$ac_try;;
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_compile") 2>conftest.er1
11389 grep -v '^ *+' conftest.er1
>conftest.err
11391 cat conftest.err
>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest.
$ac_objext; then
11397 ac_header_compiler
=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.
$ac_ext >&5
11402 ac_header_compiler
=no
11405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11407 echo "${ECHO_T}$ac_header_compiler" >&6; }
11409 # Is the header present?
11410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11412 cat >conftest.
$ac_ext <<_ACEOF
11415 cat confdefs.h
>>conftest.
$ac_ext
11416 cat >>conftest.
$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 #include <$ac_header>
11420 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11421 case "(($ac_try" in
11422 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } >/dev/null && {
11433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11436 ac_header_preproc=yes
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 ac_header_preproc=no
11444 rm -f conftest.err conftest.$ac_ext
11445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446 echo "${ECHO_T}$ac_header_preproc" >&6; }
11448 # So? What about this header?
11449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11455 ac_header_preproc=yes
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 echo $ECHO_N "(cached) $ECHO_C" >&6
11478 eval "$as_ac_Header=\$ac_header_preproc"
11480 ac_res=`eval echo '${'$as_ac_Header'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11486 cat >>confdefs.h <<_ACEOF
11487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11494 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11495 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
11496 if test "${ac_cv_search_shl_load+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 ac_func_search_save_LIBS=$LIBS
11500 cat >conftest.$ac_ext <<_ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h. */
11507 /* Override any GCC internal prototype to avoid an error.
11508 Use char because int might match the return type of a GCC
11509 builtin and then its argument prototype would still apply. */
11517 return shl_load ();
11522 for ac_lib in '' dld; do
11523 if test -z "$ac_lib"; then
11524 ac_res="none required"
11527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11529 rm -f conftest.$ac_objext conftest$ac_exeext
11530 if { (ac_try="$ac_link"
11531 case "(($ac_try" in
11532 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11533 *) ac_try_echo
=$ac_try;;
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536 (eval "$ac_link") 2>conftest.er1
11538 grep -v '^ *+' conftest.er1
>conftest.err
11540 cat conftest.err
>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } && {
11543 test -z "$ac_c_werror_flag" ||
11544 test ! -s conftest.err
11545 } && test -s conftest
$ac_exeext &&
11546 $as_test_x conftest
$ac_exeext; then
11547 ac_cv_search_shl_load
=$ac_res
11549 echo "$as_me: failed program was:" >&5
11550 sed 's/^/| /' conftest.
$ac_ext >&5
11555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11557 if test "${ac_cv_search_shl_load+set}" = set; then
11561 if test "${ac_cv_search_shl_load+set}" = set; then
11564 ac_cv_search_shl_load
=no
11566 rm conftest.
$ac_ext
11567 LIBS
=$ac_func_search_save_LIBS
11569 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11570 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11571 ac_res
=$ac_cv_search_shl_load
11572 if test "$ac_res" != no
; then
11573 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11576 cat >>confdefs.h
<<\_ACEOF
11577 #define HAVE_SHL_LOAD 1
11581 MOD_TARGET
=hpux_shared
11582 SEDOBJ
="s/\.o/.sl/g"
11586 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11587 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11588 if test "${ac_cv_search_dlopen+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 ac_func_search_save_LIBS
=$LIBS
11592 cat >conftest.
$ac_ext <<_ACEOF
11595 cat confdefs.h
>>conftest.
$ac_ext
11596 cat >>conftest.
$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11614 for ac_lib
in '' dl c_r
; do
11615 if test -z "$ac_lib"; then
11616 ac_res
="none required"
11619 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11621 rm -f conftest.
$ac_objext conftest
$ac_exeext
11622 if { (ac_try
="$ac_link"
11623 case "(($ac_try" in
11624 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_link") 2>conftest.er1
11630 grep -v '^ *+' conftest.er1 >conftest.err
11632 cat conftest.err >&5
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest$ac_exeext &&
11638 $as_test_x conftest$ac_exeext; then
11639 ac_cv_search_dlopen=$ac_res
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11649 if test "${ac_cv_search_dlopen+set}" = set; then
11653 if test "${ac_cv_search_dlopen+set}" = set; then
11656 ac_cv_search_dlopen=no
11658 rm conftest.$ac_ext
11659 LIBS=$ac_func_search_save_LIBS
11661 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11662 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11663 ac_res=$ac_cv_search_dlopen
11664 if test "$ac_res" != no; then
11665 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11668 cat >>confdefs.h <<\_ACEOF
11669 #define HAVE_DLOPEN 1
11673 MOD_TARGET=shared_modules
11674 SEDOBJ="s/\.o/.so/g"
11675 if test "$AppleGCC" = yes; then
11677 for ac_header in mach-o/dyld.h
11679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11684 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 ac_res=`eval echo '${'$as_ac_Header'}'`
11687 { echo "$as_me:$LINENO: result: $ac_res" >&5
11688 echo "${ECHO_T}$ac_res" >&6; }
11690 # Is the header compilable?
11691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11693 cat >conftest.$ac_ext <<_ACEOF
11696 cat confdefs.h >>conftest.$ac_ext
11697 cat >>conftest.$ac_ext <<_ACEOF
11698 /* end confdefs.h. */
11699 $ac_includes_default
11700 #include <$ac_header>
11702 rm -f conftest.$ac_objext
11703 if { (ac_try="$ac_compile"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11706 *) ac_try_echo
=$ac_try;;
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_compile") 2>conftest.er1
11711 grep -v '^ *+' conftest.er1
>conftest.err
11713 cat conftest.err
>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest.
$ac_objext; then
11719 ac_header_compiler
=yes
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.
$ac_ext >&5
11724 ac_header_compiler
=no
11727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11729 echo "${ECHO_T}$ac_header_compiler" >&6; }
11731 # Is the header present?
11732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11734 cat >conftest.
$ac_ext <<_ACEOF
11737 cat confdefs.h
>>conftest.
$ac_ext
11738 cat >>conftest.
$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 #include <$ac_header>
11742 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11743 case "(($ac_try" in
11744 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } >/dev/null && {
11755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11758 ac_header_preproc=yes
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 ac_header_preproc=no
11766 rm -f conftest.err conftest.$ac_ext
11767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11768 echo "${ECHO_T}$ac_header_preproc" >&6; }
11770 # So? What about this header?
11771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11773 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11774 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11776 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11777 ac_header_preproc=yes
11780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11781 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11783 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11785 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11787 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11789 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11791 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798 echo $ECHO_N "(cached) $ECHO_C" >&6
11800 eval "$as_ac_Header=\$ac_header_preproc"
11802 ac_res=`eval echo '${'$as_ac_Header'}'`
11803 { echo "$as_me:$LINENO: result: $ac_res" >&5
11804 echo "${ECHO_T}$ac_res" >&6; }
11807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11808 cat >>confdefs.h <<_ACEOF
11809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11817 { echo "$as_me:$LINENO: checking for dlsym" >&5
11818 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
11819 if test "${ac_cv_func_dlsym+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 cat >conftest.$ac_ext <<_ACEOF
11825 cat confdefs.h >>conftest.$ac_ext
11826 cat >>conftest.$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11830 #define dlsym innocuous_dlsym
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char dlsym (); below.
11834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11835 <limits.h> exists even on freestanding compilers. */
11838 # include <limits.h>
11840 # include <assert.h>
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11852 /* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855 #if defined __stub_dlsym || defined __stub___dlsym
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
11871 *) ac_try_echo
=$ac_try;;
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_link") 2>conftest.er1
11876 grep -v '^ *+' conftest.er1
>conftest.err
11878 cat conftest.err
>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } && {
11881 test -z "$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11883 } && test -s conftest
$ac_exeext &&
11884 $as_test_x conftest
$ac_exeext; then
11885 ac_cv_func_dlsym
=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.
$ac_ext >&5
11890 ac_cv_func_dlsym
=no
11893 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11894 conftest
$ac_exeext conftest.
$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11897 echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
11898 if test $ac_cv_func_dlsym = yes; then
11902 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11903 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11909 for ac_func
in dlfunc
11911 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11914 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.
$ac_ext <<_ACEOF
11920 cat confdefs.h
>>conftest.
$ac_ext
11921 cat >>conftest.
$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11925 #define $ac_func innocuous_$ac_func
11927 /* System header to define __stub macros and hopefully few prototypes,
11928 which can conflict with char $ac_func (); below.
11929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11930 <limits.h> exists even on freestanding compilers. */
11933 # include <limits.h>
11935 # include <assert.h>
11940 /* Override any GCC internal prototype to avoid an error.
11941 Use char because int might match the return type of a GCC
11942 builtin and then its argument prototype would still apply. */
11947 /* The GNU C library defines this for functions which it implements
11948 to always fail with ENOSYS. Some functions are actually named
11949 something starting with __ and the normal name is an alias. */
11950 #if defined __stub_$ac_func || defined __stub___$ac_func
11957 return $ac_func ();
11962 rm -f conftest.
$ac_objext conftest
$ac_exeext
11963 if { (ac_try
="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1 >conftest.err
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext &&
11979 $as_test_x conftest$ac_exeext; then
11980 eval "$as_ac_var=yes"
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 eval "$as_ac_var=no"
11988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11989 conftest$ac_exeext conftest.$ac_ext
11991 ac_res=`eval echo '${'$as_ac_var'}'`
11992 { echo "$as_me:$LINENO: result: $ac_res" >&5
11993 echo "${ECHO_T}$ac_res" >&6; }
11994 if test `eval echo '${'$as_ac_var'}'` = yes; then
11995 cat >>confdefs.h <<_ACEOF
11996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12015 cat >>confdefs.h <<_ACEOF
12016 #define SHARED_SUFFIX "$SUFFIX"
12020 if test "$shared_modules" = yes; then
12021 # The GNU linker requires the -export-dynamic option to make
12022 # all symbols visible in the dynamic symbol table.
12023 hold_ldflags=$LDFLAGS
12024 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
12025 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
12026 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
12027 cat >conftest.$ac_ext <<_ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12046 *) ac_try_echo
=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1
>conftest.err
12053 cat conftest.err
>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest
$ac_exeext &&
12059 $as_test_x conftest
$ac_exeext; then
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.
$ac_ext >&5
12068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12069 conftest
$ac_exeext conftest.
$ac_ext
12070 LDFLAGS
=$hold_ldflags
12072 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
12073 found
="no, IRIX ld uses -B,dynamic"
12074 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
12077 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
12078 found
="no, AIX ld uses -G -brtl"
12079 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
12082 { echo "$as_me:$LINENO: result: $found" >&5
12083 echo "${ECHO_T}$found" >&6; }
12085 if test "$found" = yes; then
12086 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
12089 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
12090 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
12091 if test "$SGS" = "yes"; then
12092 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
12093 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
12094 PICFLAGS
="-KPIC -DPIC -G"
12097 if test "$AppleGCC" = "yes"; then
12098 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
12099 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
12100 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
12102 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
12103 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
12104 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
12105 PICFLAGS
="+z -r -q -n -c"
12106 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
12107 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
12109 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
12110 { echo "$as_me:$LINENO: result: no" >&5
12111 echo "${ECHO_T}no" >&6; }
12113 { echo "$as_me:$LINENO: result: yes" >&5
12114 echo "${ECHO_T}yes" >&6; }
12115 PICFLAGS
="$PICFLAGS +ESfic"
12118 LDFLAGS
="${LDFLAGS} -Wl,-E"
12120 if test "$Tru" = yes -a "$CC" != gcc
; then
12121 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
12122 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
12123 PICFLAGS
="-shared -expect_unresolved '*' "
12124 LDFLAGS
="-call_shared"
12126 if test -z "$PICFLAGS"; then
12127 if test "$ac_cv_c_compiler_gnu" = "yes"; then
12128 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
12129 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
12130 PICFLAGS
="-fPIC -DPIC -shared"
12132 { echo "$as_me:$LINENO: result: no" >&5
12133 echo "${ECHO_T}no" >&6; }
12139 # This must be down here, or it will mess up checks like the ones
12140 # for -Wl,-export-dynamic
12142 # Check whether --enable-warnings was given.
12143 if test "${enable_warnings+set}" = set; then
12144 enableval
=$enable_warnings;
12145 IRC_CFLAGS
="$IRC_CFLAGS -O0"
12146 CFLAGS
="$IRC_CFLAGS"
12149 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
12150 echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
12151 if test "${GCC-no}" = yes
12153 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 oldcflags
="${CFLAGS-}"
12158 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
12159 cat >conftest.
$ac_ext <<_ACEOF
12162 cat confdefs.h
>>conftest.
$ac_ext
12163 cat >>conftest.
$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12166 #include <string.h>
12174 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12180 rm -f conftest.
$ac_objext
12181 if { (ac_try
="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 charybdis_cv_c_gcc_w_all=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 charybdis_cv_c_gcc_w_all=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 CFLAGS="${oldcflags}"
12209 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
12210 CWARNS="${CWARNS}-Wall "
12211 { echo "$as_me:$LINENO: result: ok" >&5
12212 echo "${ECHO_T}ok" >&6; }
12214 charybdis_cv_c_gcc_w_all=''
12215 { echo "$as_me:$LINENO: result: no" >&5
12216 echo "${ECHO_T}no" >&6; }
12219 { echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6; }
12224 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
12225 echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
12226 if test "${GCC-no}" = yes
12228 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 oldcflags="${CFLAGS-}"
12233 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 #include <string.h>
12249 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12259 *) ac_try_echo
=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_compile") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1
>conftest.err
12266 cat conftest.err
>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest.
$ac_objext; then
12272 charybdis_cv_c_gcc_w_pointer_arith
=yes
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.
$ac_ext >&5
12277 charybdis_cv_c_gcc_w_pointer_arith
=no
12280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12281 CFLAGS
="${oldcflags}"
12284 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
12285 CWARNS
="${CWARNS}-Wpointer-arith "
12286 { echo "$as_me:$LINENO: result: ok" >&5
12287 echo "${ECHO_T}ok" >&6; }
12289 charybdis_cv_c_gcc_w_pointer_arith
=''
12290 { echo "$as_me:$LINENO: result: no" >&5
12291 echo "${ECHO_T}no" >&6; }
12294 { echo "$as_me:$LINENO: result: no" >&5
12295 echo "${ECHO_T}no" >&6; }
12299 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
12300 echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
12301 if test "${GCC-no}" = yes
12303 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 oldcflags
="${CFLAGS-}"
12308 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12309 cat >conftest.
$ac_ext <<_ACEOF
12312 cat confdefs.h
>>conftest.
$ac_ext
12313 cat >>conftest.
$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12316 #include <string.h>
12324 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12330 rm -f conftest.
$ac_objext
12331 if { (ac_try
="$ac_compile"
12332 case "(($ac_try" in
12333 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_compile") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest.$ac_objext; then
12347 charybdis_cv_c_gcc_w_implicit=yes
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 charybdis_cv_c_gcc_w_implicit=no
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 CFLAGS="${oldcflags}"
12359 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
12360 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
12361 { echo "$as_me:$LINENO: result: ok" >&5
12362 echo "${ECHO_T}ok" >&6; }
12364 charybdis_cv_c_gcc_w_implicit=''
12365 { echo "$as_me:$LINENO: result: no" >&5
12366 echo "${ECHO_T}no" >&6; }
12369 { echo "$as_me:$LINENO: result: no" >&5
12370 echo "${ECHO_T}no" >&6; }
12374 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12375 echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
12376 if test "${GCC-no}" = yes
12378 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12382 oldcflags="${CFLAGS-}"
12383 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12384 cat >conftest.$ac_ext <<_ACEOF
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12391 #include <string.h>
12399 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12405 rm -f conftest.$ac_objext
12406 if { (ac_try="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12409 *) ac_try_echo
=$ac_try;;
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12414 grep -v '^ *+' conftest.er1
>conftest.err
12416 cat conftest.err
>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.
$ac_objext; then
12422 charybdis_cv_c_gcc_w_cast_align
=yes
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.
$ac_ext >&5
12427 charybdis_cv_c_gcc_w_cast_align
=no
12430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12431 CFLAGS
="${oldcflags}"
12434 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
12435 CWARNS
="${CWARNS}-Wcast-align "
12436 { echo "$as_me:$LINENO: result: ok" >&5
12437 echo "${ECHO_T}ok" >&6; }
12439 charybdis_cv_c_gcc_w_cast_align
=''
12440 { echo "$as_me:$LINENO: result: no" >&5
12441 echo "${ECHO_T}no" >&6; }
12444 { echo "$as_me:$LINENO: result: no" >&5
12445 echo "${ECHO_T}no" >&6; }
12449 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12450 echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
12451 if test "${GCC-no}" = yes
12453 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 oldcflags
="${CFLAGS-}"
12458 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12459 cat >conftest.
$ac_ext <<_ACEOF
12462 cat confdefs.h
>>conftest.
$ac_ext
12463 cat >>conftest.
$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12466 #include <string.h>
12474 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12480 rm -f conftest.
$ac_objext
12481 if { (ac_try
="$ac_compile"
12482 case "(($ac_try" in
12483 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_compile") 2>conftest.er1
12489 grep -v '^ *+' conftest.er1 >conftest.err
12491 cat conftest.err >&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } && {
12494 test -z "$ac_c_werror_flag" ||
12495 test ! -s conftest.err
12496 } && test -s conftest.$ac_objext; then
12497 charybdis_cv_c_gcc_w_cast_qual=yes
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12502 charybdis_cv_c_gcc_w_cast_qual=no
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 CFLAGS="${oldcflags}"
12509 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12510 CWARNS="${CWARNS}-Wcast-qual "
12511 { echo "$as_me:$LINENO: result: ok" >&5
12512 echo "${ECHO_T}ok" >&6; }
12514 charybdis_cv_c_gcc_w_cast_qual=''
12515 { echo "$as_me:$LINENO: result: no" >&5
12516 echo "${ECHO_T}no" >&6; }
12519 { echo "$as_me:$LINENO: result: no" >&5
12520 echo "${ECHO_T}no" >&6; }
12524 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12525 echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
12526 if test "${GCC-no}" = yes
12528 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 oldcflags="${CFLAGS-}"
12533 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12534 cat >conftest.$ac_ext <<_ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 #include <string.h>
12549 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12555 rm -f conftest.$ac_objext
12556 if { (ac_try="$ac_compile"
12557 case "(($ac_try" in
12558 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12559 *) ac_try_echo
=$ac_try;;
12561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562 (eval "$ac_compile") 2>conftest.er1
12564 grep -v '^ *+' conftest.er1
>conftest.err
12566 cat conftest.err
>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } && {
12569 test -z "$ac_c_werror_flag" ||
12570 test ! -s conftest.err
12571 } && test -s conftest.
$ac_objext; then
12572 charybdis_cv_c_gcc_prototypes
=yes
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.
$ac_ext >&5
12577 charybdis_cv_c_gcc_prototypes
=no
12580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12581 CFLAGS
="${oldcflags}"
12584 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
12585 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12586 { echo "$as_me:$LINENO: result: ok" >&5
12587 echo "${ECHO_T}ok" >&6; }
12589 charybdis_cv_c_gcc_prototypes
=''
12590 { echo "$as_me:$LINENO: result: no" >&5
12591 echo "${ECHO_T}no" >&6; }
12594 { echo "$as_me:$LINENO: result: no" >&5
12595 echo "${ECHO_T}no" >&6; }
12599 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12600 echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
12601 if test "${GCC-no}" = yes
12603 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 oldcflags
="${CFLAGS-}"
12608 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12609 cat >conftest.
$ac_ext <<_ACEOF
12612 cat confdefs.h
>>conftest.
$ac_ext
12613 cat >>conftest.
$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12616 #include <string.h>
12624 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12630 rm -f conftest.
$ac_objext
12631 if { (ac_try
="$ac_compile"
12632 case "(($ac_try" in
12633 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12634 *) ac_try_echo=$ac_try;;
12636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12637 (eval "$ac_compile") 2>conftest.er1
12639 grep -v '^ *+' conftest.er1 >conftest.err
12641 cat conftest.err >&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && {
12644 test -z "$ac_c_werror_flag" ||
12645 test ! -s conftest.err
12646 } && test -s conftest.$ac_objext; then
12647 charybdis_cv_c_gcc_parenthesis=yes
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 charybdis_cv_c_gcc_parenthesis=no
12655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656 CFLAGS="${oldcflags}"
12659 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12660 CWARNS="${CWARNS}-Wparenthesis "
12661 { echo "$as_me:$LINENO: result: ok" >&5
12662 echo "${ECHO_T}ok" >&6; }
12664 charybdis_cv_c_gcc_parenthesis=''
12665 { echo "$as_me:$LINENO: result: no" >&5
12666 echo "${ECHO_T}no" >&6; }
12669 { echo "$as_me:$LINENO: result: no" >&5
12670 echo "${ECHO_T}no" >&6; }
12674 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12675 echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
12676 if test "${GCC-no}" = yes
12678 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 oldcflags="${CFLAGS-}"
12683 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12691 #include <string.h>
12699 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12705 rm -f conftest.$ac_objext
12706 if { (ac_try="$ac_compile"
12707 case "(($ac_try" in
12708 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12709 *) ac_try_echo
=$ac_try;;
12711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12712 (eval "$ac_compile") 2>conftest.er1
12714 grep -v '^ *+' conftest.er1
>conftest.err
12716 cat conftest.err
>&5
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest.
$ac_objext; then
12722 charybdis_cv_c_gcc_w
=yes
12724 echo "$as_me: failed program was:" >&5
12725 sed 's/^/| /' conftest.
$ac_ext >&5
12727 charybdis_cv_c_gcc_w
=no
12730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12731 CFLAGS
="${oldcflags}"
12734 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
12735 CWARNS
="${CWARNS}-W -Wno-unused "
12736 { echo "$as_me:$LINENO: result: ok" >&5
12737 echo "${ECHO_T}ok" >&6; }
12739 charybdis_cv_c_gcc_w
=''
12740 { echo "$as_me:$LINENO: result: no" >&5
12741 echo "${ECHO_T}no" >&6; }
12744 { echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6; }
12749 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12750 echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
12751 if test "${GCC-no}" = yes
12753 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12754 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 oldcflags
="${CFLAGS-}"
12758 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12759 cat >conftest.
$ac_ext <<_ACEOF
12762 cat confdefs.h
>>conftest.
$ac_ext
12763 cat >>conftest.
$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12766 #include <string.h>
12774 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12780 rm -f conftest.
$ac_objext
12781 if { (ac_try
="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1 >conftest.err
12791 cat conftest.err >&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.$ac_objext; then
12797 charybdis_cv_c_gcc_w_extra=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 charybdis_cv_c_gcc_w_extra=no
12805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 CFLAGS="${oldcflags}"
12809 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12810 CWARNS="${CWARNS}-Wextra "
12811 { echo "$as_me:$LINENO: result: ok" >&5
12812 echo "${ECHO_T}ok" >&6; }
12814 charybdis_cv_c_gcc_w_extra=''
12815 { echo "$as_me:$LINENO: result: no" >&5
12816 echo "${ECHO_T}no" >&6; }
12819 { echo "$as_me:$LINENO: result: no" >&5
12820 echo "${ECHO_T}no" >&6; }
12824 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12825 echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
12826 if test "${GCC-no}" = yes
12828 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 oldcflags="${CFLAGS-}"
12833 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12834 cat >conftest.$ac_ext <<_ACEOF
12837 cat confdefs.h >>conftest.$ac_ext
12838 cat >>conftest.$ac_ext <<_ACEOF
12839 /* end confdefs.h. */
12841 #include <string.h>
12849 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12855 rm -f conftest.$ac_objext
12856 if { (ac_try="$ac_compile"
12857 case "(($ac_try" in
12858 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
12859 *) ac_try_echo
=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_compile") 2>conftest.er1
12864 grep -v '^ *+' conftest.er1
>conftest.err
12866 cat conftest.err
>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); } && {
12869 test -z "$ac_c_werror_flag" ||
12870 test ! -s conftest.err
12871 } && test -s conftest.
$ac_objext; then
12872 charybdis_cv_c_gcc_w_shadow
=yes
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.
$ac_ext >&5
12877 charybdis_cv_c_gcc_w_shadow
=no
12880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12881 CFLAGS
="${oldcflags}"
12884 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
12885 CWARNS
="${CWARNS}-Wshadow "
12886 { echo "$as_me:$LINENO: result: ok" >&5
12887 echo "${ECHO_T}ok" >&6; }
12889 charybdis_cv_c_gcc_w_shadow
=''
12890 { echo "$as_me:$LINENO: result: no" >&5
12891 echo "${ECHO_T}no" >&6; }
12894 { echo "$as_me:$LINENO: result: no" >&5
12895 echo "${ECHO_T}no" >&6; }
12899 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12900 echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
12901 if test "${GCC-no}" = yes
12903 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12904 echo $ECHO_N "(cached) $ECHO_C" >&6
12907 oldcflags
="${CFLAGS-}"
12908 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12909 cat >conftest.
$ac_ext <<_ACEOF
12912 cat confdefs.h
>>conftest.
$ac_ext
12913 cat >>conftest.
$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12916 #include <string.h>
12924 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12930 rm -f conftest.
$ac_objext
12931 if { (ac_try
="$ac_compile"
12932 case "(($ac_try" in
12933 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
12934 *) ac_try_echo=$ac_try;;
12936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12937 (eval "$ac_compile") 2>conftest.er1
12939 grep -v '^ *+' conftest.er1 >conftest.err
12941 cat conftest.err >&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && {
12944 test -z "$ac_c_werror_flag" ||
12945 test ! -s conftest.err
12946 } && test -s conftest.$ac_objext; then
12947 charybdis_cv_c_gcc_w_missing_noreturn=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 charybdis_cv_c_gcc_w_missing_noreturn=no
12955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12956 CFLAGS="${oldcflags}"
12959 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12960 CWARNS="${CWARNS}-Wmissing-noreturn "
12961 { echo "$as_me:$LINENO: result: ok" >&5
12962 echo "${ECHO_T}ok" >&6; }
12964 charybdis_cv_c_gcc_w_missing_noreturn=''
12965 { echo "$as_me:$LINENO: result: no" >&5
12966 echo "${ECHO_T}no" >&6; }
12969 { echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6; }
12974 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12975 echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
12976 if test "${GCC-no}" = yes
12978 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12982 oldcflags="${CFLAGS-}"
12983 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12984 cat >conftest.$ac_ext <<_ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12991 #include <string.h>
12999 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13005 rm -f conftest.$ac_objext
13006 if { (ac_try="$ac_compile"
13007 case "(($ac_try" in
13008 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13009 *) ac_try_echo
=$ac_try;;
13011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13012 (eval "$ac_compile") 2>conftest.er1
13014 grep -v '^ *+' conftest.er1
>conftest.err
13016 cat conftest.err
>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest.
$ac_objext; then
13022 charybdis_cv_c_gcc_w_undef
=yes
13024 echo "$as_me: failed program was:" >&5
13025 sed 's/^/| /' conftest.
$ac_ext >&5
13027 charybdis_cv_c_gcc_w_undef
=no
13030 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13031 CFLAGS
="${oldcflags}"
13034 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
13035 CWARNS
="${CWARNS}-Wundef "
13036 { echo "$as_me:$LINENO: result: ok" >&5
13037 echo "${ECHO_T}ok" >&6; }
13039 charybdis_cv_c_gcc_w_undef
=''
13040 { echo "$as_me:$LINENO: result: no" >&5
13041 echo "${ECHO_T}no" >&6; }
13044 { echo "$as_me:$LINENO: result: no" >&5
13045 echo "${ECHO_T}no" >&6; }
13049 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
13050 echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
13051 if test "${GCC-no}" = yes
13053 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13057 oldcflags
="${CFLAGS-}"
13058 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
13059 cat >conftest.
$ac_ext <<_ACEOF
13062 cat confdefs.h
>>conftest.
$ac_ext
13063 cat >>conftest.
$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13066 #include <string.h>
13074 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13080 rm -f conftest.
$ac_objext
13081 if { (ac_try
="$ac_compile"
13082 case "(($ac_try" in
13083 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_compile") 2>conftest.er1
13089 grep -v '^ *+' conftest.er1 >conftest.err
13091 cat conftest.err >&5
13092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13093 (exit $ac_status); } && {
13094 test -z "$ac_c_werror_flag" ||
13095 test ! -s conftest.err
13096 } && test -s conftest.$ac_objext; then
13097 charybdis_cv_c_gcc_w_packed=yes
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 charybdis_cv_c_gcc_w_packed=no
13105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13106 CFLAGS="${oldcflags}"
13109 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
13110 CWARNS="${CWARNS}-Wpacked "
13111 { echo "$as_me:$LINENO: result: ok" >&5
13112 echo "${ECHO_T}ok" >&6; }
13114 charybdis_cv_c_gcc_w_packed=''
13115 { echo "$as_me:$LINENO: result: no" >&5
13116 echo "${ECHO_T}no" >&6; }
13119 { echo "$as_me:$LINENO: result: no" >&5
13120 echo "${ECHO_T}no" >&6; }
13124 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
13125 echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
13126 if test "${GCC-no}" = yes
13128 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 oldcflags="${CFLAGS-}"
13133 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
13134 cat >conftest.$ac_ext <<_ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */
13141 #include <string.h>
13149 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13155 rm -f conftest.$ac_objext
13156 if { (ac_try="$ac_compile"
13157 case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13159 *) ac_try_echo
=$ac_try;;
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_compile") 2>conftest.er1
13164 grep -v '^ *+' conftest.er1
>conftest.err
13166 cat conftest.err
>&5
13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } && {
13169 test -z "$ac_c_werror_flag" ||
13170 test ! -s conftest.err
13171 } && test -s conftest.
$ac_objext; then
13172 charybdis_cv_c_gcc_w_nested_externs
=yes
13174 echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.
$ac_ext >&5
13177 charybdis_cv_c_gcc_w_nested_externs
=no
13180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13181 CFLAGS
="${oldcflags}"
13184 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
13185 CWARNS
="${CWARNS}-Wnested-externs "
13186 { echo "$as_me:$LINENO: result: ok" >&5
13187 echo "${ECHO_T}ok" >&6; }
13189 charybdis_cv_c_gcc_w_nested_externs
=''
13190 { echo "$as_me:$LINENO: result: no" >&5
13191 echo "${ECHO_T}no" >&6; }
13194 { echo "$as_me:$LINENO: result: no" >&5
13195 echo "${ECHO_T}no" >&6; }
13199 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
13200 echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
13201 if test "${GCC-no}" = yes
13203 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 oldcflags
="${CFLAGS-}"
13208 CFLAGS
="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
13209 cat >conftest.
$ac_ext <<_ACEOF
13212 cat confdefs.h
>>conftest.
$ac_ext
13213 cat >>conftest.
$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13216 #include <string.h>
13224 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13230 rm -f conftest.
$ac_objext
13231 if { (ac_try
="$ac_compile"
13232 case "(($ac_try" in
13233 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13239 grep -v '^ *+' conftest.er1 >conftest.err
13241 cat conftest.err >&5
13242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest.$ac_objext; then
13247 charybdis_cv_c_gcc_w_bad_function_cast=yes
13249 echo "$as_me: failed program was:" >&5
13250 sed 's/^/| /' conftest.$ac_ext >&5
13252 charybdis_cv_c_gcc_w_bad_function_cast=no
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 CFLAGS="${oldcflags}"
13259 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
13260 CWARNS="${CWARNS}-Wbad-function-cast "
13261 { echo "$as_me:$LINENO: result: ok" >&5
13262 echo "${ECHO_T}ok" >&6; }
13264 charybdis_cv_c_gcc_w_bad_function_cast=''
13265 { echo "$as_me:$LINENO: result: no" >&5
13266 echo "${ECHO_T}no" >&6; }
13269 { echo "$as_me:$LINENO: result: no" >&5
13270 echo "${ECHO_T}no" >&6; }
13274 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
13275 echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
13276 if test "${GCC-no}" = yes
13278 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 oldcflags="${CFLAGS-}"
13283 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
13284 cat >conftest.$ac_ext <<_ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13291 #include <string.h>
13299 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13305 rm -f conftest.$ac_objext
13306 if { (ac_try="$ac_compile"
13307 case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13309 *) ac_try_echo
=$ac_try;;
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312 (eval "$ac_compile") 2>conftest.er1
13314 grep -v '^ *+' conftest.er1
>conftest.err
13316 cat conftest.err
>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } && {
13319 test -z "$ac_c_werror_flag" ||
13320 test ! -s conftest.err
13321 } && test -s conftest.
$ac_objext; then
13322 charybdis_cv_c_gcc_w_unused
=yes
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.
$ac_ext >&5
13327 charybdis_cv_c_gcc_w_unused
=no
13330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13331 CFLAGS
="${oldcflags}"
13334 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
13335 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13336 { echo "$as_me:$LINENO: result: ok" >&5
13337 echo "${ECHO_T}ok" >&6; }
13339 charybdis_cv_c_gcc_w_unused
=''
13340 { echo "$as_me:$LINENO: result: no" >&5
13341 echo "${ECHO_T}no" >&6; }
13344 { echo "$as_me:$LINENO: result: no" >&5
13345 echo "${ECHO_T}no" >&6; }
13349 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13350 echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
13351 if test "${GCC-no}" = yes
13353 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13357 oldcflags
="${CFLAGS-}"
13358 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13359 cat >conftest.
$ac_ext <<_ACEOF
13362 cat confdefs.h
>>conftest.
$ac_ext
13363 cat >>conftest.
$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13366 #include <string.h>
13374 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13380 rm -f conftest.
$ac_objext
13381 if { (ac_try
="$ac_compile"
13382 case "(($ac_try" in
13383 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_compile") 2>conftest.er1
13389 grep -v '^ *+' conftest.er1 >conftest.err
13391 cat conftest.err >&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); } && {
13394 test -z "$ac_c_werror_flag" ||
13395 test ! -s conftest.err
13396 } && test -s conftest.$ac_objext; then
13397 charybdis_cv_c_gcc_w_redundant_decls=yes
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 charybdis_cv_c_gcc_w_redundant_decls=no
13405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13406 CFLAGS="${oldcflags}"
13409 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13410 CWARNS="${CWARNS}-Wredundant-decls "
13411 { echo "$as_me:$LINENO: result: ok" >&5
13412 echo "${ECHO_T}ok" >&6; }
13414 charybdis_cv_c_gcc_w_redundant_decls=''
13415 { echo "$as_me:$LINENO: result: no" >&5
13416 echo "${ECHO_T}no" >&6; }
13419 { echo "$as_me:$LINENO: result: no" >&5
13420 echo "${ECHO_T}no" >&6; }
13424 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13425 echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
13426 if test "${GCC-no}" = yes
13428 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13429 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 oldcflags="${CFLAGS-}"
13433 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13434 cat >conftest.$ac_ext <<_ACEOF
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13441 #include <string.h>
13449 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13459 *) ac_try_echo
=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_compile") 2>conftest.er1
13464 grep -v '^ *+' conftest.er1
>conftest.err
13466 cat conftest.err
>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && {
13469 test -z "$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 } && test -s conftest.
$ac_objext; then
13472 charybdis_cv_c_gcc_w_float_equal
=yes
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.
$ac_ext >&5
13477 charybdis_cv_c_gcc_w_float_equal
=no
13480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13481 CFLAGS
="${oldcflags}"
13484 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
13485 CWARNS
="${CWARNS}-Wfloat-equal "
13486 { echo "$as_me:$LINENO: result: ok" >&5
13487 echo "${ECHO_T}ok" >&6; }
13489 charybdis_cv_c_gcc_w_float_equal
=''
13490 { echo "$as_me:$LINENO: result: no" >&5
13491 echo "${ECHO_T}no" >&6; }
13494 { echo "$as_me:$LINENO: result: no" >&5
13495 echo "${ECHO_T}no" >&6; }
13499 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13500 echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; }
13501 if test "${GCC-no}" = yes
13503 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13507 oldcflags
="${CFLAGS-}"
13508 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13509 cat >conftest.
$ac_ext <<_ACEOF
13512 cat confdefs.h
>>conftest.
$ac_ext
13513 cat >>conftest.
$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13516 #include <string.h>
13524 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13530 rm -f conftest.
$ac_objext
13531 if { (ac_try
="$ac_compile"
13532 case "(($ac_try" in
13533 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13534 *) ac_try_echo=$ac_try;;
13536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13537 (eval "$ac_compile") 2>conftest.er1
13539 grep -v '^ *+' conftest.er1 >conftest.err
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } && {
13544 test -z "$ac_c_werror_flag" ||
13545 test ! -s conftest.err
13546 } && test -s conftest.$ac_objext; then
13547 charybdis_cv_c_gcc_w_format=yes
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 charybdis_cv_c_gcc_w_format=no
13555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13556 CFLAGS="${oldcflags}"
13559 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13560 CWARNS="${CWARNS}-Wformat=2 "
13561 { echo "$as_me:$LINENO: result: ok" >&5
13562 echo "${ECHO_T}ok" >&6; }
13564 charybdis_cv_c_gcc_w_format=''
13565 { echo "$as_me:$LINENO: result: no" >&5
13566 echo "${ECHO_T}no" >&6; }
13569 { echo "$as_me:$LINENO: result: no" >&5
13570 echo "${ECHO_T}no" >&6; }
13574 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13575 echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
13576 if test "${GCC-no}" = yes
13578 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13579 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 oldcflags="${CFLAGS-}"
13583 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13584 cat >conftest.$ac_ext <<_ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13591 #include <string.h>
13599 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13605 rm -f conftest.$ac_objext
13606 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
13622 charybdis_cv_c_gcc_pedantic
=yes
13624 echo "$as_me: failed program was:" >&5
13625 sed 's/^/| /' conftest.
$ac_ext >&5
13627 charybdis_cv_c_gcc_pedantic
=no
13630 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13631 CFLAGS
="${oldcflags}"
13634 if test "x$charybdis_cv_c_gcc_pedantic" = xyes
; then
13635 CWARNS
="${CWARNS}-pedantic "
13636 { echo "$as_me:$LINENO: result: ok" >&5
13637 echo "${ECHO_T}ok" >&6; }
13639 charybdis_cv_c_gcc_pedantic
=''
13640 { echo "$as_me:$LINENO: result: no" >&5
13641 echo "${ECHO_T}no" >&6; }
13644 { echo "$as_me:$LINENO: result: no" >&5
13645 echo "${ECHO_T}no" >&6; }
13649 IRC_CFLAGS
="$CFLAGS"
13654 if test "$shared_modules" = no
; then
13656 MOD_TARGET
="libmodules.a"
13657 MODULES_LIBS
="../modules/libmodules.a"
13660 cat >>confdefs.h
<<\_ACEOF
13661 #define STATIC_MODULES 1
13664 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13665 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13668 if test "$shared_modules" = yes; then
13670 { echo "$as_me:$LINENO: checking for nlist" >&5
13671 echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
13672 if test "${ac_cv_func_nlist+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 cat >conftest.
$ac_ext <<_ACEOF
13678 cat confdefs.h
>>conftest.
$ac_ext
13679 cat >>conftest.
$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13682 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13683 #define nlist innocuous_nlist
13685 /* System header to define __stub macros and hopefully few prototypes,
13686 which can conflict with char nlist (); below.
13687 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13688 <limits.h> exists even on freestanding compilers. */
13691 # include <limits.h>
13693 # include <assert.h>
13698 /* Override any GCC internal prototype to avoid an error.
13699 Use char because int might match the return type of a GCC
13700 builtin and then its argument prototype would still apply. */
13705 /* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708 #if defined __stub_nlist || defined __stub___nlist
13720 rm -f conftest.
$ac_objext conftest
$ac_exeext
13721 if { (ac_try
="$ac_link"
13722 case "(($ac_try" in
13723 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_link") 2>conftest.er1
13729 grep -v '^ *+' conftest.er1 >conftest.err
13731 cat conftest.err >&5
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); } && {
13734 test -z "$ac_c_werror_flag" ||
13735 test ! -s conftest.err
13736 } && test -s conftest$ac_exeext &&
13737 $as_test_x conftest$ac_exeext; then
13738 ac_cv_func_nlist=yes
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ac_cv_func_nlist=no
13746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13747 conftest$ac_exeext conftest.$ac_ext
13749 { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13750 echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
13751 if test $ac_cv_func_nlist = yes; then
13754 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13755 echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
13756 if test "${ac_cv_lib_dl_nlist+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 ac_check_lib_save_LIBS=$LIBS
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13783 rm -f conftest.$ac_objext conftest$ac_exeext
13784 if { (ac_try="$ac_link"
13785 case "(($ac_try" in
13786 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13787 *) ac_try_echo
=$ac_try;;
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_link") 2>conftest.er1
13792 grep -v '^ *+' conftest.er1
>conftest.err
13794 cat conftest.err
>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } && {
13797 test -z "$ac_c_werror_flag" ||
13798 test ! -s conftest.err
13799 } && test -s conftest
$ac_exeext &&
13800 $as_test_x conftest
$ac_exeext; then
13801 ac_cv_lib_dl_nlist
=yes
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.
$ac_ext >&5
13806 ac_cv_lib_dl_nlist
=no
13809 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13810 conftest
$ac_exeext conftest.
$ac_ext
13811 LIBS
=$ac_check_lib_save_LIBS
13813 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13814 echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
13815 if test $ac_cv_lib_dl_nlist = yes; then
13818 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13819 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
13820 if test "${ac_cv_lib_elf_nlist+set}" = set; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 ac_check_lib_save_LIBS
=$LIBS
13825 cat >conftest.
$ac_ext <<_ACEOF
13828 cat confdefs.h
>>conftest.
$ac_ext
13829 cat >>conftest.
$ac_ext <<_ACEOF
13830 /* end confdefs.h. */
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13847 rm -f conftest.
$ac_objext conftest
$ac_exeext
13848 if { (ac_try
="$ac_link"
13849 case "(($ac_try" in
13850 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13851 *) ac_try_echo=$ac_try;;
13853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13854 (eval "$ac_link") 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } && {
13861 test -z "$ac_c_werror_flag" ||
13862 test ! -s conftest.err
13863 } && test -s conftest$ac_exeext &&
13864 $as_test_x conftest$ac_exeext; then
13865 ac_cv_lib_elf_nlist=yes
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13870 ac_cv_lib_elf_nlist=no
13873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13874 conftest$ac_exeext conftest.$ac_ext
13875 LIBS=$ac_check_lib_save_LIBS
13877 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13878 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
13879 if test $ac_cv_lib_elf_nlist = yes; then
13890 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13891 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13892 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13893 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13894 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13897 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13899 # Is the header compilable?
13900 { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13901 echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
13902 cat >conftest.$ac_ext <<_ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h. */
13908 $ac_includes_default
13909 #include <libelf/nlist.h>
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
13915 *) ac_try_echo
=$ac_try;;
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_compile") 2>conftest.er1
13920 grep -v '^ *+' conftest.er1
>conftest.err
13922 cat conftest.err
>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } && {
13925 test -z "$ac_c_werror_flag" ||
13926 test ! -s conftest.err
13927 } && test -s conftest.
$ac_objext; then
13928 ac_header_compiler
=yes
13930 echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.
$ac_ext >&5
13933 ac_header_compiler
=no
13936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13938 echo "${ECHO_T}$ac_header_compiler" >&6; }
13940 # Is the header present?
13941 { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13942 echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
13943 cat >conftest.
$ac_ext <<_ACEOF
13946 cat confdefs.h
>>conftest.
$ac_ext
13947 cat >>conftest.
$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949 #include <libelf/nlist.h>
13951 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13952 case "(($ac_try" in
13953 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
13954 *) ac_try_echo=$ac_try;;
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13959 grep -v '^ *+' conftest.er1 >conftest.err
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } >/dev/null && {
13964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13965 test ! -s conftest.err
13967 ac_header_preproc=yes
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13972 ac_header_preproc=no
13975 rm -f conftest.err conftest.$ac_ext
13976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13977 echo "${ECHO_T}$ac_header_preproc" >&6; }
13979 # So? What about this header?
13980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13982 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13983 echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13984 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13985 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13986 ac_header_preproc=yes
13989 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13990 echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13992 echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13994 echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13996 echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13998 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
14000 echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
14004 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
14005 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
14006 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 ac_cv_header_libelf_nlist_h=$ac_header_preproc
14011 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
14012 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
14015 if test $ac_cv_header_libelf_nlist_h = yes; then
14016 nlist_h="libelf/nlist.h"
14020 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14021 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
14022 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
14023 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14024 echo $ECHO_N "(cached) $ECHO_C" >&6
14026 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14027 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
14029 # Is the header compilable?
14030 { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
14031 echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
14032 cat >conftest.$ac_ext <<_ACEOF
14035 cat confdefs.h >>conftest.$ac_ext
14036 cat >>conftest.$ac_ext <<_ACEOF
14037 /* end confdefs.h. */
14038 $ac_includes_default
14039 #include <elf/nlist.h>
14041 rm -f conftest.$ac_objext
14042 if { (ac_try="$ac_compile"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
14045 *) ac_try_echo
=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_compile") 2>conftest.er1
14050 grep -v '^ *+' conftest.er1
>conftest.err
14052 cat conftest.err
>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } && {
14055 test -z "$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14057 } && test -s conftest.
$ac_objext; then
14058 ac_header_compiler
=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.
$ac_ext >&5
14063 ac_header_compiler
=no
14066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14068 echo "${ECHO_T}$ac_header_compiler" >&6; }
14070 # Is the header present?
14071 { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
14072 echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
14073 cat >conftest.
$ac_ext <<_ACEOF
14076 cat confdefs.h
>>conftest.
$ac_ext
14077 cat >>conftest.
$ac_ext <<_ACEOF
14078 /* end confdefs.h. */
14079 #include <elf/nlist.h>
14081 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14082 case "(($ac_try" in
14083 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14089 grep -v '^ *+' conftest.er1 >conftest.err
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } >/dev/null && {
14094 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14097 ac_header_preproc=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14102 ac_header_preproc=no
14105 rm -f conftest.err conftest.$ac_ext
14106 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14107 echo "${ECHO_T}$ac_header_preproc" >&6; }
14109 # So? What about this header?
14110 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14112 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14113 echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14114 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
14115 echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
14116 ac_header_preproc=yes
14119 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
14120 echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
14121 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
14122 echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
14123 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
14124 echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
14125 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14126 echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14127 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
14128 echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
14129 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
14130 echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
14134 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
14135 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
14136 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14139 ac_cv_header_elf_nlist_h=$ac_header_preproc
14141 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
14142 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
14145 if test $ac_cv_header_elf_nlist_h = yes; then
14146 nlist_h="elf/nlist.h"
14150 if test "${ac_cv_header_nlist_h+set}" = set; then
14151 { echo "$as_me:$LINENO: checking for nlist.h" >&5
14152 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
14153 if test "${ac_cv_header_nlist_h+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14157 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
14159 # Is the header compilable?
14160 { echo "$as_me:$LINENO: checking nlist.h usability" >&5
14161 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
14162 cat >conftest.$ac_ext <<_ACEOF
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 $ac_includes_default
14171 rm -f conftest.$ac_objext
14172 if { (ac_try="$ac_compile"
14173 case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
14175 *) ac_try_echo
=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_compile") 2>conftest.er1
14180 grep -v '^ *+' conftest.er1
>conftest.err
14182 cat conftest.err
>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); } && {
14185 test -z "$ac_c_werror_flag" ||
14186 test ! -s conftest.err
14187 } && test -s conftest.
$ac_objext; then
14188 ac_header_compiler
=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.
$ac_ext >&5
14193 ac_header_compiler
=no
14196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14198 echo "${ECHO_T}$ac_header_compiler" >&6; }
14200 # Is the header present?
14201 { echo "$as_me:$LINENO: checking nlist.h presence" >&5
14202 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
14203 cat >conftest.
$ac_ext <<_ACEOF
14206 cat confdefs.h
>>conftest.
$ac_ext
14207 cat >>conftest.
$ac_ext <<_ACEOF
14208 /* end confdefs.h. */
14211 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14212 case "(($ac_try" in
14213 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14219 grep -v '^ *+' conftest.er1 >conftest.err
14221 cat conftest.err >&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } >/dev/null && {
14224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14225 test ! -s conftest.err
14227 ac_header_preproc=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14232 ac_header_preproc=no
14235 rm -f conftest.err conftest.$ac_ext
14236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14237 echo "${ECHO_T}$ac_header_preproc" >&6; }
14239 # So? What about this header?
14240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14242 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14243 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14244 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
14245 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
14246 ac_header_preproc=yes
14249 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
14250 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
14252 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
14254 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14256 echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
14258 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
14260 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
14264 { echo "$as_me:$LINENO: checking for nlist.h" >&5
14265 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
14266 if test "${ac_cv_header_nlist_h+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 ac_cv_header_nlist_h=$ac_header_preproc
14271 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14272 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
14275 if test $ac_cv_header_nlist_h = yes; then
14280 if test x"$nlist_h" = "x"; then
14282 cat >>confdefs.h <<_ACEOF
14283 #define SYMBOL_PREFIX ""
14287 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
14288 echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
14289 if test "${symbol_underscores+set}" = set; then
14290 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 cat << EOF > conftest.c
14294 #include <$nlist_h>
14296 #include <stdlib.h>
14297 void _modinit(void);
14298 int main(int argc, char *argv[]) {
14300 struct nlist nl[5];
14302 /* fill the names in this way, so it'll work almost everywhere */
14303 nl[0].n_name = "_modinit";
14304 nl[1].n_name = "__modinit";
14305 nl[2].n_name = "___modinit";
14306 nl[3].n_name = "____modinit";
14307 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14309 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14310 for(i = 0; i < 4; i++) {
14311 if(nl[i].n_value != NULL)
14314 for(j = 0; j < i; j++)
14321 void _modinit(void) { return; }
14323 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14324 symbol_underscores=`.
/conftest conftest
`
14325 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14326 echo "${ECHO_T}$symbol_underscores" >&6; }
14327 $RM -f conftest conftest.c
14332 cat >>confdefs.h <<_ACEOF
14333 #define SYMBOL_PREFIX "${symbol_underscores}"
14352 if test "$prefix" = "NONE"; then
14354 cat >>confdefs.h <<_ACEOF
14355 #define IRCD_PREFIX "$ac_default_prefix"
14362 prefix=`echo $prefix | sed 's/\/$//'`
14364 cat >>confdefs.h <<_ACEOF
14365 #define IRCD_PREFIX "$prefix"
14371 ac_config_files="$ac_config_files Makefile libcharybdis/Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14374 cat >confcache <<\_ACEOF
14375 # This file is a shell script that caches the results of configure
14376 # tests run on this system so they can be shared between configure
14377 # scripts and configure runs, see configure's option --config-cache.
14378 # It is not useful on other systems. If it contains results you don't
14379 # want to keep, you may remove or edit it.
14381 # config.status only pays attention to the cache file if you give it
14382 # the --recheck option to rerun configure.
14384 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
14385 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14386 # following values.
14390 # The following way of writing the cache mishandles newlines in values,
14391 # but we know of no workaround that is simple, portable, and efficient.
14392 # So, we kill variables containing newlines.
14393 # Ultrix sh set writes to stderr and can't be redirected directly,
14394 # and sets the high bit in the cache file unless we assign to the vars.
14396 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14397 eval ac_val
=\$
$ac_var
14401 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14402 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14405 _
| IFS
| as_nl
) ;; #(
14406 *) $as_unset $ac_var ;;
14412 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14413 *${as_nl}ac_space
=\
*)
14414 # `set' does not quote correctly, so add quotes (double-quote
14415 # substitution turns \\\\ into \\, and sed turns \\ into \).
14418 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14421 # `set' quotes correctly as required by POSIX, so do not add quotes.
14422 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14431 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14433 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14435 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14436 if test -w "$cache_file"; then
14437 test "x$cache_file" != "x/dev/null" &&
14438 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14439 echo "$as_me: updating cache $cache_file" >&6;}
14440 cat confcache
>$cache_file
14442 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14443 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14448 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14449 # Let make expand exec_prefix.
14450 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14452 DEFS
=-DHAVE_CONFIG_H
14456 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14457 # 1. Remove the extension, and $U if already installed.
14458 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14459 ac_i
=`echo "$ac_i" | sed "$ac_script"`
14460 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14461 # will be set to the directory where LIBOBJS objects are built.
14462 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14463 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14465 LIBOBJS
=$ac_libobjs
14467 LTLIBOBJS
=$ac_ltlibobjs
14471 : ${CONFIG_STATUS=./config.status}
14472 ac_clean_files_save
=$ac_clean_files
14473 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14474 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14475 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14476 cat >$CONFIG_STATUS <<_ACEOF
14478 # Generated by $as_me.
14479 # Run this file to recreate the current configuration.
14480 # Compiler output produced by configure, useful for debugging
14481 # configure, is in config.log if it exists.
14484 ac_cs_recheck=false
14486 SHELL=\${CONFIG_SHELL-$SHELL}
14489 cat >>$CONFIG_STATUS <<\_ACEOF
14490 ## --------------------- ##
14491 ## M4sh Initialization. ##
14492 ## --------------------- ##
14494 # Be more Bourne compatible
14495 DUALCASE
=1; export DUALCASE
# for MKS sh
14496 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14499 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14500 # is contrary to our usage. Disable this feature.
14501 alias -g '${1+"$@"}'='"$@"'
14502 setopt NO_GLOB_SUBST
14504 case `(set -o) 2>/dev/null` in
14505 *posix
*) set -o posix
;;
14514 # Avoid depending upon Character Ranges.
14515 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14516 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14517 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14518 as_cr_digits
='0123456789'
14519 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14521 # The user is always right.
14522 if test "${PATH_SEPARATOR+set}" != set; then
14523 echo "#! /bin/sh" >conf$$.sh
14524 echo "exit 0" >>conf$$.sh
14526 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
14534 # Support unset when possible.
14535 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
14543 # We need space, tab and new line, in precisely that order. Quoting is
14544 # there to prevent editors from complaining about space-tab.
14545 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14546 # splitting by setting IFS to empty value.)
14551 # Find who we are. Look in the path if we contain no directory separator.
14553 *[\\/]* ) as_myself
=$0 ;;
14554 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14555 for as_dir
in $PATH
14558 test -z "$as_dir" && as_dir
=.
14559 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
14565 # We did not find ourselves, most probably we were run as `sh COMMAND'
14566 # in which case we are not to be found in the path.
14567 if test "x$as_myself" = x
; then
14570 if test ! -f "$as_myself"; then
14571 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14572 { (exit 1); exit 1; }
14575 # Work around bugs in pre-3.0 UWIN ksh.
14576 for as_var
in ENV MAIL MAILPATH
14577 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14585 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14586 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14587 LC_TELEPHONE LC_TIME
14589 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14590 eval $as_var=C
; export $as_var
14592 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
14596 # Required to use basename.
14597 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14598 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14604 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14605 as_basename
=basename
14611 # Name of the executable.
14612 as_me
=`$as_basename -- "$0" ||
14613 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14614 X"$0" : 'X\(//\)$' \| \
14615 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14617 sed '/^.*\/\([^/][^/]*\)\/*$/{
14636 as_lineno_1
=$LINENO
14637 as_lineno_2
=$LINENO
14638 test "x$as_lineno_1" != "x$as_lineno_2" &&
14639 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14641 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14642 # uniformly replaced by the line number. The first 'sed' inserts a
14643 # line-number line after each line using $LINENO; the second 'sed'
14644 # does the real work. The second script uses 'N' to pair each
14645 # line-number line with the line containing $LINENO, and appends
14646 # trailing '-' during substitution so that $LINENO is not a special
14647 # case at line end.
14648 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14649 # scripts with optimization help from Paolo Bonzini. Blame Lee
14650 # E. McMahon (1931-1989) for sed's syntax. :-)
14662 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14665 ' >$as_me.lineno
&&
14666 chmod +x
"$as_me.lineno" ||
14667 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14668 { (exit 1); exit 1; }; }
14670 # Don't try to exec as it changes $[0], causing all sort of problems
14671 # (the dirname of $[0] is not the place where we might find the
14672 # original and so on. Autoconf is especially sensitive to this).
14673 .
"./$as_me.lineno"
14674 # Exit status is that of the last command.
14679 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14685 ECHO_C
= ECHO_N
= ECHO_T
=
14686 case `echo -n x` in
14688 case `echo 'x\c'` in
14689 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14696 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14697 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14703 rm -f conf$$ conf$$.exe conf$$.
file
14704 if test -d conf$$.dir
; then
14705 rm -f conf$$.dir
/conf$$.
file
14711 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14713 # ... but there are two gotchas:
14714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14716 # In both cases, we have to default to `cp -p'.
14717 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
14719 elif ln conf$$.
file conf$$
2>/dev
/null
; then
14724 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
14725 rmdir conf$$.dir
2>/dev
/null
14727 if mkdir -p .
2>/dev
/null
; then
14730 test -d .
/-p && rmdir .
/-p
14734 if test -x / >/dev
/null
2>&1; then
14735 as_test_x
='test -x'
14737 if ls -dL / >/dev
/null
2>&1; then
14744 if test -d "$1"; then
14750 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14751 ???[sx]*):;;*)false;;esac;fi
14755 as_executable_p
=$as_test_x
14757 # Sed expression to map a string onto a valid CPP name.
14758 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14760 # Sed expression to map a string onto a valid variable name.
14761 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14766 # Save the log message, to keep $[0] and so on meaningful, and to
14767 # report actual input values of CONFIG_FILES etc. instead of their
14768 # values after options handling.
14770 This file was extended by charybdis $as_me 2.2.0, which was
14771 generated by GNU Autoconf 2.61. Invocation command line was
14773 CONFIG_FILES = $CONFIG_FILES
14774 CONFIG_HEADERS = $CONFIG_HEADERS
14775 CONFIG_LINKS = $CONFIG_LINKS
14776 CONFIG_COMMANDS = $CONFIG_COMMANDS
14779 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14784 cat >>$CONFIG_STATUS <<_ACEOF
14785 # Files that config.status was made for.
14786 config_files="$ac_config_files"
14787 config_headers="$ac_config_headers"
14791 cat >>$CONFIG_STATUS <<\_ACEOF
14793 \`$as_me' instantiates files from templates according to the
14794 current configuration.
14796 Usage: $0 [OPTIONS] [FILE]...
14798 -h, --help print this help, then exit
14799 -V, --version print version number and configuration settings, then exit
14800 -q, --quiet do not print progress messages
14801 -d, --debug don't remove temporary files
14802 --recheck update $as_me by reconfiguring in the same conditions
14803 --file=FILE[:TEMPLATE]
14804 instantiate the configuration file FILE
14805 --header=FILE[:TEMPLATE]
14806 instantiate the configuration header FILE
14808 Configuration files:
14811 Configuration headers:
14814 Report bugs to <bug-autoconf@gnu.org>."
14817 cat >>$CONFIG_STATUS <<_ACEOF
14819 charybdis config.status 2.2.0
14820 configured by $0, generated by GNU Autoconf 2.61,
14821 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14823 Copyright (C) 2006 Free Software Foundation, Inc.
14824 This config.status script is free software; the Free Software Foundation
14825 gives unlimited permission to copy, distribute and modify it."
14832 cat >>$CONFIG_STATUS <<\_ACEOF
14833 # If no file are specified by the user, then we need to provide default
14834 # value. By we need to know if files were specified by the user.
14840 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
14841 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
14852 # Handling of the options.
14853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14856 echo "$ac_cs_version"; exit ;;
14857 --debug | --debu | --deb | --de | --d | -d )
14859 --file | --fil | --fi | --f )
14861 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14862 ac_need_defaults
=false
;;
14863 --header | --heade | --head | --hea )
14865 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14866 ac_need_defaults
=false
;;
14868 # Conflict between --help and --header
14869 { echo "$as_me: error: ambiguous option: $1
14870 Try \`$0 --help' for more information." >&2
14871 { (exit 1); exit 1; }; };;
14872 --help | --hel | -h )
14873 echo "$ac_cs_usage"; exit ;;
14874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14875 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14878 # This is an error.
14879 -*) { echo "$as_me: error: unrecognized option: $1
14880 Try \`$0 --help' for more information." >&2
14881 { (exit 1); exit 1; }; } ;;
14883 *) ac_config_targets
="$ac_config_targets $1"
14884 ac_need_defaults
=false
;;
14890 ac_configure_extra_args
=
14892 if $ac_cs_silent; then
14894 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14898 cat >>$CONFIG_STATUS <<_ACEOF
14899 if \$ac_cs_recheck; then
14900 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14901 CONFIG_SHELL=$SHELL
14902 export CONFIG_SHELL
14903 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14907 cat >>$CONFIG_STATUS <<\_ACEOF
14911 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14912 ## Running $as_me. ##
14918 cat >>$CONFIG_STATUS <<_ACEOF
14921 cat >>$CONFIG_STATUS <<\_ACEOF
14923 # Handling of arguments.
14924 for ac_config_target
in $ac_config_targets
14926 case $ac_config_target in
14927 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
14928 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14929 "libcharybdis/Makefile") CONFIG_FILES
="$CONFIG_FILES libcharybdis/Makefile" ;;
14930 "servlink/Makefile") CONFIG_FILES
="$CONFIG_FILES servlink/Makefile" ;;
14931 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
14932 "unsupported/Makefile") CONFIG_FILES
="$CONFIG_FILES unsupported/Makefile" ;;
14933 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
14934 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
14935 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
14936 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
14937 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
14939 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14940 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14941 { (exit 1); exit 1; }; };;
14946 # If the user did not use the arguments to specify the items to instantiate,
14947 # then the envvar interface is used. Set only those that are not.
14948 # We use the long form for the default assignment because of an extremely
14949 # bizarre bug on SunOS 4.1.3.
14950 if $ac_need_defaults; then
14951 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14952 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14955 # Have a temporary directory for convenience. Make it in the build tree
14956 # simply because there is no reason against having it here, and in addition,
14957 # creating and moving files from /tmp can sometimes cause problems.
14958 # Hook for its removal unless debugging.
14959 # Note that there is a small window in which the directory will not be cleaned:
14960 # after its creation but before its name has been assigned to `$tmp'.
14964 trap 'exit_status=$?
14965 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14967 trap '{ (exit 1); exit 1; }' 1 2 13 15
14969 # Create a (secure) tmp directory for tmp files.
14972 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14973 test -n "$tmp" && test -d "$tmp"
14976 tmp
=.
/conf$$
-$RANDOM
14977 (umask 077 && mkdir "$tmp")
14980 echo "$me: cannot create a temporary directory in ." >&2
14981 { (exit 1); exit 1; }
14985 # Set up the sed scripts for CONFIG_FILES section.
14988 # No need to generate the scripts if there are no CONFIG_FILES.
14989 # This happens for instance when ./config.status config.h
14990 if test -n "$CONFIG_FILES"; then
14997 for ac_last_try
in false false false false false
:; do
14998 cat >conf$
$subs.
sed <<_ACEOF
14999 SHELL!$SHELL$ac_delim
15000 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15001 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15002 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15003 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15004 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15005 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15006 exec_prefix!$exec_prefix$ac_delim
15007 prefix!$prefix$ac_delim
15008 program_transform_name!$program_transform_name$ac_delim
15009 bindir!$bindir$ac_delim
15010 sbindir!$sbindir$ac_delim
15011 libexecdir!$libexecdir$ac_delim
15012 datarootdir!$datarootdir$ac_delim
15013 datadir!$datadir$ac_delim
15014 sysconfdir!$sysconfdir$ac_delim
15015 sharedstatedir!$sharedstatedir$ac_delim
15016 localstatedir!$localstatedir$ac_delim
15017 includedir!$includedir$ac_delim
15018 oldincludedir!$oldincludedir$ac_delim
15019 docdir!$docdir$ac_delim
15020 infodir!$infodir$ac_delim
15021 htmldir!$htmldir$ac_delim
15022 dvidir!$dvidir$ac_delim
15023 pdfdir!$pdfdir$ac_delim
15024 psdir!$psdir$ac_delim
15025 libdir!$libdir$ac_delim
15026 localedir!$localedir$ac_delim
15027 mandir!$mandir$ac_delim
15028 DEFS!$DEFS$ac_delim
15029 ECHO_C!$ECHO_C$ac_delim
15030 ECHO_N!$ECHO_N$ac_delim
15031 ECHO_T!$ECHO_T$ac_delim
15032 LIBS!$LIBS$ac_delim
15033 build_alias!$build_alias$ac_delim
15034 host_alias!$host_alias$ac_delim
15035 target_alias!$target_alias$ac_delim
15037 CFLAGS!$CFLAGS$ac_delim
15038 LDFLAGS!$LDFLAGS$ac_delim
15039 CPPFLAGS!$CPPFLAGS$ac_delim
15040 ac_ct_CC!$ac_ct_CC$ac_delim
15041 EXEEXT!$EXEEXT$ac_delim
15042 OBJEXT!$OBJEXT$ac_delim
15043 MKDEP!$MKDEP$ac_delim
15044 MAKEDEPEND!$MAKEDEPEND$ac_delim
15045 STDOUT!$STDOUT$ac_delim
15047 GREP!$GREP$ac_delim
15048 EGREP!$EGREP$ac_delim
15049 SET_MAKE!$SET_MAKE$ac_delim
15050 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15051 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15052 INSTALL_DATA!$INSTALL_DATA$ac_delim
15060 RANLIB!$RANLIB$ac_delim
15061 TOUCH!$TOUCH$ac_delim
15062 YACC!$YACC$ac_delim
15063 YFLAGS!$YFLAGS$ac_delim
15065 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
15066 LEXLIB!$LEXLIB$ac_delim
15067 CRYPT_LIB!$CRYPT_LIB$ac_delim
15068 VICONF!$VICONF$ac_delim
15069 ALLOCA!$ALLOCA$ac_delim
15070 ENCSPEED!$ENCSPEED$ac_delim
15071 ZLIB_LD!$ZLIB_LD$ac_delim
15072 ETC_DIR!$ETC_DIR$ac_delim
15073 confdir!$confdir$ac_delim
15074 LOG_DIR!$LOG_DIR$ac_delim
15075 logdir!$logdir$ac_delim
15076 HELP_DIR!$HELP_DIR$ac_delim
15077 helpdir!$helpdir$ac_delim
15078 MODULE_DIR!$MODULE_DIR$ac_delim
15079 moduledir!$moduledir$ac_delim
15080 SELECT_TYPE!$SELECT_TYPE$ac_delim
15081 MODULES_LIBS!$MODULES_LIBS$ac_delim
15082 MOD_TARGET!$MOD_TARGET$ac_delim
15083 SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
15084 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
15085 SSL_LIBS!$SSL_LIBS$ac_delim
15086 PICFLAGS!$PICFLAGS$ac_delim
15087 IRC_CFLAGS!$IRC_CFLAGS$ac_delim
15088 SEDOBJ!$SEDOBJ$ac_delim
15089 LIBOBJS!$LIBOBJS$ac_delim
15090 LTLIBOBJS!$LTLIBOBJS$ac_delim
15093 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
15095 elif $ac_last_try; then
15096 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15097 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15098 { (exit 1); exit 1; }; }
15100 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
15104 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15105 if test -n "$ac_eof"; then
15106 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
15107 ac_eof
=`expr $ac_eof + 1`
15110 cat >>$CONFIG_STATUS <<_ACEOF
15111 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15115 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15116 s/^/s,@/; s/!/@,|#_!!_#|/
15119 s/'"$ac_delim"'$/,g/; t
15121 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15122 ' >>$CONFIG_STATUS <conf$
$subs.
sed
15123 rm -f conf$
$subs.
sed
15124 cat >>$CONFIG_STATUS <<_ACEOF
15131 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15132 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15133 # trailing colons and then remove the whole line if VPATH becomes empty
15134 # (actually we leave an empty line to preserve line numbers).
15135 if test "x$srcdir" = x.
; then
15136 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
15137 s/:*\$(srcdir):*/:/
15138 s/:*\${srcdir}:*/:/
15140 s/^\([^=]*=[ ]*\):*/\1/
15146 cat >>$CONFIG_STATUS <<\_ACEOF
15147 fi # test -n "$CONFIG_FILES"
15150 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS
15153 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15155 case $ac_mode$ac_tag in
15157 :L
* | :C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15158 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15159 { (exit 1); exit 1; }; };;
15160 :[FH
]-) ac_tag
=-:-;;
15161 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15178 -) ac_f
="$tmp/stdin";;
15179 *) # Look for the file first in the build tree, then in the source tree
15180 # (if the path is not absolute). The absolute path cannot be DOS-style,
15181 # because $ac_f cannot contain `:'.
15185 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
15187 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15188 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15189 { (exit 1); exit 1; }; };;
15191 ac_file_inputs
="$ac_file_inputs $ac_f"
15194 # Let's still pretend it is `configure' which instantiates (i.e., don't
15195 # use $as_me), people would be surprised to read:
15196 # /* config.h. Generated by config.status. */
15197 configure_input
="Generated from "`IFS=:
15198 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15199 if test x
"$ac_file" != x
-; then
15200 configure_input
="$ac_file. $configure_input"
15201 { echo "$as_me:$LINENO: creating $ac_file" >&5
15202 echo "$as_me: creating $ac_file" >&6;}
15206 *:-:* | *:-) cat >"$tmp/stdin";;
15211 ac_dir
=`$as_dirname -- "$ac_file" ||
15212 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15213 X"$ac_file" : 'X\(//\)[^/]' \| \
15214 X"$ac_file" : 'X\(//\)$' \| \
15215 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15221 /^X\(\/\/\)[^/].*/{
15236 -*) as_dir
=.
/$as_dir;;
15238 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15242 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15243 *) as_qdir
=$as_dir;;
15245 as_dirs
="'$as_qdir' $as_dirs"
15246 as_dir
=`$as_dirname -- "$as_dir" ||
15247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15248 X"$as_dir" : 'X\(//\)[^/]' \| \
15249 X"$as_dir" : 'X\(//\)$' \| \
15250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15256 /^X\(\/\/\)[^/].*/{
15269 test -d "$as_dir" && break
15271 test -z "$as_dirs" || eval "mkdir $as_dirs"
15272 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15273 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15274 { (exit 1); exit 1; }; }; }
15278 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15280 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15281 # A ".." for each directory in $ac_dir_suffix.
15282 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15283 case $ac_top_builddir_sub in
15284 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
15285 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
15288 ac_abs_top_builddir
=$ac_pwd
15289 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
15290 # for backward compatibility:
15291 ac_top_builddir
=$ac_top_build_prefix
15294 .
) # We are building in place.
15296 ac_top_srcdir
=$ac_top_builddir_sub
15297 ac_abs_top_srcdir
=$ac_pwd ;;
15298 [\\/]* | ?
:[\\/]* ) # Absolute name.
15299 ac_srcdir
=$srcdir$ac_dir_suffix;
15300 ac_top_srcdir
=$srcdir
15301 ac_abs_top_srcdir
=$srcdir ;;
15302 *) # Relative name.
15303 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
15304 ac_top_srcdir
=$ac_top_build_prefix$srcdir
15305 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
15307 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
15317 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15318 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
15322 cat >>$CONFIG_STATUS <<\_ACEOF
15323 # If the template does not know about datarootdir, expand it.
15324 # FIXME: This hack should be removed a few years after 2.60.
15325 ac_datarootdir_hack
=; ac_datarootdir_seen
=
15327 case `sed -n '/datarootdir/ {
15336 ' $ac_file_inputs` in
15337 *datarootdir
*) ac_datarootdir_seen
=yes;;
15338 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
15339 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15340 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15342 cat >>$CONFIG_STATUS <<_ACEOF
15343 ac_datarootdir_hack='
15344 s&@datadir@&$datadir&g
15345 s&@docdir@&$docdir&g
15346 s&@infodir@&$infodir&g
15347 s&@localedir@&$localedir&g
15348 s&@mandir@&$mandir&g
15349 s&\\\${datarootdir}&$datarootdir&g' ;;
15353 # Neutralize VPATH when `$srcdir' = `.'.
15354 # Shell code in configure.ac might set extrasub.
15355 # FIXME: do we really want to maintain this feature?
15356 cat >>$CONFIG_STATUS <<_ACEOF
15360 cat >>$CONFIG_STATUS <<\_ACEOF
15362 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
15363 s
&@configure_input@
&$configure_input&;t t
15364 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
15365 s
&@srcdir@
&$ac_srcdir&;t t
15366 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
15367 s
&@top_srcdir@
&$ac_top_srcdir&;t t
15368 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
15369 s
&@builddir@
&$ac_builddir&;t t
15370 s
&@abs_builddir@
&$ac_abs_builddir&;t t
15371 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
15372 s
&@INSTALL@
&$ac_INSTALL&;t t
15373 $ac_datarootdir_hack
15374 " $ac_file_inputs | sed -f "$tmp/subs
-1.
sed" >$tmp/out
15376 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15377 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
15378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
15379 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
15380 which seems to be undefined. Please make sure it is defined." >&5
15381 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
15382 which seems to be undefined. Please make sure it is defined." >&2;}
15386 -) cat "$tmp/out"; rm -f "$tmp/out";;
15387 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15396 # Transform confdefs.h into a sed script `conftest.defines', that
15397 # substitutes the proper values into config.h.in to produce config.h.
15398 rm -f conftest.defines conftest.
tail
15399 # First, append a space to every undef/define line, to ease matching.
15400 echo 's/$/ /' >conftest.defines
15401 # Then, protect against being on the right side of a sed subst, or in
15402 # an unquoted here document, in config.status. If some macros were
15403 # called several times there might be several #defines for the same
15404 # symbol, which is useless. But do not sort them, since the last
15405 # AC_DEFINE must be honored.
15406 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
15407 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15408 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15409 # PARAMS is the parameter list in the macro definition--in most cases, it's
15410 # just an empty string.
15411 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15412 ac_dB
='\\)[ (].*,\\1define\\2'
15420 s/^[ ]*#[ ]*define[ ][ ]*//
15425 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15426 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15427 ' >>conftest.defines
15429 # Remove the space that was appended to ease matching.
15430 # Then replace #undef with comments. This is necessary, for
15431 # example, in the case of _POSIX_SOURCE, which is predefined and required
15432 # on some systems where configure will not decide to define it.
15433 # (The regexp can be short, since the line contains either #define or #undef.)
15435 s,^[ #]*u.*,/* & */,' >>conftest.defines
15437 # Break up conftest.defines:
15438 ac_max_sed_lines
=50
15440 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15441 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15442 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15444 ac_in
='$ac_file_inputs'
15445 ac_out
='"$tmp/out1"'
15446 ac_nxt
='"$tmp/out2"'
15450 # Write a here document:
15451 cat >>$CONFIG_STATUS <<_ACEOF
15452 # First, check the format of the line:
15453 cat >"\$tmp/defines.sed" <<\\CEOF
15454 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15455 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15459 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
15461 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15462 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
15463 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
15464 grep . conftest.
tail >/dev
/null
|| break
15465 rm -f conftest.defines
15466 mv conftest.
tail conftest.defines
15468 rm -f conftest.defines conftest.
tail
15470 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15471 cat >>$CONFIG_STATUS <<\_ACEOF
15472 if test x
"$ac_file" != x
-; then
15473 echo "/* $configure_input */" >"$tmp/config.h"
15474 cat "$ac_result" >>"$tmp/config.h"
15475 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
15476 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15477 echo "$as_me: $ac_file is unchanged" >&6;}
15480 mv "$tmp/config.h" $ac_file
15483 echo "/* $configure_input */"
15495 { (exit 0); exit 0; }
15497 chmod +x
$CONFIG_STATUS
15498 ac_clean_files
=$ac_clean_files_save
15501 # configure is writing to config.log, and then calls config.status.
15502 # config.status does its own redirection, appending to config.log.
15503 # Unfortunately, on DOS this fails, as config.log is still kept open
15504 # by configure, so config.status won't be able to write to it; its
15505 # output is simply discarded. So we exec the FD to /dev/null,
15506 # effectively closing config.log, so it can be properly (re)opened and
15507 # appended to by config.status. When coming back to configure, we
15508 # need to make the FD available again.
15509 if test "$no_create" != yes; then
15511 ac_config_status_args
=
15512 test "$silent" = yes &&
15513 ac_config_status_args
="$ac_config_status_args --quiet"
15515 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
15517 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15518 # would make configure fail if this is the last instruction.
15519 $ac_cs_success || { (exit 1); exit 1; }
15523 if test "$cf_openssl_version_ok" = yes; then
15529 if test "$shared_modules" = yes; then
15537 Install directory : $prefix
15542 IPv6 support : $have_v6
15543 Socket Engine : $SELECT_TYPE
15544 Small network : $small_net
15545 Block allocator : $balloc
15546 ASM hashing code : $ricer_hashing
15548 Nickname length : $NICKLEN
15549 Topic length : $TOPICLEN
15551 Use make to compile Charybdis, then make install to install it.