2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for charybdis 3.5.0-dev.
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
270 $0: including any error possibly output before this
271 $0: message. Then install a modern shell, or manually run
272 $0: the script under such a shell if you do have one."
278 SHELL
=${CONFIG_SHELL-/bin/sh}
280 # Unset more variables known to interfere with behavior of common tools.
281 CLICOLOR_FORCE
= GREP_OPTIONS
=
282 unset CLICOLOR_FORCE GREP_OPTIONS
284 ## --------------------- ##
285 ## M4sh Shell Functions. ##
286 ## --------------------- ##
289 # Portably unset VAR.
292 { eval $1=; unset $1;}
296 # as_fn_set_status STATUS
297 # -----------------------
298 # Set $? to STATUS, without forking.
306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 # Create "$as_dir" as a directory, including parents if necessary.
321 -*) as_dir
=.
/$as_dir;;
323 test -d "$as_dir" || eval $as_mkdir_p || {
327 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 as_dirs
="'$as_qdir' $as_dirs"
331 as_dir
=`$as_dirname -- "$as_dir" ||
332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
333 X"$as_dir" : 'X\(//\)[^/]' \| \
334 X"$as_dir" : 'X\(//\)$' \| \
335 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
336 $as_echo X"$as_dir" |
337 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
354 test -d "$as_dir" && break
356 test -z "$as_dirs" || eval "mkdir $as_dirs"
357 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
362 # as_fn_executable_p FILE
363 # -----------------------
364 # Test if FILE is an executable regular file.
365 as_fn_executable_p
()
367 test -f "$1" && test -x "$1"
368 } # as_fn_executable_p
369 # as_fn_append VAR VALUE
370 # ----------------------
371 # Append the text in VALUE to the end of the definition contained in VAR. Take
372 # advantage of any shell optimizations that allow amortized linear growth over
373 # repeated appends, instead of the typical quadratic growth present in naive
375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
376 eval 'as_fn_append ()
389 # Perform arithmetic evaluation on the ARGs, and store the result in the
390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
391 # must be portable across $(()) and expr.
392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
400 as_val
=`expr "$@" || test $? -eq 1`
405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
406 # ----------------------------------------
407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
409 # script with STATUS, using 1 if that was 0.
412 as_status
=$1; test $as_status -eq 0 && as_status
=1
414 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
415 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 $as_echo "$as_me: error: $2" >&2
418 as_fn_exit
$as_status
421 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
422 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
428 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
434 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
440 as_me
=`$as_basename -- "$0" ||
441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
442 X"$0" : 'X\(//\)$' \| \
443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 sed '/^.*\/\([^/][^/]*\)\/*$/{
459 # Avoid depending upon Character Ranges.
460 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
461 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
462 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
463 as_cr_digits
='0123456789'
464 as_cr_alnum
=$as_cr_Letters$as_cr_digits
467 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
468 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
469 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
470 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
471 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 chmod +x
"$as_me.lineno" ||
488 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
490 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
491 # already done that, so ensure we don't try to do so again and fall
492 # in an infinite loop. This has already happened in practice.
493 _as_can_reexec
=no
; export _as_can_reexec
494 # Don't try to exec as it changes $[0], causing all sort of problems
495 # (the dirname of $[0] is not the place where we might find the
496 # original and so on. Autoconf is especially sensitive to this).
498 # Exit status is that of the last command.
502 ECHO_C
= ECHO_N
= ECHO_T
=
503 case `echo -n x` in #(((((
505 case `echo 'xy\c'` in
506 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
508 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
515 rm -f conf$$ conf$$.exe conf$$.
file
516 if test -d conf$$.dir
; then
517 rm -f conf$$.dir
/conf$$.
file
520 mkdir conf$$.dir
2>/dev
/null
522 if (echo >conf$$.
file) 2>/dev
/null
; then
523 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
525 # ... but there are two gotchas:
526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
528 # In both cases, we have to default to `cp -pR'.
529 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
531 elif ln conf$$.
file conf$$
2>/dev
/null
; then
539 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
540 rmdir conf$$.dir
2>/dev
/null
542 if mkdir -p .
2>/dev
/null
; then
543 as_mkdir_p
='mkdir -p "$as_dir"'
545 test -d .
/-p && rmdir .
/-p
550 as_executable_p
=as_fn_executable_p
552 # Sed expression to map a string onto a valid CPP name.
553 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555 # Sed expression to map a string onto a valid variable name.
556 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559 test -n "$DJDIR" || exec 7<&0 </dev
/null
563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
564 # so uname gets run too.
565 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
570 ac_default_prefix
=/usr
/local
572 ac_config_libobj_dir
=.
579 # Identity of this package.
580 PACKAGE_NAME
='charybdis'
581 PACKAGE_TARNAME
='charybdis'
582 PACKAGE_VERSION
='3.5.0-dev'
583 PACKAGE_STRING
='charybdis 3.5.0-dev'
587 ac_default_prefix
=$HOME/ircd
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
624 enable_option_checking
=no
625 ac_subst_vars
='LTLIBOBJS
716 program_transform_name
729 enable_option_checking
757 ac_precious_vars
='build_alias
768 ac_subdirs_all
='libratbox'
770 # Initialize some variables set by options.
772 ac_init_version
=false
773 ac_unrecognized_opts
=
775 # The variables have the same names as the options, with
776 # dashes changed to underlines.
784 program_transform_name
=s
,x
,x
,
792 # Installation directory options.
793 # These are left unexpanded so users can "make install exec_prefix=/foo"
794 # and all the variables that are supposed to be based on exec_prefix
795 # by default will actually change.
796 # Use braces instead of parens because sh, perl, etc. also accept them.
797 # (The list follows the same order as the GNU Coding Standards.)
798 bindir
='${exec_prefix}/bin'
799 sbindir
='${exec_prefix}/sbin'
800 libexecdir
='${exec_prefix}/libexec'
801 datarootdir
='${prefix}/share'
802 datadir
='${datarootdir}'
803 sysconfdir
='${prefix}/etc'
804 sharedstatedir
='${prefix}/com'
805 localstatedir
='${prefix}/var'
806 includedir
='${prefix}/include'
807 oldincludedir
='/usr/include'
808 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
809 infodir
='${datarootdir}/info'
814 libdir
='${exec_prefix}/lib'
815 localedir
='${datarootdir}/locale'
816 mandir
='${datarootdir}/man'
822 # If the previous option needs an argument, assign it.
823 if test -n "$ac_prev"; then
824 eval $ac_prev=\
$ac_option
830 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
835 # Accept the important Cygnus configure options, so we can diagnose typos.
837 case $ac_dashdash$ac_option in
841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
846 -build | --build | --buil | --bui | --bu)
847 ac_prev
=build_alias
;;
848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
849 build_alias
=$ac_optarg ;;
851 -cache-file | --cache-file | --cache-fil | --cache-fi \
852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
853 ac_prev
=cache_file
;;
854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
856 cache_file
=$ac_optarg ;;
859 cache_file
=config.cache
;;
861 -datadir | --datadir | --datadi | --datad)
863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
864 datadir
=$ac_optarg ;;
866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
867 | --dataroo | --dataro | --datar)
868 ac_prev
=datarootdir
;;
869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
871 datarootdir
=$ac_optarg ;;
873 -disable-* | --disable-*)
874 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
875 # Reject names that are not valid shell variable names.
876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
877 as_fn_error $?
"invalid feature name: $ac_useropt"
878 ac_useropt_orig
=$ac_useropt
879 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
884 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
885 ac_unrecognized_sep
=', ';;
887 eval enable_
$ac_useropt=no
;;
889 -docdir | --docdir | --docdi | --doc | --do)
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
899 -enable-* | --enable-*)
900 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
901 # Reject names that are not valid shell variable names.
902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
903 as_fn_error $?
"invalid feature name: $ac_useropt"
904 ac_useropt_orig
=$ac_useropt
905 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906 case $ac_user_opts in
910 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
911 ac_unrecognized_sep
=', ';;
913 eval enable_
$ac_useropt=\
$ac_optarg ;;
915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
917 | --exec | --exe | --ex)
918 ac_prev
=exec_prefix
;;
919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
921 | --exec=* | --exe=* | --ex=*)
922 exec_prefix
=$ac_optarg ;;
924 -gas | --gas | --ga | --g)
925 # Obsolete; use --with-gas.
928 -help | --help | --hel | --he | -h)
930 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
931 ac_init_help
=recursive
;;
932 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
933 ac_init_help
=short
;;
935 -host | --host | --hos | --ho)
936 ac_prev
=host_alias
;;
937 -host=* | --host=* | --hos=* | --ho=*)
938 host_alias
=$ac_optarg ;;
940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 htmldir
=$ac_optarg ;;
946 -includedir | --includedir | --includedi | --included | --include \
947 | --includ | --inclu | --incl | --inc)
948 ac_prev
=includedir
;;
949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
950 | --includ=* | --inclu=* | --incl=* | --inc=*)
951 includedir
=$ac_optarg ;;
953 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
956 infodir
=$ac_optarg ;;
958 -libdir | --libdir | --libdi | --libd)
960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
964 | --libexe | --libex | --libe)
965 ac_prev
=libexecdir
;;
966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
967 | --libexe=* | --libex=* | --libe=*)
968 libexecdir
=$ac_optarg ;;
970 -localedir | --localedir | --localedi | --localed | --locale)
972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
973 localedir
=$ac_optarg ;;
975 -localstatedir | --localstatedir | --localstatedi | --localstated \
976 | --localstate | --localstat | --localsta | --localst | --locals)
977 ac_prev
=localstatedir
;;
978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
980 localstatedir
=$ac_optarg ;;
982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 # Obsolete; use --without-fp.
991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
992 | --no-cr | --no-c | -n)
995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1001 | --oldin | --oldi | --old | --ol | --o)
1002 ac_prev
=oldincludedir
;;
1003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1006 oldincludedir
=$ac_optarg ;;
1008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1011 prefix
=$ac_optarg ;;
1013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1014 | --program-pre | --program-pr | --program-p)
1015 ac_prev
=program_prefix
;;
1016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1018 program_prefix
=$ac_optarg ;;
1020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1021 | --program-suf | --program-su | --program-s)
1022 ac_prev
=program_suffix
;;
1023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1025 program_suffix
=$ac_optarg ;;
1027 -program-transform-name | --program-transform-name \
1028 | --program-transform-nam | --program-transform-na \
1029 | --program-transform-n | --program-transform- \
1030 | --program-transform | --program-transfor \
1031 | --program-transfo | --program-transf \
1032 | --program-trans | --program-tran \
1033 | --progr-tra | --program-tr | --program-t)
1034 ac_prev
=program_transform_name
;;
1035 -program-transform-name=* | --program-transform-name=* \
1036 | --program-transform-nam=* | --program-transform-na=* \
1037 | --program-transform-n=* | --program-transform-=* \
1038 | --program-transform=* | --program-transfor=* \
1039 | --program-transfo=* | --program-transf=* \
1040 | --program-trans=* | --program-tran=* \
1041 | --progr-tra=* | --program-tr=* | --program-t=*)
1042 program_transform_name
=$ac_optarg ;;
1044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1047 pdfdir
=$ac_optarg ;;
1049 -psdir | --psdir | --psdi | --psd | --ps)
1051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1058 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 sbindir
=$ac_optarg ;;
1064 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1065 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1066 | --sharedst | --shareds | --shared | --share | --shar \
1068 ac_prev
=sharedstatedir
;;
1069 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1070 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1071 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 sharedstatedir
=$ac_optarg ;;
1075 -site | --site | --sit)
1077 -site=* | --site=* | --sit=*)
1080 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1083 srcdir
=$ac_optarg ;;
1085 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1086 | --syscon | --sysco | --sysc | --sys | --sy)
1087 ac_prev
=sysconfdir
;;
1088 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1089 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1090 sysconfdir
=$ac_optarg ;;
1092 -target | --target | --targe | --targ | --tar | --ta | --t)
1093 ac_prev
=target_alias
;;
1094 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1095 target_alias
=$ac_optarg ;;
1097 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1100 -version | --version | --versio | --versi | --vers | -V)
1101 ac_init_version
=: ;;
1104 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error $?
"invalid package name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval with_
$ac_useropt=\
$ac_optarg ;;
1119 -without-* | --without-*)
1120 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1123 as_fn_error $?
"invalid package name: $ac_useropt"
1124 ac_useropt_orig
=$ac_useropt
1125 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep
=', ';;
1133 eval with_
$ac_useropt=no
;;
1136 # Obsolete; use --with-x.
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev
=x_includes
;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes
=$ac_optarg ;;
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev
=x_libraries
;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries
=$ac_optarg ;;
1153 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1154 Try \`$0 --help' for more information"
1158 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1159 # Reject names that are not valid shell variable names.
1160 case $ac_envvar in #(
1161 '' | [0-9]* | *[!_$as_cr_alnum]* )
1162 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1164 eval $ac_envvar=\
$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1178 if test -n "$ac_prev"; then
1179 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1180 as_fn_error $?
"missing argument to $ac_option"
1183 if test -n "$ac_unrecognized_opts"; then
1184 case $enable_option_checking in
1186 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1187 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 # Check all directory arguments for consistency.
1192 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1193 datadir sysconfdir sharedstatedir localstatedir includedir \
1194 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1195 libdir localedir mandir
1197 eval ac_val
=\$
$ac_var
1198 # Remove trailing slashes.
1201 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1202 eval $ac_var=\
$ac_val;;
1204 # Be sure to have absolute directory names.
1206 [\\/$
]* | ?
:[\\/]* ) continue;;
1207 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1209 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target
=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x
; then
1221 if test "x$build_alias" = x
; then
1222 cross_compiling
=maybe
1223 elif test "x$build_alias" != "x$host_alias"; then
1229 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1231 test "$silent" = yes && exec 6>/dev
/null
1234 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1235 ac_ls_di
=`ls -di .` &&
1236 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1237 as_fn_error $?
"working directory cannot be determined"
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 as_fn_error $?
"pwd does not report name of working directory"
1242 # Find the source files, if location was not specified.
1243 if test -z "$srcdir"; then
1244 ac_srcdir_defaulted
=yes
1245 # Try the directory containing this script, then the parent directory.
1246 ac_confdir
=`$as_dirname -- "$as_myself" ||
1247 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1248 X"$as_myself" : 'X\(//\)[^/]' \| \
1249 X"$as_myself" : 'X\(//\)$' \| \
1250 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1251 $as_echo X"$as_myself" |
1252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1274 ac_srcdir_defaulted
=no
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1277 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1278 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1280 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1282 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1284 # When building in place, set srcdir=.
1285 if test "$ac_abs_confdir" = "$ac_pwd"; then
1288 # Remove unnecessary trailing slashes from srcdir.
1289 # Double slashes in file names in object file debugging info
1290 # mess up M-x gdb in Emacs.
1292 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1294 for ac_var
in $ac_precious_vars; do
1295 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1296 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1297 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1298 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1302 # Report the --help message.
1304 if test "$ac_init_help" = "long"; then
1305 # Omit some internal or obsolete options to make the list less imposing.
1306 # This message is too long to be a string in the A/UX 3.1 sh.
1308 \`configure' configures charybdis 3.5.0-dev to adapt to many kinds of systems.
1310 Usage: $0 [OPTION]... [VAR=VALUE]...
1312 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1313 VAR=VALUE. See below for descriptions of some of the useful variables.
1315 Defaults for the options are specified in brackets.
1318 -h, --help display this help and exit
1319 --help=short display options specific to this package
1320 --help=recursive display the short help of all the included packages
1321 -V, --version display version information and exit
1322 -q, --quiet, --silent do not print \`checking ...' messages
1323 --cache-file=FILE cache test results in FILE [disabled]
1324 -C, --config-cache alias for \`--cache-file=config.cache'
1325 -n, --no-create do not create output files
1326 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1328 Installation directories:
1329 --prefix=PREFIX install architecture-independent files in PREFIX
1330 [$ac_default_prefix]
1331 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1334 By default, \`make install' will install all the files in
1335 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1336 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1337 for instance \`--prefix=\$HOME'.
1339 For better control, use the options below.
1341 Fine tuning of the installation directories:
1342 --bindir=DIR user executables [EPREFIX/bin]
1343 --sbindir=DIR system admin executables [EPREFIX/sbin]
1344 --libexecdir=DIR program executables [EPREFIX/libexec]
1345 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1346 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1347 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1348 --libdir=DIR object code libraries [EPREFIX/lib]
1349 --includedir=DIR C header files [PREFIX/include]
1350 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1351 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1352 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1353 --infodir=DIR info documentation [DATAROOTDIR/info]
1354 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1355 --mandir=DIR man documentation [DATAROOTDIR/man]
1356 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1357 --htmldir=DIR html documentation [DOCDIR]
1358 --dvidir=DIR dvi documentation [DOCDIR]
1359 --pdfdir=DIR pdf documentation [DOCDIR]
1360 --psdir=DIR ps documentation [DOCDIR]
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short
| recursive
) echo "Configuration of charybdis 3.5.0-dev:";;
1374 --disable-option-checking ignore unrecognized
--enable/--with options
1375 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1376 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1377 --enable-fhs-paths Use
more FHS
-like pathnames
(for packagers
).
1378 --enable-ipv6 Enable IPv6 support
1379 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1380 --disable-openssl Disable OpenSSL support.
1381 --disable-zlib Disable ziplinks support
1382 --enable-ports Force solaris I
/O ports subsystem usage.
1383 --enable-poll Force poll
() usage.
1384 --enable-select Force
select() usage.
1385 --enable-kqueue Force kqueue
() usage.
1386 --enable-epoll Force sys_epoll usage
(Linux only
).
1387 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1388 hard
(aborts the daemon
)
1389 --enable-iodebug Enable IO Debugging hooks
1390 --enable-profile Enable profiling
1391 --disable-balloc Disable the block allocator.
1392 --enable-small-net Enable small network support.
1393 --enable-warnings Enable all sorts of warnings
for debugging.
1396 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1397 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1398 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1399 --with-confdir=DIR Directory to
install config files
[deprecated
, use
1400 --sysconfdir instead
].
1401 --with-logdir=DIR Directory where to
write logfiles.
1402 --with-helpdir=DIR Directory to
install help files.
1403 --with-moduledir=DIR Directory to
install modules.
1404 --with-rundir=DIR Directory
in which to store pidfile.
1405 --with-program-prefix= If
set, programs installed into PATH will be
1406 installed with names prefixed by this prefix.
1407 --with-custom-branding=NAME
1408 Custom branding name.
1409 --with-custom-version=NAME
1410 Custom version branding.
1411 --with-nicklen=LENGTH Set the upper
-bound nick length to LENGTH
(default
1413 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1416 Some influential environment variables
:
1417 CC C compiler
command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1420 nonstandard directory
<lib dir
>
1421 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1422 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1423 you have headers
in a nonstandard directory
<include dir
>
1425 YACC The
`Yet Another Compiler Compiler' implementation to use.
1426 Defaults to the first program found out of: `bison
-y', `byacc',
1428 YFLAGS The list of arguments that will be passed by default to $YACC.
1429 This script will default YFLAGS to the empty string to avoid a
1430 default value of `-d' given by some make applications.
1432 Use these variables to override the choices made by `configure' or to
help
1433 it to
find libraries and programs with nonstandard names
/locations.
1435 Report bugs to the package provider.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1443 test -d "$ac_dir" ||
1444 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1449 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1451 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1452 # A ".." for each directory in $ac_dir_suffix.
1453 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1454 case $ac_top_builddir_sub in
1455 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1456 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1459 ac_abs_top_builddir
=$ac_pwd
1460 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1461 # for backward compatibility:
1462 ac_top_builddir
=$ac_top_build_prefix
1465 .
) # We are building in place.
1467 ac_top_srcdir
=$ac_top_builddir_sub
1468 ac_abs_top_srcdir
=$ac_pwd ;;
1469 [\\/]* | ?
:[\\/]* ) # Absolute name.
1470 ac_srcdir
=$srcdir$ac_dir_suffix;
1471 ac_top_srcdir
=$srcdir
1472 ac_abs_top_srcdir
=$srcdir ;;
1474 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1475 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1476 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1478 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1480 cd "$ac_dir" || { ac_status
=$?
; continue; }
1481 # Check for guested configure.
1482 if test -f "$ac_srcdir/configure.gnu"; then
1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1485 elif test -f "$ac_srcdir/configure"; then
1487 $SHELL "$ac_srcdir/configure" --help=recursive
1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1491 cd "$ac_pwd" || { ac_status
=$?
; break; }
1495 test -n "$ac_init_help" && exit $ac_status
1496 if $ac_init_version; then
1498 charybdis configure
3.5.0-dev
1499 generated by GNU Autoconf
2.69
1501 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1502 This configure
script is free software
; the Free Software Foundation
1503 gives unlimited permission to copy
, distribute and modify it.
1505 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1510 ## ------------------------ ##
1511 ## Autoconf initialization. ##
1512 ## ------------------------ ##
1514 # ac_fn_c_try_compile LINENO
1515 # --------------------------
1516 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1517 ac_fn_c_try_compile
()
1519 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1520 rm -f conftest.
$ac_objext
1521 if { { ac_try
="$ac_compile"
1523 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1524 *) ac_try_echo=$ac_try;;
1526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1527 $as_echo "$ac_try_echo"; } >&5
1528 (eval "$ac_compile") 2>conftest.err
1530 if test -s conftest.err; then
1531 grep -v '^ *+' conftest.err >conftest.er1
1532 cat conftest.er1 >&5
1533 mv -f conftest.er1 conftest.err
1535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1536 test $ac_status = 0; } && {
1537 test -z "$ac_c_werror_flag" ||
1538 test ! -s conftest.err
1539 } && test -s conftest.$ac_objext; then :
1542 $as_echo "$as_me: failed program was:" >&5
1543 sed 's/^/| /' conftest.$ac_ext >&5
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1548 as_fn_set_status $ac_retval
1550 } # ac_fn_c_try_compile
1552 # ac_fn_c_try_cpp LINENO
1553 # ----------------------
1554 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 if { { ac_try="$ac_cpp conftest.$ac_ext"
1560 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1561 *) ac_try_echo
=$ac_try;;
1563 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 $as_echo "$ac_try_echo"; } >&5
1565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567 if test -s conftest.err
; then
1568 grep -v '^ *+' conftest.err
>conftest.er1
1569 cat conftest.er1
>&5
1570 mv -f conftest.er1 conftest.err
1572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } > conftest.i
&& {
1574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1579 $as_echo "$as_me: failed program was:" >&5
1580 sed 's/^/| /' conftest.
$ac_ext >&5
1584 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585 as_fn_set_status
$ac_retval
1589 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1590 # -------------------------------------------------------
1591 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1592 # the include files in INCLUDES and setting the cache variable VAR
1594 ac_fn_c_check_header_mongrel
()
1596 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1597 if eval \
${$3+:} false
; then :
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 $as_echo_n "checking for $2... " >&6; }
1600 if eval \
${$3+:} false
; then :
1601 $as_echo_n "(cached) " >&6
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1605 $as_echo "$ac_res" >&6; }
1607 # Is the header compilable?
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1609 $as_echo_n "checking $2 usability... " >&6; }
1610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1611 /* end confdefs.h. */
1615 if ac_fn_c_try_compile
"$LINENO"; then :
1616 ac_header_compiler
=yes
1618 ac_header_compiler
=no
1620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1622 $as_echo "$ac_header_compiler" >&6; }
1624 # Is the header present?
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1626 $as_echo_n "checking $2 presence... " >&6; }
1627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1628 /* end confdefs.h. */
1631 if ac_fn_c_try_cpp
"$LINENO"; then :
1632 ac_header_preproc
=yes
1634 ac_header_preproc
=no
1636 rm -f conftest.err conftest.i conftest.
$ac_ext
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1638 $as_echo "$ac_header_preproc" >&6; }
1640 # So? What about this header?
1641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1644 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1646 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1650 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1652 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1654 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1656 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1658 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \
${$3+:} false
; then :
1664 $as_echo_n "(cached) " >&6
1666 eval "$3=\$ac_header_compiler"
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1670 $as_echo "$ac_res" >&6; }
1672 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 } # ac_fn_c_check_header_mongrel
1676 # ac_fn_c_try_run LINENO
1677 # ----------------------
1678 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1679 # that executables *can* be run.
1682 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1683 if { { ac_try
="$ac_link"
1685 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1686 *) ac_try_echo=$ac_try;;
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689 $as_echo "$ac_try_echo"; } >&5
1690 (eval "$ac_link") 2>&5
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1694 { { case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1696 *) ac_try_echo
=$ac_try;;
1698 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_try") 2>&5
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; }; }; then :
1706 $as_echo "$as_me: program exited with status $ac_status" >&5
1707 $as_echo "$as_me: failed program was:" >&5
1708 sed 's/^/| /' conftest.
$ac_ext >&5
1710 ac_retval
=$ac_status
1712 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714 as_fn_set_status
$ac_retval
1718 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists and can be compiled using the include files in
1721 # INCLUDES, setting the cache variable VAR accordingly.
1722 ac_fn_c_check_header_compile
()
1724 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726 $as_echo_n "checking for $2... " >&6; }
1727 if eval \
${$3+:} false
; then :
1728 $as_echo_n "(cached) " >&6
1730 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1735 if ac_fn_c_try_compile
"$LINENO"; then :
1740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744 $as_echo "$ac_res" >&6; }
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 } # ac_fn_c_check_header_compile
1749 # ac_fn_c_try_link LINENO
1750 # -----------------------
1751 # Try to link conftest.$ac_ext, and return whether this succeeded.
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 rm -f conftest.
$ac_objext conftest
$ac_exeext
1756 if { { ac_try
="$ac_link"
1758 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_link") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } && {
1772 test -z "$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1774 } && test -s conftest$ac_exeext && {
1775 test "$cross_compiling" = yes ||
1776 test -x conftest$ac_exeext
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1785 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1786 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1787 # interfere with the next link command; also delete a directory that is
1788 # left behind by Apple's compiler. We do this before executing the actions.
1789 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1791 as_fn_set_status $ac_retval
1793 } # ac_fn_c_try_link
1795 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1796 # -------------------------------------------
1797 # Tests whether TYPE exists after having included INCLUDES, setting cache
1798 # variable VAR accordingly.
1799 ac_fn_c_check_type ()
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if eval \${$3+:} false; then :
1805 $as_echo_n "(cached) " >&6
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1833 if ac_fn_c_try_compile "$LINENO"; then :
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 } # ac_fn_c_check_type
1849 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1850 # --------------------------------------------
1851 # Tries to find the compile-time value of EXPR in a program that includes
1852 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1854 ac_fn_c_compute_int ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if test "$cross_compiling" = yes; then
1858 # Depending upon the size, compute the lo and hi bounds.
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1865 static int test_array [1 - 2 * !(($2) >= 0)];
1867 return test_array [0];
1873 if ac_fn_c_try_compile "$LINENO"; then :
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1882 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1884 return test_array [0];
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 ac_hi=$ac_mid; break
1893 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1894 if test $ac_lo -le $ac_mid; then
1898 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1909 static int test_array [1 - 2 * !(($2) < 0)];
1911 return test_array [0];
1917 if ac_fn_c_try_compile "$LINENO"; then :
1920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1926 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1928 return test_array [0];
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935 ac_lo=$ac_mid; break
1937 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1938 if test $ac_mid -le $ac_hi; then
1942 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 # Binary search between lo and hi bounds.
1953 while test "x$ac_lo" != "x$ac_hi"; do
1954 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1961 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1963 return test_array [0];
1969 if ac_fn_c_try_compile "$LINENO"; then :
1972 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1984 static long int longval () { return $2; }
1985 static unsigned long int ulongval () { return $2; }
1992 FILE *f = fopen ("conftest.val", "w");
1997 long int i = longval ();
2000 fprintf (f, "%ld", i);
2004 unsigned long int i = ulongval ();
2007 fprintf (f, "%lu", i);
2009 /* Do not output a trailing newline, as this causes \r\n confusion
2010 on some platforms. */
2011 return ferror (f) || fclose (f) != 0;
2017 if ac_fn_c_try_run "$LINENO"; then :
2018 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2023 conftest.$ac_objext conftest.beam conftest.$ac_ext
2027 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028 as_fn_set_status $ac_retval
2030 } # ac_fn_c_compute_int
2032 # ac_fn_c_check_func LINENO FUNC VAR
2033 # ----------------------------------
2034 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2035 ac_fn_c_check_func ()
2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2045 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2047 #define $2 innocuous_$2
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char $2 (); below.
2051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2052 <limits.h> exists even on freestanding compilers. */
2055 # include <limits.h>
2057 # include <assert.h>
2062 /* Override any GCC internal prototype to avoid an error.
2063 Use char because int might match the return type of a GCC
2064 builtin and then its argument prototype would still apply. */
2069 /* The GNU C library defines this for functions which it implements
2070 to always fail with ENOSYS. Some functions are actually named
2071 something starting with __ and the normal name is an alias. */
2072 #if defined __stub_$2 || defined __stub___$2
2084 if ac_fn_c_try_link "$LINENO"; then :
2089 rm -f core conftest.err conftest.$ac_objext \
2090 conftest$ac_exeext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 } # ac_fn_c_check_func
2098 cat >config.log <<_ACEOF
2099 This file contains any messages produced by compilers while
2100 running configure, to aid debugging if configure makes a mistake.
2102 It was created by charybdis $as_me 3.5.0-dev, which was
2103 generated by GNU Autoconf 2.69. Invocation command line was
2115 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2116 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2117 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2118 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2119 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2121 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2122 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2124 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2125 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2126 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2127 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2128 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2129 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2130 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 $as_echo "PATH: $as_dir"
2155 # Keep a trace of the command line.
2156 # Strip out --no-create and --no-recursion so they do not pile up.
2157 # Strip out --silent because we don't want to record it for future runs.
2158 # Also quote any args containing shell meta-characters.
2159 # Make two passes to allow for proper duplicate-argument suppression.
2163 ac_must_keep_next=false
2169 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2171 | -silent | --silent | --silen | --sile | --sil)
2174 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2177 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 as_fn_append ac_configure_args1 " '$ac_arg'"
2180 if test $ac_must_keep_next = true; then
2181 ac_must_keep_next=false # Got value, back to normal.
2184 *=* | --config-cache | -C | -disable-* | --disable-* \
2185 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2186 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2187 | -with-* | --with-* | -without-* | --without-* | --x)
2188 case "$ac_configure_args0 " in
2189 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2192 -* ) ac_must_keep_next=true ;;
2195 as_fn_append ac_configure_args " '$ac_arg'"
2200 { ac_configure_args0=; unset ac_configure_args0;}
2201 { ac_configure_args1=; unset ac_configure_args1;}
2203 # When interrupted or exit'd, cleanup temporary files, and complete
2204 # config.log. We remove comments because anyway the quotes in there
2205 # would cause problems or look ugly.
2206 # WARNING: Use '\'' to represent an apostrophe within the trap.
2207 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2208 trap 'exit_status=$?
2209 # Save into config.log some information that might help in debugging.
2213 $as_echo "## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##"
2217 # The following way of writing the cache mishandles newlines in values,
2219 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2220 eval ac_val=\$$ac_var
2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 _ | IFS | as_nl) ;; #(
2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230 *) { eval $ac_var=; unset $ac_var;} ;;
2235 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2236 *${as_nl}ac_space=\ *)
2238 "s/'\''/'\''\\\\'\'''\''/g;
2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2249 $as_echo "## ----------------- ##
2250 ## Output variables. ##
2251 ## ----------------- ##"
2253 for ac_var in $ac_subst_vars
2255 eval ac_val=\$$ac_var
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 $as_echo "$ac_var='\''$ac_val'\''"
2263 if test -n "$ac_subst_files"; then
2264 $as_echo "## ------------------- ##
2265 ## File substitutions. ##
2266 ## ------------------- ##"
2268 for ac_var in $ac_subst_files
2270 eval ac_val=\$$ac_var
2272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 $as_echo "$ac_var='\''$ac_val'\''"
2279 if test -s confdefs.h; then
2280 $as_echo "## ----------- ##
2287 test "$ac_signal" != 0 &&
2288 $as_echo "$as_me: caught signal $ac_signal"
2289 $as_echo "$as_me: exit $exit_status"
2291 rm -f core *.core core.conftest.* &&
2292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2295 for ac_signal in 1 2 13 15; do
2296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2301 rm -f -r conftest* confdefs.h
2303 $as_echo "/* confdefs.h */" > confdefs.h
2305 # Predefined preprocessor variables.
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_NAME "$PACKAGE_NAME"
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2319 cat >>confdefs.h <<_ACEOF
2320 #define PACKAGE_STRING "$PACKAGE_STRING"
2323 cat >>confdefs.h <<_ACEOF
2324 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_URL "$PACKAGE_URL"
2332 # Let the site file select an alternate cache file if it wants to.
2333 # Prefer an explicitly selected file to automatically selected ones.
2336 if test -n "$CONFIG_SITE"; then
2337 # We do not want a PATH search for config.site.
2338 case $CONFIG_SITE in #((
2339 -*) ac_site_file1=./$CONFIG_SITE;;
2340 */*) ac_site_file1=$CONFIG_SITE;;
2341 *) ac_site_file1=./$CONFIG_SITE;;
2343 elif test "x$prefix" != xNONE; then
2344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
2347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 test "x$ac_site_file" = xNONE && continue
2353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356 sed 's/^/| /' "$ac_site_file" >&5
2358 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2360 as_fn_error $? "failed to load site
script $ac_site_file
2361 See \
`config.log' for more details" "$LINENO" 5; }
2365 if test -r "$cache_file"; then
2366 # Some versions of bash will fail to source /dev/null (special files
2367 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2368 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2370 $as_echo "$as_me: loading cache $cache_file" >&6;}
2372 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2373 *) . "./$cache_file";;
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2378 $as_echo "$as_me: creating cache $cache_file" >&6;}
2382 # Check that the precious variables saved in the cache have kept the same
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387 eval ac_new_set=\$ac_env_${ac_var}_set
2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389 eval ac_new_val=\$ac_env_${ac_var}_value
2390 case $ac_old_set,$ac_new_set in
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2393 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2397 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2401 if test "x$ac_old_val" != "x$ac_new_val"; then
2402 # differences in whitespace do not lead to failure.
2403 ac_old_val_w=`echo x
$ac_old_val`
2404 ac_new_val_w=`echo x
$ac_new_val`
2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2408 ac_cache_corrupted=:
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412 eval $ac_var=\$ac_old_val
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2415 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 # Pass precious variables to config.status.
2421 if test "$ac_new_set" = set; then
2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2424 *) ac_arg=$ac_var=$ac_new_val ;;
2426 case " $ac_configure_args " in
2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2428 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2432 if $ac_cache_corrupted; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2439 ## -------------------- ##
2440 ## Main body of script. ##
2441 ## -------------------- ##
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2451 ac_config_headers="$ac_config_headers include/setup.h"
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465 $as_echo_n "checking for $ac_word... " >&6; }
2466 if ${ac_cv_prog_CC+:} false; then :
2467 $as_echo_n "(cached) " >&6
2469 if test -n "$CC"; then
2470 ac_cv_prog_CC="$CC" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 if test -n "$CC"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2492 $as_echo "$CC" >&6; }
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495 $as_echo "no" >&6; }
2500 if test -z "$ac_cv_prog_CC"; then
2502 # Extract the first word of "gcc", so it can be a program name with args.
2503 set dummy gcc; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2507 $as_echo_n "(cached) " >&6
2509 if test -n "$ac_ct_CC"; then
2510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519 ac_cv_prog_ac_ct_CC="gcc"
2520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2530 if test -n "$ac_ct_CC"; then
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2532 $as_echo "$ac_ct_CC" >&6; }
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2538 if test "x$ac_ct_CC" = x; then
2541 case $cross_compiling:$ac_tool_warned in
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2545 ac_tool_warned=yes ;;
2553 if test -z "$CC"; then
2554 if test -n "$ac_tool_prefix"; then
2555 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2556 set dummy ${ac_tool_prefix}cc; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_CC+:} false; then :
2560 $as_echo_n "(cached) " >&6
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572 ac_cv_prog_CC="${ac_tool_prefix}cc"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$CC"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2585 $as_echo "$CC" >&6; }
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2594 if test -z "$CC"; then
2595 # Extract the first word of "cc", so it can be a program name with args.
2596 set dummy cc; ac_word=$2
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2598 $as_echo_n "checking for $ac_word... " >&6; }
2599 if ${ac_cv_prog_CC+:} false; then :
2600 $as_echo_n "(cached) " >&6
2602 if test -n "$CC"; then
2603 ac_cv_prog_CC="$CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2614 ac_prog_rejected=yes
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 if test $ac_prog_rejected = yes; then
2626 # We found a bogon in the path, so make sure we never use it.
2627 set dummy $ac_cv_prog_CC
2629 if test $# != 0; then
2630 # We chose a different compiler from the bogus one.
2631 # However, it has the same basename, so the bogon will be chosen
2632 # first if we set CC to just the basename; use the full file name.
2634 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640 if test -n "$CC"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2642 $as_echo "$CC" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2650 if test -z "$CC"; then
2651 if test -n "$ac_tool_prefix"; then
2652 for ac_prog in cl.exe
2654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if ${ac_cv_prog_CC+:} false; then :
2659 $as_echo_n "(cached) " >&6
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2687 $as_echo "no" >&6; }
2691 test -n "$CC" && break
2694 if test -z "$CC"; then
2696 for ac_prog in cl.exe
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2703 $as_echo_n "(cached) " >&6
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_ac_ct_CC="$ac_prog"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2728 $as_echo "$ac_ct_CC" >&6; }
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2735 test -n "$ac_ct_CC" && break
2738 if test "x$ac_ct_CC" = x; then
2741 case $cross_compiling:$ac_tool_warned in
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2754 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2756 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2757 See \
`config.log' for more details" "$LINENO" 5; }
2759 # Provide some information about the compiler.
2760 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2763 for ac_option in --version -v -V -qversion; do
2764 { { ac_try="$ac_compiler $ac_option >&5"
2766 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2767 *) ac_try_echo
=$ac_try;;
2769 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2770 $as_echo "$ac_try_echo"; } >&5
2771 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2773 if test -s conftest.err
; then
2775 ... rest of stderr output deleted ...
2776 10q' conftest.err
>conftest.er1
2777 cat conftest.er1
>&5
2779 rm -f conftest.er1 conftest.err
2780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781 test $ac_status = 0; }
2784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2785 /* end confdefs.h. */
2795 ac_clean_files_save
=$ac_clean_files
2796 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2797 # Try to create an executable without -o first, disregard a.out.
2798 # It will help us diagnose broken compilers, and finding out an intuition
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2801 $as_echo_n "checking whether the C compiler works... " >&6; }
2802 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2804 # The possible output files:
2805 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2808 for ac_file
in $ac_files
2811 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2812 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2817 if { { ac_try
="$ac_link_default"
2819 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823 $as_echo "$ac_try_echo"; } >&5
2824 (eval "$ac_link_default") 2>&5
2826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827 test $ac_status = 0; }; then :
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2829 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file in $ac_files ''
2835 test -f "$ac_file" || continue
2837 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2846 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no && ac_cv_exeext=
2863 if test -z "$ac_file"; then :
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 $as_echo "no" >&6; }
2866 $as_echo "$as_me: failed program was:" >&5
2867 sed 's
/^
/| /' conftest.$ac_ext >&5
2869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2870 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2871 as_fn_error 77 "C compiler cannot create executables
2872 See \`config.log
' for more details" "$LINENO" 5; }
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2875 $as_echo "yes" >&6; }
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2878 $as_echo_n "checking for C compiler default output file name... " >&6; }
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2880 $as_echo "$ac_file" >&6; }
2881 ac_exeext=$ac_cv_exeext
2883 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2884 ac_clean_files=$ac_clean_files_save
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2886 $as_echo_n "checking for suffix of executables... " >&6; }
2887 if { { ac_try="$ac_link"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_link") 2>&5
2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897 test $ac_status = 0; }; then :
2898 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2899 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2900 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2902 for ac_file
in conftest.exe conftest conftest.
*; do
2903 test -f "$ac_file" || continue
2905 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2906 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2915 See \`config.log' for more details" "$LINENO" 5; }
2917 rm -f conftest conftest
$ac_cv_exeext
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2919 $as_echo "$ac_cv_exeext" >&6; }
2921 rm -f conftest.
$ac_ext
2922 EXEEXT
=$ac_cv_exeext
2924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2925 /* end confdefs.h. */
2930 FILE *f = fopen ("conftest.out", "w");
2931 return ferror (f) || fclose (f) != 0;
2937 ac_clean_files
="$ac_clean_files conftest.out"
2938 # Check that the compiler produces executables we can run. If not, either
2939 # the compiler is broken, or we cross compile.
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2941 $as_echo_n "checking whether we are cross compiling... " >&6; }
2942 if test "$cross_compiling" != yes; then
2943 { { ac_try
="$ac_link"
2945 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949 $as_echo "$ac_try_echo"; } >&5
2950 (eval "$ac_link") 2>&5
2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953 test $ac_status = 0; }
2954 if { ac_try='./conftest$ac_cv_exeext'
2955 { { case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2957 *) ac_try_echo
=$ac_try;;
2959 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2960 $as_echo "$ac_try_echo"; } >&5
2961 (eval "$ac_try") 2>&5
2963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2964 test $ac_status = 0; }; }; then
2967 if test "$cross_compiling" = maybe
; then
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2972 as_fn_error $?
"cannot run C compiled programs.
2973 If you meant to cross compile, use \`--host'.
2974 See \`config.log' for more details" "$LINENO" 5; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2979 $as_echo "$cross_compiling" >&6; }
2981 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2982 ac_clean_files
=$ac_clean_files_save
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2984 $as_echo_n "checking for suffix of object files... " >&6; }
2985 if ${ac_cv_objext+:} false
; then :
2986 $as_echo_n "(cached) " >&6
2988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2989 /* end confdefs.h. */
2999 rm -f conftest.o conftest.obj
3000 if { { ac_try
="$ac_compile"
3002 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_compile") 2>&5
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 for ac_file in conftest.o conftest.obj conftest.*; do
3012 test -f "$ac_file" || continue;
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020 $as_echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3026 See \
`config.log' for more details" "$LINENO" 5; }
3028 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3031 $as_echo "$ac_cv_objext" >&6; }
3032 OBJEXT=$ac_cv_objext
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3035 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3036 if ${ac_cv_c_compiler_gnu+:} false; then :
3037 $as_echo_n "(cached) " >&6
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3053 if ac_fn_c_try_compile "$LINENO"; then :
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3063 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3064 if test $ac_compiler_gnu = yes; then
3069 ac_test_CFLAGS=${CFLAGS+set}
3070 ac_save_CFLAGS=$CFLAGS
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3072 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3073 if ${ac_cv_prog_cc_g+:} false; then :
3074 $as_echo_n "(cached) " >&6
3076 ac_save_c_werror_flag=$ac_c_werror_flag
3077 ac_c_werror_flag=yes
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3091 if ac_fn_c_try_compile "$LINENO"; then :
3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096 /* end confdefs.h. */
3106 if ac_fn_c_try_compile "$LINENO"; then :
3109 ac_c_werror_flag=$ac_save_c_werror_flag
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3122 if ac_fn_c_try_compile "$LINENO"; then :
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3130 ac_c_werror_flag=$ac_save_c_werror_flag
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3133 $as_echo "$ac_cv_prog_cc_g" >&6; }
3134 if test "$ac_test_CFLAGS" = set; then
3135 CFLAGS=$ac_save_CFLAGS
3136 elif test $ac_cv_prog_cc_g = yes; then
3137 if test "$GCC" = yes; then
3143 if test "$GCC" = yes; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3150 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3151 if ${ac_cv_prog_cc_c89+:} false; then :
3152 $as_echo_n "(cached) " >&6
3154 ac_cv_prog_cc_c89=no
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3161 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3162 struct buf { int x; };
3163 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3164 static char *e (p, i)
3170 static char *f (char * (*g) (char **, int), char **p, ...)
3175 s = g (p, va_arg (v,int));
3180 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3181 function prototypes and stuff, but not '\xHH' hex character constants.
3182 These don't provoke an error unfortunately, instead are silently treated
3183 as 'x'. The following induces an error, until -std is added to get
3184 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3185 array size at least. It's necessary to write '\x00'==0 to get something
3186 that's true only with -std. */
3187 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3189 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3190 inside strings and character constants. */
3192 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3194 int test (int i, double x);
3195 struct s1 {int (*f) (int a);};
3196 struct s2 {int (*f) (double a);};
3197 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3203 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3208 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3209 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3211 CC="$ac_save_CC $ac_arg"
3212 if ac_fn_c_try_compile "$LINENO"; then :
3213 ac_cv_prog_cc_c89=$ac_arg
3215 rm -f core conftest.err conftest.$ac_objext
3216 test "x$ac_cv_prog_cc_c89" != "xno" && break
3218 rm -f conftest.$ac_ext
3223 case "x$ac_cv_prog_cc_c89" in
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3226 $as_echo "none needed" >&6; } ;;
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3229 $as_echo "unsupported" >&6; } ;;
3231 CC="$CC $ac_cv_prog_cc_c89"
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3233 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3235 if test "x$ac_cv_prog_cc_c89" != xno; then :
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247 ac_cpp='$CPP $CPPFLAGS'
3248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3252 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3253 # On Suns, sometimes $CPP names a directory.
3254 if test -n "$CPP" && test -d "$CPP"; then
3257 if test -z "$CPP"; then
3258 if ${ac_cv_prog_CPP+:} false; then :
3259 $as_echo_n "(cached) " >&6
3261 # Double quotes because CPP needs to be expanded
3262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3265 for ac_c_preproc_warn_flag in '' yes
3267 # Use a header file that comes with gcc, so configuring glibc
3268 # with a fresh cross-compiler works.
3269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3270 # <limits.h> exists even on freestanding compilers.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp. "Syntax error" is here to catch this case.
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3276 # include <limits.h>
3278 # include <assert.h>
3282 if ac_fn_c_try_cpp "$LINENO"; then :
3285 # Broken: fails on valid input.
3288 rm -f conftest.err conftest.i conftest.$ac_ext
3290 # OK, works on sane cases. Now check whether nonexistent headers
3291 # can be detected and how.
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h. */
3294 #include <ac_nonexistent.h>
3296 if ac_fn_c_try_cpp "$LINENO"; then :
3297 # Broken: success on invalid input.
3300 # Passes both tests.
3304 rm -f conftest.err conftest.i conftest.$ac_ext
3307 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3308 rm -f conftest.i conftest.err conftest.
$ac_ext
3309 if $ac_preproc_ok; then :
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3322 $as_echo "$CPP" >&6; }
3324 for ac_c_preproc_warn_flag
in '' yes
3326 # Use a header file that comes with gcc, so configuring glibc
3327 # with a fresh cross-compiler works.
3328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329 # <limits.h> exists even on freestanding compilers.
3330 # On the NeXT, cc -E runs the code through the compiler's parser,
3331 # not just through cpp. "Syntax error" is here to catch this case.
3332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3335 # include <limits.h>
3337 # include <assert.h>
3341 if ac_fn_c_try_cpp
"$LINENO"; then :
3344 # Broken: fails on valid input.
3347 rm -f conftest.err conftest.i conftest.
$ac_ext
3349 # OK, works on sane cases. Now check whether nonexistent headers
3350 # can be detected and how.
3351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h. */
3353 #include <ac_nonexistent.h>
3355 if ac_fn_c_try_cpp
"$LINENO"; then :
3356 # Broken: success on invalid input.
3359 # Passes both tests.
3363 rm -f conftest.err conftest.i conftest.
$ac_ext
3366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3367 rm -f conftest.i conftest.err conftest.
$ac_ext
3368 if $ac_preproc_ok; then :
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3374 See \`config.log' for more details" "$LINENO" 5; }
3378 ac_cpp
='$CPP $CPPFLAGS'
3379 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3385 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3386 if ${ac_cv_path_GREP+:} false
; then :
3387 $as_echo_n "(cached) " >&6
3389 if test -z "$GREP"; then
3390 ac_path_GREP_found
=false
3391 # Loop through the user's path and test for each of PROGNAME-LIST
3392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3393 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3396 test -z "$as_dir" && as_dir
=.
3397 for ac_prog
in grep ggrep
; do
3398 for ac_exec_ext
in '' $ac_executable_extensions; do
3399 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3400 as_fn_executable_p
"$ac_path_GREP" || continue
3401 # Check for GNU ac_path_GREP and select it if it is found.
3402 # Check for GNU $ac_path_GREP
3403 case `"$ac_path_GREP" --version 2>&1` in
3405 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3408 $as_echo_n 0123456789 >"conftest.in"
3411 cat "conftest.in" "conftest.in" >"conftest.tmp"
3412 mv "conftest.tmp" "conftest.in"
3413 cp "conftest.in" "conftest.nl"
3414 $as_echo 'GREP' >> "conftest.nl"
3415 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3416 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3417 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3418 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3419 # Best one so far, save it but keep looking for a better one
3420 ac_cv_path_GREP
="$ac_path_GREP"
3421 ac_path_GREP_max
=$ac_count
3423 # 10*(2^10) chars as input seems more than enough
3424 test $ac_count -gt 10 && break
3426 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3429 $ac_path_GREP_found && break 3
3434 if test -z "$ac_cv_path_GREP"; then
3435 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3438 ac_cv_path_GREP
=$GREP
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3443 $as_echo "$ac_cv_path_GREP" >&6; }
3444 GREP
="$ac_cv_path_GREP"
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3448 $as_echo_n "checking for egrep... " >&6; }
3449 if ${ac_cv_path_EGREP+:} false
; then :
3450 $as_echo_n "(cached) " >&6
3452 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3453 then ac_cv_path_EGREP
="$GREP -E"
3455 if test -z "$EGREP"; then
3456 ac_path_EGREP_found
=false
3457 # Loop through the user's path and test for each of PROGNAME-LIST
3458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3459 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3462 test -z "$as_dir" && as_dir
=.
3463 for ac_prog
in egrep; do
3464 for ac_exec_ext
in '' $ac_executable_extensions; do
3465 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3466 as_fn_executable_p
"$ac_path_EGREP" || continue
3467 # Check for GNU ac_path_EGREP and select it if it is found.
3468 # Check for GNU $ac_path_EGREP
3469 case `"$ac_path_EGREP" --version 2>&1` in
3471 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3474 $as_echo_n 0123456789 >"conftest.in"
3477 cat "conftest.in" "conftest.in" >"conftest.tmp"
3478 mv "conftest.tmp" "conftest.in"
3479 cp "conftest.in" "conftest.nl"
3480 $as_echo 'EGREP' >> "conftest.nl"
3481 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3482 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3483 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3484 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3485 # Best one so far, save it but keep looking for a better one
3486 ac_cv_path_EGREP
="$ac_path_EGREP"
3487 ac_path_EGREP_max
=$ac_count
3489 # 10*(2^10) chars as input seems more than enough
3490 test $ac_count -gt 10 && break
3492 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3495 $ac_path_EGREP_found && break 3
3500 if test -z "$ac_cv_path_EGREP"; then
3501 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3504 ac_cv_path_EGREP
=$EGREP
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3510 $as_echo "$ac_cv_path_EGREP" >&6; }
3511 EGREP
="$ac_cv_path_EGREP"
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3515 $as_echo_n "checking for ANSI C header files... " >&6; }
3516 if ${ac_cv_header_stdc+:} false
; then :
3517 $as_echo_n "(cached) " >&6
3519 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3534 if ac_fn_c_try_compile
"$LINENO"; then :
3535 ac_cv_header_stdc
=yes
3537 ac_cv_header_stdc
=no
3539 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3541 if test $ac_cv_header_stdc = yes; then
3542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3549 $EGREP "memchr" >/dev
/null
2>&1; then :
3552 ac_cv_header_stdc
=no
3558 if test $ac_cv_header_stdc = yes; then
3559 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3566 $EGREP "free" >/dev
/null
2>&1; then :
3569 ac_cv_header_stdc
=no
3575 if test $ac_cv_header_stdc = yes; then
3576 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3577 if test "$cross_compiling" = yes; then :
3580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3584 #if ((' ' & 0x0FF) == 0x020)
3585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3588 # define ISLOWER(c) \
3589 (('a' <= (c) && (c) <= 'i') \
3590 || ('j' <= (c) && (c) <= 'r') \
3591 || ('s' <= (c) && (c) <= 'z'))
3592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3600 for (i = 0; i < 256; i++)
3601 if (XOR (islower (i), ISLOWER (i))
3602 || toupper (i) != TOUPPER (i))
3607 if ac_fn_c_try_run
"$LINENO"; then :
3610 ac_cv_header_stdc
=no
3612 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3613 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3619 $as_echo "$ac_cv_header_stdc" >&6; }
3620 if test $ac_cv_header_stdc = yes; then
3622 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3626 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3627 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3628 inttypes.h stdint.h unistd.h
3630 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3631 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3633 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3634 cat >>confdefs.h
<<_ACEOF
3635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3644 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3645 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3652 if test "$MINIX" = yes; then
3654 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3657 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3660 $as_echo "#define _MINIX 1" >>confdefs.h
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3666 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3667 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3668 $as_echo_n "(cached) " >&6
3670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3673 # define __EXTENSIONS__ 1
3674 $ac_includes_default
3683 if ac_fn_c_try_compile
"$LINENO"; then :
3684 ac_cv_safe_to_define___extensions__
=yes
3686 ac_cv_safe_to_define___extensions__
=no
3688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3691 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3692 test $ac_cv_safe_to_define___extensions__ = yes &&
3693 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3695 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3697 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3699 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3701 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3706 OLD_CFLAGS
="$CFLAGS"
3708 ac_cpp
='$CPP $CPPFLAGS'
3709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3714 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_CC+:} false
; then :
3718 $as_echo_n "(cached) " >&6
3720 if test -n "$CC"; then
3721 ac_cv_prog_CC
="$CC" # Let the user override the test.
3723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir
=.
3728 for ac_exec_ext
in '' $ac_executable_extensions; do
3729 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3730 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3741 if test -n "$CC"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3743 $as_echo "$CC" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3751 if test -z "$ac_cv_prog_CC"; then
3753 # Extract the first word of "gcc", so it can be a program name with args.
3754 set dummy gcc
; ac_word
=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3758 $as_echo_n "(cached) " >&6
3760 if test -n "$ac_ct_CC"; then
3761 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir
=.
3768 for ac_exec_ext
in '' $ac_executable_extensions; do
3769 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_prog_ac_ct_CC
="gcc"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3781 if test -n "$ac_ct_CC"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3783 $as_echo "$ac_ct_CC" >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3789 if test "x$ac_ct_CC" = x
; then
3792 case $cross_compiling:$ac_tool_warned in
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned
=yes ;;
3804 if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
3806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3807 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3809 $as_echo_n "checking for $ac_word... " >&6; }
3810 if ${ac_cv_prog_CC+:} false
; then :
3811 $as_echo_n "(cached) " >&6
3813 if test -n "$CC"; then
3814 ac_cv_prog_CC
="$CC" # Let the user override the test.
3816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir
=.
3821 for ac_exec_ext
in '' $ac_executable_extensions; do
3822 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 if test -n "$CC"; then
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836 $as_echo "$CC" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839 $as_echo "no" >&6; }
3845 if test -z "$CC"; then
3846 # Extract the first word of "cc", so it can be a program name with args.
3847 set dummy cc
; ac_word
=$2
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3849 $as_echo_n "checking for $ac_word... " >&6; }
3850 if ${ac_cv_prog_CC+:} false
; then :
3851 $as_echo_n "(cached) " >&6
3853 if test -n "$CC"; then
3854 ac_cv_prog_CC
="$CC" # Let the user override the test.
3857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir
=.
3862 for ac_exec_ext
in '' $ac_executable_extensions; do
3863 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3865 ac_prog_rejected
=yes
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 if test $ac_prog_rejected = yes; then
3877 # We found a bogon in the path, so make sure we never use it.
3878 set dummy
$ac_cv_prog_CC
3880 if test $# != 0; then
3881 # We chose a different compiler from the bogus one.
3882 # However, it has the same basename, so the bogon will be chosen
3883 # first if we set CC to just the basename; use the full file name.
3885 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3891 if test -n "$CC"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3893 $as_echo "$CC" >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3901 if test -z "$CC"; then
3902 if test -n "$ac_tool_prefix"; then
3903 for ac_prog
in cl.exe
3905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3906 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_CC+:} false
; then :
3910 $as_echo_n "(cached) " >&6
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC
="$CC" # Let the user override the test.
3915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir
=.
3920 for ac_exec_ext
in '' $ac_executable_extensions; do
3921 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935 $as_echo "$CC" >&6; }
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3942 test -n "$CC" && break
3945 if test -z "$CC"; then
3947 for ac_prog
in cl.exe
3949 # Extract the first word of "$ac_prog", so it can be a program name with args.
3950 set dummy
$ac_prog; ac_word
=$2
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3954 $as_echo_n "(cached) " >&6
3956 if test -n "$ac_ct_CC"; then
3957 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir
=.
3964 for ac_exec_ext
in '' $ac_executable_extensions; do
3965 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_CC
="$ac_prog"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3977 if test -n "$ac_ct_CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3979 $as_echo "$ac_ct_CC" >&6; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982 $as_echo "no" >&6; }
3986 test -n "$ac_ct_CC" && break
3989 if test "x$ac_ct_CC" = x
; then
3992 case $cross_compiling:$ac_tool_warned in
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996 ac_tool_warned
=yes ;;
4005 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4007 as_fn_error $?
"no acceptable C compiler found in \$PATH
4008 See \`config.log' for more details" "$LINENO" 5; }
4010 # Provide some information about the compiler.
4011 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4014 for ac_option
in --version -v -V -qversion; do
4015 { { ac_try
="$ac_compiler $ac_option >&5"
4017 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021 $as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4024 if test -s conftest.err; then
4026 ... rest of stderr output deleted ...
4027 10q' conftest.err >conftest.er1
4028 cat conftest.er1 >&5
4030 rm -f conftest.er1 conftest.err
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037 if ${ac_cv_c_compiler_gnu+:} false; then :
4038 $as_echo_n "(cached) " >&6
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065 if test $ac_compiler_gnu = yes; then
4070 ac_test_CFLAGS=${CFLAGS+set}
4071 ac_save_CFLAGS=$CFLAGS
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074 if ${ac_cv_prog_cc_g+:} false; then :
4075 $as_echo_n "(cached) " >&6
4077 ac_save_c_werror_flag=$ac_c_werror_flag
4078 ac_c_werror_flag=yes
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4092 if ac_fn_c_try_compile "$LINENO"; then :
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4107 if ac_fn_c_try_compile "$LINENO"; then :
4110 ac_c_werror_flag=$ac_save_c_werror_flag
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h. */
4123 if ac_fn_c_try_compile "$LINENO"; then :
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 ac_c_werror_flag=$ac_save_c_werror_flag
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136 CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138 if test "$GCC" = yes; then
4144 if test "$GCC" = yes; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if ${ac_cv_prog_cc_c89+:} false; then :
4153 $as_echo_n "(cached) " >&6
4155 ac_cv_prog_cc_c89=no
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4163 struct buf { int x; };
4164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4165 static char *e (p, i)
4171 static char *f (char * (*g) (char **, int), char **p, ...)
4176 s = g (p, va_arg (v,int));
4181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4182 function prototypes and stuff, but not '\xHH' hex character constants.
4183 These don't provoke an error unfortunately, instead are silently treated
4184 as 'x'. The following induces an error, until -std is added to get
4185 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4186 array size at least. It's necessary to write '\x00'==0 to get something
4187 that's true only with -std. */
4188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4191 inside strings and character constants. */
4193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4195 int test (int i, double x);
4196 struct s1 {int (*f) (int a);};
4197 struct s2 {int (*f) (double a);};
4198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4204 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4210 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4212 CC="$ac_save_CC $ac_arg"
4213 if ac_fn_c_try_compile "$LINENO"; then :
4214 ac_cv_prog_cc_c89=$ac_arg
4216 rm -f core conftest.err conftest.$ac_objext
4217 test "x$ac_cv_prog_cc_c89" != "xno" && break
4219 rm -f conftest.$ac_ext
4224 case "x$ac_cv_prog_cc_c89" in
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227 $as_echo "none needed" >&6; } ;;
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230 $as_echo "unsupported" >&6; } ;;
4232 CC="$CC $ac_cv_prog_cc_c89"
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4236 if test "x$ac_cv_prog_cc_c89" != xno; then :
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253 CFLAGS="$OLD_CFLAGS"
4256 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4257 if test -f "$ac_dir/install-sh"; then
4259 ac_install_sh="$ac_aux_dir/install-sh -c"
4261 elif test -f "$ac_dir/install.sh"; then
4263 ac_install_sh="$ac_aux_dir/install.sh -c"
4265 elif test -f "$ac_dir/shtool"; then
4267 ac_install_sh="$ac_aux_dir/shtool install -c"
4271 if test -z "$ac_aux_dir"; then
4272 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4275 # These three variables are undocumented and unsupported,
4276 # and are intended to be withdrawn in a future Autoconf release.
4277 # They can cause serious problems if a builder's source tree is in a directory
4278 # whose full name contains unusual characters.
4279 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4280 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4281 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4286 subdirs="$subdirs libratbox"
4290 if test "$ac_cv_c_compiler_gnu" != yes; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4294 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4295 case `$CC -version 2>&1` in
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4298 $as_echo "yes, TenDRA" >&6; }
4300 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4306 $as_echo "yes, MIPSpro" >&6; }
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 $as_echo "no" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4319 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4320 case `$CC -V 2>&1` in
4321 *Sun*WorkShop* | *Forte*Developer*)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4323 $as_echo "Sun Workshop/Forte" >&6; }
4324 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4330 $as_echo "Tru64 cc" >&6; }
4332 CPPFLAGS="-I/usr/local/include"
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4337 $as_echo "HPUX cc" >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4350 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4355 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4357 $as_echo "assuming old HPUX with its own cc" >&6; }
4358 IRC_CFLAGS="$IRC_CFLAGS +e"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4362 $as_echo "already using newer HPUX" >&6; }
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4367 $as_echo "SunOS or Solaris" >&6; }
4369 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4375 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4376 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380 $as_echo "no" >&6; }
4384 if test "$ac_cv_c_compiler_gnu" = yes; then
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4386 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4388 case `$CC -v 2>&1 | tail -n 1` in
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4391 $as_echo "yes" >&6; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4401 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4404 if test "$ac_cv_prog_cc_g" = yes; then
4405 if test "$Tru" = yes; then
4406 IRC_CFLAGS="$IRC_CFLAGS -g3"
4408 IRC_CFLAGS="$IRC_CFLAGS -g"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4413 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4414 if test "$SGS" = "yes"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416 $as_echo "yes" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4422 # Extract the first word of "mkdep", so it can be a program name with args.
4423 set dummy mkdep; ac_word=$2
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if ${ac_cv_path_MKDEP+:} false; then :
4427 $as_echo_n "(cached) " >&6
4431 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 MKDEP=$ac_cv_path_MKDEP
4453 if test -n "$MKDEP"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4455 $as_echo "$MKDEP" >&6; }
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4462 # Extract the first word of "makedepend", so it can be a program name with args.
4463 set dummy makedepend; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if ${ac_cv_path_MAKEDEPEND+:} false; then :
4467 $as_echo_n "(cached) " >&6
4471 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4493 if test -n "$MAKEDEPEND"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4495 $as_echo "$MAKEDEPEND" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4504 $as_echo_n "checking how to generate dependency info... " >&6; }
4508 if test "$ac_cv_c_compiler_gnu" = yes; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4510 $as_echo "gcc -MM" >&6; }
4512 elif test ! -z "$MKDEP"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4514 $as_echo "mkdep" >&6; }
4516 if test -z "$Tru"; then
4519 STDOUT=" 2> /dev/null"
4521 elif test "$SunWorkShop" = yes; then
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4523 $as_echo "$CC -xM" >&6; }
4525 STDOUT="> .depend 2> /dev/null"
4526 elif test ! -z "$MAKEDEPEND"; then
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4528 $as_echo "makedepend" >&6; }
4529 MKDEP="$MAKEDEPEND -f-"
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4532 $as_echo "nothing suitable.. forget it!" >&6; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4540 $as_echo_n "checking for /dev/null... " >&6; }
4541 if test -c /dev/null ; then
4543 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4546 $as_echo "yes" >&6; }
4549 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4552 $as_echo "no - using devnull.log" >&6; }
4555 if test ! -z "$CFLAGS"; then
4556 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4560 $as_echo_n "checking for library containing strerror... " >&6; }
4561 if ${ac_cv_search_strerror+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_func_search_save_LIBS=$LIBS
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4568 /* Override any GCC internal prototype to avoid an error.
4569 Use char because int might match the return type of a GCC
4570 builtin and then its argument prototype would still apply. */
4583 for ac_lib in '' cposix; do
4584 if test -z "$ac_lib"; then
4585 ac_res="none required"
4588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4590 if ac_fn_c_try_link "$LINENO"; then :
4591 ac_cv_search_strerror=$ac_res
4593 rm -f core conftest.err conftest.$ac_objext \
4595 if ${ac_cv_search_strerror+:} false; then :
4599 if ${ac_cv_search_strerror+:} false; then :
4602 ac_cv_search_strerror=no
4605 LIBS=$ac_func_search_save_LIBS
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4608 $as_echo "$ac_cv_search_strerror" >&6; }
4609 ac_res=$ac_cv_search_strerror
4610 if test "$ac_res" != no; then :
4611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4616 $as_echo_n "checking for inline... " >&6; }
4617 if ${ac_cv_c_inline+:} false; then :
4618 $as_echo_n "(cached) " >&6
4621 for ac_kw in inline __inline__ __inline; do
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4626 static $ac_kw foo_t static_foo () {return 0; }
4627 $ac_kw foo_t foo () {return 0; }
4631 if ac_fn_c_try_compile "$LINENO"; then :
4632 ac_cv_c_inline=$ac_kw
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 test "$ac_cv_c_inline" != no && break
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4640 $as_echo "$ac_cv_c_inline" >&6; }
4642 case $ac_cv_c_inline in
4645 case $ac_cv_c_inline in
4647 *) ac_val=$ac_cv_c_inline;;
4649 cat >>confdefs.h <<_ACEOF
4651 #define inline $ac_val
4657 if test $ac_cv_c_compiler_gnu = yes; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4659 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4660 if ${ac_cv_prog_gcc_traditional+:} false; then :
4661 $as_echo_n "(cached) " >&6
4663 ac_pattern="Autoconf.*'x'"
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4671 ac_cv_prog_gcc_traditional=yes
4673 ac_cv_prog_gcc_traditional=no
4678 if test $ac_cv_prog_gcc_traditional = no; then
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4685 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4686 ac_cv_prog_gcc_traditional=yes
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4693 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4694 if test $ac_cv_prog_gcc_traditional = yes; then
4695 CC="$CC -traditional"
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4700 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4702 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4703 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4704 $as_echo_n "(cached) " >&6
4706 cat >conftest.make <<\_ACEOF
4709 @echo '@@@%%%=$(MAKE)=@@@%%%'
4711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4712 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4714 eval ac_cv_prog_make_${ac_make}_set=yes;;
4716 eval ac_cv_prog_make_${ac_make}_set=no;;
4720 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4722 $as_echo "yes" >&6; }
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4727 SET_MAKE="MAKE=${MAKE-make}"
4730 # Find a good install program. We prefer a C program (faster),
4731 # so one script is as good as another. But avoid the broken or
4732 # incompatible versions:
4733 # SysV /etc/install, /usr/sbin/install
4734 # SunOS /usr/etc/install
4735 # IRIX /sbin/install
4737 # AmigaOS /C/install, which installs bootblocks on floppy discs
4738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4741 # OS/2's system install, which has a completely different semantic
4742 # ./install, which can be erroneously created by make from ./install.sh.
4743 # Reject install programs that cannot install multiple files.
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4745 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4746 if test -z "$INSTALL"; then
4747 if ${ac_cv_path_install+:} false; then :
4748 $as_echo_n "(cached) " >&6
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 # Account for people who put trailing slashes in PATH elements.
4756 case $as_dir/ in #((
4757 ./ | .// | /[cC]/* | \
4758 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4759 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4762 # OSF1 and SCO ODT 3.0 have their own names for install.
4763 # Don't use installbsd from OSF since it installs stuff as root
4765 for ac_prog in ginstall scoinst install; do
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4768 if test $ac_prog = install &&
4769 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4770 # AIX install. It has an incompatible calling convention.
4772 elif test $ac_prog = install &&
4773 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4774 # program-specific install script used by HP pwplus--don't use.
4777 rm -rf conftest.one conftest.two conftest.dir
4778 echo one > conftest.one
4779 echo two > conftest.two
4781 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4782 test -s conftest.one && test -s conftest.two &&
4783 test -s conftest.dir/conftest.one &&
4784 test -s conftest.dir/conftest.two
4786 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4799 rm -rf conftest.one conftest.two conftest.dir
4802 if test "${ac_cv_path_install+set}" = set; then
4803 INSTALL=$ac_cv_path_install
4805 # As a last resort, use the slow shell script. Don't cache a
4806 # value for INSTALL within a source directory, because that will
4807 # break other packages using the cache if that directory is
4808 # removed, or if the value is a relative name.
4809 INSTALL=$ac_install_sh
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4813 $as_echo "$INSTALL" >&6; }
4815 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4816 # It thinks the first close brace ends the variable substitution.
4817 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4819 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4821 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4823 # Extract the first word of "rm", so it can be a program name with args.
4824 set dummy rm; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_path_RM+:} false; then :
4828 $as_echo_n "(cached) " >&6
4832 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 if test -n "$RM"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4856 $as_echo "$RM" >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 # Extract the first word of "cp", so it can be a program name with args.
4864 set dummy cp; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if ${ac_cv_path_CP+:} false; then :
4868 $as_echo_n "(cached) " >&6
4872 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4882 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 if test -n "$CP"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4896 $as_echo "$CP" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4903 # Extract the first word of "mv", so it can be a program name with args.
4904 set dummy mv; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_path_MV+:} false; then :
4908 $as_echo_n "(cached) " >&6
4912 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4922 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 if test -n "$MV"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4936 $as_echo "$MV" >&6; }
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4943 # Extract the first word of "ln", so it can be a program name with args.
4944 set dummy ln; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if ${ac_cv_path_LN+:} false; then :
4948 $as_echo_n "(cached) " >&6
4952 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 if test -n "$LN"; then
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4976 $as_echo "$LN" >&6; }
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979 $as_echo "no" >&6; }
4983 # Extract the first word of "sed", so it can be a program name with args.
4984 set dummy sed; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if ${ac_cv_path_SED+:} false; then :
4988 $as_echo_n "(cached) " >&6
4992 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir=.
5000 for ac_exec_ext in '' $ac_executable_extensions; do
5001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 if test -n "$SED"; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5016 $as_echo "$SED" >&6; }
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019 $as_echo "no" >&6; }
5023 # Extract the first word of "ar", so it can be a program name with args.
5024 set dummy ar; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if ${ac_cv_path_AR+:} false; then :
5028 $as_echo_n "(cached) " >&6
5032 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 if test -n "$AR"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5056 $as_echo "$AR" >&6; }
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059 $as_echo "no" >&6; }
5063 # Extract the first word of "ld", so it can be a program name with args.
5064 set dummy ld; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_path_LD+:} false; then :
5068 $as_echo_n "(cached) " >&6
5072 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 if test -n "$LD"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5096 $as_echo "$LD" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 # Extract the first word of "ranlib", so it can be a program name with args.
5104 set dummy ranlib; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_path_RANLIB+:} false; then :
5108 $as_echo_n "(cached) " >&6
5112 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 RANLIB=$ac_cv_path_RANLIB
5134 if test -n "$RANLIB"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5136 $as_echo "$RANLIB" >&6; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 # Extract the first word of "touch", so it can be a program name with args.
5144 set dummy touch; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_path_TOUCH+:} false; then :
5148 $as_echo_n "(cached) " >&6
5152 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 test -z "$as_dir" && as_dir=.
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5162 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 TOUCH=$ac_cv_path_TOUCH
5174 if test -n "$TOUCH"; then
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5176 $as_echo "$TOUCH" >&6; }
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 $as_echo "no" >&6; }
5184 for ac_prog in 'bison -y' byacc
5186 # Extract the first word of "$ac_prog", so it can be a program name with args.
5187 set dummy $ac_prog; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_YACC+:} false; then :
5191 $as_echo_n "(cached) " >&6
5193 if test -n "$YACC"; then
5194 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_YACC="$ac_prog"
5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 YACC=$ac_cv_prog_YACC
5214 if test -n "$YACC"; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5216 $as_echo "$YACC" >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5223 test -n "$YACC" && break
5225 test -n "$YACC" || YACC="yacc"
5228 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev
/null
`"; then
5229 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5232 for ac_prog in flex lex
5234 # Extract the first word of "$ac_prog", so it can be a program name with args.
5235 set dummy $ac_prog; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_prog_LEX+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 if test -n "$LEX"; then
5242 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
5250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5251 ac_cv_prog_LEX="$ac_prog"
5252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 if test -n "$LEX"; then
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5264 $as_echo "$LEX" >&6; }
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5267 $as_echo "no" >&6; }
5271 test -n "$LEX" && break
5273 test -n "$LEX" || LEX=":"
5275 if test "x$LEX" != "x:"; then
5276 cat >conftest.l <<_ACEOF
5282 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
5283 yyless ((input () != 0)); }
5284 f { unput (yytext[0]); }
5285 . { BEGIN INITIAL; }
5287 #ifdef YYTEXT_POINTER
5288 extern char *yytext;
5293 return ! yylex () + ! yywrap ();
5296 { { ac_try="$LEX conftest.l"
5298 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5299 *) ac_try_echo
=$ac_try;;
5301 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5302 $as_echo "$ac_try_echo"; } >&5
5303 (eval "$LEX conftest.l") 2>&5
5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306 test $ac_status = 0; }
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5308 $as_echo_n "checking lex output file root... " >&6; }
5309 if ${ac_cv_prog_lex_root+:} false
; then :
5310 $as_echo_n "(cached) " >&6
5313 if test -f lex.yy.c
; then
5314 ac_cv_prog_lex_root
=lex.yy
5315 elif test -f lexyy.c
; then
5316 ac_cv_prog_lex_root
=lexyy
5318 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5322 $as_echo "$ac_cv_prog_lex_root" >&6; }
5323 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5325 if test -z "${LEXLIB+set}"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5327 $as_echo_n "checking lex library... " >&6; }
5328 if ${ac_cv_lib_lex+:} false
; then :
5329 $as_echo_n "(cached) " >&6
5333 ac_cv_lib_lex
='none needed'
5334 for ac_lib
in '' -lfl -ll; do
5335 LIBS
="$ac_lib $ac_save_LIBS"
5336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 `cat $LEX_OUTPUT_ROOT.c`
5340 if ac_fn_c_try_link
"$LINENO"; then :
5341 ac_cv_lib_lex
=$ac_lib
5343 rm -f core conftest.err conftest.
$ac_objext \
5344 conftest
$ac_exeext conftest.
$ac_ext
5345 test "$ac_cv_lib_lex" != 'none needed' && break
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5351 $as_echo "$ac_cv_lib_lex" >&6; }
5352 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5357 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5358 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
5359 $as_echo_n "(cached) " >&6
5361 # POSIX says lex can declare yytext either as a pointer or an array; the
5362 # default is implementation-dependent. Figure out which it is, since
5363 # not all implementations provide the %pointer and %array declarations.
5364 ac_cv_prog_lex_yytext_pointer
=no
5366 LIBS
="$LEXLIB $ac_save_LIBS"
5367 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5370 #define YYTEXT_POINTER 1
5371 `cat $LEX_OUTPUT_ROOT.c`
5373 if ac_fn_c_try_link
"$LINENO"; then :
5374 ac_cv_prog_lex_yytext_pointer
=yes
5376 rm -f core conftest.err conftest.
$ac_objext \
5377 conftest
$ac_exeext conftest.
$ac_ext
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5382 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5383 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5385 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5388 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5392 if test "$LEX" = ":"; then
5393 as_fn_error $?
"could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5396 # Check whether --enable-fhs-paths was given.
5397 if test "${enable_fhs_paths+set}" = set; then :
5398 enableval
=$enable_fhs_paths;
5400 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5401 test "$localstatedir" = '${prefix}/var' && \
5402 test "$libdir" = '${exec_prefix}/lib'; then :
5405 enable_fhs_paths
=yes
5410 if test "x$enable_fhs_paths" = "xyes"; then :
5411 pkglibexecdir
='${libexecdir}/${PACKAGE_TARNAME}'
5412 rundir
=${rundir-'${prefix}/run'}
5413 pkgrundir
='${rundir}/${PACKAGE_TARNAME}'
5414 pkglocalstatedir
='${localstatedir}/${PACKAGE_TARNAME}'
5416 libexecdir
='${bindir}'
5417 pkglibexecdir
='${libexecdir}'
5418 rundir
='${sysconfdir}'
5419 pkgrundir
='${rundir}'
5420 localstatedir
='${prefix}'
5421 pkglocalstatedir
='${sysconfdir}'
5423 pkglibdir
='${libdir}/${PACKAGE_TARNAME}'
5429 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5430 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5431 last_ac_define_dir
=`eval echo $pkglocalstatedir`
5432 ac_define_dir
=`eval echo $last_ac_define_dir`
5433 ac_define_dir_counter
=0
5434 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5435 last_ac_define_dir
="$ac_define_dir"
5436 ac_define_dir
=`eval echo $last_ac_define_dir`
5437 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
5438 if test "x$ac_define_dir_counter" = x128
; then :
5439 as_fn_error $?
"detected recusive directory expansion when expanding PKGLOCALSTATEDIR=$pkglocalstatedir: $ac_define_dir" "$LINENO" 5
5443 PKGLOCALSTATEDIR
="$ac_define_dir"
5446 cat >>confdefs.h
<<_ACEOF
5447 #define PKGLOCALSTATEDIR "$ac_define_dir"
5453 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5454 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5455 last_ac_define_dir
=`eval echo $pkglibexecdir`
5456 ac_define_dir
=`eval echo $last_ac_define_dir`
5457 ac_define_dir_counter
=0
5458 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5459 last_ac_define_dir
="$ac_define_dir"
5460 ac_define_dir
=`eval echo $last_ac_define_dir`
5461 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
5462 if test "x$ac_define_dir_counter" = x128
; then :
5463 as_fn_error $?
"detected recusive directory expansion when expanding PKGLIBEXECDIR=$pkglibexecdir: $ac_define_dir" "$LINENO" 5
5467 PKGLIBEXECDIR
="$ac_define_dir"
5470 cat >>confdefs.h
<<_ACEOF
5471 #define PKGLIBEXECDIR "$ac_define_dir"
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5477 $as_echo_n "checking for ANSI C header files... " >&6; }
5478 if ${ac_cv_header_stdc+:} false
; then :
5479 $as_echo_n "(cached) " >&6
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5496 if ac_fn_c_try_compile
"$LINENO"; then :
5497 ac_cv_header_stdc
=yes
5499 ac_cv_header_stdc
=no
5501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5503 if test $ac_cv_header_stdc = yes; then
5504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5511 $EGREP "memchr" >/dev
/null
2>&1; then :
5514 ac_cv_header_stdc
=no
5520 if test $ac_cv_header_stdc = yes; then
5521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5523 /* end confdefs.h. */
5527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5528 $EGREP "free" >/dev
/null
2>&1; then :
5531 ac_cv_header_stdc
=no
5537 if test $ac_cv_header_stdc = yes; then
5538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5539 if test "$cross_compiling" = yes; then :
5542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5546 #if ((' ' & 0x0FF) == 0x020)
5547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5550 # define ISLOWER(c) \
5551 (('a' <= (c) && (c) <= 'i') \
5552 || ('j' <= (c) && (c) <= 'r') \
5553 || ('s' <= (c) && (c) <= 'z'))
5554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5562 for (i = 0; i < 256; i++)
5563 if (XOR (islower (i), ISLOWER (i))
5564 || toupper (i) != TOUPPER (i))
5569 if ac_fn_c_try_run
"$LINENO"; then :
5572 ac_cv_header_stdc
=no
5574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5581 $as_echo "$ac_cv_header_stdc" >&6; }
5582 if test $ac_cv_header_stdc = yes; then
5584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5589 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
5591 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5592 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5593 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5594 cat >>confdefs.h
<<_ACEOF
5595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5605 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5606 if ${ac_cv_c_const+:} false
; then :
5607 $as_echo_n "(cached) " >&6
5609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5610 /* end confdefs.h. */
5617 /* Ultrix mips cc rejects this sort of thing. */
5618 typedef int charset[2];
5619 const charset cs = { 0, 0 };
5620 /* SunOS 4.1.1 cc rejects this. */
5621 char const *const *pcpcc;
5623 /* NEC SVR4.0.2 mips cc rejects this. */
5624 struct point {int x, y;};
5625 static struct point const zero = {0,0};
5626 /* AIX XL C 1.02.0.0 rejects this.
5627 It does not let you subtract one const X* pointer from another in
5628 an arm of an if-expression whose if-part is not a constant
5630 const char *g = "string";
5631 pcpcc = &g + (g ? g-g : 0);
5632 /* HPUX 7.0 cc rejects these. */
5634 ppc = (char**) pcpcc;
5635 pcpcc = (char const *const *) ppc;
5636 { /* SCO 3.2v4 cc rejects this sort of thing. */
5639 char const *s = 0 ? (char *) 0 : (char const *) 0;
5644 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5646 const int *foo = &x[0];
5649 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5650 typedef const int *iptr;
5654 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5655 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5656 struct s { int j; const int *ap[3]; } bx;
5657 struct s *b = &bx; b->j = 5;
5659 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5663 return !cs[0] && !zero.x;
5670 if ac_fn_c_try_compile
"$LINENO"; then :
5675 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5678 $as_echo "$ac_cv_c_const" >&6; }
5679 if test $ac_cv_c_const = no
; then
5681 $as_echo "#define const /**/" >>confdefs.h
5685 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5687 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5688 if ${ac_cv_c_bigendian+:} false
; then :
5689 $as_echo_n "(cached) " >&6
5691 ac_cv_c_bigendian
=unknown
5692 # See if we're dealing with a universal compiler.
5693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5695 #ifndef __APPLE_CC__
5696 not a universal capable compiler
5701 if ac_fn_c_try_compile
"$LINENO"; then :
5703 # Check for potential -arch flags. It is not universal unless
5704 # there are at least two -arch flags with different values.
5707 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5708 if test -n "$ac_prev"; then
5710 i?
86 | x86_64
| ppc
| ppc64
)
5711 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5714 ac_cv_c_bigendian
=universal
5720 elif test "x$ac_word" = "x-arch"; then
5725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5726 if test $ac_cv_c_bigendian = unknown
; then
5727 # See if sys/param.h defines the BYTE_ORDER macro.
5728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5729 /* end confdefs.h. */
5730 #include <sys/types.h>
5731 #include <sys/param.h>
5736 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5737 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5746 if ac_fn_c_try_compile
"$LINENO"; then :
5747 # It does; now see whether it defined to BIG_ENDIAN or not.
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 #include <sys/types.h>
5751 #include <sys/param.h>
5756 #if BYTE_ORDER != BIG_ENDIAN
5764 if ac_fn_c_try_compile
"$LINENO"; then :
5765 ac_cv_c_bigendian
=yes
5767 ac_cv_c_bigendian
=no
5769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5773 if test $ac_cv_c_bigendian = unknown
; then
5774 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5775 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5782 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5790 if ac_fn_c_try_compile
"$LINENO"; then :
5791 # It does; now see whether it defined to _BIG_ENDIAN or not.
5792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5807 if ac_fn_c_try_compile
"$LINENO"; then :
5808 ac_cv_c_bigendian
=yes
5810 ac_cv_c_bigendian
=no
5812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5816 if test $ac_cv_c_bigendian = unknown
; then
5817 # Compile a test program.
5818 if test "$cross_compiling" = yes; then :
5819 # Try to guess by grepping values from an object file.
5820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 short int ascii_mm[] =
5823 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5824 short int ascii_ii[] =
5825 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5826 int use_ascii (int i) {
5827 return ascii_mm[i] + ascii_ii[i];
5829 short int ebcdic_ii[] =
5830 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5831 short int ebcdic_mm[] =
5832 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5833 int use_ebcdic (int i) {
5834 return ebcdic_mm[i] + ebcdic_ii[i];
5841 return use_ascii (foo) == use_ebcdic (foo);
5846 if ac_fn_c_try_compile
"$LINENO"; then :
5847 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5848 ac_cv_c_bigendian
=yes
5850 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5851 if test "$ac_cv_c_bigendian" = unknown
; then
5852 ac_cv_c_bigendian
=no
5854 # finding both strings is unlikely to happen, but who knows?
5855 ac_cv_c_bigendian
=unknown
5859 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h. */
5863 $ac_includes_default
5868 /* Are we little or big endian? From Harbison&Steele. */
5872 char c[sizeof (long int)];
5875 return u.c[sizeof (long int) - 1] == 1;
5881 if ac_fn_c_try_run
"$LINENO"; then :
5882 ac_cv_c_bigendian
=no
5884 ac_cv_c_bigendian
=yes
5886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5893 $as_echo "$ac_cv_c_bigendian" >&6; }
5894 case $ac_cv_c_bigendian in #(
5896 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5902 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5906 as_fn_error $?
"unknown endianness
5907 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5911 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5912 if test "x$ac_cv_type_pid_t" = xyes
; then :
5916 cat >>confdefs.h
<<_ACEOF
5922 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5923 if test "x$ac_cv_type_size_t" = xyes
; then :
5927 cat >>confdefs.h
<<_ACEOF
5928 #define size_t unsigned int
5933 # The cast to long int works around a bug in the HP C Compiler
5934 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5935 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5936 # This bug is HP SR number 8606223364.
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5938 $as_echo_n "checking size of short... " >&6; }
5939 if ${ac_cv_sizeof_short+:} false
; then :
5940 $as_echo_n "(cached) " >&6
5942 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5945 if test "$ac_cv_type_short" = yes; then
5946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5948 as_fn_error
77 "cannot compute sizeof (short)
5949 See \`config.log' for more details" "$LINENO" 5; }
5951 ac_cv_sizeof_short
=0
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5957 $as_echo "$ac_cv_sizeof_short" >&6; }
5961 cat >>confdefs.h
<<_ACEOF
5962 #define SIZEOF_SHORT $ac_cv_sizeof_short
5966 # The cast to long int works around a bug in the HP C Compiler
5967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5969 # This bug is HP SR number 8606223364.
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5971 $as_echo_n "checking size of int... " >&6; }
5972 if ${ac_cv_sizeof_int+:} false
; then :
5973 $as_echo_n "(cached) " >&6
5975 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5978 if test "$ac_cv_type_int" = yes; then
5979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5981 as_fn_error
77 "cannot compute sizeof (int)
5982 See \`config.log' for more details" "$LINENO" 5; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5990 $as_echo "$ac_cv_sizeof_int" >&6; }
5994 cat >>confdefs.h
<<_ACEOF
5995 #define SIZEOF_INT $ac_cv_sizeof_int
5999 # The cast to long int works around a bug in the HP C Compiler
6000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6002 # This bug is HP SR number 8606223364.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6004 $as_echo_n "checking size of long... " >&6; }
6005 if ${ac_cv_sizeof_long+:} false
; then :
6006 $as_echo_n "(cached) " >&6
6008 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6011 if test "$ac_cv_type_long" = yes; then
6012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014 as_fn_error
77 "cannot compute sizeof (long)
6015 See \`config.log' for more details" "$LINENO" 5; }
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6023 $as_echo "$ac_cv_sizeof_long" >&6; }
6027 cat >>confdefs.h
<<_ACEOF
6028 #define SIZEOF_LONG $ac_cv_sizeof_long
6032 # The cast to long int works around a bug in the HP C Compiler
6033 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6034 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6035 # This bug is HP SR number 8606223364.
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
6037 $as_echo_n "checking size of long long... " >&6; }
6038 if ${ac_cv_sizeof_long_long+:} false
; then :
6039 $as_echo_n "(cached) " >&6
6041 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6044 if test "$ac_cv_type_long_long" = yes; then
6045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6047 as_fn_error
77 "cannot compute sizeof (long long)
6048 See \`config.log' for more details" "$LINENO" 5; }
6050 ac_cv_sizeof_long_long
=0
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6056 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6060 cat >>confdefs.h
<<_ACEOF
6061 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6068 $as_echo_n "checking for library containing socket... " >&6; }
6069 if ${ac_cv_search_socket+:} false
; then :
6070 $as_echo_n "(cached) " >&6
6072 ac_func_search_save_LIBS
=$LIBS
6073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6076 /* Override any GCC internal prototype to avoid an error.
6077 Use char because int might match the return type of a GCC
6078 builtin and then its argument prototype would still apply. */
6091 for ac_lib
in '' socket
; do
6092 if test -z "$ac_lib"; then
6093 ac_res
="none required"
6096 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6098 if ac_fn_c_try_link
"$LINENO"; then :
6099 ac_cv_search_socket
=$ac_res
6101 rm -f core conftest.err conftest.
$ac_objext \
6103 if ${ac_cv_search_socket+:} false
; then :
6107 if ${ac_cv_search_socket+:} false
; then :
6110 ac_cv_search_socket
=no
6113 LIBS
=$ac_func_search_save_LIBS
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6116 $as_echo "$ac_cv_search_socket" >&6; }
6117 ac_res
=$ac_cv_search_socket
6118 if test "$ac_res" != no
; then :
6119 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6122 as_fn_error $?
"You have no socket()! Aborting." "$LINENO" 5
6126 if test x
"$SUN" = xyes
; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6128 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6129 if ${ac_cv_search_inet_ntoa+:} false
; then :
6130 $as_echo_n "(cached) " >&6
6132 ac_func_search_save_LIBS
=$LIBS
6133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6136 /* Override any GCC internal prototype to avoid an error.
6137 Use char because int might match the return type of a GCC
6138 builtin and then its argument prototype would still apply. */
6146 return inet_ntoa ();
6151 for ac_lib
in '' nsl
; do
6152 if test -z "$ac_lib"; then
6153 ac_res
="none required"
6156 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6158 if ac_fn_c_try_link
"$LINENO"; then :
6159 ac_cv_search_inet_ntoa
=$ac_res
6161 rm -f core conftest.err conftest.
$ac_objext \
6163 if ${ac_cv_search_inet_ntoa+:} false
; then :
6167 if ${ac_cv_search_inet_ntoa+:} false
; then :
6170 ac_cv_search_inet_ntoa
=no
6173 LIBS
=$ac_func_search_save_LIBS
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6176 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6177 ac_res
=$ac_cv_search_inet_ntoa
6178 if test "$ac_res" != no
; then :
6179 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6182 as_fn_error $?
"libnsl not found! Aborting." "$LINENO" 5
6187 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6188 #include <sys/socket.h>
6190 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6194 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6199 # Check whether --enable-ipv6 was given.
6200 if test "${enable_ipv6+set}" = set; then :
6201 enableval
=$enable_ipv6; ipv6
=$enableval
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6208 $as_echo_n "checking for library containing crypt... " >&6; }
6209 if ${ac_cv_search_crypt+:} false
; then :
6210 $as_echo_n "(cached) " >&6
6212 ac_func_search_save_LIBS
=$LIBS
6213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6216 /* Override any GCC internal prototype to avoid an error.
6217 Use char because int might match the return type of a GCC
6218 builtin and then its argument prototype would still apply. */
6231 for ac_lib
in '' crypt descrypt
; do
6232 if test -z "$ac_lib"; then
6233 ac_res
="none required"
6236 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6238 if ac_fn_c_try_link
"$LINENO"; then :
6239 ac_cv_search_crypt
=$ac_res
6241 rm -f core conftest.err conftest.
$ac_objext \
6243 if ${ac_cv_search_crypt+:} false
; then :
6247 if ${ac_cv_search_crypt+:} false
; then :
6250 ac_cv_search_crypt
=no
6253 LIBS
=$ac_func_search_save_LIBS
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6256 $as_echo "$ac_cv_search_crypt" >&6; }
6257 ac_res
=$ac_cv_search_crypt
6258 if test "$ac_res" != no
; then :
6259 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6264 CRYPT_LIB
=$ac_cv_search_crypt
6266 if test "$CRYPT_LIB" = "none required"; then
6268 elif test "$CRYPT_LIB" = no
; then
6274 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6283 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6284 if ${gcc_cv_header_string+:} false
; then :
6285 $as_echo_n "(cached) " >&6
6288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h. */
6291 #include <strings.h>
6293 if ac_fn_c_try_compile
"$LINENO"; then :
6294 gcc_cv_header_string
=yes
6296 gcc_cv_header_string
=no
6298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6302 $as_echo "$gcc_cv_header_string" >&6; }
6304 if test "$gcc_cv_header_string" = "yes"; then
6306 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6311 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6312 if ${ac_cv_c_bigendian+:} false
; then :
6313 $as_echo_n "(cached) " >&6
6315 ac_cv_c_bigendian
=unknown
6316 # See if we're dealing with a universal compiler.
6317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6318 /* end confdefs.h. */
6319 #ifndef __APPLE_CC__
6320 not a universal capable compiler
6325 if ac_fn_c_try_compile
"$LINENO"; then :
6327 # Check for potential -arch flags. It is not universal unless
6328 # there are at least two -arch flags with different values.
6331 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6332 if test -n "$ac_prev"; then
6334 i?
86 | x86_64
| ppc
| ppc64
)
6335 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6338 ac_cv_c_bigendian
=universal
6344 elif test "x$ac_word" = "x-arch"; then
6349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 if test $ac_cv_c_bigendian = unknown
; then
6351 # See if sys/param.h defines the BYTE_ORDER macro.
6352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 #include <sys/types.h>
6355 #include <sys/param.h>
6360 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6361 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6370 if ac_fn_c_try_compile
"$LINENO"; then :
6371 # It does; now see whether it defined to BIG_ENDIAN or not.
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 #include <sys/types.h>
6375 #include <sys/param.h>
6380 #if BYTE_ORDER != BIG_ENDIAN
6388 if ac_fn_c_try_compile
"$LINENO"; then :
6389 ac_cv_c_bigendian
=yes
6391 ac_cv_c_bigendian
=no
6393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6397 if test $ac_cv_c_bigendian = unknown
; then
6398 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6406 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6414 if ac_fn_c_try_compile
"$LINENO"; then :
6415 # It does; now see whether it defined to _BIG_ENDIAN or not.
6416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6417 /* end confdefs.h. */
6431 if ac_fn_c_try_compile
"$LINENO"; then :
6432 ac_cv_c_bigendian
=yes
6434 ac_cv_c_bigendian
=no
6436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6438 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6440 if test $ac_cv_c_bigendian = unknown
; then
6441 # Compile a test program.
6442 if test "$cross_compiling" = yes; then :
6443 # Try to guess by grepping values from an object file.
6444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6446 short int ascii_mm[] =
6447 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6448 short int ascii_ii[] =
6449 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6450 int use_ascii (int i) {
6451 return ascii_mm[i] + ascii_ii[i];
6453 short int ebcdic_ii[] =
6454 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6455 short int ebcdic_mm[] =
6456 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6457 int use_ebcdic (int i) {
6458 return ebcdic_mm[i] + ebcdic_ii[i];
6465 return use_ascii (foo) == use_ebcdic (foo);
6470 if ac_fn_c_try_compile
"$LINENO"; then :
6471 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6472 ac_cv_c_bigendian
=yes
6474 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6475 if test "$ac_cv_c_bigendian" = unknown
; then
6476 ac_cv_c_bigendian
=no
6478 # finding both strings is unlikely to happen, but who knows?
6479 ac_cv_c_bigendian
=unknown
6483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6485 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487 $ac_includes_default
6492 /* Are we little or big endian? From Harbison&Steele. */
6496 char c[sizeof (long int)];
6499 return u.c[sizeof (long int) - 1] == 1;
6505 if ac_fn_c_try_run
"$LINENO"; then :
6506 ac_cv_c_bigendian
=no
6508 ac_cv_c_bigendian
=yes
6510 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6511 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6517 $as_echo "$ac_cv_c_bigendian" >&6; }
6518 case $ac_cv_c_bigendian in #(
6520 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6526 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6530 as_fn_error $?
"unknown endianness
6531 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6535 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6536 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
6539 as_fn_error $?
"** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6545 if test "$ac_cv_c_compiler_gnu" = yes; then
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6548 $as_echo_n "checking for strlcpy... " >&6; }
6550 CFLAGS
="$CFLAGS -Wimplicit -Werror"
6552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6553 /* end confdefs.h. */
6559 char *a = malloc(6);
6560 strlcpy(a, "hello", 6);
6566 if ac_fn_c_try_link
"$LINENO"; then :
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6568 $as_echo "yes" >&6; }
6570 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6577 rm -f core conftest.err conftest.
$ac_objext \
6578 conftest
$ac_exeext conftest.
$ac_ext
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6581 $as_echo_n "checking for strlcat... " >&6; }
6582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6589 char *a = malloc(6);
6591 strlcat(a, "hello", 6);
6597 if ac_fn_c_try_link
"$LINENO"; then :
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6599 $as_echo "yes" >&6; }
6601 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6608 rm -f core conftest.err conftest.
$ac_objext \
6609 conftest
$ac_exeext conftest.
$ac_ext
6616 for ac_func
in strlcat strlcpy
6618 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6619 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6620 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6621 cat >>confdefs.h
<<_ACEOF
6622 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6631 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6632 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6636 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6637 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6640 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6646 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6648 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6657 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6658 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6662 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6663 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6666 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6672 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6674 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6683 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6684 #include <netinet/in.h>
6686 if test "x$ac_cv_type_in_port_t" = xyes
; then :
6690 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6695 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6696 #include <sys/socket.h>
6698 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
6702 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6707 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6708 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6710 cat >>confdefs.h
<<_ACEOF
6711 #define HAVE_UINTPTR_T 1
6718 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
6720 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6721 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6722 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6723 cat >>confdefs.h
<<_ACEOF
6724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6731 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6732 # for constant arguments. Useless!
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6734 $as_echo_n "checking for working alloca.h... " >&6; }
6735 if ${ac_cv_working_alloca_h+:} false
; then :
6736 $as_echo_n "(cached) " >&6
6738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6744 char *p = (char *) alloca (2 * sizeof (int));
6750 if ac_fn_c_try_link
"$LINENO"; then :
6751 ac_cv_working_alloca_h
=yes
6753 ac_cv_working_alloca_h
=no
6755 rm -f core conftest.err conftest.
$ac_objext \
6756 conftest
$ac_exeext conftest.
$ac_ext
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6759 $as_echo "$ac_cv_working_alloca_h" >&6; }
6760 if test $ac_cv_working_alloca_h = yes; then
6762 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6767 $as_echo_n "checking for alloca... " >&6; }
6768 if ${ac_cv_func_alloca_works+:} false
; then :
6769 $as_echo_n "(cached) " >&6
6771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6774 # define alloca __builtin_alloca
6777 # include <malloc.h>
6778 # define alloca _alloca
6780 # ifdef HAVE_ALLOCA_H
6781 # include <alloca.h>
6786 # ifndef alloca /* predefined by HP cc +Olibcalls */
6787 void *alloca (size_t);
6797 char *p = (char *) alloca (1);
6803 if ac_fn_c_try_link
"$LINENO"; then :
6804 ac_cv_func_alloca_works
=yes
6806 ac_cv_func_alloca_works
=no
6808 rm -f core conftest.err conftest.
$ac_objext \
6809 conftest
$ac_exeext conftest.
$ac_ext
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6812 $as_echo "$ac_cv_func_alloca_works" >&6; }
6814 if test $ac_cv_func_alloca_works = yes; then
6816 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6819 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6820 # that cause trouble. Some versions do not even contain alloca or
6821 # contain a buggy version. If you still want to use their alloca,
6822 # use ar to extract alloca.o from them instead of compiling alloca.c.
6824 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6826 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6830 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6831 if ${ac_cv_os_cray+:} false
; then :
6832 $as_echo_n "(cached) " >&6
6834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6836 #if defined CRAY && ! defined CRAY2
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844 $EGREP "webecray" >/dev
/null
2>&1; then :
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6853 $as_echo "$ac_cv_os_cray" >&6; }
6854 if test $ac_cv_os_cray = yes; then
6855 for ac_func
in _getb67 GETB67 getb67
; do
6856 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6857 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6858 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6860 cat >>confdefs.h
<<_ACEOF
6861 #define CRAY_STACKSEG_END $ac_func
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6871 $as_echo_n "checking stack direction for C alloca... " >&6; }
6872 if ${ac_cv_c_stack_direction+:} false
; then :
6873 $as_echo_n "(cached) " >&6
6875 if test "$cross_compiling" = yes; then :
6876 ac_cv_c_stack_direction
=0
6878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 $ac_includes_default
6882 find_stack_direction (int *addr, int depth)
6887 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6888 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6893 main (int argc, char **argv)
6895 return find_stack_direction (0, argc + !argv + 20) < 0;
6898 if ac_fn_c_try_run
"$LINENO"; then :
6899 ac_cv_c_stack_direction
=1
6901 ac_cv_c_stack_direction
=-1
6903 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6904 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6909 $as_echo "$ac_cv_c_stack_direction" >&6; }
6910 cat >>confdefs.h
<<_ACEOF
6911 #define STACK_DIRECTION $ac_cv_c_stack_direction
6919 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6920 if test "x$ac_cv_func_nanosleep" = xyes
; then :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6924 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6925 if ${ac_cv_lib_rt_nanosleep+:} false
; then :
6926 $as_echo_n "(cached) " >&6
6928 ac_check_lib_save_LIBS
=$LIBS
6930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6933 /* Override any GCC internal prototype to avoid an error.
6934 Use char because int might match the return type of a GCC
6935 builtin and then its argument prototype would still apply. */
6943 return nanosleep ();
6948 if ac_fn_c_try_link
"$LINENO"; then :
6949 ac_cv_lib_rt_nanosleep
=yes
6951 ac_cv_lib_rt_nanosleep
=no
6953 rm -f core conftest.err conftest.
$ac_objext \
6954 conftest
$ac_exeext conftest.
$ac_ext
6955 LIBS
=$ac_check_lib_save_LIBS
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6958 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6959 if test "x$ac_cv_lib_rt_nanosleep" = xyes
; then :
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6963 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6964 if ${ac_cv_lib_posix4_nanosleep+:} false
; then :
6965 $as_echo_n "(cached) " >&6
6967 ac_check_lib_save_LIBS
=$LIBS
6968 LIBS
="-lposix4 $LIBS"
6969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6972 /* Override any GCC internal prototype to avoid an error.
6973 Use char because int might match the return type of a GCC
6974 builtin and then its argument prototype would still apply. */
6982 return nanosleep ();
6987 if ac_fn_c_try_link
"$LINENO"; then :
6988 ac_cv_lib_posix4_nanosleep
=yes
6990 ac_cv_lib_posix4_nanosleep
=no
6992 rm -f core conftest.err conftest.
$ac_objext \
6993 conftest
$ac_exeext conftest.
$ac_ext
6994 LIBS
=$ac_check_lib_save_LIBS
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6997 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6998 if test "x$ac_cv_lib_posix4_nanosleep" = xyes
; then :
6999 LIBS
="${LIBS} -lposix4"
7007 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
7010 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
7013 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
7018 $as_echo_n "checking for OpenSSL... " >&6; }
7019 # Check whether --enable-openssl was given.
7020 if test "${enable_openssl+set}" = set; then :
7021 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
7023 cf_enable_openssl
="auto"
7027 if test "$cf_enable_openssl" != "no" ; then
7028 cf_openssl_basedir
=""
7029 if test "$cf_enable_openssl" != "auto" &&
7030 test "$cf_enable_openssl" != "yes" ; then
7031 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
7033 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
7034 /usr
/local
/openssl
; do
7035 if test -f "${dirs}/include/openssl/opensslv.h" ; then
7036 cf_openssl_basedir
="${dirs}"
7042 if test ! -z "$cf_openssl_basedir"; then
7043 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7044 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
7045 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
7047 cf_openssl_basedir
=""
7050 if test -f "/usr/include/openssl/opensslv.h" ; then
7051 cf_openssl_basedir
="/usr"
7055 if test ! -z "$cf_openssl_basedir"; then
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7057 $as_echo "$cf_openssl_basedir" >&6; }
7058 cf_enable_openssl
="yes"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7061 $as_echo "not found. Specify a correct path?" >&6; }
7062 cf_enable_openssl
="no"
7064 unset cf_openssl_basedir
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7067 $as_echo "disabled" >&6; }
7070 save_CPPFLAGS
="$CPPFLAGS"
7071 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
7073 LIBS
="$LIBS $SSL_LIBS"
7074 if test "$cf_enable_openssl" != no
; then
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7076 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7077 if test "$cross_compiling" = yes; then :
7078 cf_openssl_version_ok
=no
7080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7082 #include <openssl/opensslv.h>
7087 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7088 exit(0); else exit(1);
7093 if ac_fn_c_try_run
"$LINENO"; then :
7094 cf_openssl_version_ok
=yes
7096 cf_openssl_version_ok
=no
7098 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7099 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7103 if test "$cf_openssl_version_ok" = yes; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7105 $as_echo "found" >&6; }
7110 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7112 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
7113 if ${ac_cv_lib_crypto_RSA_free+:} false
; then :
7114 $as_echo_n "(cached) " >&6
7116 ac_check_lib_save_LIBS
=$LIBS
7117 LIBS
="-lcrypto $LIBS"
7118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7121 /* Override any GCC internal prototype to avoid an error.
7122 Use char because int might match the return type of a GCC
7123 builtin and then its argument prototype would still apply. */
7136 if ac_fn_c_try_link
"$LINENO"; then :
7137 ac_cv_lib_crypto_RSA_free
=yes
7139 ac_cv_lib_crypto_RSA_free
=no
7141 rm -f core conftest.err conftest.
$ac_objext \
7142 conftest
$ac_exeext conftest.
$ac_ext
7143 LIBS
=$ac_check_lib_save_LIBS
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7146 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7147 if test "x$ac_cv_lib_crypto_RSA_free" = xyes
; then :
7148 cat >>confdefs.h
<<_ACEOF
7149 #define HAVE_LIBCRYPTO 1
7152 LIBS
="-lcrypto $LIBS"
7156 SSL_LIBS
="$SSL_LIBS -lcrypto"
7157 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7160 $as_echo "no - OpenSSL support disabled" >&6; }
7164 CPPFLAGS
="$save_CPPFLAGS"
7171 # Check whether --with-zlib-path was given.
7172 if test "${with_zlib_path+set}" = set; then :
7173 withval
=$with_zlib_path; LIBS
="$LIBS -L$withval"
7177 # Check whether --enable-zlib was given.
7178 if test "${enable_zlib+set}" = set; then :
7179 enableval
=$enable_zlib; zlib
=$enableval
7185 if test "$zlib" = yes; then
7187 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7188 if test "x$ac_cv_header_zlib_h" = xyes
; then :
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7191 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7192 if ${ac_cv_lib_z_zlibVersion+:} false
; then :
7193 $as_echo_n "(cached) " >&6
7195 ac_check_lib_save_LIBS
=$LIBS
7197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7200 /* Override any GCC internal prototype to avoid an error.
7201 Use char because int might match the return type of a GCC
7202 builtin and then its argument prototype would still apply. */
7206 char zlibVersion ();
7210 return zlibVersion ();
7215 if ac_fn_c_try_link
"$LINENO"; then :
7216 ac_cv_lib_z_zlibVersion
=yes
7218 ac_cv_lib_z_zlibVersion
=no
7220 rm -f core conftest.err conftest.
$ac_objext \
7221 conftest
$ac_exeext conftest.
$ac_ext
7222 LIBS
=$ac_check_lib_save_LIBS
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7225 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7226 if test "x$ac_cv_lib_z_zlibVersion" = xyes
; then :
7231 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7248 # Check whether --enable-ports was given.
7249 if test "${enable_ports+set}" = set; then :
7250 enableval
=$enable_ports; if test $enableval = yes; then
7251 SELECT_TYPE_EXPLICIT
="ports"
7259 # Check whether --enable-poll was given.
7260 if test "${enable_poll+set}" = set; then :
7261 enableval
=$enable_poll; if test $enableval = yes; then
7262 SELECT_TYPE_EXPLICIT
="poll"
7270 # Check whether --enable-select was given.
7271 if test "${enable_select+set}" = set; then :
7272 enableval
=$enable_select; if test $enableval = yes; then
7273 SELECT_TYPE_EXPLICIT
="select"
7281 # Check whether --enable-kqueue was given.
7282 if test "${enable_kqueue+set}" = set; then :
7283 enableval
=$enable_kqueue; if test $enableval = yes; then
7284 SELECT_TYPE_EXPLICIT
="kqueue"
7292 # Check whether --enable-epoll was given.
7293 if test "${enable_epoll+set}" = set; then :
7294 enableval
=$enable_epoll; if test $enableval = yes; then
7295 SELECT_TYPE_EXPLICIT
="epoll"
7296 for ac_func
in epoll_ctl
7298 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7299 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7300 cat >>confdefs.h
<<_ACEOF
7301 #define HAVE_EPOLL_CTL 1
7318 # Check whether --with-confdir was given.
7319 if test "${with_confdir+set}" = set; then :
7320 withval
=$with_confdir; sysconfdir
=`echo $withval | sed 's/\/$//'`
7322 confdir
='${sysconfdir}'
7326 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7327 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7328 last_ac_define_dir
=`eval echo $sysconfdir`
7329 ac_define_dir
=`eval echo $last_ac_define_dir`
7330 ac_define_dir_counter
=0
7331 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7332 last_ac_define_dir
="$ac_define_dir"
7333 ac_define_dir
=`eval echo $last_ac_define_dir`
7334 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7335 if test "x$ac_define_dir_counter" = x128
; then :
7336 as_fn_error $?
"detected recusive directory expansion when expanding ETC_DIR=$sysconfdir: $ac_define_dir" "$LINENO" 5
7340 ETC_DIR
="$ac_define_dir"
7343 cat >>confdefs.h
<<_ACEOF
7344 #define ETC_DIR "$ac_define_dir"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7351 $as_echo_n "checking whether to modify logdir... " >&6; }
7353 # Check whether --with-logdir was given.
7354 if test "${with_logdir+set}" = set; then :
7355 withval
=$with_logdir; logdir
=`echo $withval | sed 's/\/$//'`
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7357 $as_echo "yes" >&6; }
7359 if test "x$enable_fhs_paths" = "xyes"; then :
7360 logdir
='${localstatedir}/log/${PACKAGE_TARNAME}'
7362 logdir
='${prefix}/logs'
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365 $as_echo "no" >&6; }
7369 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7370 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7371 last_ac_define_dir
=`eval echo $logdir`
7372 ac_define_dir
=`eval echo $last_ac_define_dir`
7373 ac_define_dir_counter
=0
7374 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7375 last_ac_define_dir
="$ac_define_dir"
7376 ac_define_dir
=`eval echo $last_ac_define_dir`
7377 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7378 if test "x$ac_define_dir_counter" = x128
; then :
7379 as_fn_error $?
"detected recusive directory expansion when expanding LOG_DIR=$logdir: $ac_define_dir" "$LINENO" 5
7383 LOG_DIR
="$ac_define_dir"
7386 cat >>confdefs.h
<<_ACEOF
7387 #define LOG_DIR "$ac_define_dir"
7394 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7395 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7396 eval echo \""$logdir"\"
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7403 $as_echo_n "checking whether to modify helpdir... " >&6; }
7405 # Check whether --with-helpdir was given.
7406 if test "${with_helpdir+set}" = set; then :
7407 withval
=$with_helpdir; helpdir
=`echo $withval | sed 's/\/$//'`
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7409 $as_echo "yes" >&6; }
7411 if test "x$enable_fhs_paths" = "xyes"; then :
7412 helpdir
='${datadir}/${PACKAGE_TARNAME}/help'
7414 helpdir
='${prefix}/help'
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7421 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7422 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7423 last_ac_define_dir
=`eval echo $helpdir`
7424 ac_define_dir
=`eval echo $last_ac_define_dir`
7425 ac_define_dir_counter
=0
7426 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7427 last_ac_define_dir
="$ac_define_dir"
7428 ac_define_dir
=`eval echo $last_ac_define_dir`
7429 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7430 if test "x$ac_define_dir_counter" = x128
; then :
7431 as_fn_error $?
"detected recusive directory expansion when expanding HELP_DIR=$helpdir: $ac_define_dir" "$LINENO" 5
7435 HELP_DIR
="$ac_define_dir"
7438 cat >>confdefs.h
<<_ACEOF
7439 #define HELP_DIR "$ac_define_dir"
7446 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7447 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7448 eval echo \""$helpdir"\"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7455 $as_echo_n "checking whether to modify moduledir... " >&6; }
7457 # Check whether --with-moduledir was given.
7458 if test "${with_moduledir+set}" = set; then :
7459 withval
=$with_moduledir; moduledir
=`echo $withval | sed 's/\/$//'`
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7461 $as_echo "yes" >&6; }
7463 if test "x$enable_fhs_paths" = "xyes"; then :
7464 moduledir
='${pkglibdir}/modules'
7466 moduledir
='${prefix}/modules'
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7474 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7475 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7476 last_ac_define_dir
=`eval echo $moduledir`
7477 ac_define_dir
=`eval echo $last_ac_define_dir`
7478 ac_define_dir_counter
=0
7479 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7480 last_ac_define_dir
="$ac_define_dir"
7481 ac_define_dir
=`eval echo $last_ac_define_dir`
7482 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7483 if test "x$ac_define_dir_counter" = x128
; then :
7484 as_fn_error $?
"detected recusive directory expansion when expanding MODULE_DIR=$moduledir: $ac_define_dir" "$LINENO" 5
7488 MODULE_DIR
="$ac_define_dir"
7491 cat >>confdefs.h
<<_ACEOF
7492 #define MODULE_DIR "$ac_define_dir"
7499 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7500 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7501 eval echo \""$moduledir"\"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7508 $as_echo_n "checking whether or modify rundir... " >&6; }
7510 # Check whether --with-rundir was given.
7511 if test "${with_rundir+set}" = set; then :
7512 withval
=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7513 $as_echo "yes" >&6; }
7514 rundir
=`echo $withval | sed 's/\/$//'`
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7518 if test "x$enable_fhs_paths" = "xyes"; then :
7519 rundir
='${prefix}/run'
7521 rundir
='${sysconfdir}'
7527 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7528 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7529 last_ac_define_dir
=`eval echo $pkgrundir`
7530 ac_define_dir
=`eval echo $last_ac_define_dir`
7531 ac_define_dir_counter
=0
7532 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7533 last_ac_define_dir
="$ac_define_dir"
7534 ac_define_dir
=`eval echo $last_ac_define_dir`
7535 as_fn_arith
$ac_define_dir_counter + 1 && ac_define_dir_counter
=$as_val
7536 if test "x$ac_define_dir_counter" = x128
; then :
7537 as_fn_error $?
"detected recusive directory expansion when expanding PKGRUNDIR=$pkgrundir: $ac_define_dir" "$LINENO" 5
7541 PKGRUNDIR
="$ac_define_dir"
7544 cat >>confdefs.h
<<_ACEOF
7545 #define PKGRUNDIR "$ac_define_dir"
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7551 $as_echo_n "checking for program prefix... " >&6; }
7553 # Check whether --with-program-prefix was given.
7554 if test "${with_program_prefix+set}" = set; then :
7555 withval
=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix
=
7557 with_program_prefix
=
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7561 $as_echo "\"$with_program_prefix\"" >&6; }
7562 PROGRAM_PREFIX
="$with_program_prefix"
7565 cat >>confdefs.h
<<_ACEOF
7566 #define PROGRAM_PREFIX "$with_program_prefix"
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7572 $as_echo_n "checking whether custom branding is requested... " >&6; }
7574 # Check whether --with-custom-branding was given.
7575 if test "${with_custom_branding+set}" = set; then :
7576 withval
=$with_custom_branding; BRANDING_NAME
=$withval
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7578 $as_echo "yes" >&6; }
7580 BRANDING_NAME
=$PACKAGE_NAME
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7588 $as_echo_n "checking whether a custom version is requested... " >&6; }
7590 # Check whether --with-custom-version was given.
7591 if test "${with_custom_version+set}" = set; then :
7592 withval
=$with_custom_version; BRANDING_VERSION
=$withval
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7594 $as_echo "yes" >&6; }
7596 BRANDING_VERSION
=$PACKAGE_VERSION
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7604 cat >>confdefs.h
<<_ACEOF
7605 #define BRANDING_NAME "$BRANDING_NAME"
7609 cat >>confdefs.h
<<_ACEOF
7610 #define BRANDING_VERSION "$BRANDING_VERSION"
7614 if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7616 $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7620 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7621 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
7622 echo "Forcing $SELECT_TYPE to be enabled"
7625 if test ! "x$use_ports" = "xno"; then
7626 for ac_func
in port_getn
7628 ac_fn_c_check_func
"$LINENO" "port_getn" "ac_cv_func_port_getn"
7629 if test "x$ac_cv_func_port_getn" = xyes
; then :
7630 cat >>confdefs.h
<<_ACEOF
7631 #define HAVE_PORT_GETN 1
7639 if test "x$haveports" = "xyes" ; then
7644 if test ! "x$use_select" = "xno"; then
7645 for ac_func
in select
7647 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
7648 if test "x$ac_cv_func_select" = xyes
; then :
7649 cat >>confdefs.h
<<_ACEOF
7650 #define HAVE_SELECT 1
7658 if test "x$haveselect" = "xyes" ; then
7659 SELECT_TYPE
="select"
7663 if test ! "x$use_poll" = "xno"; then
7666 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7667 if test "x$ac_cv_func_poll" = xyes
; then :
7668 cat >>confdefs.h
<<_ACEOF
7677 if test "x$havepoll" = "xyes" ; then
7682 if test ! "x$use_kqueue" = "xno"; then
7683 for ac_func
in kevent
7685 ac_fn_c_check_func
"$LINENO" "kevent" "ac_cv_func_kevent"
7686 if test "x$ac_cv_func_kevent" = xyes
; then :
7687 cat >>confdefs.h
<<_ACEOF
7688 #define HAVE_KEVENT 1
7696 if test "x$havekqueue" = "xyes" ; then
7697 SELECT_TYPE
="kqueue"
7701 if test ! "x$use_epoll" = "xno"; then
7702 for ac_func
in epoll_ctl
7704 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7705 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7706 cat >>confdefs.h
<<_ACEOF
7707 #define HAVE_EPOLL_CTL 1
7715 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7716 if test "x$haveepoll" = "xyes" ; then
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7718 $as_echo_n "checking for epoll support in kernel... " >&6; }
7719 if test "$cross_compiling" = yes; then :
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721 $as_echo "no" >&6; }
7723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7726 #include <sys/param.h>
7727 #include <sys/types.h>
7728 #include <sys/epoll.h>
7729 #include <sys/syscall.h>
7733 main(int argc, char **argv)
7737 epfd = epoll_create(256);
7738 return (epfd == -1 ? 1 : 0);
7741 if ac_fn_c_try_run
"$LINENO"; then :
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7743 $as_echo "yes" >&6; }
7745 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7761 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7762 if test "x$haveepoll" = "xno" ; then
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7764 $as_echo_n "checking for epoll system call... " >&6; }
7765 if test "$cross_compiling" = yes; then :
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7770 /* end confdefs.h. */
7772 #include <sys/param.h>
7773 #include <sys/types.h>
7774 #include <sys/epoll.h>
7775 #include <sys/syscall.h>
7779 epoll_create(int size)
7781 return (syscall(__NR_epoll_create, size));
7785 main(int argc, char **argv)
7789 epfd = epoll_create(256);
7790 exit (epfd == -1 ? 1 : 0);
7793 if ac_fn_c_try_run
"$LINENO"; then :
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7795 $as_echo "yes" >&6; }
7797 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7804 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7805 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7815 if test -z "$SELECT_TYPE"; then
7816 as_fn_error $?
"Unable to find a usable IO interface" "$LINENO" 5
7819 echo "Using $SELECT_TYPE for select loop."
7822 cat >>confdefs.h
<<_ACEOF
7823 #define SELECT_TYPE "$SELECT_TYPE"
7830 # Check whether --enable-assert was given.
7831 if test "${enable_assert+set}" = set; then :
7832 enableval
=$enable_assert; assert
=$enableval
7838 if test "$assert" = no
; then
7840 $as_echo "#define NDEBUG 1" >>confdefs.h
7842 elif test "$assert" = soft
; then
7844 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7847 $as_echo "#define NDEBUG 1" >>confdefs.h
7849 elif test "$assert" = yes; then
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7854 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7855 # Check whether --enable-iodebug was given.
7856 if test "${enable_iodebug+set}" = set; then :
7857 enableval
=$enable_iodebug; iodebug
=$enableval
7863 if test "$iodebug" = yes; then
7865 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868 $as_echo "yes" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7876 $as_echo_n "checking if you want to do a profile build... " >&6; }
7877 # Check whether --enable-profile was given.
7878 if test "${enable_profile+set}" = set; then :
7879 enableval
=$enable_profile; profile
=$enableval
7885 if test "$profile" = yes; then
7886 if test "$ac_cv_c_compiler_gnu" = yes; then
7887 IRC_CFLAGS
="$IRC_CFLAGS -pg"
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7889 $as_echo "yes, adding -pg" >&6; }
7891 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7895 $as_echo "no, profile builds only work with gcc" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7902 # Check whether --enable-balloc was given.
7903 if test "${enable_balloc+set}" = set; then :
7904 enableval
=$enable_balloc; balloc
=$enableval
7910 if test "$balloc" = no
; then
7912 $as_echo "#define NOBALLOC 1" >>confdefs.h
7916 # Check whether --enable-small-net was given.
7917 if test "${enable_small_net+set}" = set; then :
7918 enableval
=$enable_small_net; small_net
=$enableval
7924 if test "$small_net" = yes; then
7926 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7929 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7932 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7935 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7938 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7941 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7944 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7947 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7950 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7953 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7956 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7959 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7962 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7965 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7968 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7971 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7975 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7978 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7981 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7984 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7987 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7990 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7993 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7996 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7999 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
8002 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
8005 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
8008 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
8011 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
8014 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
8017 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
8020 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
8025 # Check whether --with-nicklen was given.
8026 if test "${with_nicklen+set}" = set; then :
8027 withval
=$with_nicklen;
8028 if ! expr "$withval" + 0 >/dev
/null
2>&1; then
8029 as_fn_error $?
"NICKLEN must be a numeric value" "$LINENO" 5
8031 if test $withval -gt 50; then
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
8034 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
8035 elif test $withval -lt 9; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
8038 $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
8049 # Check whether --with-topiclen was given.
8050 if test "${with_topiclen+set}" = set; then :
8051 withval
=$with_topiclen;
8052 if test $withval -ge 390; then
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
8055 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
8066 cat >>confdefs.h
<<_ACEOF
8067 #define TOPICLEN ${TOPICLEN}
8071 cat >>confdefs.h
<<_ACEOF
8072 #define NICKLEN (${NICKLEN}+1)
8076 shared_modules
="yes"
8077 if test "$shared_modules" = yes; then
8078 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
8080 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
8085 if test "$shared_modules" = yes; then
8087 for ac_header
in dlfcn.h
8089 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8090 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8091 cat >>confdefs.h
<<_ACEOF
8092 #define HAVE_DLFCN_H 1
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8100 $as_echo_n "checking for library containing shl_load... " >&6; }
8101 if ${ac_cv_search_shl_load+:} false
; then :
8102 $as_echo_n "(cached) " >&6
8104 ac_func_search_save_LIBS
=$LIBS
8105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8108 /* Override any GCC internal prototype to avoid an error.
8109 Use char because int might match the return type of a GCC
8110 builtin and then its argument prototype would still apply. */
8123 for ac_lib
in '' dld
; do
8124 if test -z "$ac_lib"; then
8125 ac_res
="none required"
8128 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8130 if ac_fn_c_try_link
"$LINENO"; then :
8131 ac_cv_search_shl_load
=$ac_res
8133 rm -f core conftest.err conftest.
$ac_objext \
8135 if ${ac_cv_search_shl_load+:} false
; then :
8139 if ${ac_cv_search_shl_load+:} false
; then :
8142 ac_cv_search_shl_load
=no
8145 LIBS
=$ac_func_search_save_LIBS
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8148 $as_echo "$ac_cv_search_shl_load" >&6; }
8149 ac_res
=$ac_cv_search_shl_load
8150 if test "$ac_res" != no
; then :
8151 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8154 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
8157 MOD_TARGET
=hpux_shared
8158 SEDOBJ
="s/\.o/.sl/g"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8163 $as_echo_n "checking for library containing dlopen... " >&6; }
8164 if ${ac_cv_search_dlopen+:} false
; then :
8165 $as_echo_n "(cached) " >&6
8167 ac_func_search_save_LIBS
=$LIBS
8168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8171 /* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8186 for ac_lib
in '' dl c_r
; do
8187 if test -z "$ac_lib"; then
8188 ac_res
="none required"
8191 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8193 if ac_fn_c_try_link
"$LINENO"; then :
8194 ac_cv_search_dlopen
=$ac_res
8196 rm -f core conftest.err conftest.
$ac_objext \
8198 if ${ac_cv_search_dlopen+:} false
; then :
8202 if ${ac_cv_search_dlopen+:} false
; then :
8205 ac_cv_search_dlopen
=no
8208 LIBS
=$ac_func_search_save_LIBS
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8211 $as_echo "$ac_cv_search_dlopen" >&6; }
8212 ac_res
=$ac_cv_search_dlopen
8213 if test "$ac_res" != no
; then :
8214 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8217 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8220 MOD_TARGET
=shared_modules
8221 SEDOBJ
="s/\.o/.so/g"
8222 if test "$AppleGCC" = yes; then
8223 for ac_header
in mach
-o/dyld.h
8225 ac_fn_c_check_header_mongrel
"$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8226 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
; then :
8227 cat >>confdefs.h
<<_ACEOF
8228 #define HAVE_MACH_O_DYLD_H 1
8236 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8237 if test "x$ac_cv_func_dlsym" = xyes
; then :
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8242 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8247 for ac_func
in dlfunc
8249 ac_fn_c_check_func
"$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8250 if test "x$ac_cv_func_dlfunc" = xyes
; then :
8251 cat >>confdefs.h
<<_ACEOF
8252 #define HAVE_DLFUNC 1
8271 cat >>confdefs.h
<<_ACEOF
8272 #define SHARED_SUFFIX "$SUFFIX"
8276 if test "$shared_modules" = yes; then
8277 # The GNU linker requires the -export-dynamic option to make
8278 # all symbols visible in the dynamic symbol table.
8279 hold_ldflags
=$LDFLAGS
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8281 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8282 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8294 if ac_fn_c_try_link
"$LINENO"; then :
8299 rm -f core conftest.err conftest.
$ac_objext \
8300 conftest
$ac_exeext conftest.
$ac_ext
8301 LDFLAGS
=$hold_ldflags
8303 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
8304 found
="no, IRIX ld uses -B,dynamic"
8305 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
8308 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
8309 found
="no, AIX ld uses -G -brtl"
8310 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8314 $as_echo "$found" >&6; }
8316 if test "$found" = yes; then
8317 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8321 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8322 if test "$SGS" = "yes"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8324 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8325 PICFLAGS
="-KPIC -DPIC -G"
8328 if test "$AppleGCC" = "yes"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8330 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8331 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
8333 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8335 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8336 PICFLAGS
="+z -r -q -n -c"
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8338 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8340 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8345 $as_echo "yes" >&6; }
8346 PICFLAGS
="$PICFLAGS +ESfic"
8349 LDFLAGS
="${LDFLAGS} -Wl,-E"
8351 if test "$Tru" = yes -a "$CC" != gcc
; then
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8353 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8354 PICFLAGS
="-shared -expect_unresolved '*' "
8355 LDFLAGS
="-call_shared"
8357 if test -z "$PICFLAGS"; then
8358 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8360 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8361 PICFLAGS
="-fPIC -DPIC -shared"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8370 # rpath, for finding libratbox.so at run time
8371 hold_ldflags
=$LDFLAGS
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8373 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8374 LDFLAGS
="${LDFLAGS} -Wl,-rpath=${libdir}"
8375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8386 if ac_fn_c_try_link
"$LINENO"; then :
8391 rm -f core conftest.err conftest.
$ac_objext \
8392 conftest
$ac_exeext conftest.
$ac_ext
8393 LDFLAGS
=$hold_ldflags
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8395 $as_echo "$found" >&6; }
8396 if test "$found" = yes; then
8397 LDFLAGS
="${LDFLAGS} -Wl,-rpath=\${libdir}"
8400 # This must be down here, or it will mess up checks like the ones
8401 # for -Wl,-export-dynamic
8404 # Check whether --enable-warnings was given.
8405 if test "${enable_warnings+set}" = set; then :
8406 enableval
=$enable_warnings;
8407 IRC_CFLAGS
="$IRC_CFLAGS -O0"
8408 CFLAGS
="$IRC_CFLAGS"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8412 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8413 if test "${GCC-no}" = yes
8415 if ${charybdis_cv_c_gcc_w_all+:} false
; then :
8416 $as_echo_n "(cached) " >&6
8419 oldcflags
="${CFLAGS-}"
8420 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
8421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8422 /* end confdefs.h. */
8432 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8438 if ac_fn_c_try_compile
"$LINENO"; then :
8439 charybdis_cv_c_gcc_w_all
=yes
8441 charybdis_cv_c_gcc_w_all
=no
8443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8444 CFLAGS
="${oldcflags}"
8447 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
8448 CWARNS
="${CWARNS}-Wall "
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8450 $as_echo "ok" >&6; }
8452 charybdis_cv_c_gcc_w_all
=''
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8463 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8464 if test "${GCC-no}" = yes
8466 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false
; then :
8467 $as_echo_n "(cached) " >&6
8470 oldcflags
="${CFLAGS-}"
8471 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8472 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8473 /* end confdefs.h. */
8483 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8489 if ac_fn_c_try_compile
"$LINENO"; then :
8490 charybdis_cv_c_gcc_w_pointer_arith
=yes
8492 charybdis_cv_c_gcc_w_pointer_arith
=no
8494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8495 CFLAGS
="${oldcflags}"
8498 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
8499 CWARNS
="${CWARNS}-Wpointer-arith "
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8501 $as_echo "ok" >&6; }
8503 charybdis_cv_c_gcc_w_pointer_arith
=''
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8509 $as_echo "no" >&6; }
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8514 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8515 if test "${GCC-no}" = yes
8517 if ${charybdis_cv_c_gcc_w_implicit+:} false
; then :
8518 $as_echo_n "(cached) " >&6
8521 oldcflags
="${CFLAGS-}"
8522 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8524 /* end confdefs.h. */
8534 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8540 if ac_fn_c_try_compile
"$LINENO"; then :
8541 charybdis_cv_c_gcc_w_implicit
=yes
8543 charybdis_cv_c_gcc_w_implicit
=no
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8546 CFLAGS
="${oldcflags}"
8549 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
8550 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8552 $as_echo "ok" >&6; }
8554 charybdis_cv_c_gcc_w_implicit
=''
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8556 $as_echo "no" >&6; }
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8565 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8566 if test "${GCC-no}" = yes
8568 if ${charybdis_cv_c_gcc_w_cast_align+:} false
; then :
8569 $as_echo_n "(cached) " >&6
8572 oldcflags
="${CFLAGS-}"
8573 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8585 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8591 if ac_fn_c_try_compile
"$LINENO"; then :
8592 charybdis_cv_c_gcc_w_cast_align
=yes
8594 charybdis_cv_c_gcc_w_cast_align
=no
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8597 CFLAGS
="${oldcflags}"
8600 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
8601 CWARNS
="${CWARNS}-Wcast-align "
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8603 $as_echo "ok" >&6; }
8605 charybdis_cv_c_gcc_w_cast_align
=''
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611 $as_echo "no" >&6; }
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8616 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8617 if test "${GCC-no}" = yes
8619 if ${charybdis_cv_c_gcc_w_cast_qual+:} false
; then :
8620 $as_echo_n "(cached) " >&6
8623 oldcflags
="${CFLAGS-}"
8624 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8636 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8642 if ac_fn_c_try_compile
"$LINENO"; then :
8643 charybdis_cv_c_gcc_w_cast_qual
=yes
8645 charybdis_cv_c_gcc_w_cast_qual
=no
8647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8648 CFLAGS
="${oldcflags}"
8651 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
8652 CWARNS
="${CWARNS}-Wcast-qual "
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8654 $as_echo "ok" >&6; }
8656 charybdis_cv_c_gcc_w_cast_qual
=''
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8667 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8668 if test "${GCC-no}" = yes
8670 if ${charybdis_cv_c_gcc_w_write_strings+:} false
; then :
8671 $as_echo_n "(cached) " >&6
8674 oldcflags
="${CFLAGS-}"
8675 CFLAGS
="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8687 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8693 if ac_fn_c_try_compile
"$LINENO"; then :
8694 charybdis_cv_c_gcc_w_write_strings
=yes
8696 charybdis_cv_c_gcc_w_write_strings
=no
8698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8699 CFLAGS
="${oldcflags}"
8702 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes
; then
8703 CWARNS
="${CWARNS}-Wwrite-strings "
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8705 $as_echo "ok" >&6; }
8707 charybdis_cv_c_gcc_w_write_strings
=''
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713 $as_echo "no" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8718 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8719 if test "${GCC-no}" = yes
8721 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false
; then :
8722 $as_echo_n "(cached) " >&6
8725 oldcflags
="${CFLAGS-}"
8726 CFLAGS
="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8738 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8744 if ac_fn_c_try_compile
"$LINENO"; then :
8745 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=yes
8747 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=no
8749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8750 CFLAGS
="${oldcflags}"
8753 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes
; then
8754 CWARNS
="${CWARNS}-Werror-implicit-function-declaration "
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8756 $as_echo "ok" >&6; }
8758 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=''
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8769 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8770 if test "${GCC-no}" = yes
8772 if ${charybdis_cv_c_gcc_prototypes+:} false
; then :
8773 $as_echo_n "(cached) " >&6
8776 oldcflags
="${CFLAGS-}"
8777 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8789 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8795 if ac_fn_c_try_compile
"$LINENO"; then :
8796 charybdis_cv_c_gcc_prototypes
=yes
8798 charybdis_cv_c_gcc_prototypes
=no
8800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8801 CFLAGS
="${oldcflags}"
8804 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
8805 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8807 $as_echo "ok" >&6; }
8809 charybdis_cv_c_gcc_prototypes
=''
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8820 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8821 if test "${GCC-no}" = yes
8823 if ${charybdis_cv_c_gcc_parenthesis+:} false
; then :
8824 $as_echo_n "(cached) " >&6
8827 oldcflags
="${CFLAGS-}"
8828 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8840 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8846 if ac_fn_c_try_compile
"$LINENO"; then :
8847 charybdis_cv_c_gcc_parenthesis
=yes
8849 charybdis_cv_c_gcc_parenthesis
=no
8851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8852 CFLAGS
="${oldcflags}"
8855 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
8856 CWARNS
="${CWARNS}-Wparenthesis "
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8858 $as_echo "ok" >&6; }
8860 charybdis_cv_c_gcc_parenthesis
=''
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8871 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8872 if test "${GCC-no}" = yes
8874 if ${charybdis_cv_c_gcc_w+:} false
; then :
8875 $as_echo_n "(cached) " >&6
8878 oldcflags
="${CFLAGS-}"
8879 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8881 /* end confdefs.h. */
8891 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8897 if ac_fn_c_try_compile
"$LINENO"; then :
8898 charybdis_cv_c_gcc_w
=yes
8900 charybdis_cv_c_gcc_w
=no
8902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8903 CFLAGS
="${oldcflags}"
8906 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
8907 CWARNS
="${CWARNS}-W -Wno-unused "
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8909 $as_echo "ok" >&6; }
8911 charybdis_cv_c_gcc_w
=''
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913 $as_echo "no" >&6; }
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8922 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8923 if test "${GCC-no}" = yes
8925 if ${charybdis_cv_c_gcc_w_extra+:} false
; then :
8926 $as_echo_n "(cached) " >&6
8929 oldcflags
="${CFLAGS-}"
8930 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8942 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8948 if ac_fn_c_try_compile
"$LINENO"; then :
8949 charybdis_cv_c_gcc_w_extra
=yes
8951 charybdis_cv_c_gcc_w_extra
=no
8953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8954 CFLAGS
="${oldcflags}"
8957 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
8958 CWARNS
="${CWARNS}-Wextra "
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8960 $as_echo "ok" >&6; }
8962 charybdis_cv_c_gcc_w_extra
=''
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8973 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8974 if test "${GCC-no}" = yes
8976 if ${charybdis_cv_c_gcc_w_shadow+:} false
; then :
8977 $as_echo_n "(cached) " >&6
8980 oldcflags
="${CFLAGS-}"
8981 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8993 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8999 if ac_fn_c_try_compile
"$LINENO"; then :
9000 charybdis_cv_c_gcc_w_shadow
=yes
9002 charybdis_cv_c_gcc_w_shadow
=no
9004 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9005 CFLAGS
="${oldcflags}"
9008 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
9009 CWARNS
="${CWARNS}-Wshadow "
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9011 $as_echo "ok" >&6; }
9013 charybdis_cv_c_gcc_w_shadow
=''
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9015 $as_echo "no" >&6; }
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
9024 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
9025 if test "${GCC-no}" = yes
9027 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false
; then :
9028 $as_echo_n "(cached) " >&6
9031 oldcflags
="${CFLAGS-}"
9032 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
9033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9044 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9050 if ac_fn_c_try_compile
"$LINENO"; then :
9051 charybdis_cv_c_gcc_w_missing_noreturn
=yes
9053 charybdis_cv_c_gcc_w_missing_noreturn
=no
9055 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9056 CFLAGS
="${oldcflags}"
9059 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
9060 CWARNS
="${CWARNS}-Wmissing-noreturn "
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9062 $as_echo "ok" >&6; }
9064 charybdis_cv_c_gcc_w_missing_noreturn
=''
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
9075 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
9076 if test "${GCC-no}" = yes
9078 if ${charybdis_cv_c_gcc_w_undef+:} false
; then :
9079 $as_echo_n "(cached) " >&6
9082 oldcflags
="${CFLAGS-}"
9083 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
9084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9095 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9101 if ac_fn_c_try_compile
"$LINENO"; then :
9102 charybdis_cv_c_gcc_w_undef
=yes
9104 charybdis_cv_c_gcc_w_undef
=no
9106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9107 CFLAGS
="${oldcflags}"
9110 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
9111 CWARNS
="${CWARNS}-Wundef "
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9113 $as_echo "ok" >&6; }
9115 charybdis_cv_c_gcc_w_undef
=''
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121 $as_echo "no" >&6; }
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9126 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
9127 if test "${GCC-no}" = yes
9129 if ${charybdis_cv_c_gcc_w_packed+:} false
; then :
9130 $as_echo_n "(cached) " >&6
9133 oldcflags
="${CFLAGS-}"
9134 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
9135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9146 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9152 if ac_fn_c_try_compile
"$LINENO"; then :
9153 charybdis_cv_c_gcc_w_packed
=yes
9155 charybdis_cv_c_gcc_w_packed
=no
9157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9158 CFLAGS
="${oldcflags}"
9161 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
9162 CWARNS
="${CWARNS}-Wpacked "
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9164 $as_echo "ok" >&6; }
9166 charybdis_cv_c_gcc_w_packed
=''
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9177 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
9178 if test "${GCC-no}" = yes
9180 if ${charybdis_cv_c_gcc_w_nested_externs+:} false
; then :
9181 $as_echo_n "(cached) " >&6
9184 oldcflags
="${CFLAGS-}"
9185 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9197 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9203 if ac_fn_c_try_compile
"$LINENO"; then :
9204 charybdis_cv_c_gcc_w_nested_externs
=yes
9206 charybdis_cv_c_gcc_w_nested_externs
=no
9208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9209 CFLAGS
="${oldcflags}"
9212 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
9213 CWARNS
="${CWARNS}-Wnested-externs "
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9215 $as_echo "ok" >&6; }
9217 charybdis_cv_c_gcc_w_nested_externs
=''
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 $as_echo "no" >&6; }
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9228 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9229 if test "${GCC-no}" = yes
9231 if ${charybdis_cv_c_gcc_w_unused+:} false
; then :
9232 $as_echo_n "(cached) " >&6
9235 oldcflags
="${CFLAGS-}"
9236 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9238 /* end confdefs.h. */
9248 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9254 if ac_fn_c_try_compile
"$LINENO"; then :
9255 charybdis_cv_c_gcc_w_unused
=yes
9257 charybdis_cv_c_gcc_w_unused
=no
9259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9260 CFLAGS
="${oldcflags}"
9263 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
9264 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9266 $as_echo "ok" >&6; }
9268 charybdis_cv_c_gcc_w_unused
=''
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9279 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9280 if test "${GCC-no}" = yes
9282 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false
; then :
9283 $as_echo_n "(cached) " >&6
9286 oldcflags
="${CFLAGS-}"
9287 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9299 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9305 if ac_fn_c_try_compile
"$LINENO"; then :
9306 charybdis_cv_c_gcc_w_redundant_decls
=yes
9308 charybdis_cv_c_gcc_w_redundant_decls
=no
9310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9311 CFLAGS
="${oldcflags}"
9314 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
9315 CWARNS
="${CWARNS}-Wredundant-decls "
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9317 $as_echo "ok" >&6; }
9319 charybdis_cv_c_gcc_w_redundant_decls
=''
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9321 $as_echo "no" >&6; }
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9325 $as_echo "no" >&6; }
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9330 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9331 if test "${GCC-no}" = yes
9333 if ${charybdis_cv_c_gcc_w_float_equal+:} false
; then :
9334 $as_echo_n "(cached) " >&6
9337 oldcflags
="${CFLAGS-}"
9338 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9350 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9356 if ac_fn_c_try_compile
"$LINENO"; then :
9357 charybdis_cv_c_gcc_w_float_equal
=yes
9359 charybdis_cv_c_gcc_w_float_equal
=no
9361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9362 CFLAGS
="${oldcflags}"
9365 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
9366 CWARNS
="${CWARNS}-Wfloat-equal "
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9368 $as_echo "ok" >&6; }
9370 charybdis_cv_c_gcc_w_float_equal
=''
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9372 $as_echo "no" >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9381 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9382 if test "${GCC-no}" = yes
9384 if ${charybdis_cv_c_gcc_w_format+:} false
; then :
9385 $as_echo_n "(cached) " >&6
9388 oldcflags
="${CFLAGS-}"
9389 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9391 /* end confdefs.h. */
9401 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9407 if ac_fn_c_try_compile
"$LINENO"; then :
9408 charybdis_cv_c_gcc_w_format
=yes
9410 charybdis_cv_c_gcc_w_format
=no
9412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9413 CFLAGS
="${oldcflags}"
9416 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
9417 CWARNS
="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9419 $as_echo "ok" >&6; }
9421 charybdis_cv_c_gcc_w_format
=''
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9427 $as_echo "no" >&6; }
9431 IRC_CFLAGS
="$CFLAGS"
9436 if test "$shared_modules" = no
; then
9438 MOD_TARGET
="libmodules.a"
9439 MODULES_LIBS
="../modules/libmodules.a"
9442 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9445 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9448 if test "$shared_modules" = yes; then
9450 ac_fn_c_check_func
"$LINENO" "nlist" "ac_cv_func_nlist"
9451 if test "x$ac_cv_func_nlist" = xyes
; then :
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9455 $as_echo_n "checking for nlist in -ldl... " >&6; }
9456 if ${ac_cv_lib_dl_nlist+:} false
; then :
9457 $as_echo_n "(cached) " >&6
9459 ac_check_lib_save_LIBS
=$LIBS
9461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9464 /* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
9479 if ac_fn_c_try_link
"$LINENO"; then :
9480 ac_cv_lib_dl_nlist
=yes
9482 ac_cv_lib_dl_nlist
=no
9484 rm -f core conftest.err conftest.
$ac_objext \
9485 conftest
$ac_exeext conftest.
$ac_ext
9486 LIBS
=$ac_check_lib_save_LIBS
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9489 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9490 if test "x$ac_cv_lib_dl_nlist" = xyes
; then :
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9494 $as_echo_n "checking for nlist in -lelf... " >&6; }
9495 if ${ac_cv_lib_elf_nlist+:} false
; then :
9496 $as_echo_n "(cached) " >&6
9498 ac_check_lib_save_LIBS
=$LIBS
9500 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9518 if ac_fn_c_try_link
"$LINENO"; then :
9519 ac_cv_lib_elf_nlist
=yes
9521 ac_cv_lib_elf_nlist
=no
9523 rm -f core conftest.err conftest.
$ac_objext \
9524 conftest
$ac_exeext conftest.
$ac_ext
9525 LIBS
=$ac_check_lib_save_LIBS
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9528 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9529 if test "x$ac_cv_lib_elf_nlist" = xyes
; then :
9540 ac_fn_c_check_header_mongrel
"$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9541 if test "x$ac_cv_header_libelf_nlist_h" = xyes
; then :
9542 nlist_h
="libelf/nlist.h"
9546 ac_fn_c_check_header_mongrel
"$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9547 if test "x$ac_cv_header_elf_nlist_h" = xyes
; then :
9548 nlist_h
="elf/nlist.h"
9552 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9553 if test "x$ac_cv_header_nlist_h" = xyes
; then :
9558 if test x
"$nlist_h" = "x"; then
9560 cat >>confdefs.h
<<_ACEOF
9561 #define SYMBOL_PREFIX ""
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9566 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9567 if ${symbol_underscores+:} false
; then :
9568 $as_echo_n "(cached) " >&6
9571 cat << EOF > conftest.c
9575 void _modinit(void);
9576 int main(int argc, char *argv[]) {
9580 /* fill the names in this way, so it'll work almost everywhere */
9581 nl[0].n_name = "_modinit";
9582 nl[1].n_name = "__modinit";
9583 nl[2].n_name = "___modinit";
9584 nl[3].n_name = "____modinit";
9585 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9587 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9588 for(i = 0; i < 4; i++) {
9589 if(nl[i].n_value != NULL)
9592 for(j = 0; j < i; j++)
9599 void _modinit(void) { return; }
9601 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
9602 symbol_underscores
=`./conftest conftest`
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9604 $as_echo "$symbol_underscores" >&6; }
9605 $RM -f conftest conftest.c
9610 cat >>confdefs.h
<<_ACEOF
9611 #define SYMBOL_PREFIX "${symbol_underscores}"
9617 IRC_CFLAGS
="$IRC_CFLAGS $CWARNS"
9632 if test "$prefix" = "NONE"; then
9634 cat >>confdefs.h
<<_ACEOF
9635 #define IRCD_PREFIX "$ac_default_prefix"
9642 prefix
=`echo $prefix | sed 's/\/$//'`
9644 cat >>confdefs.h
<<_ACEOF
9645 #define IRCD_PREFIX "$prefix"
9651 ac_config_files
="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl doc/Makefile help/Makefile"
9653 ac_config_commands
="$ac_config_commands tools/genssl_chmod"
9656 cat >confcache
<<\_ACEOF
9657 # This file is a shell script that caches the results of configure
9658 # tests run on this system so they can be shared between configure
9659 # scripts and configure runs, see configure's option --config-cache.
9660 # It is not useful on other systems. If it contains results you don't
9661 # want to keep, you may remove or edit it.
9663 # config.status only pays attention to the cache file if you give it
9664 # the --recheck option to rerun configure.
9666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9672 # The following way of writing the cache mishandles newlines in values,
9673 # but we know of no workaround that is simple, portable, and efficient.
9674 # So, we kill variables containing newlines.
9675 # Ultrix sh set writes to stderr and can't be redirected directly,
9676 # and sets the high bit in the cache file unless we assign to the vars.
9678 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9679 eval ac_val
=\$
$ac_var
9683 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9684 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9687 _
| IFS
| as_nl
) ;; #(
9688 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9689 *) { eval $ac_var=; unset $ac_var;} ;;
9695 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9696 *${as_nl}ac_space
=\
*)
9697 # `set' does not quote correctly, so add quotes: double-quote
9698 # substitution turns \\\\ into \\, and sed turns \\ into \.
9701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9704 # `set' quotes correctly as required by POSIX, so do not add quotes.
9705 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9714 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9716 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9718 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9719 if test -w "$cache_file"; then
9720 if test "x$cache_file" != "x/dev/null"; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9722 $as_echo "$as_me: updating cache $cache_file" >&6;}
9723 if test ! -f "$cache_file" || test -h "$cache_file"; then
9724 cat confcache
>"$cache_file"
9726 case $cache_file in #(
9728 mv -f confcache
"$cache_file"$$
&&
9729 mv -f "$cache_file"$$
"$cache_file" ;; #(
9731 mv -f confcache
"$cache_file" ;;
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9737 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9742 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9743 # Let make expand exec_prefix.
9744 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9746 DEFS
=-DHAVE_CONFIG_H
9751 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9752 # 1. Remove the extension, and $U if already installed.
9753 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9754 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9755 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9756 # will be set to the directory where LIBOBJS objects are built.
9757 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9758 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9762 LTLIBOBJS
=$ac_ltlibobjs
9768 : "${CONFIG_STATUS=./config.status}"
9770 ac_clean_files_save
=$ac_clean_files
9771 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9773 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9775 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9777 # Generated by $as_me.
9778 # Run this file to recreate the current configuration.
9779 # Compiler output produced by configure, useful for debugging
9780 # configure, is in config.log if it exists.
9786 SHELL=\${CONFIG_SHELL-$SHELL}
9789 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
9790 ## -------------------- ##
9791 ## M4sh Initialization. ##
9792 ## -------------------- ##
9794 # Be more Bourne compatible
9795 DUALCASE
=1; export DUALCASE
# for MKS sh
9796 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9800 # is contrary to our usage. Disable this feature.
9801 alias -g '${1+"$@"}'='"$@"'
9802 setopt NO_GLOB_SUBST
9804 case `(set -o) 2>/dev/null` in #(
9816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9817 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9820 # Prefer a ksh shell builtin over an external printf program on Solaris,
9821 # but without wasting forks for bash or zsh.
9822 if test -z "$BASH_VERSION$ZSH_VERSION" \
9823 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9824 as_echo='print
-r --'
9825 as_echo_n='print
-rn --'
9826 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9827 as_echo='printf %s
\n'
9828 as_echo_n='printf %s
'
9830 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9831 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9832 as_echo_n='/usr
/ucb
/echo -n'
9834 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9835 as_echo_n_body='eval
9839 expr "X$arg" : "X\\(.*\\)$as_nl";
9840 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9842 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9844 export as_echo_n_body
9845 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9848 as_echo='sh
-c $as_echo_body as_echo
'
9851 # The user is always right.
9852 if test "${PATH_SEPARATOR+set}" != set; then
9854 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9855 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9862 # We need space, tab and new line, in precisely that order. Quoting is
9863 # there to prevent editors from complaining about space-tab.
9864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9865 # splitting by setting IFS to empty value.)
9868 # Find who we are. Look in the path if we contain no directory separator.
9871 *[\\/]* ) as_myself=$0 ;;
9872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876 test -z "$as_dir" && as_dir=.
9877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9883 # We did not find ourselves, most probably we were run as `sh COMMAND'
9884 # in which case we are not to be found in the path.
9885 if test "x$as_myself" = x
; then
9888 if test ! -f "$as_myself"; then
9889 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9893 # Unset variables that we do not need and which cause bugs (e.g. in
9894 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9895 # suppresses any "Segmentation fault" message there. '((' could
9896 # trigger a bug in pdksh 5.2.14.
9897 for as_var
in BASH_ENV ENV MAIL MAILPATH
9898 do eval test x\
${$as_var+set} = xset \
9899 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9912 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9915 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9916 # ----------------------------------------
9917 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9918 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9919 # script with STATUS, using 1 if that was 0.
9922 as_status
=$1; test $as_status -eq 0 && as_status
=1
9924 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9925 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9927 $as_echo "$as_me: error: $2" >&2
9928 as_fn_exit
$as_status
9932 # as_fn_set_status STATUS
9933 # -----------------------
9934 # Set $? to STATUS, without forking.
9938 } # as_fn_set_status
9942 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9952 # Portably unset VAR.
9955 { eval $1=; unset $1;}
9957 as_unset
=as_fn_unset
9958 # as_fn_append VAR VALUE
9959 # ----------------------
9960 # Append the text in VALUE to the end of the definition contained in VAR. Take
9961 # advantage of any shell optimizations that allow amortized linear growth over
9962 # repeated appends, instead of the typical quadratic growth present in naive
9964 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9965 eval 'as_fn_append ()
9976 # as_fn_arith ARG...
9977 # ------------------
9978 # Perform arithmetic evaluation on the ARGs, and store the result in the
9979 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9980 # must be portable across $(()) and expr.
9981 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9982 eval 'as_fn_arith ()
9989 as_val
=`expr "$@" || test $? -eq 1`
9994 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9995 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10001 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10002 as_basename
=basename
10007 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10013 as_me
=`$as_basename -- "$0" ||
10014 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10015 X"$0" : 'X\(//\)$' \| \
10016 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10018 sed '/^.*\/\([^/][^/]*\)\/*$/{
10032 # Avoid depending upon Character Ranges.
10033 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10034 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10035 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10036 as_cr_digits
='0123456789'
10037 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10039 ECHO_C
= ECHO_N
= ECHO_T
=
10040 case `echo -n x` in #(((((
10042 case `echo 'xy\c'` in
10043 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10045 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10052 rm -f conf$$ conf$$.exe conf$$.
file
10053 if test -d conf$$.dir
; then
10054 rm -f conf$$.dir
/conf$$.
file
10057 mkdir conf$$.dir
2>/dev
/null
10059 if (echo >conf$$.
file) 2>/dev
/null
; then
10060 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10062 # ... but there are two gotchas:
10063 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10064 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10065 # In both cases, we have to default to `cp -pR'.
10066 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
10068 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10076 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10077 rmdir conf$$.dir
2>/dev
/null
10082 # Create "$as_dir" as a directory, including parents if necessary.
10087 -*) as_dir
=.
/$as_dir;;
10089 test -d "$as_dir" || eval $as_mkdir_p || {
10093 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10094 *) as_qdir
=$as_dir;;
10096 as_dirs
="'$as_qdir' $as_dirs"
10097 as_dir
=`$as_dirname -- "$as_dir" ||
10098 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10099 X"$as_dir" : 'X\(//\)[^/]' \| \
10100 X"$as_dir" : 'X\(//\)$' \| \
10101 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10102 $as_echo X"$as_dir" |
10103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10107 /^X\(\/\/\)[^/].*/{
10120 test -d "$as_dir" && break
10122 test -z "$as_dirs" || eval "mkdir $as_dirs"
10123 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10127 if mkdir -p .
2>/dev
/null
; then
10128 as_mkdir_p
='mkdir -p "$as_dir"'
10130 test -d .
/-p && rmdir .
/-p
10135 # as_fn_executable_p FILE
10136 # -----------------------
10137 # Test if FILE is an executable regular file.
10138 as_fn_executable_p
()
10140 test -f "$1" && test -x "$1"
10141 } # as_fn_executable_p
10142 as_test_x
='test -x'
10143 as_executable_p
=as_fn_executable_p
10145 # Sed expression to map a string onto a valid CPP name.
10146 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10148 # Sed expression to map a string onto a valid variable name.
10149 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10153 ## ----------------------------------- ##
10154 ## Main body of $CONFIG_STATUS script. ##
10155 ## ----------------------------------- ##
10157 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10159 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10160 # Save the log message, to keep $0 and so on meaningful, and to
10161 # report actual input values of CONFIG_FILES etc. instead of their
10162 # values after options handling.
10164 This file was extended by charybdis $as_me 3.5.0-dev, which was
10165 generated by GNU Autoconf 2.69. Invocation command line was
10167 CONFIG_FILES = $CONFIG_FILES
10168 CONFIG_HEADERS = $CONFIG_HEADERS
10169 CONFIG_LINKS = $CONFIG_LINKS
10170 CONFIG_COMMANDS = $CONFIG_COMMANDS
10173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10178 case $ac_config_files in *"
10179 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10182 case $ac_config_headers in *"
10183 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10188 # Files that config.status was made for.
10189 config_files="$ac_config_files"
10190 config_headers="$ac_config_headers"
10191 config_commands="$ac_config_commands"
10195 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10197 \`$as_me' instantiates files and other configuration actions
10198 from templates according to the current configuration. Unless the files
10199 and actions are specified as TAGs, all are instantiated by default.
10201 Usage: $0 [OPTION]... [TAG]...
10203 -h, --help print this help, then exit
10204 -V, --version print version number and configuration settings, then exit
10205 --config print configuration, then exit
10206 -q, --quiet, --silent
10207 do not print progress messages
10208 -d, --debug don't remove temporary files
10209 --recheck update $as_me by reconfiguring in the same conditions
10210 --file=FILE[:TEMPLATE]
10211 instantiate the configuration file FILE
10212 --header=FILE[:TEMPLATE]
10213 instantiate the configuration header FILE
10215 Configuration files:
10218 Configuration headers:
10221 Configuration commands:
10224 Report bugs to the package provider."
10227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10228 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10230 charybdis config.status 3.5.0-dev
10231 configured by $0, generated by GNU Autoconf 2.69,
10232 with options \\"\$ac_cs_config\\"
10234 Copyright (C) 2012 Free Software Foundation, Inc.
10235 This config.status script is free software; the Free Software Foundation
10236 gives unlimited permission to copy, distribute and modify it."
10241 test -n "\$AWK" || AWK=awk
10244 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10245 # The default lists apply if the user does not specify any file.
10251 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10252 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10256 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10268 # Handling of the options.
10269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10272 $as_echo "$ac_cs_version"; exit ;;
10273 --config | --confi | --conf | --con | --co | --c )
10274 $as_echo "$ac_cs_config"; exit ;;
10275 --debug | --debu | --deb | --de | --d | -d )
10277 --file | --fil | --fi | --f )
10280 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10281 '') as_fn_error $?
"missing file argument" ;;
10283 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10284 ac_need_defaults
=false
;;
10285 --header | --heade | --head | --hea )
10288 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10290 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10291 ac_need_defaults
=false
;;
10293 # Conflict between --help and --header
10294 as_fn_error $?
"ambiguous option: \`$1'
10295 Try \`$0 --help' for more information.";;
10296 --help | --hel | -h )
10297 $as_echo "$ac_cs_usage"; exit ;;
10298 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10299 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10302 # This is an error.
10303 -*) as_fn_error $?
"unrecognized option: \`$1'
10304 Try \`$0 --help' for more information." ;;
10306 *) as_fn_append ac_config_targets
" $1"
10307 ac_need_defaults
=false
;;
10313 ac_configure_extra_args
=
10315 if $ac_cs_silent; then
10317 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10321 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10322 if \$ac_cs_recheck; then
10323 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10325 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10326 CONFIG_SHELL='$SHELL'
10327 export CONFIG_SHELL
10332 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10336 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10337 ## Running $as_me. ##
10343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10346 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10348 # Handling of arguments.
10349 for ac_config_target
in $ac_config_targets
10351 case $ac_config_target in
10352 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10353 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10354 "bandb/Makefile") CONFIG_FILES
="$CONFIG_FILES bandb/Makefile" ;;
10355 "ssld/Makefile") CONFIG_FILES
="$CONFIG_FILES ssld/Makefile" ;;
10356 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
10357 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10358 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
10359 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10360 "tools/genssl") CONFIG_FILES
="$CONFIG_FILES tools/genssl" ;;
10361 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10362 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
10363 "tools/genssl_chmod") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/genssl_chmod" ;;
10365 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10370 # If the user did not use the arguments to specify the items to instantiate,
10371 # then the envvar interface is used. Set only those that are not.
10372 # We use the long form for the default assignment because of an extremely
10373 # bizarre bug on SunOS 4.1.3.
10374 if $ac_need_defaults; then
10375 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10376 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10377 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10380 # Have a temporary directory for convenience. Make it in the build tree
10381 # simply because there is no reason against having it here, and in addition,
10382 # creating and moving files from /tmp can sometimes cause problems.
10383 # Hook for its removal unless debugging.
10384 # Note that there is a small window in which the directory will not be cleaned:
10385 # after its creation but before its name has been assigned to `$tmp'.
10389 trap 'exit_status=$?
10390 : "${ac_tmp:=$tmp}"
10391 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10393 trap 'as_fn_exit 1' 1 2 13 15
10395 # Create a (secure) tmp directory for tmp files.
10398 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10402 tmp
=.
/conf$$
-$RANDOM
10403 (umask 077 && mkdir "$tmp")
10404 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10407 # Set up the scripts for CONFIG_FILES section.
10408 # No need to generate them if there are no CONFIG_FILES.
10409 # This happens for instance with `./config.status config.h'.
10410 if test -n "$CONFIG_FILES"; then
10413 ac_cr
=`echo X | tr X '\015'`
10414 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10415 # But we know of no other shell where ac_cr would be empty at this
10416 # point, so we can use a bashism as a fallback.
10417 if test "x$ac_cr" = x
; then
10418 eval ac_cr
=\$
\'\\r
\'
10420 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10421 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10424 ac_cs_awk_cr
=$ac_cr
10427 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10432 echo "cat >conf$$subs.awk <<_ACEOF" &&
10433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10435 } >conf$$subs.sh ||
10436 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10437 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10439 for ac_last_try in false false false false false :; do
10440 . ./conf$$subs.sh ||
10441 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10443 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10444 if test $ac_delim_n = $ac_delim_num; then
10446 elif $ac_last_try; then
10447 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10449 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10452 rm -f conf$$subs.sh
10454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10455 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10459 s/^/S["/; s
/!.
*/"]=/
10469 s/\(.\{148\}\)..*/\1/
10471 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10476 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10483 s/\(.\{148\}\)..*/\1/
10485 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10489 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10494 ' <conf$$subs.awk | sed '
10499 ' >>$CONFIG_STATUS || ac_write_fail=1
10500 rm -f conf$$subs.awk
10501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10503 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10504 for (key in S) S_is_set[key] = 1
10510 nfields = split(line, field, "@
")
10512 len = length(field[1])
10513 for (i = 2; i < nfields; i++) {
10515 keylen = length(key)
10516 if (S_is_set[key]) {
10518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10519 len += length(value) + length(field[++i])
10530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10531 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10532 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10535 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10536 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10539 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10540 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10541 # trailing colons and then remove the whole line if VPATH becomes empty
10542 # (actually we leave an empty line to preserve line numbers).
10543 if test "x
$srcdir" = x.; then
10544 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10563 fi # test -n "$CONFIG_FILES"
10565 # Set up the scripts for CONFIG_HEADERS section.
10566 # No need to generate them if there are no CONFIG_HEADERS.
10567 # This happens for instance with `./config.status Makefile'.
10568 if test -n "$CONFIG_HEADERS"; then
10569 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10573 # Transform confdefs.h into an awk script `defines.awk', embedded as
10574 # here-document in config.status, that substitutes the proper values into
10575 # config.h.in to produce config.h.
10577 # Create a delimiter string that does not exist in confdefs.h, to ease
10578 # handling of long lines.
10580 for ac_last_try in false false :; do
10581 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10582 if test -z "$ac_tt"; then
10584 elif $ac_last_try; then
10585 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10587 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10591 # For the awk script, D is an array of macro values keyed by name,
10592 # likewise P contains macro parameters if any. Preserve backslash
10593 # newline sequences.
10595 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10597 s/.\{148\}/&'"$ac_delim"'/g
10600 s/^[ ]*#[ ]*define[ ][ ]*/ /
10607 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10609 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10614 D["\
1"]=" \
3\\\\\\n
"\\/p
10616 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10621 s/.\{148\}/&'"$ac_delim"'/g
10626 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10629 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10631 ' <confdefs.h | sed '
10632 s/'"$ac_delim"'/"\\\
10633 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10636 for (key in D) D_is_set[key] = 1
10639 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10641 split(line, arg, " ")
10642 if (arg[1] == "#") {
10646 defundef
= substr
(arg
[1], 2)
10649 split(mac1
, mac2
, "(") #)
10651 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10652 if (D_is_set
[macro
]) {
10653 # Preserve the white space surrounding the "#".
10654 print prefix
"define", macro P
[macro
] D
[macro
]
10657 # Replace #undef with comments. This is necessary, for example,
10658 # in the case of _POSIX_SOURCE, which is predefined and required
10659 # on some systems where configure will not decide to define it.
10660 if (defundef
== "undef") {
10661 print
"/*", prefix defundef
, macro
, "*/"
10669 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10670 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10671 fi # test -n "$CONFIG_HEADERS"
10674 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10679 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10681 case $ac_mode$ac_tag in
10683 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10684 :[FH
]-) ac_tag
=-:-;;
10685 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10702 -) ac_f
="$ac_tmp/stdin";;
10703 *) # Look for the file first in the build tree, then in the source tree
10704 # (if the path is not absolute). The absolute path cannot be DOS-style,
10705 # because $ac_f cannot contain `:'.
10709 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10711 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10713 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10714 as_fn_append ac_file_inputs
" '$ac_f'"
10717 # Let's still pretend it is `configure' which instantiates (i.e., don't
10718 # use $as_me), people would be surprised to read:
10719 # /* config.h. Generated by config.status. */
10720 configure_input
='Generated from '`
10721 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10723 if test x
"$ac_file" != x
-; then
10724 configure_input
="$ac_file. $configure_input"
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10726 $as_echo "$as_me: creating $ac_file" >&6;}
10728 # Neutralize special characters interpreted by sed in replacement strings.
10729 case $configure_input in #(
10730 *\
&* | *\
|* | *\\* )
10731 ac_sed_conf_input
=`$as_echo "$configure_input" |
10732 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10733 *) ac_sed_conf_input
=$configure_input;;
10737 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10738 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10743 ac_dir
=`$as_dirname -- "$ac_file" ||
10744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10745 X"$ac_file" : 'X\(//\)[^/]' \| \
10746 X"$ac_file" : 'X\(//\)$' \| \
10747 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10748 $as_echo X"$ac_file" |
10749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10753 /^X\(\/\/\)[^/].*/{
10766 as_dir
="$ac_dir"; as_fn_mkdir_p
10770 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10772 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10773 # A ".." for each directory in $ac_dir_suffix.
10774 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10775 case $ac_top_builddir_sub in
10776 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10777 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10780 ac_abs_top_builddir
=$ac_pwd
10781 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10782 # for backward compatibility:
10783 ac_top_builddir
=$ac_top_build_prefix
10786 .
) # We are building in place.
10788 ac_top_srcdir
=$ac_top_builddir_sub
10789 ac_abs_top_srcdir
=$ac_pwd ;;
10790 [\\/]* | ?
:[\\/]* ) # Absolute name.
10791 ac_srcdir
=$srcdir$ac_dir_suffix;
10792 ac_top_srcdir
=$srcdir
10793 ac_abs_top_srcdir
=$srcdir ;;
10794 *) # Relative name.
10795 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10796 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10797 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10799 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10809 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10810 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10814 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10815 # If the template does not know about datarootdir, expand it.
10816 # FIXME: This hack should be removed a few years after 2.60.
10817 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10828 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10829 *datarootdir
*) ac_datarootdir_seen
=yes;;
10830 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10832 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10834 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10835 ac_datarootdir_hack='
10836 s&@datadir@&$datadir&g
10837 s&@docdir@&$docdir&g
10838 s&@infodir@&$infodir&g
10839 s&@localedir@&$localedir&g
10840 s&@mandir@&$mandir&g
10841 s&\\\${datarootdir}&$datarootdir&g' ;;
10845 # Neutralize VPATH when `$srcdir' = `.'.
10846 # Shell code in configure.ac might set extrasub.
10847 # FIXME: do we really want to maintain this feature?
10848 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10849 ac_sed_extra="$ac_vpsub
10852 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10854 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10855 s
|@configure_input@
|$ac_sed_conf_input|;t t
10856 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10857 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10858 s
&@srcdir@
&$ac_srcdir&;t t
10859 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10860 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10861 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10862 s
&@builddir@
&$ac_builddir&;t t
10863 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10864 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10865 s
&@INSTALL@
&$ac_INSTALL&;t t
10866 $ac_datarootdir_hack
10868 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10869 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10871 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10872 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10873 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10874 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10876 which seems to be undefined. Please make sure it is defined" >&5
10877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10878 which seems to be undefined. Please make sure it is defined" >&2;}
10880 rm -f "$ac_tmp/stdin"
10882 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10883 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10885 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10891 if test x"$ac_file" != x-; then
10893 $as_echo "/* $configure_input */" \
10894 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10895 } >"$ac_tmp/config.h" \
10896 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10897 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10902 mv "$ac_tmp/config.h" "$ac_file" \
10903 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10906 $as_echo "/* $configure_input */" \
10907 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10908 || as_fn_error $? "could not create -" "$LINENO" 5
10912 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10913 $as_echo "$as_me: executing $ac_file commands" >&6;}
10918 case $ac_file$ac_mode in
10919 "tools/genssl_chmod":C) chmod 755 tools/genssl ;;
10927 ac_clean_files=$ac_clean_files_save
10929 test $ac_write_fail = 0 ||
10930 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10933 # configure is writing to config.log, and then calls config.status.
10934 # config.status does its own redirection, appending to config.log.
10935 # Unfortunately, on DOS this fails, as config.log is still kept open
10936 # by configure, so config.status won't be able to
write to it
; its
10937 # output is simply discarded. So we exec the FD to /dev/null,
10938 # effectively closing config.log, so it can be properly (re)opened and
10939 # appended to by config.status. When coming back to configure, we
10940 # need to make the FD available again.
10941 if test "$no_create" != yes; then
10943 ac_config_status_args
=
10944 test "$silent" = yes &&
10945 ac_config_status_args
="$ac_config_status_args --quiet"
10947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10950 # would make configure fail if this is the last instruction.
10951 $ac_cs_success || as_fn_exit
1
10955 # CONFIG_SUBDIRS section.
10957 if test "$no_recursion" != yes; then
10959 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10960 # so they do not pile up.
10961 ac_sub_configure_args
=
10963 eval "set x $ac_configure_args"
10967 if test -n "$ac_prev"; then
10972 -cache-file | --cache-file | --cache-fil | --cache-fi \
10973 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10974 ac_prev
=cache_file
;;
10975 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10976 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10979 --config-cache | -C)
10981 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10983 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10985 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10987 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10989 --disable-option-checking)
10993 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10995 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
10999 # Always prepend --prefix to ensure using the same prefix
11000 # in subdir configurations.
11001 ac_arg
="--prefix=$prefix"
11003 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11005 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
11008 if test "$silent" = yes; then
11009 ac_sub_configure_args
="--silent $ac_sub_configure_args"
11012 # Always prepend --disable-option-checking to silence warnings, since
11013 # different subdirs can have different --enable and --with options.
11014 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
11017 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
11019 # Do not complain, so a configure script can configure whichever
11020 # parts of a large source tree are present.
11021 test -d "$srcdir/$ac_dir" || continue
11023 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11024 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11025 $as_echo "$ac_msg" >&6
11026 as_dir
="$ac_dir"; as_fn_mkdir_p
11030 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11032 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11033 # A ".." for each directory in $ac_dir_suffix.
11034 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11035 case $ac_top_builddir_sub in
11036 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11037 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11040 ac_abs_top_builddir
=$ac_pwd
11041 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11042 # for backward compatibility:
11043 ac_top_builddir
=$ac_top_build_prefix
11046 .
) # We are building in place.
11048 ac_top_srcdir
=$ac_top_builddir_sub
11049 ac_abs_top_srcdir
=$ac_pwd ;;
11050 [\\/]* | ?
:[\\/]* ) # Absolute name.
11051 ac_srcdir
=$srcdir$ac_dir_suffix;
11052 ac_top_srcdir
=$srcdir
11053 ac_abs_top_srcdir
=$srcdir ;;
11054 *) # Relative name.
11055 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11056 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11057 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11059 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11064 # Check for guested configure; otherwise get Cygnus style configure.
11065 if test -f "$ac_srcdir/configure.gnu"; then
11066 ac_sub_configure
=$ac_srcdir/configure.gnu
11067 elif test -f "$ac_srcdir/configure"; then
11068 ac_sub_configure
=$ac_srcdir/configure
11069 elif test -f "$ac_srcdir/configure.in"; then
11070 # This should be Cygnus configure.
11071 ac_sub_configure
=$ac_aux_dir/configure
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11074 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11078 # The recursion is here.
11079 if test -n "$ac_sub_configure"; then
11080 # Make the cache file name correct relative to the subdirectory.
11081 case $cache_file in
11082 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
11083 *) # Relative name.
11084 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11088 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11089 # The eval makes quoting arguments work.
11090 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11091 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11092 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11098 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11100 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11104 if test "$cf_openssl_version_ok" = yes; then
11110 if test "$shared_modules" = yes; then
11117 Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
11118 Install directory : $prefix
11122 Socket Engine : $SELECT_TYPE
11123 Small network : $small_net
11124 Block allocator : $balloc
11126 Nickname length : $NICKLEN
11127 Topic length : $TOPICLEN
11129 Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.