2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for shadowircd 6.0.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 Free Software Foundation,
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.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x
; then
139 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required
="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev
/null
; then :
182 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
187 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir
=.
194 for as_base
in sh bash ksh sh5
; do
195 # Try only shells that exist, to save several forks.
196 as_shell
=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
199 CONFIG_SHELL
=$as_shell as_have_required
=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
210 CONFIG_SHELL
=$SHELL as_have_required
=yes
215 if test "x$CONFIG_SHELL" != x
; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x
$as_have_required = xno
; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x
${ZSH_VERSION+set} = xset
; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
234 $0: including any error possibly output before this
235 $0: message. Then install a modern shell, or manually run
236 $0: the script under such a shell if you do have one."
242 SHELL
=${CONFIG_SHELL-/bin/sh}
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE
= GREP_OPTIONS
=
246 unset CLICOLOR_FORCE GREP_OPTIONS
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
253 # Portably unset VAR.
256 { eval $1=; unset $1;}
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 # Create "$as_dir" as a directory, including parents if necessary.
285 -*) as_dir
=.
/$as_dir;;
287 test -d "$as_dir" || eval $as_mkdir_p || {
291 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294 as_dirs
="'$as_qdir' $as_dirs"
295 as_dir
=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
318 test -d "$as_dir" && break
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
332 eval 'as_fn_append ()
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
356 as_val
=`expr "$@" || test $? -eq 1`
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
368 as_status
=$?
; test $as_status -eq 0 && as_status
=1
370 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit
$as_status
377 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
384 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
390 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
396 as_me
=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
415 # Avoid depending upon Character Ranges.
416 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits
='0123456789'
420 as_cr_alnum
=$as_cr_Letters$as_cr_digits
423 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
424 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
443 chmod +x
"$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
450 # Exit status is that of the last command.
454 ECHO_C
= ECHO_N
= ECHO_T
=
455 case `echo -n x` in #(((((
457 case `echo 'xy\c'` in
458 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
467 rm -f conf$$ conf$$.exe conf$$.
file
468 if test -d conf$$.dir
; then
469 rm -f conf$$.dir
/conf$$.
file
472 mkdir conf$$.dir
2>/dev
/null
474 if (echo >conf$$.
file) 2>/dev
/null
; then
475 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
483 elif ln conf$$.
file conf$$
2>/dev
/null
; then
491 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
492 rmdir conf$$.dir
2>/dev
/null
494 if mkdir -p .
2>/dev
/null
; then
495 as_mkdir_p
='mkdir -p "$as_dir"'
497 test -d .
/-p && rmdir .
/-p
501 if test -x / >/dev
/null
2>&1; then
504 if ls -dL / >/dev
/null
2>&1; then
511 if test -d "$1"; then
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
522 as_executable_p
=$as_test_x
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 test -n "$DJDIR" || exec 7<&0 </dev
/null
535 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
542 ac_default_prefix
=/usr
/local
544 ac_config_libobj_dir
=.
551 # Identity of this package.
552 PACKAGE_NAME
='shadowircd'
553 PACKAGE_TARNAME
='shadowircd'
554 PACKAGE_VERSION
='6.0.0-dev'
555 PACKAGE_STRING
='shadowircd 6.0.0-dev'
559 ac_default_prefix
=$HOME/ircd
560 # Factoring default headers for most tests.
561 ac_includes_default
="\
563 #ifdef HAVE_SYS_TYPES_H
564 # include <sys/types.h>
566 #ifdef HAVE_SYS_STAT_H
567 # include <sys/stat.h>
573 # ifdef HAVE_STDLIB_H
578 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 #ifdef HAVE_STRINGS_H
584 # include <strings.h>
586 #ifdef HAVE_INTTYPES_H
587 # include <inttypes.h>
596 enable_option_checking
=no
597 ac_subst_vars
='LTLIBOBJS
680 program_transform_name
693 enable_option_checking
716 ac_precious_vars
='build_alias
727 ac_subdirs_all
='libratbox'
729 # Initialize some variables set by options.
731 ac_init_version
=false
732 ac_unrecognized_opts
=
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
743 program_transform_name
=s
,x
,x
,
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir
='${exec_prefix}/bin'
758 sbindir
='${exec_prefix}/sbin'
759 libexecdir
='${exec_prefix}/libexec'
760 datarootdir
='${prefix}/share'
761 datadir
='${datarootdir}'
762 sysconfdir
='${prefix}/etc'
763 sharedstatedir
='${prefix}/com'
764 localstatedir
='${prefix}/var'
765 includedir
='${prefix}/include'
766 oldincludedir
='/usr/include'
767 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
768 infodir
='${datarootdir}/info'
773 libdir
='${exec_prefix}/lib'
774 localedir
='${datarootdir}/locale'
775 mandir
='${datarootdir}/man'
781 # If the previous option needs an argument, assign it.
782 if test -n "$ac_prev"; then
783 eval $ac_prev=\
$ac_option
789 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
793 # Accept the important Cygnus configure options, so we can diagnose typos.
795 case $ac_dashdash$ac_option in
799 -bindir | --bindir | --bindi | --bind | --bin | --bi)
801 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804 -build | --build | --buil | --bui | --bu)
805 ac_prev
=build_alias
;;
806 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807 build_alias
=$ac_optarg ;;
809 -cache-file | --cache-file | --cache-fil | --cache-fi \
810 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811 ac_prev
=cache_file
;;
812 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814 cache_file
=$ac_optarg ;;
817 cache_file
=config.cache
;;
819 -datadir | --datadir | --datadi | --datad)
821 -datadir=* | --datadir=* | --datadi=* | --datad=*)
822 datadir
=$ac_optarg ;;
824 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825 | --dataroo | --dataro | --datar)
826 ac_prev
=datarootdir
;;
827 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829 datarootdir
=$ac_optarg ;;
831 -disable-* | --disable-*)
832 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
835 as_fn_error
"invalid feature name: $ac_useropt"
836 ac_useropt_orig
=$ac_useropt
837 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
842 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
843 ac_unrecognized_sep
=', ';;
845 eval enable_
$ac_useropt=no
;;
847 -docdir | --docdir | --docdi | --doc | --do)
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 -enable-* | --enable-*)
858 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
861 as_fn_error
"invalid feature name: $ac_useropt"
862 ac_useropt_orig
=$ac_useropt
863 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
868 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
869 ac_unrecognized_sep
=', ';;
871 eval enable_
$ac_useropt=\
$ac_optarg ;;
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev
=exec_prefix
;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix
=$ac_optarg ;;
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
886 -help | --help | --hel | --he | -h)
888 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
889 ac_init_help
=recursive
;;
890 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
891 ac_init_help
=short
;;
893 -host | --host | --hos | --ho)
894 ac_prev
=host_alias
;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias
=$ac_optarg ;;
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
902 htmldir
=$ac_optarg ;;
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev
=includedir
;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir
=$ac_optarg ;;
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir | --libdir | --libdi | --libd)
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev
=libexecdir
;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir
=$ac_optarg ;;
928 -localedir | --localedir | --localedi | --localed | --locale)
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir
=$ac_optarg ;;
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev
=localstatedir
;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir
=$ac_optarg ;;
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
946 # Obsolete; use --without-fp.
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev
=oldincludedir
;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir
=$ac_optarg ;;
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev
=program_prefix
;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix
=$ac_optarg ;;
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev
=program_suffix
;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix
=$ac_optarg ;;
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev
=program_transform_name
;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name
=$ac_optarg ;;
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir | --psdir | --psdi | --psd | --ps)
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site | --site | --sit)
1035 -site=* | --site=* | --sit=*)
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir
=$ac_optarg ;;
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev
=sysconfdir
;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir
=$ac_optarg ;;
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev
=target_alias
;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias
=$ac_optarg ;;
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version
=: ;;
1062 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1065 as_fn_error
"invalid package name: $ac_useropt"
1066 ac_useropt_orig
=$ac_useropt
1067 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1072 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1073 ac_unrecognized_sep
=', ';;
1075 eval with_
$ac_useropt=\
$ac_optarg ;;
1077 -without-* | --without-*)
1078 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error
"invalid package name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval with_
$ac_useropt=no
;;
1094 # Obsolete; use --with-x.
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev
=x_includes
;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes
=$ac_optarg ;;
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev
=x_libraries
;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries
=$ac_optarg ;;
1111 -*) as_fn_error
"unrecognized option: \`$ac_option'
1112 Try \`$0 --help' for more information."
1116 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1117 # Reject names that are not valid shell variable names.
1118 case $ac_envvar in #(
1119 '' | [0-9]* | *[!_$as_cr_alnum]* )
1120 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1122 eval $ac_envvar=\
$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1129 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 if test -n "$ac_prev"; then
1137 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1138 as_fn_error
"missing argument to $ac_option"
1141 if test -n "$ac_unrecognized_opts"; then
1142 case $enable_option_checking in
1144 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1145 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1149 # Check all directory arguments for consistency.
1150 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1151 datadir sysconfdir sharedstatedir localstatedir includedir \
1152 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1153 libdir localedir mandir
1155 eval ac_val
=\$
$ac_var
1156 # Remove trailing slashes.
1159 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1160 eval $ac_var=\
$ac_val;;
1162 # Be sure to have absolute directory names.
1164 [\\/$
]* | ?
:[\\/]* ) continue;;
1165 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1167 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1170 # There might be people who depend on the old broken behavior: `$host'
1171 # used to hold the argument of --host etc.
1172 # FIXME: To remove some day.
1175 target
=$target_alias
1177 # FIXME: To remove some day.
1178 if test "x$host_alias" != x
; then
1179 if test "x$build_alias" = x
; then
1180 cross_compiling
=maybe
1181 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1182 If a cross compiler is detected then cross compile mode will be used." >&2
1183 elif test "x$build_alias" != "x$host_alias"; then
1189 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1191 test "$silent" = yes && exec 6>/dev
/null
1194 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1195 ac_ls_di
=`ls -di .` &&
1196 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1197 as_fn_error
"working directory cannot be determined"
1198 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1199 as_fn_error
"pwd does not report name of working directory"
1202 # Find the source files, if location was not specified.
1203 if test -z "$srcdir"; then
1204 ac_srcdir_defaulted
=yes
1205 # Try the directory containing this script, then the parent directory.
1206 ac_confdir
=`$as_dirname -- "$as_myself" ||
1207 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1208 X"$as_myself" : 'X\(//\)[^/]' \| \
1209 X"$as_myself" : 'X\(//\)$' \| \
1210 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1211 $as_echo X"$as_myself" |
1212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1230 if test ! -r "$srcdir/$ac_unique_file"; then
1234 ac_srcdir_defaulted
=no
1236 if test ! -r "$srcdir/$ac_unique_file"; then
1237 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1238 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1240 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1242 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1244 # When building in place, set srcdir=.
1245 if test "$ac_abs_confdir" = "$ac_pwd"; then
1248 # Remove unnecessary trailing slashes from srcdir.
1249 # Double slashes in file names in object file debugging info
1250 # mess up M-x gdb in Emacs.
1252 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1254 for ac_var
in $ac_precious_vars; do
1255 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1256 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1257 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1258 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1262 # Report the --help message.
1264 if test "$ac_init_help" = "long"; then
1265 # Omit some internal or obsolete options to make the list less imposing.
1266 # This message is too long to be a string in the A/UX 3.1 sh.
1268 \`configure' configures shadowircd 6.0.0-dev to adapt to many kinds of systems.
1270 Usage: $0 [OPTION]... [VAR=VALUE]...
1272 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1273 VAR=VALUE. See below for descriptions of some of the useful variables.
1275 Defaults for the options are specified in brackets.
1278 -h, --help display this help and exit
1279 --help=short display options specific to this package
1280 --help=recursive display the short help of all the included packages
1281 -V, --version display version information and exit
1282 -q, --quiet, --silent do not print \`checking...' messages
1283 --cache-file=FILE cache test results in FILE [disabled]
1284 -C, --config-cache alias for \`--cache-file=config.cache'
1285 -n, --no-create do not create output files
1286 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1288 Installation directories:
1289 --prefix=PREFIX install architecture-independent files in PREFIX
1290 [$ac_default_prefix]
1291 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1294 By default, \`make install' will install all the files in
1295 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1296 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1297 for instance \`--prefix=\$HOME'.
1299 For better control, use the options below.
1301 Fine tuning of the installation directories:
1302 --bindir=DIR user executables [EPREFIX/bin]
1303 --sbindir=DIR system admin executables [EPREFIX/sbin]
1304 --libexecdir=DIR program executables [EPREFIX/libexec]
1305 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1306 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1307 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1308 --libdir=DIR object code libraries [EPREFIX/lib]
1309 --includedir=DIR C header files [PREFIX/include]
1310 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313 --infodir=DIR info documentation [DATAROOTDIR/info]
1314 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315 --mandir=DIR man documentation [DATAROOTDIR/man]
1316 --docdir=DIR documentation root [DATAROOTDIR/doc/shadowircd]
1317 --htmldir=DIR html documentation [DOCDIR]
1318 --dvidir=DIR dvi documentation [DOCDIR]
1319 --pdfdir=DIR pdf documentation [DOCDIR]
1320 --psdir=DIR ps documentation [DOCDIR]
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short
| recursive
) echo "Configuration of shadowircd 6.0.0-dev:";;
1334 --disable-option-checking ignore unrecognized
--enable/--with options
1335 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1336 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1337 --enable-ipv6 Enable IPv6 support
1338 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1339 --disable-openssl Disable OpenSSL support.
1340 --disable-zlib Disable ziplinks support
1341 --enable-ports Force solaris I
/O ports subsystem usage.
1342 --enable-poll Force poll
() usage.
1343 --enable-select Force
select() usage.
1344 --enable-kqueue Force kqueue
() usage.
1345 --enable-epoll Force sys_epoll usage
(Linux only
).
1346 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1347 hard
(aborts the daemon
)
1348 --enable-iodebug Enable IO Debugging hooks
1349 --enable-profile Enable profiling
1350 --disable-balloc Disable the block allocator.
1351 --enable-small-net Enable small network support.
1352 --enable-warnings Enable all sorts of warnings
for debugging.
1355 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1356 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1357 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1358 --with-confdir=DIR Directory to
install config files.
1359 --with-logdir=DIR Directory where to
write logfiles.
1360 --with-helpdir=DIR Directory to
install help files.
1361 --with-moduledir=DIR Directory to
install modules.
1362 --with-nicklen=LENGTH Set the nick length to LENGTH
(default
15, max
50)
1363 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1366 Some influential environment variables
:
1367 CC C compiler
command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1370 nonstandard directory
<lib dir
>
1371 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1372 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1373 you have headers
in a nonstandard directory
<include dir
>
1375 YACC The
`Yet Another C Compiler' implementation to use. Defaults to
1376 the first program found out of: `bison
-y', `byacc', `yacc'.
1377 YFLAGS The list of arguments that will be passed by default to $YACC.
1378 This script will default YFLAGS to the empty string to avoid a
1379 default value of `-d' given by some make applications.
1381 Use these variables to override the choices made by `configure' or to
help
1382 it to
find libraries and programs with nonstandard names
/locations.
1384 Report bugs to the package provider.
1389 if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
1391 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1392 test -d "$ac_dir" ||
1393 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1398 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1400 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1401 # A ".." for each directory in $ac_dir_suffix.
1402 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1403 case $ac_top_builddir_sub in
1404 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1405 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1408 ac_abs_top_builddir
=$ac_pwd
1409 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1410 # for backward compatibility:
1411 ac_top_builddir
=$ac_top_build_prefix
1414 .
) # We are building in place.
1416 ac_top_srcdir
=$ac_top_builddir_sub
1417 ac_abs_top_srcdir
=$ac_pwd ;;
1418 [\\/]* | ?
:[\\/]* ) # Absolute name.
1419 ac_srcdir
=$srcdir$ac_dir_suffix;
1420 ac_top_srcdir
=$srcdir
1421 ac_abs_top_srcdir
=$srcdir ;;
1423 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1424 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1425 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1427 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1429 cd "$ac_dir" || { ac_status
=$?
; continue; }
1430 # Check for guested configure.
1431 if test -f "$ac_srcdir/configure.gnu"; then
1433 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1434 elif test -f "$ac_srcdir/configure"; then
1436 $SHELL "$ac_srcdir/configure" --help=recursive
1438 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1440 cd "$ac_pwd" || { ac_status
=$?
; break; }
1444 test -n "$ac_init_help" && exit $ac_status
1445 if $ac_init_version; then
1447 shadowircd configure
6.0.0-dev
1448 generated by GNU Autoconf
2.65
1450 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1451 This configure
script is free software
; the Free Software Foundation
1452 gives unlimited permission to copy
, distribute and modify it.
1454 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1459 ## ------------------------ ##
1460 ## Autoconf initialization. ##
1461 ## ------------------------ ##
1463 # ac_fn_c_try_compile LINENO
1464 # --------------------------
1465 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1466 ac_fn_c_try_compile
()
1468 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1469 rm -f conftest.
$ac_objext
1470 if { { ac_try
="$ac_compile"
1472 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1473 *) ac_try_echo=$ac_try;;
1475 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1476 $as_echo "$ac_try_echo"; } >&5
1477 (eval "$ac_compile") 2>conftest.err
1479 if test -s conftest.err; then
1480 grep -v '^ *+' conftest.err >conftest.er1
1481 cat conftest.er1 >&5
1482 mv -f conftest.er1 conftest.err
1484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1485 test $ac_status = 0; } && {
1486 test -z "$ac_c_werror_flag" ||
1487 test ! -s conftest.err
1488 } && test -s conftest.$ac_objext; then :
1491 $as_echo "$as_me: failed program was:" >&5
1492 sed 's/^/| /' conftest.$ac_ext >&5
1496 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1497 as_fn_set_status $ac_retval
1499 } # ac_fn_c_try_compile
1501 # ac_fn_c_try_cpp LINENO
1502 # ----------------------
1503 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1507 if { { ac_try="$ac_cpp conftest.$ac_ext"
1509 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1510 *) ac_try_echo
=$ac_try;;
1512 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1513 $as_echo "$ac_try_echo"; } >&5
1514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1516 if test -s conftest.err
; then
1517 grep -v '^ *+' conftest.err
>conftest.er1
1518 cat conftest.er1
>&5
1519 mv -f conftest.er1 conftest.err
1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1522 test $ac_status = 0; } >/dev
/null
&& {
1523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1524 test ! -s conftest.err
1528 $as_echo "$as_me: failed program was:" >&5
1529 sed 's/^/| /' conftest.
$ac_ext >&5
1533 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1534 as_fn_set_status
$ac_retval
1538 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1539 # -------------------------------------------------------
1540 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1541 # the include files in INCLUDES and setting the cache variable VAR
1543 ac_fn_c_check_header_mongrel
()
1545 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1546 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1548 $as_echo_n "checking for $2... " >&6; }
1549 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1550 $as_echo_n "(cached) " >&6
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1554 $as_echo "$ac_res" >&6; }
1556 # Is the header compilable?
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1558 $as_echo_n "checking $2 usability... " >&6; }
1559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1560 /* end confdefs.h. */
1564 if ac_fn_c_try_compile
"$LINENO"; then :
1565 ac_header_compiler
=yes
1567 ac_header_compiler
=no
1569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1571 $as_echo "$ac_header_compiler" >&6; }
1573 # Is the header present?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1575 $as_echo_n "checking $2 presence... " >&6; }
1576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1580 if ac_fn_c_try_cpp
"$LINENO"; then :
1581 ac_header_preproc
=yes
1583 ac_header_preproc
=no
1585 rm -f conftest.err conftest.
$ac_ext
1586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1587 $as_echo "$ac_header_preproc" >&6; }
1589 # So? What about this header?
1590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1593 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1595 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1599 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1601 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1603 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1605 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1607 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1611 $as_echo_n "checking for $2... " >&6; }
1612 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1613 $as_echo_n "(cached) " >&6
1615 eval "$3=\$ac_header_compiler"
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1623 } # ac_fn_c_check_header_mongrel
1625 # ac_fn_c_try_run LINENO
1626 # ----------------------
1627 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1628 # that executables *can* be run.
1631 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1632 if { { ac_try
="$ac_link"
1634 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_link") 2>&5
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1643 { { case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1645 *) ac_try_echo
=$ac_try;;
1647 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648 $as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_try") 2>&5
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; }; }; then :
1655 $as_echo "$as_me: program exited with status $ac_status" >&5
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.
$ac_ext >&5
1659 ac_retval
=$ac_status
1661 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1662 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1663 as_fn_set_status
$ac_retval
1667 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1668 # -------------------------------------------------------
1669 # Tests whether HEADER exists and can be compiled using the include files in
1670 # INCLUDES, setting the cache variable VAR accordingly.
1671 ac_fn_c_check_header_compile
()
1673 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1677 $as_echo_n "(cached) " >&6
1679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1684 if ac_fn_c_try_compile
"$LINENO"; then :
1689 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1693 $as_echo "$ac_res" >&6; }
1694 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1696 } # ac_fn_c_check_header_compile
1698 # ac_fn_c_try_link LINENO
1699 # -----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded.
1703 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1704 rm -f conftest.
$ac_objext conftest
$ac_exeext
1705 if { { ac_try
="$ac_link"
1707 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_link") 2>conftest.err
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_c_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest$ac_exeext && {
1724 test "$cross_compiling" = yes ||
1725 $as_test_x conftest$ac_exeext
1729 $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1734 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1735 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1736 # interfere with the next link command; also delete a directory that is
1737 # left behind by Apple's compiler. We do this before executing the actions.
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 as_fn_set_status $ac_retval
1742 } # ac_fn_c_try_link
1744 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1745 # -------------------------------------------
1746 # Tests whether TYPE exists after having included INCLUDES, setting cache
1747 # variable VAR accordingly.
1748 ac_fn_c_check_type ()
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 $as_echo_n "checking for $2... " >&6; }
1753 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1754 $as_echo_n "(cached) " >&6
1757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1782 if ac_fn_c_try_compile "$LINENO"; then :
1787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_check_type
1798 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1799 # --------------------------------------------
1800 # Tries to find the compile-time value of EXPR in a program that includes
1801 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1803 ac_fn_c_compute_int ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if test "$cross_compiling" = yes; then
1807 # Depending upon the size, compute the lo and hi bounds.
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h. */
1814 static int test_array [1 - 2 * !(($2) >= 0)];
1821 if ac_fn_c_try_compile "$LINENO"; then :
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1830 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1837 if ac_fn_c_try_compile "$LINENO"; then :
1838 ac_hi=$ac_mid; break
1840 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1841 if test $ac_lo -le $ac_mid; then
1845 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1856 static int test_array [1 - 2 * !(($2) < 0)];
1863 if ac_fn_c_try_compile "$LINENO"; then :
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1872 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1879 if ac_fn_c_try_compile "$LINENO"; then :
1880 ac_lo=$ac_mid; break
1882 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1883 if test $ac_mid -le $ac_hi; then
1887 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 # Binary search between lo and hi bounds.
1898 while test "x$ac_lo" != "x$ac_hi"; do
1899 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1906 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913 if ac_fn_c_try_compile "$LINENO"; then :
1916 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1928 static long int longval () { return $2; }
1929 static unsigned long int ulongval () { return $2; }
1936 FILE *f = fopen ("conftest.val", "w");
1941 long int i = longval ();
1944 fprintf (f, "%ld", i);
1948 unsigned long int i = ulongval ();
1951 fprintf (f, "%lu", i);
1953 /* Do not output a trailing newline, as this causes \r\n confusion
1954 on some platforms. */
1955 return ferror (f) || fclose (f) != 0;
1961 if ac_fn_c_try_run "$LINENO"; then :
1962 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1967 conftest.$ac_objext conftest.beam conftest.$ac_ext
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_c_compute_int
1976 # ac_fn_c_check_func LINENO FUNC VAR
1977 # ----------------------------------
1978 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1979 ac_fn_c_check_func ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985 $as_echo_n "(cached) " >&6
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1991 #define $2 innocuous_$2
1993 /* System header to define __stub macros and hopefully few prototypes,
1994 which can conflict with char $2 (); below.
1995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1996 <limits.h> exists even on freestanding compilers. */
1999 # include <limits.h>
2001 # include <assert.h>
2006 /* Override any GCC internal prototype to avoid an error.
2007 Use char because int might match the return type of a GCC
2008 builtin and then its argument prototype would still apply. */
2013 /* The GNU C library defines this for functions which it implements
2014 to always fail with ENOSYS. Some functions are actually named
2015 something starting with __ and the normal name is an alias. */
2016 #if defined __stub_$2 || defined __stub___$2
2028 if ac_fn_c_try_link "$LINENO"; then :
2033 rm -f core conftest.err conftest.$ac_objext \
2034 conftest$ac_exeext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2041 } # ac_fn_c_check_func
2042 cat >config.log <<_ACEOF
2043 This file contains any messages produced by compilers while
2044 running configure, to aid debugging if configure makes a mistake.
2046 It was created by shadowircd $as_me 6.0.0-dev, which was
2047 generated by GNU Autoconf 2.65. Invocation command line was
2059 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2060 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2061 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2062 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2063 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2065 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2066 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2068 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2069 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2070 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2071 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2072 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2073 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2074 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082 test -z "$as_dir" && as_dir=.
2083 $as_echo "PATH: $as_dir"
2099 # Keep a trace of the command line.
2100 # Strip out --no-create and --no-recursion so they do not pile up.
2101 # Strip out --silent because we don't want to record it for future runs.
2102 # Also quote any args containing shell meta-characters.
2103 # Make two passes to allow for proper duplicate-argument suppression.
2107 ac_must_keep_next=false
2113 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2115 | -silent | --silent | --silen | --sile | --sil)
2118 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2121 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2123 as_fn_append ac_configure_args1 " '$ac_arg'"
2124 if test $ac_must_keep_next = true; then
2125 ac_must_keep_next=false # Got value, back to normal.
2128 *=* | --config-cache | -C | -disable-* | --disable-* \
2129 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2130 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2131 | -with-* | --with-* | -without-* | --without-* | --x)
2132 case "$ac_configure_args0 " in
2133 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2136 -* ) ac_must_keep_next=true ;;
2139 as_fn_append ac_configure_args " '$ac_arg'"
2144 { ac_configure_args0=; unset ac_configure_args0;}
2145 { ac_configure_args1=; unset ac_configure_args1;}
2147 # When interrupted or exit'd, cleanup temporary files, and complete
2148 # config.log. We remove comments because anyway the quotes in there
2149 # would cause problems or look ugly.
2150 # WARNING: Use '\'' to represent an apostrophe within the trap.
2151 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2152 trap 'exit_status=$?
2153 # Save into config.log some information that might help in debugging.
2158 ## ---------------- ##
2159 ## Cache variables. ##
2160 ## ---------------- ##
2163 # The following way of writing the cache mishandles newlines in values,
2165 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2166 eval ac_val=\$$ac_var
2170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2174 _ | IFS | as_nl) ;; #(
2175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2176 *) { eval $ac_var=; unset $ac_var;} ;;
2181 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2182 *${as_nl}ac_space=\ *)
2184 "s/'\''/'\''\\\\'\'''\''/g;
2185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2196 ## ----------------- ##
2197 ## Output variables. ##
2198 ## ----------------- ##
2201 for ac_var in $ac_subst_vars
2203 eval ac_val=\$$ac_var
2205 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2207 $as_echo "$ac_var='\''$ac_val'\''"
2211 if test -n "$ac_subst_files"; then
2213 ## ------------------- ##
2214 ## File substitutions. ##
2215 ## ------------------- ##
2218 for ac_var in $ac_subst_files
2220 eval ac_val=\$$ac_var
2222 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2224 $as_echo "$ac_var='\''$ac_val'\''"
2229 if test -s confdefs.h; then
2239 test "$ac_signal" != 0 &&
2240 $as_echo "$as_me: caught signal $ac_signal"
2241 $as_echo "$as_me: exit $exit_status"
2243 rm -f core *.core core.conftest.* &&
2244 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2247 for ac_signal in 1 2 13 15; do
2248 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2253 rm -f -r conftest* confdefs.h
2255 $as_echo "/* confdefs.h */" > confdefs.h
2257 # Predefined preprocessor variables.
2259 cat >>confdefs.h <<_ACEOF
2260 #define PACKAGE_NAME "$PACKAGE_NAME"
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267 cat >>confdefs.h <<_ACEOF
2268 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2271 cat >>confdefs.h <<_ACEOF
2272 #define PACKAGE_STRING "$PACKAGE_STRING"
2275 cat >>confdefs.h <<_ACEOF
2276 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279 cat >>confdefs.h <<_ACEOF
2280 #define PACKAGE_URL "$PACKAGE_URL"
2284 # Let the site file select an alternate cache file if it wants to.
2285 # Prefer an explicitly selected file to automatically selected ones.
2288 if test -n "$CONFIG_SITE"; then
2289 ac_site_file1=$CONFIG_SITE
2290 elif test "x$prefix" != xNONE; then
2291 ac_site_file1=$prefix/share/config.site
2292 ac_site_file2=$prefix/etc/config.site
2294 ac_site_file1=$ac_default_prefix/share/config.site
2295 ac_site_file2=$ac_default_prefix/etc/config.site
2297 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2299 test "x$ac_site_file" = xNONE && continue
2300 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2302 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2303 sed 's/^/| /' "$ac_site_file" >&5
2308 if test -r "$cache_file"; then
2309 # Some versions of bash will fail to source /dev/null (special files
2310 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2311 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2313 $as_echo "$as_me: loading cache $cache_file" >&6;}
2315 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2316 *) . "./$cache_file";;
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2321 $as_echo "$as_me: creating cache $cache_file" >&6;}
2325 # Check that the precious variables saved in the cache have kept the same
2327 ac_cache_corrupted=false
2328 for ac_var in $ac_precious_vars; do
2329 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2330 eval ac_new_set=\$ac_env_${ac_var}_set
2331 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2332 eval ac_new_val=\$ac_env_${ac_var}_value
2333 case $ac_old_set,$ac_new_set in
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2336 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2337 ac_cache_corrupted=: ;;
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2340 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2341 ac_cache_corrupted=: ;;
2344 if test "x$ac_old_val" != "x$ac_new_val"; then
2345 # differences in whitespace do not lead to failure.
2346 ac_old_val_w=`echo x
$ac_old_val`
2347 ac_new_val_w=`echo x
$ac_new_val`
2348 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2350 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2351 ac_cache_corrupted=:
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2354 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2355 eval $ac_var=\$ac_old_val
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2358 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2360 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2363 # Pass precious variables to config.status.
2364 if test "$ac_new_set" = set; then
2366 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2367 *) ac_arg=$ac_var=$ac_new_val ;;
2369 case " $ac_configure_args " in
2370 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2371 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2375 if $ac_cache_corrupted; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2379 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2380 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2382 ## -------------------- ##
2383 ## Main body of script. ##
2384 ## -------------------- ##
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 ac_config_headers="$ac_config_headers include/setup.h"
2400 ac_cpp='$CPP $CPPFLAGS'
2401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if test "${ac_cv_prog_CC+set}" = set; then :
2410 $as_echo_n "(cached) " >&6
2412 if test -n "$CC"; then
2413 ac_cv_prog_CC="$CC" # Let the user override the test.
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 if test -n "$CC"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2435 $as_echo "$CC" >&6; }
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2443 if test -z "$ac_cv_prog_CC"; then
2445 # Extract the first word of "gcc", so it can be a program name with args.
2446 set dummy gcc; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2450 $as_echo_n "(cached) " >&6
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_CC="gcc"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2475 $as_echo "$ac_ct_CC" >&6; }
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2481 if test "x$ac_ct_CC" = x; then
2484 case $cross_compiling:$ac_tool_warned in
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2488 ac_tool_warned=yes ;;
2496 if test -z "$CC"; then
2497 if test -n "$ac_tool_prefix"; then
2498 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}cc; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if test "${ac_cv_prog_CC+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 ac_cv_prog_CC="${ac_tool_prefix}cc"
2516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 if test -n "$CC"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2528 $as_echo "$CC" >&6; }
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2537 if test -z "$CC"; then
2538 # Extract the first word of "cc", so it can be a program name with args.
2539 set dummy cc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if test "${ac_cv_prog_CC+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2557 ac_prog_rejected=yes
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 if test $ac_prog_rejected = yes; then
2569 # We found a bogon in the path, so make sure we never use it.
2570 set dummy $ac_cv_prog_CC
2572 if test $# != 0; then
2573 # We chose a different compiler from the bogus one.
2574 # However, it has the same basename, so the bogon will be chosen
2575 # first if we set CC to just the basename; use the full file name.
2577 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2583 if test -n "$CC"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2585 $as_echo "$CC" >&6; }
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2593 if test -z "$CC"; then
2594 if test -n "$ac_tool_prefix"; then
2595 for ac_prog in cl.exe
2597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_CC+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2604 if test -n "$CC"; then
2605 ac_cv_prog_CC="$CC" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 if test -n "$CC"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2627 $as_echo "$CC" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2634 test -n "$CC" && break
2637 if test -z "$CC"; then
2639 for ac_prog in cl.exe
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_CC="$ac_prog"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2671 $as_echo "$ac_ct_CC" >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2678 test -n "$ac_ct_CC" && break
2681 if test "x$ac_ct_CC" = x; then
2684 case $cross_compiling:$ac_tool_warned in
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2688 ac_tool_warned=yes ;;
2697 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 as_fn_error "no acceptable C compiler found
in \
$PATH
2700 See \
`config.log' for more details." "$LINENO" 5; }
2702 # Provide some information about the compiler.
2703 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2706 for ac_option in --version -v -V -qversion; do
2707 { { ac_try="$ac_compiler $ac_option >&5"
2709 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2710 *) ac_try_echo
=$ac_try;;
2712 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2716 if test -s conftest.err
; then
2718 ... rest of stderr output deleted ...
2719 10q' conftest.err
>conftest.er1
2720 cat conftest.er1
>&5
2722 rm -f conftest.er1 conftest.err
2723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2724 test $ac_status = 0; }
2727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2728 /* end confdefs.h. */
2738 ac_clean_files_save
=$ac_clean_files
2739 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2740 # Try to create an executable without -o first, disregard a.out.
2741 # It will help us diagnose broken compilers, and finding out an intuition
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2744 $as_echo_n "checking whether the C compiler works... " >&6; }
2745 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2747 # The possible output files:
2748 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2751 for ac_file
in $ac_files
2754 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2755 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2760 if { { ac_try
="$ac_link_default"
2762 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2766 $as_echo "$ac_try_echo"; } >&5
2767 (eval "$ac_link_default") 2>&5
2769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770 test $ac_status = 0; }; then :
2771 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2772 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2773 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2774 # so that the user can short-circuit this test for compilers unknown to
2776 for ac_file in $ac_files ''
2778 test -f "$ac_file" || continue
2780 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2783 # We found the default executable, but exeext='' is most
2787 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2789 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 # We set ac_cv_exeext here because the later test for it is not
2792 # safe: cross compilers may not add the suffix if given an `-o'
2793 # argument, so we may need to know it at that point already.
2794 # Even if this section looks crufty: it has the advantage of
2801 test "$ac_cv_exeext" = no && ac_cv_exeext=
2806 if test -z "$ac_file"; then :
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 $as_echo "no" >&6; }
2809 $as_echo "$as_me: failed program was:" >&5
2810 sed 's
/^
/| /' conftest.$ac_ext >&5
2812 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2814 { as_fn_set_status 77
2815 as_fn_error "C compiler cannot create executables
2816 See \`config.log
' for more details." "$LINENO" 5; }; }
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2819 $as_echo "yes" >&6; }
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2822 $as_echo_n "checking for C compiler default output file name... " >&6; }
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2824 $as_echo "$ac_file" >&6; }
2825 ac_exeext=$ac_cv_exeext
2827 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2828 ac_clean_files=$ac_clean_files_save
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2830 $as_echo_n "checking for suffix of executables... " >&6; }
2831 if { { ac_try="$ac_link"
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2837 $as_echo "$ac_try_echo"; } >&5
2838 (eval "$ac_link") 2>&5
2840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2841 test $ac_status = 0; }; then :
2842 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2843 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2844 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2846 for ac_file
in conftest.exe conftest conftest.
*; do
2847 test -f "$ac_file" || continue
2849 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2850 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2858 as_fn_error
"cannot compute suffix of executables: cannot compile and link
2859 See \`config.log' for more details." "$LINENO" 5; }
2861 rm -f conftest conftest
$ac_cv_exeext
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2863 $as_echo "$ac_cv_exeext" >&6; }
2865 rm -f conftest.
$ac_ext
2866 EXEEXT
=$ac_cv_exeext
2868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2874 FILE *f = fopen ("conftest.out", "w");
2875 return ferror (f) || fclose (f) != 0;
2881 ac_clean_files
="$ac_clean_files conftest.out"
2882 # Check that the compiler produces executables we can run. If not, either
2883 # the compiler is broken, or we cross compile.
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2885 $as_echo_n "checking whether we are cross compiling... " >&6; }
2886 if test "$cross_compiling" != yes; then
2887 { { ac_try
="$ac_link"
2889 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_link") 2>&5
2896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2897 test $ac_status = 0; }
2898 if { ac_try='./conftest$ac_cv_exeext'
2899 { { case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2901 *) ac_try_echo
=$ac_try;;
2903 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2904 $as_echo "$ac_try_echo"; } >&5
2905 (eval "$ac_try") 2>&5
2907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2908 test $ac_status = 0; }; }; then
2911 if test "$cross_compiling" = maybe
; then
2914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 as_fn_error
"cannot run C compiled programs.
2917 If you meant to cross compile, use \`--host'.
2918 See \`config.log' for more details." "$LINENO" 5; }
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2923 $as_echo "$cross_compiling" >&6; }
2925 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2926 ac_clean_files
=$ac_clean_files_save
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2928 $as_echo_n "checking for suffix of object files... " >&6; }
2929 if test "${ac_cv_objext+set}" = set; then :
2930 $as_echo_n "(cached) " >&6
2932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2943 rm -f conftest.o conftest.obj
2944 if { { ac_try
="$ac_compile"
2946 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2950 $as_echo "$ac_try_echo"; } >&5
2951 (eval "$ac_compile") 2>&5
2953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2954 test $ac_status = 0; }; then :
2955 for ac_file in conftest.o conftest.obj conftest.*; do
2956 test -f "$ac_file" || continue;
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2964 $as_echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error "cannot compute suffix of object files
: cannot compile
2970 See \
`config.log' for more details." "$LINENO" 5; }
2972 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2975 $as_echo "$ac_cv_objext" >&6; }
2976 OBJEXT=$ac_cv_objext
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2979 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2980 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2981 $as_echo_n "(cached) " >&6
2983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2984 /* end confdefs.h. */
2997 if ac_fn_c_try_compile "$LINENO"; then :
3002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3003 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3007 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3008 if test $ac_compiler_gnu = yes; then
3013 ac_test_CFLAGS=${CFLAGS+set}
3014 ac_save_CFLAGS=$CFLAGS
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3016 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3017 if test "${ac_cv_prog_cc_g+set}" = set; then :
3018 $as_echo_n "(cached) " >&6
3020 ac_save_c_werror_flag=$ac_c_werror_flag
3021 ac_c_werror_flag=yes
3024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3025 /* end confdefs.h. */
3035 if ac_fn_c_try_compile "$LINENO"; then :
3039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3040 /* end confdefs.h. */
3050 if ac_fn_c_try_compile "$LINENO"; then :
3053 ac_c_werror_flag=$ac_save_c_werror_flag
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056 /* end confdefs.h. */
3066 if ac_fn_c_try_compile "$LINENO"; then :
3069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3074 ac_c_werror_flag=$ac_save_c_werror_flag
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3077 $as_echo "$ac_cv_prog_cc_g" >&6; }
3078 if test "$ac_test_CFLAGS" = set; then
3079 CFLAGS=$ac_save_CFLAGS
3080 elif test $ac_cv_prog_cc_g = yes; then
3081 if test "$GCC" = yes; then
3087 if test "$GCC" = yes; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3094 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3095 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3096 $as_echo_n "(cached) " >&6
3098 ac_cv_prog_cc_c89=no
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3104 #include <sys/types.h>
3105 #include <sys/stat.h>
3106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3107 struct buf { int x; };
3108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3109 static char *e (p, i)
3115 static char *f (char * (*g) (char **, int), char **p, ...)
3120 s = g (p, va_arg (v,int));
3125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3126 function prototypes and stuff, but not '\xHH' hex character constants.
3127 These don't provoke an error unfortunately, instead are silently treated
3128 as 'x'. The following induces an error, until -std is added to get
3129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3130 array size at least. It's necessary to write '\x00'==0 to get something
3131 that's true only with -std. */
3132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3135 inside strings and character constants. */
3137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3139 int test (int i, double x);
3140 struct s1 {int (*f) (int a);};
3141 struct s2 {int (*f) (double a);};
3142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3156 CC="$ac_save_CC $ac_arg"
3157 if ac_fn_c_try_compile "$LINENO"; then :
3158 ac_cv_prog_cc_c89=$ac_arg
3160 rm -f core conftest.err conftest.$ac_objext
3161 test "x$ac_cv_prog_cc_c89" != "xno" && break
3163 rm -f conftest.$ac_ext
3168 case "x$ac_cv_prog_cc_c89" in
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3171 $as_echo "none needed" >&6; } ;;
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3174 $as_echo "unsupported" >&6; } ;;
3176 CC="$CC $ac_cv_prog_cc_c89"
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3178 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3180 if test "x$ac_cv_prog_cc_c89" != xno; then :
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3197 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3198 # On Suns, sometimes $CPP names a directory.
3199 if test -n "$CPP" && test -d "$CPP"; then
3202 if test -z "$CPP"; then
3203 if test "${ac_cv_prog_CPP+set}" = set; then :
3204 $as_echo_n "(cached) " >&6
3206 # Double quotes because CPP needs to be expanded
3207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3210 for ac_c_preproc_warn_flag in '' yes
3212 # Use a header file that comes with gcc, so configuring glibc
3213 # with a fresh cross-compiler works.
3214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3215 # <limits.h> exists even on freestanding compilers.
3216 # On the NeXT, cc -E runs the code through the compiler's parser,
3217 # not just through cpp. "Syntax error" is here to catch this case.
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3221 # include <limits.h>
3223 # include <assert.h>
3227 if ac_fn_c_try_cpp "$LINENO"; then :
3230 # Broken: fails on valid input.
3233 rm -f conftest.err conftest.$ac_ext
3235 # OK, works on sane cases. Now check whether nonexistent headers
3236 # can be detected and how.
3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3238 /* end confdefs.h. */
3239 #include <ac_nonexistent.h>
3241 if ac_fn_c_try_cpp "$LINENO"; then :
3242 # Broken: success on invalid input.
3245 # Passes both tests.
3249 rm -f conftest.err conftest.$ac_ext
3252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3253 rm -f conftest.err conftest.
$ac_ext
3254 if $ac_preproc_ok; then :
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3267 $as_echo "$CPP" >&6; }
3269 for ac_c_preproc_warn_flag
in '' yes
3271 # Use a header file that comes with gcc, so configuring glibc
3272 # with a fresh cross-compiler works.
3273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3274 # <limits.h> exists even on freestanding compilers.
3275 # On the NeXT, cc -E runs the code through the compiler's parser,
3276 # not just through cpp. "Syntax error" is here to catch this case.
3277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3280 # include <limits.h>
3282 # include <assert.h>
3286 if ac_fn_c_try_cpp
"$LINENO"; then :
3289 # Broken: fails on valid input.
3292 rm -f conftest.err conftest.
$ac_ext
3294 # OK, works on sane cases. Now check whether nonexistent headers
3295 # can be detected and how.
3296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3298 #include <ac_nonexistent.h>
3300 if ac_fn_c_try_cpp
"$LINENO"; then :
3301 # Broken: success on invalid input.
3304 # Passes both tests.
3308 rm -f conftest.err conftest.
$ac_ext
3311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3312 rm -f conftest.err conftest.
$ac_ext
3313 if $ac_preproc_ok; then :
3316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3318 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3319 See \`config.log' for more details." "$LINENO" 5; }
3323 ac_cpp
='$CPP $CPPFLAGS'
3324 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3330 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3331 if test "${ac_cv_path_GREP+set}" = set; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -z "$GREP"; then
3335 ac_path_GREP_found
=false
3336 # Loop through the user's path and test for each of PROGNAME-LIST
3337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3338 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3341 test -z "$as_dir" && as_dir
=.
3342 for ac_prog
in grep ggrep
; do
3343 for ac_exec_ext
in '' $ac_executable_extensions; do
3344 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3345 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3346 # Check for GNU ac_path_GREP and select it if it is found.
3347 # Check for GNU $ac_path_GREP
3348 case `"$ac_path_GREP" --version 2>&1` in
3350 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3353 $as_echo_n 0123456789 >"conftest.in"
3356 cat "conftest.in" "conftest.in" >"conftest.tmp"
3357 mv "conftest.tmp" "conftest.in"
3358 cp "conftest.in" "conftest.nl"
3359 $as_echo 'GREP' >> "conftest.nl"
3360 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3361 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3362 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3363 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3364 # Best one so far, save it but keep looking for a better one
3365 ac_cv_path_GREP
="$ac_path_GREP"
3366 ac_path_GREP_max
=$ac_count
3368 # 10*(2^10) chars as input seems more than enough
3369 test $ac_count -gt 10 && break
3371 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3374 $ac_path_GREP_found && break 3
3379 if test -z "$ac_cv_path_GREP"; then
3380 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3383 ac_cv_path_GREP
=$GREP
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3388 $as_echo "$ac_cv_path_GREP" >&6; }
3389 GREP
="$ac_cv_path_GREP"
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3393 $as_echo_n "checking for egrep... " >&6; }
3394 if test "${ac_cv_path_EGREP+set}" = set; then :
3395 $as_echo_n "(cached) " >&6
3397 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3398 then ac_cv_path_EGREP
="$GREP -E"
3400 if test -z "$EGREP"; then
3401 ac_path_EGREP_found
=false
3402 # Loop through the user's path and test for each of PROGNAME-LIST
3403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3404 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3407 test -z "$as_dir" && as_dir
=.
3408 for ac_prog
in egrep; do
3409 for ac_exec_ext
in '' $ac_executable_extensions; do
3410 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3411 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3412 # Check for GNU ac_path_EGREP and select it if it is found.
3413 # Check for GNU $ac_path_EGREP
3414 case `"$ac_path_EGREP" --version 2>&1` in
3416 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3419 $as_echo_n 0123456789 >"conftest.in"
3422 cat "conftest.in" "conftest.in" >"conftest.tmp"
3423 mv "conftest.tmp" "conftest.in"
3424 cp "conftest.in" "conftest.nl"
3425 $as_echo 'EGREP' >> "conftest.nl"
3426 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3427 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3428 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3429 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3430 # Best one so far, save it but keep looking for a better one
3431 ac_cv_path_EGREP
="$ac_path_EGREP"
3432 ac_path_EGREP_max
=$ac_count
3434 # 10*(2^10) chars as input seems more than enough
3435 test $ac_count -gt 10 && break
3437 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3440 $ac_path_EGREP_found && break 3
3445 if test -z "$ac_cv_path_EGREP"; then
3446 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3449 ac_cv_path_EGREP
=$EGREP
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3455 $as_echo "$ac_cv_path_EGREP" >&6; }
3456 EGREP
="$ac_cv_path_EGREP"
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3460 $as_echo_n "checking for ANSI C header files... " >&6; }
3461 if test "${ac_cv_header_stdc+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3479 if ac_fn_c_try_compile
"$LINENO"; then :
3480 ac_cv_header_stdc
=yes
3482 ac_cv_header_stdc
=no
3484 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3486 if test $ac_cv_header_stdc = yes; then
3487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3494 $EGREP "memchr" >/dev
/null
2>&1; then :
3497 ac_cv_header_stdc
=no
3503 if test $ac_cv_header_stdc = yes; then
3504 # ISC 2.0.2 stdlib.h does not declare free, 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 "free" >/dev
/null
2>&1; then :
3514 ac_cv_header_stdc
=no
3520 if test $ac_cv_header_stdc = yes; then
3521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3522 if test "$cross_compiling" = yes; then :
3525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3529 #if ((' ' & 0x0FF) == 0x020)
3530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3533 # define ISLOWER(c) \
3534 (('a' <= (c) && (c) <= 'i') \
3535 || ('j' <= (c) && (c) <= 'r') \
3536 || ('s' <= (c) && (c) <= 'z'))
3537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3545 for (i = 0; i < 256; i++)
3546 if (XOR (islower (i), ISLOWER (i))
3547 || toupper (i) != TOUPPER (i))
3552 if ac_fn_c_try_run
"$LINENO"; then :
3555 ac_cv_header_stdc
=no
3557 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3558 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3564 $as_echo "$ac_cv_header_stdc" >&6; }
3565 if test $ac_cv_header_stdc = yes; then
3567 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3571 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3572 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3573 inttypes.h stdint.h unistd.h
3575 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3576 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3578 eval as_val
=\$
$as_ac_Header
3579 if test "x$as_val" = x
""yes; then :
3580 cat >>confdefs.h
<<_ACEOF
3581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3590 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3591 if test "x$ac_cv_header_minix_config_h" = x
""yes; then :
3598 if test "$MINIX" = yes; then
3600 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3603 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3606 $as_echo "#define _MINIX 1" >>confdefs.h
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3612 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3613 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3619 # define __EXTENSIONS__ 1
3620 $ac_includes_default
3629 if ac_fn_c_try_compile
"$LINENO"; then :
3630 ac_cv_safe_to_define___extensions__
=yes
3632 ac_cv_safe_to_define___extensions__
=no
3634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3637 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3638 test $ac_cv_safe_to_define___extensions__ = yes &&
3639 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3641 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3643 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3645 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3647 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3652 OLD_CFLAGS
="$CFLAGS"
3654 ac_cpp
='$CPP $CPPFLAGS'
3655 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3658 if test -n "$ac_tool_prefix"; then
3659 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3660 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3662 $as_echo_n "checking for $ac_word... " >&6; }
3663 if test "${ac_cv_prog_CC+set}" = set; then :
3664 $as_echo_n "(cached) " >&6
3666 if test -n "$CC"; then
3667 ac_cv_prog_CC
="$CC" # Let the user override the test.
3669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3673 test -z "$as_dir" && as_dir
=.
3674 for ac_exec_ext
in '' $ac_executable_extensions; do
3675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3676 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 if test -n "$CC"; then
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3689 $as_echo "$CC" >&6; }
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3692 $as_echo "no" >&6; }
3697 if test -z "$ac_cv_prog_CC"; then
3699 # Extract the first word of "gcc", so it can be a program name with args.
3700 set dummy gcc
; ac_word
=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3706 if test -n "$ac_ct_CC"; then
3707 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3709 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3713 test -z "$as_dir" && as_dir
=.
3714 for ac_exec_ext
in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_ac_ct_CC
="gcc"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3726 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3729 $as_echo "$ac_ct_CC" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3735 if test "x$ac_ct_CC" = x
; then
3738 case $cross_compiling:$ac_tool_warned in
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3742 ac_tool_warned
=yes ;;
3750 if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3753 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if test "${ac_cv_prog_CC+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3759 if test -n "$CC"; then
3760 ac_cv_prog_CC
="$CC" # Let the user override the test.
3762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3766 test -z "$as_dir" && as_dir
=.
3767 for ac_exec_ext
in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 if test -n "$CC"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3782 $as_echo "$CC" >&6; }
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3791 if test -z "$CC"; then
3792 # Extract the first word of "cc", so it can be a program name with args.
3793 set dummy cc
; ac_word
=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if test "${ac_cv_prog_CC+set}" = set; then :
3797 $as_echo_n "(cached) " >&6
3799 if test -n "$CC"; then
3800 ac_cv_prog_CC
="$CC" # Let the user override the test.
3803 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir
=.
3808 for ac_exec_ext
in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3811 ac_prog_rejected
=yes
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 if test $ac_prog_rejected = yes; then
3823 # We found a bogon in the path, so make sure we never use it.
3824 set dummy
$ac_cv_prog_CC
3826 if test $# != 0; then
3827 # We chose a different compiler from the bogus one.
3828 # However, it has the same basename, so the bogon will be chosen
3829 # first if we set CC to just the basename; use the full file name.
3831 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3837 if test -n "$CC"; then
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3839 $as_echo "$CC" >&6; }
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3847 if test -z "$CC"; then
3848 if test -n "$ac_tool_prefix"; then
3849 for ac_prog
in cl.exe
3851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3852 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if test "${ac_cv_prog_CC+set}" = set; then :
3856 $as_echo_n "(cached) " >&6
3858 if test -n "$CC"; then
3859 ac_cv_prog_CC
="$CC" # Let the user override the test.
3861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir
=.
3866 for ac_exec_ext
in '' $ac_executable_extensions; do
3867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881 $as_echo "$CC" >&6; }
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884 $as_echo "no" >&6; }
3888 test -n "$CC" && break
3891 if test -z "$CC"; then
3893 for ac_prog
in cl.exe
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy
$ac_prog; ac_word
=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3900 $as_echo_n "(cached) " >&6
3902 if test -n "$ac_ct_CC"; then
3903 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir
=.
3910 for ac_exec_ext
in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 ac_cv_prog_ac_ct_CC
="$ac_prog"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3923 if test -n "$ac_ct_CC"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3925 $as_echo "$ac_ct_CC" >&6; }
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3932 test -n "$ac_ct_CC" && break
3935 if test "x$ac_ct_CC" = x
; then
3938 case $cross_compiling:$ac_tool_warned in
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3942 ac_tool_warned
=yes ;;
3951 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error
"no acceptable C compiler found in \$PATH
3954 See \`config.log' for more details." "$LINENO" 5; }
3956 # Provide some information about the compiler.
3957 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3960 for ac_option
in --version -v -V -qversion; do
3961 { { ac_try
="$ac_compiler $ac_option >&5"
3963 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3970 if test -s conftest.err; then
3972 ... rest of stderr output deleted ...
3973 10q' conftest.err >conftest.er1
3974 cat conftest.er1 >&5
3976 rm -f conftest.er1 conftest.err
3977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3978 test $ac_status = 0; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3982 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3983 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3984 $as_echo_n "(cached) " >&6
3986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h. */
4000 if ac_fn_c_try_compile "$LINENO"; then :
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4010 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4011 if test $ac_compiler_gnu = yes; then
4016 ac_test_CFLAGS=${CFLAGS+set}
4017 ac_save_CFLAGS=$CFLAGS
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4019 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4020 if test "${ac_cv_prog_cc_g+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 ac_save_c_werror_flag=$ac_c_werror_flag
4024 ac_c_werror_flag=yes
4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h. */
4038 if ac_fn_c_try_compile "$LINENO"; then :
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4053 if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4069 if ac_fn_c_try_compile "$LINENO"; then :
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4077 ac_c_werror_flag=$ac_save_c_werror_flag
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4080 $as_echo "$ac_cv_prog_cc_g" >&6; }
4081 if test "$ac_test_CFLAGS" = set; then
4082 CFLAGS=$ac_save_CFLAGS
4083 elif test $ac_cv_prog_cc_g = yes; then
4084 if test "$GCC" = yes; then
4090 if test "$GCC" = yes; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4097 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4098 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4099 $as_echo_n "(cached) " >&6
4101 ac_cv_prog_cc_c89=no
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4123 s = g (p, va_arg (v,int));
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159 CC="$ac_save_CC $ac_arg"
4160 if ac_fn_c_try_compile "$LINENO"; then :
4161 ac_cv_prog_cc_c89=$ac_arg
4163 rm -f core conftest.err conftest.$ac_objext
4164 test "x$ac_cv_prog_cc_c89" != "xno" && break
4166 rm -f conftest.$ac_ext
4171 case "x$ac_cv_prog_cc_c89" in
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4174 $as_echo "none needed" >&6; } ;;
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4177 $as_echo "unsupported" >&6; } ;;
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4181 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4183 if test "x$ac_cv_prog_cc_c89" != xno; then :
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200 CFLAGS="$OLD_CFLAGS"
4203 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4204 for ac_t in install-sh install.sh shtool; do
4205 if test -f "$ac_dir/$ac_t"; then
4207 ac_install_sh="$ac_aux_dir/$ac_t -c"
4212 if test -z "$ac_aux_dir"; then
4213 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4216 # These three variables are undocumented and unsupported,
4217 # and are intended to be withdrawn in a future Autoconf release.
4218 # They can cause serious problems if a builder's source tree is in a directory
4219 # whose full name contains unusual characters.
4220 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4221 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4222 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4227 subdirs="$subdirs libratbox"
4231 if test "$ac_cv_c_compiler_gnu" != yes; then
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4235 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4236 case `$CC -version 2>&1` in
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4239 $as_echo "yes, TenDRA" >&6; }
4241 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4247 $as_echo "yes, MIPSpro" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4260 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4261 case `$CC -V 2>&1` in
4262 *Sun*WorkShop* | *Forte*Developer*)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4264 $as_echo "Sun Workshop/Forte" >&6; }
4265 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4271 $as_echo "Tru64 cc" >&6; }
4273 CPPFLAGS="-I/usr/local/include"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4278 $as_echo "HPUX cc" >&6; }
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4291 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4296 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4298 $as_echo "assuming old HPUX with its own cc" >&6; }
4299 IRC_CFLAGS="$IRC_CFLAGS +e"
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4303 $as_echo "already using newer HPUX" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4308 $as_echo "SunOS or Solaris" >&6; }
4310 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4316 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4317 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4325 if test "$ac_cv_c_compiler_gnu" = yes; then
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4327 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4329 case `$CC -v 2>&1 | tail -n 1` in
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4332 $as_echo "yes" >&6; }
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4342 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4345 if test "$ac_cv_prog_cc_g" = yes; then
4346 if test "$Tru" = yes; then
4347 IRC_CFLAGS="$IRC_CFLAGS -g3"
4349 IRC_CFLAGS="$IRC_CFLAGS -g"
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4354 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4355 if test "$SGS" = "yes"; then
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4357 $as_echo "yes" >&6; }
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4360 $as_echo "no" >&6; }
4363 # Extract the first word of "mkdep", so it can be a program name with args.
4364 set dummy mkdep; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if test "${ac_cv_path_MKDEP+set}" = set; then :
4368 $as_echo_n "(cached) " >&6
4372 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 MKDEP=$ac_cv_path_MKDEP
4394 if test -n "$MKDEP"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4396 $as_echo "$MKDEP" >&6; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4403 # Extract the first word of "makedepend", so it can be a program name with args.
4404 set dummy makedepend; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4412 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4434 if test -n "$MAKEDEPEND"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4436 $as_echo "$MAKEDEPEND" >&6; }
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4445 $as_echo_n "checking how to generate dependency info... " >&6; }
4449 if test "$ac_cv_c_compiler_gnu" = yes; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4451 $as_echo "gcc -MM" >&6; }
4453 elif test ! -z "$MKDEP"; then
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4455 $as_echo "mkdep" >&6; }
4457 if test -z "$Tru"; then
4460 STDOUT=" 2> /dev/null"
4462 elif test "$SunWorkShop" = yes; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4464 $as_echo "$CC -xM" >&6; }
4466 STDOUT="> .depend 2> /dev/null"
4467 elif test ! -z "$MAKEDEPEND"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4469 $as_echo "makedepend" >&6; }
4470 MKDEP="$MAKEDEPEND -f-"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4473 $as_echo "nothing suitable.. forget it!" >&6; }
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4481 $as_echo_n "checking for /dev/null... " >&6; }
4482 if test -c /dev/null ; then
4484 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4487 $as_echo "yes" >&6; }
4490 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4493 $as_echo "no - using devnull.log" >&6; }
4496 if test ! -z "$CFLAGS"; then
4497 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4501 $as_echo_n "checking for library containing strerror... " >&6; }
4502 if test "${ac_cv_search_strerror+set}" = set; then :
4503 $as_echo_n "(cached) " >&6
4505 ac_func_search_save_LIBS=$LIBS
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4509 /* Override any GCC internal prototype to avoid an error.
4510 Use char because int might match the return type of a GCC
4511 builtin and then its argument prototype would still apply. */
4524 for ac_lib in '' cposix; do
4525 if test -z "$ac_lib"; then
4526 ac_res="none required"
4529 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4531 if ac_fn_c_try_link "$LINENO"; then :
4532 ac_cv_search_strerror=$ac_res
4534 rm -f core conftest.err conftest.$ac_objext \
4536 if test "${ac_cv_search_strerror+set}" = set; then :
4540 if test "${ac_cv_search_strerror+set}" = set; then :
4543 ac_cv_search_strerror=no
4546 LIBS=$ac_func_search_save_LIBS
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4549 $as_echo "$ac_cv_search_strerror" >&6; }
4550 ac_res=$ac_cv_search_strerror
4551 if test "$ac_res" != no; then :
4552 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4557 $as_echo_n "checking for inline... " >&6; }
4558 if test "${ac_cv_c_inline+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4562 for ac_kw in inline __inline__ __inline; do
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4567 static $ac_kw foo_t static_foo () {return 0; }
4568 $ac_kw foo_t foo () {return 0; }
4572 if ac_fn_c_try_compile "$LINENO"; then :
4573 ac_cv_c_inline=$ac_kw
4575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4576 test "$ac_cv_c_inline" != no && break
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4581 $as_echo "$ac_cv_c_inline" >&6; }
4583 case $ac_cv_c_inline in
4586 case $ac_cv_c_inline in
4588 *) ac_val=$ac_cv_c_inline;;
4590 cat >>confdefs.h <<_ACEOF
4592 #define inline $ac_val
4598 if test $ac_cv_c_compiler_gnu = yes; then
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4600 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4601 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4602 $as_echo_n "(cached) " >&6
4604 ac_pattern="Autoconf.*'x'"
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4612 ac_cv_prog_gcc_traditional=yes
4614 ac_cv_prog_gcc_traditional=no
4619 if test $ac_cv_prog_gcc_traditional = no; then
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4627 ac_cv_prog_gcc_traditional=yes
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4634 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4635 if test $ac_cv_prog_gcc_traditional = yes; then
4636 CC="$CC -traditional"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4641 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4643 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4644 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4645 $as_echo_n "(cached) " >&6
4647 cat >conftest.make <<\_ACEOF
4650 @echo '@@@%%%=$(MAKE)=@@@%%%'
4652 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4653 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4655 eval ac_cv_prog_make_${ac_make}_set=yes;;
4657 eval ac_cv_prog_make_${ac_make}_set=no;;
4661 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4663 $as_echo "yes" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4668 SET_MAKE="MAKE=${MAKE-make}"
4671 # Find a good install program. We prefer a C program (faster),
4672 # so one script is as good as another. But avoid the broken or
4673 # incompatible versions:
4674 # SysV /etc/install, /usr/sbin/install
4675 # SunOS /usr/etc/install
4676 # IRIX /sbin/install
4678 # AmigaOS /C/install, which installs bootblocks on floppy discs
4679 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4680 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4681 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4682 # OS/2's system install, which has a completely different semantic
4683 # ./install, which can be erroneously created by make from ./install.sh.
4684 # Reject install programs that cannot install multiple files.
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4686 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4687 if test -z "$INSTALL"; then
4688 if test "${ac_cv_path_install+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 test -z "$as_dir" && as_dir=.
4696 # Account for people who put trailing slashes in PATH elements.
4697 case $as_dir/ in #((
4698 ./ | .// | /[cC]/* | \
4699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4700 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4703 # OSF1 and SCO ODT 3.0 have their own names for install.
4704 # Don't use installbsd from OSF since it installs stuff as root
4706 for ac_prog in ginstall scoinst install; do
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4709 if test $ac_prog = install &&
4710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4711 # AIX install. It has an incompatible calling convention.
4713 elif test $ac_prog = install &&
4714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4715 # program-specific install script used by HP pwplus--don't use.
4718 rm -rf conftest.one conftest.two conftest.dir
4719 echo one > conftest.one
4720 echo two > conftest.two
4722 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4723 test -s conftest.one && test -s conftest.two &&
4724 test -s conftest.dir/conftest.one &&
4725 test -s conftest.dir/conftest.two
4727 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4740 rm -rf conftest.one conftest.two conftest.dir
4743 if test "${ac_cv_path_install+set}" = set; then
4744 INSTALL=$ac_cv_path_install
4746 # As a last resort, use the slow shell script. Don't cache a
4747 # value for INSTALL within a source directory, because that will
4748 # break other packages using the cache if that directory is
4749 # removed, or if the value is a relative name.
4750 INSTALL=$ac_install_sh
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4754 $as_echo "$INSTALL" >&6; }
4756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4757 # It thinks the first close brace ends the variable substitution.
4758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4764 # Extract the first word of "rm", so it can be a program name with args.
4765 set dummy rm; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_path_RM+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4773 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 if test -n "$RM"; then
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4797 $as_echo "$RM" >&6; }
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4804 # Extract the first word of "cp", so it can be a program name with args.
4805 set dummy cp; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_path_CP+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4813 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 if test -n "$CP"; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4837 $as_echo "$CP" >&6; }
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4844 # Extract the first word of "mv", so it can be a program name with args.
4845 set dummy mv; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if test "${ac_cv_path_MV+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4853 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 if test -n "$MV"; then
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4877 $as_echo "$MV" >&6; }
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4884 # Extract the first word of "ln", so it can be a program name with args.
4885 set dummy ln; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_path_LN+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4893 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 if test -n "$LN"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4917 $as_echo "$LN" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4924 # Extract the first word of "sed", so it can be a program name with args.
4925 set dummy sed; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_path_SED+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4933 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 if test -n "$SED"; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4957 $as_echo "$SED" >&6; }
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 $as_echo "no" >&6; }
4964 # Extract the first word of "ar", so it can be a program name with args.
4965 set dummy ar; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if test "${ac_cv_path_AR+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4973 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 if test -n "$AR"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4997 $as_echo "$AR" >&6; }
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5004 # Extract the first word of "ld", so it can be a program name with args.
5005 set dummy ld; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if test "${ac_cv_path_LD+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5013 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 if test -n "$LD"; then
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5037 $as_echo "$LD" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040 $as_echo "no" >&6; }
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_path_RANLIB+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5053 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 RANLIB=$ac_cv_path_RANLIB
5075 if test -n "$RANLIB"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5077 $as_echo "$RANLIB" >&6; }
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080 $as_echo "no" >&6; }
5084 # Extract the first word of "touch", so it can be a program name with args.
5085 set dummy touch; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_path_TOUCH+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5093 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 TOUCH=$ac_cv_path_TOUCH
5115 if test -n "$TOUCH"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5117 $as_echo "$TOUCH" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5125 for ac_prog in 'bison -y' byacc
5127 # Extract the first word of "$ac_prog", so it can be a program name with args.
5128 set dummy $ac_prog; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if test "${ac_cv_prog_YACC+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$YACC"; then
5135 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_prog_YACC="$ac_prog"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 YACC=$ac_cv_prog_YACC
5155 if test -n "$YACC"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5157 $as_echo "$YACC" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 test -n "$YACC" && break
5166 test -n "$YACC" || YACC="yacc"
5169 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev
/null
`"; then
5170 as_fn_error "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5173 for ac_prog in flex lex
5175 # Extract the first word of "$ac_prog", so it can be a program name with args.
5176 set dummy $ac_prog; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if test "${ac_cv_prog_LEX+set}" = set; then :
5180 $as_echo_n "(cached) " >&6
5182 if test -n "$LEX"; then
5183 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_LEX="$ac_prog"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 if test -n "$LEX"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5205 $as_echo "$LEX" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 test -n "$LEX" && break
5214 test -n "$LEX" || LEX=":"
5216 if test "x$LEX" != "x:"; then
5217 cat >conftest.l <<_ACEOF
5223 e { yyless (input () != 0); }
5224 f { unput (yytext[0]); }
5225 . { BEGIN INITIAL; }
5227 #ifdef YYTEXT_POINTER
5228 extern char *yytext;
5233 return ! yylex () + ! yywrap ();
5236 { { ac_try="$LEX conftest.l"
5238 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5239 *) ac_try_echo
=$ac_try;;
5241 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5242 $as_echo "$ac_try_echo"; } >&5
5243 (eval "$LEX conftest.l") 2>&5
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5248 $as_echo_n "checking lex output file root... " >&6; }
5249 if test "${ac_cv_prog_lex_root+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5253 if test -f lex.yy.c
; then
5254 ac_cv_prog_lex_root
=lex.yy
5255 elif test -f lexyy.c
; then
5256 ac_cv_prog_lex_root
=lexyy
5258 as_fn_error
"cannot find output from $LEX; giving up" "$LINENO" 5
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5262 $as_echo "$ac_cv_prog_lex_root" >&6; }
5263 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5265 if test -z "${LEXLIB+set}"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5267 $as_echo_n "checking lex library... " >&6; }
5268 if test "${ac_cv_lib_lex+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5273 ac_cv_lib_lex
='none needed'
5274 for ac_lib
in '' -lfl -ll; do
5275 LIBS
="$ac_lib $ac_save_LIBS"
5276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 `cat $LEX_OUTPUT_ROOT.c`
5280 if ac_fn_c_try_link
"$LINENO"; then :
5281 ac_cv_lib_lex
=$ac_lib
5283 rm -f core conftest.err conftest.
$ac_objext \
5284 conftest
$ac_exeext conftest.
$ac_ext
5285 test "$ac_cv_lib_lex" != 'none needed' && break
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5291 $as_echo "$ac_cv_lib_lex" >&6; }
5292 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5297 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5298 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5299 $as_echo_n "(cached) " >&6
5301 # POSIX says lex can declare yytext either as a pointer or an array; the
5302 # default is implementation-dependent. Figure out which it is, since
5303 # not all implementations provide the %pointer and %array declarations.
5304 ac_cv_prog_lex_yytext_pointer
=no
5306 LIBS
="$LEXLIB $ac_save_LIBS"
5307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #define YYTEXT_POINTER 1
5310 `cat $LEX_OUTPUT_ROOT.c`
5312 if ac_fn_c_try_link
"$LINENO"; then :
5313 ac_cv_prog_lex_yytext_pointer
=yes
5315 rm -f core conftest.err conftest.
$ac_objext \
5316 conftest
$ac_exeext conftest.
$ac_ext
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5321 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5322 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5324 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5327 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5331 if test "$LEX" = ":"; then
5332 as_fn_error
"could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5335 if test "$libexecdir" = '${exec_prefix}/libexec' &&
5336 test "$localstatedir" = '${prefix}/var'; then
5337 libexecdir
='${bindir}'
5338 localstatedir
='${prefix}'
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5342 $as_echo_n "checking for ANSI C header files... " >&6; }
5343 if test "${ac_cv_header_stdc+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
5346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5361 if ac_fn_c_try_compile
"$LINENO"; then :
5362 ac_cv_header_stdc
=yes
5364 ac_cv_header_stdc
=no
5366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5368 if test $ac_cv_header_stdc = yes; then
5369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5376 $EGREP "memchr" >/dev
/null
2>&1; then :
5379 ac_cv_header_stdc
=no
5385 if test $ac_cv_header_stdc = yes; then
5386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5393 $EGREP "free" >/dev
/null
2>&1; then :
5396 ac_cv_header_stdc
=no
5402 if test $ac_cv_header_stdc = yes; then
5403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5404 if test "$cross_compiling" = yes; then :
5407 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5411 #if ((' ' & 0x0FF) == 0x020)
5412 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5413 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5415 # define ISLOWER(c) \
5416 (('a' <= (c) && (c) <= 'i') \
5417 || ('j' <= (c) && (c) <= 'r') \
5418 || ('s' <= (c) && (c) <= 'z'))
5419 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5427 for (i = 0; i < 256; i++)
5428 if (XOR (islower (i), ISLOWER (i))
5429 || toupper (i) != TOUPPER (i))
5434 if ac_fn_c_try_run
"$LINENO"; then :
5437 ac_cv_header_stdc
=no
5439 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5440 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5446 $as_echo "$ac_cv_header_stdc" >&6; }
5447 if test $ac_cv_header_stdc = yes; then
5449 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5454 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
5456 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5457 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5458 eval as_val
=\$
$as_ac_Header
5459 if test "x$as_val" = x
""yes; then :
5460 cat >>confdefs.h
<<_ACEOF
5461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5471 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5472 if test "${ac_cv_c_const+set}" = set; then :
5473 $as_echo_n "(cached) " >&6
5475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5481 /* FIXME: Include the comments suggested by Paul. */
5483 /* Ultrix mips cc rejects this. */
5484 typedef int charset[2];
5486 /* SunOS 4.1.1 cc rejects this. */
5487 char const *const *pcpcc;
5489 /* NEC SVR4.0.2 mips cc rejects this. */
5490 struct point {int x, y;};
5491 static struct point const zero = {0,0};
5492 /* AIX XL C 1.02.0.0 rejects this.
5493 It does not let you subtract one const X* pointer from another in
5494 an arm of an if-expression whose if-part is not a constant
5496 const char *g = "string";
5497 pcpcc = &g + (g ? g-g : 0);
5498 /* HPUX 7.0 cc rejects these. */
5500 ppc = (char**) pcpcc;
5501 pcpcc = (char const *const *) ppc;
5502 { /* SCO 3.2v4 cc rejects this. */
5504 char const *s = 0 ? (char *) 0 : (char const *) 0;
5509 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5511 const int *foo = &x[0];
5514 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5515 typedef const int *iptr;
5519 { /* AIX XL C 1.02.0.0 rejects this saying
5520 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5521 struct s { int j; const int *ap[3]; };
5522 struct s *b; b->j = 5;
5524 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5528 return !cs[0] && !zero.x;
5535 if ac_fn_c_try_compile
"$LINENO"; then :
5540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5543 $as_echo "$ac_cv_c_const" >&6; }
5544 if test $ac_cv_c_const = no
; then
5546 $as_echo "#define const /**/" >>confdefs.h
5550 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5552 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5553 if test "${ac_cv_c_bigendian+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5556 ac_cv_c_bigendian
=unknown
5557 # See if we're dealing with a universal compiler.
5558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5559 /* end confdefs.h. */
5560 #ifndef __APPLE_CC__
5561 not a universal capable compiler
5566 if ac_fn_c_try_compile
"$LINENO"; then :
5568 # Check for potential -arch flags. It is not universal unless
5569 # there are at least two -arch flags with different values.
5572 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5573 if test -n "$ac_prev"; then
5575 i?
86 | x86_64
| ppc
| ppc64
)
5576 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5579 ac_cv_c_bigendian
=universal
5585 elif test "x$ac_word" = "x-arch"; then
5590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 if test $ac_cv_c_bigendian = unknown
; then
5592 # See if sys/param.h defines the BYTE_ORDER macro.
5593 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 #include <sys/types.h>
5596 #include <sys/param.h>
5601 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5602 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5611 if ac_fn_c_try_compile
"$LINENO"; then :
5612 # It does; now see whether it defined to BIG_ENDIAN or not.
5613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5614 /* end confdefs.h. */
5615 #include <sys/types.h>
5616 #include <sys/param.h>
5621 #if BYTE_ORDER != BIG_ENDIAN
5629 if ac_fn_c_try_compile
"$LINENO"; then :
5630 ac_cv_c_bigendian
=yes
5632 ac_cv_c_bigendian
=no
5634 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5638 if test $ac_cv_c_bigendian = unknown
; then
5639 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5647 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5655 if ac_fn_c_try_compile
"$LINENO"; then :
5656 # It does; now see whether it defined to _BIG_ENDIAN or not.
5657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5672 if ac_fn_c_try_compile
"$LINENO"; then :
5673 ac_cv_c_bigendian
=yes
5675 ac_cv_c_bigendian
=no
5677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5681 if test $ac_cv_c_bigendian = unknown
; then
5682 # Compile a test program.
5683 if test "$cross_compiling" = yes; then :
5684 # Try to guess by grepping values from an object file.
5685 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5687 short int ascii_mm[] =
5688 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5689 short int ascii_ii[] =
5690 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5691 int use_ascii (int i) {
5692 return ascii_mm[i] + ascii_ii[i];
5694 short int ebcdic_ii[] =
5695 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5696 short int ebcdic_mm[] =
5697 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5698 int use_ebcdic (int i) {
5699 return ebcdic_mm[i] + ebcdic_ii[i];
5706 return use_ascii (foo) == use_ebcdic (foo);
5711 if ac_fn_c_try_compile
"$LINENO"; then :
5712 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5713 ac_cv_c_bigendian
=yes
5715 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5716 if test "$ac_cv_c_bigendian" = unknown
; then
5717 ac_cv_c_bigendian
=no
5719 # finding both strings is unlikely to happen, but who knows?
5720 ac_cv_c_bigendian
=unknown
5724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 $ac_includes_default
5733 /* Are we little or big endian? From Harbison&Steele. */
5737 char c[sizeof (long int)];
5740 return u.c[sizeof (long int) - 1] == 1;
5746 if ac_fn_c_try_run
"$LINENO"; then :
5747 ac_cv_c_bigendian
=no
5749 ac_cv_c_bigendian
=yes
5751 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5752 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5758 $as_echo "$ac_cv_c_bigendian" >&6; }
5759 case $ac_cv_c_bigendian in #(
5761 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5767 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5771 as_fn_error
"unknown endianness
5772 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5776 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5777 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5781 cat >>confdefs.h
<<_ACEOF
5787 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5788 if test "x$ac_cv_type_size_t" = x
""yes; then :
5792 cat >>confdefs.h
<<_ACEOF
5793 #define size_t unsigned int
5798 # The cast to long int works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5803 $as_echo_n "checking size of short... " >&6; }
5804 if test "${ac_cv_sizeof_short+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5807 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5810 if test "$ac_cv_type_short" = yes; then
5811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5813 { as_fn_set_status
77
5814 as_fn_error
"cannot compute sizeof (short)
5815 See \`config.log' for more details." "$LINENO" 5; }; }
5817 ac_cv_sizeof_short
=0
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5823 $as_echo "$ac_cv_sizeof_short" >&6; }
5827 cat >>confdefs.h
<<_ACEOF
5828 #define SIZEOF_SHORT $ac_cv_sizeof_short
5832 # The cast to long int works around a bug in the HP C Compiler
5833 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5834 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5835 # This bug is HP SR number 8606223364.
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5837 $as_echo_n "checking size of int... " >&6; }
5838 if test "${ac_cv_sizeof_int+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5841 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5844 if test "$ac_cv_type_int" = yes; then
5845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5847 { as_fn_set_status
77
5848 as_fn_error
"cannot compute sizeof (int)
5849 See \`config.log' for more details." "$LINENO" 5; }; }
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5857 $as_echo "$ac_cv_sizeof_int" >&6; }
5861 cat >>confdefs.h
<<_ACEOF
5862 #define SIZEOF_INT $ac_cv_sizeof_int
5866 # The cast to long int works around a bug in the HP C Compiler
5867 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5868 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5869 # This bug is HP SR number 8606223364.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5871 $as_echo_n "checking size of long... " >&6; }
5872 if test "${ac_cv_sizeof_long+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5875 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5878 if test "$ac_cv_type_long" = yes; then
5879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5881 { as_fn_set_status
77
5882 as_fn_error
"cannot compute sizeof (long)
5883 See \`config.log' for more details." "$LINENO" 5; }; }
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5891 $as_echo "$ac_cv_sizeof_long" >&6; }
5895 cat >>confdefs.h
<<_ACEOF
5896 #define SIZEOF_LONG $ac_cv_sizeof_long
5900 # The cast to long int works around a bug in the HP C Compiler
5901 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5902 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5903 # This bug is HP SR number 8606223364.
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5905 $as_echo_n "checking size of long long... " >&6; }
5906 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5909 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5912 if test "$ac_cv_type_long_long" = yes; then
5913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5915 { as_fn_set_status
77
5916 as_fn_error
"cannot compute sizeof (long long)
5917 See \`config.log' for more details." "$LINENO" 5; }; }
5919 ac_cv_sizeof_long_long
=0
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5925 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5929 cat >>confdefs.h
<<_ACEOF
5930 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5937 $as_echo_n "checking for library containing socket... " >&6; }
5938 if test "${ac_cv_search_socket+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5941 ac_func_search_save_LIBS
=$LIBS
5942 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5945 /* Override any GCC internal prototype to avoid an error.
5946 Use char because int might match the return type of a GCC
5947 builtin and then its argument prototype would still apply. */
5960 for ac_lib
in '' socket
; do
5961 if test -z "$ac_lib"; then
5962 ac_res
="none required"
5965 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5967 if ac_fn_c_try_link
"$LINENO"; then :
5968 ac_cv_search_socket
=$ac_res
5970 rm -f core conftest.err conftest.
$ac_objext \
5972 if test "${ac_cv_search_socket+set}" = set; then :
5976 if test "${ac_cv_search_socket+set}" = set; then :
5979 ac_cv_search_socket
=no
5982 LIBS
=$ac_func_search_save_LIBS
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5985 $as_echo "$ac_cv_search_socket" >&6; }
5986 ac_res
=$ac_cv_search_socket
5987 if test "$ac_res" != no
; then :
5988 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5991 as_fn_error
"You have no socket()! Aborting." "$LINENO" 5
5995 if test x
"$SUN" = xyes
; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
5997 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
5998 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
5999 $as_echo_n "(cached) " >&6
6001 ac_func_search_save_LIBS
=$LIBS
6002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6005 /* Override any GCC internal prototype to avoid an error.
6006 Use char because int might match the return type of a GCC
6007 builtin and then its argument prototype would still apply. */
6015 return inet_ntoa ();
6020 for ac_lib
in '' nsl
; do
6021 if test -z "$ac_lib"; then
6022 ac_res
="none required"
6025 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6027 if ac_fn_c_try_link
"$LINENO"; then :
6028 ac_cv_search_inet_ntoa
=$ac_res
6030 rm -f core conftest.err conftest.
$ac_objext \
6032 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
6036 if test "${ac_cv_search_inet_ntoa+set}" = set; then :
6039 ac_cv_search_inet_ntoa
=no
6042 LIBS
=$ac_func_search_save_LIBS
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6045 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6046 ac_res
=$ac_cv_search_inet_ntoa
6047 if test "$ac_res" != no
; then :
6048 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6051 as_fn_error
"libnsl not found! Aborting." "$LINENO" 5
6056 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6057 #include <sys/socket.h>
6059 if test "x$ac_cv_type_socklen_t" = x
""yes; then :
6063 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6068 # Check whether --enable-ipv6 was given.
6069 if test "${enable_ipv6+set}" = set; then :
6070 enableval
=$enable_ipv6; ipv6
=$enableval
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6077 $as_echo_n "checking for library containing crypt... " >&6; }
6078 if test "${ac_cv_search_crypt+set}" = set; then :
6079 $as_echo_n "(cached) " >&6
6081 ac_func_search_save_LIBS
=$LIBS
6082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6085 /* Override any GCC internal prototype to avoid an error.
6086 Use char because int might match the return type of a GCC
6087 builtin and then its argument prototype would still apply. */
6100 for ac_lib
in '' crypt descrypt
; do
6101 if test -z "$ac_lib"; then
6102 ac_res
="none required"
6105 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6107 if ac_fn_c_try_link
"$LINENO"; then :
6108 ac_cv_search_crypt
=$ac_res
6110 rm -f core conftest.err conftest.
$ac_objext \
6112 if test "${ac_cv_search_crypt+set}" = set; then :
6116 if test "${ac_cv_search_crypt+set}" = set; then :
6119 ac_cv_search_crypt
=no
6122 LIBS
=$ac_func_search_save_LIBS
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6125 $as_echo "$ac_cv_search_crypt" >&6; }
6126 ac_res
=$ac_cv_search_crypt
6127 if test "$ac_res" != no
; then :
6128 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6133 CRYPT_LIB
=$ac_cv_search_crypt
6135 if test "$CRYPT_LIB" = "none required"; then
6137 elif test "$CRYPT_LIB" = no
; then
6143 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6152 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6153 if test "${gcc_cv_header_string+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6160 #include <strings.h>
6162 if ac_fn_c_try_compile
"$LINENO"; then :
6163 gcc_cv_header_string
=yes
6165 gcc_cv_header_string
=no
6167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6171 $as_echo "$gcc_cv_header_string" >&6; }
6173 if test "$gcc_cv_header_string" = "yes"; then
6175 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6180 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6181 if test "${ac_cv_c_bigendian+set}" = set; then :
6182 $as_echo_n "(cached) " >&6
6184 ac_cv_c_bigendian
=unknown
6185 # See if we're dealing with a universal compiler.
6186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6187 /* end confdefs.h. */
6188 #ifndef __APPLE_CC__
6189 not a universal capable compiler
6194 if ac_fn_c_try_compile
"$LINENO"; then :
6196 # Check for potential -arch flags. It is not universal unless
6197 # there are at least two -arch flags with different values.
6200 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6201 if test -n "$ac_prev"; then
6203 i?
86 | x86_64
| ppc
| ppc64
)
6204 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6207 ac_cv_c_bigendian
=universal
6213 elif test "x$ac_word" = "x-arch"; then
6218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6219 if test $ac_cv_c_bigendian = unknown
; then
6220 # See if sys/param.h defines the BYTE_ORDER macro.
6221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 #include <sys/types.h>
6224 #include <sys/param.h>
6229 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6230 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6239 if ac_fn_c_try_compile
"$LINENO"; then :
6240 # It does; now see whether it defined to BIG_ENDIAN or not.
6241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 #include <sys/types.h>
6244 #include <sys/param.h>
6249 #if BYTE_ORDER != BIG_ENDIAN
6257 if ac_fn_c_try_compile
"$LINENO"; then :
6258 ac_cv_c_bigendian
=yes
6260 ac_cv_c_bigendian
=no
6262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6266 if test $ac_cv_c_bigendian = unknown
; then
6267 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6275 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6283 if ac_fn_c_try_compile
"$LINENO"; then :
6284 # It does; now see whether it defined to _BIG_ENDIAN or not.
6285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6286 /* end confdefs.h. */
6300 if ac_fn_c_try_compile
"$LINENO"; then :
6301 ac_cv_c_bigendian
=yes
6303 ac_cv_c_bigendian
=no
6305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6309 if test $ac_cv_c_bigendian = unknown
; then
6310 # Compile a test program.
6311 if test "$cross_compiling" = yes; then :
6312 # Try to guess by grepping values from an object file.
6313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 short int ascii_mm[] =
6316 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6317 short int ascii_ii[] =
6318 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6319 int use_ascii (int i) {
6320 return ascii_mm[i] + ascii_ii[i];
6322 short int ebcdic_ii[] =
6323 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6324 short int ebcdic_mm[] =
6325 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6326 int use_ebcdic (int i) {
6327 return ebcdic_mm[i] + ebcdic_ii[i];
6334 return use_ascii (foo) == use_ebcdic (foo);
6339 if ac_fn_c_try_compile
"$LINENO"; then :
6340 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6341 ac_cv_c_bigendian
=yes
6343 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6344 if test "$ac_cv_c_bigendian" = unknown
; then
6345 ac_cv_c_bigendian
=no
6347 # finding both strings is unlikely to happen, but who knows?
6348 ac_cv_c_bigendian
=unknown
6352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 $ac_includes_default
6361 /* Are we little or big endian? From Harbison&Steele. */
6365 char c[sizeof (long int)];
6368 return u.c[sizeof (long int) - 1] == 1;
6374 if ac_fn_c_try_run
"$LINENO"; then :
6375 ac_cv_c_bigendian
=no
6377 ac_cv_c_bigendian
=yes
6379 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6380 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6386 $as_echo "$ac_cv_c_bigendian" >&6; }
6387 case $ac_cv_c_bigendian in #(
6389 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6395 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6399 as_fn_error
"unknown endianness
6400 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6404 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6405 if test "x$ac_cv_header_stdarg_h" = x
""yes; then :
6408 as_fn_error
"** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6414 if test "$ac_cv_c_compiler_gnu" = yes; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6417 $as_echo_n "checking for strlcpy... " >&6; }
6419 CFLAGS
="$CFLAGS -Wimplicit -Werror"
6421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6428 char *a = malloc(6);
6429 strlcpy(a, "hello", 6);
6435 if ac_fn_c_try_link
"$LINENO"; then :
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6437 $as_echo "yes" >&6; }
6439 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6443 $as_echo "no" >&6; }
6446 rm -f core conftest.err conftest.
$ac_objext \
6447 conftest
$ac_exeext conftest.
$ac_ext
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6450 $as_echo_n "checking for strlcat... " >&6; }
6451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6458 char *a = malloc(6);
6460 strlcat(a, "hello", 6);
6466 if ac_fn_c_try_link
"$LINENO"; then :
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6468 $as_echo "yes" >&6; }
6470 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6477 rm -f core conftest.err conftest.
$ac_objext \
6478 conftest
$ac_exeext conftest.
$ac_ext
6485 for ac_func
in strlcat strlcpy
6487 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6488 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6489 eval as_val
=\$
$as_ac_var
6490 if test "x$as_val" = x
""yes; then :
6491 cat >>confdefs.h
<<_ACEOF
6492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6501 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6502 if test "x$ac_cv_type_u_int32_t" = x
""yes; then :
6506 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6507 if test "x$ac_cv_type_uint32_t" = x
""yes; then :
6510 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6516 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6518 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6527 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6528 if test "x$ac_cv_type_u_int16_t" = x
""yes; then :
6532 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6533 if test "x$ac_cv_type_uint16_t" = x
""yes; then :
6536 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6542 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6544 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6553 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6554 #include <netinet/in.h>
6556 if test "x$ac_cv_type_in_port_t" = x
""yes; then :
6560 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6565 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6566 #include <sys/socket.h>
6568 if test "x$ac_cv_type_sa_family_t" = x
""yes; then :
6572 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6577 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6578 if test "x$ac_cv_type_uintptr_t" = x
""yes; then :
6580 cat >>confdefs.h
<<_ACEOF
6581 #define HAVE_UINTPTR_T 1
6588 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
6590 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6591 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6592 eval as_val
=\$
$as_ac_var
6593 if test "x$as_val" = x
""yes; then :
6594 cat >>confdefs.h
<<_ACEOF
6595 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6602 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6603 # for constant arguments. Useless!
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6605 $as_echo_n "checking for working alloca.h... " >&6; }
6606 if test "${ac_cv_working_alloca_h+set}" = set; then :
6607 $as_echo_n "(cached) " >&6
6609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6615 char *p = (char *) alloca (2 * sizeof (int));
6621 if ac_fn_c_try_link
"$LINENO"; then :
6622 ac_cv_working_alloca_h
=yes
6624 ac_cv_working_alloca_h
=no
6626 rm -f core conftest.err conftest.
$ac_objext \
6627 conftest
$ac_exeext conftest.
$ac_ext
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6630 $as_echo "$ac_cv_working_alloca_h" >&6; }
6631 if test $ac_cv_working_alloca_h = yes; then
6633 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6638 $as_echo_n "checking for alloca... " >&6; }
6639 if test "${ac_cv_func_alloca_works+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6642 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6645 # define alloca __builtin_alloca
6648 # include <malloc.h>
6649 # define alloca _alloca
6651 # ifdef HAVE_ALLOCA_H
6652 # include <alloca.h>
6657 # ifndef alloca /* predefined by HP cc +Olibcalls */
6668 char *p = (char *) alloca (1);
6674 if ac_fn_c_try_link
"$LINENO"; then :
6675 ac_cv_func_alloca_works
=yes
6677 ac_cv_func_alloca_works
=no
6679 rm -f core conftest.err conftest.
$ac_objext \
6680 conftest
$ac_exeext conftest.
$ac_ext
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6683 $as_echo "$ac_cv_func_alloca_works" >&6; }
6685 if test $ac_cv_func_alloca_works = yes; then
6687 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6691 # that cause trouble. Some versions do not even contain alloca or
6692 # contain a buggy version. If you still want to use their alloca,
6693 # use ar to extract alloca.o from them instead of compiling alloca.c.
6695 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6697 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6701 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6702 if test "${ac_cv_os_cray+set}" = set; then :
6703 $as_echo_n "(cached) " >&6
6705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707 #if defined CRAY && ! defined CRAY2
6714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6715 $EGREP "webecray" >/dev
/null
2>&1; then :
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6724 $as_echo "$ac_cv_os_cray" >&6; }
6725 if test $ac_cv_os_cray = yes; then
6726 for ac_func
in _getb67 GETB67 getb67
; do
6727 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6728 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6729 eval as_val
=\$
$as_ac_var
6730 if test "x$as_val" = x
""yes; then :
6732 cat >>confdefs.h
<<_ACEOF
6733 #define CRAY_STACKSEG_END $ac_func
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6743 $as_echo_n "checking stack direction for C alloca... " >&6; }
6744 if test "${ac_cv_c_stack_direction+set}" = set; then :
6745 $as_echo_n "(cached) " >&6
6747 if test "$cross_compiling" = yes; then :
6748 ac_cv_c_stack_direction
=0
6750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6751 /* end confdefs.h. */
6752 $ac_includes_default
6754 find_stack_direction ()
6756 static char *addr = 0;
6761 return find_stack_direction ();
6764 return (&dummy > addr) ? 1 : -1;
6770 return find_stack_direction () < 0;
6773 if ac_fn_c_try_run
"$LINENO"; then :
6774 ac_cv_c_stack_direction
=1
6776 ac_cv_c_stack_direction
=-1
6778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6784 $as_echo "$ac_cv_c_stack_direction" >&6; }
6785 cat >>confdefs.h
<<_ACEOF
6786 #define STACK_DIRECTION $ac_cv_c_stack_direction
6794 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6795 if test "x$ac_cv_func_nanosleep" = x
""yes; then :
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6799 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6800 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
6801 $as_echo_n "(cached) " >&6
6803 ac_check_lib_save_LIBS
=$LIBS
6805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6808 /* Override any GCC internal prototype to avoid an error.
6809 Use char because int might match the return type of a GCC
6810 builtin and then its argument prototype would still apply. */
6818 return nanosleep ();
6823 if ac_fn_c_try_link
"$LINENO"; then :
6824 ac_cv_lib_rt_nanosleep
=yes
6826 ac_cv_lib_rt_nanosleep
=no
6828 rm -f core conftest.err conftest.
$ac_objext \
6829 conftest
$ac_exeext conftest.
$ac_ext
6830 LIBS
=$ac_check_lib_save_LIBS
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6833 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6834 if test "x$ac_cv_lib_rt_nanosleep" = x
""yes; then :
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6838 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6839 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then :
6840 $as_echo_n "(cached) " >&6
6842 ac_check_lib_save_LIBS
=$LIBS
6843 LIBS
="-lposix4 $LIBS"
6844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6847 /* Override any GCC internal prototype to avoid an error.
6848 Use char because int might match the return type of a GCC
6849 builtin and then its argument prototype would still apply. */
6857 return nanosleep ();
6862 if ac_fn_c_try_link
"$LINENO"; then :
6863 ac_cv_lib_posix4_nanosleep
=yes
6865 ac_cv_lib_posix4_nanosleep
=no
6867 rm -f core conftest.err conftest.
$ac_objext \
6868 conftest
$ac_exeext conftest.
$ac_ext
6869 LIBS
=$ac_check_lib_save_LIBS
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6872 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6873 if test "x$ac_cv_lib_posix4_nanosleep" = x
""yes; then :
6874 LIBS
="${LIBS} -lposix4"
6882 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6885 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
6888 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6893 $as_echo_n "checking for OpenSSL... " >&6; }
6894 # Check whether --enable-openssl was given.
6895 if test "${enable_openssl+set}" = set; then :
6896 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
6898 cf_enable_openssl
="auto"
6902 if test "$cf_enable_openssl" != "no" ; then
6903 cf_openssl_basedir
=""
6904 if test "$cf_enable_openssl" != "auto" &&
6905 test "$cf_enable_openssl" != "yes" ; then
6906 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6908 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
6909 /usr
/local
/openssl
; do
6910 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6911 cf_openssl_basedir
="${dirs}"
6917 if test ! -z "$cf_openssl_basedir"; then
6918 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
6919 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
6920 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
6922 cf_openssl_basedir
=""
6925 if test -f "/usr/include/openssl/opensslv.h" ; then
6926 cf_openssl_basedir
="/usr"
6930 if test ! -z "$cf_openssl_basedir"; then
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
6932 $as_echo "$cf_openssl_basedir" >&6; }
6933 cf_enable_openssl
="yes"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
6936 $as_echo "not found. Specify a correct path?" >&6; }
6937 cf_enable_openssl
="no"
6939 unset cf_openssl_basedir
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
6942 $as_echo "disabled" >&6; }
6945 save_CPPFLAGS
="$CPPFLAGS"
6946 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
6948 LIBS
="$LIBS $SSL_LIBS"
6949 if test "$cf_enable_openssl" != no
; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
6951 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
6952 if test "$cross_compiling" = yes; then :
6953 cf_openssl_version_ok
=no
6955 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 #include <openssl/opensslv.h>
6962 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
6963 exit(0); else exit(1);
6968 if ac_fn_c_try_run
"$LINENO"; then :
6969 cf_openssl_version_ok
=yes
6971 cf_openssl_version_ok
=no
6973 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6974 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6978 if test "$cf_openssl_version_ok" = yes; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
6980 $as_echo "found" >&6; }
6985 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
6987 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
6988 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
6989 $as_echo_n "(cached) " >&6
6991 ac_check_lib_save_LIBS
=$LIBS
6992 LIBS
="-lcrypto $LIBS"
6993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6996 /* Override any GCC internal prototype to avoid an error.
6997 Use char because int might match the return type of a GCC
6998 builtin and then its argument prototype would still apply. */
7011 if ac_fn_c_try_link
"$LINENO"; then :
7012 ac_cv_lib_crypto_RSA_free
=yes
7014 ac_cv_lib_crypto_RSA_free
=no
7016 rm -f core conftest.err conftest.
$ac_objext \
7017 conftest
$ac_exeext conftest.
$ac_ext
7018 LIBS
=$ac_check_lib_save_LIBS
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7021 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7022 if test "x$ac_cv_lib_crypto_RSA_free" = x
""yes; then :
7023 cat >>confdefs.h
<<_ACEOF
7024 #define HAVE_LIBCRYPTO 1
7027 LIBS
="-lcrypto $LIBS"
7031 SSL_LIBS
="$SSL_LIBS -lcrypto"
7032 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7035 $as_echo "no - OpenSSL support disabled" >&6; }
7039 CPPFLAGS
="$save_CPPFLAGS"
7046 # Check whether --with-zlib-path was given.
7047 if test "${with_zlib_path+set}" = set; then :
7048 withval
=$with_zlib_path; LIBS
="$LIBS -L$withval"
7052 # Check whether --enable-zlib was given.
7053 if test "${enable_zlib+set}" = set; then :
7054 enableval
=$enable_zlib; zlib
=$enableval
7060 if test "$zlib" = yes; then
7062 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7063 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7066 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7067 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
7070 ac_check_lib_save_LIBS
=$LIBS
7072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7075 /* Override any GCC internal prototype to avoid an error.
7076 Use char because int might match the return type of a GCC
7077 builtin and then its argument prototype would still apply. */
7081 char zlibVersion ();
7085 return zlibVersion ();
7090 if ac_fn_c_try_link
"$LINENO"; then :
7091 ac_cv_lib_z_zlibVersion
=yes
7093 ac_cv_lib_z_zlibVersion
=no
7095 rm -f core conftest.err conftest.
$ac_objext \
7096 conftest
$ac_exeext conftest.
$ac_ext
7097 LIBS
=$ac_check_lib_save_LIBS
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7100 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7101 if test "x$ac_cv_lib_z_zlibVersion" = x
""yes; then :
7106 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7123 # Check whether --enable-ports was given.
7124 if test "${enable_ports+set}" = set; then :
7125 enableval
=$enable_ports; if test $enableval = yes; then
7126 SELECT_TYPE_EXPLICIT
="ports"
7134 # Check whether --enable-poll was given.
7135 if test "${enable_poll+set}" = set; then :
7136 enableval
=$enable_poll; if test $enableval = yes; then
7137 SELECT_TYPE_EXPLICIT
="poll"
7145 # Check whether --enable-select was given.
7146 if test "${enable_select+set}" = set; then :
7147 enableval
=$enable_select; if test $enableval = yes; then
7148 SELECT_TYPE_EXPLICIT
="select"
7156 # Check whether --enable-kqueue was given.
7157 if test "${enable_kqueue+set}" = set; then :
7158 enableval
=$enable_kqueue; if test $enableval = yes; then
7159 SELECT_TYPE_EXPLICIT
="kqueue"
7167 # Check whether --enable-epoll was given.
7168 if test "${enable_epoll+set}" = set; then :
7169 enableval
=$enable_epoll; if test $enableval = yes; then
7170 SELECT_TYPE_EXPLICIT
="epoll"
7171 for ac_func
in epoll_ctl
7173 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7174 if test "x$ac_cv_func_epoll_ctl" = x
""yes; then :
7175 cat >>confdefs.h
<<_ACEOF
7176 #define HAVE_EPOLL_CTL 1
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7193 $as_echo_n "checking whether to modify confdir... " >&6; }
7195 # Check whether --with-confdir was given.
7196 if test "${with_confdir+set}" = set; then :
7197 withval
=$with_confdir; confdir
=`echo $withval | sed 's/\/$//'`
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7199 $as_echo "yes" >&6; }
7201 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7202 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7203 ac_define_dir
=`eval echo $confdir`
7204 ac_define_dir
=`eval echo $ac_define_dir`
7205 ETC_DIR
="$ac_define_dir"
7208 cat >>confdefs.h
<<_ACEOF
7209 #define ETC_DIR "$ac_define_dir"
7216 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7217 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7218 eval echo \""$confdir"\"
7223 confdir
='${prefix}/etc'
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225 $as_echo "no" >&6; }
7227 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7228 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7229 ac_define_dir
=`eval echo $confdir`
7230 ac_define_dir
=`eval echo $ac_define_dir`
7231 ETC_DIR
="$ac_define_dir"
7234 cat >>confdefs.h
<<_ACEOF
7235 #define ETC_DIR "$ac_define_dir"
7242 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7243 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7244 eval echo \""$confdir"\"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7254 $as_echo_n "checking whether to modify logdir... " >&6; }
7256 # Check whether --with-logdir was given.
7257 if test "${with_logdir+set}" = set; then :
7258 withval
=$with_logdir; logdir
=`echo $withval | sed 's/\/$//'`
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7260 $as_echo "yes" >&6; }
7262 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7263 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7264 ac_define_dir
=`eval echo $logdir`
7265 ac_define_dir
=`eval echo $ac_define_dir`
7266 LOG_DIR
="$ac_define_dir"
7269 cat >>confdefs.h
<<_ACEOF
7270 #define LOG_DIR "$ac_define_dir"
7277 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7278 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7279 eval echo \""$logdir"\"
7284 logdir
='${prefix}/logs'
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7288 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7289 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7290 ac_define_dir
=`eval echo $logdir`
7291 ac_define_dir
=`eval echo $ac_define_dir`
7292 LOG_DIR
="$ac_define_dir"
7295 cat >>confdefs.h
<<_ACEOF
7296 #define LOG_DIR "$ac_define_dir"
7303 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7304 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7305 eval echo \""$logdir"\"
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7315 $as_echo_n "checking whether to modify helpdir... " >&6; }
7317 # Check whether --with-helpdir was given.
7318 if test "${with_helpdir+set}" = set; then :
7319 withval
=$with_helpdir; helpdir
=`echo $withval | sed 's/\/$//'`
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7321 $as_echo "yes" >&6; }
7323 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7324 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7325 ac_define_dir
=`eval echo $helpdir`
7326 ac_define_dir
=`eval echo $ac_define_dir`
7327 HELP_DIR
="$ac_define_dir"
7330 cat >>confdefs.h
<<_ACEOF
7331 #define HELP_DIR "$ac_define_dir"
7338 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7339 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7340 eval echo \""$helpdir"\"
7345 helpdir
='${prefix}/help'
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347 $as_echo "no" >&6; }
7349 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7350 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7351 ac_define_dir
=`eval echo $helpdir`
7352 ac_define_dir
=`eval echo $ac_define_dir`
7353 HELP_DIR
="$ac_define_dir"
7356 cat >>confdefs.h
<<_ACEOF
7357 #define HELP_DIR "$ac_define_dir"
7364 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7365 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7366 eval echo \""$helpdir"\"
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7376 $as_echo_n "checking whether to modify moduledir... " >&6; }
7378 # Check whether --with-moduledir was given.
7379 if test "${with_moduledir+set}" = set; then :
7380 withval
=$with_moduledir; moduledir
=`echo $withval | sed 's/\/$//'`
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7382 $as_echo "yes" >&6; }
7384 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7385 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7386 ac_define_dir
=`eval echo $moduledir`
7387 ac_define_dir
=`eval echo $ac_define_dir`
7388 MODULE_DIR
="$ac_define_dir"
7391 cat >>confdefs.h
<<_ACEOF
7392 #define MODULE_DIR "$ac_define_dir"
7399 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7400 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7401 eval echo \""$moduledir"\"
7406 moduledir
='${prefix}/modules'
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7410 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7411 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7412 ac_define_dir
=`eval echo $moduledir`
7413 ac_define_dir
=`eval echo $ac_define_dir`
7414 MODULE_DIR
="$ac_define_dir"
7417 cat >>confdefs.h
<<_ACEOF
7418 #define MODULE_DIR "$ac_define_dir"
7425 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7426 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7427 eval echo \""$moduledir"\"
7435 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7436 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
7437 echo "Forcing $SELECT_TYPE to be enabled"
7440 if test ! "x$use_ports" = "xno"; then
7441 for ac_func
in port_getn
7443 ac_fn_c_check_func
"$LINENO" "port_getn" "ac_cv_func_port_getn"
7444 if test "x$ac_cv_func_port_getn" = x
""yes; then :
7445 cat >>confdefs.h
<<_ACEOF
7446 #define HAVE_PORT_GETN 1
7454 if test "x$haveports" = "xyes" ; then
7459 if test ! "x$use_select" = "xno"; then
7460 for ac_func
in select
7462 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
7463 if test "x$ac_cv_func_select" = x
""yes; then :
7464 cat >>confdefs.h
<<_ACEOF
7465 #define HAVE_SELECT 1
7473 if test "x$haveselect" = "xyes" ; then
7474 SELECT_TYPE
="select"
7478 if test ! "x$use_poll" = "xno"; then
7481 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7482 if test "x$ac_cv_func_poll" = x
""yes; then :
7483 cat >>confdefs.h
<<_ACEOF
7492 if test "x$havepoll" = "xyes" ; then
7497 if test ! "x$use_kqueue" = "xno"; then
7498 for ac_func
in kevent
7500 ac_fn_c_check_func
"$LINENO" "kevent" "ac_cv_func_kevent"
7501 if test "x$ac_cv_func_kevent" = x
""yes; then :
7502 cat >>confdefs.h
<<_ACEOF
7503 #define HAVE_KEVENT 1
7511 if test "x$havekqueue" = "xyes" ; then
7512 SELECT_TYPE
="kqueue"
7516 if test ! "x$use_epoll" = "xno"; then
7517 for ac_func
in epoll_ctl
7519 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7520 if test "x$ac_cv_func_epoll_ctl" = x
""yes; then :
7521 cat >>confdefs.h
<<_ACEOF
7522 #define HAVE_EPOLL_CTL 1
7530 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7531 if test "x$haveepoll" = "xyes" ; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7533 $as_echo_n "checking for epoll support in kernel... " >&6; }
7534 if test "$cross_compiling" = yes; then :
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7541 #include <sys/param.h>
7542 #include <sys/types.h>
7543 #include <sys/epoll.h>
7544 #include <sys/syscall.h>
7548 main(int argc, char **argv)
7552 epfd = epoll_create(256);
7553 return (epfd == -1 ? 1 : 0);
7556 if ac_fn_c_try_run
"$LINENO"; then :
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7558 $as_echo "yes" >&6; }
7560 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7567 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7568 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7576 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7577 if test "x$haveepoll" = "xno" ; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7579 $as_echo_n "checking for epoll system call... " >&6; }
7580 if test "$cross_compiling" = yes; then :
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7587 #include <sys/param.h>
7588 #include <sys/types.h>
7589 #include <sys/epoll.h>
7590 #include <sys/syscall.h>
7594 epoll_create(int size)
7596 return (syscall(__NR_epoll_create, size));
7600 main(int argc, char **argv)
7604 epfd = epoll_create(256);
7605 exit (epfd == -1 ? 1 : 0);
7608 if ac_fn_c_try_run
"$LINENO"; then :
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7610 $as_echo "yes" >&6; }
7612 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617 $as_echo "no" >&6; }
7619 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7620 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7630 if test -z "$SELECT_TYPE"; then
7631 as_fn_error
"Unable to find a usable IO interface" "$LINENO" 5
7634 echo "Using $SELECT_TYPE for select loop."
7637 cat >>confdefs.h
<<_ACEOF
7638 #define SELECT_TYPE "$SELECT_TYPE"
7645 # Check whether --enable-assert was given.
7646 if test "${enable_assert+set}" = set; then :
7647 enableval
=$enable_assert; assert
=$enableval
7653 if test "$assert" = no
; then
7655 $as_echo "#define NDEBUG 1" >>confdefs.h
7657 elif test "$assert" = soft
; then
7659 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7662 $as_echo "#define NDEBUG 1" >>confdefs.h
7664 elif test "$assert" = yes; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7669 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7670 # Check whether --enable-iodebug was given.
7671 if test "${enable_iodebug+set}" = set; then :
7672 enableval
=$enable_iodebug; iodebug
=$enableval
7678 if test "$iodebug" = yes; then
7680 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7683 $as_echo "yes" >&6; }
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7691 $as_echo_n "checking if you want to do a profile build... " >&6; }
7692 # Check whether --enable-profile was given.
7693 if test "${enable_profile+set}" = set; then :
7694 enableval
=$enable_profile; profile
=$enableval
7700 if test "$profile" = yes; then
7701 if test "$ac_cv_c_compiler_gnu" = yes; then
7702 IRC_CFLAGS
="$IRC_CFLAGS -pg"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7704 $as_echo "yes, adding -pg" >&6; }
7706 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7710 $as_echo "no, profile builds only work with gcc" >&6; }
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714 $as_echo "no" >&6; }
7717 # Check whether --enable-balloc was given.
7718 if test "${enable_balloc+set}" = set; then :
7719 enableval
=$enable_balloc; balloc
=$enableval
7725 if test "$balloc" = no
; then
7727 $as_echo "#define NOBALLOC 1" >>confdefs.h
7731 # Check whether --enable-small-net was given.
7732 if test "${enable_small_net+set}" = set; then :
7733 enableval
=$enable_small_net; small_net
=$enableval
7739 if test "$small_net" = yes; then
7741 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7744 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7747 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7750 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7753 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7756 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7759 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7762 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7765 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7768 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7771 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7774 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7777 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7780 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7783 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7786 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7790 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7793 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7796 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7799 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7802 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7805 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7808 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7811 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7814 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
7817 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
7820 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
7823 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
7826 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
7829 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
7832 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
7835 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
7840 # Check whether --with-nicklen was given.
7841 if test "${with_nicklen+set}" = set; then :
7842 withval
=$with_nicklen;
7843 if ! expr "$withval" + 0 >/dev
/null
2>&1; then
7844 as_fn_error
"NICKLEN must be a numeric value" "$LINENO" 5
7846 if test $withval -ge 50; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7849 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
7860 # Check whether --with-topiclen was given.
7861 if test "${with_topiclen+set}" = set; then :
7862 withval
=$with_topiclen;
7863 if test $withval -ge 390; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7866 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
7877 cat >>confdefs.h
<<_ACEOF
7878 #define TOPICLEN ${TOPICLEN}
7882 cat >>confdefs.h
<<_ACEOF
7883 #define NICKLEN (${NICKLEN}+1)
7887 shared_modules
="yes"
7888 if test "$shared_modules" = yes; then
7889 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7891 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
7896 if test "$shared_modules" = yes; then
7898 for ac_header
in dlfcn.h
7900 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7901 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7902 cat >>confdefs.h
<<_ACEOF
7903 #define HAVE_DLFCN_H 1
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
7911 $as_echo_n "checking for library containing shl_load... " >&6; }
7912 if test "${ac_cv_search_shl_load+set}" = set; then :
7913 $as_echo_n "(cached) " >&6
7915 ac_func_search_save_LIBS
=$LIBS
7916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7919 /* Override any GCC internal prototype to avoid an error.
7920 Use char because int might match the return type of a GCC
7921 builtin and then its argument prototype would still apply. */
7934 for ac_lib
in '' dld
; do
7935 if test -z "$ac_lib"; then
7936 ac_res
="none required"
7939 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7941 if ac_fn_c_try_link
"$LINENO"; then :
7942 ac_cv_search_shl_load
=$ac_res
7944 rm -f core conftest.err conftest.
$ac_objext \
7946 if test "${ac_cv_search_shl_load+set}" = set; then :
7950 if test "${ac_cv_search_shl_load+set}" = set; then :
7953 ac_cv_search_shl_load
=no
7956 LIBS
=$ac_func_search_save_LIBS
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
7959 $as_echo "$ac_cv_search_shl_load" >&6; }
7960 ac_res
=$ac_cv_search_shl_load
7961 if test "$ac_res" != no
; then :
7962 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7965 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
7968 MOD_TARGET
=hpux_shared
7969 SEDOBJ
="s/\.o/.sl/g"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7974 $as_echo_n "checking for library containing dlopen... " >&6; }
7975 if test "${ac_cv_search_dlopen+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7978 ac_func_search_save_LIBS
=$LIBS
7979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7982 /* Override any GCC internal prototype to avoid an error.
7983 Use char because int might match the return type of a GCC
7984 builtin and then its argument prototype would still apply. */
7997 for ac_lib
in '' dl c_r
; do
7998 if test -z "$ac_lib"; then
7999 ac_res
="none required"
8002 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8004 if ac_fn_c_try_link
"$LINENO"; then :
8005 ac_cv_search_dlopen
=$ac_res
8007 rm -f core conftest.err conftest.
$ac_objext \
8009 if test "${ac_cv_search_dlopen+set}" = set; then :
8013 if test "${ac_cv_search_dlopen+set}" = set; then :
8016 ac_cv_search_dlopen
=no
8019 LIBS
=$ac_func_search_save_LIBS
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8022 $as_echo "$ac_cv_search_dlopen" >&6; }
8023 ac_res
=$ac_cv_search_dlopen
8024 if test "$ac_res" != no
; then :
8025 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8028 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8031 MOD_TARGET
=shared_modules
8032 SEDOBJ
="s/\.o/.so/g"
8033 if test "$AppleGCC" = yes; then
8034 for ac_header
in mach
-o/dyld.h
8036 ac_fn_c_check_header_mongrel
"$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8037 if test "x$ac_cv_header_mach_o_dyld_h" = x
""yes; then :
8038 cat >>confdefs.h
<<_ACEOF
8039 #define HAVE_MACH_O_DYLD_H 1
8047 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8048 if test "x$ac_cv_func_dlsym" = x
""yes; then :
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8053 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8058 for ac_func
in dlfunc
8060 ac_fn_c_check_func
"$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8061 if test "x$ac_cv_func_dlfunc" = x
""yes; then :
8062 cat >>confdefs.h
<<_ACEOF
8063 #define HAVE_DLFUNC 1
8082 cat >>confdefs.h
<<_ACEOF
8083 #define SHARED_SUFFIX "$SUFFIX"
8087 if test "$shared_modules" = yes; then
8088 # The GNU linker requires the -export-dynamic option to make
8089 # all symbols visible in the dynamic symbol table.
8090 hold_ldflags
=$LDFLAGS
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8092 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8093 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
8094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8105 if ac_fn_c_try_link
"$LINENO"; then :
8110 rm -f core conftest.err conftest.
$ac_objext \
8111 conftest
$ac_exeext conftest.
$ac_ext
8112 LDFLAGS
=$hold_ldflags
8114 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
8115 found
="no, IRIX ld uses -B,dynamic"
8116 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
8119 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
8120 found
="no, AIX ld uses -G -brtl"
8121 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8125 $as_echo "$found" >&6; }
8127 if test "$found" = yes; then
8128 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8132 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8133 if test "$SGS" = "yes"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8135 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8136 PICFLAGS
="-KPIC -DPIC -G"
8139 if test "$AppleGCC" = "yes"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8141 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8142 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
8144 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8146 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8147 PICFLAGS
="+z -r -q -n -c"
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8149 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8151 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8156 $as_echo "yes" >&6; }
8157 PICFLAGS
="$PICFLAGS +ESfic"
8160 LDFLAGS
="${LDFLAGS} -Wl,-E"
8162 if test "$Tru" = yes -a "$CC" != gcc
; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8164 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8165 PICFLAGS
="-shared -expect_unresolved '*' "
8166 LDFLAGS
="-call_shared"
8168 if test -z "$PICFLAGS"; then
8169 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8171 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8172 PICFLAGS
="-fPIC -DPIC -shared"
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175 $as_echo "no" >&6; }
8181 # rpath, for finding libratbox.so at run time
8182 hold_ldflags
=$LDFLAGS
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8184 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8185 LDFLAGS
="${LDFLAGS} -Wl,-rpath=${libdir}"
8186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8187 /* end confdefs.h. */
8197 if ac_fn_c_try_link
"$LINENO"; then :
8202 rm -f core conftest.err conftest.
$ac_objext \
8203 conftest
$ac_exeext conftest.
$ac_ext
8204 LDFLAGS
=$hold_ldflags
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8206 $as_echo "$found" >&6; }
8207 if test "$found" = yes; then
8208 LDFLAGS
="${LDFLAGS} -Wl,-rpath=\${libdir}"
8211 # This must be down here, or it will mess up checks like the ones
8212 # for -Wl,-export-dynamic
8215 # Check whether --enable-warnings was given.
8216 if test "${enable_warnings+set}" = set; then :
8217 enableval
=$enable_warnings;
8218 IRC_CFLAGS
="$IRC_CFLAGS -O0"
8219 CFLAGS
="$IRC_CFLAGS"
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8223 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8224 if test "${GCC-no}" = yes
8226 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8230 oldcflags
="${CFLAGS-}"
8231 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
8232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8243 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8249 if ac_fn_c_try_compile
"$LINENO"; then :
8250 charybdis_cv_c_gcc_w_all
=yes
8252 charybdis_cv_c_gcc_w_all
=no
8254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8255 CFLAGS
="${oldcflags}"
8258 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
8259 CWARNS
="${CWARNS}-Wall "
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8261 $as_echo "ok" >&6; }
8263 charybdis_cv_c_gcc_w_all
=''
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8274 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8275 if test "${GCC-no}" = yes
8277 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
8281 oldcflags
="${CFLAGS-}"
8282 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8294 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8300 if ac_fn_c_try_compile
"$LINENO"; then :
8301 charybdis_cv_c_gcc_w_pointer_arith
=yes
8303 charybdis_cv_c_gcc_w_pointer_arith
=no
8305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8306 CFLAGS
="${oldcflags}"
8309 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
8310 CWARNS
="${CWARNS}-Wpointer-arith "
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8312 $as_echo "ok" >&6; }
8314 charybdis_cv_c_gcc_w_pointer_arith
=''
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8316 $as_echo "no" >&6; }
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8325 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8326 if test "${GCC-no}" = yes
8328 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
8332 oldcflags
="${CFLAGS-}"
8333 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8345 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8351 if ac_fn_c_try_compile
"$LINENO"; then :
8352 charybdis_cv_c_gcc_w_implicit
=yes
8354 charybdis_cv_c_gcc_w_implicit
=no
8356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8357 CFLAGS
="${oldcflags}"
8360 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
8361 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8363 $as_echo "ok" >&6; }
8365 charybdis_cv_c_gcc_w_implicit
=''
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8376 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8377 if test "${GCC-no}" = yes
8379 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
8383 oldcflags
="${CFLAGS-}"
8384 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8386 /* end confdefs.h. */
8396 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8402 if ac_fn_c_try_compile
"$LINENO"; then :
8403 charybdis_cv_c_gcc_w_cast_align
=yes
8405 charybdis_cv_c_gcc_w_cast_align
=no
8407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8408 CFLAGS
="${oldcflags}"
8411 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
8412 CWARNS
="${CWARNS}-Wcast-align "
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8414 $as_echo "ok" >&6; }
8416 charybdis_cv_c_gcc_w_cast_align
=''
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8422 $as_echo "no" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8427 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8428 if test "${GCC-no}" = yes
8430 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8434 oldcflags
="${CFLAGS-}"
8435 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8447 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8453 if ac_fn_c_try_compile
"$LINENO"; then :
8454 charybdis_cv_c_gcc_w_cast_qual
=yes
8456 charybdis_cv_c_gcc_w_cast_qual
=no
8458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8459 CFLAGS
="${oldcflags}"
8462 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
8463 CWARNS
="${CWARNS}-Wcast-qual "
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8465 $as_echo "ok" >&6; }
8467 charybdis_cv_c_gcc_w_cast_qual
=''
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8478 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8479 if test "${GCC-no}" = yes
8481 if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8485 oldcflags
="${CFLAGS-}"
8486 CFLAGS
="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8498 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8504 if ac_fn_c_try_compile
"$LINENO"; then :
8505 charybdis_cv_c_gcc_w_write_strings
=yes
8507 charybdis_cv_c_gcc_w_write_strings
=no
8509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8510 CFLAGS
="${oldcflags}"
8513 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes
; then
8514 CWARNS
="${CWARNS}-Wwrite-strings "
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8516 $as_echo "ok" >&6; }
8518 charybdis_cv_c_gcc_w_write_strings
=''
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8529 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8530 if test "${GCC-no}" = yes
8532 if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
8536 oldcflags
="${CFLAGS-}"
8537 CFLAGS
="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8549 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8555 if ac_fn_c_try_compile
"$LINENO"; then :
8556 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=yes
8558 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=no
8560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8561 CFLAGS
="${oldcflags}"
8564 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes
; then
8565 CWARNS
="${CWARNS}-Werror-implicit-function-declaration "
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8567 $as_echo "ok" >&6; }
8569 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=''
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8580 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8581 if test "${GCC-no}" = yes
8583 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8587 oldcflags
="${CFLAGS-}"
8588 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8600 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8606 if ac_fn_c_try_compile
"$LINENO"; then :
8607 charybdis_cv_c_gcc_prototypes
=yes
8609 charybdis_cv_c_gcc_prototypes
=no
8611 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8612 CFLAGS
="${oldcflags}"
8615 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
8616 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8618 $as_echo "ok" >&6; }
8620 charybdis_cv_c_gcc_prototypes
=''
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8631 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8632 if test "${GCC-no}" = yes
8634 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8638 oldcflags
="${CFLAGS-}"
8639 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8651 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8657 if ac_fn_c_try_compile
"$LINENO"; then :
8658 charybdis_cv_c_gcc_parenthesis
=yes
8660 charybdis_cv_c_gcc_parenthesis
=no
8662 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8663 CFLAGS
="${oldcflags}"
8666 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
8667 CWARNS
="${CWARNS}-Wparenthesis "
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8669 $as_echo "ok" >&6; }
8671 charybdis_cv_c_gcc_parenthesis
=''
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8682 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8683 if test "${GCC-no}" = yes
8685 if test "${charybdis_cv_c_gcc_w+set}" = set; then :
8686 $as_echo_n "(cached) " >&6
8689 oldcflags
="${CFLAGS-}"
8690 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8702 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8708 if ac_fn_c_try_compile
"$LINENO"; then :
8709 charybdis_cv_c_gcc_w
=yes
8711 charybdis_cv_c_gcc_w
=no
8713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8714 CFLAGS
="${oldcflags}"
8717 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
8718 CWARNS
="${CWARNS}-W -Wno-unused "
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8720 $as_echo "ok" >&6; }
8722 charybdis_cv_c_gcc_w
=''
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728 $as_echo "no" >&6; }
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8733 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8734 if test "${GCC-no}" = yes
8736 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
8740 oldcflags
="${CFLAGS-}"
8741 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8743 /* end confdefs.h. */
8753 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8759 if ac_fn_c_try_compile
"$LINENO"; then :
8760 charybdis_cv_c_gcc_w_extra
=yes
8762 charybdis_cv_c_gcc_w_extra
=no
8764 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8765 CFLAGS
="${oldcflags}"
8768 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
8769 CWARNS
="${CWARNS}-Wextra "
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8771 $as_echo "ok" >&6; }
8773 charybdis_cv_c_gcc_w_extra
=''
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8784 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8785 if test "${GCC-no}" = yes
8787 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
8791 oldcflags
="${CFLAGS-}"
8792 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8804 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8810 if ac_fn_c_try_compile
"$LINENO"; then :
8811 charybdis_cv_c_gcc_w_shadow
=yes
8813 charybdis_cv_c_gcc_w_shadow
=no
8815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8816 CFLAGS
="${oldcflags}"
8819 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
8820 CWARNS
="${CWARNS}-Wshadow "
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8822 $as_echo "ok" >&6; }
8824 charybdis_cv_c_gcc_w_shadow
=''
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8830 $as_echo "no" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8835 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
8836 if test "${GCC-no}" = yes
8838 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
8842 oldcflags
="${CFLAGS-}"
8843 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
8844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8845 /* end confdefs.h. */
8855 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8861 if ac_fn_c_try_compile
"$LINENO"; then :
8862 charybdis_cv_c_gcc_w_missing_noreturn
=yes
8864 charybdis_cv_c_gcc_w_missing_noreturn
=no
8866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8867 CFLAGS
="${oldcflags}"
8870 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
8871 CWARNS
="${CWARNS}-Wmissing-noreturn "
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8873 $as_echo "ok" >&6; }
8875 charybdis_cv_c_gcc_w_missing_noreturn
=''
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8877 $as_echo "no" >&6; }
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881 $as_echo "no" >&6; }
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8886 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
8887 if test "${GCC-no}" = yes
8889 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8893 oldcflags
="${CFLAGS-}"
8894 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
8895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8906 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8912 if ac_fn_c_try_compile
"$LINENO"; then :
8913 charybdis_cv_c_gcc_w_undef
=yes
8915 charybdis_cv_c_gcc_w_undef
=no
8917 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8918 CFLAGS
="${oldcflags}"
8921 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
8922 CWARNS
="${CWARNS}-Wundef "
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8924 $as_echo "ok" >&6; }
8926 charybdis_cv_c_gcc_w_undef
=''
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
8937 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
8938 if test "${GCC-no}" = yes
8940 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8944 oldcflags
="${CFLAGS-}"
8945 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
8946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8957 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8963 if ac_fn_c_try_compile
"$LINENO"; then :
8964 charybdis_cv_c_gcc_w_packed
=yes
8966 charybdis_cv_c_gcc_w_packed
=no
8968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8969 CFLAGS
="${oldcflags}"
8972 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
8973 CWARNS
="${CWARNS}-Wpacked "
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8975 $as_echo "ok" >&6; }
8977 charybdis_cv_c_gcc_w_packed
=''
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8983 $as_echo "no" >&6; }
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
8988 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
8989 if test "${GCC-no}" = yes
8991 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8995 oldcflags
="${CFLAGS-}"
8996 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
8997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
9008 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9014 if ac_fn_c_try_compile
"$LINENO"; then :
9015 charybdis_cv_c_gcc_w_nested_externs
=yes
9017 charybdis_cv_c_gcc_w_nested_externs
=no
9019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9020 CFLAGS
="${oldcflags}"
9023 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
9024 CWARNS
="${CWARNS}-Wnested-externs "
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9026 $as_echo "ok" >&6; }
9028 charybdis_cv_c_gcc_w_nested_externs
=''
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9034 $as_echo "no" >&6; }
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9039 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9040 if test "${GCC-no}" = yes
9042 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then :
9043 $as_echo_n "(cached) " >&6
9046 oldcflags
="${CFLAGS-}"
9047 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9048 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9059 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9065 if ac_fn_c_try_compile
"$LINENO"; then :
9066 charybdis_cv_c_gcc_w_unused
=yes
9068 charybdis_cv_c_gcc_w_unused
=no
9070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9071 CFLAGS
="${oldcflags}"
9074 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
9075 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9077 $as_echo "ok" >&6; }
9079 charybdis_cv_c_gcc_w_unused
=''
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9081 $as_echo "no" >&6; }
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 $as_echo "no" >&6; }
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9090 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9091 if test "${GCC-no}" = yes
9093 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then :
9094 $as_echo_n "(cached) " >&6
9097 oldcflags
="${CFLAGS-}"
9098 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9110 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9116 if ac_fn_c_try_compile
"$LINENO"; then :
9117 charybdis_cv_c_gcc_w_redundant_decls
=yes
9119 charybdis_cv_c_gcc_w_redundant_decls
=no
9121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9122 CFLAGS
="${oldcflags}"
9125 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
9126 CWARNS
="${CWARNS}-Wredundant-decls "
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9128 $as_echo "ok" >&6; }
9130 charybdis_cv_c_gcc_w_redundant_decls
=''
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9132 $as_echo "no" >&6; }
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9141 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9142 if test "${GCC-no}" = yes
9144 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then :
9145 $as_echo_n "(cached) " >&6
9148 oldcflags
="${CFLAGS-}"
9149 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9161 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9167 if ac_fn_c_try_compile
"$LINENO"; then :
9168 charybdis_cv_c_gcc_w_float_equal
=yes
9170 charybdis_cv_c_gcc_w_float_equal
=no
9172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9173 CFLAGS
="${oldcflags}"
9176 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
9177 CWARNS
="${CWARNS}-Wfloat-equal "
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9179 $as_echo "ok" >&6; }
9181 charybdis_cv_c_gcc_w_float_equal
=''
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183 $as_echo "no" >&6; }
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9192 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9193 if test "${GCC-no}" = yes
9195 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then :
9196 $as_echo_n "(cached) " >&6
9199 oldcflags
="${CFLAGS-}"
9200 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9212 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9218 if ac_fn_c_try_compile
"$LINENO"; then :
9219 charybdis_cv_c_gcc_w_format
=yes
9221 charybdis_cv_c_gcc_w_format
=no
9223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9224 CFLAGS
="${oldcflags}"
9227 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
9228 CWARNS
="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9230 $as_echo "ok" >&6; }
9232 charybdis_cv_c_gcc_w_format
=''
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238 $as_echo "no" >&6; }
9242 IRC_CFLAGS
="$CFLAGS"
9247 if test "$shared_modules" = no
; then
9249 MOD_TARGET
="libmodules.a"
9250 MODULES_LIBS
="../modules/libmodules.a"
9253 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9256 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9259 if test "$shared_modules" = yes; then
9261 ac_fn_c_check_func
"$LINENO" "nlist" "ac_cv_func_nlist"
9262 if test "x$ac_cv_func_nlist" = x
""yes; then :
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9266 $as_echo_n "checking for nlist in -ldl... " >&6; }
9267 if test "${ac_cv_lib_dl_nlist+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9270 ac_check_lib_save_LIBS
=$LIBS
9272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9275 /* Override any GCC internal prototype to avoid an error.
9276 Use char because int might match the return type of a GCC
9277 builtin and then its argument prototype would still apply. */
9290 if ac_fn_c_try_link
"$LINENO"; then :
9291 ac_cv_lib_dl_nlist
=yes
9293 ac_cv_lib_dl_nlist
=no
9295 rm -f core conftest.err conftest.
$ac_objext \
9296 conftest
$ac_exeext conftest.
$ac_ext
9297 LIBS
=$ac_check_lib_save_LIBS
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9300 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9301 if test "x$ac_cv_lib_dl_nlist" = x
""yes; then :
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9305 $as_echo_n "checking for nlist in -lelf... " >&6; }
9306 if test "${ac_cv_lib_elf_nlist+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9309 ac_check_lib_save_LIBS
=$LIBS
9311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9314 /* Override any GCC internal prototype to avoid an error.
9315 Use char because int might match the return type of a GCC
9316 builtin and then its argument prototype would still apply. */
9329 if ac_fn_c_try_link
"$LINENO"; then :
9330 ac_cv_lib_elf_nlist
=yes
9332 ac_cv_lib_elf_nlist
=no
9334 rm -f core conftest.err conftest.
$ac_objext \
9335 conftest
$ac_exeext conftest.
$ac_ext
9336 LIBS
=$ac_check_lib_save_LIBS
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9339 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9340 if test "x$ac_cv_lib_elf_nlist" = x
""yes; then :
9351 ac_fn_c_check_header_mongrel
"$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9352 if test "x$ac_cv_header_libelf_nlist_h" = x
""yes; then :
9353 nlist_h
="libelf/nlist.h"
9357 ac_fn_c_check_header_mongrel
"$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9358 if test "x$ac_cv_header_elf_nlist_h" = x
""yes; then :
9359 nlist_h
="elf/nlist.h"
9363 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9364 if test "x$ac_cv_header_nlist_h" = x
""yes; then :
9369 if test x
"$nlist_h" = "x"; then
9371 cat >>confdefs.h
<<_ACEOF
9372 #define SYMBOL_PREFIX ""
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9377 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9378 if test "${symbol_underscores+set}" = set; then :
9379 $as_echo_n "(cached) " >&6
9382 cat << EOF > conftest.c
9386 void _modinit(void);
9387 int main(int argc, char *argv[]) {
9391 /* fill the names in this way, so it'll work almost everywhere */
9392 nl[0].n_name = "_modinit";
9393 nl[1].n_name = "__modinit";
9394 nl[2].n_name = "___modinit";
9395 nl[3].n_name = "____modinit";
9396 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9398 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9399 for(i = 0; i < 4; i++) {
9400 if(nl[i].n_value != NULL)
9403 for(j = 0; j < i; j++)
9410 void _modinit(void) { return; }
9412 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
9413 symbol_underscores
=`./conftest conftest`
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9415 $as_echo "$symbol_underscores" >&6; }
9416 $RM -f conftest conftest.c
9421 cat >>confdefs.h
<<_ACEOF
9422 #define SYMBOL_PREFIX "${symbol_underscores}"
9428 IRC_CFLAGS
="$IRC_CFLAGS $CWARNS"
9443 if test "$prefix" = "NONE"; then
9445 cat >>confdefs.h
<<_ACEOF
9446 #define IRCD_PREFIX "$ac_default_prefix"
9453 prefix
=`echo $prefix | sed 's/\/$//'`
9455 cat >>confdefs.h
<<_ACEOF
9456 #define IRCD_PREFIX "$prefix"
9462 ac_config_files
="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
9465 cat >confcache
<<\_ACEOF
9466 # This file is a shell script that caches the results of configure
9467 # tests run on this system so they can be shared between configure
9468 # scripts and configure runs, see configure's option --config-cache.
9469 # It is not useful on other systems. If it contains results you don't
9470 # want to keep, you may remove or edit it.
9472 # config.status only pays attention to the cache file if you give it
9473 # the --recheck option to rerun configure.
9475 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9476 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9481 # The following way of writing the cache mishandles newlines in values,
9482 # but we know of no workaround that is simple, portable, and efficient.
9483 # So, we kill variables containing newlines.
9484 # Ultrix sh set writes to stderr and can't be redirected directly,
9485 # and sets the high bit in the cache file unless we assign to the vars.
9487 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9488 eval ac_val
=\$
$ac_var
9492 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9493 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9496 _
| IFS
| as_nl
) ;; #(
9497 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9498 *) { eval $ac_var=; unset $ac_var;} ;;
9504 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9505 *${as_nl}ac_space
=\
*)
9506 # `set' does not quote correctly, so add quotes: double-quote
9507 # substitution turns \\\\ into \\, and sed turns \\ into \.
9510 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9513 # `set' quotes correctly as required by POSIX, so do not add quotes.
9514 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9525 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9527 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9528 if test -w "$cache_file"; then
9529 test "x$cache_file" != "x/dev/null" &&
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9531 $as_echo "$as_me: updating cache $cache_file" >&6;}
9532 cat confcache
>$cache_file
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9535 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9540 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9541 # Let make expand exec_prefix.
9542 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9544 DEFS
=-DHAVE_CONFIG_H
9548 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9549 # 1. Remove the extension, and $U if already installed.
9550 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9551 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9552 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9553 # will be set to the directory where LIBOBJS objects are built.
9554 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9555 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9559 LTLIBOBJS
=$ac_ltlibobjs
9565 : ${CONFIG_STATUS=./config.status}
9567 ac_clean_files_save
=$ac_clean_files
9568 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9574 # Generated by $as_me.
9575 # Run this file to recreate the current configuration.
9576 # Compiler output produced by configure, useful for debugging
9577 # configure, is in config.log if it exists.
9583 SHELL=\${CONFIG_SHELL-$SHELL}
9586 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
9587 ## -------------------- ##
9588 ## M4sh Initialization. ##
9589 ## -------------------- ##
9591 # Be more Bourne compatible
9592 DUALCASE
=1; export DUALCASE
# for MKS sh
9593 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9597 # is contrary to our usage. Disable this feature.
9598 alias -g '${1+"$@"}'='"$@"'
9599 setopt NO_GLOB_SUBST
9601 case `(set -o) 2>/dev/null` in #(
9613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9614 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9617 # Prefer a ksh shell builtin over an external printf program on Solaris,
9618 # but without wasting forks for bash or zsh.
9619 if test -z "$BASH_VERSION$ZSH_VERSION" \
9620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9621 as_echo='print
-r --'
9622 as_echo_n='print
-rn --'
9623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9624 as_echo='printf %s
\n'
9625 as_echo_n='printf %s
'
9627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9628 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9629 as_echo_n='/usr
/ucb
/echo -n'
9631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9632 as_echo_n_body='eval
9636 expr "X$arg" : "X\\(.*\\)$as_nl";
9637 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9641 export as_echo_n_body
9642 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9645 as_echo='sh
-c $as_echo_body as_echo
'
9648 # The user is always right.
9649 if test "${PATH_SEPARATOR+set}" != set; then
9651 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9652 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9659 # We need space, tab and new line, in precisely that order. Quoting is
9660 # there to prevent editors from complaining about space-tab.
9661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9662 # splitting by setting IFS to empty value.)
9665 # Find who we are. Look in the path if we contain no directory separator.
9667 *[\\/]* ) as_myself=$0 ;;
9668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9672 test -z "$as_dir" && as_dir=.
9673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9679 # We did not find ourselves, most probably we were run as `sh COMMAND'
9680 # in which case we are not to be found in the path.
9681 if test "x$as_myself" = x
; then
9684 if test ! -f "$as_myself"; then
9685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9689 # Unset variables that we do not need and which cause bugs (e.g. in
9690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9691 # suppresses any "Segmentation fault" message there. '((' could
9692 # trigger a bug in pdksh 5.2.14.
9693 for as_var
in BASH_ENV ENV MAIL MAILPATH
9694 do eval test x\
${$as_var+set} = xset \
9695 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9708 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9711 # as_fn_error ERROR [LINENO LOG_FD]
9712 # ---------------------------------
9713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9715 # script with status $?, using 1 if that was 0.
9718 as_status
=$?
; test $as_status -eq 0 && as_status
=1
9720 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9723 $as_echo "$as_me: error: $1" >&2
9724 as_fn_exit
$as_status
9728 # as_fn_set_status STATUS
9729 # -----------------------
9730 # Set $? to STATUS, without forking.
9734 } # as_fn_set_status
9738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9748 # Portably unset VAR.
9751 { eval $1=; unset $1;}
9753 as_unset
=as_fn_unset
9754 # as_fn_append VAR VALUE
9755 # ----------------------
9756 # Append the text in VALUE to the end of the definition contained in VAR. Take
9757 # advantage of any shell optimizations that allow amortized linear growth over
9758 # repeated appends, instead of the typical quadratic growth present in naive
9760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9761 eval 'as_fn_append ()
9772 # as_fn_arith ARG...
9773 # ------------------
9774 # Perform arithmetic evaluation on the ARGs, and store the result in the
9775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9776 # must be portable across $(()) and expr.
9777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9778 eval 'as_fn_arith ()
9785 as_val
=`expr "$@" || test $? -eq 1`
9790 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9791 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9797 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9798 as_basename
=basename
9803 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9809 as_me
=`$as_basename -- "$0" ||
9810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9811 X"$0" : 'X\(//\)$' \| \
9812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9814 sed '/^.*\/\([^/][^/]*\)\/*$/{
9828 # Avoid depending upon Character Ranges.
9829 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9830 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9831 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9832 as_cr_digits
='0123456789'
9833 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9835 ECHO_C
= ECHO_N
= ECHO_T
=
9836 case `echo -n x` in #(((((
9838 case `echo 'xy\c'` in
9839 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9841 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9848 rm -f conf$$ conf$$.exe conf$$.
file
9849 if test -d conf$$.dir
; then
9850 rm -f conf$$.dir
/conf$$.
file
9853 mkdir conf$$.dir
2>/dev
/null
9855 if (echo >conf$$.
file) 2>/dev
/null
; then
9856 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9858 # ... but there are two gotchas:
9859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9861 # In both cases, we have to default to `cp -p'.
9862 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
9864 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9872 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9873 rmdir conf$$.dir
2>/dev
/null
9878 # Create "$as_dir" as a directory, including parents if necessary.
9883 -*) as_dir
=.
/$as_dir;;
9885 test -d "$as_dir" || eval $as_mkdir_p || {
9889 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9890 *) as_qdir
=$as_dir;;
9892 as_dirs
="'$as_qdir' $as_dirs"
9893 as_dir
=`$as_dirname -- "$as_dir" ||
9894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9895 X"$as_dir" : 'X\(//\)[^/]' \| \
9896 X"$as_dir" : 'X\(//\)$' \| \
9897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9898 $as_echo X"$as_dir" |
9899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9916 test -d "$as_dir" && break
9918 test -z "$as_dirs" || eval "mkdir $as_dirs"
9919 } || test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
9923 if mkdir -p .
2>/dev
/null
; then
9924 as_mkdir_p
='mkdir -p "$as_dir"'
9926 test -d .
/-p && rmdir .
/-p
9930 if test -x / >/dev
/null
2>&1; then
9933 if ls -dL / >/dev
/null
2>&1; then
9940 if test -d "$1"; then
9946 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9947 ???[sx]*):;;*)false;;esac;fi
9951 as_executable_p
=$as_test_x
9953 # Sed expression to map a string onto a valid CPP name.
9954 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9956 # Sed expression to map a string onto a valid variable name.
9957 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9961 ## ----------------------------------- ##
9962 ## Main body of $CONFIG_STATUS script. ##
9963 ## ----------------------------------- ##
9965 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
9967 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
9968 # Save the log message, to keep $0 and so on meaningful, and to
9969 # report actual input values of CONFIG_FILES etc. instead of their
9970 # values after options handling.
9972 This file was extended by shadowircd $as_me 6.0.0-dev, which was
9973 generated by GNU Autoconf 2.65. Invocation command line was
9975 CONFIG_FILES = $CONFIG_FILES
9976 CONFIG_HEADERS = $CONFIG_HEADERS
9977 CONFIG_LINKS = $CONFIG_LINKS
9978 CONFIG_COMMANDS = $CONFIG_COMMANDS
9981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9986 case $ac_config_files in *"
9987 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
9990 case $ac_config_headers in *"
9991 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
9995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9996 # Files that config.status was made for.
9997 config_files="$ac_config_files"
9998 config_headers="$ac_config_headers"
10002 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10004 \`$as_me' instantiates files and other configuration actions
10005 from templates according to the current configuration. Unless the files
10006 and actions are specified as TAGs, all are instantiated by default.
10008 Usage: $0 [OPTION]... [TAG]...
10010 -h, --help print this help, then exit
10011 -V, --version print version number and configuration settings, then exit
10012 --config print configuration, then exit
10013 -q, --quiet, --silent
10014 do not print progress messages
10015 -d, --debug don't remove temporary files
10016 --recheck update $as_me by reconfiguring in the same conditions
10017 --file=FILE[:TEMPLATE]
10018 instantiate the configuration file FILE
10019 --header=FILE[:TEMPLATE]
10020 instantiate the configuration header FILE
10022 Configuration files:
10025 Configuration headers:
10028 Report bugs to the package provider."
10031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10032 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10034 shadowircd config.status 6.0.0-dev
10035 configured by $0, generated by GNU Autoconf 2.65,
10036 with options \\"\$ac_cs_config\\"
10038 Copyright (C) 2009 Free Software Foundation, Inc.
10039 This config.status script is free software; the Free Software Foundation
10040 gives unlimited permission to copy, distribute and modify it."
10045 test -n "\$AWK" || AWK=awk
10048 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10049 # The default lists apply if the user does not specify any file.
10055 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10056 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10067 # Handling of the options.
10068 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10070 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10071 $as_echo "$ac_cs_version"; exit ;;
10072 --config | --confi | --conf | --con | --co | --c )
10073 $as_echo "$ac_cs_config"; exit ;;
10074 --debug | --debu | --deb | --de | --d | -d )
10076 --file | --fil | --fi | --f )
10079 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10081 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10082 ac_need_defaults
=false
;;
10083 --header | --heade | --head | --hea )
10086 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10088 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10089 ac_need_defaults
=false
;;
10091 # Conflict between --help and --header
10092 as_fn_error
"ambiguous option: \`$1'
10093 Try \`$0 --help' for more information.";;
10094 --help | --hel | -h )
10095 $as_echo "$ac_cs_usage"; exit ;;
10096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10100 # This is an error.
10101 -*) as_fn_error
"unrecognized option: \`$1'
10102 Try \`$0 --help' for more information." ;;
10104 *) as_fn_append ac_config_targets
" $1"
10105 ac_need_defaults
=false
;;
10111 ac_configure_extra_args
=
10113 if $ac_cs_silent; then
10115 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10120 if \$ac_cs_recheck; then
10121 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10124 CONFIG_SHELL='$SHELL'
10125 export CONFIG_SHELL
10130 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10135 ## Running $as_me. ##
10141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10144 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10146 # Handling of arguments.
10147 for ac_config_target
in $ac_config_targets
10149 case $ac_config_target in
10150 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10151 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10152 "bandb/Makefile") CONFIG_FILES
="$CONFIG_FILES bandb/Makefile" ;;
10153 "ssld/Makefile") CONFIG_FILES
="$CONFIG_FILES ssld/Makefile" ;;
10154 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
10155 "unsupported/Makefile") CONFIG_FILES
="$CONFIG_FILES unsupported/Makefile" ;;
10156 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10157 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
10158 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10159 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10160 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
10162 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10167 # If the user did not use the arguments to specify the items to instantiate,
10168 # then the envvar interface is used. Set only those that are not.
10169 # We use the long form for the default assignment because of an extremely
10170 # bizarre bug on SunOS 4.1.3.
10171 if $ac_need_defaults; then
10172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10176 # Have a temporary directory for convenience. Make it in the build tree
10177 # simply because there is no reason against having it here, and in addition,
10178 # creating and moving files from /tmp can sometimes cause problems.
10179 # Hook for its removal unless debugging.
10180 # Note that there is a small window in which the directory will not be cleaned:
10181 # after its creation but before its name has been assigned to `$tmp'.
10185 trap 'exit_status=$?
10186 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10188 trap 'as_fn_exit 1' 1 2 13 15
10190 # Create a (secure) tmp directory for tmp files.
10193 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10194 test -n "$tmp" && test -d "$tmp"
10197 tmp
=.
/conf$$
-$RANDOM
10198 (umask 077 && mkdir "$tmp")
10199 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
10201 # Set up the scripts for CONFIG_FILES section.
10202 # No need to generate them if there are no CONFIG_FILES.
10203 # This happens for instance with `./config.status config.h'.
10204 if test -n "$CONFIG_FILES"; then
10207 ac_cr
=`echo X | tr X '\015'`
10208 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10209 # But we know of no other shell where ac_cr would be empty at this
10210 # point, so we can use a bashism as a fallback.
10211 if test "x$ac_cr" = x
; then
10212 eval ac_cr
=\$
\'\\r
\'
10214 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10215 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10218 ac_cs_awk_cr
=$ac_cr
10221 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10226 echo "cat >conf$$subs.awk <<_ACEOF" &&
10227 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10229 } >conf$$subs.sh ||
10230 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
10231 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10233 for ac_last_try in false false false false false :; do
10234 . ./conf$$subs.sh ||
10235 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
10237 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10238 if test $ac_delim_n = $ac_delim_num; then
10240 elif $ac_last_try; then
10241 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
10243 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10246 rm -f conf$$subs.sh
10248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10249 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
10253 s/^/S["/; s
/!.
*/"]=/
10263 s/\(.\{148\}\)..*/\1/
10265 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10270 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10277 s/\(.\{148\}\)..*/\1/
10279 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10283 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10288 ' <conf$$subs.awk | sed '
10293 ' >>$CONFIG_STATUS || ac_write_fail=1
10294 rm -f conf$$subs.awk
10295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10297 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
10298 for (key in S) S_is_set[key] = 1
10304 nfields = split(line, field, "@
")
10306 len = length(field[1])
10307 for (i = 2; i < nfields; i++) {
10309 keylen = length(key)
10310 if (S_is_set[key]) {
10312 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10313 len += length(value) + length(field[++i])
10324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10325 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10326 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10329 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
10330 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
10333 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10334 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
10335 # trailing colons and then remove the whole line if VPATH becomes empty
10336 # (actually we leave an empty line to preserve line numbers).
10337 if test "x
$srcdir" = x.; then
10338 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10339 s/:*\$(srcdir):*/:/
10340 s/:*\${srcdir}:*/:/
10342 s/^\([^=]*=[ ]*\):*/\1/
10348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10349 fi # test -n "$CONFIG_FILES"
10351 # Set up the scripts for CONFIG_HEADERS section.
10352 # No need to generate them if there are no CONFIG_HEADERS.
10353 # This happens for instance with `./config.status Makefile'.
10354 if test -n "$CONFIG_HEADERS"; then
10355 cat >"$tmp/defines.
awk" <<\_ACAWK ||
10359 # Transform confdefs.h into an awk script `defines.awk', embedded as
10360 # here-document in config.status, that substitutes the proper values into
10361 # config.h.in to produce config.h.
10363 # Create a delimiter string that does not exist in confdefs.h, to ease
10364 # handling of long lines.
10366 for ac_last_try in false false :; do
10367 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
10368 if test -z "$ac_t"; then
10370 elif $ac_last_try; then
10371 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
10373 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10377 # For the awk script, D is an array of macro values keyed by name,
10378 # likewise P contains macro parameters if any. Preserve backslash
10379 # newline sequences.
10381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10383 s/.\{148\}/&'"$ac_delim"'/g
10386 s/^[ ]*#[ ]*define[ ][ ]*/ /
10393 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10395 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10399 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10400 D["\
1"]=" \
3\\\\\\n
"\\/p
10402 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10407 s/.\{148\}/&'"$ac_delim"'/g
10412 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10415 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10417 ' <confdefs.h | sed '
10418 s/'"$ac_delim"'/"\\\
10419 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10422 for (key in D) D_is_set[key] = 1
10425 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10427 split(line, arg, " ")
10428 if (arg[1] == "#") {
10432 defundef
= substr
(arg
[1], 2)
10435 split(mac1
, mac2
, "(") #)
10437 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10438 if (D_is_set
[macro
]) {
10439 # Preserve the white space surrounding the "#".
10440 print prefix
"define", macro P
[macro
] D
[macro
]
10443 # Replace #undef with comments. This is necessary, for example,
10444 # in the case of _POSIX_SOURCE, which is predefined and required
10445 # on some systems where configure will not decide to define it.
10446 if (defundef
== "undef") {
10447 print
"/*", prefix defundef
, macro
, "*/"
10455 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10456 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
10457 fi # test -n "$CONFIG_HEADERS"
10460 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10465 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10467 case $ac_mode$ac_tag in
10469 :L
* | :C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10470 :[FH
]-) ac_tag
=-:-;;
10471 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10488 -) ac_f
="$tmp/stdin";;
10489 *) # Look for the file first in the build tree, then in the source tree
10490 # (if the path is not absolute). The absolute path cannot be DOS-style,
10491 # because $ac_f cannot contain `:'.
10495 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10497 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
10499 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10500 as_fn_append ac_file_inputs
" '$ac_f'"
10503 # Let's still pretend it is `configure' which instantiates (i.e., don't
10504 # use $as_me), people would be surprised to read:
10505 # /* config.h. Generated by config.status. */
10506 configure_input
='Generated from '`
10507 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10509 if test x
"$ac_file" != x
-; then
10510 configure_input
="$ac_file. $configure_input"
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10512 $as_echo "$as_me: creating $ac_file" >&6;}
10514 # Neutralize special characters interpreted by sed in replacement strings.
10515 case $configure_input in #(
10516 *\
&* | *\
|* | *\\* )
10517 ac_sed_conf_input
=`$as_echo "$configure_input" |
10518 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10519 *) ac_sed_conf_input
=$configure_input;;
10523 *:-:* | *:-) cat >"$tmp/stdin" \
10524 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
10529 ac_dir
=`$as_dirname -- "$ac_file" ||
10530 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10531 X"$ac_file" : 'X\(//\)[^/]' \| \
10532 X"$ac_file" : 'X\(//\)$' \| \
10533 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10534 $as_echo X"$ac_file" |
10535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10539 /^X\(\/\/\)[^/].*/{
10552 as_dir
="$ac_dir"; as_fn_mkdir_p
10556 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10558 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10559 # A ".." for each directory in $ac_dir_suffix.
10560 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10561 case $ac_top_builddir_sub in
10562 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10563 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10566 ac_abs_top_builddir
=$ac_pwd
10567 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10568 # for backward compatibility:
10569 ac_top_builddir
=$ac_top_build_prefix
10572 .
) # We are building in place.
10574 ac_top_srcdir
=$ac_top_builddir_sub
10575 ac_abs_top_srcdir
=$ac_pwd ;;
10576 [\\/]* | ?
:[\\/]* ) # Absolute name.
10577 ac_srcdir
=$srcdir$ac_dir_suffix;
10578 ac_top_srcdir
=$srcdir
10579 ac_abs_top_srcdir
=$srcdir ;;
10580 *) # Relative name.
10581 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10582 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10583 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10585 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10595 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10596 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10600 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10601 # If the template does not know about datarootdir, expand it.
10602 # FIXME: This hack should be removed a few years after 2.60.
10603 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10614 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10615 *datarootdir
*) ac_datarootdir_seen
=yes;;
10616 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10618 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10621 ac_datarootdir_hack='
10622 s&@datadir@&$datadir&g
10623 s&@docdir@&$docdir&g
10624 s&@infodir@&$infodir&g
10625 s&@localedir@&$localedir&g
10626 s&@mandir@&$mandir&g
10627 s&\\\${datarootdir}&$datarootdir&g' ;;
10631 # Neutralize VPATH when `$srcdir' = `.'.
10632 # Shell code in configure.ac might set extrasub.
10633 # FIXME: do we really want to maintain this feature?
10634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10635 ac_sed_extra="$ac_vpsub
10638 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10640 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10641 s
|@configure_input@
|$ac_sed_conf_input|;t t
10642 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10643 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10644 s
&@srcdir@
&$ac_srcdir&;t t
10645 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10646 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10647 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10648 s
&@builddir@
&$ac_builddir&;t t
10649 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10650 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10651 s
&@INSTALL@
&$ac_INSTALL&;t t
10652 $ac_datarootdir_hack
10654 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
10655 || as_fn_error "could not create
$ac_file" "$LINENO" 5
10657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
10659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10661 which seems to be undefined. Please make sure it is defined." >&5
10662 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10663 which seems to be undefined. Please make sure it is defined." >&2;}
10667 -) cat "$tmp/out" && rm -f "$tmp/out";;
10668 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10670 || as_fn_error "could not create $ac_file" "$LINENO" 5
10676 if test x"$ac_file" != x-; then
10678 $as_echo "/* $configure_input */" \
10679 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10680 } >"$tmp/config.h" \
10681 || as_fn_error "could not create $ac_file" "$LINENO" 5
10682 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10684 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10687 mv "$tmp/config.h" "$ac_file" \
10688 || as_fn_error "could not create $ac_file" "$LINENO" 5
10691 $as_echo "/* $configure_input */" \
10692 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10693 || as_fn_error "could not create -" "$LINENO" 5
10705 ac_clean_files=$ac_clean_files_save
10707 test $ac_write_fail = 0 ||
10708 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10711 # configure is writing to config.log, and then calls config.status.
10712 # config.status does its own redirection, appending to config.log.
10713 # Unfortunately, on DOS this fails, as config.log is still kept open
10714 # by configure, so config.status won't be able to
write to it
; its
10715 # output is simply discarded. So we exec the FD to /dev/null,
10716 # effectively closing config.log, so it can be properly (re)opened and
10717 # appended to by config.status. When coming back to configure, we
10718 # need to make the FD available again.
10719 if test "$no_create" != yes; then
10721 ac_config_status_args
=
10722 test "$silent" = yes &&
10723 ac_config_status_args
="$ac_config_status_args --quiet"
10725 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10727 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10728 # would make configure fail if this is the last instruction.
10729 $ac_cs_success || as_fn_exit $?
10733 # CONFIG_SUBDIRS section.
10735 if test "$no_recursion" != yes; then
10737 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10738 # so they do not pile up.
10739 ac_sub_configure_args
=
10741 eval "set x $ac_configure_args"
10745 if test -n "$ac_prev"; then
10750 -cache-file | --cache-file | --cache-fil | --cache-fi \
10751 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10752 ac_prev
=cache_file
;;
10753 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10754 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10757 --config-cache | -C)
10759 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10761 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10763 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10765 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10767 --disable-option-checking)
10771 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10773 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
10777 # Always prepend --prefix to ensure using the same prefix
10778 # in subdir configurations.
10779 ac_arg
="--prefix=$prefix"
10781 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10783 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
10786 if test "$silent" = yes; then
10787 ac_sub_configure_args
="--silent $ac_sub_configure_args"
10790 # Always prepend --disable-option-checking to silence warnings, since
10791 # different subdirs can have different --enable and --with options.
10792 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
10795 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
10797 # Do not complain, so a configure script can configure whichever
10798 # parts of a large source tree are present.
10799 test -d "$srcdir/$ac_dir" || continue
10801 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10802 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10803 $as_echo "$ac_msg" >&6
10804 as_dir
="$ac_dir"; as_fn_mkdir_p
10808 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10810 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10811 # A ".." for each directory in $ac_dir_suffix.
10812 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10813 case $ac_top_builddir_sub in
10814 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10815 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10818 ac_abs_top_builddir
=$ac_pwd
10819 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10820 # for backward compatibility:
10821 ac_top_builddir
=$ac_top_build_prefix
10824 .
) # We are building in place.
10826 ac_top_srcdir
=$ac_top_builddir_sub
10827 ac_abs_top_srcdir
=$ac_pwd ;;
10828 [\\/]* | ?
:[\\/]* ) # Absolute name.
10829 ac_srcdir
=$srcdir$ac_dir_suffix;
10830 ac_top_srcdir
=$srcdir
10831 ac_abs_top_srcdir
=$srcdir ;;
10832 *) # Relative name.
10833 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10834 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10835 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10837 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10842 # Check for guested configure; otherwise get Cygnus style configure.
10843 if test -f "$ac_srcdir/configure.gnu"; then
10844 ac_sub_configure
=$ac_srcdir/configure.gnu
10845 elif test -f "$ac_srcdir/configure"; then
10846 ac_sub_configure
=$ac_srcdir/configure
10847 elif test -f "$ac_srcdir/configure.in"; then
10848 # This should be Cygnus configure.
10849 ac_sub_configure
=$ac_aux_dir/configure
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10852 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10856 # The recursion is here.
10857 if test -n "$ac_sub_configure"; then
10858 # Make the cache file name correct relative to the subdirectory.
10859 case $cache_file in
10860 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
10861 *) # Relative name.
10862 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
10865 { $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
10866 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10867 # The eval makes quoting arguments work.
10868 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10869 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10870 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10876 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10878 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10882 if test "$cf_openssl_version_ok" = yes; then
10888 if test "$shared_modules" = yes; then
10896 Install directory : $prefix
10900 Socket Engine : $SELECT_TYPE
10901 Small network : $small_net
10902 Block allocator : $balloc
10904 Nickname length : $NICKLEN
10905 Topic length : $TOPICLEN
10907 Use (g)make to compile ShadowIRCd, then (g)make install to install it.