2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for charybdis 3.4.0-dev.
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
250 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE
= GREP_OPTIONS
=
254 unset CLICOLOR_FORCE GREP_OPTIONS
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
261 # Portably unset VAR.
264 { eval $1=; unset $1;}
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 # Create "$as_dir" as a directory, including parents if necessary.
293 -*) as_dir
=.
/$as_dir;;
295 test -d "$as_dir" || eval $as_mkdir_p || {
299 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 as_dirs
="'$as_qdir' $as_dirs"
303 as_dir
=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 test -d "$as_dir" && break
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
340 eval 'as_fn_append ()
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
364 as_val
=`expr "$@" || test $? -eq 1`
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
376 as_status
=$1; test $as_status -eq 0 && as_status
=1
378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit
$as_status
385 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
392 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
404 as_me
=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 # Avoid depending upon Character Ranges.
424 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits
='0123456789'
428 as_cr_alnum
=$as_cr_Letters$as_cr_digits
431 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
432 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
462 ECHO_C
= ECHO_N
= ECHO_T
=
463 case `echo -n x` in #(((((
465 case `echo 'xy\c'` in
466 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
475 rm -f conf$$ conf$$.exe conf$$.
file
476 if test -d conf$$.dir
; then
477 rm -f conf$$.dir
/conf$$.
file
480 mkdir conf$$.dir
2>/dev
/null
482 if (echo >conf$$.
file) 2>/dev
/null
; then
483 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
491 elif ln conf$$.
file conf$$
2>/dev
/null
; then
499 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
500 rmdir conf$$.dir
2>/dev
/null
502 if mkdir -p .
2>/dev
/null
; then
503 as_mkdir_p
='mkdir -p "$as_dir"'
505 test -d .
/-p && rmdir .
/-p
509 if test -x / >/dev
/null
2>&1; then
512 if ls -dL / >/dev
/null
2>&1; then
519 if test -d "$1"; then
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
530 as_executable_p
=$as_test_x
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 test -n "$DJDIR" || exec 7<&0 </dev
/null
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
560 PACKAGE_NAME
='charybdis'
561 PACKAGE_TARNAME
='charybdis'
562 PACKAGE_VERSION
='3.4.0-dev'
563 PACKAGE_STRING
='charybdis 3.4.0-dev'
567 ac_default_prefix
=$HOME/ircd
568 # Factoring default headers for most tests.
569 ac_includes_default
="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
604 enable_option_checking
=no
605 ac_subst_vars
='LTLIBOBJS
688 program_transform_name
701 enable_option_checking
726 ac_precious_vars
='build_alias
737 ac_subdirs_all
='libratbox'
739 # Initialize some variables set by options.
741 ac_init_version
=false
742 ac_unrecognized_opts
=
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name
=s
,x
,x
,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir
='${exec_prefix}/bin'
768 sbindir
='${exec_prefix}/sbin'
769 libexecdir
='${exec_prefix}/libexec'
770 datarootdir
='${prefix}/share'
771 datadir
='${datarootdir}'
772 sysconfdir
='${prefix}/etc'
773 sharedstatedir
='${prefix}/com'
774 localstatedir
='${prefix}/var'
775 includedir
='${prefix}/include'
776 oldincludedir
='/usr/include'
777 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
778 infodir
='${datarootdir}/info'
783 libdir
='${exec_prefix}/lib'
784 localedir
='${datarootdir}/locale'
785 mandir
='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\
$ac_option
799 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
815 -build | --build | --buil | --bui | --bu)
816 ac_prev
=build_alias
;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias
=$ac_optarg ;;
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev
=cache_file
;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file
=$ac_optarg ;;
828 cache_file
=config.cache
;;
830 -datadir | --datadir | --datadi | --datad)
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir
=$ac_optarg ;;
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev
=datarootdir
;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir
=$ac_optarg ;;
842 -disable-* | --disable-*)
843 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
846 as_fn_error $?
"invalid feature name: $ac_useropt"
847 ac_useropt_orig
=$ac_useropt
848 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849 case $ac_user_opts in
853 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854 ac_unrecognized_sep
=', ';;
856 eval enable_
$ac_useropt=no
;;
858 -docdir | --docdir | --docdi | --doc | --do)
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 -enable-* | --enable-*)
869 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names.
871 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
872 as_fn_error $?
"invalid feature name: $ac_useropt"
873 ac_useropt_orig
=$ac_useropt
874 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875 case $ac_user_opts in
879 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880 ac_unrecognized_sep
=', ';;
882 eval enable_
$ac_useropt=\
$ac_optarg ;;
884 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886 | --exec | --exe | --ex)
887 ac_prev
=exec_prefix
;;
888 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890 | --exec=* | --exe=* | --ex=*)
891 exec_prefix
=$ac_optarg ;;
893 -gas | --gas | --ga | --g)
894 # Obsolete; use --with-gas.
897 -help | --help | --hel | --he | -h)
899 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
900 ac_init_help
=recursive
;;
901 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
902 ac_init_help
=short
;;
904 -host | --host | --hos | --ho)
905 ac_prev
=host_alias
;;
906 -host=* | --host=* | --hos=* | --ho=*)
907 host_alias
=$ac_optarg ;;
909 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913 htmldir
=$ac_optarg ;;
915 -includedir | --includedir | --includedi | --included | --include \
916 | --includ | --inclu | --incl | --inc)
917 ac_prev
=includedir
;;
918 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919 | --includ=* | --inclu=* | --incl=* | --inc=*)
920 includedir
=$ac_optarg ;;
922 -infodir | --infodir | --infodi | --infod | --info | --inf)
924 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925 infodir
=$ac_optarg ;;
927 -libdir | --libdir | --libdi | --libd)
929 -libdir=* | --libdir=* | --libdi=* | --libd=*)
932 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933 | --libexe | --libex | --libe)
934 ac_prev
=libexecdir
;;
935 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936 | --libexe=* | --libex=* | --libe=*)
937 libexecdir
=$ac_optarg ;;
939 -localedir | --localedir | --localedi | --localed | --locale)
941 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942 localedir
=$ac_optarg ;;
944 -localstatedir | --localstatedir | --localstatedi | --localstated \
945 | --localstate | --localstat | --localsta | --localst | --locals)
946 ac_prev
=localstatedir
;;
947 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949 localstatedir
=$ac_optarg ;;
951 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 # Obsolete; use --without-fp.
960 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961 | --no-cr | --no-c | -n)
964 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
968 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970 | --oldin | --oldi | --old | --ol | --o)
971 ac_prev
=oldincludedir
;;
972 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975 oldincludedir
=$ac_optarg ;;
977 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
982 -program-prefix | --program-prefix | --program-prefi | --program-pref \
983 | --program-pre | --program-pr | --program-p)
984 ac_prev
=program_prefix
;;
985 -program-prefix=* | --program-prefix=* | --program-prefi=* \
986 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987 program_prefix
=$ac_optarg ;;
989 -program-suffix | --program-suffix | --program-suffi | --program-suff \
990 | --program-suf | --program-su | --program-s)
991 ac_prev
=program_suffix
;;
992 -program-suffix=* | --program-suffix=* | --program-suffi=* \
993 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994 program_suffix
=$ac_optarg ;;
996 -program-transform-name | --program-transform-name \
997 | --program-transform-nam | --program-transform-na \
998 | --program-transform-n | --program-transform- \
999 | --program-transform | --program-transfor \
1000 | --program-transfo | --program-transf \
1001 | --program-trans | --program-tran \
1002 | --progr-tra | --program-tr | --program-t)
1003 ac_prev
=program_transform_name
;;
1004 -program-transform-name=* | --program-transform-name=* \
1005 | --program-transform-nam=* | --program-transform-na=* \
1006 | --program-transform-n=* | --program-transform-=* \
1007 | --program-transform=* | --program-transfor=* \
1008 | --program-transfo=* | --program-transf=* \
1009 | --program-trans=* | --program-tran=* \
1010 | --progr-tra=* | --program-tr=* | --program-t=*)
1011 program_transform_name
=$ac_optarg ;;
1013 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016 pdfdir
=$ac_optarg ;;
1018 -psdir | --psdir | --psdi | --psd | --ps)
1020 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1023 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024 | -silent | --silent | --silen | --sile | --sil)
1027 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1029 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1031 sbindir
=$ac_optarg ;;
1033 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035 | --sharedst | --shareds | --shared | --share | --shar \
1037 ac_prev
=sharedstatedir
;;
1038 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1042 sharedstatedir
=$ac_optarg ;;
1044 -site | --site | --sit)
1046 -site=* | --site=* | --sit=*)
1049 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1051 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052 srcdir
=$ac_optarg ;;
1054 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055 | --syscon | --sysco | --sysc | --sys | --sy)
1056 ac_prev
=sysconfdir
;;
1057 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059 sysconfdir
=$ac_optarg ;;
1061 -target | --target | --targe | --targ | --tar | --ta | --t)
1062 ac_prev
=target_alias
;;
1063 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064 target_alias
=$ac_optarg ;;
1066 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1069 -version | --version | --versio | --versi | --vers | -V)
1070 ac_init_version
=: ;;
1073 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1076 as_fn_error $?
"invalid package name: $ac_useropt"
1077 ac_useropt_orig
=$ac_useropt
1078 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079 case $ac_user_opts in
1083 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084 ac_unrecognized_sep
=', ';;
1086 eval with_
$ac_useropt=\
$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1092 as_fn_error $?
"invalid package name: $ac_useropt"
1093 ac_useropt_orig
=$ac_useropt
1094 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1099 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100 ac_unrecognized_sep
=', ';;
1102 eval with_
$ac_useropt=no
;;
1105 # Obsolete; use --with-x.
1108 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109 | --x-incl | --x-inc | --x-in | --x-i)
1110 ac_prev
=x_includes
;;
1111 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113 x_includes
=$ac_optarg ;;
1115 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117 ac_prev
=x_libraries
;;
1118 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120 x_libraries
=$ac_optarg ;;
1122 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1123 Try \`$0 --help' for more information"
1127 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1128 # Reject names that are not valid shell variable names.
1129 case $ac_envvar in #(
1130 '' | [0-9]* | *[!_$as_cr_alnum]* )
1131 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1133 eval $ac_envvar=\
$ac_optarg
1134 export $ac_envvar ;;
1137 # FIXME: should be removed in autoconf 3.0.
1138 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1140 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1147 if test -n "$ac_prev"; then
1148 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1149 as_fn_error $?
"missing argument to $ac_option"
1152 if test -n "$ac_unrecognized_opts"; then
1153 case $enable_option_checking in
1155 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1156 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1160 # Check all directory arguments for consistency.
1161 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162 datadir sysconfdir sharedstatedir localstatedir includedir \
1163 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164 libdir localedir mandir
1166 eval ac_val
=\$
$ac_var
1167 # Remove trailing slashes.
1170 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171 eval $ac_var=\
$ac_val;;
1173 # Be sure to have absolute directory names.
1175 [\\/$
]* | ?
:[\\/]* ) continue;;
1176 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1178 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1181 # There might be people who depend on the old broken behavior: `$host'
1182 # used to hold the argument of --host etc.
1183 # FIXME: To remove some day.
1186 target
=$target_alias
1188 # FIXME: To remove some day.
1189 if test "x$host_alias" != x
; then
1190 if test "x$build_alias" = x
; then
1191 cross_compiling
=maybe
1192 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1193 If a cross compiler is detected then cross compile mode will be used" >&2
1194 elif test "x$build_alias" != "x$host_alias"; then
1200 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1202 test "$silent" = yes && exec 6>/dev
/null
1205 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1206 ac_ls_di
=`ls -di .` &&
1207 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1208 as_fn_error $?
"working directory cannot be determined"
1209 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210 as_fn_error $?
"pwd does not report name of working directory"
1213 # Find the source files, if location was not specified.
1214 if test -z "$srcdir"; then
1215 ac_srcdir_defaulted
=yes
1216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir
=`$as_dirname -- "$as_myself" ||
1218 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219 X"$as_myself" : 'X\(//\)[^/]' \| \
1220 X"$as_myself" : 'X\(//\)$' \| \
1221 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222 $as_echo X"$as_myself" |
1223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1241 if test ! -r "$srcdir/$ac_unique_file"; then
1245 ac_srcdir_defaulted
=no
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1249 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1251 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1253 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1255 # When building in place, set srcdir=.
1256 if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 # Remove unnecessary trailing slashes from srcdir.
1260 # Double slashes in file names in object file debugging info
1261 # mess up M-x gdb in Emacs.
1263 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265 for ac_var
in $ac_precious_vars; do
1266 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1267 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1268 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1269 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1273 # Report the --help message.
1275 if test "$ac_init_help" = "long"; then
1276 # Omit some internal or obsolete options to make the list less imposing.
1277 # This message is too long to be a string in the A/UX 3.1 sh.
1279 \`configure' configures charybdis 3.4.0-dev to adapt to many kinds of systems.
1281 Usage: $0 [OPTION]... [VAR=VALUE]...
1283 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284 VAR=VALUE. See below for descriptions of some of the useful variables.
1286 Defaults for the options are specified in brackets.
1289 -h, --help display this help and exit
1290 --help=short display options specific to this package
1291 --help=recursive display the short help of all the included packages
1292 -V, --version display version information and exit
1293 -q, --quiet, --silent do not print \`checking ...' messages
1294 --cache-file=FILE cache test results in FILE [disabled]
1295 -C, --config-cache alias for \`--cache-file=config.cache'
1296 -n, --no-create do not create output files
1297 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299 Installation directories:
1300 --prefix=PREFIX install architecture-independent files in PREFIX
1301 [$ac_default_prefix]
1302 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1305 By default, \`make install' will install all the files in
1306 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1307 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308 for instance \`--prefix=\$HOME'.
1310 For better control, use the options below.
1312 Fine tuning of the installation directories:
1313 --bindir=DIR user executables [EPREFIX/bin]
1314 --sbindir=DIR system admin executables [EPREFIX/sbin]
1315 --libexecdir=DIR program executables [EPREFIX/libexec]
1316 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1317 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1318 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1319 --libdir=DIR object code libraries [EPREFIX/lib]
1320 --includedir=DIR C header files [PREFIX/include]
1321 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1322 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1323 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1324 --infodir=DIR info documentation [DATAROOTDIR/info]
1325 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1326 --mandir=DIR man documentation [DATAROOTDIR/man]
1327 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1328 --htmldir=DIR html documentation [DOCDIR]
1329 --dvidir=DIR dvi documentation [DOCDIR]
1330 --pdfdir=DIR pdf documentation [DOCDIR]
1331 --psdir=DIR ps documentation [DOCDIR]
1338 if test -n "$ac_init_help"; then
1339 case $ac_init_help in
1340 short
| recursive
) echo "Configuration of charybdis 3.4.0-dev:";;
1345 --disable-option-checking ignore unrecognized
--enable/--with options
1346 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1347 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1348 --enable-ipv6 Enable IPv6 support
1349 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1350 --disable-openssl Disable OpenSSL support.
1351 --disable-zlib Disable ziplinks support
1352 --enable-ports Force solaris I
/O ports subsystem usage.
1353 --enable-poll Force poll
() usage.
1354 --enable-select Force
select() usage.
1355 --enable-kqueue Force kqueue
() usage.
1356 --enable-epoll Force sys_epoll usage
(Linux only
).
1357 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1358 hard
(aborts the daemon
)
1359 --enable-iodebug Enable IO Debugging hooks
1360 --enable-profile Enable profiling
1361 --disable-balloc Disable the block allocator.
1362 --enable-small-net Enable small network support.
1363 --enable-warnings Enable all sorts of warnings
for debugging.
1366 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1367 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1368 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1369 --with-confdir=DIR Directory to
install config files.
1370 --with-logdir=DIR Directory where to
write logfiles.
1371 --with-helpdir=DIR Directory to
install help files.
1372 --with-moduledir=DIR Directory to
install modules.
1373 --with-custom-branding=NAME
1374 Custom branding name.
1375 --with-custom-version=NAME
1376 Custom version branding.
1377 --with-nicklen=LENGTH Set the upper
-bound nick length to LENGTH
(default
1379 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1382 Some influential environment variables
:
1383 CC C compiler
command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1386 nonstandard directory
<lib dir
>
1387 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1388 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1389 you have headers
in a nonstandard directory
<include dir
>
1391 YACC The
`Yet Another Compiler Compiler' implementation to use.
1392 Defaults to the first program found out of: `bison
-y', `byacc',
1394 YFLAGS The list of arguments that will be passed by default to $YACC.
1395 This script will default YFLAGS to the empty string to avoid a
1396 default value of `-d' given by some make applications.
1398 Use these variables to override the choices made by `configure' or to
help
1399 it to
find libraries and programs with nonstandard names
/locations.
1401 Report bugs to the package provider.
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1409 test -d "$ac_dir" ||
1410 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1415 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1417 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1418 # A ".." for each directory in $ac_dir_suffix.
1419 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1420 case $ac_top_builddir_sub in
1421 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1422 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1425 ac_abs_top_builddir
=$ac_pwd
1426 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1427 # for backward compatibility:
1428 ac_top_builddir
=$ac_top_build_prefix
1431 .
) # We are building in place.
1433 ac_top_srcdir
=$ac_top_builddir_sub
1434 ac_abs_top_srcdir
=$ac_pwd ;;
1435 [\\/]* | ?
:[\\/]* ) # Absolute name.
1436 ac_srcdir
=$srcdir$ac_dir_suffix;
1437 ac_top_srcdir
=$srcdir
1438 ac_abs_top_srcdir
=$srcdir ;;
1440 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1441 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1442 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1444 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1446 cd "$ac_dir" || { ac_status
=$?
; continue; }
1447 # Check for guested configure.
1448 if test -f "$ac_srcdir/configure.gnu"; then
1450 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1451 elif test -f "$ac_srcdir/configure"; then
1453 $SHELL "$ac_srcdir/configure" --help=recursive
1455 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1457 cd "$ac_pwd" || { ac_status
=$?
; break; }
1461 test -n "$ac_init_help" && exit $ac_status
1462 if $ac_init_version; then
1464 charybdis configure
3.4.0-dev
1465 generated by GNU Autoconf
2.68
1467 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1468 This configure
script is free software
; the Free Software Foundation
1469 gives unlimited permission to copy
, distribute and modify it.
1471 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile
()
1485 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1486 rm -f conftest.
$ac_objext
1487 if { { ac_try
="$ac_compile"
1489 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514 as_fn_set_status $ac_retval
1516 } # ac_fn_c_try_compile
1518 # ac_fn_c_try_cpp LINENO
1519 # ----------------------
1520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_cpp conftest.$ac_ext"
1526 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1527 *) ac_try_echo
=$ac_try;;
1529 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1533 if test -s conftest.err
; then
1534 grep -v '^ *+' conftest.err
>conftest.er1
1535 cat conftest.er1
>&5
1536 mv -f conftest.er1 conftest.err
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } > conftest.i
&& {
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.
$ac_ext >&5
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status
$ac_retval
1555 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558 # the include files in INCLUDES and setting the cache variable VAR
1560 ac_fn_c_check_header_mongrel
()
1562 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1563 if eval \
${$3+:} false
; then :
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if eval \
${$3+:} false
; then :
1567 $as_echo_n "(cached) " >&6
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1573 # Is the header compilable?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575 $as_echo_n "checking $2 usability... " >&6; }
1576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1581 if ac_fn_c_try_compile
"$LINENO"; then :
1582 ac_header_compiler
=yes
1584 ac_header_compiler
=no
1586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588 $as_echo "$ac_header_compiler" >&6; }
1590 # Is the header present?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592 $as_echo_n "checking $2 presence... " >&6; }
1593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1597 if ac_fn_c_try_cpp
"$LINENO"; then :
1598 ac_header_preproc
=yes
1600 ac_header_preproc
=no
1602 rm -f conftest.err conftest.i conftest.
$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604 $as_echo "$ac_header_preproc" >&6; }
1606 # So? What about this header?
1607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \
${$3+:} false
; then :
1630 $as_echo_n "(cached) " >&6
1632 eval "$3=\$ac_header_compiler"
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640 } # ac_fn_c_check_header_mongrel
1642 # ac_fn_c_try_run LINENO
1643 # ----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1645 # that executables *can* be run.
1648 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1649 if { { ac_try
="$ac_link"
1651 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>&5
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1660 { { case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1662 *) ac_try_echo
=$ac_try;;
1664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_try") 2>&5
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; }; }; then :
1672 $as_echo "$as_me: program exited with status $ac_status" >&5
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.
$ac_ext >&5
1676 ac_retval
=$ac_status
1678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1680 as_fn_set_status
$ac_retval
1684 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1685 # -------------------------------------------------------
1686 # Tests whether HEADER exists and can be compiled using the include files in
1687 # INCLUDES, setting the cache variable VAR accordingly.
1688 ac_fn_c_check_header_compile
()
1690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692 $as_echo_n "checking for $2... " >&6; }
1693 if eval \
${$3+:} false
; then :
1694 $as_echo_n "(cached) " >&6
1696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1701 if ac_fn_c_try_compile
"$LINENO"; then :
1706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710 $as_echo "$ac_res" >&6; }
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 } # ac_fn_c_check_header_compile
1715 # ac_fn_c_try_link LINENO
1716 # -----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded.
1720 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1721 rm -f conftest.
$ac_objext conftest
$ac_exeext
1722 if { { ac_try
="$ac_link"
1724 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>conftest.err
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && {
1738 test -z "$ac_c_werror_flag" ||
1739 test ! -s conftest.err
1740 } && test -s conftest$ac_exeext && {
1741 test "$cross_compiling" = yes ||
1742 $as_test_x conftest$ac_exeext
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1751 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1752 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1753 # interfere with the next link command; also delete a directory that is
1754 # left behind by Apple's compiler. We do this before executing the actions.
1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1756 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757 as_fn_set_status $ac_retval
1759 } # ac_fn_c_try_link
1761 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1762 # -------------------------------------------
1763 # Tests whether TYPE exists after having included INCLUDES, setting cache
1764 # variable VAR accordingly.
1765 ac_fn_c_check_type ()
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1769 $as_echo_n "checking for $2... " >&6; }
1770 if eval \${$3+:} false; then :
1771 $as_echo_n "(cached) " >&6
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1786 if ac_fn_c_try_compile "$LINENO"; then :
1787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1788 /* end confdefs.h. */
1799 if ac_fn_c_try_compile "$LINENO"; then :
1804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 } # ac_fn_c_check_type
1815 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1816 # --------------------------------------------
1817 # Tries to find the compile-time value of EXPR in a program that includes
1818 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1820 ac_fn_c_compute_int ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if test "$cross_compiling" = yes; then
1824 # Depending upon the size, compute the lo and hi bounds.
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1831 static int test_array [1 - 2 * !(($2) >= 0)];
1838 if ac_fn_c_try_compile "$LINENO"; then :
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1847 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1854 if ac_fn_c_try_compile "$LINENO"; then :
1855 ac_hi=$ac_mid; break
1857 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1858 if test $ac_lo -le $ac_mid; then
1862 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1873 static int test_array [1 - 2 * !(($2) < 0)];
1880 if ac_fn_c_try_compile "$LINENO"; then :
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1889 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 ac_lo=$ac_mid; break
1899 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1900 if test $ac_mid -le $ac_hi; then
1904 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1914 # Binary search between lo and hi bounds.
1915 while test "x$ac_lo" != "x$ac_hi"; do
1916 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h. */
1923 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1930 if ac_fn_c_try_compile "$LINENO"; then :
1933 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1945 static long int longval () { return $2; }
1946 static unsigned long int ulongval () { return $2; }
1953 FILE *f = fopen ("conftest.val", "w");
1958 long int i = longval ();
1961 fprintf (f, "%ld", i);
1965 unsigned long int i = ulongval ();
1968 fprintf (f, "%lu", i);
1970 /* Do not output a trailing newline, as this causes \r\n confusion
1971 on some platforms. */
1972 return ferror (f) || fclose (f) != 0;
1978 if ac_fn_c_try_run "$LINENO"; then :
1979 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1984 conftest.$ac_objext conftest.beam conftest.$ac_ext
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1991 } # ac_fn_c_compute_int
1993 # ac_fn_c_check_func LINENO FUNC VAR
1994 # ----------------------------------
1995 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1996 ac_fn_c_check_func ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2008 #define $2 innocuous_$2
2010 /* System header to define __stub macros and hopefully few prototypes,
2011 which can conflict with char $2 (); below.
2012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2013 <limits.h> exists even on freestanding compilers. */
2016 # include <limits.h>
2018 # include <assert.h>
2023 /* Override any GCC internal prototype to avoid an error.
2024 Use char because int might match the return type of a GCC
2025 builtin and then its argument prototype would still apply. */
2030 /* The GNU C library defines this for functions which it implements
2031 to always fail with ENOSYS. Some functions are actually named
2032 something starting with __ and the normal name is an alias. */
2033 #if defined __stub_$2 || defined __stub___$2
2045 if ac_fn_c_try_link "$LINENO"; then :
2050 rm -f core conftest.err conftest.$ac_objext \
2051 conftest$ac_exeext conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 } # ac_fn_c_check_func
2059 cat >config.log <<_ACEOF
2060 This file contains any messages produced by compilers while
2061 running configure, to aid debugging if configure makes a mistake.
2063 It was created by charybdis $as_me 3.4.0-dev, which was
2064 generated by GNU Autoconf 2.68. Invocation command line was
2076 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2077 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2078 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2079 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2080 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2082 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2083 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2085 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2086 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2087 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2088 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2089 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2090 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2091 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099 test -z "$as_dir" && as_dir=.
2100 $as_echo "PATH: $as_dir"
2116 # Keep a trace of the command line.
2117 # Strip out --no-create and --no-recursion so they do not pile up.
2118 # Strip out --silent because we don't want to record it for future runs.
2119 # Also quote any args containing shell meta-characters.
2120 # Make two passes to allow for proper duplicate-argument suppression.
2124 ac_must_keep_next=false
2130 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2132 | -silent | --silent | --silen | --sile | --sil)
2135 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2140 as_fn_append ac_configure_args1 " '$ac_arg'"
2141 if test $ac_must_keep_next = true; then
2142 ac_must_keep_next=false # Got value, back to normal.
2145 *=* | --config-cache | -C | -disable-* | --disable-* \
2146 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2147 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2148 | -with-* | --with-* | -without-* | --without-* | --x)
2149 case "$ac_configure_args0 " in
2150 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 -* ) ac_must_keep_next=true ;;
2156 as_fn_append ac_configure_args " '$ac_arg'"
2161 { ac_configure_args0=; unset ac_configure_args0;}
2162 { ac_configure_args1=; unset ac_configure_args1;}
2164 # When interrupted or exit'd, cleanup temporary files, and complete
2165 # config.log. We remove comments because anyway the quotes in there
2166 # would cause problems or look ugly.
2167 # WARNING: Use '\'' to represent an apostrophe within the trap.
2168 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2169 trap 'exit_status=$?
2170 # Save into config.log some information that might help in debugging.
2174 $as_echo "## ---------------- ##
2175 ## Cache variables. ##
2176 ## ---------------- ##"
2178 # The following way of writing the cache mishandles newlines in values,
2180 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2181 eval ac_val=\$$ac_var
2185 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2186 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 _ | IFS | as_nl) ;; #(
2190 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2191 *) { eval $ac_var=; unset $ac_var;} ;;
2196 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2197 *${as_nl}ac_space=\ *)
2199 "s/'\''/'\''\\\\'\'''\''/g;
2200 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2210 $as_echo "## ----------------- ##
2211 ## Output variables. ##
2212 ## ----------------- ##"
2214 for ac_var in $ac_subst_vars
2216 eval ac_val=\$$ac_var
2218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2220 $as_echo "$ac_var='\''$ac_val'\''"
2224 if test -n "$ac_subst_files"; then
2225 $as_echo "## ------------------- ##
2226 ## File substitutions. ##
2227 ## ------------------- ##"
2229 for ac_var in $ac_subst_files
2231 eval ac_val=\$$ac_var
2233 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 $as_echo "$ac_var='\''$ac_val'\''"
2240 if test -s confdefs.h; then
2241 $as_echo "## ----------- ##
2248 test "$ac_signal" != 0 &&
2249 $as_echo "$as_me: caught signal $ac_signal"
2250 $as_echo "$as_me: exit $exit_status"
2252 rm -f core *.core core.conftest.* &&
2253 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 for ac_signal in 1 2 13 15; do
2257 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2261 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2262 rm -f -r conftest* confdefs.h
2264 $as_echo "/* confdefs.h */" > confdefs.h
2266 # Predefined preprocessor variables.
2268 cat >>confdefs.h <<_ACEOF
2269 #define PACKAGE_NAME "$PACKAGE_NAME"
2272 cat >>confdefs.h <<_ACEOF
2273 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 cat >>confdefs.h <<_ACEOF
2277 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 cat >>confdefs.h <<_ACEOF
2281 #define PACKAGE_STRING "$PACKAGE_STRING"
2284 cat >>confdefs.h <<_ACEOF
2285 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 cat >>confdefs.h <<_ACEOF
2289 #define PACKAGE_URL "$PACKAGE_URL"
2293 # Let the site file select an alternate cache file if it wants to.
2294 # Prefer an explicitly selected file to automatically selected ones.
2297 if test -n "$CONFIG_SITE"; then
2298 # We do not want a PATH search for config.site.
2299 case $CONFIG_SITE in #((
2300 -*) ac_site_file1=./$CONFIG_SITE;;
2301 */*) ac_site_file1=$CONFIG_SITE;;
2302 *) ac_site_file1=./$CONFIG_SITE;;
2304 elif test "x$prefix" != xNONE; then
2305 ac_site_file1=$prefix/share/config.site
2306 ac_site_file2=$prefix/etc/config.site
2308 ac_site_file1=$ac_default_prefix/share/config.site
2309 ac_site_file2=$ac_default_prefix/etc/config.site
2311 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2313 test "x$ac_site_file" = xNONE && continue
2314 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2316 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2317 sed 's/^/| /' "$ac_site_file" >&5
2319 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 as_fn_error $? "failed to load site
script $ac_site_file
2322 See \
`config.log' for more details" "$LINENO" 5; }
2326 if test -r "$cache_file"; then
2327 # Some versions of bash will fail to source /dev/null (special files
2328 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2329 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2331 $as_echo "$as_me: loading cache $cache_file" >&6;}
2333 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2334 *) . "./$cache_file";;
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2339 $as_echo "$as_me: creating cache $cache_file" >&6;}
2343 # Check that the precious variables saved in the cache have kept the same
2345 ac_cache_corrupted=false
2346 for ac_var in $ac_precious_vars; do
2347 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2348 eval ac_new_set=\$ac_env_${ac_var}_set
2349 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2350 eval ac_new_val=\$ac_env_${ac_var}_value
2351 case $ac_old_set,$ac_new_set in
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2354 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2355 ac_cache_corrupted=: ;;
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2358 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2359 ac_cache_corrupted=: ;;
2362 if test "x$ac_old_val" != "x$ac_new_val"; then
2363 # differences in whitespace do not lead to failure.
2364 ac_old_val_w=`echo x
$ac_old_val`
2365 ac_new_val_w=`echo x
$ac_new_val`
2366 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2368 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2369 ac_cache_corrupted=:
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2372 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2373 eval $ac_var=\$ac_old_val
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2376 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2378 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 # Pass precious variables to config.status.
2382 if test "$ac_new_set" = set; then
2384 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2385 *) ac_arg=$ac_var=$ac_new_val ;;
2387 case " $ac_configure_args " in
2388 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2389 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2393 if $ac_cache_corrupted; then
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2395 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2397 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2398 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2400 ## -------------------- ##
2401 ## Main body of script. ##
2402 ## -------------------- ##
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2412 ac_config_headers="$ac_config_headers include/setup.h"
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if ${ac_cv_prog_CC+:} false; then :
2428 $as_echo_n "(cached) " >&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2440 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2451 if test -n "$CC"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2453 $as_echo "$CC" >&6; }
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456 $as_echo "no" >&6; }
2461 if test -z "$ac_cv_prog_CC"; then
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2468 $as_echo_n "(cached) " >&6
2470 if test -n "$ac_ct_CC"; then
2471 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480 ac_cv_prog_ac_ct_CC="gcc"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2490 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2491 if test -n "$ac_ct_CC"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2493 $as_echo "$ac_ct_CC" >&6; }
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2499 if test "x$ac_ct_CC" = x; then
2502 case $cross_compiling:$ac_tool_warned in
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2506 ac_tool_warned=yes ;;
2514 if test -z "$CC"; then
2515 if test -n "$ac_tool_prefix"; then
2516 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2517 set dummy ${ac_tool_prefix}cc; ac_word=$2
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2519 $as_echo_n "checking for $ac_word... " >&6; }
2520 if ${ac_cv_prog_CC+:} false; then :
2521 $as_echo_n "(cached) " >&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_CC="${ac_tool_prefix}cc"
2534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test -n "$CC"; then
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2546 $as_echo "$CC" >&6; }
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2549 $as_echo "no" >&6; }
2555 if test -z "$CC"; then
2556 # Extract the first word of "cc", so it can be a program name with args.
2557 set dummy cc; ac_word=$2
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559 $as_echo_n "checking for $ac_word... " >&6; }
2560 if ${ac_cv_prog_CC+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2575 ac_prog_rejected=yes
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test $ac_prog_rejected = yes; then
2587 # We found a bogon in the path, so make sure we never use it.
2588 set dummy $ac_cv_prog_CC
2590 if test $# != 0; then
2591 # We chose a different compiler from the bogus one.
2592 # However, it has the same basename, so the bogon will be chosen
2593 # first if we set CC to just the basename; use the full file name.
2595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2601 if test -n "$CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2603 $as_echo "$CC" >&6; }
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2611 if test -z "$CC"; then
2612 if test -n "$ac_tool_prefix"; then
2613 for ac_prog in cl.exe
2615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_CC+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 if test -n "$CC"; then
2623 ac_cv_prog_CC="$CC" # Let the user override the test.
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 test -z "$as_dir" && as_dir=.
2630 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643 if test -n "$CC"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2645 $as_echo "$CC" >&6; }
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2652 test -n "$CC" && break
2655 if test -z "$CC"; then
2657 for ac_prog in cl.exe
2659 # Extract the first word of "$ac_prog", so it can be a program name with args.
2660 set dummy $ac_prog; ac_word=$2
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 $as_echo_n "checking for $ac_word... " >&6; }
2663 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_ac_ct_CC="$ac_prog"
2677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2689 $as_echo "$ac_ct_CC" >&6; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 $as_echo "no" >&6; }
2696 test -n "$ac_ct_CC" && break
2699 if test "x$ac_ct_CC" = x; then
2702 case $cross_compiling:$ac_tool_warned in
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2706 ac_tool_warned=yes ;;
2715 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2717 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2718 See \
`config.log' for more details" "$LINENO" 5; }
2720 # Provide some information about the compiler.
2721 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2724 for ac_option in --version -v -V -qversion; do
2725 { { ac_try="$ac_compiler $ac_option >&5"
2727 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2728 *) ac_try_echo
=$ac_try;;
2730 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731 $as_echo "$ac_try_echo"; } >&5
2732 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2734 if test -s conftest.err
; then
2736 ... rest of stderr output deleted ...
2737 10q' conftest.err
>conftest.er1
2738 cat conftest.er1
>&5
2740 rm -f conftest.er1 conftest.err
2741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742 test $ac_status = 0; }
2745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2756 ac_clean_files_save
=$ac_clean_files
2757 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2758 # Try to create an executable without -o first, disregard a.out.
2759 # It will help us diagnose broken compilers, and finding out an intuition
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2762 $as_echo_n "checking whether the C compiler works... " >&6; }
2763 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2765 # The possible output files:
2766 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2769 for ac_file
in $ac_files
2772 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2773 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2778 if { { ac_try
="$ac_link_default"
2780 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2784 $as_echo "$ac_try_echo"; } >&5
2785 (eval "$ac_link_default") 2>&5
2787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2788 test $ac_status = 0; }; then :
2789 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2790 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2791 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2792 # so that the user can short-circuit this test for compilers unknown to
2794 for ac_file in $ac_files ''
2796 test -f "$ac_file" || continue
2798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2801 # We found the default executable, but exeext='' is most
2805 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2807 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2809 # We set ac_cv_exeext here because the later test for it is not
2810 # safe: cross compilers may not add the suffix if given an `-o'
2811 # argument, so we may need to know it at that point already.
2812 # Even if this section looks crufty: it has the advantage of
2819 test "$ac_cv_exeext" = no && ac_cv_exeext=
2824 if test -z "$ac_file"; then :
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826 $as_echo "no" >&6; }
2827 $as_echo "$as_me: failed program was:" >&5
2828 sed 's
/^
/| /' conftest.$ac_ext >&5
2830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2832 as_fn_error 77 "C compiler cannot create executables
2833 See \`config.log
' for more details" "$LINENO" 5; }
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2836 $as_echo "yes" >&6; }
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2839 $as_echo_n "checking for C compiler default output file name... " >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2841 $as_echo "$ac_file" >&6; }
2842 ac_exeext=$ac_cv_exeext
2844 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2845 ac_clean_files=$ac_clean_files_save
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2847 $as_echo_n "checking for suffix of executables... " >&6; }
2848 if { { ac_try="$ac_link"
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2854 $as_echo "$ac_try_echo"; } >&5
2855 (eval "$ac_link") 2>&5
2857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2858 test $ac_status = 0; }; then :
2859 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2860 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2861 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2863 for ac_file
in conftest.exe conftest conftest.
*; do
2864 test -f "$ac_file" || continue
2866 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2867 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details" "$LINENO" 5; }
2878 rm -f conftest conftest
$ac_cv_exeext
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2880 $as_echo "$ac_cv_exeext" >&6; }
2882 rm -f conftest.
$ac_ext
2883 EXEEXT
=$ac_cv_exeext
2885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2891 FILE *f = fopen ("conftest.out", "w");
2892 return ferror (f) || fclose (f) != 0;
2898 ac_clean_files
="$ac_clean_files conftest.out"
2899 # Check that the compiler produces executables we can run. If not, either
2900 # the compiler is broken, or we cross compile.
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2902 $as_echo_n "checking whether we are cross compiling... " >&6; }
2903 if test "$cross_compiling" != yes; then
2904 { { ac_try
="$ac_link"
2906 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_link") 2>&5
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }
2915 if { ac_try='./conftest$ac_cv_exeext'
2916 { { case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2918 *) ac_try_echo
=$ac_try;;
2920 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921 $as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_try") 2>&5
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; }; then
2928 if test "$cross_compiling" = maybe
; then
2931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2933 as_fn_error $?
"cannot run C compiled programs.
2934 If you meant to cross compile, use \`--host'.
2935 See \`config.log' for more details" "$LINENO" 5; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2940 $as_echo "$cross_compiling" >&6; }
2942 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2943 ac_clean_files
=$ac_clean_files_save
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2945 $as_echo_n "checking for suffix of object files... " >&6; }
2946 if ${ac_cv_objext+:} false
; then :
2947 $as_echo_n "(cached) " >&6
2949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2960 rm -f conftest.o conftest.obj
2961 if { { ac_try
="$ac_compile"
2963 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2967 $as_echo "$ac_try_echo"; } >&5
2968 (eval "$ac_compile") 2>&5
2970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2971 test $ac_status = 0; }; then :
2972 for ac_file in conftest.o conftest.obj conftest.*; do
2973 test -f "$ac_file" || continue;
2975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2981 $as_echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2987 See \
`config.log' for more details" "$LINENO" 5; }
2989 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2992 $as_echo "$ac_cv_objext" >&6; }
2993 OBJEXT=$ac_cv_objext
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2996 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2997 if ${ac_cv_c_compiler_gnu+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001 /* end confdefs.h. */
3014 if ac_fn_c_try_compile "$LINENO"; then :
3019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3024 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3025 if test $ac_compiler_gnu = yes; then
3030 ac_test_CFLAGS=${CFLAGS+set}
3031 ac_save_CFLAGS=$CFLAGS
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3033 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3034 if ${ac_cv_prog_cc_g+:} false; then :
3035 $as_echo_n "(cached) " >&6
3037 ac_save_c_werror_flag=$ac_c_werror_flag
3038 ac_c_werror_flag=yes
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3052 if ac_fn_c_try_compile "$LINENO"; then :
3056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3057 /* end confdefs.h. */
3067 if ac_fn_c_try_compile "$LINENO"; then :
3070 ac_c_werror_flag=$ac_save_c_werror_flag
3072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3073 /* end confdefs.h. */
3083 if ac_fn_c_try_compile "$LINENO"; then :
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3091 ac_c_werror_flag=$ac_save_c_werror_flag
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3094 $as_echo "$ac_cv_prog_cc_g" >&6; }
3095 if test "$ac_test_CFLAGS" = set; then
3096 CFLAGS=$ac_save_CFLAGS
3097 elif test $ac_cv_prog_cc_g = yes; then
3098 if test "$GCC" = yes; then
3104 if test "$GCC" = yes; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3111 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3112 if ${ac_cv_prog_cc_c89+:} false; then :
3113 $as_echo_n "(cached) " >&6
3115 ac_cv_prog_cc_c89=no
3117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118 /* end confdefs.h. */
3121 #include <sys/types.h>
3122 #include <sys/stat.h>
3123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3124 struct buf { int x; };
3125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3126 static char *e (p, i)
3132 static char *f (char * (*g) (char **, int), char **p, ...)
3137 s = g (p, va_arg (v,int));
3142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3143 function prototypes and stuff, but not '\xHH' hex character constants.
3144 These don't provoke an error unfortunately, instead are silently treated
3145 as 'x'. The following induces an error, until -std is added to get
3146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3147 array size at least. It's necessary to write '\x00'==0 to get something
3148 that's true only with -std. */
3149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3152 inside strings and character constants. */
3154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3156 int test (int i, double x);
3157 struct s1 {int (*f) (int a);};
3158 struct s2 {int (*f) (double a);};
3159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3173 CC="$ac_save_CC $ac_arg"
3174 if ac_fn_c_try_compile "$LINENO"; then :
3175 ac_cv_prog_cc_c89=$ac_arg
3177 rm -f core conftest.err conftest.$ac_objext
3178 test "x$ac_cv_prog_cc_c89" != "xno" && break
3180 rm -f conftest.$ac_ext
3185 case "x$ac_cv_prog_cc_c89" in
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3188 $as_echo "none needed" >&6; } ;;
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3191 $as_echo "unsupported" >&6; } ;;
3193 CC="$CC $ac_cv_prog_cc_c89"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3195 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3197 if test "x$ac_cv_prog_cc_c89" != xno; then :
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3215 # On Suns, sometimes $CPP names a directory.
3216 if test -n "$CPP" && test -d "$CPP"; then
3219 if test -z "$CPP"; then
3220 if ${ac_cv_prog_CPP+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 # Double quotes because CPP needs to be expanded
3224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3227 for ac_c_preproc_warn_flag in '' yes
3229 # Use a header file that comes with gcc, so configuring glibc
3230 # with a fresh cross-compiler works.
3231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3232 # <limits.h> exists even on freestanding compilers.
3233 # On the NeXT, cc -E runs the code through the compiler's parser,
3234 # not just through cpp. "Syntax error" is here to catch this case.
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3238 # include <limits.h>
3240 # include <assert.h>
3244 if ac_fn_c_try_cpp "$LINENO"; then :
3247 # Broken: fails on valid input.
3250 rm -f conftest.err conftest.i conftest.$ac_ext
3252 # OK, works on sane cases. Now check whether nonexistent headers
3253 # can be detected and how.
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3256 #include <ac_nonexistent.h>
3258 if ac_fn_c_try_cpp "$LINENO"; then :
3259 # Broken: success on invalid input.
3262 # Passes both tests.
3266 rm -f conftest.err conftest.i conftest.$ac_ext
3269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3270 rm -f conftest.i conftest.err conftest.
$ac_ext
3271 if $ac_preproc_ok; then :
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3284 $as_echo "$CPP" >&6; }
3286 for ac_c_preproc_warn_flag
in '' yes
3288 # Use a header file that comes with gcc, so configuring glibc
3289 # with a fresh cross-compiler works.
3290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3291 # <limits.h> exists even on freestanding compilers.
3292 # On the NeXT, cc -E runs the code through the compiler's parser,
3293 # not just through cpp. "Syntax error" is here to catch this case.
3294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3295 /* end confdefs.h. */
3297 # include <limits.h>
3299 # include <assert.h>
3303 if ac_fn_c_try_cpp
"$LINENO"; then :
3306 # Broken: fails on valid input.
3309 rm -f conftest.err conftest.i conftest.
$ac_ext
3311 # OK, works on sane cases. Now check whether nonexistent headers
3312 # can be detected and how.
3313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3315 #include <ac_nonexistent.h>
3317 if ac_fn_c_try_cpp
"$LINENO"; then :
3318 # Broken: success on invalid input.
3321 # Passes both tests.
3325 rm -f conftest.err conftest.i conftest.
$ac_ext
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.i conftest.err conftest.
$ac_ext
3330 if $ac_preproc_ok; then :
3333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3335 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3336 See \`config.log' for more details" "$LINENO" 5; }
3340 ac_cpp
='$CPP $CPPFLAGS'
3341 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3347 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3348 if ${ac_cv_path_GREP+:} false
; then :
3349 $as_echo_n "(cached) " >&6
3351 if test -z "$GREP"; then
3352 ac_path_GREP_found
=false
3353 # Loop through the user's path and test for each of PROGNAME-LIST
3354 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3358 test -z "$as_dir" && as_dir
=.
3359 for ac_prog
in grep ggrep
; do
3360 for ac_exec_ext
in '' $ac_executable_extensions; do
3361 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3363 # Check for GNU ac_path_GREP and select it if it is found.
3364 # Check for GNU $ac_path_GREP
3365 case `"$ac_path_GREP" --version 2>&1` in
3367 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3370 $as_echo_n 0123456789 >"conftest.in"
3373 cat "conftest.in" "conftest.in" >"conftest.tmp"
3374 mv "conftest.tmp" "conftest.in"
3375 cp "conftest.in" "conftest.nl"
3376 $as_echo 'GREP' >> "conftest.nl"
3377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3378 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3379 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3381 # Best one so far, save it but keep looking for a better one
3382 ac_cv_path_GREP
="$ac_path_GREP"
3383 ac_path_GREP_max
=$ac_count
3385 # 10*(2^10) chars as input seems more than enough
3386 test $ac_count -gt 10 && break
3388 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3391 $ac_path_GREP_found && break 3
3396 if test -z "$ac_cv_path_GREP"; then
3397 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3400 ac_cv_path_GREP
=$GREP
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3405 $as_echo "$ac_cv_path_GREP" >&6; }
3406 GREP
="$ac_cv_path_GREP"
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3410 $as_echo_n "checking for egrep... " >&6; }
3411 if ${ac_cv_path_EGREP+:} false
; then :
3412 $as_echo_n "(cached) " >&6
3414 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3415 then ac_cv_path_EGREP
="$GREP -E"
3417 if test -z "$EGREP"; then
3418 ac_path_EGREP_found
=false
3419 # Loop through the user's path and test for each of PROGNAME-LIST
3420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3421 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3424 test -z "$as_dir" && as_dir
=.
3425 for ac_prog
in egrep; do
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3428 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3429 # Check for GNU ac_path_EGREP and select it if it is found.
3430 # Check for GNU $ac_path_EGREP
3431 case `"$ac_path_EGREP" --version 2>&1` in
3433 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3436 $as_echo_n 0123456789 >"conftest.in"
3439 cat "conftest.in" "conftest.in" >"conftest.tmp"
3440 mv "conftest.tmp" "conftest.in"
3441 cp "conftest.in" "conftest.nl"
3442 $as_echo 'EGREP' >> "conftest.nl"
3443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3444 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3445 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3447 # Best one so far, save it but keep looking for a better one
3448 ac_cv_path_EGREP
="$ac_path_EGREP"
3449 ac_path_EGREP_max
=$ac_count
3451 # 10*(2^10) chars as input seems more than enough
3452 test $ac_count -gt 10 && break
3454 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3457 $ac_path_EGREP_found && break 3
3462 if test -z "$ac_cv_path_EGREP"; then
3463 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3466 ac_cv_path_EGREP
=$EGREP
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3472 $as_echo "$ac_cv_path_EGREP" >&6; }
3473 EGREP
="$ac_cv_path_EGREP"
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3477 $as_echo_n "checking for ANSI C header files... " >&6; }
3478 if ${ac_cv_header_stdc+:} false
; then :
3479 $as_echo_n "(cached) " >&6
3481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3496 if ac_fn_c_try_compile
"$LINENO"; then :
3497 ac_cv_header_stdc
=yes
3499 ac_cv_header_stdc
=no
3501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3503 if test $ac_cv_header_stdc = yes; then
3504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h. */
3510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3511 $EGREP "memchr" >/dev
/null
2>&1; then :
3514 ac_cv_header_stdc
=no
3520 if test $ac_cv_header_stdc = yes; then
3521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h. */
3527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3528 $EGREP "free" >/dev
/null
2>&1; then :
3531 ac_cv_header_stdc
=no
3537 if test $ac_cv_header_stdc = yes; then
3538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3539 if test "$cross_compiling" = yes; then :
3542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3546 #if ((' ' & 0x0FF) == 0x020)
3547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3550 # define ISLOWER(c) \
3551 (('a' <= (c) && (c) <= 'i') \
3552 || ('j' <= (c) && (c) <= 'r') \
3553 || ('s' <= (c) && (c) <= 'z'))
3554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3562 for (i = 0; i < 256; i++)
3563 if (XOR (islower (i), ISLOWER (i))
3564 || toupper (i) != TOUPPER (i))
3569 if ac_fn_c_try_run
"$LINENO"; then :
3572 ac_cv_header_stdc
=no
3574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3575 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3581 $as_echo "$ac_cv_header_stdc" >&6; }
3582 if test $ac_cv_header_stdc = yes; then
3584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3589 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3590 inttypes.h stdint.h unistd.h
3592 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3593 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3595 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3596 cat >>confdefs.h
<<_ACEOF
3597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3607 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3614 if test "$MINIX" = yes; then
3616 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3619 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3622 $as_echo "#define _MINIX 1" >>confdefs.h
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3628 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3629 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3630 $as_echo_n "(cached) " >&6
3632 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3635 # define __EXTENSIONS__ 1
3636 $ac_includes_default
3645 if ac_fn_c_try_compile
"$LINENO"; then :
3646 ac_cv_safe_to_define___extensions__
=yes
3648 ac_cv_safe_to_define___extensions__
=no
3650 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3653 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3654 test $ac_cv_safe_to_define___extensions__ = yes &&
3655 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3657 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3663 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3668 OLD_CFLAGS
="$CFLAGS"
3670 ac_cpp
='$CPP $CPPFLAGS'
3671 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3676 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_CC+:} false
; then :
3680 $as_echo_n "(cached) " >&6
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC
="$CC" # Let the user override the test.
3685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir
=.
3690 for ac_exec_ext
in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3713 if test -z "$ac_cv_prog_CC"; then
3715 # Extract the first word of "gcc", so it can be a program name with args.
3716 set dummy gcc
; ac_word
=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3720 $as_echo_n "(cached) " >&6
3722 if test -n "$ac_ct_CC"; then
3723 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3729 test -z "$as_dir" && as_dir
=.
3730 for ac_exec_ext
in '' $ac_executable_extensions; do
3731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3732 ac_cv_prog_ac_ct_CC
="gcc"
3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3743 if test -n "$ac_ct_CC"; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3745 $as_echo "$ac_ct_CC" >&6; }
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 $as_echo "no" >&6; }
3751 if test "x$ac_ct_CC" = x
; then
3754 case $cross_compiling:$ac_tool_warned in
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3758 ac_tool_warned
=yes ;;
3766 if test -z "$CC"; then
3767 if test -n "$ac_tool_prefix"; then
3768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3769 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if ${ac_cv_prog_CC+:} false
; then :
3773 $as_echo_n "(cached) " >&6
3775 if test -n "$CC"; then
3776 ac_cv_prog_CC
="$CC" # Let the user override the test.
3778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3782 test -z "$as_dir" && as_dir
=.
3783 for ac_exec_ext
in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 if test -n "$CC"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3798 $as_echo "$CC" >&6; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3807 if test -z "$CC"; then
3808 # Extract the first word of "cc", so it can be a program name with args.
3809 set dummy cc
; ac_word
=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if ${ac_cv_prog_CC+:} false
; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC
="$CC" # Let the user override the test.
3819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3823 test -z "$as_dir" && as_dir
=.
3824 for ac_exec_ext
in '' $ac_executable_extensions; do
3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3827 ac_prog_rejected
=yes
3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838 if test $ac_prog_rejected = yes; then
3839 # We found a bogon in the path, so make sure we never use it.
3840 set dummy
$ac_cv_prog_CC
3842 if test $# != 0; then
3843 # We chose a different compiler from the bogus one.
3844 # However, it has the same basename, so the bogon will be chosen
3845 # first if we set CC to just the basename; use the full file name.
3847 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3853 if test -n "$CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3855 $as_echo "$CC" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3863 if test -z "$CC"; then
3864 if test -n "$ac_tool_prefix"; then
3865 for ac_prog
in cl.exe
3867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3868 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if ${ac_cv_prog_CC+:} false
; then :
3872 $as_echo_n "(cached) " >&6
3874 if test -n "$CC"; then
3875 ac_cv_prog_CC
="$CC" # Let the user override the test.
3877 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir
=.
3882 for ac_exec_ext
in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 if test -n "$CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897 $as_echo "$CC" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3904 test -n "$CC" && break
3907 if test -z "$CC"; then
3909 for ac_prog
in cl.exe
3911 # Extract the first word of "$ac_prog", so it can be a program name with args.
3912 set dummy
$ac_prog; ac_word
=$2
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914 $as_echo_n "checking for $ac_word... " >&6; }
3915 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3916 $as_echo_n "(cached) " >&6
3918 if test -n "$ac_ct_CC"; then
3919 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir
=.
3926 for ac_exec_ext
in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_prog_ac_ct_CC
="$ac_prog"
3929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3939 if test -n "$ac_ct_CC"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941 $as_echo "$ac_ct_CC" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3948 test -n "$ac_ct_CC" && break
3951 if test "x$ac_ct_CC" = x
; then
3954 case $cross_compiling:$ac_tool_warned in
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3958 ac_tool_warned
=yes ;;
3967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3969 as_fn_error $?
"no acceptable C compiler found in \$PATH
3970 See \`config.log' for more details" "$LINENO" 5; }
3972 # Provide some information about the compiler.
3973 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3976 for ac_option
in --version -v -V -qversion; do
3977 { { ac_try
="$ac_compiler $ac_option >&5"
3979 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3986 if test -s conftest.err; then
3988 ... rest of stderr output deleted ...
3989 10q' conftest.err >conftest.er1
3990 cat conftest.er1 >&5
3992 rm -f conftest.er1 conftest.err
3993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3994 test $ac_status = 0; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3999 if ${ac_cv_c_compiler_gnu+:} false; then :
4000 $as_echo_n "(cached) " >&6
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4016 if ac_fn_c_try_compile "$LINENO"; then :
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4026 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4027 if test $ac_compiler_gnu = yes; then
4032 ac_test_CFLAGS=${CFLAGS+set}
4033 ac_save_CFLAGS=$CFLAGS
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4035 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4036 if ${ac_cv_prog_cc_g+:} false; then :
4037 $as_echo_n "(cached) " >&6
4039 ac_save_c_werror_flag=$ac_c_werror_flag
4040 ac_c_werror_flag=yes
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4054 if ac_fn_c_try_compile "$LINENO"; then :
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4072 ac_c_werror_flag=$ac_save_c_werror_flag
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4085 if ac_fn_c_try_compile "$LINENO"; then :
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 ac_c_werror_flag=$ac_save_c_werror_flag
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4096 $as_echo "$ac_cv_prog_cc_g" >&6; }
4097 if test "$ac_test_CFLAGS" = set; then
4098 CFLAGS=$ac_save_CFLAGS
4099 elif test $ac_cv_prog_cc_g = yes; then
4100 if test "$GCC" = yes; then
4106 if test "$GCC" = yes; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4113 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4114 if ${ac_cv_prog_cc_c89+:} false; then :
4115 $as_echo_n "(cached) " >&6
4117 ac_cv_prog_cc_c89=no
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 #include <sys/types.h>
4124 #include <sys/stat.h>
4125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4126 struct buf { int x; };
4127 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4128 static char *e (p, i)
4134 static char *f (char * (*g) (char **, int), char **p, ...)
4139 s = g (p, va_arg (v,int));
4144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4145 function prototypes and stuff, but not '\xHH' hex character constants.
4146 These don't provoke an error unfortunately, instead are silently treated
4147 as 'x'. The following induces an error, until -std is added to get
4148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4149 array size at least. It's necessary to write '\x00'==0 to get something
4150 that's true only with -std. */
4151 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4154 inside strings and character constants. */
4156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4158 int test (int i, double x);
4159 struct s1 {int (*f) (int a);};
4160 struct s2 {int (*f) (double a);};
4161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4175 CC="$ac_save_CC $ac_arg"
4176 if ac_fn_c_try_compile "$LINENO"; then :
4177 ac_cv_prog_cc_c89=$ac_arg
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4182 rm -f conftest.$ac_ext
4187 case "x$ac_cv_prog_cc_c89" in
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4190 $as_echo "none needed" >&6; } ;;
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4193 $as_echo "unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4199 if test "x$ac_cv_prog_cc_c89" != xno; then :
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 ac_cpp='$CPP $CPPFLAGS'
4211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4216 CFLAGS="$OLD_CFLAGS"
4219 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4220 if test -f "$ac_dir/install-sh"; then
4222 ac_install_sh="$ac_aux_dir/install-sh -c"
4224 elif test -f "$ac_dir/install.sh"; then
4226 ac_install_sh="$ac_aux_dir/install.sh -c"
4228 elif test -f "$ac_dir/shtool"; then
4230 ac_install_sh="$ac_aux_dir/shtool install -c"
4234 if test -z "$ac_aux_dir"; then
4235 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4238 # These three variables are undocumented and unsupported,
4239 # and are intended to be withdrawn in a future Autoconf release.
4240 # They can cause serious problems if a builder's source tree is in a directory
4241 # whose full name contains unusual characters.
4242 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4243 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4244 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4249 subdirs="$subdirs libratbox"
4253 if test "$ac_cv_c_compiler_gnu" != yes; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4257 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4258 case `$CC -version 2>&1` in
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4261 $as_echo "yes, TenDRA" >&6; }
4263 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4269 $as_echo "yes, MIPSpro" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4282 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4283 case `$CC -V 2>&1` in
4284 *Sun*WorkShop* | *Forte*Developer*)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4286 $as_echo "Sun Workshop/Forte" >&6; }
4287 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4293 $as_echo "Tru64 cc" >&6; }
4295 CPPFLAGS="-I/usr/local/include"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4300 $as_echo "HPUX cc" >&6; }
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4306 $as_echo "no" >&6; }
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4313 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4318 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4320 $as_echo "assuming old HPUX with its own cc" >&6; }
4321 IRC_CFLAGS="$IRC_CFLAGS +e"
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4325 $as_echo "already using newer HPUX" >&6; }
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4330 $as_echo "SunOS or Solaris" >&6; }
4332 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4338 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4339 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 if test "$ac_cv_c_compiler_gnu" = yes; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4349 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4351 case `$CC -v 2>&1 | tail -n 1` in
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4354 $as_echo "yes" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4364 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4367 if test "$ac_cv_prog_cc_g" = yes; then
4368 if test "$Tru" = yes; then
4369 IRC_CFLAGS="$IRC_CFLAGS -g3"
4371 IRC_CFLAGS="$IRC_CFLAGS -g"
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4376 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4377 if test "$SGS" = "yes"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4385 # Extract the first word of "mkdep", so it can be a program name with args.
4386 set dummy mkdep; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if ${ac_cv_path_MKDEP+:} false; then :
4390 $as_echo_n "(cached) " >&6
4394 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 MKDEP=$ac_cv_path_MKDEP
4416 if test -n "$MKDEP"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4418 $as_echo "$MKDEP" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4425 # Extract the first word of "makedepend", so it can be a program name with args.
4426 set dummy makedepend; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if ${ac_cv_path_MAKEDEPEND+:} false; then :
4430 $as_echo_n "(cached) " >&6
4434 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 test -z "$as_dir" && as_dir=.
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4444 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4456 if test -n "$MAKEDEPEND"; then
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4458 $as_echo "$MAKEDEPEND" >&6; }
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4461 $as_echo "no" >&6; }
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4467 $as_echo_n "checking how to generate dependency info... " >&6; }
4471 if test "$ac_cv_c_compiler_gnu" = yes; then
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4473 $as_echo "gcc -MM" >&6; }
4475 elif test ! -z "$MKDEP"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4477 $as_echo "mkdep" >&6; }
4479 if test -z "$Tru"; then
4482 STDOUT=" 2> /dev/null"
4484 elif test "$SunWorkShop" = yes; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4486 $as_echo "$CC -xM" >&6; }
4488 STDOUT="> .depend 2> /dev/null"
4489 elif test ! -z "$MAKEDEPEND"; then
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4491 $as_echo "makedepend" >&6; }
4492 MKDEP="$MAKEDEPEND -f-"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4495 $as_echo "nothing suitable.. forget it!" >&6; }
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4503 $as_echo_n "checking for /dev/null... " >&6; }
4504 if test -c /dev/null ; then
4506 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4509 $as_echo "yes" >&6; }
4512 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4515 $as_echo "no - using devnull.log" >&6; }
4518 if test ! -z "$CFLAGS"; then
4519 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4523 $as_echo_n "checking for library containing strerror... " >&6; }
4524 if ${ac_cv_search_strerror+:} false; then :
4525 $as_echo_n "(cached) " >&6
4527 ac_func_search_save_LIBS=$LIBS
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4531 /* Override any GCC internal prototype to avoid an error.
4532 Use char because int might match the return type of a GCC
4533 builtin and then its argument prototype would still apply. */
4546 for ac_lib in '' cposix; do
4547 if test -z "$ac_lib"; then
4548 ac_res="none required"
4551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4553 if ac_fn_c_try_link "$LINENO"; then :
4554 ac_cv_search_strerror=$ac_res
4556 rm -f core conftest.err conftest.$ac_objext \
4558 if ${ac_cv_search_strerror+:} false; then :
4562 if ${ac_cv_search_strerror+:} false; then :
4565 ac_cv_search_strerror=no
4568 LIBS=$ac_func_search_save_LIBS
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4571 $as_echo "$ac_cv_search_strerror" >&6; }
4572 ac_res=$ac_cv_search_strerror
4573 if test "$ac_res" != no; then :
4574 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4579 $as_echo_n "checking for inline... " >&6; }
4580 if ${ac_cv_c_inline+:} false; then :
4581 $as_echo_n "(cached) " >&6
4584 for ac_kw in inline __inline__ __inline; do
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586 /* end confdefs.h. */
4589 static $ac_kw foo_t static_foo () {return 0; }
4590 $ac_kw foo_t foo () {return 0; }
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_cv_c_inline=$ac_kw
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 test "$ac_cv_c_inline" != no && break
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4603 $as_echo "$ac_cv_c_inline" >&6; }
4605 case $ac_cv_c_inline in
4608 case $ac_cv_c_inline in
4610 *) ac_val=$ac_cv_c_inline;;
4612 cat >>confdefs.h <<_ACEOF
4614 #define inline $ac_val
4620 if test $ac_cv_c_compiler_gnu = yes; then
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4622 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4623 if ${ac_cv_prog_gcc_traditional+:} false; then :
4624 $as_echo_n "(cached) " >&6
4626 ac_pattern="Autoconf.*'x'"
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4634 ac_cv_prog_gcc_traditional=yes
4636 ac_cv_prog_gcc_traditional=no
4641 if test $ac_cv_prog_gcc_traditional = no; then
4642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643 /* end confdefs.h. */
4647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4648 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4649 ac_cv_prog_gcc_traditional=yes
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4656 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4657 if test $ac_cv_prog_gcc_traditional = yes; then
4658 CC="$CC -traditional"
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4663 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4665 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4666 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4667 $as_echo_n "(cached) " >&6
4669 cat >conftest.make <<\_ACEOF
4672 @echo '@@@%%%=$(MAKE)=@@@%%%'
4674 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4675 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4677 eval ac_cv_prog_make_${ac_make}_set=yes;;
4679 eval ac_cv_prog_make_${ac_make}_set=no;;
4683 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685 $as_echo "yes" >&6; }
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4690 SET_MAKE="MAKE=${MAKE-make}"
4693 # Find a good install program. We prefer a C program (faster),
4694 # so one script is as good as another. But avoid the broken or
4695 # incompatible versions:
4696 # SysV /etc/install, /usr/sbin/install
4697 # SunOS /usr/etc/install
4698 # IRIX /sbin/install
4700 # AmigaOS /C/install, which installs bootblocks on floppy discs
4701 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4702 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4703 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4704 # OS/2's system install, which has a completely different semantic
4705 # ./install, which can be erroneously created by make from ./install.sh.
4706 # Reject install programs that cannot install multiple files.
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4708 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4709 if test -z "$INSTALL"; then
4710 if ${ac_cv_path_install+:} false; then :
4711 $as_echo_n "(cached) " >&6
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 # Account for people who put trailing slashes in PATH elements.
4719 case $as_dir/ in #((
4720 ./ | .// | /[cC]/* | \
4721 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4722 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4725 # OSF1 and SCO ODT 3.0 have their own names for install.
4726 # Don't use installbsd from OSF since it installs stuff as root
4728 for ac_prog in ginstall scoinst install; do
4729 for ac_exec_ext in '' $ac_executable_extensions; do
4730 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4731 if test $ac_prog = install &&
4732 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4733 # AIX install. It has an incompatible calling convention.
4735 elif test $ac_prog = install &&
4736 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4737 # program-specific install script used by HP pwplus--don't use.
4740 rm -rf conftest.one conftest.two conftest.dir
4741 echo one > conftest.one
4742 echo two > conftest.two
4744 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4745 test -s conftest.one && test -s conftest.two &&
4746 test -s conftest.dir/conftest.one &&
4747 test -s conftest.dir/conftest.two
4749 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4762 rm -rf conftest.one conftest.two conftest.dir
4765 if test "${ac_cv_path_install+set}" = set; then
4766 INSTALL=$ac_cv_path_install
4768 # As a last resort, use the slow shell script. Don't cache a
4769 # value for INSTALL within a source directory, because that will
4770 # break other packages using the cache if that directory is
4771 # removed, or if the value is a relative name.
4772 INSTALL=$ac_install_sh
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4776 $as_echo "$INSTALL" >&6; }
4778 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4779 # It thinks the first close brace ends the variable substitution.
4780 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4782 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4784 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4786 # Extract the first word of "rm", so it can be a program name with args.
4787 set dummy rm; ac_word=$2
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789 $as_echo_n "checking for $ac_word... " >&6; }
4790 if ${ac_cv_path_RM+:} false; then :
4791 $as_echo_n "(cached) " >&6
4795 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 test -z "$as_dir" && as_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4805 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 if test -n "$RM"; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4819 $as_echo "$RM" >&6; }
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4822 $as_echo "no" >&6; }
4826 # Extract the first word of "cp", so it can be a program name with args.
4827 set dummy cp; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_path_CP+:} false; then :
4831 $as_echo_n "(cached) " >&6
4835 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4845 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 if test -n "$CP"; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4859 $as_echo "$CP" >&6; }
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4866 # Extract the first word of "mv", so it can be a program name with args.
4867 set dummy mv; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if ${ac_cv_path_MV+:} false; then :
4871 $as_echo_n "(cached) " >&6
4875 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 if test -n "$MV"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4899 $as_echo "$MV" >&6; }
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902 $as_echo "no" >&6; }
4906 # Extract the first word of "ln", so it can be a program name with args.
4907 set dummy ln; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_LN+:} false; then :
4911 $as_echo_n "(cached) " >&6
4915 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 if test -n "$LN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4939 $as_echo "$LN" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4946 # Extract the first word of "sed", so it can be a program name with args.
4947 set dummy sed; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if ${ac_cv_path_SED+:} false; then :
4951 $as_echo_n "(cached) " >&6
4955 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 test -z "$as_dir" && as_dir=.
4963 for ac_exec_ext in '' $ac_executable_extensions; do
4964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 if test -n "$SED"; then
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4979 $as_echo "$SED" >&6; }
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4982 $as_echo "no" >&6; }
4986 # Extract the first word of "ar", so it can be a program name with args.
4987 set dummy ar; ac_word=$2
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989 $as_echo_n "checking for $ac_word... " >&6; }
4990 if ${ac_cv_path_AR+:} false; then :
4991 $as_echo_n "(cached) " >&6
4995 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 if test -n "$AR"; then
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5019 $as_echo "$AR" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5026 # Extract the first word of "ld", so it can be a program name with args.
5027 set dummy ld; ac_word=$2
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029 $as_echo_n "checking for $ac_word... " >&6; }
5030 if ${ac_cv_path_LD+:} false; then :
5031 $as_echo_n "(cached) " >&6
5035 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 if test -n "$LD"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5059 $as_echo "$LD" >&6; }
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062 $as_echo "no" >&6; }
5066 # Extract the first word of "ranlib", so it can be a program name with args.
5067 set dummy ranlib; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_path_RANLIB+:} false; then :
5071 $as_echo_n "(cached) " >&6
5075 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 RANLIB=$ac_cv_path_RANLIB
5097 if test -n "$RANLIB"; then
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5099 $as_echo "$RANLIB" >&6; }
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5106 # Extract the first word of "touch", so it can be a program name with args.
5107 set dummy touch; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_path_TOUCH+:} false; then :
5111 $as_echo_n "(cached) " >&6
5115 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 TOUCH=$ac_cv_path_TOUCH
5137 if test -n "$TOUCH"; then
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5139 $as_echo "$TOUCH" >&6; }
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 $as_echo "no" >&6; }
5147 for ac_prog in 'bison -y' byacc
5149 # Extract the first word of "$ac_prog", so it can be a program name with args.
5150 set dummy $ac_prog; ac_word=$2
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 $as_echo_n "checking for $ac_word... " >&6; }
5153 if ${ac_cv_prog_YACC+:} false; then :
5154 $as_echo_n "(cached) " >&6
5156 if test -n "$YACC"; then
5157 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 test -z "$as_dir" && as_dir=.
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5166 ac_cv_prog_YACC="$ac_prog"
5167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 YACC=$ac_cv_prog_YACC
5177 if test -n "$YACC"; then
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5179 $as_echo "$YACC" >&6; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5182 $as_echo "no" >&6; }
5186 test -n "$YACC" && break
5188 test -n "$YACC" || YACC="yacc"
5191 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev
/null
`"; then
5192 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5195 for ac_prog in flex lex
5197 # Extract the first word of "$ac_prog", so it can be a program name with args.
5198 set dummy $ac_prog; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200 $as_echo_n "checking for $ac_word... " >&6; }
5201 if ${ac_cv_prog_LEX+:} false; then :
5202 $as_echo_n "(cached) " >&6
5204 if test -n "$LEX"; then
5205 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_prog_LEX="$ac_prog"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 if test -n "$LEX"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5227 $as_echo "$LEX" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5234 test -n "$LEX" && break
5236 test -n "$LEX" || LEX=":"
5238 if test "x$LEX" != "x:"; then
5239 cat >conftest.l <<_ACEOF
5245 e { yyless (input () != 0); }
5246 f { unput (yytext[0]); }
5247 . { BEGIN INITIAL; }
5249 #ifdef YYTEXT_POINTER
5250 extern char *yytext;
5255 return ! yylex () + ! yywrap ();
5258 { { ac_try="$LEX conftest.l"
5260 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5261 *) ac_try_echo
=$ac_try;;
5263 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5264 $as_echo "$ac_try_echo"; } >&5
5265 (eval "$LEX conftest.l") 2>&5
5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; }
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5270 $as_echo_n "checking lex output file root... " >&6; }
5271 if ${ac_cv_prog_lex_root+:} false
; then :
5272 $as_echo_n "(cached) " >&6
5275 if test -f lex.yy.c
; then
5276 ac_cv_prog_lex_root
=lex.yy
5277 elif test -f lexyy.c
; then
5278 ac_cv_prog_lex_root
=lexyy
5280 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5284 $as_echo "$ac_cv_prog_lex_root" >&6; }
5285 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5287 if test -z "${LEXLIB+set}"; then
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5289 $as_echo_n "checking lex library... " >&6; }
5290 if ${ac_cv_lib_lex+:} false
; then :
5291 $as_echo_n "(cached) " >&6
5295 ac_cv_lib_lex
='none needed'
5296 for ac_lib
in '' -lfl -ll; do
5297 LIBS
="$ac_lib $ac_save_LIBS"
5298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5300 `cat $LEX_OUTPUT_ROOT.c`
5302 if ac_fn_c_try_link
"$LINENO"; then :
5303 ac_cv_lib_lex
=$ac_lib
5305 rm -f core conftest.err conftest.
$ac_objext \
5306 conftest
$ac_exeext conftest.
$ac_ext
5307 test "$ac_cv_lib_lex" != 'none needed' && break
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5313 $as_echo "$ac_cv_lib_lex" >&6; }
5314 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5319 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5320 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
5321 $as_echo_n "(cached) " >&6
5323 # POSIX says lex can declare yytext either as a pointer or an array; the
5324 # default is implementation-dependent. Figure out which it is, since
5325 # not all implementations provide the %pointer and %array declarations.
5326 ac_cv_prog_lex_yytext_pointer
=no
5328 LIBS
="$LEXLIB $ac_save_LIBS"
5329 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5332 #define YYTEXT_POINTER 1
5333 `cat $LEX_OUTPUT_ROOT.c`
5335 if ac_fn_c_try_link
"$LINENO"; then :
5336 ac_cv_prog_lex_yytext_pointer
=yes
5338 rm -f core conftest.err conftest.
$ac_objext \
5339 conftest
$ac_exeext conftest.
$ac_ext
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5344 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5345 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5347 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5350 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5354 if test "$LEX" = ":"; then
5355 as_fn_error $?
"could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5358 if test "$libexecdir" = '${exec_prefix}/libexec' &&
5359 test "$localstatedir" = '${prefix}/var'; then
5360 libexecdir
='${bindir}'
5361 localstatedir
='${prefix}'
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5365 $as_echo_n "checking for ANSI C header files... " >&6; }
5366 if ${ac_cv_header_stdc+:} false
; then :
5367 $as_echo_n "(cached) " >&6
5369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5370 /* end confdefs.h. */
5384 if ac_fn_c_try_compile
"$LINENO"; then :
5385 ac_cv_header_stdc
=yes
5387 ac_cv_header_stdc
=no
5389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5391 if test $ac_cv_header_stdc = yes; then
5392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "memchr" >/dev
/null
2>&1; then :
5402 ac_cv_header_stdc
=no
5408 if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416 $EGREP "free" >/dev
/null
2>&1; then :
5419 ac_cv_header_stdc
=no
5425 if test $ac_cv_header_stdc = yes; then
5426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427 if test "$cross_compiling" = yes; then :
5430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5434 #if ((' ' & 0x0FF) == 0x020)
5435 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5436 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5438 # define ISLOWER(c) \
5439 (('a' <= (c) && (c) <= 'i') \
5440 || ('j' <= (c) && (c) <= 'r') \
5441 || ('s' <= (c) && (c) <= 'z'))
5442 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5450 for (i = 0; i < 256; i++)
5451 if (XOR (islower (i), ISLOWER (i))
5452 || toupper (i) != TOUPPER (i))
5457 if ac_fn_c_try_run
"$LINENO"; then :
5460 ac_cv_header_stdc
=no
5462 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5463 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5469 $as_echo "$ac_cv_header_stdc" >&6; }
5470 if test $ac_cv_header_stdc = yes; then
5472 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5477 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
5479 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5480 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5481 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5482 cat >>confdefs.h
<<_ACEOF
5483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5493 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5494 if ${ac_cv_c_const+:} false
; then :
5495 $as_echo_n "(cached) " >&6
5497 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5503 /* FIXME: Include the comments suggested by Paul. */
5505 /* Ultrix mips cc rejects this. */
5506 typedef int charset[2];
5508 /* SunOS 4.1.1 cc rejects this. */
5509 char const *const *pcpcc;
5511 /* NEC SVR4.0.2 mips cc rejects this. */
5512 struct point {int x, y;};
5513 static struct point const zero = {0,0};
5514 /* AIX XL C 1.02.0.0 rejects this.
5515 It does not let you subtract one const X* pointer from another in
5516 an arm of an if-expression whose if-part is not a constant
5518 const char *g = "string";
5519 pcpcc = &g + (g ? g-g : 0);
5520 /* HPUX 7.0 cc rejects these. */
5522 ppc = (char**) pcpcc;
5523 pcpcc = (char const *const *) ppc;
5524 { /* SCO 3.2v4 cc rejects this. */
5526 char const *s = 0 ? (char *) 0 : (char const *) 0;
5531 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5533 const int *foo = &x[0];
5536 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5537 typedef const int *iptr;
5541 { /* AIX XL C 1.02.0.0 rejects this saying
5542 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5543 struct s { int j; const int *ap[3]; };
5544 struct s *b; b->j = 5;
5546 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5550 return !cs[0] && !zero.x;
5557 if ac_fn_c_try_compile
"$LINENO"; then :
5562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5565 $as_echo "$ac_cv_c_const" >&6; }
5566 if test $ac_cv_c_const = no
; then
5568 $as_echo "#define const /**/" >>confdefs.h
5572 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5574 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5575 if ${ac_cv_c_bigendian+:} false
; then :
5576 $as_echo_n "(cached) " >&6
5578 ac_cv_c_bigendian
=unknown
5579 # See if we're dealing with a universal compiler.
5580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5581 /* end confdefs.h. */
5582 #ifndef __APPLE_CC__
5583 not a universal capable compiler
5588 if ac_fn_c_try_compile
"$LINENO"; then :
5590 # Check for potential -arch flags. It is not universal unless
5591 # there are at least two -arch flags with different values.
5594 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5595 if test -n "$ac_prev"; then
5597 i?
86 | x86_64
| ppc
| ppc64
)
5598 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5601 ac_cv_c_bigendian
=universal
5607 elif test "x$ac_word" = "x-arch"; then
5612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5613 if test $ac_cv_c_bigendian = unknown
; then
5614 # See if sys/param.h defines the BYTE_ORDER macro.
5615 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <sys/types.h>
5618 #include <sys/param.h>
5623 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5624 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5633 if ac_fn_c_try_compile
"$LINENO"; then :
5634 # It does; now see whether it defined to BIG_ENDIAN or not.
5635 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 #include <sys/param.h>
5643 #if BYTE_ORDER != BIG_ENDIAN
5651 if ac_fn_c_try_compile
"$LINENO"; then :
5652 ac_cv_c_bigendian
=yes
5654 ac_cv_c_bigendian
=no
5656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5658 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5660 if test $ac_cv_c_bigendian = unknown
; then
5661 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5662 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5663 /* end confdefs.h. */
5669 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5677 if ac_fn_c_try_compile
"$LINENO"; then :
5678 # It does; now see whether it defined to _BIG_ENDIAN or not.
5679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5694 if ac_fn_c_try_compile
"$LINENO"; then :
5695 ac_cv_c_bigendian
=yes
5697 ac_cv_c_bigendian
=no
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 if test $ac_cv_c_bigendian = unknown
; then
5704 # Compile a test program.
5705 if test "$cross_compiling" = yes; then :
5706 # Try to guess by grepping values from an object file.
5707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709 short int ascii_mm[] =
5710 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5711 short int ascii_ii[] =
5712 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5713 int use_ascii (int i) {
5714 return ascii_mm[i] + ascii_ii[i];
5716 short int ebcdic_ii[] =
5717 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5718 short int ebcdic_mm[] =
5719 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5720 int use_ebcdic (int i) {
5721 return ebcdic_mm[i] + ebcdic_ii[i];
5728 return use_ascii (foo) == use_ebcdic (foo);
5733 if ac_fn_c_try_compile
"$LINENO"; then :
5734 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5735 ac_cv_c_bigendian
=yes
5737 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5738 if test "$ac_cv_c_bigendian" = unknown
; then
5739 ac_cv_c_bigendian
=no
5741 # finding both strings is unlikely to happen, but who knows?
5742 ac_cv_c_bigendian
=unknown
5746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5750 $ac_includes_default
5755 /* Are we little or big endian? From Harbison&Steele. */
5759 char c[sizeof (long int)];
5762 return u.c[sizeof (long int) - 1] == 1;
5768 if ac_fn_c_try_run
"$LINENO"; then :
5769 ac_cv_c_bigendian
=no
5771 ac_cv_c_bigendian
=yes
5773 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5774 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5780 $as_echo "$ac_cv_c_bigendian" >&6; }
5781 case $ac_cv_c_bigendian in #(
5783 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5789 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5793 as_fn_error $?
"unknown endianness
5794 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5798 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5799 if test "x$ac_cv_type_pid_t" = xyes
; then :
5803 cat >>confdefs.h
<<_ACEOF
5809 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5810 if test "x$ac_cv_type_size_t" = xyes
; then :
5814 cat >>confdefs.h
<<_ACEOF
5815 #define size_t unsigned int
5820 # The cast to long int works around a bug in the HP C Compiler
5821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5823 # This bug is HP SR number 8606223364.
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5825 $as_echo_n "checking size of short... " >&6; }
5826 if ${ac_cv_sizeof_short+:} false
; then :
5827 $as_echo_n "(cached) " >&6
5829 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5832 if test "$ac_cv_type_short" = yes; then
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 as_fn_error
77 "cannot compute sizeof (short)
5836 See \`config.log' for more details" "$LINENO" 5; }
5838 ac_cv_sizeof_short
=0
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5844 $as_echo "$ac_cv_sizeof_short" >&6; }
5848 cat >>confdefs.h
<<_ACEOF
5849 #define SIZEOF_SHORT $ac_cv_sizeof_short
5853 # The cast to long int works around a bug in the HP C Compiler
5854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5856 # This bug is HP SR number 8606223364.
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5858 $as_echo_n "checking size of int... " >&6; }
5859 if ${ac_cv_sizeof_int+:} false
; then :
5860 $as_echo_n "(cached) " >&6
5862 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5865 if test "$ac_cv_type_int" = yes; then
5866 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5868 as_fn_error
77 "cannot compute sizeof (int)
5869 See \`config.log' for more details" "$LINENO" 5; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5877 $as_echo "$ac_cv_sizeof_int" >&6; }
5881 cat >>confdefs.h
<<_ACEOF
5882 #define SIZEOF_INT $ac_cv_sizeof_int
5886 # The cast to long int works around a bug in the HP C Compiler
5887 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5888 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5889 # This bug is HP SR number 8606223364.
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5891 $as_echo_n "checking size of long... " >&6; }
5892 if ${ac_cv_sizeof_long+:} false
; then :
5893 $as_echo_n "(cached) " >&6
5895 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5898 if test "$ac_cv_type_long" = yes; then
5899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5901 as_fn_error
77 "cannot compute sizeof (long)
5902 See \`config.log' for more details" "$LINENO" 5; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5910 $as_echo "$ac_cv_sizeof_long" >&6; }
5914 cat >>confdefs.h
<<_ACEOF
5915 #define SIZEOF_LONG $ac_cv_sizeof_long
5919 # The cast to long int works around a bug in the HP C Compiler
5920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5922 # This bug is HP SR number 8606223364.
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5924 $as_echo_n "checking size of long long... " >&6; }
5925 if ${ac_cv_sizeof_long_long+:} false
; then :
5926 $as_echo_n "(cached) " >&6
5928 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5931 if test "$ac_cv_type_long_long" = yes; then
5932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5934 as_fn_error
77 "cannot compute sizeof (long long)
5935 See \`config.log' for more details" "$LINENO" 5; }
5937 ac_cv_sizeof_long_long
=0
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5943 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5947 cat >>confdefs.h
<<_ACEOF
5948 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5955 $as_echo_n "checking for library containing socket... " >&6; }
5956 if ${ac_cv_search_socket+:} false
; then :
5957 $as_echo_n "(cached) " >&6
5959 ac_func_search_save_LIBS
=$LIBS
5960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5961 /* end confdefs.h. */
5963 /* Override any GCC internal prototype to avoid an error.
5964 Use char because int might match the return type of a GCC
5965 builtin and then its argument prototype would still apply. */
5978 for ac_lib
in '' socket
; do
5979 if test -z "$ac_lib"; then
5980 ac_res
="none required"
5983 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5985 if ac_fn_c_try_link
"$LINENO"; then :
5986 ac_cv_search_socket
=$ac_res
5988 rm -f core conftest.err conftest.
$ac_objext \
5990 if ${ac_cv_search_socket+:} false
; then :
5994 if ${ac_cv_search_socket+:} false
; then :
5997 ac_cv_search_socket
=no
6000 LIBS
=$ac_func_search_save_LIBS
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6003 $as_echo "$ac_cv_search_socket" >&6; }
6004 ac_res
=$ac_cv_search_socket
6005 if test "$ac_res" != no
; then :
6006 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6009 as_fn_error $?
"You have no socket()! Aborting." "$LINENO" 5
6013 if test x
"$SUN" = xyes
; then
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6015 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6016 if ${ac_cv_search_inet_ntoa+:} false
; then :
6017 $as_echo_n "(cached) " >&6
6019 ac_func_search_save_LIBS
=$LIBS
6020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6021 /* end confdefs.h. */
6023 /* Override any GCC internal prototype to avoid an error.
6024 Use char because int might match the return type of a GCC
6025 builtin and then its argument prototype would still apply. */
6033 return inet_ntoa ();
6038 for ac_lib
in '' nsl
; do
6039 if test -z "$ac_lib"; then
6040 ac_res
="none required"
6043 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6045 if ac_fn_c_try_link
"$LINENO"; then :
6046 ac_cv_search_inet_ntoa
=$ac_res
6048 rm -f core conftest.err conftest.
$ac_objext \
6050 if ${ac_cv_search_inet_ntoa+:} false
; then :
6054 if ${ac_cv_search_inet_ntoa+:} false
; then :
6057 ac_cv_search_inet_ntoa
=no
6060 LIBS
=$ac_func_search_save_LIBS
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6063 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6064 ac_res
=$ac_cv_search_inet_ntoa
6065 if test "$ac_res" != no
; then :
6066 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6069 as_fn_error $?
"libnsl not found! Aborting." "$LINENO" 5
6074 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6075 #include <sys/socket.h>
6077 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6081 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6086 # Check whether --enable-ipv6 was given.
6087 if test "${enable_ipv6+set}" = set; then :
6088 enableval
=$enable_ipv6; ipv6
=$enableval
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6095 $as_echo_n "checking for library containing crypt... " >&6; }
6096 if ${ac_cv_search_crypt+:} false
; then :
6097 $as_echo_n "(cached) " >&6
6099 ac_func_search_save_LIBS
=$LIBS
6100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6103 /* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
6118 for ac_lib
in '' crypt descrypt
; do
6119 if test -z "$ac_lib"; then
6120 ac_res
="none required"
6123 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6125 if ac_fn_c_try_link
"$LINENO"; then :
6126 ac_cv_search_crypt
=$ac_res
6128 rm -f core conftest.err conftest.
$ac_objext \
6130 if ${ac_cv_search_crypt+:} false
; then :
6134 if ${ac_cv_search_crypt+:} false
; then :
6137 ac_cv_search_crypt
=no
6140 LIBS
=$ac_func_search_save_LIBS
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6143 $as_echo "$ac_cv_search_crypt" >&6; }
6144 ac_res
=$ac_cv_search_crypt
6145 if test "$ac_res" != no
; then :
6146 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6151 CRYPT_LIB
=$ac_cv_search_crypt
6153 if test "$CRYPT_LIB" = "none required"; then
6155 elif test "$CRYPT_LIB" = no
; then
6161 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6170 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6171 if ${gcc_cv_header_string+:} false
; then :
6172 $as_echo_n "(cached) " >&6
6175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6178 #include <strings.h>
6180 if ac_fn_c_try_compile
"$LINENO"; then :
6181 gcc_cv_header_string
=yes
6183 gcc_cv_header_string
=no
6185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6189 $as_echo "$gcc_cv_header_string" >&6; }
6191 if test "$gcc_cv_header_string" = "yes"; then
6193 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6198 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6199 if ${ac_cv_c_bigendian+:} false
; then :
6200 $as_echo_n "(cached) " >&6
6202 ac_cv_c_bigendian
=unknown
6203 # See if we're dealing with a universal compiler.
6204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6205 /* end confdefs.h. */
6206 #ifndef __APPLE_CC__
6207 not a universal capable compiler
6212 if ac_fn_c_try_compile
"$LINENO"; then :
6214 # Check for potential -arch flags. It is not universal unless
6215 # there are at least two -arch flags with different values.
6218 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6219 if test -n "$ac_prev"; then
6221 i?
86 | x86_64
| ppc
| ppc64
)
6222 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6225 ac_cv_c_bigendian
=universal
6231 elif test "x$ac_word" = "x-arch"; then
6236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6237 if test $ac_cv_c_bigendian = unknown
; then
6238 # See if sys/param.h defines the BYTE_ORDER macro.
6239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6240 /* end confdefs.h. */
6241 #include <sys/types.h>
6242 #include <sys/param.h>
6247 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6248 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6257 if ac_fn_c_try_compile
"$LINENO"; then :
6258 # It does; now see whether it defined to BIG_ENDIAN or not.
6259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <sys/types.h>
6262 #include <sys/param.h>
6267 #if BYTE_ORDER != BIG_ENDIAN
6275 if ac_fn_c_try_compile
"$LINENO"; then :
6276 ac_cv_c_bigendian
=yes
6278 ac_cv_c_bigendian
=no
6280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6284 if test $ac_cv_c_bigendian = unknown
; then
6285 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6293 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6301 if ac_fn_c_try_compile
"$LINENO"; then :
6302 # It does; now see whether it defined to _BIG_ENDIAN or not.
6303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6318 if ac_fn_c_try_compile
"$LINENO"; then :
6319 ac_cv_c_bigendian
=yes
6321 ac_cv_c_bigendian
=no
6323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6327 if test $ac_cv_c_bigendian = unknown
; then
6328 # Compile a test program.
6329 if test "$cross_compiling" = yes; then :
6330 # Try to guess by grepping values from an object file.
6331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333 short int ascii_mm[] =
6334 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6335 short int ascii_ii[] =
6336 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6337 int use_ascii (int i) {
6338 return ascii_mm[i] + ascii_ii[i];
6340 short int ebcdic_ii[] =
6341 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6342 short int ebcdic_mm[] =
6343 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6344 int use_ebcdic (int i) {
6345 return ebcdic_mm[i] + ebcdic_ii[i];
6352 return use_ascii (foo) == use_ebcdic (foo);
6357 if ac_fn_c_try_compile
"$LINENO"; then :
6358 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6359 ac_cv_c_bigendian
=yes
6361 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6362 if test "$ac_cv_c_bigendian" = unknown
; then
6363 ac_cv_c_bigendian
=no
6365 # finding both strings is unlikely to happen, but who knows?
6366 ac_cv_c_bigendian
=unknown
6370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6373 /* end confdefs.h. */
6374 $ac_includes_default
6379 /* Are we little or big endian? From Harbison&Steele. */
6383 char c[sizeof (long int)];
6386 return u.c[sizeof (long int) - 1] == 1;
6392 if ac_fn_c_try_run
"$LINENO"; then :
6393 ac_cv_c_bigendian
=no
6395 ac_cv_c_bigendian
=yes
6397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6404 $as_echo "$ac_cv_c_bigendian" >&6; }
6405 case $ac_cv_c_bigendian in #(
6407 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6413 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6417 as_fn_error $?
"unknown endianness
6418 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6422 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6423 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
6426 as_fn_error $?
"** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6432 if test "$ac_cv_c_compiler_gnu" = yes; then
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6435 $as_echo_n "checking for strlcpy... " >&6; }
6437 CFLAGS
="$CFLAGS -Wimplicit -Werror"
6439 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6440 /* end confdefs.h. */
6446 char *a = malloc(6);
6447 strlcpy(a, "hello", 6);
6453 if ac_fn_c_try_link
"$LINENO"; then :
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455 $as_echo "yes" >&6; }
6457 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6464 rm -f core conftest.err conftest.
$ac_objext \
6465 conftest
$ac_exeext conftest.
$ac_ext
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6468 $as_echo_n "checking for strlcat... " >&6; }
6469 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6476 char *a = malloc(6);
6478 strlcat(a, "hello", 6);
6484 if ac_fn_c_try_link
"$LINENO"; then :
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6486 $as_echo "yes" >&6; }
6488 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6495 rm -f core conftest.err conftest.
$ac_objext \
6496 conftest
$ac_exeext conftest.
$ac_ext
6503 for ac_func
in strlcat strlcpy
6505 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6506 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6507 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6508 cat >>confdefs.h
<<_ACEOF
6509 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6518 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6519 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6523 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6524 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6527 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6533 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6535 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6544 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6545 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6549 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6550 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6553 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6559 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6561 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6570 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6571 #include <netinet/in.h>
6573 if test "x$ac_cv_type_in_port_t" = xyes
; then :
6577 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6582 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6583 #include <sys/socket.h>
6585 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
6589 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6594 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6595 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6597 cat >>confdefs.h
<<_ACEOF
6598 #define HAVE_UINTPTR_T 1
6605 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
6607 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6608 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6609 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6610 cat >>confdefs.h
<<_ACEOF
6611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6618 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6619 # for constant arguments. Useless!
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6621 $as_echo_n "checking for working alloca.h... " >&6; }
6622 if ${ac_cv_working_alloca_h+:} false
; then :
6623 $as_echo_n "(cached) " >&6
6625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6631 char *p = (char *) alloca (2 * sizeof (int));
6637 if ac_fn_c_try_link
"$LINENO"; then :
6638 ac_cv_working_alloca_h
=yes
6640 ac_cv_working_alloca_h
=no
6642 rm -f core conftest.err conftest.
$ac_objext \
6643 conftest
$ac_exeext conftest.
$ac_ext
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6646 $as_echo "$ac_cv_working_alloca_h" >&6; }
6647 if test $ac_cv_working_alloca_h = yes; then
6649 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6654 $as_echo_n "checking for alloca... " >&6; }
6655 if ${ac_cv_func_alloca_works+:} false
; then :
6656 $as_echo_n "(cached) " >&6
6658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6659 /* end confdefs.h. */
6661 # define alloca __builtin_alloca
6664 # include <malloc.h>
6665 # define alloca _alloca
6667 # ifdef HAVE_ALLOCA_H
6668 # include <alloca.h>
6673 # ifndef alloca /* predefined by HP cc +Olibcalls */
6674 void *alloca (size_t);
6684 char *p = (char *) alloca (1);
6690 if ac_fn_c_try_link
"$LINENO"; then :
6691 ac_cv_func_alloca_works
=yes
6693 ac_cv_func_alloca_works
=no
6695 rm -f core conftest.err conftest.
$ac_objext \
6696 conftest
$ac_exeext conftest.
$ac_ext
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6699 $as_echo "$ac_cv_func_alloca_works" >&6; }
6701 if test $ac_cv_func_alloca_works = yes; then
6703 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6706 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6707 # that cause trouble. Some versions do not even contain alloca or
6708 # contain a buggy version. If you still want to use their alloca,
6709 # use ar to extract alloca.o from them instead of compiling alloca.c.
6711 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6713 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6717 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6718 if ${ac_cv_os_cray+:} false
; then :
6719 $as_echo_n "(cached) " >&6
6721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 #if defined CRAY && ! defined CRAY2
6730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6731 $EGREP "webecray" >/dev
/null
2>&1; then :
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6740 $as_echo "$ac_cv_os_cray" >&6; }
6741 if test $ac_cv_os_cray = yes; then
6742 for ac_func
in _getb67 GETB67 getb67
; do
6743 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6744 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6745 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6747 cat >>confdefs.h
<<_ACEOF
6748 #define CRAY_STACKSEG_END $ac_func
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6758 $as_echo_n "checking stack direction for C alloca... " >&6; }
6759 if ${ac_cv_c_stack_direction+:} false
; then :
6760 $as_echo_n "(cached) " >&6
6762 if test "$cross_compiling" = yes; then :
6763 ac_cv_c_stack_direction
=0
6765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 $ac_includes_default
6769 find_stack_direction ()
6771 static char *addr = 0;
6776 return find_stack_direction ();
6779 return (&dummy > addr) ? 1 : -1;
6785 return find_stack_direction () < 0;
6788 if ac_fn_c_try_run
"$LINENO"; then :
6789 ac_cv_c_stack_direction
=1
6791 ac_cv_c_stack_direction
=-1
6793 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6794 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6799 $as_echo "$ac_cv_c_stack_direction" >&6; }
6800 cat >>confdefs.h
<<_ACEOF
6801 #define STACK_DIRECTION $ac_cv_c_stack_direction
6809 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6810 if test "x$ac_cv_func_nanosleep" = xyes
; then :
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6814 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6815 if ${ac_cv_lib_rt_nanosleep+:} false
; then :
6816 $as_echo_n "(cached) " >&6
6818 ac_check_lib_save_LIBS
=$LIBS
6820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6823 /* Override any GCC internal prototype to avoid an error.
6824 Use char because int might match the return type of a GCC
6825 builtin and then its argument prototype would still apply. */
6833 return nanosleep ();
6838 if ac_fn_c_try_link
"$LINENO"; then :
6839 ac_cv_lib_rt_nanosleep
=yes
6841 ac_cv_lib_rt_nanosleep
=no
6843 rm -f core conftest.err conftest.
$ac_objext \
6844 conftest
$ac_exeext conftest.
$ac_ext
6845 LIBS
=$ac_check_lib_save_LIBS
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6848 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6849 if test "x$ac_cv_lib_rt_nanosleep" = xyes
; then :
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6853 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6854 if ${ac_cv_lib_posix4_nanosleep+:} false
; then :
6855 $as_echo_n "(cached) " >&6
6857 ac_check_lib_save_LIBS
=$LIBS
6858 LIBS
="-lposix4 $LIBS"
6859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6862 /* Override any GCC internal prototype to avoid an error.
6863 Use char because int might match the return type of a GCC
6864 builtin and then its argument prototype would still apply. */
6872 return nanosleep ();
6877 if ac_fn_c_try_link
"$LINENO"; then :
6878 ac_cv_lib_posix4_nanosleep
=yes
6880 ac_cv_lib_posix4_nanosleep
=no
6882 rm -f core conftest.err conftest.
$ac_objext \
6883 conftest
$ac_exeext conftest.
$ac_ext
6884 LIBS
=$ac_check_lib_save_LIBS
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6887 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6888 if test "x$ac_cv_lib_posix4_nanosleep" = xyes
; then :
6889 LIBS
="${LIBS} -lposix4"
6897 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6900 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
6903 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6908 $as_echo_n "checking for OpenSSL... " >&6; }
6909 # Check whether --enable-openssl was given.
6910 if test "${enable_openssl+set}" = set; then :
6911 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
6913 cf_enable_openssl
="auto"
6917 if test "$cf_enable_openssl" != "no" ; then
6918 cf_openssl_basedir
=""
6919 if test "$cf_enable_openssl" != "auto" &&
6920 test "$cf_enable_openssl" != "yes" ; then
6921 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6923 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
6924 /usr
/local
/openssl
; do
6925 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6926 cf_openssl_basedir
="${dirs}"
6932 if test ! -z "$cf_openssl_basedir"; then
6933 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
6934 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
6935 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
6937 cf_openssl_basedir
=""
6940 if test -f "/usr/include/openssl/opensslv.h" ; then
6941 cf_openssl_basedir
="/usr"
6945 if test ! -z "$cf_openssl_basedir"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
6947 $as_echo "$cf_openssl_basedir" >&6; }
6948 cf_enable_openssl
="yes"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
6951 $as_echo "not found. Specify a correct path?" >&6; }
6952 cf_enable_openssl
="no"
6954 unset cf_openssl_basedir
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6957 $as_echo "disabled" >&6; }
6960 save_CPPFLAGS
="$CPPFLAGS"
6961 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
6963 LIBS
="$LIBS $SSL_LIBS"
6964 if test "$cf_enable_openssl" != no
; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
6966 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
6967 if test "$cross_compiling" = yes; then :
6968 cf_openssl_version_ok
=no
6970 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h. */
6972 #include <openssl/opensslv.h>
6977 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
6978 exit(0); else exit(1);
6983 if ac_fn_c_try_run
"$LINENO"; then :
6984 cf_openssl_version_ok
=yes
6986 cf_openssl_version_ok
=no
6988 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6989 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6993 if test "$cf_openssl_version_ok" = yes; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6995 $as_echo "found" >&6; }
7000 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7002 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
7003 if ${ac_cv_lib_crypto_RSA_free+:} false
; then :
7004 $as_echo_n "(cached) " >&6
7006 ac_check_lib_save_LIBS
=$LIBS
7007 LIBS
="-lcrypto $LIBS"
7008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7011 /* Override any GCC internal prototype to avoid an error.
7012 Use char because int might match the return type of a GCC
7013 builtin and then its argument prototype would still apply. */
7026 if ac_fn_c_try_link
"$LINENO"; then :
7027 ac_cv_lib_crypto_RSA_free
=yes
7029 ac_cv_lib_crypto_RSA_free
=no
7031 rm -f core conftest.err conftest.
$ac_objext \
7032 conftest
$ac_exeext conftest.
$ac_ext
7033 LIBS
=$ac_check_lib_save_LIBS
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7036 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7037 if test "x$ac_cv_lib_crypto_RSA_free" = xyes
; then :
7038 cat >>confdefs.h
<<_ACEOF
7039 #define HAVE_LIBCRYPTO 1
7042 LIBS
="-lcrypto $LIBS"
7046 SSL_LIBS
="$SSL_LIBS -lcrypto"
7047 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7050 $as_echo "no - OpenSSL support disabled" >&6; }
7054 CPPFLAGS
="$save_CPPFLAGS"
7061 # Check whether --with-zlib-path was given.
7062 if test "${with_zlib_path+set}" = set; then :
7063 withval
=$with_zlib_path; LIBS
="$LIBS -L$withval"
7067 # Check whether --enable-zlib was given.
7068 if test "${enable_zlib+set}" = set; then :
7069 enableval
=$enable_zlib; zlib
=$enableval
7075 if test "$zlib" = yes; then
7077 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7078 if test "x$ac_cv_header_zlib_h" = xyes
; then :
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7081 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7082 if ${ac_cv_lib_z_zlibVersion+:} false
; then :
7083 $as_echo_n "(cached) " >&6
7085 ac_check_lib_save_LIBS
=$LIBS
7087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7090 /* Override any GCC internal prototype to avoid an error.
7091 Use char because int might match the return type of a GCC
7092 builtin and then its argument prototype would still apply. */
7096 char zlibVersion ();
7100 return zlibVersion ();
7105 if ac_fn_c_try_link
"$LINENO"; then :
7106 ac_cv_lib_z_zlibVersion
=yes
7108 ac_cv_lib_z_zlibVersion
=no
7110 rm -f core conftest.err conftest.
$ac_objext \
7111 conftest
$ac_exeext conftest.
$ac_ext
7112 LIBS
=$ac_check_lib_save_LIBS
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7115 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7116 if test "x$ac_cv_lib_z_zlibVersion" = xyes
; then :
7121 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7138 # Check whether --enable-ports was given.
7139 if test "${enable_ports+set}" = set; then :
7140 enableval
=$enable_ports; if test $enableval = yes; then
7141 SELECT_TYPE_EXPLICIT
="ports"
7149 # Check whether --enable-poll was given.
7150 if test "${enable_poll+set}" = set; then :
7151 enableval
=$enable_poll; if test $enableval = yes; then
7152 SELECT_TYPE_EXPLICIT
="poll"
7160 # Check whether --enable-select was given.
7161 if test "${enable_select+set}" = set; then :
7162 enableval
=$enable_select; if test $enableval = yes; then
7163 SELECT_TYPE_EXPLICIT
="select"
7171 # Check whether --enable-kqueue was given.
7172 if test "${enable_kqueue+set}" = set; then :
7173 enableval
=$enable_kqueue; if test $enableval = yes; then
7174 SELECT_TYPE_EXPLICIT
="kqueue"
7182 # Check whether --enable-epoll was given.
7183 if test "${enable_epoll+set}" = set; then :
7184 enableval
=$enable_epoll; if test $enableval = yes; then
7185 SELECT_TYPE_EXPLICIT
="epoll"
7186 for ac_func
in epoll_ctl
7188 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7189 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7190 cat >>confdefs.h
<<_ACEOF
7191 #define HAVE_EPOLL_CTL 1
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7208 $as_echo_n "checking whether to modify confdir... " >&6; }
7210 # Check whether --with-confdir was given.
7211 if test "${with_confdir+set}" = set; then :
7212 withval
=$with_confdir; confdir
=`echo $withval | sed 's/\/$//'`
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7214 $as_echo "yes" >&6; }
7216 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7217 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7218 ac_define_dir
=`eval echo $confdir`
7219 ac_define_dir
=`eval echo $ac_define_dir`
7220 ETC_DIR
="$ac_define_dir"
7223 cat >>confdefs.h
<<_ACEOF
7224 #define ETC_DIR "$ac_define_dir"
7231 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7232 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7233 eval echo \""$confdir"\"
7238 confdir
='${prefix}/etc'
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7242 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7243 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7244 ac_define_dir
=`eval echo $confdir`
7245 ac_define_dir
=`eval echo $ac_define_dir`
7246 ETC_DIR
="$ac_define_dir"
7249 cat >>confdefs.h
<<_ACEOF
7250 #define ETC_DIR "$ac_define_dir"
7257 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7258 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7259 eval echo \""$confdir"\"
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7269 $as_echo_n "checking whether to modify logdir... " >&6; }
7271 # Check whether --with-logdir was given.
7272 if test "${with_logdir+set}" = set; then :
7273 withval
=$with_logdir; logdir
=`echo $withval | sed 's/\/$//'`
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7275 $as_echo "yes" >&6; }
7277 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7278 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7279 ac_define_dir
=`eval echo $logdir`
7280 ac_define_dir
=`eval echo $ac_define_dir`
7281 LOG_DIR
="$ac_define_dir"
7284 cat >>confdefs.h
<<_ACEOF
7285 #define LOG_DIR "$ac_define_dir"
7292 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7293 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7294 eval echo \""$logdir"\"
7299 logdir
='${prefix}/logs'
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7303 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7304 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7305 ac_define_dir
=`eval echo $logdir`
7306 ac_define_dir
=`eval echo $ac_define_dir`
7307 LOG_DIR
="$ac_define_dir"
7310 cat >>confdefs.h
<<_ACEOF
7311 #define LOG_DIR "$ac_define_dir"
7318 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7319 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7320 eval echo \""$logdir"\"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7330 $as_echo_n "checking whether to modify helpdir... " >&6; }
7332 # Check whether --with-helpdir was given.
7333 if test "${with_helpdir+set}" = set; then :
7334 withval
=$with_helpdir; helpdir
=`echo $withval | sed 's/\/$//'`
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7336 $as_echo "yes" >&6; }
7338 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7339 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7340 ac_define_dir
=`eval echo $helpdir`
7341 ac_define_dir
=`eval echo $ac_define_dir`
7342 HELP_DIR
="$ac_define_dir"
7345 cat >>confdefs.h
<<_ACEOF
7346 #define HELP_DIR "$ac_define_dir"
7353 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7354 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7355 eval echo \""$helpdir"\"
7360 helpdir
='${prefix}/help'
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7364 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7365 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7366 ac_define_dir
=`eval echo $helpdir`
7367 ac_define_dir
=`eval echo $ac_define_dir`
7368 HELP_DIR
="$ac_define_dir"
7371 cat >>confdefs.h
<<_ACEOF
7372 #define HELP_DIR "$ac_define_dir"
7379 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7380 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7381 eval echo \""$helpdir"\"
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7391 $as_echo_n "checking whether to modify moduledir... " >&6; }
7393 # Check whether --with-moduledir was given.
7394 if test "${with_moduledir+set}" = set; then :
7395 withval
=$with_moduledir; moduledir
=`echo $withval | sed 's/\/$//'`
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7397 $as_echo "yes" >&6; }
7399 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7400 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7401 ac_define_dir
=`eval echo $moduledir`
7402 ac_define_dir
=`eval echo $ac_define_dir`
7403 MODULE_DIR
="$ac_define_dir"
7406 cat >>confdefs.h
<<_ACEOF
7407 #define MODULE_DIR "$ac_define_dir"
7414 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7415 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7416 eval echo \""$moduledir"\"
7421 moduledir
='${prefix}/modules'
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7425 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7426 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7427 ac_define_dir
=`eval echo $moduledir`
7428 ac_define_dir
=`eval echo $ac_define_dir`
7429 MODULE_DIR
="$ac_define_dir"
7432 cat >>confdefs.h
<<_ACEOF
7433 #define MODULE_DIR "$ac_define_dir"
7440 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7441 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7442 eval echo \""$moduledir"\"
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether custom branding is requested" >&5
7452 $as_echo_n "checking whether custom branding is requested... " >&6; }
7454 # Check whether --with-custom-branding was given.
7455 if test "${with_custom_branding+set}" = set; then :
7456 withval
=$with_custom_branding; BRANDING_NAME
=$withval
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7458 $as_echo "yes" >&6; }
7460 BRANDING_NAME
=$PACKAGE_NAME
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a custom version is requested" >&5
7468 $as_echo_n "checking whether a custom version is requested... " >&6; }
7470 # Check whether --with-custom-version was given.
7471 if test "${with_custom_version+set}" = set; then :
7472 withval
=$with_custom_version; BRANDING_VERSION
=$withval
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7474 $as_echo "yes" >&6; }
7476 BRANDING_VERSION
=$PACKAGE_VERSION
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7484 cat >>confdefs.h
<<_ACEOF
7485 #define BRANDING_NAME "$BRANDING_NAME"
7489 cat >>confdefs.h
<<_ACEOF
7490 #define BRANDING_VERSION "$BRANDING_VERSION"
7494 if test "x$BRANDING_NAME" != "x$PACKAGE_NAME"; then
7496 $as_echo "#define CUSTOM_BRANDING 1" >>confdefs.h
7500 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7501 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
7502 echo "Forcing $SELECT_TYPE to be enabled"
7505 if test ! "x$use_ports" = "xno"; then
7506 for ac_func
in port_getn
7508 ac_fn_c_check_func
"$LINENO" "port_getn" "ac_cv_func_port_getn"
7509 if test "x$ac_cv_func_port_getn" = xyes
; then :
7510 cat >>confdefs.h
<<_ACEOF
7511 #define HAVE_PORT_GETN 1
7519 if test "x$haveports" = "xyes" ; then
7524 if test ! "x$use_select" = "xno"; then
7525 for ac_func
in select
7527 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
7528 if test "x$ac_cv_func_select" = xyes
; then :
7529 cat >>confdefs.h
<<_ACEOF
7530 #define HAVE_SELECT 1
7538 if test "x$haveselect" = "xyes" ; then
7539 SELECT_TYPE
="select"
7543 if test ! "x$use_poll" = "xno"; then
7546 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7547 if test "x$ac_cv_func_poll" = xyes
; then :
7548 cat >>confdefs.h
<<_ACEOF
7557 if test "x$havepoll" = "xyes" ; then
7562 if test ! "x$use_kqueue" = "xno"; then
7563 for ac_func
in kevent
7565 ac_fn_c_check_func
"$LINENO" "kevent" "ac_cv_func_kevent"
7566 if test "x$ac_cv_func_kevent" = xyes
; then :
7567 cat >>confdefs.h
<<_ACEOF
7568 #define HAVE_KEVENT 1
7576 if test "x$havekqueue" = "xyes" ; then
7577 SELECT_TYPE
="kqueue"
7581 if test ! "x$use_epoll" = "xno"; then
7582 for ac_func
in epoll_ctl
7584 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7585 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7586 cat >>confdefs.h
<<_ACEOF
7587 #define HAVE_EPOLL_CTL 1
7595 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7596 if test "x$haveepoll" = "xyes" ; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7598 $as_echo_n "checking for epoll support in kernel... " >&6; }
7599 if test "$cross_compiling" = yes; then :
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7606 #include <sys/param.h>
7607 #include <sys/types.h>
7608 #include <sys/epoll.h>
7609 #include <sys/syscall.h>
7613 main(int argc, char **argv)
7617 epfd = epoll_create(256);
7618 return (epfd == -1 ? 1 : 0);
7621 if ac_fn_c_try_run
"$LINENO"; then :
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7623 $as_echo "yes" >&6; }
7625 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7632 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7633 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7641 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7642 if test "x$haveepoll" = "xno" ; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7644 $as_echo_n "checking for epoll system call... " >&6; }
7645 if test "$cross_compiling" = yes; then :
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7649 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7650 /* end confdefs.h. */
7652 #include <sys/param.h>
7653 #include <sys/types.h>
7654 #include <sys/epoll.h>
7655 #include <sys/syscall.h>
7659 epoll_create(int size)
7661 return (syscall(__NR_epoll_create, size));
7665 main(int argc, char **argv)
7669 epfd = epoll_create(256);
7670 exit (epfd == -1 ? 1 : 0);
7673 if ac_fn_c_try_run
"$LINENO"; then :
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675 $as_echo "yes" >&6; }
7677 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682 $as_echo "no" >&6; }
7684 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7685 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7695 if test -z "$SELECT_TYPE"; then
7696 as_fn_error $?
"Unable to find a usable IO interface" "$LINENO" 5
7699 echo "Using $SELECT_TYPE for select loop."
7702 cat >>confdefs.h
<<_ACEOF
7703 #define SELECT_TYPE "$SELECT_TYPE"
7710 # Check whether --enable-assert was given.
7711 if test "${enable_assert+set}" = set; then :
7712 enableval
=$enable_assert; assert
=$enableval
7718 if test "$assert" = no
; then
7720 $as_echo "#define NDEBUG 1" >>confdefs.h
7722 elif test "$assert" = soft
; then
7724 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7727 $as_echo "#define NDEBUG 1" >>confdefs.h
7729 elif test "$assert" = yes; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7734 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7735 # Check whether --enable-iodebug was given.
7736 if test "${enable_iodebug+set}" = set; then :
7737 enableval
=$enable_iodebug; iodebug
=$enableval
7743 if test "$iodebug" = yes; then
7745 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7748 $as_echo "yes" >&6; }
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751 $as_echo "no" >&6; }
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7756 $as_echo_n "checking if you want to do a profile build... " >&6; }
7757 # Check whether --enable-profile was given.
7758 if test "${enable_profile+set}" = set; then :
7759 enableval
=$enable_profile; profile
=$enableval
7765 if test "$profile" = yes; then
7766 if test "$ac_cv_c_compiler_gnu" = yes; then
7767 IRC_CFLAGS
="$IRC_CFLAGS -pg"
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7769 $as_echo "yes, adding -pg" >&6; }
7771 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7775 $as_echo "no, profile builds only work with gcc" >&6; }
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779 $as_echo "no" >&6; }
7782 # Check whether --enable-balloc was given.
7783 if test "${enable_balloc+set}" = set; then :
7784 enableval
=$enable_balloc; balloc
=$enableval
7790 if test "$balloc" = no
; then
7792 $as_echo "#define NOBALLOC 1" >>confdefs.h
7796 # Check whether --enable-small-net was given.
7797 if test "${enable_small_net+set}" = set; then :
7798 enableval
=$enable_small_net; small_net
=$enableval
7804 if test "$small_net" = yes; then
7806 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7809 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7812 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7815 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7818 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7821 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7824 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7827 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7830 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7833 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7836 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7839 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7842 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7845 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7848 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7851 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7855 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7858 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7861 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7864 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7867 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7870 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7873 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7876 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7879 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
7882 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
7885 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
7888 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
7891 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
7894 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
7897 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
7900 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
7905 # Check whether --with-nicklen was given.
7906 if test "${with_nicklen+set}" = set; then :
7907 withval
=$with_nicklen;
7908 if ! expr "$withval" + 0 >/dev
/null
2>&1; then
7909 as_fn_error $?
"NICKLEN must be a numeric value" "$LINENO" 5
7911 if test $withval -gt 50; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7914 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
7915 elif test $withval -lt 9; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&5
7918 $as_echo "$as_me: WARNING: NICKLEN has a lower limit of 9. Setting NICKLEN=9" >&2;}
7929 # Check whether --with-topiclen was given.
7930 if test "${with_topiclen+set}" = set; then :
7931 withval
=$with_topiclen;
7932 if test $withval -ge 390; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7935 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
7946 cat >>confdefs.h
<<_ACEOF
7947 #define TOPICLEN ${TOPICLEN}
7951 cat >>confdefs.h
<<_ACEOF
7952 #define NICKLEN (${NICKLEN}+1)
7956 shared_modules
="yes"
7957 if test "$shared_modules" = yes; then
7958 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7960 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
7965 if test "$shared_modules" = yes; then
7967 for ac_header
in dlfcn.h
7969 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7970 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7971 cat >>confdefs.h
<<_ACEOF
7972 #define HAVE_DLFCN_H 1
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7980 $as_echo_n "checking for library containing shl_load... " >&6; }
7981 if ${ac_cv_search_shl_load+:} false
; then :
7982 $as_echo_n "(cached) " >&6
7984 ac_func_search_save_LIBS
=$LIBS
7985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h. */
7988 /* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
8003 for ac_lib
in '' dld
; do
8004 if test -z "$ac_lib"; then
8005 ac_res
="none required"
8008 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8010 if ac_fn_c_try_link
"$LINENO"; then :
8011 ac_cv_search_shl_load
=$ac_res
8013 rm -f core conftest.err conftest.
$ac_objext \
8015 if ${ac_cv_search_shl_load+:} false
; then :
8019 if ${ac_cv_search_shl_load+:} false
; then :
8022 ac_cv_search_shl_load
=no
8025 LIBS
=$ac_func_search_save_LIBS
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8028 $as_echo "$ac_cv_search_shl_load" >&6; }
8029 ac_res
=$ac_cv_search_shl_load
8030 if test "$ac_res" != no
; then :
8031 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8034 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
8037 MOD_TARGET
=hpux_shared
8038 SEDOBJ
="s/\.o/.sl/g"
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8043 $as_echo_n "checking for library containing dlopen... " >&6; }
8044 if ${ac_cv_search_dlopen+:} false
; then :
8045 $as_echo_n "(cached) " >&6
8047 ac_func_search_save_LIBS
=$LIBS
8048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8051 /* Override any GCC internal prototype to avoid an error.
8052 Use char because int might match the return type of a GCC
8053 builtin and then its argument prototype would still apply. */
8066 for ac_lib
in '' dl c_r
; do
8067 if test -z "$ac_lib"; then
8068 ac_res
="none required"
8071 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8073 if ac_fn_c_try_link
"$LINENO"; then :
8074 ac_cv_search_dlopen
=$ac_res
8076 rm -f core conftest.err conftest.
$ac_objext \
8078 if ${ac_cv_search_dlopen+:} false
; then :
8082 if ${ac_cv_search_dlopen+:} false
; then :
8085 ac_cv_search_dlopen
=no
8088 LIBS
=$ac_func_search_save_LIBS
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8091 $as_echo "$ac_cv_search_dlopen" >&6; }
8092 ac_res
=$ac_cv_search_dlopen
8093 if test "$ac_res" != no
; then :
8094 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8097 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8100 MOD_TARGET
=shared_modules
8101 SEDOBJ
="s/\.o/.so/g"
8102 if test "$AppleGCC" = yes; then
8103 for ac_header
in mach
-o/dyld.h
8105 ac_fn_c_check_header_mongrel
"$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8106 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
; then :
8107 cat >>confdefs.h
<<_ACEOF
8108 #define HAVE_MACH_O_DYLD_H 1
8116 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8117 if test "x$ac_cv_func_dlsym" = xyes
; then :
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8122 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8127 for ac_func
in dlfunc
8129 ac_fn_c_check_func
"$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8130 if test "x$ac_cv_func_dlfunc" = xyes
; then :
8131 cat >>confdefs.h
<<_ACEOF
8132 #define HAVE_DLFUNC 1
8151 cat >>confdefs.h
<<_ACEOF
8152 #define SHARED_SUFFIX "$SUFFIX"
8156 if test "$shared_modules" = yes; then
8157 # The GNU linker requires the -export-dynamic option to make
8158 # all symbols visible in the dynamic symbol table.
8159 hold_ldflags
=$LDFLAGS
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8161 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8162 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
8163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8174 if ac_fn_c_try_link
"$LINENO"; then :
8179 rm -f core conftest.err conftest.
$ac_objext \
8180 conftest
$ac_exeext conftest.
$ac_ext
8181 LDFLAGS
=$hold_ldflags
8183 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
8184 found
="no, IRIX ld uses -B,dynamic"
8185 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
8188 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
8189 found
="no, AIX ld uses -G -brtl"
8190 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8194 $as_echo "$found" >&6; }
8196 if test "$found" = yes; then
8197 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8201 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8202 if test "$SGS" = "yes"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8204 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8205 PICFLAGS
="-KPIC -DPIC -G"
8208 if test "$AppleGCC" = "yes"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8210 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8211 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
8213 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8215 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8216 PICFLAGS
="+z -r -q -n -c"
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8218 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8220 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8225 $as_echo "yes" >&6; }
8226 PICFLAGS
="$PICFLAGS +ESfic"
8229 LDFLAGS
="${LDFLAGS} -Wl,-E"
8231 if test "$Tru" = yes -a "$CC" != gcc
; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8233 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8234 PICFLAGS
="-shared -expect_unresolved '*' "
8235 LDFLAGS
="-call_shared"
8237 if test -z "$PICFLAGS"; then
8238 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8240 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8241 PICFLAGS
="-fPIC -DPIC -shared"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8250 # rpath, for finding libratbox.so at run time
8251 hold_ldflags
=$LDFLAGS
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8253 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8254 LDFLAGS
="${LDFLAGS} -Wl,-rpath=${libdir}"
8255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8266 if ac_fn_c_try_link
"$LINENO"; then :
8271 rm -f core conftest.err conftest.
$ac_objext \
8272 conftest
$ac_exeext conftest.
$ac_ext
8273 LDFLAGS
=$hold_ldflags
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8275 $as_echo "$found" >&6; }
8276 if test "$found" = yes; then
8277 LDFLAGS
="${LDFLAGS} -Wl,-rpath=\${libdir}"
8280 # This must be down here, or it will mess up checks like the ones
8281 # for -Wl,-export-dynamic
8284 # Check whether --enable-warnings was given.
8285 if test "${enable_warnings+set}" = set; then :
8286 enableval
=$enable_warnings;
8287 IRC_CFLAGS
="$IRC_CFLAGS -O0"
8288 CFLAGS
="$IRC_CFLAGS"
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8292 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8293 if test "${GCC-no}" = yes
8295 if ${charybdis_cv_c_gcc_w_all+:} false
; then :
8296 $as_echo_n "(cached) " >&6
8299 oldcflags
="${CFLAGS-}"
8300 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8312 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8318 if ac_fn_c_try_compile
"$LINENO"; then :
8319 charybdis_cv_c_gcc_w_all
=yes
8321 charybdis_cv_c_gcc_w_all
=no
8323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8324 CFLAGS
="${oldcflags}"
8327 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
8328 CWARNS
="${CWARNS}-Wall "
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8330 $as_echo "ok" >&6; }
8332 charybdis_cv_c_gcc_w_all
=''
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8343 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8344 if test "${GCC-no}" = yes
8346 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false
; then :
8347 $as_echo_n "(cached) " >&6
8350 oldcflags
="${CFLAGS-}"
8351 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8353 /* end confdefs.h. */
8363 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8369 if ac_fn_c_try_compile
"$LINENO"; then :
8370 charybdis_cv_c_gcc_w_pointer_arith
=yes
8372 charybdis_cv_c_gcc_w_pointer_arith
=no
8374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8375 CFLAGS
="${oldcflags}"
8378 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
8379 CWARNS
="${CWARNS}-Wpointer-arith "
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8381 $as_echo "ok" >&6; }
8383 charybdis_cv_c_gcc_w_pointer_arith
=''
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8394 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8395 if test "${GCC-no}" = yes
8397 if ${charybdis_cv_c_gcc_w_implicit+:} false
; then :
8398 $as_echo_n "(cached) " >&6
8401 oldcflags
="${CFLAGS-}"
8402 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8403 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8414 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8420 if ac_fn_c_try_compile
"$LINENO"; then :
8421 charybdis_cv_c_gcc_w_implicit
=yes
8423 charybdis_cv_c_gcc_w_implicit
=no
8425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8426 CFLAGS
="${oldcflags}"
8429 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
8430 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8432 $as_echo "ok" >&6; }
8434 charybdis_cv_c_gcc_w_implicit
=''
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8445 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8446 if test "${GCC-no}" = yes
8448 if ${charybdis_cv_c_gcc_w_cast_align+:} false
; then :
8449 $as_echo_n "(cached) " >&6
8452 oldcflags
="${CFLAGS-}"
8453 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8455 /* end confdefs.h. */
8465 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8471 if ac_fn_c_try_compile
"$LINENO"; then :
8472 charybdis_cv_c_gcc_w_cast_align
=yes
8474 charybdis_cv_c_gcc_w_cast_align
=no
8476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8477 CFLAGS
="${oldcflags}"
8480 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
8481 CWARNS
="${CWARNS}-Wcast-align "
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8483 $as_echo "ok" >&6; }
8485 charybdis_cv_c_gcc_w_cast_align
=''
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 $as_echo "no" >&6; }
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8496 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8497 if test "${GCC-no}" = yes
8499 if ${charybdis_cv_c_gcc_w_cast_qual+:} false
; then :
8500 $as_echo_n "(cached) " >&6
8503 oldcflags
="${CFLAGS-}"
8504 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8516 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8522 if ac_fn_c_try_compile
"$LINENO"; then :
8523 charybdis_cv_c_gcc_w_cast_qual
=yes
8525 charybdis_cv_c_gcc_w_cast_qual
=no
8527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8528 CFLAGS
="${oldcflags}"
8531 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
8532 CWARNS
="${CWARNS}-Wcast-qual "
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8534 $as_echo "ok" >&6; }
8536 charybdis_cv_c_gcc_w_cast_qual
=''
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8547 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8548 if test "${GCC-no}" = yes
8550 if ${charybdis_cv_c_gcc_w_write_strings+:} false
; then :
8551 $as_echo_n "(cached) " >&6
8554 oldcflags
="${CFLAGS-}"
8555 CFLAGS
="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8557 /* end confdefs.h. */
8567 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8573 if ac_fn_c_try_compile
"$LINENO"; then :
8574 charybdis_cv_c_gcc_w_write_strings
=yes
8576 charybdis_cv_c_gcc_w_write_strings
=no
8578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8579 CFLAGS
="${oldcflags}"
8582 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes
; then
8583 CWARNS
="${CWARNS}-Wwrite-strings "
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8585 $as_echo "ok" >&6; }
8587 charybdis_cv_c_gcc_w_write_strings
=''
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589 $as_echo "no" >&6; }
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8598 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8599 if test "${GCC-no}" = yes
8601 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false
; then :
8602 $as_echo_n "(cached) " >&6
8605 oldcflags
="${CFLAGS-}"
8606 CFLAGS
="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8618 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8624 if ac_fn_c_try_compile
"$LINENO"; then :
8625 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=yes
8627 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=no
8629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 CFLAGS
="${oldcflags}"
8633 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes
; then
8634 CWARNS
="${CWARNS}-Werror-implicit-function-declaration "
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8636 $as_echo "ok" >&6; }
8638 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=''
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8649 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8650 if test "${GCC-no}" = yes
8652 if ${charybdis_cv_c_gcc_prototypes+:} false
; then :
8653 $as_echo_n "(cached) " >&6
8656 oldcflags
="${CFLAGS-}"
8657 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8669 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8675 if ac_fn_c_try_compile
"$LINENO"; then :
8676 charybdis_cv_c_gcc_prototypes
=yes
8678 charybdis_cv_c_gcc_prototypes
=no
8680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8681 CFLAGS
="${oldcflags}"
8684 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
8685 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8687 $as_echo "ok" >&6; }
8689 charybdis_cv_c_gcc_prototypes
=''
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8700 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8701 if test "${GCC-no}" = yes
8703 if ${charybdis_cv_c_gcc_parenthesis+:} false
; then :
8704 $as_echo_n "(cached) " >&6
8707 oldcflags
="${CFLAGS-}"
8708 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8709 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8720 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8726 if ac_fn_c_try_compile
"$LINENO"; then :
8727 charybdis_cv_c_gcc_parenthesis
=yes
8729 charybdis_cv_c_gcc_parenthesis
=no
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8732 CFLAGS
="${oldcflags}"
8735 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
8736 CWARNS
="${CWARNS}-Wparenthesis "
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8738 $as_echo "ok" >&6; }
8740 charybdis_cv_c_gcc_parenthesis
=''
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8751 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8752 if test "${GCC-no}" = yes
8754 if ${charybdis_cv_c_gcc_w+:} false
; then :
8755 $as_echo_n "(cached) " >&6
8758 oldcflags
="${CFLAGS-}"
8759 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8771 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8777 if ac_fn_c_try_compile
"$LINENO"; then :
8778 charybdis_cv_c_gcc_w
=yes
8780 charybdis_cv_c_gcc_w
=no
8782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8783 CFLAGS
="${oldcflags}"
8786 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
8787 CWARNS
="${CWARNS}-W -Wno-unused "
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8789 $as_echo "ok" >&6; }
8791 charybdis_cv_c_gcc_w
=''
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8793 $as_echo "no" >&6; }
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8802 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8803 if test "${GCC-no}" = yes
8805 if ${charybdis_cv_c_gcc_w_extra+:} false
; then :
8806 $as_echo_n "(cached) " >&6
8809 oldcflags
="${CFLAGS-}"
8810 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8812 /* end confdefs.h. */
8822 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8828 if ac_fn_c_try_compile
"$LINENO"; then :
8829 charybdis_cv_c_gcc_w_extra
=yes
8831 charybdis_cv_c_gcc_w_extra
=no
8833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8834 CFLAGS
="${oldcflags}"
8837 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
8838 CWARNS
="${CWARNS}-Wextra "
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8840 $as_echo "ok" >&6; }
8842 charybdis_cv_c_gcc_w_extra
=''
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844 $as_echo "no" >&6; }
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8848 $as_echo "no" >&6; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8853 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8854 if test "${GCC-no}" = yes
8856 if ${charybdis_cv_c_gcc_w_shadow+:} false
; then :
8857 $as_echo_n "(cached) " >&6
8860 oldcflags
="${CFLAGS-}"
8861 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8873 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8879 if ac_fn_c_try_compile
"$LINENO"; then :
8880 charybdis_cv_c_gcc_w_shadow
=yes
8882 charybdis_cv_c_gcc_w_shadow
=no
8884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8885 CFLAGS
="${oldcflags}"
8888 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
8889 CWARNS
="${CWARNS}-Wshadow "
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8891 $as_echo "ok" >&6; }
8893 charybdis_cv_c_gcc_w_shadow
=''
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8899 $as_echo "no" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8904 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
8905 if test "${GCC-no}" = yes
8907 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false
; then :
8908 $as_echo_n "(cached) " >&6
8911 oldcflags
="${CFLAGS-}"
8912 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
8913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8914 /* end confdefs.h. */
8924 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8930 if ac_fn_c_try_compile
"$LINENO"; then :
8931 charybdis_cv_c_gcc_w_missing_noreturn
=yes
8933 charybdis_cv_c_gcc_w_missing_noreturn
=no
8935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8936 CFLAGS
="${oldcflags}"
8939 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
8940 CWARNS
="${CWARNS}-Wmissing-noreturn "
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8942 $as_echo "ok" >&6; }
8944 charybdis_cv_c_gcc_w_missing_noreturn
=''
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946 $as_echo "no" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8955 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
8956 if test "${GCC-no}" = yes
8958 if ${charybdis_cv_c_gcc_w_undef+:} false
; then :
8959 $as_echo_n "(cached) " >&6
8962 oldcflags
="${CFLAGS-}"
8963 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
8964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h. */
8975 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8981 if ac_fn_c_try_compile
"$LINENO"; then :
8982 charybdis_cv_c_gcc_w_undef
=yes
8984 charybdis_cv_c_gcc_w_undef
=no
8986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8987 CFLAGS
="${oldcflags}"
8990 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
8991 CWARNS
="${CWARNS}-Wundef "
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8993 $as_echo "ok" >&6; }
8995 charybdis_cv_c_gcc_w_undef
=''
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997 $as_echo "no" >&6; }
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9001 $as_echo "no" >&6; }
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9006 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
9007 if test "${GCC-no}" = yes
9009 if ${charybdis_cv_c_gcc_w_packed+:} false
; then :
9010 $as_echo_n "(cached) " >&6
9013 oldcflags
="${CFLAGS-}"
9014 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
9015 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9026 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9032 if ac_fn_c_try_compile
"$LINENO"; then :
9033 charybdis_cv_c_gcc_w_packed
=yes
9035 charybdis_cv_c_gcc_w_packed
=no
9037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9038 CFLAGS
="${oldcflags}"
9041 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
9042 CWARNS
="${CWARNS}-Wpacked "
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9044 $as_echo "ok" >&6; }
9046 charybdis_cv_c_gcc_w_packed
=''
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9048 $as_echo "no" >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9057 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
9058 if test "${GCC-no}" = yes
9060 if ${charybdis_cv_c_gcc_w_nested_externs+:} false
; then :
9061 $as_echo_n "(cached) " >&6
9064 oldcflags
="${CFLAGS-}"
9065 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9077 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9083 if ac_fn_c_try_compile
"$LINENO"; then :
9084 charybdis_cv_c_gcc_w_nested_externs
=yes
9086 charybdis_cv_c_gcc_w_nested_externs
=no
9088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9089 CFLAGS
="${oldcflags}"
9092 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
9093 CWARNS
="${CWARNS}-Wnested-externs "
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9095 $as_echo "ok" >&6; }
9097 charybdis_cv_c_gcc_w_nested_externs
=''
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 $as_echo "no" >&6; }
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9108 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9109 if test "${GCC-no}" = yes
9111 if ${charybdis_cv_c_gcc_w_unused+:} false
; then :
9112 $as_echo_n "(cached) " >&6
9115 oldcflags
="${CFLAGS-}"
9116 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9128 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9134 if ac_fn_c_try_compile
"$LINENO"; then :
9135 charybdis_cv_c_gcc_w_unused
=yes
9137 charybdis_cv_c_gcc_w_unused
=no
9139 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9140 CFLAGS
="${oldcflags}"
9143 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
9144 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9146 $as_echo "ok" >&6; }
9148 charybdis_cv_c_gcc_w_unused
=''
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9150 $as_echo "no" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9159 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9160 if test "${GCC-no}" = yes
9162 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false
; then :
9163 $as_echo_n "(cached) " >&6
9166 oldcflags
="${CFLAGS-}"
9167 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9169 /* end confdefs.h. */
9179 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9185 if ac_fn_c_try_compile
"$LINENO"; then :
9186 charybdis_cv_c_gcc_w_redundant_decls
=yes
9188 charybdis_cv_c_gcc_w_redundant_decls
=no
9190 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9191 CFLAGS
="${oldcflags}"
9194 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
9195 CWARNS
="${CWARNS}-Wredundant-decls "
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9197 $as_echo "ok" >&6; }
9199 charybdis_cv_c_gcc_w_redundant_decls
=''
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205 $as_echo "no" >&6; }
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9210 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9211 if test "${GCC-no}" = yes
9213 if ${charybdis_cv_c_gcc_w_float_equal+:} false
; then :
9214 $as_echo_n "(cached) " >&6
9217 oldcflags
="${CFLAGS-}"
9218 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9230 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9236 if ac_fn_c_try_compile
"$LINENO"; then :
9237 charybdis_cv_c_gcc_w_float_equal
=yes
9239 charybdis_cv_c_gcc_w_float_equal
=no
9241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9242 CFLAGS
="${oldcflags}"
9245 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
9246 CWARNS
="${CWARNS}-Wfloat-equal "
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9248 $as_echo "ok" >&6; }
9250 charybdis_cv_c_gcc_w_float_equal
=''
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9256 $as_echo "no" >&6; }
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9261 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9262 if test "${GCC-no}" = yes
9264 if ${charybdis_cv_c_gcc_w_format+:} false
; then :
9265 $as_echo_n "(cached) " >&6
9268 oldcflags
="${CFLAGS-}"
9269 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9281 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9287 if ac_fn_c_try_compile
"$LINENO"; then :
9288 charybdis_cv_c_gcc_w_format
=yes
9290 charybdis_cv_c_gcc_w_format
=no
9292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9293 CFLAGS
="${oldcflags}"
9296 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
9297 CWARNS
="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9299 $as_echo "ok" >&6; }
9301 charybdis_cv_c_gcc_w_format
=''
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9303 $as_echo "no" >&6; }
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307 $as_echo "no" >&6; }
9311 IRC_CFLAGS
="$CFLAGS"
9316 if test "$shared_modules" = no
; then
9318 MOD_TARGET
="libmodules.a"
9319 MODULES_LIBS
="../modules/libmodules.a"
9322 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9325 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9328 if test "$shared_modules" = yes; then
9330 ac_fn_c_check_func
"$LINENO" "nlist" "ac_cv_func_nlist"
9331 if test "x$ac_cv_func_nlist" = xyes
; then :
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9335 $as_echo_n "checking for nlist in -ldl... " >&6; }
9336 if ${ac_cv_lib_dl_nlist+:} false
; then :
9337 $as_echo_n "(cached) " >&6
9339 ac_check_lib_save_LIBS
=$LIBS
9341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9344 /* Override any GCC internal prototype to avoid an error.
9345 Use char because int might match the return type of a GCC
9346 builtin and then its argument prototype would still apply. */
9359 if ac_fn_c_try_link
"$LINENO"; then :
9360 ac_cv_lib_dl_nlist
=yes
9362 ac_cv_lib_dl_nlist
=no
9364 rm -f core conftest.err conftest.
$ac_objext \
9365 conftest
$ac_exeext conftest.
$ac_ext
9366 LIBS
=$ac_check_lib_save_LIBS
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9369 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9370 if test "x$ac_cv_lib_dl_nlist" = xyes
; then :
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9374 $as_echo_n "checking for nlist in -lelf... " >&6; }
9375 if ${ac_cv_lib_elf_nlist+:} false
; then :
9376 $as_echo_n "(cached) " >&6
9378 ac_check_lib_save_LIBS
=$LIBS
9380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9398 if ac_fn_c_try_link
"$LINENO"; then :
9399 ac_cv_lib_elf_nlist
=yes
9401 ac_cv_lib_elf_nlist
=no
9403 rm -f core conftest.err conftest.
$ac_objext \
9404 conftest
$ac_exeext conftest.
$ac_ext
9405 LIBS
=$ac_check_lib_save_LIBS
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9408 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9409 if test "x$ac_cv_lib_elf_nlist" = xyes
; then :
9420 ac_fn_c_check_header_mongrel
"$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9421 if test "x$ac_cv_header_libelf_nlist_h" = xyes
; then :
9422 nlist_h
="libelf/nlist.h"
9426 ac_fn_c_check_header_mongrel
"$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9427 if test "x$ac_cv_header_elf_nlist_h" = xyes
; then :
9428 nlist_h
="elf/nlist.h"
9432 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9433 if test "x$ac_cv_header_nlist_h" = xyes
; then :
9438 if test x
"$nlist_h" = "x"; then
9440 cat >>confdefs.h
<<_ACEOF
9441 #define SYMBOL_PREFIX ""
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9446 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9447 if ${symbol_underscores+:} false
; then :
9448 $as_echo_n "(cached) " >&6
9451 cat << EOF > conftest.c
9455 void _modinit(void);
9456 int main(int argc, char *argv[]) {
9460 /* fill the names in this way, so it'll work almost everywhere */
9461 nl[0].n_name = "_modinit";
9462 nl[1].n_name = "__modinit";
9463 nl[2].n_name = "___modinit";
9464 nl[3].n_name = "____modinit";
9465 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9467 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9468 for(i = 0; i < 4; i++) {
9469 if(nl[i].n_value != NULL)
9472 for(j = 0; j < i; j++)
9479 void _modinit(void) { return; }
9481 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
9482 symbol_underscores
=`./conftest conftest`
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9484 $as_echo "$symbol_underscores" >&6; }
9485 $RM -f conftest conftest.c
9490 cat >>confdefs.h
<<_ACEOF
9491 #define SYMBOL_PREFIX "${symbol_underscores}"
9497 IRC_CFLAGS
="$IRC_CFLAGS $CWARNS"
9512 if test "$prefix" = "NONE"; then
9514 cat >>confdefs.h
<<_ACEOF
9515 #define IRCD_PREFIX "$ac_default_prefix"
9522 prefix
=`echo $prefix | sed 's/\/$//'`
9524 cat >>confdefs.h
<<_ACEOF
9525 #define IRCD_PREFIX "$prefix"
9531 ac_config_files
="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
9534 cat >confcache
<<\_ACEOF
9535 # This file is a shell script that caches the results of configure
9536 # tests run on this system so they can be shared between configure
9537 # scripts and configure runs, see configure's option --config-cache.
9538 # It is not useful on other systems. If it contains results you don't
9539 # want to keep, you may remove or edit it.
9541 # config.status only pays attention to the cache file if you give it
9542 # the --recheck option to rerun configure.
9544 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9545 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9550 # The following way of writing the cache mishandles newlines in values,
9551 # but we know of no workaround that is simple, portable, and efficient.
9552 # So, we kill variables containing newlines.
9553 # Ultrix sh set writes to stderr and can't be redirected directly,
9554 # and sets the high bit in the cache file unless we assign to the vars.
9556 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9557 eval ac_val
=\$
$ac_var
9561 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9565 _
| IFS
| as_nl
) ;; #(
9566 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9567 *) { eval $ac_var=; unset $ac_var;} ;;
9573 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9574 *${as_nl}ac_space
=\
*)
9575 # `set' does not quote correctly, so add quotes: double-quote
9576 # substitution turns \\\\ into \\, and sed turns \\ into \.
9579 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9582 # `set' quotes correctly as required by POSIX, so do not add quotes.
9583 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9592 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9594 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9596 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9597 if test -w "$cache_file"; then
9598 if test "x$cache_file" != "x/dev/null"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9600 $as_echo "$as_me: updating cache $cache_file" >&6;}
9601 if test ! -f "$cache_file" || test -h "$cache_file"; then
9602 cat confcache
>"$cache_file"
9604 case $cache_file in #(
9606 mv -f confcache
"$cache_file"$$
&&
9607 mv -f "$cache_file"$$
"$cache_file" ;; #(
9609 mv -f confcache
"$cache_file" ;;
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9615 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9620 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9621 # Let make expand exec_prefix.
9622 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9624 DEFS
=-DHAVE_CONFIG_H
9629 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9630 # 1. Remove the extension, and $U if already installed.
9631 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9632 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9633 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9634 # will be set to the directory where LIBOBJS objects are built.
9635 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9636 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9640 LTLIBOBJS
=$ac_ltlibobjs
9646 : "${CONFIG_STATUS=./config.status}"
9648 ac_clean_files_save
=$ac_clean_files
9649 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9651 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9653 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9655 # Generated by $as_me.
9656 # Run this file to recreate the current configuration.
9657 # Compiler output produced by configure, useful for debugging
9658 # configure, is in config.log if it exists.
9664 SHELL=\${CONFIG_SHELL-$SHELL}
9667 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
9668 ## -------------------- ##
9669 ## M4sh Initialization. ##
9670 ## -------------------- ##
9672 # Be more Bourne compatible
9673 DUALCASE
=1; export DUALCASE
# for MKS sh
9674 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9677 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9678 # is contrary to our usage. Disable this feature.
9679 alias -g '${1+"$@"}'='"$@"'
9680 setopt NO_GLOB_SUBST
9682 case `(set -o) 2>/dev/null` in #(
9694 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9695 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9696 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9697 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9698 # Prefer a ksh shell builtin over an external printf program on Solaris,
9699 # but without wasting forks for bash or zsh.
9700 if test -z "$BASH_VERSION$ZSH_VERSION" \
9701 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9702 as_echo='print
-r --'
9703 as_echo_n='print
-rn --'
9704 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9705 as_echo='printf %s
\n'
9706 as_echo_n='printf %s
'
9708 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9709 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9710 as_echo_n='/usr
/ucb
/echo -n'
9712 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9713 as_echo_n_body='eval
9717 expr "X$arg" : "X\\(.*\\)$as_nl";
9718 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9720 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9722 export as_echo_n_body
9723 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9726 as_echo='sh
-c $as_echo_body as_echo
'
9729 # The user is always right.
9730 if test "${PATH_SEPARATOR+set}" != set; then
9732 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9733 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9740 # We need space, tab and new line, in precisely that order. Quoting is
9741 # there to prevent editors from complaining about space-tab.
9742 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9743 # splitting by setting IFS to empty value.)
9746 # Find who we are. Look in the path if we contain no directory separator.
9749 *[\\/]* ) as_myself=$0 ;;
9750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 test -z "$as_dir" && as_dir=.
9755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9761 # We did not find ourselves, most probably we were run as `sh COMMAND'
9762 # in which case we are not to be found in the path.
9763 if test "x$as_myself" = x
; then
9766 if test ! -f "$as_myself"; then
9767 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9771 # Unset variables that we do not need and which cause bugs (e.g. in
9772 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9773 # suppresses any "Segmentation fault" message there. '((' could
9774 # trigger a bug in pdksh 5.2.14.
9775 for as_var
in BASH_ENV ENV MAIL MAILPATH
9776 do eval test x\
${$as_var+set} = xset \
9777 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9790 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9793 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9794 # ----------------------------------------
9795 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9796 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9797 # script with STATUS, using 1 if that was 0.
9800 as_status
=$1; test $as_status -eq 0 && as_status
=1
9802 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9803 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9805 $as_echo "$as_me: error: $2" >&2
9806 as_fn_exit
$as_status
9810 # as_fn_set_status STATUS
9811 # -----------------------
9812 # Set $? to STATUS, without forking.
9816 } # as_fn_set_status
9820 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9830 # Portably unset VAR.
9833 { eval $1=; unset $1;}
9835 as_unset
=as_fn_unset
9836 # as_fn_append VAR VALUE
9837 # ----------------------
9838 # Append the text in VALUE to the end of the definition contained in VAR. Take
9839 # advantage of any shell optimizations that allow amortized linear growth over
9840 # repeated appends, instead of the typical quadratic growth present in naive
9842 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9843 eval 'as_fn_append ()
9854 # as_fn_arith ARG...
9855 # ------------------
9856 # Perform arithmetic evaluation on the ARGs, and store the result in the
9857 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9858 # must be portable across $(()) and expr.
9859 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9860 eval 'as_fn_arith ()
9867 as_val
=`expr "$@" || test $? -eq 1`
9872 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9873 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9879 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9880 as_basename
=basename
9885 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9891 as_me
=`$as_basename -- "$0" ||
9892 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9893 X"$0" : 'X\(//\)$' \| \
9894 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9896 sed '/^.*\/\([^/][^/]*\)\/*$/{
9910 # Avoid depending upon Character Ranges.
9911 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9912 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9913 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9914 as_cr_digits
='0123456789'
9915 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9917 ECHO_C
= ECHO_N
= ECHO_T
=
9918 case `echo -n x` in #(((((
9920 case `echo 'xy\c'` in
9921 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9923 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9930 rm -f conf$$ conf$$.exe conf$$.
file
9931 if test -d conf$$.dir
; then
9932 rm -f conf$$.dir
/conf$$.
file
9935 mkdir conf$$.dir
2>/dev
/null
9937 if (echo >conf$$.
file) 2>/dev
/null
; then
9938 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9940 # ... but there are two gotchas:
9941 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9942 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9943 # In both cases, we have to default to `cp -p'.
9944 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
9946 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9954 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9955 rmdir conf$$.dir
2>/dev
/null
9960 # Create "$as_dir" as a directory, including parents if necessary.
9965 -*) as_dir
=.
/$as_dir;;
9967 test -d "$as_dir" || eval $as_mkdir_p || {
9971 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9972 *) as_qdir
=$as_dir;;
9974 as_dirs
="'$as_qdir' $as_dirs"
9975 as_dir
=`$as_dirname -- "$as_dir" ||
9976 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9977 X"$as_dir" : 'X\(//\)[^/]' \| \
9978 X"$as_dir" : 'X\(//\)$' \| \
9979 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9980 $as_echo X"$as_dir" |
9981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9998 test -d "$as_dir" && break
10000 test -z "$as_dirs" || eval "mkdir $as_dirs"
10001 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10005 if mkdir -p .
2>/dev
/null
; then
10006 as_mkdir_p
='mkdir -p "$as_dir"'
10008 test -d .
/-p && rmdir .
/-p
10012 if test -x / >/dev
/null
2>&1; then
10013 as_test_x
='test -x'
10015 if ls -dL / >/dev
/null
2>&1; then
10022 if test -d "$1"; then
10028 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10029 ???[sx]*):;;*)false;;esac;fi
10033 as_executable_p
=$as_test_x
10035 # Sed expression to map a string onto a valid CPP name.
10036 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10038 # Sed expression to map a string onto a valid variable name.
10039 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10043 ## ----------------------------------- ##
10044 ## Main body of $CONFIG_STATUS script. ##
10045 ## ----------------------------------- ##
10047 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10049 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10050 # Save the log message, to keep $0 and so on meaningful, and to
10051 # report actual input values of CONFIG_FILES etc. instead of their
10052 # values after options handling.
10054 This file was extended by charybdis $as_me 3.4.0-dev, which was
10055 generated by GNU Autoconf 2.68. Invocation command line was
10057 CONFIG_FILES = $CONFIG_FILES
10058 CONFIG_HEADERS = $CONFIG_HEADERS
10059 CONFIG_LINKS = $CONFIG_LINKS
10060 CONFIG_COMMANDS = $CONFIG_COMMANDS
10063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10068 case $ac_config_files in *"
10069 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10072 case $ac_config_headers in *"
10073 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10078 # Files that config.status was made for.
10079 config_files="$ac_config_files"
10080 config_headers="$ac_config_headers"
10084 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10086 \`$as_me' instantiates files and other configuration actions
10087 from templates according to the current configuration. Unless the files
10088 and actions are specified as TAGs, all are instantiated by default.
10090 Usage: $0 [OPTION]... [TAG]...
10092 -h, --help print this help, then exit
10093 -V, --version print version number and configuration settings, then exit
10094 --config print configuration, then exit
10095 -q, --quiet, --silent
10096 do not print progress messages
10097 -d, --debug don't remove temporary files
10098 --recheck update $as_me by reconfiguring in the same conditions
10099 --file=FILE[:TEMPLATE]
10100 instantiate the configuration file FILE
10101 --header=FILE[:TEMPLATE]
10102 instantiate the configuration header FILE
10104 Configuration files:
10107 Configuration headers:
10110 Report bugs to the package provider."
10113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10114 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10116 charybdis config.status 3.4.0-dev
10117 configured by $0, generated by GNU Autoconf 2.68,
10118 with options \\"\$ac_cs_config\\"
10120 Copyright (C) 2010 Free Software Foundation, Inc.
10121 This config.status script is free software; the Free Software Foundation
10122 gives unlimited permission to copy, distribute and modify it."
10127 test -n "\$AWK" || AWK=awk
10130 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10131 # The default lists apply if the user does not specify any file.
10137 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10138 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10142 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10154 # Handling of the options.
10155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10158 $as_echo "$ac_cs_version"; exit ;;
10159 --config | --confi | --conf | --con | --co | --c )
10160 $as_echo "$ac_cs_config"; exit ;;
10161 --debug | --debu | --deb | --de | --d | -d )
10163 --file | --fil | --fi | --f )
10166 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10167 '') as_fn_error $?
"missing file argument" ;;
10169 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10170 ac_need_defaults
=false
;;
10171 --header | --heade | --head | --hea )
10174 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10176 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10177 ac_need_defaults
=false
;;
10179 # Conflict between --help and --header
10180 as_fn_error $?
"ambiguous option: \`$1'
10181 Try \`$0 --help' for more information.";;
10182 --help | --hel | -h )
10183 $as_echo "$ac_cs_usage"; exit ;;
10184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10188 # This is an error.
10189 -*) as_fn_error $?
"unrecognized option: \`$1'
10190 Try \`$0 --help' for more information." ;;
10192 *) as_fn_append ac_config_targets
" $1"
10193 ac_need_defaults
=false
;;
10199 ac_configure_extra_args
=
10201 if $ac_cs_silent; then
10203 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10208 if \$ac_cs_recheck; then
10209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10212 CONFIG_SHELL='$SHELL'
10213 export CONFIG_SHELL
10218 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10223 ## Running $as_me. ##
10229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10232 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10234 # Handling of arguments.
10235 for ac_config_target
in $ac_config_targets
10237 case $ac_config_target in
10238 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10239 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10240 "bandb/Makefile") CONFIG_FILES
="$CONFIG_FILES bandb/Makefile" ;;
10241 "ssld/Makefile") CONFIG_FILES
="$CONFIG_FILES ssld/Makefile" ;;
10242 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
10243 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10244 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
10245 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10246 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10247 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
10249 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10254 # If the user did not use the arguments to specify the items to instantiate,
10255 # then the envvar interface is used. Set only those that are not.
10256 # We use the long form for the default assignment because of an extremely
10257 # bizarre bug on SunOS 4.1.3.
10258 if $ac_need_defaults; then
10259 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10260 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10263 # Have a temporary directory for convenience. Make it in the build tree
10264 # simply because there is no reason against having it here, and in addition,
10265 # creating and moving files from /tmp can sometimes cause problems.
10266 # Hook for its removal unless debugging.
10267 # Note that there is a small window in which the directory will not be cleaned:
10268 # after its creation but before its name has been assigned to `$tmp'.
10272 trap 'exit_status=$?
10273 : "${ac_tmp:=$tmp}"
10274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10276 trap 'as_fn_exit 1' 1 2 13 15
10278 # Create a (secure) tmp directory for tmp files.
10281 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10285 tmp
=.
/conf$$
-$RANDOM
10286 (umask 077 && mkdir "$tmp")
10287 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10290 # Set up the scripts for CONFIG_FILES section.
10291 # No need to generate them if there are no CONFIG_FILES.
10292 # This happens for instance with `./config.status config.h'.
10293 if test -n "$CONFIG_FILES"; then
10296 ac_cr
=`echo X | tr X '\015'`
10297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10298 # But we know of no other shell where ac_cr would be empty at this
10299 # point, so we can use a bashism as a fallback.
10300 if test "x$ac_cr" = x
; then
10301 eval ac_cr
=\$
\'\\r
\'
10303 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10307 ac_cs_awk_cr
=$ac_cr
10310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10315 echo "cat >conf$$subs.awk <<_ACEOF" &&
10316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10318 } >conf$$subs.sh ||
10319 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10322 for ac_last_try in false false false false false :; do
10323 . ./conf$$subs.sh ||
10324 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10326 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10327 if test $ac_delim_n = $ac_delim_num; then
10329 elif $ac_last_try; then
10330 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10332 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10335 rm -f conf$$subs.sh
10337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10338 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10342 s/^/S["/; s
/!.
*/"]=/
10352 s/\(.\{148\}\)..*/\1/
10354 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10359 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10366 s/\(.\{148\}\)..*/\1/
10368 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10372 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10377 ' <conf$$subs.awk | sed '
10382 ' >>$CONFIG_STATUS || ac_write_fail=1
10383 rm -f conf$$subs.awk
10384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10386 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10387 for (key in S) S_is_set[key] = 1
10393 nfields = split(line, field, "@
")
10395 len = length(field[1])
10396 for (i = 2; i < nfields; i++) {
10398 keylen = length(key)
10399 if (S_is_set[key]) {
10401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10402 len += length(value) + length(field[++i])
10413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10414 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10415 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10418 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10419 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10424 # trailing colons and then remove the whole line if VPATH becomes empty
10425 # (actually we leave an empty line to preserve line numbers).
10426 if test "x
$srcdir" = x.; then
10427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10446 fi # test -n "$CONFIG_FILES"
10448 # Set up the scripts for CONFIG_HEADERS section.
10449 # No need to generate them if there are no CONFIG_HEADERS.
10450 # This happens for instance with `./config.status Makefile'.
10451 if test -n "$CONFIG_HEADERS"; then
10452 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10456 # Transform confdefs.h into an awk script `defines.awk', embedded as
10457 # here-document in config.status, that substitutes the proper values into
10458 # config.h.in to produce config.h.
10460 # Create a delimiter string that does not exist in confdefs.h, to ease
10461 # handling of long lines.
10463 for ac_last_try in false false :; do
10464 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10465 if test -z "$ac_tt"; then
10467 elif $ac_last_try; then
10468 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10470 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10474 # For the awk script, D is an array of macro values keyed by name,
10475 # likewise P contains macro parameters if any. Preserve backslash
10476 # newline sequences.
10478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10480 s/.\{148\}/&'"$ac_delim"'/g
10483 s/^[ ]*#[ ]*define[ ][ ]*/ /
10490 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10492 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10497 D["\
1"]=" \
3\\\\\\n
"\\/p
10499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10504 s/.\{148\}/&'"$ac_delim"'/g
10509 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10512 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10514 ' <confdefs.h | sed '
10515 s/'"$ac_delim"'/"\\\
10516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10519 for (key in D) D_is_set[key] = 1
10522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10524 split(line, arg, " ")
10525 if (arg[1] == "#") {
10529 defundef
= substr
(arg
[1], 2)
10532 split(mac1
, mac2
, "(") #)
10534 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10535 if (D_is_set
[macro
]) {
10536 # Preserve the white space surrounding the "#".
10537 print prefix
"define", macro P
[macro
] D
[macro
]
10540 # Replace #undef with comments. This is necessary, for example,
10541 # in the case of _POSIX_SOURCE, which is predefined and required
10542 # on some systems where configure will not decide to define it.
10543 if (defundef
== "undef") {
10544 print
"/*", prefix defundef
, macro
, "*/"
10552 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10553 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10554 fi # test -n "$CONFIG_HEADERS"
10557 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10562 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10564 case $ac_mode$ac_tag in
10566 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10567 :[FH
]-) ac_tag
=-:-;;
10568 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10585 -) ac_f
="$ac_tmp/stdin";;
10586 *) # Look for the file first in the build tree, then in the source tree
10587 # (if the path is not absolute). The absolute path cannot be DOS-style,
10588 # because $ac_f cannot contain `:'.
10592 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10594 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10596 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10597 as_fn_append ac_file_inputs
" '$ac_f'"
10600 # Let's still pretend it is `configure' which instantiates (i.e., don't
10601 # use $as_me), people would be surprised to read:
10602 # /* config.h. Generated by config.status. */
10603 configure_input
='Generated from '`
10604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10606 if test x
"$ac_file" != x
-; then
10607 configure_input
="$ac_file. $configure_input"
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10609 $as_echo "$as_me: creating $ac_file" >&6;}
10611 # Neutralize special characters interpreted by sed in replacement strings.
10612 case $configure_input in #(
10613 *\
&* | *\
|* | *\\* )
10614 ac_sed_conf_input
=`$as_echo "$configure_input" |
10615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10616 *) ac_sed_conf_input
=$configure_input;;
10620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10621 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10626 ac_dir
=`$as_dirname -- "$ac_file" ||
10627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10628 X"$ac_file" : 'X\(//\)[^/]' \| \
10629 X"$ac_file" : 'X\(//\)$' \| \
10630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10631 $as_echo X"$ac_file" |
10632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10636 /^X\(\/\/\)[^/].*/{
10649 as_dir
="$ac_dir"; as_fn_mkdir_p
10653 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10655 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10656 # A ".." for each directory in $ac_dir_suffix.
10657 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10658 case $ac_top_builddir_sub in
10659 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10660 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10663 ac_abs_top_builddir
=$ac_pwd
10664 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10665 # for backward compatibility:
10666 ac_top_builddir
=$ac_top_build_prefix
10669 .
) # We are building in place.
10671 ac_top_srcdir
=$ac_top_builddir_sub
10672 ac_abs_top_srcdir
=$ac_pwd ;;
10673 [\\/]* | ?
:[\\/]* ) # Absolute name.
10674 ac_srcdir
=$srcdir$ac_dir_suffix;
10675 ac_top_srcdir
=$srcdir
10676 ac_abs_top_srcdir
=$srcdir ;;
10677 *) # Relative name.
10678 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10679 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10680 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10682 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10692 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10693 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10697 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10698 # If the template does not know about datarootdir, expand it.
10699 # FIXME: This hack should be removed a few years after 2.60.
10700 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10712 *datarootdir
*) ac_datarootdir_seen
=yes;;
10713 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10715 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10718 ac_datarootdir_hack='
10719 s&@datadir@&$datadir&g
10720 s&@docdir@&$docdir&g
10721 s&@infodir@&$infodir&g
10722 s&@localedir@&$localedir&g
10723 s&@mandir@&$mandir&g
10724 s&\\\${datarootdir}&$datarootdir&g' ;;
10728 # Neutralize VPATH when `$srcdir' = `.'.
10729 # Shell code in configure.ac might set extrasub.
10730 # FIXME: do we really want to maintain this feature?
10731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10732 ac_sed_extra="$ac_vpsub
10735 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10737 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10738 s
|@configure_input@
|$ac_sed_conf_input|;t t
10739 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10740 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10741 s
&@srcdir@
&$ac_srcdir&;t t
10742 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10743 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10744 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10745 s
&@builddir@
&$ac_builddir&;t t
10746 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10747 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10748 s
&@INSTALL@
&$ac_INSTALL&;t t
10749 $ac_datarootdir_hack
10751 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10752 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10754 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10755 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10756 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10757 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10759 which seems to be undefined. Please make sure it is defined" >&5
10760 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10761 which seems to be undefined. Please make sure it is defined" >&2;}
10763 rm -f "$ac_tmp/stdin"
10765 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10766 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10768 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10774 if test x"$ac_file" != x-; then
10776 $as_echo "/* $configure_input */" \
10777 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10778 } >"$ac_tmp/config.h" \
10779 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10780 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10782 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10785 mv "$ac_tmp/config.h" "$ac_file" \
10786 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10789 $as_echo "/* $configure_input */" \
10790 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10791 || as_fn_error $? "could not create -" "$LINENO" 5
10803 ac_clean_files=$ac_clean_files_save
10805 test $ac_write_fail = 0 ||
10806 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10809 # configure is writing to config.log, and then calls config.status.
10810 # config.status does its own redirection, appending to config.log.
10811 # Unfortunately, on DOS this fails, as config.log is still kept open
10812 # by configure, so config.status won't be able to
write to it
; its
10813 # output is simply discarded. So we exec the FD to /dev/null,
10814 # effectively closing config.log, so it can be properly (re)opened and
10815 # appended to by config.status. When coming back to configure, we
10816 # need to make the FD available again.
10817 if test "$no_create" != yes; then
10819 ac_config_status_args
=
10820 test "$silent" = yes &&
10821 ac_config_status_args
="$ac_config_status_args --quiet"
10823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10826 # would make configure fail if this is the last instruction.
10827 $ac_cs_success || as_fn_exit
1
10831 # CONFIG_SUBDIRS section.
10833 if test "$no_recursion" != yes; then
10835 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10836 # so they do not pile up.
10837 ac_sub_configure_args
=
10839 eval "set x $ac_configure_args"
10843 if test -n "$ac_prev"; then
10848 -cache-file | --cache-file | --cache-fil | --cache-fi \
10849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10850 ac_prev
=cache_file
;;
10851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10855 --config-cache | -C)
10857 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10859 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10861 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10863 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10865 --disable-option-checking)
10869 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10871 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
10875 # Always prepend --prefix to ensure using the same prefix
10876 # in subdir configurations.
10877 ac_arg
="--prefix=$prefix"
10879 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10881 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
10884 if test "$silent" = yes; then
10885 ac_sub_configure_args
="--silent $ac_sub_configure_args"
10888 # Always prepend --disable-option-checking to silence warnings, since
10889 # different subdirs can have different --enable and --with options.
10890 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
10893 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
10895 # Do not complain, so a configure script can configure whichever
10896 # parts of a large source tree are present.
10897 test -d "$srcdir/$ac_dir" || continue
10899 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10900 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10901 $as_echo "$ac_msg" >&6
10902 as_dir
="$ac_dir"; as_fn_mkdir_p
10906 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10908 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10909 # A ".." for each directory in $ac_dir_suffix.
10910 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10911 case $ac_top_builddir_sub in
10912 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10913 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10916 ac_abs_top_builddir
=$ac_pwd
10917 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10918 # for backward compatibility:
10919 ac_top_builddir
=$ac_top_build_prefix
10922 .
) # We are building in place.
10924 ac_top_srcdir
=$ac_top_builddir_sub
10925 ac_abs_top_srcdir
=$ac_pwd ;;
10926 [\\/]* | ?
:[\\/]* ) # Absolute name.
10927 ac_srcdir
=$srcdir$ac_dir_suffix;
10928 ac_top_srcdir
=$srcdir
10929 ac_abs_top_srcdir
=$srcdir ;;
10930 *) # Relative name.
10931 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10932 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10933 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10935 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10940 # Check for guested configure; otherwise get Cygnus style configure.
10941 if test -f "$ac_srcdir/configure.gnu"; then
10942 ac_sub_configure
=$ac_srcdir/configure.gnu
10943 elif test -f "$ac_srcdir/configure"; then
10944 ac_sub_configure
=$ac_srcdir/configure
10945 elif test -f "$ac_srcdir/configure.in"; then
10946 # This should be Cygnus configure.
10947 ac_sub_configure
=$ac_aux_dir/configure
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10950 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10954 # The recursion is here.
10955 if test -n "$ac_sub_configure"; then
10956 # Make the cache file name correct relative to the subdirectory.
10957 case $cache_file in
10958 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
10959 *) # Relative name.
10960 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
10963 { $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
10964 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10965 # The eval makes quoting arguments work.
10966 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10967 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10968 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10974 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10976 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10980 if test "$cf_openssl_version_ok" = yes; then
10986 if test "$shared_modules" = yes; then
10993 Configuration of ${BRANDING_NAME}-${BRANDING_VERSION}:
10994 Install directory : $prefix
10998 Socket Engine : $SELECT_TYPE
10999 Small network : $small_net
11000 Block allocator : $balloc
11002 Nickname length : $NICKLEN
11003 Topic length : $TOPICLEN
11005 Use (g)make to compile $BRANDING_NAME, then (g)make install to install it.