2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for shadowircd 6.3.2.
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
250 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE
= GREP_OPTIONS
=
254 unset CLICOLOR_FORCE GREP_OPTIONS
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
261 # Portably unset VAR.
264 { eval $1=; unset $1;}
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 # Create "$as_dir" as a directory, including parents if necessary.
293 -*) as_dir
=.
/$as_dir;;
295 test -d "$as_dir" || eval $as_mkdir_p || {
299 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 as_dirs
="'$as_qdir' $as_dirs"
303 as_dir
=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 test -d "$as_dir" && break
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
340 eval 'as_fn_append ()
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
364 as_val
=`expr "$@" || test $? -eq 1`
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
376 as_status
=$1; test $as_status -eq 0 && as_status
=1
378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit
$as_status
385 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
392 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
404 as_me
=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 # Avoid depending upon Character Ranges.
424 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits
='0123456789'
428 as_cr_alnum
=$as_cr_Letters$as_cr_digits
431 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
432 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
462 ECHO_C
= ECHO_N
= ECHO_T
=
463 case `echo -n x` in #(((((
465 case `echo 'xy\c'` in
466 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
475 rm -f conf$$ conf$$.exe conf$$.
file
476 if test -d conf$$.dir
; then
477 rm -f conf$$.dir
/conf$$.
file
480 mkdir conf$$.dir
2>/dev
/null
482 if (echo >conf$$.
file) 2>/dev
/null
; then
483 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
491 elif ln conf$$.
file conf$$
2>/dev
/null
; then
499 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
500 rmdir conf$$.dir
2>/dev
/null
502 if mkdir -p .
2>/dev
/null
; then
503 as_mkdir_p
='mkdir -p "$as_dir"'
505 test -d .
/-p && rmdir .
/-p
509 if test -x / >/dev
/null
2>&1; then
512 if ls -dL / >/dev
/null
2>&1; then
519 if test -d "$1"; then
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
530 as_executable_p
=$as_test_x
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 test -n "$DJDIR" || exec 7<&0 </dev
/null
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
560 PACKAGE_NAME
='shadowircd'
561 PACKAGE_TARNAME
='shadowircd'
562 PACKAGE_VERSION
='6.3.2'
563 PACKAGE_STRING
='shadowircd 6.3.2'
567 ac_default_prefix
=$HOME/ircd
568 # Factoring default headers for most tests.
569 ac_includes_default
="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
604 enable_option_checking
=no
605 ac_subst_vars
='LTLIBOBJS
697 program_transform_name
710 enable_option_checking
736 ac_precious_vars
='build_alias
747 ac_subdirs_all
='libratbox'
749 # Initialize some variables set by options.
751 ac_init_version
=false
752 ac_unrecognized_opts
=
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
825 -build | --build | --buil | --bui | --bu)
826 ac_prev
=build_alias
;;
827 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file | --cache-file | --cache-fil | --cache-fi \
831 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832 ac_prev
=cache_file
;;
833 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir | --datadir | --datadi | --datad)
842 -datadir=* | --datadir=* | --datadi=* | --datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846 | --dataroo | --dataro | --datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* | --disable-*)
853 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
856 as_fn_error $?
"invalid feature name: $ac_useropt"
857 ac_useropt_orig
=$ac_useropt
858 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
859 case $ac_user_opts in
863 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
864 ac_unrecognized_sep
=', ';;
866 eval enable_
$ac_useropt=no
;;
868 -docdir | --docdir | --docdi | --doc | --do)
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
878 -enable-* | --enable-*)
879 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
882 as_fn_error $?
"invalid feature name: $ac_useropt"
883 ac_useropt_orig
=$ac_useropt
884 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
889 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
890 ac_unrecognized_sep
=', ';;
892 eval enable_
$ac_useropt=\
$ac_optarg ;;
894 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
895 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
896 | --exec | --exe | --ex)
897 ac_prev
=exec_prefix
;;
898 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
899 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
900 | --exec=* | --exe=* | --ex=*)
901 exec_prefix
=$ac_optarg ;;
903 -gas | --gas | --ga | --g)
904 # Obsolete; use --with-gas.
907 -help | --help | --hel | --he | -h)
909 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
910 ac_init_help
=recursive
;;
911 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
912 ac_init_help
=short
;;
914 -host | --host | --hos | --ho)
915 ac_prev
=host_alias
;;
916 -host=* | --host=* | --hos=* | --ho=*)
917 host_alias
=$ac_optarg ;;
919 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 htmldir
=$ac_optarg ;;
925 -includedir | --includedir | --includedi | --included | --include \
926 | --includ | --inclu | --incl | --inc)
927 ac_prev
=includedir
;;
928 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
929 | --includ=* | --inclu=* | --incl=* | --inc=*)
930 includedir
=$ac_optarg ;;
932 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
935 infodir
=$ac_optarg ;;
937 -libdir | --libdir | --libdi | --libd)
939 -libdir=* | --libdir=* | --libdi=* | --libd=*)
942 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
943 | --libexe | --libex | --libe)
944 ac_prev
=libexecdir
;;
945 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
946 | --libexe=* | --libex=* | --libe=*)
947 libexecdir
=$ac_optarg ;;
949 -localedir | --localedir | --localedi | --localed | --locale)
951 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
952 localedir
=$ac_optarg ;;
954 -localstatedir | --localstatedir | --localstatedi | --localstated \
955 | --localstate | --localstat | --localsta | --localst | --locals)
956 ac_prev
=localstatedir
;;
957 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
958 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
959 localstatedir
=$ac_optarg ;;
961 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
967 # Obsolete; use --without-fp.
970 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
971 | --no-cr | --no-c | -n)
974 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
975 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
978 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
979 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
980 | --oldin | --oldi | --old | --ol | --o)
981 ac_prev
=oldincludedir
;;
982 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
983 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
984 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
985 oldincludedir
=$ac_optarg ;;
987 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
992 -program-prefix | --program-prefix | --program-prefi | --program-pref \
993 | --program-pre | --program-pr | --program-p)
994 ac_prev
=program_prefix
;;
995 -program-prefix=* | --program-prefix=* | --program-prefi=* \
996 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
997 program_prefix
=$ac_optarg ;;
999 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1000 | --program-suf | --program-su | --program-s)
1001 ac_prev
=program_suffix
;;
1002 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1003 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1004 program_suffix
=$ac_optarg ;;
1006 -program-transform-name | --program-transform-name \
1007 | --program-transform-nam | --program-transform-na \
1008 | --program-transform-n | --program-transform- \
1009 | --program-transform | --program-transfor \
1010 | --program-transfo | --program-transf \
1011 | --program-trans | --program-tran \
1012 | --progr-tra | --program-tr | --program-t)
1013 ac_prev
=program_transform_name
;;
1014 -program-transform-name=* | --program-transform-name=* \
1015 | --program-transform-nam=* | --program-transform-na=* \
1016 | --program-transform-n=* | --program-transform-=* \
1017 | --program-transform=* | --program-transfor=* \
1018 | --program-transfo=* | --program-transf=* \
1019 | --program-trans=* | --program-tran=* \
1020 | --progr-tra=* | --program-tr=* | --program-t=*)
1021 program_transform_name
=$ac_optarg ;;
1023 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1026 pdfdir
=$ac_optarg ;;
1028 -psdir | --psdir | --psdi | --psd | --ps)
1030 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034 | -silent | --silent | --silen | --sile | --sil)
1037 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 sbindir
=$ac_optarg ;;
1043 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045 | --sharedst | --shareds | --shared | --share | --shar \
1047 ac_prev
=sharedstatedir
;;
1048 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 sharedstatedir
=$ac_optarg ;;
1054 -site | --site | --sit)
1056 -site=* | --site=* | --sit=*)
1059 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062 srcdir
=$ac_optarg ;;
1064 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065 | --syscon | --sysco | --sysc | --sys | --sy)
1066 ac_prev
=sysconfdir
;;
1067 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069 sysconfdir
=$ac_optarg ;;
1071 -target | --target | --targe | --targ | --tar | --ta | --t)
1072 ac_prev
=target_alias
;;
1073 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074 target_alias
=$ac_optarg ;;
1076 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1079 -version | --version | --versio | --versi | --vers | -V)
1080 ac_init_version
=: ;;
1083 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1086 as_fn_error $?
"invalid package name: $ac_useropt"
1087 ac_useropt_orig
=$ac_useropt
1088 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1093 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094 ac_unrecognized_sep
=', ';;
1096 eval with_
$ac_useropt=\
$ac_optarg ;;
1098 -without-* | --without-*)
1099 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1102 as_fn_error $?
"invalid package name: $ac_useropt"
1103 ac_useropt_orig
=$ac_useropt
1104 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105 case $ac_user_opts in
1109 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110 ac_unrecognized_sep
=', ';;
1112 eval with_
$ac_useropt=no
;;
1115 # Obsolete; use --with-x.
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev
=x_includes
;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123 x_includes
=$ac_optarg ;;
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev
=x_libraries
;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130 x_libraries
=$ac_optarg ;;
1132 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1133 Try \`$0 --help' for more information"
1137 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1138 # Reject names that are not valid shell variable names.
1139 case $ac_envvar in #(
1140 '' | [0-9]* | *[!_$as_cr_alnum]* )
1141 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1143 eval $ac_envvar=\
$ac_optarg
1144 export $ac_envvar ;;
1147 # FIXME: should be removed in autoconf 3.0.
1148 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1150 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1157 if test -n "$ac_prev"; then
1158 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1159 as_fn_error $?
"missing argument to $ac_option"
1162 if test -n "$ac_unrecognized_opts"; then
1163 case $enable_option_checking in
1165 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1166 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1170 # Check all directory arguments for consistency.
1171 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172 datadir sysconfdir sharedstatedir localstatedir includedir \
1173 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 libdir localedir mandir
1176 eval ac_val
=\$
$ac_var
1177 # Remove trailing slashes.
1180 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181 eval $ac_var=\
$ac_val;;
1183 # Be sure to have absolute directory names.
1185 [\\/$
]* | ?
:[\\/]* ) continue;;
1186 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1188 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1191 # There might be people who depend on the old broken behavior: `$host'
1192 # used to hold the argument of --host etc.
1193 # FIXME: To remove some day.
1196 target
=$target_alias
1198 # FIXME: To remove some day.
1199 if test "x$host_alias" != x
; then
1200 if test "x$build_alias" = x
; then
1201 cross_compiling
=maybe
1202 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1203 If a cross compiler is detected then cross compile mode will be used" >&2
1204 elif test "x$build_alias" != "x$host_alias"; then
1210 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1212 test "$silent" = yes && exec 6>/dev
/null
1215 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1216 ac_ls_di
=`ls -di .` &&
1217 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1218 as_fn_error $?
"working directory cannot be determined"
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220 as_fn_error $?
"pwd does not report name of working directory"
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted
=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir
=`$as_dirname -- "$as_myself" ||
1228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$as_myself" : 'X\(//\)[^/]' \| \
1230 X"$as_myself" : 'X\(//\)$' \| \
1231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1232 $as_echo X"$as_myself" |
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1255 ac_srcdir_defaulted
=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1259 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1261 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 # When building in place, set srcdir=.
1266 if test "$ac_abs_confdir" = "$ac_pwd"; then
1269 # Remove unnecessary trailing slashes from srcdir.
1270 # Double slashes in file names in object file debugging info
1271 # mess up M-x gdb in Emacs.
1273 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 for ac_var
in $ac_precious_vars; do
1276 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1277 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1278 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1279 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1283 # Report the --help message.
1285 if test "$ac_init_help" = "long"; then
1286 # Omit some internal or obsolete options to make the list less imposing.
1287 # This message is too long to be a string in the A/UX 3.1 sh.
1289 \`configure' configures shadowircd 6.3.2 to adapt to many kinds of systems.
1291 Usage: $0 [OPTION]... [VAR=VALUE]...
1293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1294 VAR=VALUE. See below for descriptions of some of the useful variables.
1296 Defaults for the options are specified in brackets.
1299 -h, --help display this help and exit
1300 --help=short display options specific to this package
1301 --help=recursive display the short help of all the included packages
1302 -V, --version display version information and exit
1303 -q, --quiet, --silent do not print \`checking ...' messages
1304 --cache-file=FILE cache test results in FILE [disabled]
1305 -C, --config-cache alias for \`--cache-file=config.cache'
1306 -n, --no-create do not create output files
1307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309 Installation directories:
1310 --prefix=PREFIX install architecture-independent files in PREFIX
1311 [$ac_default_prefix]
1312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1315 By default, \`make install' will install all the files in
1316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1318 for instance \`--prefix=\$HOME'.
1320 For better control, use the options below.
1322 Fine tuning of the installation directories:
1323 --bindir=DIR user executables [EPREFIX/bin]
1324 --sbindir=DIR system admin executables [EPREFIX/sbin]
1325 --libexecdir=DIR program executables [EPREFIX/libexec]
1326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1329 --libdir=DIR object code libraries [EPREFIX/lib]
1330 --includedir=DIR C header files [PREFIX/include]
1331 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1332 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1333 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1334 --infodir=DIR info documentation [DATAROOTDIR/info]
1335 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1336 --mandir=DIR man documentation [DATAROOTDIR/man]
1337 --docdir=DIR documentation root [DATAROOTDIR/doc/shadowircd]
1338 --htmldir=DIR html documentation [DOCDIR]
1339 --dvidir=DIR dvi documentation [DOCDIR]
1340 --pdfdir=DIR pdf documentation [DOCDIR]
1341 --psdir=DIR ps documentation [DOCDIR]
1348 if test -n "$ac_init_help"; then
1349 case $ac_init_help in
1350 short
| recursive
) echo "Configuration of shadowircd 6.3.2:";;
1355 --disable-option-checking ignore unrecognized
--enable/--with options
1356 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1357 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1358 --enable-fhs-paths User
more FHS
-like pathnames
(for packagers
).
1359 --enable-ipv6 Enable IPv6 support
1360 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1361 --disable-openssl Disable OpenSSL support.
1362 --disable-zlib Disable ziplinks support
1363 --enable-ports Force solaris I
/O ports subsystem usage.
1364 --enable-poll Force poll
() usage.
1365 --enable-select Force
select() usage.
1366 --enable-kqueue Force kqueue
() usage.
1367 --enable-epoll Force sys_epoll usage
(Linux only
).
1368 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1369 hard
(aborts the daemon
)
1370 --enable-iodebug Enable IO Debugging hooks
1371 --enable-profile Enable profiling
1372 --disable-balloc Disable the block allocator.
1373 --disable-small-net Disable small network support.
1374 --enable-warnings Enable all sorts of warnings
for debugging.
1377 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1378 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1379 --with-zlib-path=DIR Path to libz.so
for ziplinks support.
1380 --with-confdir=DIR Directory to
install config files.
1381 --with-logdir=DIR Directory where to
write logfiles.
1382 --with-helpdir=DIR Directory to
install help files.
1383 --with-moduledir=DIR Directory to
install modules.
1384 --with-rundir=DIR Directory
in which to store pidfile.
1385 --with-program-prefix= If
set, programs installed into PATH will be
1386 installed with names prefixed by this prefix.
1387 --with-nicklen=LENGTH Set the nick length to LENGTH
(default
31, max
50)
1388 --with-topiclen=NUMBER Set the max topic length to NUMBER
(default
390, max
1391 Some influential environment variables
:
1392 CC C compiler
command
1393 CFLAGS C compiler flags
1394 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1395 nonstandard directory
<lib dir
>
1396 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1397 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1398 you have headers
in a nonstandard directory
<include dir
>
1400 YACC The
`Yet Another Compiler Compiler' implementation to use.
1401 Defaults to the first program found out of: `bison
-y', `byacc',
1403 YFLAGS The list of arguments that will be passed by default to $YACC.
1404 This script will default YFLAGS to the empty string to avoid a
1405 default value of `-d' given by some make applications.
1407 Use these variables to override the choices made by `configure' or to
help
1408 it to
find libraries and programs with nonstandard names
/locations.
1410 Report bugs to the package provider.
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1418 test -d "$ac_dir" ||
1419 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1424 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1426 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427 # A ".." for each directory in $ac_dir_suffix.
1428 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429 case $ac_top_builddir_sub in
1430 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1431 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1434 ac_abs_top_builddir
=$ac_pwd
1435 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir
=$ac_top_build_prefix
1440 .
) # We are building in place.
1442 ac_top_srcdir
=$ac_top_builddir_sub
1443 ac_abs_top_srcdir
=$ac_pwd ;;
1444 [\\/]* | ?
:[\\/]* ) # Absolute name.
1445 ac_srcdir
=$srcdir$ac_dir_suffix;
1446 ac_top_srcdir
=$srcdir
1447 ac_abs_top_srcdir
=$srcdir ;;
1449 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1451 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1453 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1455 cd "$ac_dir" || { ac_status
=$?
; continue; }
1456 # Check for guested configure.
1457 if test -f "$ac_srcdir/configure.gnu"; then
1459 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460 elif test -f "$ac_srcdir/configure"; then
1462 $SHELL "$ac_srcdir/configure" --help=recursive
1464 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466 cd "$ac_pwd" || { ac_status
=$?
; break; }
1470 test -n "$ac_init_help" && exit $ac_status
1471 if $ac_init_version; then
1473 shadowircd configure
6.3.2
1474 generated by GNU Autoconf
2.68
1476 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1477 This configure
script is free software
; the Free Software Foundation
1478 gives unlimited permission to copy
, distribute and modify it.
1480 $Id: configure.ac
3516 2007-06-10 16:14:03Z jilles $
1485 ## ------------------------ ##
1486 ## Autoconf initialization. ##
1487 ## ------------------------ ##
1489 # ac_fn_c_try_compile LINENO
1490 # --------------------------
1491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492 ac_fn_c_try_compile
()
1494 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1495 rm -f conftest.
$ac_objext
1496 if { { ac_try
="$ac_compile"
1498 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1499 *) ac_try_echo=$ac_try;;
1501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1502 $as_echo "$ac_try_echo"; } >&5
1503 (eval "$ac_compile") 2>conftest.err
1505 if test -s conftest.err; then
1506 grep -v '^ *+' conftest.err >conftest.er1
1507 cat conftest.er1 >&5
1508 mv -f conftest.er1 conftest.err
1510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1511 test $ac_status = 0; } && {
1512 test -z "$ac_c_werror_flag" ||
1513 test ! -s conftest.err
1514 } && test -s conftest.$ac_objext; then :
1517 $as_echo "$as_me: failed program was:" >&5
1518 sed 's/^/| /' conftest.$ac_ext >&5
1522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1523 as_fn_set_status $ac_retval
1525 } # ac_fn_c_try_compile
1527 # ac_fn_c_try_cpp LINENO
1528 # ----------------------
1529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533 if { { ac_try="$ac_cpp conftest.$ac_ext"
1535 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1536 *) ac_try_echo
=$ac_try;;
1538 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1539 $as_echo "$ac_try_echo"; } >&5
1540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1542 if test -s conftest.err
; then
1543 grep -v '^ *+' conftest.err
>conftest.er1
1544 cat conftest.er1
>&5
1545 mv -f conftest.er1 conftest.err
1547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1548 test $ac_status = 0; } > conftest.i
&& {
1549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1550 test ! -s conftest.err
1554 $as_echo "$as_me: failed program was:" >&5
1555 sed 's/^/| /' conftest.
$ac_ext >&5
1559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1560 as_fn_set_status
$ac_retval
1564 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1565 # -------------------------------------------------------
1566 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1567 # the include files in INCLUDES and setting the cache variable VAR
1569 ac_fn_c_check_header_mongrel
()
1571 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1572 if eval \
${$3+:} false
; then :
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1574 $as_echo_n "checking for $2... " >&6; }
1575 if eval \
${$3+:} false
; then :
1576 $as_echo_n "(cached) " >&6
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1580 $as_echo "$ac_res" >&6; }
1582 # Is the header compilable?
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1584 $as_echo_n "checking $2 usability... " >&6; }
1585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1586 /* end confdefs.h. */
1590 if ac_fn_c_try_compile
"$LINENO"; then :
1591 ac_header_compiler
=yes
1593 ac_header_compiler
=no
1595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1597 $as_echo "$ac_header_compiler" >&6; }
1599 # Is the header present?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1601 $as_echo_n "checking $2 presence... " >&6; }
1602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1606 if ac_fn_c_try_cpp
"$LINENO"; then :
1607 ac_header_preproc
=yes
1609 ac_header_preproc
=no
1611 rm -f conftest.err conftest.i conftest.
$ac_ext
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1613 $as_echo "$ac_header_preproc" >&6; }
1615 # So? What about this header?
1616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1619 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1621 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1625 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1627 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1629 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1631 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1633 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if eval \
${$3+:} false
; then :
1639 $as_echo_n "(cached) " >&6
1641 eval "$3=\$ac_header_compiler"
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 } # ac_fn_c_check_header_mongrel
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1657 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1658 if { { ac_try
="$ac_link"
1660 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1671 *) ac_try_echo
=$ac_try;;
1673 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.
$ac_ext >&5
1685 ac_retval
=$ac_status
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689 as_fn_set_status
$ac_retval
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile
()
1699 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \
${$3+:} false
; then :
1703 $as_echo_n "(cached) " >&6
1705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1710 if ac_fn_c_try_compile
"$LINENO"; then :
1715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 } # ac_fn_c_check_header_compile
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1729 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1730 rm -f conftest.
$ac_objext conftest
$ac_exeext
1731 if { { ac_try
="$ac_link"
1733 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1768 } # ac_fn_c_try_link
1770 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1771 # -------------------------------------------
1772 # Tests whether TYPE exists after having included INCLUDES, setting cache
1773 # variable VAR accordingly.
1774 ac_fn_c_check_type ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1795 if ac_fn_c_try_compile "$LINENO"; then :
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1808 if ac_fn_c_try_compile "$LINENO"; then :
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_type
1824 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1825 # --------------------------------------------
1826 # Tries to find the compile-time value of EXPR in a program that includes
1827 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1829 ac_fn_c_compute_int ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if test "$cross_compiling" = yes; then
1833 # Depending upon the size, compute the lo and hi bounds.
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1840 static int test_array [1 - 2 * !(($2) >= 0)];
1847 if ac_fn_c_try_compile "$LINENO"; then :
1850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1851 /* end confdefs.h. */
1856 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1863 if ac_fn_c_try_compile "$LINENO"; then :
1864 ac_hi=$ac_mid; break
1866 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1867 if test $ac_lo -le $ac_mid; then
1871 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1882 static int test_array [1 - 2 * !(($2) < 0)];
1889 if ac_fn_c_try_compile "$LINENO"; then :
1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893 /* end confdefs.h. */
1898 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 ac_lo=$ac_mid; break
1908 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1909 if test $ac_mid -le $ac_hi; then
1913 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1923 # Binary search between lo and hi bounds.
1924 while test "x$ac_lo" != "x$ac_hi"; do
1925 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1932 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1939 if ac_fn_c_try_compile "$LINENO"; then :
1942 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 static long int longval () { return $2; }
1955 static unsigned long int ulongval () { return $2; }
1962 FILE *f = fopen ("conftest.val", "w");
1967 long int i = longval ();
1970 fprintf (f, "%ld", i);
1974 unsigned long int i = ulongval ();
1977 fprintf (f, "%lu", i);
1979 /* Do not output a trailing newline, as this causes \r\n confusion
1980 on some platforms. */
1981 return ferror (f) || fclose (f) != 0;
1987 if ac_fn_c_try_run "$LINENO"; then :
1988 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1993 conftest.$ac_objext conftest.beam conftest.$ac_ext
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
2000 } # ac_fn_c_compute_int
2002 # ac_fn_c_check_func LINENO FUNC VAR
2003 # ----------------------------------
2004 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2005 ac_fn_c_check_func ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2017 #define $2 innocuous_$2
2019 /* System header to define __stub macros and hopefully few prototypes,
2020 which can conflict with char $2 (); below.
2021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2022 <limits.h> exists even on freestanding compilers. */
2025 # include <limits.h>
2027 # include <assert.h>
2032 /* Override any GCC internal prototype to avoid an error.
2033 Use char because int might match the return type of a GCC
2034 builtin and then its argument prototype would still apply. */
2039 /* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042 #if defined __stub_$2 || defined __stub___$2
2054 if ac_fn_c_try_link "$LINENO"; then :
2059 rm -f core conftest.err conftest.$ac_objext \
2060 conftest$ac_exeext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 } # ac_fn_c_check_func
2068 cat >config.log <<_ACEOF
2069 This file contains any messages produced by compilers while
2070 running configure, to aid debugging if configure makes a mistake.
2072 It was created by shadowircd $as_me 6.3.2, which was
2073 generated by GNU Autoconf 2.68. Invocation command line was
2085 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2086 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2087 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2088 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2089 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2091 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2092 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2094 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2095 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2096 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2097 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2098 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2099 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2100 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 test -z "$as_dir" && as_dir=.
2109 $as_echo "PATH: $as_dir"
2125 # Keep a trace of the command line.
2126 # Strip out --no-create and --no-recursion so they do not pile up.
2127 # Strip out --silent because we don't want to record it for future runs.
2128 # Also quote any args containing shell meta-characters.
2129 # Make two passes to allow for proper duplicate-argument suppression.
2133 ac_must_keep_next=false
2139 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2140 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2141 | -silent | --silent | --silen | --sile | --sil)
2144 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2149 as_fn_append ac_configure_args1 " '$ac_arg'"
2150 if test $ac_must_keep_next = true; then
2151 ac_must_keep_next=false # Got value, back to normal.
2154 *=* | --config-cache | -C | -disable-* | --disable-* \
2155 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2156 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2157 | -with-* | --with-* | -without-* | --without-* | --x)
2158 case "$ac_configure_args0 " in
2159 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2162 -* ) ac_must_keep_next=true ;;
2165 as_fn_append ac_configure_args " '$ac_arg'"
2170 { ac_configure_args0=; unset ac_configure_args0;}
2171 { ac_configure_args1=; unset ac_configure_args1;}
2173 # When interrupted or exit'd, cleanup temporary files, and complete
2174 # config.log. We remove comments because anyway the quotes in there
2175 # would cause problems or look ugly.
2176 # WARNING: Use '\'' to represent an apostrophe within the trap.
2177 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2178 trap 'exit_status=$?
2179 # Save into config.log some information that might help in debugging.
2183 $as_echo "## ---------------- ##
2184 ## Cache variables. ##
2185 ## ---------------- ##"
2187 # The following way of writing the cache mishandles newlines in values,
2189 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2190 eval ac_val=\$$ac_var
2194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2198 _ | IFS | as_nl) ;; #(
2199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2200 *) { eval $ac_var=; unset $ac_var;} ;;
2205 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2206 *${as_nl}ac_space=\ *)
2208 "s/'\''/'\''\\\\'\'''\''/g;
2209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2219 $as_echo "## ----------------- ##
2220 ## Output variables. ##
2221 ## ----------------- ##"
2223 for ac_var in $ac_subst_vars
2225 eval ac_val=\$$ac_var
2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2229 $as_echo "$ac_var='\''$ac_val'\''"
2233 if test -n "$ac_subst_files"; then
2234 $as_echo "## ------------------- ##
2235 ## File substitutions. ##
2236 ## ------------------- ##"
2238 for ac_var in $ac_subst_files
2240 eval ac_val=\$$ac_var
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2244 $as_echo "$ac_var='\''$ac_val'\''"
2249 if test -s confdefs.h; then
2250 $as_echo "## ----------- ##
2257 test "$ac_signal" != 0 &&
2258 $as_echo "$as_me: caught signal $ac_signal"
2259 $as_echo "$as_me: exit $exit_status"
2261 rm -f core *.core core.conftest.* &&
2262 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2265 for ac_signal in 1 2 13 15; do
2266 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2270 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2271 rm -f -r conftest* confdefs.h
2273 $as_echo "/* confdefs.h */" > confdefs.h
2275 # Predefined preprocessor variables.
2277 cat >>confdefs.h <<_ACEOF
2278 #define PACKAGE_NAME "$PACKAGE_NAME"
2281 cat >>confdefs.h <<_ACEOF
2282 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285 cat >>confdefs.h <<_ACEOF
2286 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2289 cat >>confdefs.h <<_ACEOF
2290 #define PACKAGE_STRING "$PACKAGE_STRING"
2293 cat >>confdefs.h <<_ACEOF
2294 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2297 cat >>confdefs.h <<_ACEOF
2298 #define PACKAGE_URL "$PACKAGE_URL"
2302 # Let the site file select an alternate cache file if it wants to.
2303 # Prefer an explicitly selected file to automatically selected ones.
2306 if test -n "$CONFIG_SITE"; then
2307 # We do not want a PATH search for config.site.
2308 case $CONFIG_SITE in #((
2309 -*) ac_site_file1=./$CONFIG_SITE;;
2310 */*) ac_site_file1=$CONFIG_SITE;;
2311 *) ac_site_file1=./$CONFIG_SITE;;
2313 elif test "x$prefix" != xNONE; then
2314 ac_site_file1=$prefix/share/config.site
2315 ac_site_file2=$prefix/etc/config.site
2317 ac_site_file1=$ac_default_prefix/share/config.site
2318 ac_site_file2=$ac_default_prefix/etc/config.site
2320 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2322 test "x$ac_site_file" = xNONE && continue
2323 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2325 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2326 sed 's/^/| /' "$ac_site_file" >&5
2328 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330 as_fn_error $? "failed to load site
script $ac_site_file
2331 See \
`config.log' for more details" "$LINENO" 5; }
2335 if test -r "$cache_file"; then
2336 # Some versions of bash will fail to source /dev/null (special files
2337 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2338 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2340 $as_echo "$as_me: loading cache $cache_file" >&6;}
2342 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2343 *) . "./$cache_file";;
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2348 $as_echo "$as_me: creating cache $cache_file" >&6;}
2352 # Check that the precious variables saved in the cache have kept the same
2354 ac_cache_corrupted=false
2355 for ac_var in $ac_precious_vars; do
2356 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2357 eval ac_new_set=\$ac_env_${ac_var}_set
2358 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2359 eval ac_new_val=\$ac_env_${ac_var}_value
2360 case $ac_old_set,$ac_new_set in
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2363 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2364 ac_cache_corrupted=: ;;
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2367 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2368 ac_cache_corrupted=: ;;
2371 if test "x$ac_old_val" != "x$ac_new_val"; then
2372 # differences in whitespace do not lead to failure.
2373 ac_old_val_w=`echo x
$ac_old_val`
2374 ac_new_val_w=`echo x
$ac_new_val`
2375 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2377 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2378 ac_cache_corrupted=:
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2381 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2382 eval $ac_var=\$ac_old_val
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2385 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2387 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2390 # Pass precious variables to config.status.
2391 if test "$ac_new_set" = set; then
2393 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2394 *) ac_arg=$ac_var=$ac_new_val ;;
2396 case " $ac_configure_args " in
2397 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2398 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2402 if $ac_cache_corrupted; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2406 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2407 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2409 ## -------------------- ##
2410 ## Main body of script. ##
2411 ## -------------------- ##
2414 ac_cpp='$CPP $CPPFLAGS'
2415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421 ac_config_headers="$ac_config_headers include/setup.h"
2427 ac_cpp='$CPP $CPPFLAGS'
2428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2435 $as_echo_n "checking for $ac_word... " >&6; }
2436 if ${ac_cv_prog_CC+:} false; then :
2437 $as_echo_n "(cached) " >&6
2439 if test -n "$CC"; then
2440 ac_cv_prog_CC="$CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test -n "$CC"; then
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2462 $as_echo "$CC" >&6; }
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2465 $as_echo "no" >&6; }
2470 if test -z "$ac_cv_prog_CC"; then
2472 # Extract the first word of "gcc", so it can be a program name with args.
2473 set dummy gcc; ac_word=$2
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2475 $as_echo_n "checking for $ac_word... " >&6; }
2476 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2477 $as_echo_n "(cached) " >&6
2479 if test -n "$ac_ct_CC"; then
2480 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_ac_ct_CC="gcc"
2490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2500 if test -n "$ac_ct_CC"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2502 $as_echo "$ac_ct_CC" >&6; }
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2505 $as_echo "no" >&6; }
2508 if test "x$ac_ct_CC" = x; then
2511 case $cross_compiling:$ac_tool_warned in
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2515 ac_tool_warned=yes ;;
2523 if test -z "$CC"; then
2524 if test -n "$ac_tool_prefix"; then
2525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2526 set dummy ${ac_tool_prefix}cc; ac_word=$2
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2528 $as_echo_n "checking for $ac_word... " >&6; }
2529 if ${ac_cv_prog_CC+:} false; then :
2530 $as_echo_n "(cached) " >&6
2532 if test -n "$CC"; then
2533 ac_cv_prog_CC="$CC" # Let the user override the test.
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539 test -z "$as_dir" && as_dir=.
2540 for ac_exec_ext in '' $ac_executable_extensions; do
2541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2542 ac_cv_prog_CC="${ac_tool_prefix}cc"
2543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2553 if test -n "$CC"; then
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2555 $as_echo "$CC" >&6; }
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2558 $as_echo "no" >&6; }
2564 if test -z "$CC"; then
2565 # Extract the first word of "cc", so it can be a program name with args.
2566 set dummy cc; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if ${ac_cv_prog_CC+:} false; then :
2570 $as_echo_n "(cached) " >&6
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2584 ac_prog_rejected=yes
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 if test $ac_prog_rejected = yes; then
2596 # We found a bogon in the path, so make sure we never use it.
2597 set dummy $ac_cv_prog_CC
2599 if test $# != 0; then
2600 # We chose a different compiler from the bogus one.
2601 # However, it has the same basename, so the bogon will be chosen
2602 # first if we set CC to just the basename; use the full file name.
2604 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2610 if test -n "$CC"; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2612 $as_echo "$CC" >&6; }
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615 $as_echo "no" >&6; }
2620 if test -z "$CC"; then
2621 if test -n "$ac_tool_prefix"; then
2622 for ac_prog in cl.exe
2624 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2625 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_CC+:} false; then :
2629 $as_echo_n "(cached) " >&6
2631 if test -n "$CC"; then
2632 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2652 if test -n "$CC"; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2654 $as_echo "$CC" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2661 test -n "$CC" && break
2664 if test -z "$CC"; then
2666 for ac_prog in cl.exe
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2673 $as_echo_n "(cached) " >&6
2675 if test -n "$ac_ct_CC"; then
2676 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_ac_ct_CC="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2698 $as_echo "$ac_ct_CC" >&6; }
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2705 test -n "$ac_ct_CC" && break
2708 if test "x$ac_ct_CC" = x; then
2711 case $cross_compiling:$ac_tool_warned in
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2715 ac_tool_warned=yes ;;
2724 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2727 See \
`config.log' for more details" "$LINENO" 5; }
2729 # Provide some information about the compiler.
2730 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2733 for ac_option in --version -v -V -qversion; do
2734 { { ac_try="$ac_compiler $ac_option >&5"
2736 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2737 *) ac_try_echo
=$ac_try;;
2739 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2740 $as_echo "$ac_try_echo"; } >&5
2741 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2743 if test -s conftest.err
; then
2745 ... rest of stderr output deleted ...
2746 10q' conftest.err
>conftest.er1
2747 cat conftest.er1
>&5
2749 rm -f conftest.er1 conftest.err
2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2751 test $ac_status = 0; }
2754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2755 /* end confdefs.h. */
2765 ac_clean_files_save
=$ac_clean_files
2766 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2767 # Try to create an executable without -o first, disregard a.out.
2768 # It will help us diagnose broken compilers, and finding out an intuition
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2771 $as_echo_n "checking whether the C compiler works... " >&6; }
2772 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2774 # The possible output files:
2775 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2778 for ac_file
in $ac_files
2781 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2782 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2787 if { { ac_try
="$ac_link_default"
2789 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2790 *) ac_try_echo=$ac_try;;
2792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2793 $as_echo "$ac_try_echo"; } >&5
2794 (eval "$ac_link_default") 2>&5
2796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2797 test $ac_status = 0; }; then :
2798 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2799 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2800 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2801 # so that the user can short-circuit this test for compilers unknown to
2803 for ac_file in $ac_files ''
2805 test -f "$ac_file" || continue
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2810 # We found the default executable, but exeext='' is most
2814 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2816 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2818 # We set ac_cv_exeext here because the later test for it is not
2819 # safe: cross compilers may not add the suffix if given an `-o'
2820 # argument, so we may need to know it at that point already.
2821 # Even if this section looks crufty: it has the advantage of
2828 test "$ac_cv_exeext" = no && ac_cv_exeext=
2833 if test -z "$ac_file"; then :
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 $as_echo "$as_me: failed program was:" >&5
2837 sed 's
/^
/| /' conftest.$ac_ext >&5
2839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2840 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2841 as_fn_error 77 "C compiler cannot create executables
2842 See \`config.log
' for more details" "$LINENO" 5; }
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2845 $as_echo "yes" >&6; }
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2848 $as_echo_n "checking for C compiler default output file name... " >&6; }
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2850 $as_echo "$ac_file" >&6; }
2851 ac_exeext=$ac_cv_exeext
2853 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2854 ac_clean_files=$ac_clean_files_save
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2856 $as_echo_n "checking for suffix of executables... " >&6; }
2857 if { { ac_try="$ac_link"
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2863 $as_echo "$ac_try_echo"; } >&5
2864 (eval "$ac_link") 2>&5
2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2867 test $ac_status = 0; }; then :
2868 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2869 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2870 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2872 for ac_file
in conftest.exe conftest conftest.
*; do
2873 test -f "$ac_file" || continue
2875 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
2876 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2884 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2885 See \`config.log' for more details" "$LINENO" 5; }
2887 rm -f conftest conftest
$ac_cv_exeext
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2889 $as_echo "$ac_cv_exeext" >&6; }
2891 rm -f conftest.
$ac_ext
2892 EXEEXT
=$ac_cv_exeext
2894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2900 FILE *f = fopen ("conftest.out", "w");
2901 return ferror (f) || fclose (f) != 0;
2907 ac_clean_files
="$ac_clean_files conftest.out"
2908 # Check that the compiler produces executables we can run. If not, either
2909 # the compiler is broken, or we cross compile.
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2911 $as_echo_n "checking whether we are cross compiling... " >&6; }
2912 if test "$cross_compiling" != yes; then
2913 { { ac_try
="$ac_link"
2915 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 $as_echo "$ac_try_echo"; } >&5
2920 (eval "$ac_link") 2>&5
2922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923 test $ac_status = 0; }
2924 if { ac_try='./conftest$ac_cv_exeext'
2925 { { case "(($ac_try" in
2926 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2927 *) ac_try_echo
=$ac_try;;
2929 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2930 $as_echo "$ac_try_echo"; } >&5
2931 (eval "$ac_try") 2>&5
2933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2934 test $ac_status = 0; }; }; then
2937 if test "$cross_compiling" = maybe
; then
2940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 as_fn_error $?
"cannot run C compiled programs.
2943 If you meant to cross compile, use \`--host'.
2944 See \`config.log' for more details" "$LINENO" 5; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2949 $as_echo "$cross_compiling" >&6; }
2951 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2952 ac_clean_files
=$ac_clean_files_save
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2954 $as_echo_n "checking for suffix of object files... " >&6; }
2955 if ${ac_cv_objext+:} false
; then :
2956 $as_echo_n "(cached) " >&6
2958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h. */
2969 rm -f conftest.o conftest.obj
2970 if { { ac_try
="$ac_compile"
2972 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2976 $as_echo "$ac_try_echo"; } >&5
2977 (eval "$ac_compile") 2>&5
2979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2980 test $ac_status = 0; }; then :
2981 for ac_file in conftest.o conftest.obj conftest.*; do
2982 test -f "$ac_file" || continue;
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2985 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990 $as_echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2995 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2996 See \
`config.log' for more details" "$LINENO" 5; }
2998 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3001 $as_echo "$ac_cv_objext" >&6; }
3002 OBJEXT=$ac_cv_objext
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3005 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3006 if ${ac_cv_c_compiler_gnu+:} false; then :
3007 $as_echo_n "(cached) " >&6
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3023 if ac_fn_c_try_compile "$LINENO"; then :
3028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3029 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3033 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3034 if test $ac_compiler_gnu = yes; then
3039 ac_test_CFLAGS=${CFLAGS+set}
3040 ac_save_CFLAGS=$CFLAGS
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3042 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3043 if ${ac_cv_prog_cc_g+:} false; then :
3044 $as_echo_n "(cached) " >&6
3046 ac_save_c_werror_flag=$ac_c_werror_flag
3047 ac_c_werror_flag=yes
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3061 if ac_fn_c_try_compile "$LINENO"; then :
3065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3066 /* end confdefs.h. */
3076 if ac_fn_c_try_compile "$LINENO"; then :
3079 ac_c_werror_flag=$ac_save_c_werror_flag
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3092 if ac_fn_c_try_compile "$LINENO"; then :
3095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3100 ac_c_werror_flag=$ac_save_c_werror_flag
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3103 $as_echo "$ac_cv_prog_cc_g" >&6; }
3104 if test "$ac_test_CFLAGS" = set; then
3105 CFLAGS=$ac_save_CFLAGS
3106 elif test $ac_cv_prog_cc_g = yes; then
3107 if test "$GCC" = yes; then
3113 if test "$GCC" = yes; then
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3120 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3121 if ${ac_cv_prog_cc_c89+:} false; then :
3122 $as_echo_n "(cached) " >&6
3124 ac_cv_prog_cc_c89=no
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3130 #include <sys/types.h>
3131 #include <sys/stat.h>
3132 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3133 struct buf { int x; };
3134 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3135 static char *e (p, i)
3141 static char *f (char * (*g) (char **, int), char **p, ...)
3146 s = g (p, va_arg (v,int));
3151 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3152 function prototypes and stuff, but not '\xHH' hex character constants.
3153 These don't provoke an error unfortunately, instead are silently treated
3154 as 'x'. The following induces an error, until -std is added to get
3155 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3156 array size at least. It's necessary to write '\x00'==0 to get something
3157 that's true only with -std. */
3158 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3160 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3161 inside strings and character constants. */
3163 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3165 int test (int i, double x);
3166 struct s1 {int (*f) (int a);};
3167 struct s2 {int (*f) (double a);};
3168 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3174 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3179 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3180 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3182 CC="$ac_save_CC $ac_arg"
3183 if ac_fn_c_try_compile "$LINENO"; then :
3184 ac_cv_prog_cc_c89=$ac_arg
3186 rm -f core conftest.err conftest.$ac_objext
3187 test "x$ac_cv_prog_cc_c89" != "xno" && break
3189 rm -f conftest.$ac_ext
3194 case "x$ac_cv_prog_cc_c89" in
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3197 $as_echo "none needed" >&6; } ;;
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3200 $as_echo "unsupported" >&6; } ;;
3202 CC="$CC $ac_cv_prog_cc_c89"
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3204 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3206 if test "x$ac_cv_prog_cc_c89" != xno; then :
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 ac_cpp='$CPP $CPPFLAGS'
3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3223 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3224 # On Suns, sometimes $CPP names a directory.
3225 if test -n "$CPP" && test -d "$CPP"; then
3228 if test -z "$CPP"; then
3229 if ${ac_cv_prog_CPP+:} false; then :
3230 $as_echo_n "(cached) " >&6
3232 # Double quotes because CPP needs to be expanded
3233 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3236 for ac_c_preproc_warn_flag in '' yes
3238 # Use a header file that comes with gcc, so configuring glibc
3239 # with a fresh cross-compiler works.
3240 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3241 # <limits.h> exists even on freestanding compilers.
3242 # On the NeXT, cc -E runs the code through the compiler's parser,
3243 # not just through cpp. "Syntax error" is here to catch this case.
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3247 # include <limits.h>
3249 # include <assert.h>
3253 if ac_fn_c_try_cpp "$LINENO"; then :
3256 # Broken: fails on valid input.
3259 rm -f conftest.err conftest.i conftest.$ac_ext
3261 # OK, works on sane cases. Now check whether nonexistent headers
3262 # can be detected and how.
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3265 #include <ac_nonexistent.h>
3267 if ac_fn_c_try_cpp "$LINENO"; then :
3268 # Broken: success on invalid input.
3271 # Passes both tests.
3275 rm -f conftest.err conftest.i conftest.$ac_ext
3278 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3279 rm -f conftest.i conftest.err conftest.
$ac_ext
3280 if $ac_preproc_ok; then :
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3293 $as_echo "$CPP" >&6; }
3295 for ac_c_preproc_warn_flag
in '' yes
3297 # Use a header file that comes with gcc, so configuring glibc
3298 # with a fresh cross-compiler works.
3299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3300 # <limits.h> exists even on freestanding compilers.
3301 # On the NeXT, cc -E runs the code through the compiler's parser,
3302 # not just through cpp. "Syntax error" is here to catch this case.
3303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3306 # include <limits.h>
3308 # include <assert.h>
3312 if ac_fn_c_try_cpp
"$LINENO"; then :
3315 # Broken: fails on valid input.
3318 rm -f conftest.err conftest.i conftest.
$ac_ext
3320 # OK, works on sane cases. Now check whether nonexistent headers
3321 # can be detected and how.
3322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324 #include <ac_nonexistent.h>
3326 if ac_fn_c_try_cpp
"$LINENO"; then :
3327 # Broken: success on invalid input.
3330 # Passes both tests.
3334 rm -f conftest.err conftest.i conftest.
$ac_ext
3337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3338 rm -f conftest.i conftest.err conftest.
$ac_ext
3339 if $ac_preproc_ok; then :
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3345 See \`config.log' for more details" "$LINENO" 5; }
3349 ac_cpp
='$CPP $CPPFLAGS'
3350 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3356 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3357 if ${ac_cv_path_GREP+:} false
; then :
3358 $as_echo_n "(cached) " >&6
3360 if test -z "$GREP"; then
3361 ac_path_GREP_found
=false
3362 # Loop through the user's path and test for each of PROGNAME-LIST
3363 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3364 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3367 test -z "$as_dir" && as_dir
=.
3368 for ac_prog
in grep ggrep
; do
3369 for ac_exec_ext
in '' $ac_executable_extensions; do
3370 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3371 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3372 # Check for GNU ac_path_GREP and select it if it is found.
3373 # Check for GNU $ac_path_GREP
3374 case `"$ac_path_GREP" --version 2>&1` in
3376 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3379 $as_echo_n 0123456789 >"conftest.in"
3382 cat "conftest.in" "conftest.in" >"conftest.tmp"
3383 mv "conftest.tmp" "conftest.in"
3384 cp "conftest.in" "conftest.nl"
3385 $as_echo 'GREP' >> "conftest.nl"
3386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3387 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3388 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3389 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3390 # Best one so far, save it but keep looking for a better one
3391 ac_cv_path_GREP
="$ac_path_GREP"
3392 ac_path_GREP_max
=$ac_count
3394 # 10*(2^10) chars as input seems more than enough
3395 test $ac_count -gt 10 && break
3397 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3400 $ac_path_GREP_found && break 3
3405 if test -z "$ac_cv_path_GREP"; then
3406 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3409 ac_cv_path_GREP
=$GREP
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3414 $as_echo "$ac_cv_path_GREP" >&6; }
3415 GREP
="$ac_cv_path_GREP"
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3419 $as_echo_n "checking for egrep... " >&6; }
3420 if ${ac_cv_path_EGREP+:} false
; then :
3421 $as_echo_n "(cached) " >&6
3423 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
3424 then ac_cv_path_EGREP
="$GREP -E"
3426 if test -z "$EGREP"; then
3427 ac_path_EGREP_found
=false
3428 # Loop through the user's path and test for each of PROGNAME-LIST
3429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3433 test -z "$as_dir" && as_dir
=.
3434 for ac_prog
in egrep; do
3435 for ac_exec_ext
in '' $ac_executable_extensions; do
3436 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3437 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3438 # Check for GNU ac_path_EGREP and select it if it is found.
3439 # Check for GNU $ac_path_EGREP
3440 case `"$ac_path_EGREP" --version 2>&1` in
3442 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3445 $as_echo_n 0123456789 >"conftest.in"
3448 cat "conftest.in" "conftest.in" >"conftest.tmp"
3449 mv "conftest.tmp" "conftest.in"
3450 cp "conftest.in" "conftest.nl"
3451 $as_echo 'EGREP' >> "conftest.nl"
3452 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3453 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3454 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3455 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3456 # Best one so far, save it but keep looking for a better one
3457 ac_cv_path_EGREP
="$ac_path_EGREP"
3458 ac_path_EGREP_max
=$ac_count
3460 # 10*(2^10) chars as input seems more than enough
3461 test $ac_count -gt 10 && break
3463 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3466 $ac_path_EGREP_found && break 3
3471 if test -z "$ac_cv_path_EGREP"; then
3472 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3475 ac_cv_path_EGREP
=$EGREP
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3481 $as_echo "$ac_cv_path_EGREP" >&6; }
3482 EGREP
="$ac_cv_path_EGREP"
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3486 $as_echo_n "checking for ANSI C header files... " >&6; }
3487 if ${ac_cv_header_stdc+:} false
; then :
3488 $as_echo_n "(cached) " >&6
3490 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3505 if ac_fn_c_try_compile
"$LINENO"; then :
3506 ac_cv_header_stdc
=yes
3508 ac_cv_header_stdc
=no
3510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3512 if test $ac_cv_header_stdc = yes; then
3513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3520 $EGREP "memchr" >/dev
/null
2>&1; then :
3523 ac_cv_header_stdc
=no
3529 if test $ac_cv_header_stdc = yes; then
3530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3537 $EGREP "free" >/dev
/null
2>&1; then :
3540 ac_cv_header_stdc
=no
3546 if test $ac_cv_header_stdc = yes; then
3547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3548 if test "$cross_compiling" = yes; then :
3551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3552 /* end confdefs.h. */
3555 #if ((' ' & 0x0FF) == 0x020)
3556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3559 # define ISLOWER(c) \
3560 (('a' <= (c) && (c) <= 'i') \
3561 || ('j' <= (c) && (c) <= 'r') \
3562 || ('s' <= (c) && (c) <= 'z'))
3563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3571 for (i = 0; i < 256; i++)
3572 if (XOR (islower (i), ISLOWER (i))
3573 || toupper (i) != TOUPPER (i))
3578 if ac_fn_c_try_run
"$LINENO"; then :
3581 ac_cv_header_stdc
=no
3583 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
3584 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3590 $as_echo "$ac_cv_header_stdc" >&6; }
3591 if test $ac_cv_header_stdc = yes; then
3593 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3597 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3598 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
3599 inttypes.h stdint.h unistd.h
3601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3602 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3604 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
3605 cat >>confdefs.h
<<_ACEOF
3606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3615 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3616 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
3623 if test "$MINIX" = yes; then
3625 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3628 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3631 $as_echo "#define _MINIX 1" >>confdefs.h
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3637 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3638 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
3639 $as_echo_n "(cached) " >&6
3641 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3644 # define __EXTENSIONS__ 1
3645 $ac_includes_default
3654 if ac_fn_c_try_compile
"$LINENO"; then :
3655 ac_cv_safe_to_define___extensions__
=yes
3657 ac_cv_safe_to_define___extensions__
=no
3659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3662 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3663 test $ac_cv_safe_to_define___extensions__ = yes &&
3664 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3666 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3668 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3670 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3672 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3677 OLD_CFLAGS
="$CFLAGS"
3679 ac_cpp
='$CPP $CPPFLAGS'
3680 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3683 if test -n "$ac_tool_prefix"; then
3684 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3685 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_CC+:} false
; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC
="$CC" # Let the user override the test.
3694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir
=.
3699 for ac_exec_ext
in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712 if test -n "$CC"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3714 $as_echo "$CC" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3722 if test -z "$ac_cv_prog_CC"; then
3724 # Extract the first word of "gcc", so it can be a program name with args.
3725 set dummy gcc
; ac_word
=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3729 $as_echo_n "(cached) " >&6
3731 if test -n "$ac_ct_CC"; then
3732 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir
=.
3739 for ac_exec_ext
in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_prog_ac_ct_CC
="gcc"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 $as_echo "$ac_ct_CC" >&6; }
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3760 if test "x$ac_ct_CC" = x
; then
3763 case $cross_compiling:$ac_tool_warned in
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3767 ac_tool_warned
=yes ;;
3775 if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3778 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if ${ac_cv_prog_CC+:} false
; then :
3782 $as_echo_n "(cached) " >&6
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC
="$CC" # Let the user override the test.
3787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3791 test -z "$as_dir" && as_dir
=.
3792 for ac_exec_ext
in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 if test -n "$CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 $as_echo "$CC" >&6; }
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3816 if test -z "$CC"; then
3817 # Extract the first word of "cc", so it can be a program name with args.
3818 set dummy cc
; ac_word
=$2
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3820 $as_echo_n "checking for $ac_word... " >&6; }
3821 if ${ac_cv_prog_CC+:} false
; then :
3822 $as_echo_n "(cached) " >&6
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC
="$CC" # Let the user override the test.
3828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir
=.
3833 for ac_exec_ext
in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3836 ac_prog_rejected
=yes
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 if test $ac_prog_rejected = yes; then
3848 # We found a bogon in the path, so make sure we never use it.
3849 set dummy
$ac_cv_prog_CC
3851 if test $# != 0; then
3852 # We chose a different compiler from the bogus one.
3853 # However, it has the same basename, so the bogon will be chosen
3854 # first if we set CC to just the basename; use the full file name.
3856 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3862 if test -n "$CC"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864 $as_echo "$CC" >&6; }
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3872 if test -z "$CC"; then
3873 if test -n "$ac_tool_prefix"; then
3874 for ac_prog
in cl.exe
3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3877 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3879 $as_echo_n "checking for $ac_word... " >&6; }
3880 if ${ac_cv_prog_CC+:} false
; then :
3881 $as_echo_n "(cached) " >&6
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC
="$CC" # Let the user override the test.
3886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3890 test -z "$as_dir" && as_dir
=.
3891 for ac_exec_ext
in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 if test -n "$CC"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3906 $as_echo "$CC" >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3913 test -n "$CC" && break
3916 if test -z "$CC"; then
3918 for ac_prog
in cl.exe
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy
$ac_prog; ac_word
=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$ac_ct_CC"; then
3928 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_CC
="$ac_prog"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3948 if test -n "$ac_ct_CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3950 $as_echo "$ac_ct_CC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3957 test -n "$ac_ct_CC" && break
3960 if test "x$ac_ct_CC" = x
; then
3963 case $cross_compiling:$ac_tool_warned in
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3967 ac_tool_warned
=yes ;;
3976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3978 as_fn_error $?
"no acceptable C compiler found in \$PATH
3979 See \`config.log' for more details" "$LINENO" 5; }
3981 # Provide some information about the compiler.
3982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3985 for ac_option
in --version -v -V -qversion; do
3986 { { ac_try
="$ac_compiler $ac_option >&5"
3988 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3995 if test -s conftest.err; then
3997 ... rest of stderr output deleted ...
3998 10q' conftest.err >conftest.er1
3999 cat conftest.er1 >&5
4001 rm -f conftest.er1 conftest.err
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4007 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4008 if ${ac_cv_c_compiler_gnu+:} false; then :
4009 $as_echo_n "(cached) " >&6
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4025 if ac_fn_c_try_compile "$LINENO"; then :
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4035 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4036 if test $ac_compiler_gnu = yes; then
4041 ac_test_CFLAGS=${CFLAGS+set}
4042 ac_save_CFLAGS=$CFLAGS
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4044 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4045 if ${ac_cv_prog_cc_g+:} false; then :
4046 $as_echo_n "(cached) " >&6
4048 ac_save_c_werror_flag=$ac_c_werror_flag
4049 ac_c_werror_flag=yes
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4063 if ac_fn_c_try_compile "$LINENO"; then :
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4078 if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_c_werror_flag=$ac_save_c_werror_flag
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4094 if ac_fn_c_try_compile "$LINENO"; then :
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_c_werror_flag=$ac_save_c_werror_flag
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4105 $as_echo "$ac_cv_prog_cc_g" >&6; }
4106 if test "$ac_test_CFLAGS" = set; then
4107 CFLAGS=$ac_save_CFLAGS
4108 elif test $ac_cv_prog_cc_g = yes; then
4109 if test "$GCC" = yes; then
4115 if test "$GCC" = yes; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4122 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4123 if ${ac_cv_prog_cc_c89+:} false; then :
4124 $as_echo_n "(cached) " >&6
4126 ac_cv_prog_cc_c89=no
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4132 #include <sys/types.h>
4133 #include <sys/stat.h>
4134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4135 struct buf { int x; };
4136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4137 static char *e (p, i)
4143 static char *f (char * (*g) (char **, int), char **p, ...)
4148 s = g (p, va_arg (v,int));
4153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4154 function prototypes and stuff, but not '\xHH' hex character constants.
4155 These don't provoke an error unfortunately, instead are silently treated
4156 as 'x'. The following induces an error, until -std is added to get
4157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4158 array size at least. It's necessary to write '\x00'==0 to get something
4159 that's true only with -std. */
4160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4162 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4163 inside strings and character constants. */
4165 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4167 int test (int i, double x);
4168 struct s1 {int (*f) (int a);};
4169 struct s2 {int (*f) (double a);};
4170 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4176 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4181 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4182 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4184 CC="$ac_save_CC $ac_arg"
4185 if ac_fn_c_try_compile "$LINENO"; then :
4186 ac_cv_prog_cc_c89=$ac_arg
4188 rm -f core conftest.err conftest.$ac_objext
4189 test "x$ac_cv_prog_cc_c89" != "xno" && break
4191 rm -f conftest.$ac_ext
4196 case "x$ac_cv_prog_cc_c89" in
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4199 $as_echo "none needed" >&6; } ;;
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4202 $as_echo "unsupported" >&6; } ;;
4204 CC="$CC $ac_cv_prog_cc_c89"
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4206 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4208 if test "x$ac_cv_prog_cc_c89" != xno; then :
4213 ac_cpp='$CPP $CPPFLAGS'
4214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 CFLAGS="$OLD_CFLAGS"
4228 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4229 if test -f "$ac_dir/install-sh"; then
4231 ac_install_sh="$ac_aux_dir/install-sh -c"
4233 elif test -f "$ac_dir/install.sh"; then
4235 ac_install_sh="$ac_aux_dir/install.sh -c"
4237 elif test -f "$ac_dir/shtool"; then
4239 ac_install_sh="$ac_aux_dir/shtool install -c"
4243 if test -z "$ac_aux_dir"; then
4244 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4247 # These three variables are undocumented and unsupported,
4248 # and are intended to be withdrawn in a future Autoconf release.
4249 # They can cause serious problems if a builder's source tree is in a directory
4250 # whose full name contains unusual characters.
4251 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4252 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4253 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4258 subdirs="$subdirs libratbox"
4262 if test "$ac_cv_c_compiler_gnu" != yes; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $CC -version for TenDRA or MIPSpro" >&5
4266 $as_echo_n "checking $CC -version for TenDRA or MIPSpro... " >&6; }
4267 case `$CC -version 2>&1` in
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, TenDRA" >&5
4270 $as_echo "yes, TenDRA" >&6; }
4272 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, MIPSpro" >&5
4278 $as_echo "yes, MIPSpro" >&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 $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
4291 $as_echo_n "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... " >&6; }
4292 case `$CC -V 2>&1` in
4293 *Sun*WorkShop* | *Forte*Developer*)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sun Workshop/Forte" >&5
4295 $as_echo "Sun Workshop/Forte" >&6; }
4296 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64 cc" >&5
4302 $as_echo "Tru64 cc" >&6; }
4304 CPPFLAGS="-I/usr/local/include"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HPUX cc" >&5
4309 $as_echo "HPUX cc" >&6; }
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315 $as_echo "no" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking uname -s for Solaris, AIX or HPUX" >&5
4322 $as_echo_n "checking uname -s for Solaris, AIX or HPUX... " >&6; }
4327 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming old HPUX with its own cc" >&5
4329 $as_echo "assuming old HPUX with its own cc" >&6; }
4330 IRC_CFLAGS="$IRC_CFLAGS +e"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: already using newer HPUX" >&5
4334 $as_echo "already using newer HPUX" >&6; }
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SunOS or Solaris" >&5
4339 $as_echo "SunOS or Solaris" >&6; }
4341 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: AIX - Sorry you poor bastard..really we are" >&5
4347 $as_echo "AIX - Sorry you poor bastard..really we are" >&6; }
4348 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4356 if test "$ac_cv_c_compiler_gnu" = yes; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC is Apple GCC" >&5
4358 $as_echo_n "checking if $CC is Apple GCC... " >&6; }
4360 case `$CC -v 2>&1 | tail -n 1` in
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4363 $as_echo "yes" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4373 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
4376 if test "$ac_cv_prog_cc_g" = yes; then
4377 if test "$Tru" = yes; then
4378 IRC_CFLAGS="$IRC_CFLAGS -g3"
4380 IRC_CFLAGS="$IRC_CFLAGS -g"
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports the SVR4 SGS interfaces" >&5
4385 $as_echo_n "checking if $CC supports the SVR4 SGS interfaces... " >&6; }
4386 if test "$SGS" = "yes"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4388 $as_echo "yes" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4394 # Extract the first word of "mkdep", so it can be a program name with args.
4395 set dummy mkdep; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_path_MKDEP+:} false; then :
4399 $as_echo_n "(cached) " >&6
4403 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 MKDEP=$ac_cv_path_MKDEP
4425 if test -n "$MKDEP"; then
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDEP" >&5
4427 $as_echo "$MKDEP" >&6; }
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4434 # Extract the first word of "makedepend", so it can be a program name with args.
4435 set dummy makedepend; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if ${ac_cv_path_MAKEDEPEND+:} false; then :
4439 $as_echo_n "(cached) " >&6
4443 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
4454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
4465 if test -n "$MAKEDEPEND"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
4467 $as_echo "$MAKEDEPEND" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to generate dependency info" >&5
4476 $as_echo_n "checking how to generate dependency info... " >&6; }
4480 if test "$ac_cv_c_compiler_gnu" = yes; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc -MM" >&5
4482 $as_echo "gcc -MM" >&6; }
4484 elif test ! -z "$MKDEP"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: mkdep" >&5
4486 $as_echo "mkdep" >&6; }
4488 if test -z "$Tru"; then
4491 STDOUT=" 2> /dev/null"
4493 elif test "$SunWorkShop" = yes; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC -xM" >&5
4495 $as_echo "$CC -xM" >&6; }
4497 STDOUT="> .depend 2> /dev/null"
4498 elif test ! -z "$MAKEDEPEND"; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: makedepend" >&5
4500 $as_echo "makedepend" >&6; }
4501 MKDEP="$MAKEDEPEND -f-"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nothing suitable.. forget it!" >&5
4504 $as_echo "nothing suitable.. forget it!" >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
4512 $as_echo_n "checking for /dev/null... " >&6; }
4513 if test -c /dev/null ; then
4515 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518 $as_echo "yes" >&6; }
4521 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
4524 $as_echo "no - using devnull.log" >&6; }
4527 if test ! -z "$CFLAGS"; then
4528 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4532 $as_echo_n "checking for library containing strerror... " >&6; }
4533 if ${ac_cv_search_strerror+:} false; then :
4534 $as_echo_n "(cached) " >&6
4536 ac_func_search_save_LIBS=$LIBS
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4540 /* Override any GCC internal prototype to avoid an error.
4541 Use char because int might match the return type of a GCC
4542 builtin and then its argument prototype would still apply. */
4555 for ac_lib in '' cposix; do
4556 if test -z "$ac_lib"; then
4557 ac_res="none required"
4560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4562 if ac_fn_c_try_link "$LINENO"; then :
4563 ac_cv_search_strerror=$ac_res
4565 rm -f core conftest.err conftest.$ac_objext \
4567 if ${ac_cv_search_strerror+:} false; then :
4571 if ${ac_cv_search_strerror+:} false; then :
4574 ac_cv_search_strerror=no
4577 LIBS=$ac_func_search_save_LIBS
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4580 $as_echo "$ac_cv_search_strerror" >&6; }
4581 ac_res=$ac_cv_search_strerror
4582 if test "$ac_res" != no; then :
4583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4588 $as_echo_n "checking for inline... " >&6; }
4589 if ${ac_cv_c_inline+:} false; then :
4590 $as_echo_n "(cached) " >&6
4593 for ac_kw in inline __inline__ __inline; do
4594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4595 /* end confdefs.h. */
4598 static $ac_kw foo_t static_foo () {return 0; }
4599 $ac_kw foo_t foo () {return 0; }
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_c_inline=$ac_kw
4606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 test "$ac_cv_c_inline" != no && break
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4612 $as_echo "$ac_cv_c_inline" >&6; }
4614 case $ac_cv_c_inline in
4617 case $ac_cv_c_inline in
4619 *) ac_val=$ac_cv_c_inline;;
4621 cat >>confdefs.h <<_ACEOF
4623 #define inline $ac_val
4629 if test $ac_cv_c_compiler_gnu = yes; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4631 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4632 if ${ac_cv_prog_gcc_traditional+:} false; then :
4633 $as_echo_n "(cached) " >&6
4635 ac_pattern="Autoconf.*'x'"
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4643 ac_cv_prog_gcc_traditional=yes
4645 ac_cv_prog_gcc_traditional=no
4650 if test $ac_cv_prog_gcc_traditional = no; then
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4657 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4658 ac_cv_prog_gcc_traditional=yes
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4665 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4666 if test $ac_cv_prog_gcc_traditional = yes; then
4667 CC="$CC -traditional"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4672 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4674 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4675 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4676 $as_echo_n "(cached) " >&6
4678 cat >conftest.make <<\_ACEOF
4681 @echo '@@@%%%=$(MAKE)=@@@%%%'
4683 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4684 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
4686 eval ac_cv_prog_make_${ac_make}_set=yes;;
4688 eval ac_cv_prog_make_${ac_make}_set=no;;
4692 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4694 $as_echo "yes" >&6; }
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 SET_MAKE="MAKE=${MAKE-make}"
4702 # Find a good install program. We prefer a C program (faster),
4703 # so one script is as good as another. But avoid the broken or
4704 # incompatible versions:
4705 # SysV /etc/install, /usr/sbin/install
4706 # SunOS /usr/etc/install
4707 # IRIX /sbin/install
4709 # AmigaOS /C/install, which installs bootblocks on floppy discs
4710 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4711 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4712 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4713 # OS/2's system install, which has a completely different semantic
4714 # ./install, which can be erroneously created by make from ./install.sh.
4715 # Reject install programs that cannot install multiple files.
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4717 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4718 if test -z "$INSTALL"; then
4719 if ${ac_cv_path_install+:} false; then :
4720 $as_echo_n "(cached) " >&6
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 # Account for people who put trailing slashes in PATH elements.
4728 case $as_dir/ in #((
4729 ./ | .// | /[cC]/* | \
4730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4734 # OSF1 and SCO ODT 3.0 have their own names for install.
4735 # Don't use installbsd from OSF since it installs stuff as root
4737 for ac_prog in ginstall scoinst install; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4740 if test $ac_prog = install &&
4741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4742 # AIX install. It has an incompatible calling convention.
4744 elif test $ac_prog = install &&
4745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4746 # program-specific install script used by HP pwplus--don't use.
4749 rm -rf conftest.one conftest.two conftest.dir
4750 echo one > conftest.one
4751 echo two > conftest.two
4753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4754 test -s conftest.one && test -s conftest.two &&
4755 test -s conftest.dir/conftest.one &&
4756 test -s conftest.dir/conftest.two
4758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4771 rm -rf conftest.one conftest.two conftest.dir
4774 if test "${ac_cv_path_install+set}" = set; then
4775 INSTALL=$ac_cv_path_install
4777 # As a last resort, use the slow shell script. Don't cache a
4778 # value for INSTALL within a source directory, because that will
4779 # break other packages using the cache if that directory is
4780 # removed, or if the value is a relative name.
4781 INSTALL=$ac_install_sh
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4785 $as_echo "$INSTALL" >&6; }
4787 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4788 # It thinks the first close brace ends the variable substitution.
4789 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4791 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4793 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4795 # Extract the first word of "rm", so it can be a program name with args.
4796 set dummy rm; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_path_RM+:} false; then :
4800 $as_echo_n "(cached) " >&6
4804 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 if test -n "$RM"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4828 $as_echo "$RM" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4835 # Extract the first word of "cp", so it can be a program name with args.
4836 set dummy cp; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_path_CP+:} false; then :
4840 $as_echo_n "(cached) " >&6
4844 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 test -z "$as_dir" && as_dir=.
4852 for ac_exec_ext in '' $ac_executable_extensions; do
4853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4854 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 if test -n "$CP"; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4868 $as_echo "$CP" >&6; }
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4875 # Extract the first word of "mv", so it can be a program name with args.
4876 set dummy mv; ac_word=$2
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4878 $as_echo_n "checking for $ac_word... " >&6; }
4879 if ${ac_cv_path_MV+:} false; then :
4880 $as_echo_n "(cached) " >&6
4884 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 if test -n "$MV"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4908 $as_echo "$MV" >&6; }
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4915 # Extract the first word of "ln", so it can be a program name with args.
4916 set dummy ln; ac_word=$2
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4918 $as_echo_n "checking for $ac_word... " >&6; }
4919 if ${ac_cv_path_LN+:} false; then :
4920 $as_echo_n "(cached) " >&6
4924 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946 if test -n "$LN"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4948 $as_echo "$LN" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4955 # Extract the first word of "sed", so it can be a program name with args.
4956 set dummy sed; ac_word=$2
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4958 $as_echo_n "checking for $ac_word... " >&6; }
4959 if ${ac_cv_path_SED+:} false; then :
4960 $as_echo_n "(cached) " >&6
4964 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 if test -n "$SED"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4988 $as_echo "$SED" >&6; }
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4995 # Extract the first word of "ar", so it can be a program name with args.
4996 set dummy ar; ac_word=$2
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4998 $as_echo_n "checking for $ac_word... " >&6; }
4999 if ${ac_cv_path_AR+:} false; then :
5000 $as_echo_n "(cached) " >&6
5004 ac_cv_path_AR="$AR" # Let the user override the test with a path.
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5014 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 if test -n "$AR"; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5028 $as_echo "$AR" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5035 # Extract the first word of "ld", so it can be a program name with args.
5036 set dummy ld; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_path_LD+:} false; then :
5040 $as_echo_n "(cached) " >&6
5044 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 test -z "$as_dir" && as_dir=.
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
5055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 if test -n "$LD"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5068 $as_echo "$LD" >&6; }
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5071 $as_echo "no" >&6; }
5075 # Extract the first word of "ranlib", so it can be a program name with args.
5076 set dummy ranlib; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_path_RANLIB+:} false; then :
5080 $as_echo_n "(cached) " >&6
5084 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5094 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 RANLIB=$ac_cv_path_RANLIB
5106 if test -n "$RANLIB"; then
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5108 $as_echo "$RANLIB" >&6; }
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111 $as_echo "no" >&6; }
5115 # Extract the first word of "touch", so it can be a program name with args.
5116 set dummy touch; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_path_TOUCH+:} false; then :
5120 $as_echo_n "(cached) " >&6
5124 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 TOUCH=$ac_cv_path_TOUCH
5146 if test -n "$TOUCH"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5148 $as_echo "$TOUCH" >&6; }
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5156 for ac_prog in 'bison -y' byacc
5158 # Extract the first word of "$ac_prog", so it can be a program name with args.
5159 set dummy $ac_prog; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_YACC+:} false; then :
5163 $as_echo_n "(cached) " >&6
5165 if test -n "$YACC"; then
5166 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5175 ac_cv_prog_YACC="$ac_prog"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 YACC=$ac_cv_prog_YACC
5186 if test -n "$YACC"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5188 $as_echo "$YACC" >&6; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5195 test -n "$YACC" && break
5197 test -n "$YACC" || YACC="yacc"
5200 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev
/null
`"; then
5201 as_fn_error $? "could not locate a suitable parser generator; install bison, yacc, or byacc" "$LINENO" 5
5204 for ac_prog in flex lex
5206 # Extract the first word of "$ac_prog", so it can be a program name with args.
5207 set dummy $ac_prog; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if ${ac_cv_prog_LEX+:} false; then :
5211 $as_echo_n "(cached) " >&6
5213 if test -n "$LEX"; then
5214 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_LEX="$ac_prog"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test -n "$LEX"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5236 $as_echo "$LEX" >&6; }
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 test -n "$LEX" && break
5245 test -n "$LEX" || LEX=":"
5247 if test "x$LEX" != "x:"; then
5248 cat >conftest.l <<_ACEOF
5254 e { yyless (input () != 0); }
5255 f { unput (yytext[0]); }
5256 . { BEGIN INITIAL; }
5258 #ifdef YYTEXT_POINTER
5259 extern char *yytext;
5264 return ! yylex () + ! yywrap ();
5267 { { ac_try="$LEX conftest.l"
5269 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
5270 *) ac_try_echo
=$ac_try;;
5272 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5273 $as_echo "$ac_try_echo"; } >&5
5274 (eval "$LEX conftest.l") 2>&5
5276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5277 test $ac_status = 0; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5279 $as_echo_n "checking lex output file root... " >&6; }
5280 if ${ac_cv_prog_lex_root+:} false
; then :
5281 $as_echo_n "(cached) " >&6
5284 if test -f lex.yy.c
; then
5285 ac_cv_prog_lex_root
=lex.yy
5286 elif test -f lexyy.c
; then
5287 ac_cv_prog_lex_root
=lexyy
5289 as_fn_error $?
"cannot find output from $LEX; giving up" "$LINENO" 5
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5293 $as_echo "$ac_cv_prog_lex_root" >&6; }
5294 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5296 if test -z "${LEXLIB+set}"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5298 $as_echo_n "checking lex library... " >&6; }
5299 if ${ac_cv_lib_lex+:} false
; then :
5300 $as_echo_n "(cached) " >&6
5304 ac_cv_lib_lex
='none needed'
5305 for ac_lib
in '' -lfl -ll; do
5306 LIBS
="$ac_lib $ac_save_LIBS"
5307 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 `cat $LEX_OUTPUT_ROOT.c`
5311 if ac_fn_c_try_link
"$LINENO"; then :
5312 ac_cv_lib_lex
=$ac_lib
5314 rm -f core conftest.err conftest.
$ac_objext \
5315 conftest
$ac_exeext conftest.
$ac_ext
5316 test "$ac_cv_lib_lex" != 'none needed' && break
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5322 $as_echo "$ac_cv_lib_lex" >&6; }
5323 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB
=$ac_cv_lib_lex
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5328 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5329 if ${ac_cv_prog_lex_yytext_pointer+:} false
; then :
5330 $as_echo_n "(cached) " >&6
5332 # POSIX says lex can declare yytext either as a pointer or an array; the
5333 # default is implementation-dependent. Figure out which it is, since
5334 # not all implementations provide the %pointer and %array declarations.
5335 ac_cv_prog_lex_yytext_pointer
=no
5337 LIBS
="$LEXLIB $ac_save_LIBS"
5338 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h. */
5341 #define YYTEXT_POINTER 1
5342 `cat $LEX_OUTPUT_ROOT.c`
5344 if ac_fn_c_try_link
"$LINENO"; then :
5345 ac_cv_prog_lex_yytext_pointer
=yes
5347 rm -f core conftest.err conftest.
$ac_objext \
5348 conftest
$ac_exeext conftest.
$ac_ext
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5353 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5354 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5356 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5359 rm -f conftest.l
$LEX_OUTPUT_ROOT.c
5363 if test "$LEX" = ":"; then
5364 as_fn_error $?
"could not locate a suitable lexical generator, install flex or lex." "$LINENO" 5
5367 # Check whether --enable-fhs-paths was given.
5368 if test "${enable_fhs_paths+set}" = set; then :
5369 enableval
=$enable_fhs_paths;
5371 if test "$libexecdir" = '${exec_prefix}/libexec' && \
5372 test "$localstatedir" = '${prefix}/var' && \
5373 test "$libdir" = '${exec_prefix}/lib'; then :
5376 enable_fhs_paths
=yes
5381 if test "x$enable_fhs_paths" = "xyes"; then :
5382 pkglibexecdir
='${libexecdir}/${PACKAGE_TARNAME}'
5383 rundir
=${rundir-'${prefix}/run'}
5384 pkgrundir
='${rundir}/${PACKAGE_TARNAME}'
5385 pkglocalstatedir
='${localstatedir}/${PACKAGE_TARNAME}'
5387 libexecdir
='${bindir}'
5388 pkglibexecdir
='${libexecdir}'
5389 rundir
='${sysconfdir}'
5390 pkgrundir
='${rundir}'
5391 localstatedir
='${prefix}'
5392 pkglocalstatedir
='${sysconfdir}'
5394 pkglibdir
='${libdir}/${PACKAGE_TARNAME}'
5400 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5401 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5402 last_ac_define_dir
=`eval echo $pkglocalstatedir`
5403 ac_define_dir
=`eval echo $last_ac_define_dir`
5404 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5405 last_ac_define_dir
="$ac_define_dir"
5406 ac_define_dir
=`eval echo $last_ac_define_dir`
5408 PKGLOCALSTATEDIR
="$ac_define_dir"
5411 cat >>confdefs.h
<<_ACEOF
5412 #define PKGLOCALSTATEDIR "$ac_define_dir"
5418 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
5419 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5420 last_ac_define_dir
=`eval echo $pkglibexecdir`
5421 ac_define_dir
=`eval echo $last_ac_define_dir`
5422 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
5423 last_ac_define_dir
="$ac_define_dir"
5424 ac_define_dir
=`eval echo $last_ac_define_dir`
5426 PKGLIBEXECDIR
="$ac_define_dir"
5429 cat >>confdefs.h
<<_ACEOF
5430 #define PKGLIBEXECDIR "$ac_define_dir"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5436 $as_echo_n "checking for ANSI C header files... " >&6; }
5437 if ${ac_cv_header_stdc+:} false
; then :
5438 $as_echo_n "(cached) " >&6
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5455 if ac_fn_c_try_compile
"$LINENO"; then :
5456 ac_cv_header_stdc
=yes
5458 ac_cv_header_stdc
=no
5460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5462 if test $ac_cv_header_stdc = yes; then
5463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5470 $EGREP "memchr" >/dev
/null
2>&1; then :
5473 ac_cv_header_stdc
=no
5479 if test $ac_cv_header_stdc = yes; then
5480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5487 $EGREP "free" >/dev
/null
2>&1; then :
5490 ac_cv_header_stdc
=no
5496 if test $ac_cv_header_stdc = yes; then
5497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5498 if test "$cross_compiling" = yes; then :
5501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5502 /* end confdefs.h. */
5505 #if ((' ' & 0x0FF) == 0x020)
5506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5509 # define ISLOWER(c) \
5510 (('a' <= (c) && (c) <= 'i') \
5511 || ('j' <= (c) && (c) <= 'r') \
5512 || ('s' <= (c) && (c) <= 'z'))
5513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5521 for (i = 0; i < 256; i++)
5522 if (XOR (islower (i), ISLOWER (i))
5523 || toupper (i) != TOUPPER (i))
5528 if ac_fn_c_try_run
"$LINENO"; then :
5531 ac_cv_header_stdc
=no
5533 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5534 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5540 $as_echo "$ac_cv_header_stdc" >&6; }
5541 if test $ac_cv_header_stdc = yes; then
5543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5548 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
5550 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5552 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5553 cat >>confdefs.h
<<_ACEOF
5554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5564 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5565 if ${ac_cv_c_const+:} false
; then :
5566 $as_echo_n "(cached) " >&6
5568 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5574 /* FIXME: Include the comments suggested by Paul. */
5576 /* Ultrix mips cc rejects this. */
5577 typedef int charset[2];
5579 /* SunOS 4.1.1 cc rejects this. */
5580 char const *const *pcpcc;
5582 /* NEC SVR4.0.2 mips cc rejects this. */
5583 struct point {int x, y;};
5584 static struct point const zero = {0,0};
5585 /* AIX XL C 1.02.0.0 rejects this.
5586 It does not let you subtract one const X* pointer from another in
5587 an arm of an if-expression whose if-part is not a constant
5589 const char *g = "string";
5590 pcpcc = &g + (g ? g-g : 0);
5591 /* HPUX 7.0 cc rejects these. */
5593 ppc = (char**) pcpcc;
5594 pcpcc = (char const *const *) ppc;
5595 { /* SCO 3.2v4 cc rejects this. */
5597 char const *s = 0 ? (char *) 0 : (char const *) 0;
5602 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5604 const int *foo = &x[0];
5607 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5608 typedef const int *iptr;
5612 { /* AIX XL C 1.02.0.0 rejects this saying
5613 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5614 struct s { int j; const int *ap[3]; };
5615 struct s *b; b->j = 5;
5617 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5621 return !cs[0] && !zero.x;
5628 if ac_fn_c_try_compile
"$LINENO"; then :
5633 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5636 $as_echo "$ac_cv_c_const" >&6; }
5637 if test $ac_cv_c_const = no
; then
5639 $as_echo "#define const /**/" >>confdefs.h
5643 if test "$ac_cv_header_machine_endian_h" = "no" ; then
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5645 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5646 if ${ac_cv_c_bigendian+:} false
; then :
5647 $as_echo_n "(cached) " >&6
5649 ac_cv_c_bigendian
=unknown
5650 # See if we're dealing with a universal compiler.
5651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #ifndef __APPLE_CC__
5654 not a universal capable compiler
5659 if ac_fn_c_try_compile
"$LINENO"; then :
5661 # Check for potential -arch flags. It is not universal unless
5662 # there are at least two -arch flags with different values.
5665 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5666 if test -n "$ac_prev"; then
5668 i?
86 | x86_64
| ppc
| ppc64
)
5669 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5672 ac_cv_c_bigendian
=universal
5678 elif test "x$ac_word" = "x-arch"; then
5683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5684 if test $ac_cv_c_bigendian = unknown
; then
5685 # See if sys/param.h defines the BYTE_ORDER macro.
5686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 #include <sys/types.h>
5689 #include <sys/param.h>
5694 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5695 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5704 if ac_fn_c_try_compile
"$LINENO"; then :
5705 # It does; now see whether it defined to BIG_ENDIAN or not.
5706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <sys/types.h>
5709 #include <sys/param.h>
5714 #if BYTE_ORDER != BIG_ENDIAN
5722 if ac_fn_c_try_compile
"$LINENO"; then :
5723 ac_cv_c_bigendian
=yes
5725 ac_cv_c_bigendian
=no
5727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5729 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5731 if test $ac_cv_c_bigendian = unknown
; then
5732 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5740 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5748 if ac_fn_c_try_compile
"$LINENO"; then :
5749 # It does; now see whether it defined to _BIG_ENDIAN or not.
5750 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5765 if ac_fn_c_try_compile
"$LINENO"; then :
5766 ac_cv_c_bigendian
=yes
5768 ac_cv_c_bigendian
=no
5770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5772 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5774 if test $ac_cv_c_bigendian = unknown
; then
5775 # Compile a test program.
5776 if test "$cross_compiling" = yes; then :
5777 # Try to guess by grepping values from an object file.
5778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780 short int ascii_mm[] =
5781 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5782 short int ascii_ii[] =
5783 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5784 int use_ascii (int i) {
5785 return ascii_mm[i] + ascii_ii[i];
5787 short int ebcdic_ii[] =
5788 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5789 short int ebcdic_mm[] =
5790 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5791 int use_ebcdic (int i) {
5792 return ebcdic_mm[i] + ebcdic_ii[i];
5799 return use_ascii (foo) == use_ebcdic (foo);
5804 if ac_fn_c_try_compile
"$LINENO"; then :
5805 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5806 ac_cv_c_bigendian
=yes
5808 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5809 if test "$ac_cv_c_bigendian" = unknown
; then
5810 ac_cv_c_bigendian
=no
5812 # finding both strings is unlikely to happen, but who knows?
5813 ac_cv_c_bigendian
=unknown
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 $ac_includes_default
5826 /* Are we little or big endian? From Harbison&Steele. */
5830 char c[sizeof (long int)];
5833 return u.c[sizeof (long int) - 1] == 1;
5839 if ac_fn_c_try_run
"$LINENO"; then :
5840 ac_cv_c_bigendian
=no
5842 ac_cv_c_bigendian
=yes
5844 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5845 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5851 $as_echo "$ac_cv_c_bigendian" >&6; }
5852 case $ac_cv_c_bigendian in #(
5854 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5860 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5864 as_fn_error $?
"unknown endianness
5865 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5869 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5870 if test "x$ac_cv_type_pid_t" = xyes
; then :
5874 cat >>confdefs.h
<<_ACEOF
5880 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5881 if test "x$ac_cv_type_size_t" = xyes
; then :
5885 cat >>confdefs.h
<<_ACEOF
5886 #define size_t unsigned int
5891 # The cast to long int works around a bug in the HP C Compiler
5892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5894 # This bug is HP SR number 8606223364.
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5896 $as_echo_n "checking size of short... " >&6; }
5897 if ${ac_cv_sizeof_short+:} false
; then :
5898 $as_echo_n "(cached) " >&6
5900 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5903 if test "$ac_cv_type_short" = yes; then
5904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5906 as_fn_error
77 "cannot compute sizeof (short)
5907 See \`config.log' for more details" "$LINENO" 5; }
5909 ac_cv_sizeof_short
=0
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5915 $as_echo "$ac_cv_sizeof_short" >&6; }
5919 cat >>confdefs.h
<<_ACEOF
5920 #define SIZEOF_SHORT $ac_cv_sizeof_short
5924 # The cast to long int works around a bug in the HP C Compiler
5925 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5926 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5927 # This bug is HP SR number 8606223364.
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5929 $as_echo_n "checking size of int... " >&6; }
5930 if ${ac_cv_sizeof_int+:} false
; then :
5931 $as_echo_n "(cached) " >&6
5933 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5936 if test "$ac_cv_type_int" = yes; then
5937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5939 as_fn_error
77 "cannot compute sizeof (int)
5940 See \`config.log' for more details" "$LINENO" 5; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5948 $as_echo "$ac_cv_sizeof_int" >&6; }
5952 cat >>confdefs.h
<<_ACEOF
5953 #define SIZEOF_INT $ac_cv_sizeof_int
5957 # The cast to long int works around a bug in the HP C Compiler
5958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5960 # This bug is HP SR number 8606223364.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5962 $as_echo_n "checking size of long... " >&6; }
5963 if ${ac_cv_sizeof_long+:} false
; then :
5964 $as_echo_n "(cached) " >&6
5966 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5969 if test "$ac_cv_type_long" = yes; then
5970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5972 as_fn_error
77 "cannot compute sizeof (long)
5973 See \`config.log' for more details" "$LINENO" 5; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5981 $as_echo "$ac_cv_sizeof_long" >&6; }
5985 cat >>confdefs.h
<<_ACEOF
5986 #define SIZEOF_LONG $ac_cv_sizeof_long
5990 # The cast to long int works around a bug in the HP C Compiler
5991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993 # This bug is HP SR number 8606223364.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5995 $as_echo_n "checking size of long long... " >&6; }
5996 if ${ac_cv_sizeof_long_long+:} false
; then :
5997 $as_echo_n "(cached) " >&6
5999 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
6002 if test "$ac_cv_type_long_long" = yes; then
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 as_fn_error
77 "cannot compute sizeof (long long)
6006 See \`config.log' for more details" "$LINENO" 5; }
6008 ac_cv_sizeof_long_long
=0
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
6014 $as_echo "$ac_cv_sizeof_long_long" >&6; }
6018 cat >>confdefs.h
<<_ACEOF
6019 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6026 $as_echo_n "checking for library containing socket... " >&6; }
6027 if ${ac_cv_search_socket+:} false
; then :
6028 $as_echo_n "(cached) " >&6
6030 ac_func_search_save_LIBS
=$LIBS
6031 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6034 /* Override any GCC internal prototype to avoid an error.
6035 Use char because int might match the return type of a GCC
6036 builtin and then its argument prototype would still apply. */
6049 for ac_lib
in '' socket
; do
6050 if test -z "$ac_lib"; then
6051 ac_res
="none required"
6054 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6056 if ac_fn_c_try_link
"$LINENO"; then :
6057 ac_cv_search_socket
=$ac_res
6059 rm -f core conftest.err conftest.
$ac_objext \
6061 if ${ac_cv_search_socket+:} false
; then :
6065 if ${ac_cv_search_socket+:} false
; then :
6068 ac_cv_search_socket
=no
6071 LIBS
=$ac_func_search_save_LIBS
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6074 $as_echo "$ac_cv_search_socket" >&6; }
6075 ac_res
=$ac_cv_search_socket
6076 if test "$ac_res" != no
; then :
6077 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6080 as_fn_error $?
"You have no socket()! Aborting." "$LINENO" 5
6084 if test x
"$SUN" = xyes
; then
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
6086 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
6087 if ${ac_cv_search_inet_ntoa+:} false
; then :
6088 $as_echo_n "(cached) " >&6
6090 ac_func_search_save_LIBS
=$LIBS
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6094 /* Override any GCC internal prototype to avoid an error.
6095 Use char because int might match the return type of a GCC
6096 builtin and then its argument prototype would still apply. */
6104 return inet_ntoa ();
6109 for ac_lib
in '' nsl
; do
6110 if test -z "$ac_lib"; then
6111 ac_res
="none required"
6114 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6116 if ac_fn_c_try_link
"$LINENO"; then :
6117 ac_cv_search_inet_ntoa
=$ac_res
6119 rm -f core conftest.err conftest.
$ac_objext \
6121 if ${ac_cv_search_inet_ntoa+:} false
; then :
6125 if ${ac_cv_search_inet_ntoa+:} false
; then :
6128 ac_cv_search_inet_ntoa
=no
6131 LIBS
=$ac_func_search_save_LIBS
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
6134 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
6135 ac_res
=$ac_cv_search_inet_ntoa
6136 if test "$ac_res" != no
; then :
6137 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6140 as_fn_error $?
"libnsl not found! Aborting." "$LINENO" 5
6145 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6146 #include <sys/socket.h>
6148 if test "x$ac_cv_type_socklen_t" = xyes
; then :
6152 $as_echo "#define socklen_t unsigned int" >>confdefs.h
6157 # Check whether --enable-ipv6 was given.
6158 if test "${enable_ipv6+set}" = set; then :
6159 enableval
=$enable_ipv6; ipv6
=$enableval
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
6166 $as_echo_n "checking for library containing crypt... " >&6; }
6167 if ${ac_cv_search_crypt+:} false
; then :
6168 $as_echo_n "(cached) " >&6
6170 ac_func_search_save_LIBS
=$LIBS
6171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6172 /* end confdefs.h. */
6174 /* Override any GCC internal prototype to avoid an error.
6175 Use char because int might match the return type of a GCC
6176 builtin and then its argument prototype would still apply. */
6189 for ac_lib
in '' crypt descrypt
; do
6190 if test -z "$ac_lib"; then
6191 ac_res
="none required"
6194 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6196 if ac_fn_c_try_link
"$LINENO"; then :
6197 ac_cv_search_crypt
=$ac_res
6199 rm -f core conftest.err conftest.
$ac_objext \
6201 if ${ac_cv_search_crypt+:} false
; then :
6205 if ${ac_cv_search_crypt+:} false
; then :
6208 ac_cv_search_crypt
=no
6211 LIBS
=$ac_func_search_save_LIBS
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
6214 $as_echo "$ac_cv_search_crypt" >&6; }
6215 ac_res
=$ac_cv_search_crypt
6216 if test "$ac_res" != no
; then :
6217 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6222 CRYPT_LIB
=$ac_cv_search_crypt
6224 if test "$CRYPT_LIB" = "none required"; then
6226 elif test "$CRYPT_LIB" = no
; then
6232 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
6241 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
6242 if ${gcc_cv_header_string+:} false
; then :
6243 $as_echo_n "(cached) " >&6
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6249 #include <strings.h>
6251 if ac_fn_c_try_compile
"$LINENO"; then :
6252 gcc_cv_header_string
=yes
6254 gcc_cv_header_string
=no
6256 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
6260 $as_echo "$gcc_cv_header_string" >&6; }
6262 if test "$gcc_cv_header_string" = "yes"; then
6264 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6269 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6270 if ${ac_cv_c_bigendian+:} false
; then :
6271 $as_echo_n "(cached) " >&6
6273 ac_cv_c_bigendian
=unknown
6274 # See if we're dealing with a universal compiler.
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #ifndef __APPLE_CC__
6278 not a universal capable compiler
6283 if ac_fn_c_try_compile
"$LINENO"; then :
6285 # Check for potential -arch flags. It is not universal unless
6286 # there are at least two -arch flags with different values.
6289 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6290 if test -n "$ac_prev"; then
6292 i?
86 | x86_64
| ppc
| ppc64
)
6293 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6296 ac_cv_c_bigendian
=universal
6302 elif test "x$ac_word" = "x-arch"; then
6307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6308 if test $ac_cv_c_bigendian = unknown
; then
6309 # See if sys/param.h defines the BYTE_ORDER macro.
6310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <sys/types.h>
6313 #include <sys/param.h>
6318 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6319 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6328 if ac_fn_c_try_compile
"$LINENO"; then :
6329 # It does; now see whether it defined to BIG_ENDIAN or not.
6330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 #include <sys/types.h>
6333 #include <sys/param.h>
6338 #if BYTE_ORDER != BIG_ENDIAN
6346 if ac_fn_c_try_compile
"$LINENO"; then :
6347 ac_cv_c_bigendian
=yes
6349 ac_cv_c_bigendian
=no
6351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6355 if test $ac_cv_c_bigendian = unknown
; then
6356 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6364 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6372 if ac_fn_c_try_compile
"$LINENO"; then :
6373 # It does; now see whether it defined to _BIG_ENDIAN or not.
6374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6389 if ac_fn_c_try_compile
"$LINENO"; then :
6390 ac_cv_c_bigendian
=yes
6392 ac_cv_c_bigendian
=no
6394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6398 if test $ac_cv_c_bigendian = unknown
; then
6399 # Compile a test program.
6400 if test "$cross_compiling" = yes; then :
6401 # Try to guess by grepping values from an object file.
6402 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 short int ascii_mm[] =
6405 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6406 short int ascii_ii[] =
6407 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6408 int use_ascii (int i) {
6409 return ascii_mm[i] + ascii_ii[i];
6411 short int ebcdic_ii[] =
6412 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6413 short int ebcdic_mm[] =
6414 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6415 int use_ebcdic (int i) {
6416 return ebcdic_mm[i] + ebcdic_ii[i];
6423 return use_ascii (foo) == use_ebcdic (foo);
6428 if ac_fn_c_try_compile
"$LINENO"; then :
6429 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6430 ac_cv_c_bigendian
=yes
6432 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6433 if test "$ac_cv_c_bigendian" = unknown
; then
6434 ac_cv_c_bigendian
=no
6436 # finding both strings is unlikely to happen, but who knows?
6437 ac_cv_c_bigendian
=unknown
6441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 $ac_includes_default
6450 /* Are we little or big endian? From Harbison&Steele. */
6454 char c[sizeof (long int)];
6457 return u.c[sizeof (long int) - 1] == 1;
6463 if ac_fn_c_try_run
"$LINENO"; then :
6464 ac_cv_c_bigendian
=no
6466 ac_cv_c_bigendian
=yes
6468 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6469 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6475 $as_echo "$ac_cv_c_bigendian" >&6; }
6476 case $ac_cv_c_bigendian in #(
6478 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6484 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6488 as_fn_error $?
"unknown endianness
6489 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6493 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
6494 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
6497 as_fn_error $?
"** stdarg.h could not be found - charybdis will not compile without it **" "$LINENO" 5
6503 if test "$ac_cv_c_compiler_gnu" = yes; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcpy" >&5
6506 $as_echo_n "checking for strlcpy... " >&6; }
6508 CFLAGS
="$CFLAGS -Wimplicit -Werror"
6510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6517 char *a = malloc(6);
6518 strlcpy(a, "hello", 6);
6524 if ac_fn_c_try_link
"$LINENO"; then :
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6526 $as_echo "yes" >&6; }
6528 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6535 rm -f core conftest.err conftest.
$ac_objext \
6536 conftest
$ac_exeext conftest.
$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat" >&5
6539 $as_echo_n "checking for strlcat... " >&6; }
6540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6541 /* end confdefs.h. */
6547 char *a = malloc(6);
6549 strlcat(a, "hello", 6);
6555 if ac_fn_c_try_link
"$LINENO"; then :
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6557 $as_echo "yes" >&6; }
6559 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6566 rm -f core conftest.err conftest.
$ac_objext \
6567 conftest
$ac_exeext conftest.
$ac_ext
6574 for ac_func
in strlcat strlcpy
6576 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6577 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6578 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6579 cat >>confdefs.h
<<_ACEOF
6580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6589 ac_fn_c_check_type
"$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "$ac_includes_default"
6590 if test "x$ac_cv_type_u_int32_t" = xyes
; then :
6594 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6595 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6598 $as_echo "#define u_int32_t uint32_t" >>confdefs.h
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
6604 $as_echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
6606 $as_echo "#define u_int32_t unsigned long int" >>confdefs.h
6615 ac_fn_c_check_type
"$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
6616 if test "x$ac_cv_type_u_int16_t" = xyes
; then :
6620 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6621 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6624 $as_echo "#define u_int16_t uint16_t" >>confdefs.h
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
6630 $as_echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
6632 $as_echo "#define u_int16_t unsigned short int" >>confdefs.h
6641 ac_fn_c_check_type
"$LINENO" "in_port_t" "ac_cv_type_in_port_t" "#include <sys/types.h>
6642 #include <netinet/in.h>
6644 if test "x$ac_cv_type_in_port_t" = xyes
; then :
6648 $as_echo "#define in_port_t u_int16_t" >>confdefs.h
6653 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
6654 #include <sys/socket.h>
6656 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
6660 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
6665 ac_fn_c_check_type
"$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6666 if test "x$ac_cv_type_uintptr_t" = xyes
; then :
6668 cat >>confdefs.h
<<_ACEOF
6669 #define HAVE_UINTPTR_T 1
6676 for ac_func
in socketpair vsnprintf mmap gettimeofday strdup strndup
6678 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6679 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6680 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6681 cat >>confdefs.h
<<_ACEOF
6682 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6689 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6690 # for constant arguments. Useless!
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6692 $as_echo_n "checking for working alloca.h... " >&6; }
6693 if ${ac_cv_working_alloca_h+:} false
; then :
6694 $as_echo_n "(cached) " >&6
6696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6702 char *p = (char *) alloca (2 * sizeof (int));
6708 if ac_fn_c_try_link
"$LINENO"; then :
6709 ac_cv_working_alloca_h
=yes
6711 ac_cv_working_alloca_h
=no
6713 rm -f core conftest.err conftest.
$ac_objext \
6714 conftest
$ac_exeext conftest.
$ac_ext
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6717 $as_echo "$ac_cv_working_alloca_h" >&6; }
6718 if test $ac_cv_working_alloca_h = yes; then
6720 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6725 $as_echo_n "checking for alloca... " >&6; }
6726 if ${ac_cv_func_alloca_works+:} false
; then :
6727 $as_echo_n "(cached) " >&6
6729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6730 /* end confdefs.h. */
6732 # define alloca __builtin_alloca
6735 # include <malloc.h>
6736 # define alloca _alloca
6738 # ifdef HAVE_ALLOCA_H
6739 # include <alloca.h>
6744 # ifndef alloca /* predefined by HP cc +Olibcalls */
6745 void *alloca (size_t);
6755 char *p = (char *) alloca (1);
6761 if ac_fn_c_try_link
"$LINENO"; then :
6762 ac_cv_func_alloca_works
=yes
6764 ac_cv_func_alloca_works
=no
6766 rm -f core conftest.err conftest.
$ac_objext \
6767 conftest
$ac_exeext conftest.
$ac_ext
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6770 $as_echo "$ac_cv_func_alloca_works" >&6; }
6772 if test $ac_cv_func_alloca_works = yes; then
6774 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6777 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6778 # that cause trouble. Some versions do not even contain alloca or
6779 # contain a buggy version. If you still want to use their alloca,
6780 # use ar to extract alloca.o from them instead of compiling alloca.c.
6782 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6784 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6788 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6789 if ${ac_cv_os_cray+:} false
; then :
6790 $as_echo_n "(cached) " >&6
6792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6793 /* end confdefs.h. */
6794 #if defined CRAY && ! defined CRAY2
6801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6802 $EGREP "webecray" >/dev
/null
2>&1; then :
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6811 $as_echo "$ac_cv_os_cray" >&6; }
6812 if test $ac_cv_os_cray = yes; then
6813 for ac_func
in _getb67 GETB67 getb67
; do
6814 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6815 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6816 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6818 cat >>confdefs.h
<<_ACEOF
6819 #define CRAY_STACKSEG_END $ac_func
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6829 $as_echo_n "checking stack direction for C alloca... " >&6; }
6830 if ${ac_cv_c_stack_direction+:} false
; then :
6831 $as_echo_n "(cached) " >&6
6833 if test "$cross_compiling" = yes; then :
6834 ac_cv_c_stack_direction
=0
6836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h. */
6838 $ac_includes_default
6840 find_stack_direction ()
6842 static char *addr = 0;
6847 return find_stack_direction ();
6850 return (&dummy > addr) ? 1 : -1;
6856 return find_stack_direction () < 0;
6859 if ac_fn_c_try_run
"$LINENO"; then :
6860 ac_cv_c_stack_direction
=1
6862 ac_cv_c_stack_direction
=-1
6864 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6865 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6870 $as_echo "$ac_cv_c_stack_direction" >&6; }
6871 cat >>confdefs.h
<<_ACEOF
6872 #define STACK_DIRECTION $ac_cv_c_stack_direction
6880 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
6881 if test "x$ac_cv_func_nanosleep" = xyes
; then :
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6885 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6886 if ${ac_cv_lib_rt_nanosleep+:} false
; then :
6887 $as_echo_n "(cached) " >&6
6889 ac_check_lib_save_LIBS
=$LIBS
6891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6892 /* end confdefs.h. */
6894 /* Override any GCC internal prototype to avoid an error.
6895 Use char because int might match the return type of a GCC
6896 builtin and then its argument prototype would still apply. */
6904 return nanosleep ();
6909 if ac_fn_c_try_link
"$LINENO"; then :
6910 ac_cv_lib_rt_nanosleep
=yes
6912 ac_cv_lib_rt_nanosleep
=no
6914 rm -f core conftest.err conftest.
$ac_objext \
6915 conftest
$ac_exeext conftest.
$ac_ext
6916 LIBS
=$ac_check_lib_save_LIBS
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
6919 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
6920 if test "x$ac_cv_lib_rt_nanosleep" = xyes
; then :
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
6924 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
6925 if ${ac_cv_lib_posix4_nanosleep+:} false
; then :
6926 $as_echo_n "(cached) " >&6
6928 ac_check_lib_save_LIBS
=$LIBS
6929 LIBS
="-lposix4 $LIBS"
6930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6933 /* Override any GCC internal prototype to avoid an error.
6934 Use char because int might match the return type of a GCC
6935 builtin and then its argument prototype would still apply. */
6943 return nanosleep ();
6948 if ac_fn_c_try_link
"$LINENO"; then :
6949 ac_cv_lib_posix4_nanosleep
=yes
6951 ac_cv_lib_posix4_nanosleep
=no
6953 rm -f core conftest.err conftest.
$ac_objext \
6954 conftest
$ac_exeext conftest.
$ac_ext
6955 LIBS
=$ac_check_lib_save_LIBS
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
6958 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
6959 if test "x$ac_cv_lib_posix4_nanosleep" = xyes
; then :
6960 LIBS
="${LIBS} -lposix4"
6968 if test x
$ac_cv_func_nanosleep = xno
&& test x
$ac_cv_lib_posix4_nanosleep = xno
&& test x
$ac_cv_lib_rt_nanosleep = xno
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"nanosleep not found..using select for delay\"" >&5
6971 $as_echo "\"nanosleep not found..using select for delay\"" >&6; }
6974 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
6979 $as_echo_n "checking for OpenSSL... " >&6; }
6980 # Check whether --enable-openssl was given.
6981 if test "${enable_openssl+set}" = set; then :
6982 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
6984 cf_enable_openssl
="auto"
6988 if test "$cf_enable_openssl" != "no" ; then
6989 cf_openssl_basedir
=""
6990 if test "$cf_enable_openssl" != "auto" &&
6991 test "$cf_enable_openssl" != "yes" ; then
6992 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
6994 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
6995 /usr
/local
/openssl
; do
6996 if test -f "${dirs}/include/openssl/opensslv.h" ; then
6997 cf_openssl_basedir
="${dirs}"
7003 if test ! -z "$cf_openssl_basedir"; then
7004 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
7005 SSL_INCLUDES
="-I${cf_openssl_basedir}/include"
7006 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
7008 cf_openssl_basedir
=""
7011 if test -f "/usr/include/openssl/opensslv.h" ; then
7012 cf_openssl_basedir
="/usr"
7016 if test ! -z "$cf_openssl_basedir"; then
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
7018 $as_echo "$cf_openssl_basedir" >&6; }
7019 cf_enable_openssl
="yes"
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
7022 $as_echo "not found. Specify a correct path?" >&6; }
7023 cf_enable_openssl
="no"
7025 unset cf_openssl_basedir
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7028 $as_echo "disabled" >&6; }
7031 save_CPPFLAGS
="$CPPFLAGS"
7032 CPPFLAGS
="$CPPFLAGS $SSL_INCLUDES"
7034 LIBS
="$LIBS $SSL_LIBS"
7035 if test "$cf_enable_openssl" != no
; then
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.6 or above" >&5
7037 $as_echo_n "checking for OpenSSL 0.9.6 or above... " >&6; }
7038 if test "$cross_compiling" = yes; then :
7039 cf_openssl_version_ok
=no
7041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 #include <openssl/opensslv.h>
7048 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
7049 exit(0); else exit(1);
7054 if ac_fn_c_try_run
"$LINENO"; then :
7055 cf_openssl_version_ok
=yes
7057 cf_openssl_version_ok
=no
7059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7064 if test "$cf_openssl_version_ok" = yes; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
7066 $as_echo "found" >&6; }
7071 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
7073 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
7074 if ${ac_cv_lib_crypto_RSA_free+:} false
; then :
7075 $as_echo_n "(cached) " >&6
7077 ac_check_lib_save_LIBS
=$LIBS
7078 LIBS
="-lcrypto $LIBS"
7079 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7082 /* Override any GCC internal prototype to avoid an error.
7083 Use char because int might match the return type of a GCC
7084 builtin and then its argument prototype would still apply. */
7097 if ac_fn_c_try_link
"$LINENO"; then :
7098 ac_cv_lib_crypto_RSA_free
=yes
7100 ac_cv_lib_crypto_RSA_free
=no
7102 rm -f core conftest.err conftest.
$ac_objext \
7103 conftest
$ac_exeext conftest.
$ac_ext
7104 LIBS
=$ac_check_lib_save_LIBS
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
7107 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
7108 if test "x$ac_cv_lib_crypto_RSA_free" = xyes
; then :
7109 cat >>confdefs.h
<<_ACEOF
7110 #define HAVE_LIBCRYPTO 1
7113 LIBS
="-lcrypto $LIBS"
7117 SSL_LIBS
="$SSL_LIBS -lcrypto"
7118 SSL_SRCS_ENABLE
='$(SSL_SRCS)'
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
7121 $as_echo "no - OpenSSL support disabled" >&6; }
7125 CPPFLAGS
="$save_CPPFLAGS"
7132 # Check whether --with-zlib-path was given.
7133 if test "${with_zlib_path+set}" = set; then :
7134 withval
=$with_zlib_path; LIBS
="$LIBS -L$withval"
7138 # Check whether --enable-zlib was given.
7139 if test "${enable_zlib+set}" = set; then :
7140 enableval
=$enable_zlib; zlib
=$enableval
7146 if test "$zlib" = yes; then
7148 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7149 if test "x$ac_cv_header_zlib_h" = xyes
; then :
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
7152 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
7153 if ${ac_cv_lib_z_zlibVersion+:} false
; then :
7154 $as_echo_n "(cached) " >&6
7156 ac_check_lib_save_LIBS
=$LIBS
7158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7161 /* Override any GCC internal prototype to avoid an error.
7162 Use char because int might match the return type of a GCC
7163 builtin and then its argument prototype would still apply. */
7167 char zlibVersion ();
7171 return zlibVersion ();
7176 if ac_fn_c_try_link
"$LINENO"; then :
7177 ac_cv_lib_z_zlibVersion
=yes
7179 ac_cv_lib_z_zlibVersion
=no
7181 rm -f core conftest.err conftest.
$ac_objext \
7182 conftest
$ac_exeext conftest.
$ac_ext
7183 LIBS
=$ac_check_lib_save_LIBS
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
7186 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
7187 if test "x$ac_cv_lib_z_zlibVersion" = xyes
; then :
7192 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7209 # Check whether --enable-ports was given.
7210 if test "${enable_ports+set}" = set; then :
7211 enableval
=$enable_ports; if test $enableval = yes; then
7212 SELECT_TYPE_EXPLICIT
="ports"
7220 # Check whether --enable-poll was given.
7221 if test "${enable_poll+set}" = set; then :
7222 enableval
=$enable_poll; if test $enableval = yes; then
7223 SELECT_TYPE_EXPLICIT
="poll"
7231 # Check whether --enable-select was given.
7232 if test "${enable_select+set}" = set; then :
7233 enableval
=$enable_select; if test $enableval = yes; then
7234 SELECT_TYPE_EXPLICIT
="select"
7242 # Check whether --enable-kqueue was given.
7243 if test "${enable_kqueue+set}" = set; then :
7244 enableval
=$enable_kqueue; if test $enableval = yes; then
7245 SELECT_TYPE_EXPLICIT
="kqueue"
7253 # Check whether --enable-epoll was given.
7254 if test "${enable_epoll+set}" = set; then :
7255 enableval
=$enable_epoll; if test $enableval = yes; then
7256 SELECT_TYPE_EXPLICIT
="epoll"
7257 for ac_func
in epoll_ctl
7259 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7260 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7261 cat >>confdefs.h
<<_ACEOF
7262 #define HAVE_EPOLL_CTL 1
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify confdir" >&5
7279 $as_echo_n "checking whether to modify confdir... " >&6; }
7281 # Check whether --with-confdir was given.
7282 if test "${with_confdir+set}" = set; then :
7283 withval
=$with_confdir; confdir
=`echo $withval | sed 's/\/$//'`
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7285 $as_echo "yes" >&6; }
7287 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7288 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7289 last_ac_define_dir
=`eval echo $confdir`
7290 ac_define_dir
=`eval echo $last_ac_define_dir`
7291 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7292 last_ac_define_dir
="$ac_define_dir"
7293 ac_define_dir
=`eval echo $last_ac_define_dir`
7295 ETC_DIR
="$ac_define_dir"
7298 cat >>confdefs.h
<<_ACEOF
7299 #define ETC_DIR "$ac_define_dir"
7306 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7307 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7308 eval echo \""$confdir"\"
7313 confdir
='${sysconfdir}'
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7317 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7318 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7319 last_ac_define_dir
=`eval echo $confdir`
7320 ac_define_dir
=`eval echo $last_ac_define_dir`
7321 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7322 last_ac_define_dir
="$ac_define_dir"
7323 ac_define_dir
=`eval echo $last_ac_define_dir`
7325 ETC_DIR
="$ac_define_dir"
7328 cat >>confdefs.h
<<_ACEOF
7329 #define ETC_DIR "$ac_define_dir"
7336 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7337 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7338 eval echo \""$confdir"\"
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify logdir" >&5
7348 $as_echo_n "checking whether to modify logdir... " >&6; }
7350 # Check whether --with-logdir was given.
7351 if test "${with_logdir+set}" = set; then :
7352 withval
=$with_logdir; logdir
=`echo $withval | sed 's/\/$//'`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7354 $as_echo "yes" >&6; }
7356 if test "x$enable_fhs_paths" = "xyes"; then :
7357 logdir
='${localstatedir}/log/${PACKAGE_TARNAME}'
7359 logdir
='${prefix}/logs'
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7366 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7367 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7368 last_ac_define_dir
=`eval echo $logdir`
7369 ac_define_dir
=`eval echo $last_ac_define_dir`
7370 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7371 last_ac_define_dir
="$ac_define_dir"
7372 ac_define_dir
=`eval echo $last_ac_define_dir`
7374 LOG_DIR
="$ac_define_dir"
7377 cat >>confdefs.h
<<_ACEOF
7378 #define LOG_DIR "$ac_define_dir"
7385 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7386 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7387 eval echo \""$logdir"\"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify helpdir" >&5
7394 $as_echo_n "checking whether to modify helpdir... " >&6; }
7396 # Check whether --with-helpdir was given.
7397 if test "${with_helpdir+set}" = set; then :
7398 withval
=$with_helpdir; helpdir
=`echo $withval | sed 's/\/$//'`
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7400 $as_echo "yes" >&6; }
7402 if test "x$enable_fhs_paths" = "xyes"; then :
7403 helpdir
='${datadir}/${PACKAGE_TARNAME}/help'
7405 helpdir
='${prefix}/help'
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7412 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7413 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7414 last_ac_define_dir
=`eval echo $helpdir`
7415 ac_define_dir
=`eval echo $last_ac_define_dir`
7416 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7417 last_ac_define_dir
="$ac_define_dir"
7418 ac_define_dir
=`eval echo $last_ac_define_dir`
7420 HELP_DIR
="$ac_define_dir"
7423 cat >>confdefs.h
<<_ACEOF
7424 #define HELP_DIR "$ac_define_dir"
7431 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7432 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7433 eval echo \""$helpdir"\"
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to modify moduledir" >&5
7440 $as_echo_n "checking whether to modify moduledir... " >&6; }
7442 # Check whether --with-moduledir was given.
7443 if test "${with_moduledir+set}" = set; then :
7444 withval
=$with_moduledir; moduledir
=`echo $withval | sed 's/\/$//'`
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7446 $as_echo "yes" >&6; }
7448 if test "x$enable_fhs_paths" = "xyes"; then :
7449 moduledir
='${pkglibdir}/modules'
7451 moduledir
='${prefix}/modules'
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7459 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7460 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7461 last_ac_define_dir
=`eval echo $moduledir`
7462 ac_define_dir
=`eval echo $last_ac_define_dir`
7463 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7464 last_ac_define_dir
="$ac_define_dir"
7465 ac_define_dir
=`eval echo $last_ac_define_dir`
7467 MODULE_DIR
="$ac_define_dir"
7470 cat >>confdefs.h
<<_ACEOF
7471 #define MODULE_DIR "$ac_define_dir"
7478 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7479 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
7480 eval echo \""$moduledir"\"
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or modify rundir" >&5
7487 $as_echo_n "checking whether or modify rundir... " >&6; }
7489 # Check whether --with-rundir was given.
7490 if test "${with_rundir+set}" = set; then :
7491 withval
=$with_rundir; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7492 $as_echo "yes" >&6; }
7493 rundir
=`echo $withval | sed 's/\/$//'`
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 if test "x$enable_fhs_paths" = "xyes"; then :
7498 rundir
='${prefix}/run'
7500 rundir
='${sysconfdir}'
7506 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
7507 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7508 last_ac_define_dir
=`eval echo $pkgrundir`
7509 ac_define_dir
=`eval echo $last_ac_define_dir`
7510 while test "x$last_ac_define_dir" != "x$ac_define_dir"; do
7511 last_ac_define_dir
="$ac_define_dir"
7512 ac_define_dir
=`eval echo $last_ac_define_dir`
7514 PKGRUNDIR
="$ac_define_dir"
7517 cat >>confdefs.h
<<_ACEOF
7518 #define PKGRUNDIR "$ac_define_dir"
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for program prefix" >&5
7524 $as_echo_n "checking for program prefix... " >&6; }
7526 # Check whether --with-program-prefix was given.
7527 if test "${with_program_prefix+set}" = set; then :
7528 withval
=$with_program_prefix; test "x$with_program_prefix" = "xno" && with_program_prefix
=
7530 with_program_prefix
=
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$with_program_prefix\"" >&5
7534 $as_echo "\"$with_program_prefix\"" >&6; }
7535 PROGRAM_PREFIX
="$with_program_prefix"
7538 cat >>confdefs.h
<<_ACEOF
7539 #define PROGRAM_PREFIX "$with_program_prefix"
7543 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
7544 SELECT_TYPE
="$SELECT_TYPE_EXPLICIT";
7545 echo "Forcing $SELECT_TYPE to be enabled"
7548 if test ! "x$use_ports" = "xno"; then
7549 for ac_func
in port_getn
7551 ac_fn_c_check_func
"$LINENO" "port_getn" "ac_cv_func_port_getn"
7552 if test "x$ac_cv_func_port_getn" = xyes
; then :
7553 cat >>confdefs.h
<<_ACEOF
7554 #define HAVE_PORT_GETN 1
7562 if test "x$haveports" = "xyes" ; then
7567 if test ! "x$use_select" = "xno"; then
7568 for ac_func
in select
7570 ac_fn_c_check_func
"$LINENO" "select" "ac_cv_func_select"
7571 if test "x$ac_cv_func_select" = xyes
; then :
7572 cat >>confdefs.h
<<_ACEOF
7573 #define HAVE_SELECT 1
7581 if test "x$haveselect" = "xyes" ; then
7582 SELECT_TYPE
="select"
7586 if test ! "x$use_poll" = "xno"; then
7589 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
7590 if test "x$ac_cv_func_poll" = xyes
; then :
7591 cat >>confdefs.h
<<_ACEOF
7600 if test "x$havepoll" = "xyes" ; then
7605 if test ! "x$use_kqueue" = "xno"; then
7606 for ac_func
in kevent
7608 ac_fn_c_check_func
"$LINENO" "kevent" "ac_cv_func_kevent"
7609 if test "x$ac_cv_func_kevent" = xyes
; then :
7610 cat >>confdefs.h
<<_ACEOF
7611 #define HAVE_KEVENT 1
7619 if test "x$havekqueue" = "xyes" ; then
7620 SELECT_TYPE
="kqueue"
7624 if test ! "x$use_epoll" = "xno"; then
7625 for ac_func
in epoll_ctl
7627 ac_fn_c_check_func
"$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
7628 if test "x$ac_cv_func_epoll_ctl" = xyes
; then :
7629 cat >>confdefs.h
<<_ACEOF
7630 #define HAVE_EPOLL_CTL 1
7638 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7639 if test "x$haveepoll" = "xyes" ; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll support in kernel" >&5
7641 $as_echo_n "checking for epoll support in kernel... " >&6; }
7642 if test "$cross_compiling" = yes; then :
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7649 #include <sys/param.h>
7650 #include <sys/types.h>
7651 #include <sys/epoll.h>
7652 #include <sys/syscall.h>
7656 main(int argc, char **argv)
7660 epfd = epoll_create(256);
7661 return (epfd == -1 ? 1 : 0);
7664 if ac_fn_c_try_run
"$LINENO"; then :
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7666 $as_echo "yes" >&6; }
7668 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7684 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
7685 if test "x$haveepoll" = "xno" ; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
7687 $as_echo_n "checking for epoll system call... " >&6; }
7688 if test "$cross_compiling" = yes; then :
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7690 $as_echo "no" >&6; }
7692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7695 #include <sys/param.h>
7696 #include <sys/types.h>
7697 #include <sys/epoll.h>
7698 #include <sys/syscall.h>
7702 epoll_create(int size)
7704 return (syscall(__NR_epoll_create, size));
7708 main(int argc, char **argv)
7712 epfd = epoll_create(256);
7713 exit (epfd == -1 ? 1 : 0);
7716 if ac_fn_c_try_run
"$LINENO"; then :
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7718 $as_echo "yes" >&6; }
7720 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7727 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
7728 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
7738 if test -z "$SELECT_TYPE"; then
7739 as_fn_error $?
"Unable to find a usable IO interface" "$LINENO" 5
7742 echo "Using $SELECT_TYPE for select loop."
7745 cat >>confdefs.h
<<_ACEOF
7746 #define SELECT_TYPE "$SELECT_TYPE"
7753 # Check whether --enable-assert was given.
7754 if test "${enable_assert+set}" = set; then :
7755 enableval
=$enable_assert; assert
=$enableval
7761 if test "$assert" = no
; then
7763 $as_echo "#define NDEBUG 1" >>confdefs.h
7765 elif test "$assert" = soft
; then
7767 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
7770 $as_echo "#define NDEBUG 1" >>confdefs.h
7772 elif test "$assert" = yes; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want IO Debugging hooks" >&5
7777 $as_echo_n "checking if you want IO Debugging hooks... " >&6; }
7778 # Check whether --enable-iodebug was given.
7779 if test "${enable_iodebug+set}" = set; then :
7780 enableval
=$enable_iodebug; iodebug
=$enableval
7786 if test "$iodebug" = yes; then
7788 $as_echo "#define USE_IODEBUG_HOOKS 1" >>confdefs.h
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7791 $as_echo "yes" >&6; }
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
7799 $as_echo_n "checking if you want to do a profile build... " >&6; }
7800 # Check whether --enable-profile was given.
7801 if test "${enable_profile+set}" = set; then :
7802 enableval
=$enable_profile; profile
=$enableval
7808 if test "$profile" = yes; then
7809 if test "$ac_cv_c_compiler_gnu" = yes; then
7810 IRC_CFLAGS
="$IRC_CFLAGS -pg"
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg" >&5
7812 $as_echo "yes, adding -pg" >&6; }
7814 $as_echo "#define CHARYBDIS_PROFILE 1" >>confdefs.h
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
7818 $as_echo "no, profile builds only work with gcc" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7825 # Check whether --enable-balloc was given.
7826 if test "${enable_balloc+set}" = set; then :
7827 enableval
=$enable_balloc; balloc
=$enableval
7833 if test "$balloc" = no
; then
7835 $as_echo "#define NOBALLOC 1" >>confdefs.h
7839 # Check whether --enable-small-net was given.
7840 if test "${enable_small_net+set}" = set; then :
7841 enableval
=$enable_small_net; small_net
=$enableval
7847 if test "$small_net" = yes; then
7849 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
7852 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
7855 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
7858 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
7861 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
7864 $as_echo "#define PCLIENT_HEAP_SIZE 32" >>confdefs.h
7867 $as_echo "#define USER_HEAP_SIZE 128" >>confdefs.h
7870 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
7873 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
7876 $as_echo "#define LINEBUF_HEAP_SIZE 128" >>confdefs.h
7879 $as_echo "#define MEMBER_HEAP_SIZE 256" >>confdefs.h
7882 $as_echo "#define ND_HEAP_SIZE 128" >>confdefs.h
7885 $as_echo "#define CONFITEM_HEAP_SIZE 128" >>confdefs.h
7888 $as_echo "#define MONITOR_HEAP_SIZE 128" >>confdefs.h
7891 $as_echo "#define FD_HEAP_SIZE 128" >>confdefs.h
7894 $as_echo "#define AWAY_HEAP_SIZE 128" >>confdefs.h
7898 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
7901 $as_echo "#define CHANNEL_HEAP_SIZE 8192" >>confdefs.h
7904 $as_echo "#define BAN_HEAP_SIZE 4096" >>confdefs.h
7907 $as_echo "#define CLIENT_HEAP_SIZE 8192" >>confdefs.h
7910 $as_echo "#define LCLIENT_HEAP_SIZE 1024" >>confdefs.h
7913 $as_echo "#define PCLIENT_HEAP_SIZE 256" >>confdefs.h
7916 $as_echo "#define USER_HEAP_SIZE 8192" >>confdefs.h
7919 $as_echo "#define DNODE_HEAP_SIZE 8192" >>confdefs.h
7922 $as_echo "#define TOPIC_HEAP_SIZE 4096" >>confdefs.h
7925 $as_echo "#define LINEBUF_HEAP_SIZE 2048" >>confdefs.h
7928 $as_echo "#define MEMBER_HEAP_SIZE 32768" >>confdefs.h
7931 $as_echo "#define ND_HEAP_SIZE 512" >>confdefs.h
7934 $as_echo "#define CONFITEM_HEAP_SIZE 256" >>confdefs.h
7937 $as_echo "#define MONITOR_HEAP_SIZE 1024" >>confdefs.h
7940 $as_echo "#define FD_HEAP_SIZE 1024" >>confdefs.h
7943 $as_echo "#define AWAY_HEAP_SIZE 512" >>confdefs.h
7948 # Check whether --with-nicklen was given.
7949 if test "${with_nicklen+set}" = set; then :
7950 withval
=$with_nicklen;
7951 if ! expr "$withval" + 0 >/dev
/null
2>&1; then
7952 as_fn_error $?
"NICKLEN must be a numeric value" "$LINENO" 5
7954 if test $withval -ge 50; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
7957 $as_echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
7968 # Check whether --with-topiclen was given.
7969 if test "${with_topiclen+set}" = set; then :
7970 withval
=$with_topiclen;
7971 if test $withval -ge 390; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
7974 $as_echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
7985 cat >>confdefs.h
<<_ACEOF
7986 #define TOPICLEN ${TOPICLEN}
7990 cat >>confdefs.h
<<_ACEOF
7991 #define NICKLEN (${NICKLEN}+1)
7995 shared_modules
="yes"
7996 if test "$shared_modules" = yes; then
7997 if test "$CC" = tcc
-a "$TenDRA" = "no"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
7999 $as_echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
8004 if test "$shared_modules" = yes; then
8006 for ac_header
in dlfcn.h
8008 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8009 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8010 cat >>confdefs.h
<<_ACEOF
8011 #define HAVE_DLFCN_H 1
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
8019 $as_echo_n "checking for library containing shl_load... " >&6; }
8020 if ${ac_cv_search_shl_load+:} false
; then :
8021 $as_echo_n "(cached) " >&6
8023 ac_func_search_save_LIBS
=$LIBS
8024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8027 /* Override any GCC internal prototype to avoid an error.
8028 Use char because int might match the return type of a GCC
8029 builtin and then its argument prototype would still apply. */
8042 for ac_lib
in '' dld
; do
8043 if test -z "$ac_lib"; then
8044 ac_res
="none required"
8047 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8049 if ac_fn_c_try_link
"$LINENO"; then :
8050 ac_cv_search_shl_load
=$ac_res
8052 rm -f core conftest.err conftest.
$ac_objext \
8054 if ${ac_cv_search_shl_load+:} false
; then :
8058 if ${ac_cv_search_shl_load+:} false
; then :
8061 ac_cv_search_shl_load
=no
8064 LIBS
=$ac_func_search_save_LIBS
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
8067 $as_echo "$ac_cv_search_shl_load" >&6; }
8068 ac_res
=$ac_cv_search_shl_load
8069 if test "$ac_res" != no
; then :
8070 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8073 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
8076 MOD_TARGET
=hpux_shared
8077 SEDOBJ
="s/\.o/.sl/g"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
8082 $as_echo_n "checking for library containing dlopen... " >&6; }
8083 if ${ac_cv_search_dlopen+:} false
; then :
8084 $as_echo_n "(cached) " >&6
8086 ac_func_search_save_LIBS
=$LIBS
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8090 /* Override any GCC internal prototype to avoid an error.
8091 Use char because int might match the return type of a GCC
8092 builtin and then its argument prototype would still apply. */
8105 for ac_lib
in '' dl c_r
; do
8106 if test -z "$ac_lib"; then
8107 ac_res
="none required"
8110 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8112 if ac_fn_c_try_link
"$LINENO"; then :
8113 ac_cv_search_dlopen
=$ac_res
8115 rm -f core conftest.err conftest.
$ac_objext \
8117 if ${ac_cv_search_dlopen+:} false
; then :
8121 if ${ac_cv_search_dlopen+:} false
; then :
8124 ac_cv_search_dlopen
=no
8127 LIBS
=$ac_func_search_save_LIBS
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
8130 $as_echo "$ac_cv_search_dlopen" >&6; }
8131 ac_res
=$ac_cv_search_dlopen
8132 if test "$ac_res" != no
; then :
8133 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8136 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
8139 MOD_TARGET
=shared_modules
8140 SEDOBJ
="s/\.o/.so/g"
8141 if test "$AppleGCC" = yes; then
8142 for ac_header
in mach
-o/dyld.h
8144 ac_fn_c_check_header_mongrel
"$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
8145 if test "x$ac_cv_header_mach_o_dyld_h" = xyes
; then :
8146 cat >>confdefs.h
<<_ACEOF
8147 #define HAVE_MACH_O_DYLD_H 1
8155 ac_fn_c_check_func
"$LINENO" "dlsym" "ac_cv_func_dlsym"
8156 if test "x$ac_cv_func_dlsym" = xyes
; then :
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlsym is not available, shared modules disabled" >&5
8161 $as_echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
8166 for ac_func
in dlfunc
8168 ac_fn_c_check_func
"$LINENO" "dlfunc" "ac_cv_func_dlfunc"
8169 if test "x$ac_cv_func_dlfunc" = xyes
; then :
8170 cat >>confdefs.h
<<_ACEOF
8171 #define HAVE_DLFUNC 1
8190 cat >>confdefs.h
<<_ACEOF
8191 #define SHARED_SUFFIX "$SUFFIX"
8195 if test "$shared_modules" = yes; then
8196 # The GNU linker requires the -export-dynamic option to make
8197 # all symbols visible in the dynamic symbol table.
8198 hold_ldflags
=$LDFLAGS
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
8200 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
8201 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic -Werror"
8202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h. */
8213 if ac_fn_c_try_link
"$LINENO"; then :
8218 rm -f core conftest.err conftest.
$ac_objext \
8219 conftest
$ac_exeext conftest.
$ac_ext
8220 LDFLAGS
=$hold_ldflags
8222 if expr "`uname -s`" : ^IRIX
>/dev
/null
2>&1; then
8223 found
="no, IRIX ld uses -B,dynamic"
8224 LDFLAGS
="${LDFLAGS} -Wl,-B,dynamic"
8227 if expr "`uname -s`" : ^AIX
>/dev
/null
2>&1; then
8228 found
="no, AIX ld uses -G -brtl"
8229 LDFLAGS
="${LDFLAGS} -Wl,-G,-brtl"
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8233 $as_echo "$found" >&6; }
8235 if test "$found" = yes; then
8236 LDFLAGS
="${LDFLAGS} -Wl,-export-dynamic"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option to produce PIC" >&5
8240 $as_echo_n "checking for compiler option to produce PIC... " >&6; }
8241 if test "$SGS" = "yes"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
8243 $as_echo "SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
8244 PICFLAGS
="-KPIC -DPIC -G"
8247 if test "$AppleGCC" = "yes"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
8249 $as_echo "Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
8250 PICFLAGS
="-fno-common -bundle -flat_namespace -undefined suppress"
8252 if test "$HPUX" = "yes" -a "$CC" != gcc
; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: HP-UX cc: +z -r -q -n" >&5
8254 $as_echo "HP-UX cc: +z -r -q -n" >&6; }
8255 PICFLAGS
="+z -r -q -n -c"
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if +ESfic is required on this platform" >&5
8257 $as_echo_n "checking if +ESfic is required on this platform... " >&6; }
8259 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev
/null
; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8264 $as_echo "yes" >&6; }
8265 PICFLAGS
="$PICFLAGS +ESfic"
8268 LDFLAGS
="${LDFLAGS} -Wl,-E"
8270 if test "$Tru" = yes -a "$CC" != gcc
; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Tru64: -shared -expect_unresolved '*'" >&5
8272 $as_echo "Tru64: -shared -expect_unresolved '*'" >&6; }
8273 PICFLAGS
="-shared -expect_unresolved '*' "
8274 LDFLAGS
="-call_shared"
8276 if test -z "$PICFLAGS"; then
8277 if test "$ac_cv_c_compiler_gnu" = "yes"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gcc: -fPIC -DPIC -shared" >&5
8279 $as_echo "gcc: -fPIC -DPIC -shared" >&6; }
8280 PICFLAGS
="-fPIC -DPIC -shared"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 $as_echo "no" >&6; }
8289 # rpath, for finding libratbox.so at run time
8290 hold_ldflags
=$LDFLAGS
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -rpath flag" >&5
8292 $as_echo_n "checking for the ld -rpath flag... " >&6; }
8293 LDFLAGS
="${LDFLAGS} -Wl,-rpath=${libdir}"
8294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8305 if ac_fn_c_try_link
"$LINENO"; then :
8310 rm -f core conftest.err conftest.
$ac_objext \
8311 conftest
$ac_exeext conftest.
$ac_ext
8312 LDFLAGS
=$hold_ldflags
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
8314 $as_echo "$found" >&6; }
8315 if test "$found" = yes; then
8316 LDFLAGS
="${LDFLAGS} -Wl,-rpath=\${libdir}"
8319 # This must be down here, or it will mess up checks like the ones
8320 # for -Wl,-export-dynamic
8323 # Check whether --enable-warnings was given.
8324 if test "${enable_warnings+set}" = set; then :
8325 enableval
=$enable_warnings;
8326 IRC_CFLAGS
="$IRC_CFLAGS -O0"
8327 CFLAGS
="$IRC_CFLAGS"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wall" >&5
8331 $as_echo_n "checking GCC flag(s) -Wall... " >&6; }
8332 if test "${GCC-no}" = yes
8334 if ${charybdis_cv_c_gcc_w_all+:} false
; then :
8335 $as_echo_n "(cached) " >&6
8338 oldcflags
="${CFLAGS-}"
8339 CFLAGS
="${CFLAGS-} ${CWARNS} -Wall -Werror"
8340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8351 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8357 if ac_fn_c_try_compile
"$LINENO"; then :
8358 charybdis_cv_c_gcc_w_all
=yes
8360 charybdis_cv_c_gcc_w_all
=no
8362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8363 CFLAGS
="${oldcflags}"
8366 if test "x$charybdis_cv_c_gcc_w_all" = xyes
; then
8367 CWARNS
="${CWARNS}-Wall "
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8369 $as_echo "ok" >&6; }
8371 charybdis_cv_c_gcc_w_all
=''
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpointer-arith" >&5
8382 $as_echo_n "checking GCC flag(s) -Wpointer-arith... " >&6; }
8383 if test "${GCC-no}" = yes
8385 if ${charybdis_cv_c_gcc_w_pointer_arith+:} false
; then :
8386 $as_echo_n "(cached) " >&6
8389 oldcflags
="${CFLAGS-}"
8390 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
8391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8392 /* end confdefs.h. */
8402 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8408 if ac_fn_c_try_compile
"$LINENO"; then :
8409 charybdis_cv_c_gcc_w_pointer_arith
=yes
8411 charybdis_cv_c_gcc_w_pointer_arith
=no
8413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 CFLAGS
="${oldcflags}"
8417 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes
; then
8418 CWARNS
="${CWARNS}-Wpointer-arith "
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8420 $as_echo "ok" >&6; }
8422 charybdis_cv_c_gcc_w_pointer_arith
=''
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
8433 $as_echo_n "checking GCC flag(s) -Wimplicit -Wnested-externs... " >&6; }
8434 if test "${GCC-no}" = yes
8436 if ${charybdis_cv_c_gcc_w_implicit+:} false
; then :
8437 $as_echo_n "(cached) " >&6
8440 oldcflags
="${CFLAGS-}"
8441 CFLAGS
="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
8442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8453 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8459 if ac_fn_c_try_compile
"$LINENO"; then :
8460 charybdis_cv_c_gcc_w_implicit
=yes
8462 charybdis_cv_c_gcc_w_implicit
=no
8464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8465 CFLAGS
="${oldcflags}"
8468 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes
; then
8469 CWARNS
="${CWARNS}-Wimplicit -Wnested-externs "
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8471 $as_echo "ok" >&6; }
8473 charybdis_cv_c_gcc_w_implicit
=''
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8475 $as_echo "no" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-align" >&5
8484 $as_echo_n "checking GCC flag(s) -Wcast-align... " >&6; }
8485 if test "${GCC-no}" = yes
8487 if ${charybdis_cv_c_gcc_w_cast_align+:} false
; then :
8488 $as_echo_n "(cached) " >&6
8491 oldcflags
="${CFLAGS-}"
8492 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
8493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8504 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8510 if ac_fn_c_try_compile
"$LINENO"; then :
8511 charybdis_cv_c_gcc_w_cast_align
=yes
8513 charybdis_cv_c_gcc_w_cast_align
=no
8515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8516 CFLAGS
="${oldcflags}"
8519 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes
; then
8520 CWARNS
="${CWARNS}-Wcast-align "
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8522 $as_echo "ok" >&6; }
8524 charybdis_cv_c_gcc_w_cast_align
=''
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wcast-qual" >&5
8535 $as_echo_n "checking GCC flag(s) -Wcast-qual... " >&6; }
8536 if test "${GCC-no}" = yes
8538 if ${charybdis_cv_c_gcc_w_cast_qual+:} false
; then :
8539 $as_echo_n "(cached) " >&6
8542 oldcflags
="${CFLAGS-}"
8543 CFLAGS
="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
8544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8555 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8561 if ac_fn_c_try_compile
"$LINENO"; then :
8562 charybdis_cv_c_gcc_w_cast_qual
=yes
8564 charybdis_cv_c_gcc_w_cast_qual
=no
8566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8567 CFLAGS
="${oldcflags}"
8570 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes
; then
8571 CWARNS
="${CWARNS}-Wcast-qual "
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8573 $as_echo "ok" >&6; }
8575 charybdis_cv_c_gcc_w_cast_qual
=''
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wwrite-strings" >&5
8586 $as_echo_n "checking GCC flag(s) -Wwrite-strings... " >&6; }
8587 if test "${GCC-no}" = yes
8589 if ${charybdis_cv_c_gcc_w_write_strings+:} false
; then :
8590 $as_echo_n "(cached) " >&6
8593 oldcflags
="${CFLAGS-}"
8594 CFLAGS
="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
8595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8606 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8612 if ac_fn_c_try_compile
"$LINENO"; then :
8613 charybdis_cv_c_gcc_w_write_strings
=yes
8615 charybdis_cv_c_gcc_w_write_strings
=no
8617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8618 CFLAGS
="${oldcflags}"
8621 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes
; then
8622 CWARNS
="${CWARNS}-Wwrite-strings "
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8624 $as_echo "ok" >&6; }
8626 charybdis_cv_c_gcc_w_write_strings
=''
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
8637 $as_echo_n "checking GCC flag(s) -Werror-implicit-function-declaration... " >&6; }
8638 if test "${GCC-no}" = yes
8640 if ${charybdis_cv_c_gcc_w_error_implicit_function_declaration+:} false
; then :
8641 $as_echo_n "(cached) " >&6
8644 oldcflags
="${CFLAGS-}"
8645 CFLAGS
="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
8646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8657 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8663 if ac_fn_c_try_compile
"$LINENO"; then :
8664 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=yes
8666 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=no
8668 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8669 CFLAGS
="${oldcflags}"
8672 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes
; then
8673 CWARNS
="${CWARNS}-Werror-implicit-function-declaration "
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8675 $as_echo "ok" >&6; }
8677 charybdis_cv_c_gcc_w_error_implicit_function_declaration
=''
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8679 $as_echo "no" >&6; }
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
8688 $as_echo_n "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... " >&6; }
8689 if test "${GCC-no}" = yes
8691 if ${charybdis_cv_c_gcc_prototypes+:} false
; then :
8692 $as_echo_n "(cached) " >&6
8695 oldcflags
="${CFLAGS-}"
8696 CFLAGS
="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
8697 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8708 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8714 if ac_fn_c_try_compile
"$LINENO"; then :
8715 charybdis_cv_c_gcc_prototypes
=yes
8717 charybdis_cv_c_gcc_prototypes
=no
8719 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8720 CFLAGS
="${oldcflags}"
8723 if test "x$charybdis_cv_c_gcc_prototypes" = xyes
; then
8724 CWARNS
="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8726 $as_echo "ok" >&6; }
8728 charybdis_cv_c_gcc_prototypes
=''
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 $as_echo "no" >&6; }
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wparenthesis" >&5
8739 $as_echo_n "checking GCC flag(s) -Wparenthesis... " >&6; }
8740 if test "${GCC-no}" = yes
8742 if ${charybdis_cv_c_gcc_parenthesis+:} false
; then :
8743 $as_echo_n "(cached) " >&6
8746 oldcflags
="${CFLAGS-}"
8747 CFLAGS
="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
8748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8759 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8765 if ac_fn_c_try_compile
"$LINENO"; then :
8766 charybdis_cv_c_gcc_parenthesis
=yes
8768 charybdis_cv_c_gcc_parenthesis
=no
8770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8771 CFLAGS
="${oldcflags}"
8774 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes
; then
8775 CWARNS
="${CWARNS}-Wparenthesis "
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8777 $as_echo "ok" >&6; }
8779 charybdis_cv_c_gcc_parenthesis
=''
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8785 $as_echo "no" >&6; }
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -W -Wno-unused" >&5
8790 $as_echo_n "checking GCC flag(s) -W -Wno-unused... " >&6; }
8791 if test "${GCC-no}" = yes
8793 if ${charybdis_cv_c_gcc_w+:} false
; then :
8794 $as_echo_n "(cached) " >&6
8797 oldcflags
="${CFLAGS-}"
8798 CFLAGS
="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
8799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8810 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8816 if ac_fn_c_try_compile
"$LINENO"; then :
8817 charybdis_cv_c_gcc_w
=yes
8819 charybdis_cv_c_gcc_w
=no
8821 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8822 CFLAGS
="${oldcflags}"
8825 if test "x$charybdis_cv_c_gcc_w" = xyes
; then
8826 CWARNS
="${CWARNS}-W -Wno-unused "
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8828 $as_echo "ok" >&6; }
8830 charybdis_cv_c_gcc_w
=''
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8832 $as_echo "no" >&6; }
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wextra" >&5
8841 $as_echo_n "checking GCC flag(s) -Wextra... " >&6; }
8842 if test "${GCC-no}" = yes
8844 if ${charybdis_cv_c_gcc_w_extra+:} false
; then :
8845 $as_echo_n "(cached) " >&6
8848 oldcflags
="${CFLAGS-}"
8849 CFLAGS
="${CFLAGS-} ${CWARNS} -Wextra -Werror"
8850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h. */
8861 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8867 if ac_fn_c_try_compile
"$LINENO"; then :
8868 charybdis_cv_c_gcc_w_extra
=yes
8870 charybdis_cv_c_gcc_w_extra
=no
8872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8873 CFLAGS
="${oldcflags}"
8876 if test "x$charybdis_cv_c_gcc_w_extra" = xyes
; then
8877 CWARNS
="${CWARNS}-Wextra "
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8879 $as_echo "ok" >&6; }
8881 charybdis_cv_c_gcc_w_extra
=''
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wshadow" >&5
8892 $as_echo_n "checking GCC flag(s) -Wshadow... " >&6; }
8893 if test "${GCC-no}" = yes
8895 if ${charybdis_cv_c_gcc_w_shadow+:} false
; then :
8896 $as_echo_n "(cached) " >&6
8899 oldcflags
="${CFLAGS-}"
8900 CFLAGS
="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
8901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8912 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8918 if ac_fn_c_try_compile
"$LINENO"; then :
8919 charybdis_cv_c_gcc_w_shadow
=yes
8921 charybdis_cv_c_gcc_w_shadow
=no
8923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8924 CFLAGS
="${oldcflags}"
8927 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes
; then
8928 CWARNS
="${CWARNS}-Wshadow "
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8930 $as_echo "ok" >&6; }
8932 charybdis_cv_c_gcc_w_shadow
=''
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wmissing-noreturn" >&5
8943 $as_echo_n "checking GCC flag(s) -Wmissing-noreturn... " >&6; }
8944 if test "${GCC-no}" = yes
8946 if ${charybdis_cv_c_gcc_w_missing_noreturn+:} false
; then :
8947 $as_echo_n "(cached) " >&6
8950 oldcflags
="${CFLAGS-}"
8951 CFLAGS
="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
8952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8953 /* end confdefs.h. */
8963 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
8969 if ac_fn_c_try_compile
"$LINENO"; then :
8970 charybdis_cv_c_gcc_w_missing_noreturn
=yes
8972 charybdis_cv_c_gcc_w_missing_noreturn
=no
8974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8975 CFLAGS
="${oldcflags}"
8978 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes
; then
8979 CWARNS
="${CWARNS}-Wmissing-noreturn "
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8981 $as_echo "ok" >&6; }
8983 charybdis_cv_c_gcc_w_missing_noreturn
=''
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wundef" >&5
8994 $as_echo_n "checking GCC flag(s) -Wundef... " >&6; }
8995 if test "${GCC-no}" = yes
8997 if ${charybdis_cv_c_gcc_w_undef+:} false
; then :
8998 $as_echo_n "(cached) " >&6
9001 oldcflags
="${CFLAGS-}"
9002 CFLAGS
="${CFLAGS-} ${CWARNS} -Wundef -Werror"
9003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9014 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9020 if ac_fn_c_try_compile
"$LINENO"; then :
9021 charybdis_cv_c_gcc_w_undef
=yes
9023 charybdis_cv_c_gcc_w_undef
=no
9025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9026 CFLAGS
="${oldcflags}"
9029 if test "x$charybdis_cv_c_gcc_w_undef" = xyes
; then
9030 CWARNS
="${CWARNS}-Wundef "
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9032 $as_echo "ok" >&6; }
9034 charybdis_cv_c_gcc_w_undef
=''
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wpacked" >&5
9045 $as_echo_n "checking GCC flag(s) -Wpacked... " >&6; }
9046 if test "${GCC-no}" = yes
9048 if ${charybdis_cv_c_gcc_w_packed+:} false
; then :
9049 $as_echo_n "(cached) " >&6
9052 oldcflags
="${CFLAGS-}"
9053 CFLAGS
="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
9054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9065 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9071 if ac_fn_c_try_compile
"$LINENO"; then :
9072 charybdis_cv_c_gcc_w_packed
=yes
9074 charybdis_cv_c_gcc_w_packed
=no
9076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9077 CFLAGS
="${oldcflags}"
9080 if test "x$charybdis_cv_c_gcc_w_packed" = xyes
; then
9081 CWARNS
="${CWARNS}-Wpacked "
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9083 $as_echo "ok" >&6; }
9085 charybdis_cv_c_gcc_w_packed
=''
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wnested-externs" >&5
9096 $as_echo_n "checking GCC flag(s) -Wnested-externs... " >&6; }
9097 if test "${GCC-no}" = yes
9099 if ${charybdis_cv_c_gcc_w_nested_externs+:} false
; then :
9100 $as_echo_n "(cached) " >&6
9103 oldcflags
="${CFLAGS-}"
9104 CFLAGS
="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
9105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9116 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9122 if ac_fn_c_try_compile
"$LINENO"; then :
9123 charybdis_cv_c_gcc_w_nested_externs
=yes
9125 charybdis_cv_c_gcc_w_nested_externs
=no
9127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9128 CFLAGS
="${oldcflags}"
9131 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes
; then
9132 CWARNS
="${CWARNS}-Wnested-externs "
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9134 $as_echo "ok" >&6; }
9136 charybdis_cv_c_gcc_w_nested_externs
=''
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142 $as_echo "no" >&6; }
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
9147 $as_echo_n "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... " >&6; }
9148 if test "${GCC-no}" = yes
9150 if ${charybdis_cv_c_gcc_w_unused+:} false
; then :
9151 $as_echo_n "(cached) " >&6
9154 oldcflags
="${CFLAGS-}"
9155 CFLAGS
="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
9156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9167 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9173 if ac_fn_c_try_compile
"$LINENO"; then :
9174 charybdis_cv_c_gcc_w_unused
=yes
9176 charybdis_cv_c_gcc_w_unused
=no
9178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9179 CFLAGS
="${oldcflags}"
9182 if test "x$charybdis_cv_c_gcc_w_unused" = xyes
; then
9183 CWARNS
="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9185 $as_echo "ok" >&6; }
9187 charybdis_cv_c_gcc_w_unused
=''
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189 $as_echo "no" >&6; }
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wredundant-decls" >&5
9198 $as_echo_n "checking GCC flag(s) -Wredundant-decls... " >&6; }
9199 if test "${GCC-no}" = yes
9201 if ${charybdis_cv_c_gcc_w_redundant_decls+:} false
; then :
9202 $as_echo_n "(cached) " >&6
9205 oldcflags
="${CFLAGS-}"
9206 CFLAGS
="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
9207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9218 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9224 if ac_fn_c_try_compile
"$LINENO"; then :
9225 charybdis_cv_c_gcc_w_redundant_decls
=yes
9227 charybdis_cv_c_gcc_w_redundant_decls
=no
9229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9230 CFLAGS
="${oldcflags}"
9233 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes
; then
9234 CWARNS
="${CWARNS}-Wredundant-decls "
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9236 $as_echo "ok" >&6; }
9238 charybdis_cv_c_gcc_w_redundant_decls
=''
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240 $as_echo "no" >&6; }
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wfloat-equal" >&5
9249 $as_echo_n "checking GCC flag(s) -Wfloat-equal... " >&6; }
9250 if test "${GCC-no}" = yes
9252 if ${charybdis_cv_c_gcc_w_float_equal+:} false
; then :
9253 $as_echo_n "(cached) " >&6
9256 oldcflags
="${CFLAGS-}"
9257 CFLAGS
="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
9258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9269 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9275 if ac_fn_c_try_compile
"$LINENO"; then :
9276 charybdis_cv_c_gcc_w_float_equal
=yes
9278 charybdis_cv_c_gcc_w_float_equal
=no
9280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9281 CFLAGS
="${oldcflags}"
9284 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes
; then
9285 CWARNS
="${CWARNS}-Wfloat-equal "
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9287 $as_echo "ok" >&6; }
9289 charybdis_cv_c_gcc_w_float_equal
=''
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security" >&5
9300 $as_echo_n "checking GCC flag(s) -Wformat -Wformat-y2k -Wno-format-security... " >&6; }
9301 if test "${GCC-no}" = yes
9303 if ${charybdis_cv_c_gcc_w_format+:} false
; then :
9304 $as_echo_n "(cached) " >&6
9307 oldcflags
="${CFLAGS-}"
9308 CFLAGS
="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wno-format-security -Werror"
9309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9320 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
9326 if ac_fn_c_try_compile
"$LINENO"; then :
9327 charybdis_cv_c_gcc_w_format
=yes
9329 charybdis_cv_c_gcc_w_format
=no
9331 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9332 CFLAGS
="${oldcflags}"
9335 if test "x$charybdis_cv_c_gcc_w_format" = xyes
; then
9336 CWARNS
="${CWARNS}-Wformat -Wformat-y2k -Wno-format-security "
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9338 $as_echo "ok" >&6; }
9340 charybdis_cv_c_gcc_w_format
=''
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342 $as_echo "no" >&6; }
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9350 IRC_CFLAGS
="$CFLAGS"
9355 if test "$shared_modules" = no
; then
9357 MOD_TARGET
="libmodules.a"
9358 MODULES_LIBS
="../modules/libmodules.a"
9361 $as_echo "#define STATIC_MODULES 1" >>confdefs.h
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared module support has been disabled!" >&5
9364 $as_echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
9367 if test "$shared_modules" = yes; then
9369 ac_fn_c_check_func
"$LINENO" "nlist" "ac_cv_func_nlist"
9370 if test "x$ac_cv_func_nlist" = xyes
; then :
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -ldl" >&5
9374 $as_echo_n "checking for nlist in -ldl... " >&6; }
9375 if ${ac_cv_lib_dl_nlist+:} false
; then :
9376 $as_echo_n "(cached) " >&6
9378 ac_check_lib_save_LIBS
=$LIBS
9380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9398 if ac_fn_c_try_link
"$LINENO"; then :
9399 ac_cv_lib_dl_nlist
=yes
9401 ac_cv_lib_dl_nlist
=no
9403 rm -f core conftest.err conftest.
$ac_objext \
9404 conftest
$ac_exeext conftest.
$ac_ext
9405 LIBS
=$ac_check_lib_save_LIBS
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_nlist" >&5
9408 $as_echo "$ac_cv_lib_dl_nlist" >&6; }
9409 if test "x$ac_cv_lib_dl_nlist" = xyes
; then :
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nlist in -lelf" >&5
9413 $as_echo_n "checking for nlist in -lelf... " >&6; }
9414 if ${ac_cv_lib_elf_nlist+:} false
; then :
9415 $as_echo_n "(cached) " >&6
9417 ac_check_lib_save_LIBS
=$LIBS
9419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9437 if ac_fn_c_try_link
"$LINENO"; then :
9438 ac_cv_lib_elf_nlist
=yes
9440 ac_cv_lib_elf_nlist
=no
9442 rm -f core conftest.err conftest.
$ac_objext \
9443 conftest
$ac_exeext conftest.
$ac_ext
9444 LIBS
=$ac_check_lib_save_LIBS
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_nlist" >&5
9447 $as_echo "$ac_cv_lib_elf_nlist" >&6; }
9448 if test "x$ac_cv_lib_elf_nlist" = xyes
; then :
9459 ac_fn_c_check_header_mongrel
"$LINENO" "libelf/nlist.h" "ac_cv_header_libelf_nlist_h" "$ac_includes_default"
9460 if test "x$ac_cv_header_libelf_nlist_h" = xyes
; then :
9461 nlist_h
="libelf/nlist.h"
9465 ac_fn_c_check_header_mongrel
"$LINENO" "elf/nlist.h" "ac_cv_header_elf_nlist_h" "$ac_includes_default"
9466 if test "x$ac_cv_header_elf_nlist_h" = xyes
; then :
9467 nlist_h
="elf/nlist.h"
9471 ac_fn_c_check_header_mongrel
"$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
9472 if test "x$ac_cv_header_nlist_h" = xyes
; then :
9477 if test x
"$nlist_h" = "x"; then
9479 cat >>confdefs.h
<<_ACEOF
9480 #define SYMBOL_PREFIX ""
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra underscores prepended to symbol names" >&5
9485 $as_echo_n "checking for extra underscores prepended to symbol names... " >&6; }
9486 if ${symbol_underscores+:} false
; then :
9487 $as_echo_n "(cached) " >&6
9490 cat << EOF > conftest.c
9494 void _modinit(void);
9495 int main(int argc, char *argv[]) {
9499 /* fill the names in this way, so it'll work almost everywhere */
9500 nl[0].n_name = "_modinit";
9501 nl[1].n_name = "__modinit";
9502 nl[2].n_name = "___modinit";
9503 nl[3].n_name = "____modinit";
9504 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
9506 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
9507 for(i = 0; i < 4; i++) {
9508 if(nl[i].n_value != NULL)
9511 for(j = 0; j < i; j++)
9518 void _modinit(void) { return; }
9520 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c
$nlist_lib >/dev
/null
2>&1
9521 symbol_underscores
=`./conftest conftest`
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $symbol_underscores" >&5
9523 $as_echo "$symbol_underscores" >&6; }
9524 $RM -f conftest conftest.c
9529 cat >>confdefs.h
<<_ACEOF
9530 #define SYMBOL_PREFIX "${symbol_underscores}"
9536 IRC_CFLAGS
="$IRC_CFLAGS $CWARNS"
9551 if test "$prefix" = "NONE"; then
9553 cat >>confdefs.h
<<_ACEOF
9554 #define IRCD_PREFIX "$ac_default_prefix"
9561 prefix
=`echo $prefix | sed 's/\/$//'`
9563 cat >>confdefs.h
<<_ACEOF
9564 #define IRCD_PREFIX "$prefix"
9570 ac_config_files
="$ac_config_files Makefile bandb/Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile tools/genssl.sh doc/Makefile help/Makefile"
9572 ac_config_commands
="$ac_config_commands tools/genssl.sh_chmod"
9575 cat >confcache
<<\_ACEOF
9576 # This file is a shell script that caches the results of configure
9577 # tests run on this system so they can be shared between configure
9578 # scripts and configure runs, see configure's option --config-cache.
9579 # It is not useful on other systems. If it contains results you don't
9580 # want to keep, you may remove or edit it.
9582 # config.status only pays attention to the cache file if you give it
9583 # the --recheck option to rerun configure.
9585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9591 # The following way of writing the cache mishandles newlines in values,
9592 # but we know of no workaround that is simple, portable, and efficient.
9593 # So, we kill variables containing newlines.
9594 # Ultrix sh set writes to stderr and can't be redirected directly,
9595 # and sets the high bit in the cache file unless we assign to the vars.
9597 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9598 eval ac_val
=\$
$ac_var
9602 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9606 _
| IFS
| as_nl
) ;; #(
9607 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
9608 *) { eval $ac_var=; unset $ac_var;} ;;
9614 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9615 *${as_nl}ac_space
=\
*)
9616 # `set' does not quote correctly, so add quotes: double-quote
9617 # substitution turns \\\\ into \\, and sed turns \\ into \.
9620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9623 # `set' quotes correctly as required by POSIX, so do not add quotes.
9624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9635 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9637 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9638 if test -w "$cache_file"; then
9639 if test "x$cache_file" != "x/dev/null"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9641 $as_echo "$as_me: updating cache $cache_file" >&6;}
9642 if test ! -f "$cache_file" || test -h "$cache_file"; then
9643 cat confcache
>"$cache_file"
9645 case $cache_file in #(
9647 mv -f confcache
"$cache_file"$$
&&
9648 mv -f "$cache_file"$$
"$cache_file" ;; #(
9650 mv -f confcache
"$cache_file" ;;
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9656 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9661 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9662 # Let make expand exec_prefix.
9663 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9665 DEFS
=-DHAVE_CONFIG_H
9670 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9671 # 1. Remove the extension, and $U if already installed.
9672 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9673 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9675 # will be set to the directory where LIBOBJS objects are built.
9676 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9677 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9681 LTLIBOBJS
=$ac_ltlibobjs
9687 : "${CONFIG_STATUS=./config.status}"
9689 ac_clean_files_save
=$ac_clean_files
9690 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9692 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9694 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9696 # Generated by $as_me.
9697 # Run this file to recreate the current configuration.
9698 # Compiler output produced by configure, useful for debugging
9699 # configure, is in config.log if it exists.
9705 SHELL=\${CONFIG_SHELL-$SHELL}
9708 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
9709 ## -------------------- ##
9710 ## M4sh Initialization. ##
9711 ## -------------------- ##
9713 # Be more Bourne compatible
9714 DUALCASE
=1; export DUALCASE
# for MKS sh
9715 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
9718 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9719 # is contrary to our usage. Disable this feature.
9720 alias -g '${1+"$@"}'='"$@"'
9721 setopt NO_GLOB_SUBST
9723 case `(set -o) 2>/dev/null` in #(
9735 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9736 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9737 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9738 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9739 # Prefer a ksh shell builtin over an external printf program on Solaris,
9740 # but without wasting forks for bash or zsh.
9741 if test -z "$BASH_VERSION$ZSH_VERSION" \
9742 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9743 as_echo='print
-r --'
9744 as_echo_n='print
-rn --'
9745 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9746 as_echo='printf %s
\n'
9747 as_echo_n='printf %s
'
9749 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9750 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
9751 as_echo_n='/usr
/ucb
/echo -n'
9753 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9754 as_echo_n_body='eval
9758 expr "X$arg" : "X\\(.*\\)$as_nl";
9759 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9761 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9763 export as_echo_n_body
9764 as_echo_n='sh
-c $as_echo_n_body as_echo
'
9767 as_echo='sh
-c $as_echo_body as_echo
'
9770 # The user is always right.
9771 if test "${PATH_SEPARATOR+set}" != set; then
9773 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9774 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9781 # We need space, tab and new line, in precisely that order. Quoting is
9782 # there to prevent editors from complaining about space-tab.
9783 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9784 # splitting by setting IFS to empty value.)
9787 # Find who we are. Look in the path if we contain no directory separator.
9790 *[\\/]* ) as_myself=$0 ;;
9791 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 test -z "$as_dir" && as_dir=.
9796 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9802 # We did not find ourselves, most probably we were run as `sh COMMAND'
9803 # in which case we are not to be found in the path.
9804 if test "x$as_myself" = x
; then
9807 if test ! -f "$as_myself"; then
9808 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9812 # Unset variables that we do not need and which cause bugs (e.g. in
9813 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9814 # suppresses any "Segmentation fault" message there. '((' could
9815 # trigger a bug in pdksh 5.2.14.
9816 for as_var
in BASH_ENV ENV MAIL MAILPATH
9817 do eval test x\
${$as_var+set} = xset \
9818 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
9831 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
9834 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9835 # ----------------------------------------
9836 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9837 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9838 # script with STATUS, using 1 if that was 0.
9841 as_status
=$1; test $as_status -eq 0 && as_status
=1
9843 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
9844 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9846 $as_echo "$as_me: error: $2" >&2
9847 as_fn_exit
$as_status
9851 # as_fn_set_status STATUS
9852 # -----------------------
9853 # Set $? to STATUS, without forking.
9857 } # as_fn_set_status
9861 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9871 # Portably unset VAR.
9874 { eval $1=; unset $1;}
9876 as_unset
=as_fn_unset
9877 # as_fn_append VAR VALUE
9878 # ----------------------
9879 # Append the text in VALUE to the end of the definition contained in VAR. Take
9880 # advantage of any shell optimizations that allow amortized linear growth over
9881 # repeated appends, instead of the typical quadratic growth present in naive
9883 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
9884 eval 'as_fn_append ()
9895 # as_fn_arith ARG...
9896 # ------------------
9897 # Perform arithmetic evaluation on the ARGs, and store the result in the
9898 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9899 # must be portable across $(()) and expr.
9900 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
9901 eval 'as_fn_arith ()
9908 as_val
=`expr "$@" || test $? -eq 1`
9913 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
9914 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
9920 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9921 as_basename
=basename
9926 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
9932 as_me
=`$as_basename -- "$0" ||
9933 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9934 X"$0" : 'X\(//\)$' \| \
9935 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9937 sed '/^.*\/\([^/][^/]*\)\/*$/{
9951 # Avoid depending upon Character Ranges.
9952 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
9953 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9954 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
9955 as_cr_digits
='0123456789'
9956 as_cr_alnum
=$as_cr_Letters$as_cr_digits
9958 ECHO_C
= ECHO_N
= ECHO_T
=
9959 case `echo -n x` in #(((((
9961 case `echo 'xy\c'` in
9962 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
9964 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
9971 rm -f conf$$ conf$$.exe conf$$.
file
9972 if test -d conf$$.dir
; then
9973 rm -f conf$$.dir
/conf$$.
file
9976 mkdir conf$$.dir
2>/dev
/null
9978 if (echo >conf$$.
file) 2>/dev
/null
; then
9979 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
9981 # ... but there are two gotchas:
9982 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9983 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9984 # In both cases, we have to default to `cp -p'.
9985 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
9987 elif ln conf$$.
file conf$$
2>/dev
/null
; then
9995 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
9996 rmdir conf$$.dir
2>/dev
/null
10001 # Create "$as_dir" as a directory, including parents if necessary.
10006 -*) as_dir
=.
/$as_dir;;
10008 test -d "$as_dir" || eval $as_mkdir_p || {
10012 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10013 *) as_qdir
=$as_dir;;
10015 as_dirs
="'$as_qdir' $as_dirs"
10016 as_dir
=`$as_dirname -- "$as_dir" ||
10017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10018 X"$as_dir" : 'X\(//\)[^/]' \| \
10019 X"$as_dir" : 'X\(//\)$' \| \
10020 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10021 $as_echo X"$as_dir" |
10022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10026 /^X\(\/\/\)[^/].*/{
10039 test -d "$as_dir" && break
10041 test -z "$as_dirs" || eval "mkdir $as_dirs"
10042 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10046 if mkdir -p .
2>/dev
/null
; then
10047 as_mkdir_p
='mkdir -p "$as_dir"'
10049 test -d .
/-p && rmdir .
/-p
10053 if test -x / >/dev
/null
2>&1; then
10054 as_test_x
='test -x'
10056 if ls -dL / >/dev
/null
2>&1; then
10063 if test -d "$1"; then
10069 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10070 ???[sx]*):;;*)false;;esac;fi
10074 as_executable_p
=$as_test_x
10076 # Sed expression to map a string onto a valid CPP name.
10077 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10079 # Sed expression to map a string onto a valid variable name.
10080 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10084 ## ----------------------------------- ##
10085 ## Main body of $CONFIG_STATUS script. ##
10086 ## ----------------------------------- ##
10088 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10090 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10091 # Save the log message, to keep $0 and so on meaningful, and to
10092 # report actual input values of CONFIG_FILES etc. instead of their
10093 # values after options handling.
10095 This file was extended by shadowircd $as_me 6.3.2, which was
10096 generated by GNU Autoconf 2.68. Invocation command line was
10098 CONFIG_FILES = $CONFIG_FILES
10099 CONFIG_HEADERS = $CONFIG_HEADERS
10100 CONFIG_LINKS = $CONFIG_LINKS
10101 CONFIG_COMMANDS = $CONFIG_COMMANDS
10104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10109 case $ac_config_files in *"
10110 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10113 case $ac_config_headers in *"
10114 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10119 # Files that config.status was made for.
10120 config_files="$ac_config_files"
10121 config_headers="$ac_config_headers"
10122 config_commands="$ac_config_commands"
10126 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10128 \`$as_me' instantiates files and other configuration actions
10129 from templates according to the current configuration. Unless the files
10130 and actions are specified as TAGs, all are instantiated by default.
10132 Usage: $0 [OPTION]... [TAG]...
10134 -h, --help print this help, then exit
10135 -V, --version print version number and configuration settings, then exit
10136 --config print configuration, then exit
10137 -q, --quiet, --silent
10138 do not print progress messages
10139 -d, --debug don't remove temporary files
10140 --recheck update $as_me by reconfiguring in the same conditions
10141 --file=FILE[:TEMPLATE]
10142 instantiate the configuration file FILE
10143 --header=FILE[:TEMPLATE]
10144 instantiate the configuration header FILE
10146 Configuration files:
10149 Configuration headers:
10152 Configuration commands:
10155 Report bugs to the package provider."
10158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10159 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10161 shadowircd config.status 6.3.2
10162 configured by $0, generated by GNU Autoconf 2.68,
10163 with options \\"\$ac_cs_config\\"
10165 Copyright (C) 2010 Free Software Foundation, Inc.
10166 This config.status script is free software; the Free Software Foundation
10167 gives unlimited permission to copy, distribute and modify it."
10172 test -n "\$AWK" || AWK=awk
10175 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10176 # The default lists apply if the user does not specify any file.
10182 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10183 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10187 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10199 # Handling of the options.
10200 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10202 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10203 $as_echo "$ac_cs_version"; exit ;;
10204 --config | --confi | --conf | --con | --co | --c )
10205 $as_echo "$ac_cs_config"; exit ;;
10206 --debug | --debu | --deb | --de | --d | -d )
10208 --file | --fil | --fi | --f )
10211 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10212 '') as_fn_error $?
"missing file argument" ;;
10214 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10215 ac_need_defaults
=false
;;
10216 --header | --heade | --head | --hea )
10219 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10221 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10222 ac_need_defaults
=false
;;
10224 # Conflict between --help and --header
10225 as_fn_error $?
"ambiguous option: \`$1'
10226 Try \`$0 --help' for more information.";;
10227 --help | --hel | -h )
10228 $as_echo "$ac_cs_usage"; exit ;;
10229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10230 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10233 # This is an error.
10234 -*) as_fn_error $?
"unrecognized option: \`$1'
10235 Try \`$0 --help' for more information." ;;
10237 *) as_fn_append ac_config_targets
" $1"
10238 ac_need_defaults
=false
;;
10244 ac_configure_extra_args
=
10246 if $ac_cs_silent; then
10248 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10253 if \$ac_cs_recheck; then
10254 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10256 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10257 CONFIG_SHELL='$SHELL'
10258 export CONFIG_SHELL
10263 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10267 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10268 ## Running $as_me. ##
10274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10277 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10279 # Handling of arguments.
10280 for ac_config_target
in $ac_config_targets
10282 case $ac_config_target in
10283 "include/setup.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/setup.h" ;;
10284 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10285 "bandb/Makefile") CONFIG_FILES
="$CONFIG_FILES bandb/Makefile" ;;
10286 "ssld/Makefile") CONFIG_FILES
="$CONFIG_FILES ssld/Makefile" ;;
10287 "extensions/Makefile") CONFIG_FILES
="$CONFIG_FILES extensions/Makefile" ;;
10288 "unsupported/Makefile") CONFIG_FILES
="$CONFIG_FILES unsupported/Makefile" ;;
10289 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
10290 "modules/Makefile") CONFIG_FILES
="$CONFIG_FILES modules/Makefile" ;;
10291 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10292 "tools/genssl.sh") CONFIG_FILES
="$CONFIG_FILES tools/genssl.sh" ;;
10293 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10294 "help/Makefile") CONFIG_FILES
="$CONFIG_FILES help/Makefile" ;;
10295 "tools/genssl.sh_chmod") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/genssl.sh_chmod" ;;
10297 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10302 # If the user did not use the arguments to specify the items to instantiate,
10303 # then the envvar interface is used. Set only those that are not.
10304 # We use the long form for the default assignment because of an extremely
10305 # bizarre bug on SunOS 4.1.3.
10306 if $ac_need_defaults; then
10307 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10308 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10309 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
10312 # Have a temporary directory for convenience. Make it in the build tree
10313 # simply because there is no reason against having it here, and in addition,
10314 # creating and moving files from /tmp can sometimes cause problems.
10315 # Hook for its removal unless debugging.
10316 # Note that there is a small window in which the directory will not be cleaned:
10317 # after its creation but before its name has been assigned to `$tmp'.
10321 trap 'exit_status=$?
10322 : "${ac_tmp:=$tmp}"
10323 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10325 trap 'as_fn_exit 1' 1 2 13 15
10327 # Create a (secure) tmp directory for tmp files.
10330 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10334 tmp
=.
/conf$$
-$RANDOM
10335 (umask 077 && mkdir "$tmp")
10336 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10339 # Set up the scripts for CONFIG_FILES section.
10340 # No need to generate them if there are no CONFIG_FILES.
10341 # This happens for instance with `./config.status config.h'.
10342 if test -n "$CONFIG_FILES"; then
10345 ac_cr
=`echo X | tr X '\015'`
10346 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10347 # But we know of no other shell where ac_cr would be empty at this
10348 # point, so we can use a bashism as a fallback.
10349 if test "x$ac_cr" = x
; then
10350 eval ac_cr
=\$
\'\\r
\'
10352 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10353 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10356 ac_cs_awk_cr
=$ac_cr
10359 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10364 echo "cat >conf$$subs.awk <<_ACEOF" &&
10365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10367 } >conf$$subs.sh ||
10368 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10371 for ac_last_try in false false false false false :; do
10372 . ./conf$$subs.sh ||
10373 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10375 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10376 if test $ac_delim_n = $ac_delim_num; then
10378 elif $ac_last_try; then
10379 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10381 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10384 rm -f conf$$subs.sh
10386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10387 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10391 s/^/S["/; s
/!.
*/"]=/
10401 s/\(.\{148\}\)..*/\1/
10403 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10408 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10415 s/\(.\{148\}\)..*/\1/
10417 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10421 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10426 ' <conf$$subs.awk | sed '
10431 ' >>$CONFIG_STATUS || ac_write_fail=1
10432 rm -f conf$$subs.awk
10433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10435 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10436 for (key in S) S_is_set[key] = 1
10442 nfields = split(line, field, "@
")
10444 len = length(field[1])
10445 for (i = 2; i < nfields; i++) {
10447 keylen = length(key)
10448 if (S_is_set[key]) {
10450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10451 len += length(value) + length(field[++i])
10462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10463 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10464 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10467 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10468 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10471 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10472 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10473 # trailing colons and then remove the whole line if VPATH becomes empty
10474 # (actually we leave an empty line to preserve line numbers).
10475 if test "x
$srcdir" = x.; then
10476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10495 fi # test -n "$CONFIG_FILES"
10497 # Set up the scripts for CONFIG_HEADERS section.
10498 # No need to generate them if there are no CONFIG_HEADERS.
10499 # This happens for instance with `./config.status Makefile'.
10500 if test -n "$CONFIG_HEADERS"; then
10501 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10505 # Transform confdefs.h into an awk script `defines.awk', embedded as
10506 # here-document in config.status, that substitutes the proper values into
10507 # config.h.in to produce config.h.
10509 # Create a delimiter string that does not exist in confdefs.h, to ease
10510 # handling of long lines.
10512 for ac_last_try in false false :; do
10513 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10514 if test -z "$ac_tt"; then
10516 elif $ac_last_try; then
10517 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10519 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10523 # For the awk script, D is an array of macro values keyed by name,
10524 # likewise P contains macro parameters if any. Preserve backslash
10525 # newline sequences.
10527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10529 s/.\{148\}/&'"$ac_delim"'/g
10532 s/^[ ]*#[ ]*define[ ][ ]*/ /
10539 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10541 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10546 D["\
1"]=" \
3\\\\\\n
"\\/p
10548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10553 s/.\{148\}/&'"$ac_delim"'/g
10558 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10561 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10563 ' <confdefs.h | sed '
10564 s/'"$ac_delim"'/"\\\
10565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10568 for (key in D) D_is_set[key] = 1
10571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10573 split(line, arg, " ")
10574 if (arg[1] == "#") {
10578 defundef
= substr
(arg
[1], 2)
10581 split(mac1
, mac2
, "(") #)
10583 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10584 if (D_is_set
[macro
]) {
10585 # Preserve the white space surrounding the "#".
10586 print prefix
"define", macro P
[macro
] D
[macro
]
10589 # Replace #undef with comments. This is necessary, for example,
10590 # in the case of _POSIX_SOURCE, which is predefined and required
10591 # on some systems where configure will not decide to define it.
10592 if (defundef
== "undef") {
10593 print
"/*", prefix defundef
, macro
, "*/"
10601 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10602 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10603 fi # test -n "$CONFIG_HEADERS"
10606 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10611 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10613 case $ac_mode$ac_tag in
10615 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10616 :[FH
]-) ac_tag
=-:-;;
10617 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10634 -) ac_f
="$ac_tmp/stdin";;
10635 *) # Look for the file first in the build tree, then in the source tree
10636 # (if the path is not absolute). The absolute path cannot be DOS-style,
10637 # because $ac_f cannot contain `:'.
10641 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10643 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10645 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10646 as_fn_append ac_file_inputs
" '$ac_f'"
10649 # Let's still pretend it is `configure' which instantiates (i.e., don't
10650 # use $as_me), people would be surprised to read:
10651 # /* config.h. Generated by config.status. */
10652 configure_input
='Generated from '`
10653 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10655 if test x
"$ac_file" != x
-; then
10656 configure_input
="$ac_file. $configure_input"
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10658 $as_echo "$as_me: creating $ac_file" >&6;}
10660 # Neutralize special characters interpreted by sed in replacement strings.
10661 case $configure_input in #(
10662 *\
&* | *\
|* | *\\* )
10663 ac_sed_conf_input
=`$as_echo "$configure_input" |
10664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10665 *) ac_sed_conf_input
=$configure_input;;
10669 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10670 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10675 ac_dir
=`$as_dirname -- "$ac_file" ||
10676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10677 X"$ac_file" : 'X\(//\)[^/]' \| \
10678 X"$ac_file" : 'X\(//\)$' \| \
10679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10680 $as_echo X"$ac_file" |
10681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10685 /^X\(\/\/\)[^/].*/{
10698 as_dir
="$ac_dir"; as_fn_mkdir_p
10702 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10704 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10705 # A ".." for each directory in $ac_dir_suffix.
10706 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10707 case $ac_top_builddir_sub in
10708 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10709 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10712 ac_abs_top_builddir
=$ac_pwd
10713 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10714 # for backward compatibility:
10715 ac_top_builddir
=$ac_top_build_prefix
10718 .
) # We are building in place.
10720 ac_top_srcdir
=$ac_top_builddir_sub
10721 ac_abs_top_srcdir
=$ac_pwd ;;
10722 [\\/]* | ?
:[\\/]* ) # Absolute name.
10723 ac_srcdir
=$srcdir$ac_dir_suffix;
10724 ac_top_srcdir
=$srcdir
10725 ac_abs_top_srcdir
=$srcdir ;;
10726 *) # Relative name.
10727 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10728 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10729 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10731 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10741 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
10742 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
10746 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10747 # If the template does not know about datarootdir, expand it.
10748 # FIXME: This hack should be removed a few years after 2.60.
10749 ac_datarootdir_hack
=; ac_datarootdir_seen
=
10760 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10761 *datarootdir
*) ac_datarootdir_seen
=yes;;
10762 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10764 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10766 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10767 ac_datarootdir_hack='
10768 s&@datadir@&$datadir&g
10769 s&@docdir@&$docdir&g
10770 s&@infodir@&$infodir&g
10771 s&@localedir@&$localedir&g
10772 s&@mandir@&$mandir&g
10773 s&\\\${datarootdir}&$datarootdir&g' ;;
10777 # Neutralize VPATH when `$srcdir' = `.'.
10778 # Shell code in configure.ac might set extrasub.
10779 # FIXME: do we really want to maintain this feature?
10780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10781 ac_sed_extra="$ac_vpsub
10784 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
10786 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
10787 s
|@configure_input@
|$ac_sed_conf_input|;t t
10788 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
10789 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
10790 s
&@srcdir@
&$ac_srcdir&;t t
10791 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
10792 s
&@top_srcdir@
&$ac_top_srcdir&;t t
10793 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
10794 s
&@builddir@
&$ac_builddir&;t t
10795 s
&@abs_builddir@
&$ac_abs_builddir&;t t
10796 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
10797 s
&@INSTALL@
&$ac_INSTALL&;t t
10798 $ac_datarootdir_hack
10800 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
10801 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
10803 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10804 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
10805 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10806 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
10808 which seems to be undefined. Please make sure it is defined" >&5
10809 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
10810 which seems to be undefined. Please make sure it is defined" >&2;}
10812 rm -f "$ac_tmp/stdin"
10814 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10815 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10823 if test x"$ac_file" != x-; then
10825 $as_echo "/* $configure_input */" \
10826 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10827 } >"$ac_tmp/config.h" \
10828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10829 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10831 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10834 mv "$ac_tmp/config.h" "$ac_file" \
10835 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10838 $as_echo "/* $configure_input */" \
10839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10840 || as_fn_error $? "could not create -" "$LINENO" 5
10844 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10845 $as_echo "$as_me: executing $ac_file commands" >&6;}
10850 case $ac_file$ac_mode in
10851 "tools/genssl.sh_chmod":C) chmod 755 tools/genssl.sh ;;
10859 ac_clean_files=$ac_clean_files_save
10861 test $ac_write_fail = 0 ||
10862 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10865 # configure is writing to config.log, and then calls config.status.
10866 # config.status does its own redirection, appending to config.log.
10867 # Unfortunately, on DOS this fails, as config.log is still kept open
10868 # by configure, so config.status won't be able to
write to it
; its
10869 # output is simply discarded. So we exec the FD to /dev/null,
10870 # effectively closing config.log, so it can be properly (re)opened and
10871 # appended to by config.status. When coming back to configure, we
10872 # need to make the FD available again.
10873 if test "$no_create" != yes; then
10875 ac_config_status_args
=
10876 test "$silent" = yes &&
10877 ac_config_status_args
="$ac_config_status_args --quiet"
10879 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
10881 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10882 # would make configure fail if this is the last instruction.
10883 $ac_cs_success || as_fn_exit
1
10887 # CONFIG_SUBDIRS section.
10889 if test "$no_recursion" != yes; then
10891 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10892 # so they do not pile up.
10893 ac_sub_configure_args
=
10895 eval "set x $ac_configure_args"
10899 if test -n "$ac_prev"; then
10904 -cache-file | --cache-file | --cache-fil | --cache-fi \
10905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10906 ac_prev
=cache_file
;;
10907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10911 --config-cache | -C)
10913 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10915 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10917 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10919 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10921 --disable-option-checking)
10925 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10927 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
10931 # Always prepend --prefix to ensure using the same prefix
10932 # in subdir configurations.
10933 ac_arg
="--prefix=$prefix"
10935 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10937 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
10940 if test "$silent" = yes; then
10941 ac_sub_configure_args
="--silent $ac_sub_configure_args"
10944 # Always prepend --disable-option-checking to silence warnings, since
10945 # different subdirs can have different --enable and --with options.
10946 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
10949 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
10951 # Do not complain, so a configure script can configure whichever
10952 # parts of a large source tree are present.
10953 test -d "$srcdir/$ac_dir" || continue
10955 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10956 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10957 $as_echo "$ac_msg" >&6
10958 as_dir
="$ac_dir"; as_fn_mkdir_p
10962 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10964 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10965 # A ".." for each directory in $ac_dir_suffix.
10966 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10967 case $ac_top_builddir_sub in
10968 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10969 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
10972 ac_abs_top_builddir
=$ac_pwd
10973 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
10974 # for backward compatibility:
10975 ac_top_builddir
=$ac_top_build_prefix
10978 .
) # We are building in place.
10980 ac_top_srcdir
=$ac_top_builddir_sub
10981 ac_abs_top_srcdir
=$ac_pwd ;;
10982 [\\/]* | ?
:[\\/]* ) # Absolute name.
10983 ac_srcdir
=$srcdir$ac_dir_suffix;
10984 ac_top_srcdir
=$srcdir
10985 ac_abs_top_srcdir
=$srcdir ;;
10986 *) # Relative name.
10987 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
10988 ac_top_srcdir
=$ac_top_build_prefix$srcdir
10989 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
10991 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
10996 # Check for guested configure; otherwise get Cygnus style configure.
10997 if test -f "$ac_srcdir/configure.gnu"; then
10998 ac_sub_configure
=$ac_srcdir/configure.gnu
10999 elif test -f "$ac_srcdir/configure"; then
11000 ac_sub_configure
=$ac_srcdir/configure
11001 elif test -f "$ac_srcdir/configure.in"; then
11002 # This should be Cygnus configure.
11003 ac_sub_configure
=$ac_aux_dir/configure
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11006 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11010 # The recursion is here.
11011 if test -n "$ac_sub_configure"; then
11012 # Make the cache file name correct relative to the subdirectory.
11013 case $cache_file in
11014 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
11015 *) # Relative name.
11016 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
11019 { $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
11020 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11021 # The eval makes quoting arguments work.
11022 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11023 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11024 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11030 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11032 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11036 if test "$cf_openssl_version_ok" = yes; then
11042 if test "$shared_modules" = yes; then
11050 Install directory : $prefix
11054 Socket Engine : $SELECT_TYPE
11055 Small network : $small_net
11056 Block allocator : $balloc
11058 Nickname length : $NICKLEN
11059 Topic length : $TOPICLEN
11061 Use (g)make to compile ShadowIRCd, then (g)make install to install it.