]> jfr.im git - irc/rqf/shadowircd.git/blob - configure
Do not check floodcount if user is messaging self.
[irc/rqf/shadowircd.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for charybdis 3.1.
4 #
5 # $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
46 chmod +x conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48 PATH_SEPARATOR=';'
49 else
50 PATH_SEPARATOR=:
51 fi
52 rm -f conf$$.sh
53 fi
54
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58 else
59 as_unset=false
60 fi
61
62
63 # IFS
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
68 as_nl='
69 '
70 IFS=" "" $as_nl"
71
72 # Find who we are. Look in the path if we contain no directory separator.
73 case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 for as_dir in $PATH
77 do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81 done
82 IFS=$as_save_IFS
83
84 ;;
85 esac
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
89 as_myself=$0
90 fi
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 { (exit 1); exit 1; }
94 fi
95
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99 done
100 PS1='$ '
101 PS2='> '
102 PS4='+ '
103
104 # NLS nuisances.
105 for as_var in \
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 LC_TELEPHONE LC_TIME
109 do
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
112 else
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 fi
115 done
116
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121 else
122 as_expr=false
123 fi
124
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127 else
128 as_basename=false
129 fi
130
131
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137 echo X/"$0" |
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\/\)$/{
143 s//\1/
144 q
145 }
146 /^X\/\(\/\).*/{
147 s//\1/
148 q
149 }
150 s/.*/./; q'`
151
152 # CDPATH.
153 $as_unset CDPATH
154
155
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159 else
160 as_have_required=no
161 fi
162
163 if test $as_have_required = yes && (eval ":
164 (as_func_return () {
165 (exit \$1)
166 }
167 as_func_success () {
168 as_func_return 0
169 }
170 as_func_failure () {
171 as_func_return 1
172 }
173 as_func_ret_success () {
174 return 0
175 }
176 as_func_ret_failure () {
177 return 1
178 }
179
180 exitcode=0
181 if as_func_success; then
182 :
183 else
184 exitcode=1
185 echo as_func_success failed.
186 fi
187
188 if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191 fi
192
193 if as_func_ret_success; then
194 :
195 else
196 exitcode=1
197 echo as_func_ret_success failed.
198 fi
199
200 if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203 fi
204
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207 else
208 exitcode=1
209 echo positional parameters were not saved.
210 fi
211
212 test \$exitcode = 0) || { (exit 1); exit 1; }
213
214 (
215 as_lineno_1=\$LINENO
216 as_lineno_2=\$LINENO
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
220 :
221 else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 case $as_dir in
229 /*)
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 done;;
233 esac
234 done
235 IFS=$as_save_IFS
236
237
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 emulate sh
244 NULLCMD=:
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
248 setopt NO_GLOB_SUBST
249 else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252 esac
253
254 fi
255
256
257 :
258 _ASEOF
259 }; then
260 CONFIG_SHELL=$as_shell
261 as_have_required=yes
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 emulate sh
265 NULLCMD=:
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
269 setopt NO_GLOB_SUBST
270 else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 (as_func_return () {
280 (exit $1)
281 }
282 as_func_success () {
283 as_func_return 0
284 }
285 as_func_failure () {
286 as_func_return 1
287 }
288 as_func_ret_success () {
289 return 0
290 }
291 as_func_ret_failure () {
292 return 1
293 }
294
295 exitcode=0
296 if as_func_success; then
297 :
298 else
299 exitcode=1
300 echo as_func_success failed.
301 fi
302
303 if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306 fi
307
308 if as_func_ret_success; then
309 :
310 else
311 exitcode=1
312 echo as_func_ret_success failed.
313 fi
314
315 if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318 fi
319
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322 else
323 exitcode=1
324 echo positional parameters were not saved.
325 fi
326
327 test $exitcode = 0) || { (exit 1); exit 1; }
328
329 (
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335 _ASEOF
336 }; then
337 break
338 fi
339
340 fi
341
342 done
343
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 done
348 export CONFIG_SHELL
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350 fi
351
352
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
359 fi
360
361
362 fi
363
364 fi
365
366
367
368 (eval "as_func_return () {
369 (exit \$1)
370 }
371 as_func_success () {
372 as_func_return 0
373 }
374 as_func_failure () {
375 as_func_return 1
376 }
377 as_func_ret_success () {
378 return 0
379 }
380 as_func_ret_failure () {
381 return 1
382 }
383
384 exitcode=0
385 if as_func_success; then
386 :
387 else
388 exitcode=1
389 echo as_func_success failed.
390 fi
391
392 if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395 fi
396
397 if as_func_ret_success; then
398 :
399 else
400 exitcode=1
401 echo as_func_ret_success failed.
402 fi
403
404 if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407 fi
408
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411 else
412 exitcode=1
413 echo positional parameters were not saved.
414 fi
415
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
420 echo message
421 }
422
423
424
425 as_lineno_1=$LINENO
426 as_lineno_2=$LINENO
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
436 # case at line end.
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
440 sed -n '
441 p
442 /[$]LINENO/=
443 ' <$as_myself |
444 sed '
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
449 N
450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 t loop
453 s/-\n.*//
454 ' >$as_me.lineno &&
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
458
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
463 # Exit status is that of the last command.
464 exit
465 }
466
467
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470 else
471 as_dirname=false
472 fi
473
474 ECHO_C= ECHO_N= ECHO_T=
475 case `echo -n x` in
476 -n*)
477 case `echo 'x\c'` in
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
479 *) ECHO_C='\c';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488 else
489 as_expr=false
490 fi
491
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495 else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498 fi
499 echo >conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s='ln -s'
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507 as_ln_s='cp -p'
508 elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510 else
511 as_ln_s='cp -p'
512 fi
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
515
516 if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518 else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521 fi
522
523 if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525 else
526 if ls -dL / >/dev/null 2>&1; then
527 as_ls_L_option=L
528 else
529 as_ls_L_option=
530 fi
531 as_test_x='
532 eval sh -c '\''
533 if test -d "$1"; then
534 test -d "$1/.";
535 else
536 case $1 in
537 -*)set "./$1";;
538 esac;
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
541 '\'' sh
542 '
543 fi
544 as_executable_p=$as_test_x
545
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554 exec 7<&0 </dev/null 6>&1
555
556 # Name of the host.
557 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558 # so uname gets run too.
559 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561 #
562 # Initializations.
563 #
564 ac_default_prefix=/usr/local
565 ac_clean_files=
566 ac_config_libobj_dir=.
567 LIBOBJS=
568 cross_compiling=no
569 subdirs=
570 MFLAGS=
571 MAKEFLAGS=
572 SHELL=${CONFIG_SHELL-/bin/sh}
573
574 # Identity of this package.
575 PACKAGE_NAME='charybdis'
576 PACKAGE_TARNAME='charybdis'
577 PACKAGE_VERSION='3.1'
578 PACKAGE_STRING='charybdis 3.1'
579 PACKAGE_BUGREPORT=''
580
581 ac_default_prefix=$HOME/ircd
582 # Factoring default headers for most tests.
583 ac_includes_default="\
584 #include <stdio.h>
585 #ifdef HAVE_SYS_TYPES_H
586 # include <sys/types.h>
587 #endif
588 #ifdef HAVE_SYS_STAT_H
589 # include <sys/stat.h>
590 #endif
591 #ifdef STDC_HEADERS
592 # include <stdlib.h>
593 # include <stddef.h>
594 #else
595 # ifdef HAVE_STDLIB_H
596 # include <stdlib.h>
597 # endif
598 #endif
599 #ifdef HAVE_STRING_H
600 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 # include <memory.h>
602 # endif
603 # include <string.h>
604 #endif
605 #ifdef HAVE_STRINGS_H
606 # include <strings.h>
607 #endif
608 #ifdef HAVE_INTTYPES_H
609 # include <inttypes.h>
610 #endif
611 #ifdef HAVE_STDINT_H
612 # include <stdint.h>
613 #endif
614 #ifdef HAVE_UNISTD_H
615 # include <unistd.h>
616 #endif"
617
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 CC
656 CFLAGS
657 LDFLAGS
658 CPPFLAGS
659 ac_ct_CC
660 EXEEXT
661 OBJEXT
662 subdirs
663 MKDEP
664 MAKEDEPEND
665 STDOUT
666 CPP
667 GREP
668 EGREP
669 SET_MAKE
670 INSTALL_PROGRAM
671 INSTALL_SCRIPT
672 INSTALL_DATA
673 RM
674 CP
675 MV
676 LN
677 SED
678 AR
679 LD
680 RANLIB
681 TOUCH
682 YACC
683 YFLAGS
684 LEX
685 LEX_OUTPUT_ROOT
686 LEXLIB
687 CRYPT_LIB
688 VICONF
689 ALLOCA
690 ENCSPEED
691 ZLIB_LD
692 ETC_DIR
693 confdir
694 LOG_DIR
695 logdir
696 HELP_DIR
697 helpdir
698 MODULE_DIR
699 moduledir
700 SELECT_TYPE
701 MODULES_LIBS
702 MOD_TARGET
703 SSL_SRCS_ENABLE
704 SSL_INCLUDES
705 SSL_LIBS
706 PICFLAGS
707 IRC_CFLAGS
708 SEDOBJ
709 LIBOBJS
710 LTLIBOBJS'
711 ac_subst_files=''
712 ac_precious_vars='build_alias
713 host_alias
714 target_alias
715 CC
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
720 CPP
721 YACC
722 YFLAGS'
723 ac_subdirs_all='libratbox'
724
725 # Initialize some variables set by options.
726 ac_init_help=
727 ac_init_version=false
728 # The variables have the same names as the options, with
729 # dashes changed to underlines.
730 cache_file=/dev/null
731 exec_prefix=NONE
732 no_create=
733 no_recursion=
734 prefix=NONE
735 program_prefix=NONE
736 program_suffix=NONE
737 program_transform_name=s,x,x,
738 silent=
739 site=
740 srcdir=
741 verbose=
742 x_includes=NONE
743 x_libraries=NONE
744
745 # Installation directory options.
746 # These are left unexpanded so users can "make install exec_prefix=/foo"
747 # and all the variables that are supposed to be based on exec_prefix
748 # by default will actually change.
749 # Use braces instead of parens because sh, perl, etc. also accept them.
750 # (The list follows the same order as the GNU Coding Standards.)
751 bindir='${exec_prefix}/bin'
752 sbindir='${exec_prefix}/sbin'
753 libexecdir='${exec_prefix}/libexec'
754 datarootdir='${prefix}/share'
755 datadir='${datarootdir}'
756 sysconfdir='${prefix}/etc'
757 sharedstatedir='${prefix}/com'
758 localstatedir='${prefix}/var'
759 includedir='${prefix}/include'
760 oldincludedir='/usr/include'
761 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762 infodir='${datarootdir}/info'
763 htmldir='${docdir}'
764 dvidir='${docdir}'
765 pdfdir='${docdir}'
766 psdir='${docdir}'
767 libdir='${exec_prefix}/lib'
768 localedir='${datarootdir}/locale'
769 mandir='${datarootdir}/man'
770
771 ac_prev=
772 ac_dashdash=
773 for ac_option
774 do
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
777 eval $ac_prev=\$ac_option
778 ac_prev=
779 continue
780 fi
781
782 case $ac_option in
783 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 *) ac_optarg=yes ;;
785 esac
786
787 # Accept the important Cygnus configure options, so we can diagnose typos.
788
789 case $ac_dashdash$ac_option in
790 --)
791 ac_dashdash=yes ;;
792
793 -bindir | --bindir | --bindi | --bind | --bin | --bi)
794 ac_prev=bindir ;;
795 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
796 bindir=$ac_optarg ;;
797
798 -build | --build | --buil | --bui | --bu)
799 ac_prev=build_alias ;;
800 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
801 build_alias=$ac_optarg ;;
802
803 -cache-file | --cache-file | --cache-fil | --cache-fi \
804 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
805 ac_prev=cache_file ;;
806 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
807 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
808 cache_file=$ac_optarg ;;
809
810 --config-cache | -C)
811 cache_file=config.cache ;;
812
813 -datadir | --datadir | --datadi | --datad)
814 ac_prev=datadir ;;
815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
816 datadir=$ac_optarg ;;
817
818 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
819 | --dataroo | --dataro | --datar)
820 ac_prev=datarootdir ;;
821 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
822 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
823 datarootdir=$ac_optarg ;;
824
825 -disable-* | --disable-*)
826 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
829 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
830 { (exit 1); exit 1; }; }
831 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
832 eval enable_$ac_feature=no ;;
833
834 -docdir | --docdir | --docdi | --doc | --do)
835 ac_prev=docdir ;;
836 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
837 docdir=$ac_optarg ;;
838
839 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
840 ac_prev=dvidir ;;
841 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
842 dvidir=$ac_optarg ;;
843
844 -enable-* | --enable-*)
845 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
846 # Reject names that are not valid shell variable names.
847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=\$ac_optarg ;;
852
853 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
854 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
855 | --exec | --exe | --ex)
856 ac_prev=exec_prefix ;;
857 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
858 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
859 | --exec=* | --exe=* | --ex=*)
860 exec_prefix=$ac_optarg ;;
861
862 -gas | --gas | --ga | --g)
863 # Obsolete; use --with-gas.
864 with_gas=yes ;;
865
866 -help | --help | --hel | --he | -h)
867 ac_init_help=long ;;
868 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
869 ac_init_help=recursive ;;
870 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
871 ac_init_help=short ;;
872
873 -host | --host | --hos | --ho)
874 ac_prev=host_alias ;;
875 -host=* | --host=* | --hos=* | --ho=*)
876 host_alias=$ac_optarg ;;
877
878 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
879 ac_prev=htmldir ;;
880 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
881 | --ht=*)
882 htmldir=$ac_optarg ;;
883
884 -includedir | --includedir | --includedi | --included | --include \
885 | --includ | --inclu | --incl | --inc)
886 ac_prev=includedir ;;
887 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
888 | --includ=* | --inclu=* | --incl=* | --inc=*)
889 includedir=$ac_optarg ;;
890
891 -infodir | --infodir | --infodi | --infod | --info | --inf)
892 ac_prev=infodir ;;
893 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
894 infodir=$ac_optarg ;;
895
896 -libdir | --libdir | --libdi | --libd)
897 ac_prev=libdir ;;
898 -libdir=* | --libdir=* | --libdi=* | --libd=*)
899 libdir=$ac_optarg ;;
900
901 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
902 | --libexe | --libex | --libe)
903 ac_prev=libexecdir ;;
904 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
905 | --libexe=* | --libex=* | --libe=*)
906 libexecdir=$ac_optarg ;;
907
908 -localedir | --localedir | --localedi | --localed | --locale)
909 ac_prev=localedir ;;
910 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911 localedir=$ac_optarg ;;
912
913 -localstatedir | --localstatedir | --localstatedi | --localstated \
914 | --localstate | --localstat | --localsta | --localst | --locals)
915 ac_prev=localstatedir ;;
916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
918 localstatedir=$ac_optarg ;;
919
920 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
921 ac_prev=mandir ;;
922 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
923 mandir=$ac_optarg ;;
924
925 -nfp | --nfp | --nf)
926 # Obsolete; use --without-fp.
927 with_fp=no ;;
928
929 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
930 | --no-cr | --no-c | -n)
931 no_create=yes ;;
932
933 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
934 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
935 no_recursion=yes ;;
936
937 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
938 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
939 | --oldin | --oldi | --old | --ol | --o)
940 ac_prev=oldincludedir ;;
941 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
942 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
943 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
944 oldincludedir=$ac_optarg ;;
945
946 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
947 ac_prev=prefix ;;
948 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
949 prefix=$ac_optarg ;;
950
951 -program-prefix | --program-prefix | --program-prefi | --program-pref \
952 | --program-pre | --program-pr | --program-p)
953 ac_prev=program_prefix ;;
954 -program-prefix=* | --program-prefix=* | --program-prefi=* \
955 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
956 program_prefix=$ac_optarg ;;
957
958 -program-suffix | --program-suffix | --program-suffi | --program-suff \
959 | --program-suf | --program-su | --program-s)
960 ac_prev=program_suffix ;;
961 -program-suffix=* | --program-suffix=* | --program-suffi=* \
962 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
963 program_suffix=$ac_optarg ;;
964
965 -program-transform-name | --program-transform-name \
966 | --program-transform-nam | --program-transform-na \
967 | --program-transform-n | --program-transform- \
968 | --program-transform | --program-transfor \
969 | --program-transfo | --program-transf \
970 | --program-trans | --program-tran \
971 | --progr-tra | --program-tr | --program-t)
972 ac_prev=program_transform_name ;;
973 -program-transform-name=* | --program-transform-name=* \
974 | --program-transform-nam=* | --program-transform-na=* \
975 | --program-transform-n=* | --program-transform-=* \
976 | --program-transform=* | --program-transfor=* \
977 | --program-transfo=* | --program-transf=* \
978 | --program-trans=* | --program-tran=* \
979 | --progr-tra=* | --program-tr=* | --program-t=*)
980 program_transform_name=$ac_optarg ;;
981
982 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
983 ac_prev=pdfdir ;;
984 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
985 pdfdir=$ac_optarg ;;
986
987 -psdir | --psdir | --psdi | --psd | --ps)
988 ac_prev=psdir ;;
989 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
990 psdir=$ac_optarg ;;
991
992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
993 | -silent | --silent | --silen | --sile | --sil)
994 silent=yes ;;
995
996 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
997 ac_prev=sbindir ;;
998 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
999 | --sbi=* | --sb=*)
1000 sbindir=$ac_optarg ;;
1001
1002 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1003 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1004 | --sharedst | --shareds | --shared | --share | --shar \
1005 | --sha | --sh)
1006 ac_prev=sharedstatedir ;;
1007 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1008 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1009 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1010 | --sha=* | --sh=*)
1011 sharedstatedir=$ac_optarg ;;
1012
1013 -site | --site | --sit)
1014 ac_prev=site ;;
1015 -site=* | --site=* | --sit=*)
1016 site=$ac_optarg ;;
1017
1018 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1019 ac_prev=srcdir ;;
1020 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1021 srcdir=$ac_optarg ;;
1022
1023 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1024 | --syscon | --sysco | --sysc | --sys | --sy)
1025 ac_prev=sysconfdir ;;
1026 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1027 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1028 sysconfdir=$ac_optarg ;;
1029
1030 -target | --target | --targe | --targ | --tar | --ta | --t)
1031 ac_prev=target_alias ;;
1032 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1033 target_alias=$ac_optarg ;;
1034
1035 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1036 verbose=yes ;;
1037
1038 -version | --version | --versio | --versi | --vers | -V)
1039 ac_init_version=: ;;
1040
1041 -with-* | --with-*)
1042 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=\$ac_optarg ;;
1049
1050 -without-* | --without-*)
1051 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057 eval with_$ac_package=no ;;
1058
1059 --x)
1060 # Obsolete; use --with-x.
1061 with_x=yes ;;
1062
1063 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1064 | --x-incl | --x-inc | --x-in | --x-i)
1065 ac_prev=x_includes ;;
1066 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1067 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1068 x_includes=$ac_optarg ;;
1069
1070 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1071 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1072 ac_prev=x_libraries ;;
1073 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1074 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1075 x_libraries=$ac_optarg ;;
1076
1077 -*) { echo "$as_me: error: unrecognized option: $ac_option
1078 Try \`$0 --help' for more information." >&2
1079 { (exit 1); exit 1; }; }
1080 ;;
1081
1082 *=*)
1083 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1086 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1087 { (exit 1); exit 1; }; }
1088 eval $ac_envvar=\$ac_optarg
1089 export $ac_envvar ;;
1090
1091 *)
1092 # FIXME: should be removed in autoconf 3.0.
1093 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1094 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1096 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1097 ;;
1098
1099 esac
1100 done
1101
1102 if test -n "$ac_prev"; then
1103 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1104 { echo "$as_me: error: missing argument to $ac_option" >&2
1105 { (exit 1); exit 1; }; }
1106 fi
1107
1108 # Be sure to have absolute directory names.
1109 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1110 datadir sysconfdir sharedstatedir localstatedir includedir \
1111 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1112 libdir localedir mandir
1113 do
1114 eval ac_val=\$$ac_var
1115 case $ac_val in
1116 [\\/$]* | ?:[\\/]* ) continue;;
1117 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1118 esac
1119 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1120 { (exit 1); exit 1; }; }
1121 done
1122
1123 # There might be people who depend on the old broken behavior: `$host'
1124 # used to hold the argument of --host etc.
1125 # FIXME: To remove some day.
1126 build=$build_alias
1127 host=$host_alias
1128 target=$target_alias
1129
1130 # FIXME: To remove some day.
1131 if test "x$host_alias" != x; then
1132 if test "x$build_alias" = x; then
1133 cross_compiling=maybe
1134 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1135 If a cross compiler is detected then cross compile mode will be used." >&2
1136 elif test "x$build_alias" != "x$host_alias"; then
1137 cross_compiling=yes
1138 fi
1139 fi
1140
1141 ac_tool_prefix=
1142 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143
1144 test "$silent" = yes && exec 6>/dev/null
1145
1146
1147 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148 ac_ls_di=`ls -di .` &&
1149 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150 { echo "$as_me: error: Working directory cannot be determined" >&2
1151 { (exit 1); exit 1; }; }
1152 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1153 { echo "$as_me: error: pwd does not report name of working directory" >&2
1154 { (exit 1); exit 1; }; }
1155
1156
1157 # Find the source files, if location was not specified.
1158 if test -z "$srcdir"; then
1159 ac_srcdir_defaulted=yes
1160 # Try the directory containing this script, then the parent directory.
1161 ac_confdir=`$as_dirname -- "$0" ||
1162 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163 X"$0" : 'X\(//\)[^/]' \| \
1164 X"$0" : 'X\(//\)$' \| \
1165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1166 echo X"$0" |
1167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\/\)[^/].*/{
1172 s//\1/
1173 q
1174 }
1175 /^X\(\/\/\)$/{
1176 s//\1/
1177 q
1178 }
1179 /^X\(\/\).*/{
1180 s//\1/
1181 q
1182 }
1183 s/.*/./; q'`
1184 srcdir=$ac_confdir
1185 if test ! -r "$srcdir/$ac_unique_file"; then
1186 srcdir=..
1187 fi
1188 else
1189 ac_srcdir_defaulted=no
1190 fi
1191 if test ! -r "$srcdir/$ac_unique_file"; then
1192 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1193 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1194 { (exit 1); exit 1; }; }
1195 fi
1196 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197 ac_abs_confdir=`(
1198 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1199 { (exit 1); exit 1; }; }
1200 pwd)`
1201 # When building in place, set srcdir=.
1202 if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204 fi
1205 # Remove unnecessary trailing slashes from srcdir.
1206 # Double slashes in file names in object file debugging info
1207 # mess up M-x gdb in Emacs.
1208 case $srcdir in
1209 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210 esac
1211 for ac_var in $ac_precious_vars; do
1212 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1213 eval ac_env_${ac_var}_value=\$${ac_var}
1214 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1215 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1216 done
1217
1218 #
1219 # Report the --help message.
1220 #
1221 if test "$ac_init_help" = "long"; then
1222 # Omit some internal or obsolete options to make the list less imposing.
1223 # This message is too long to be a string in the A/UX 3.1 sh.
1224 cat <<_ACEOF
1225 \`configure' configures charybdis 3.1 to adapt to many kinds of systems.
1226
1227 Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230 VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232 Defaults for the options are specified in brackets.
1233
1234 Configuration:
1235 -h, --help display this help and exit
1236 --help=short display options specific to this package
1237 --help=recursive display the short help of all the included packages
1238 -V, --version display version information and exit
1239 -q, --quiet, --silent do not print \`checking...' messages
1240 --cache-file=FILE cache test results in FILE [disabled]
1241 -C, --config-cache alias for \`--cache-file=config.cache'
1242 -n, --no-create do not create output files
1243 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1244
1245 Installation directories:
1246 --prefix=PREFIX install architecture-independent files in PREFIX
1247 [$ac_default_prefix]
1248 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1249 [PREFIX]
1250
1251 By default, \`make install' will install all the files in
1252 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254 for instance \`--prefix=\$HOME'.
1255
1256 For better control, use the options below.
1257
1258 Fine tuning of the installation directories:
1259 --bindir=DIR user executables [EPREFIX/bin]
1260 --sbindir=DIR system admin executables [EPREFIX/sbin]
1261 --libexecdir=DIR program executables [EPREFIX/libexec]
1262 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1263 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1264 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1265 --libdir=DIR object code libraries [EPREFIX/lib]
1266 --includedir=DIR C header files [PREFIX/include]
1267 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1268 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1269 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1270 --infodir=DIR info documentation [DATAROOTDIR/info]
1271 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1272 --mandir=DIR man documentation [DATAROOTDIR/man]
1273 --docdir=DIR documentation root [DATAROOTDIR/doc/charybdis]
1274 --htmldir=DIR html documentation [DOCDIR]
1275 --dvidir=DIR dvi documentation [DOCDIR]
1276 --pdfdir=DIR pdf documentation [DOCDIR]
1277 --psdir=DIR ps documentation [DOCDIR]
1278 _ACEOF
1279
1280 cat <<\_ACEOF
1281 _ACEOF
1282 fi
1283
1284 if test -n "$ac_init_help"; then
1285 case $ac_init_help in
1286 short | recursive ) echo "Configuration of charybdis 3.1:";;
1287 esac
1288 cat <<\_ACEOF
1289
1290 Optional Features:
1291 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1292 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1293 --enable-ipv6 Enable IPv6 support
1294 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1295 --disable-openssl Disable OpenSSL support.
1296 --disable-zlib Disable ziplinks support
1297 --enable-ports Force solaris I/O ports subsystem usage.
1298 --enable-poll Force poll() usage.
1299 --enable-select Force select() usage.
1300 --enable-kqueue Force kqueue() usage.
1301 --enable-epoll Force sys_epoll usage (Linux only).
1302 --enable-assert Enable assert(). Choose between soft(warnings) and
1303 hard(aborts the daemon)
1304 --enable-iodebug Enable IO Debugging hooks
1305 --enable-profile Enable profiling
1306 --disable-balloc Disable the block allocator.
1307 --enable-small-net Enable small network support.
1308 --enable-warnings Enable all sorts of warnings for debugging.
1309
1310 Optional Packages:
1311 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1312 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1313 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1314 --with-confdir=DIR Directory to install config files.
1315 --with-logdir=DIR Directory where to write logfiles.
1316 --with-helpdir=DIR Directory to install help files.
1317 --with-moduledir=DIR Directory to install modules.
1318 --with-nicklen=LENGTH Set the nick length to LENGTH (default 15, max 50)
1319 --with-topiclen=NUMBER Set the max topic length to NUMBER (default 390, max
1320 390)
1321
1322 Some influential environment variables:
1323 CC C compiler command
1324 CFLAGS C compiler flags
1325 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1326 nonstandard directory <lib dir>
1327 LIBS libraries to pass to the linker, e.g. -l<library>
1328 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1329 you have headers in a nonstandard directory <include dir>
1330 CPP C preprocessor
1331 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1332 the first program found out of: `bison -y', `byacc', `yacc'.
1333 YFLAGS The list of arguments that will be passed by default to $YACC.
1334 This script will default YFLAGS to the empty string to avoid a
1335 default value of `-d' given by some make applications.
1336
1337 Use these variables to override the choices made by `configure' or to help
1338 it to find libraries and programs with nonstandard names/locations.
1339
1340 _ACEOF
1341 ac_status=$?
1342 fi
1343
1344 if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1347 test -d "$ac_dir" || continue
1348 ac_builddir=.
1349
1350 case "$ac_dir" in
1351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352 *)
1353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1354 # A ".." for each directory in $ac_dir_suffix.
1355 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1356 case $ac_top_builddir_sub in
1357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359 esac ;;
1360 esac
1361 ac_abs_top_builddir=$ac_pwd
1362 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363 # for backward compatibility:
1364 ac_top_builddir=$ac_top_build_prefix
1365
1366 case $srcdir in
1367 .) # We are building in place.
1368 ac_srcdir=.
1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
1372 ac_srcdir=$srcdir$ac_dir_suffix;
1373 ac_top_srcdir=$srcdir
1374 ac_abs_top_srcdir=$srcdir ;;
1375 *) # Relative name.
1376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377 ac_top_srcdir=$ac_top_build_prefix$srcdir
1378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379 esac
1380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
1382 cd "$ac_dir" || { ac_status=$?; continue; }
1383 # Check for guested configure.
1384 if test -f "$ac_srcdir/configure.gnu"; then
1385 echo &&
1386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387 elif test -f "$ac_srcdir/configure"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure" --help=recursive
1390 else
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
1394 done
1395 fi
1396
1397 test -n "$ac_init_help" && exit $ac_status
1398 if $ac_init_version; then
1399 cat <<\_ACEOF
1400 charybdis configure 3.1
1401 generated by GNU Autoconf 2.61
1402
1403 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1404 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1405 This configure script is free software; the Free Software Foundation
1406 gives unlimited permission to copy, distribute and modify it.
1407
1408 $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
1409 _ACEOF
1410 exit
1411 fi
1412 cat >config.log <<_ACEOF
1413 This file contains any messages produced by compilers while
1414 running configure, to aid debugging if configure makes a mistake.
1415
1416 It was created by charybdis $as_me 3.1, which was
1417 generated by GNU Autoconf 2.61. Invocation command line was
1418
1419 $ $0 $@
1420
1421 _ACEOF
1422 exec 5>>config.log
1423 {
1424 cat <<_ASUNAME
1425 ## --------- ##
1426 ## Platform. ##
1427 ## --------- ##
1428
1429 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1434
1435 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1436 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1437
1438 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1439 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1440 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1441 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1442 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1443 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1444 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1445
1446 _ASUNAME
1447
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 echo "PATH: $as_dir"
1454 done
1455 IFS=$as_save_IFS
1456
1457 } >&5
1458
1459 cat >&5 <<_ACEOF
1460
1461
1462 ## ----------- ##
1463 ## Core tests. ##
1464 ## ----------- ##
1465
1466 _ACEOF
1467
1468
1469 # Keep a trace of the command line.
1470 # Strip out --no-create and --no-recursion so they do not pile up.
1471 # Strip out --silent because we don't want to record it for future runs.
1472 # Also quote any args containing shell meta-characters.
1473 # Make two passes to allow for proper duplicate-argument suppression.
1474 ac_configure_args=
1475 ac_configure_args0=
1476 ac_configure_args1=
1477 ac_must_keep_next=false
1478 for ac_pass in 1 2
1479 do
1480 for ac_arg
1481 do
1482 case $ac_arg in
1483 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1484 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1485 | -silent | --silent | --silen | --sile | --sil)
1486 continue ;;
1487 *\'*)
1488 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 esac
1490 case $ac_pass in
1491 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1492 2)
1493 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1494 if test $ac_must_keep_next = true; then
1495 ac_must_keep_next=false # Got value, back to normal.
1496 else
1497 case $ac_arg in
1498 *=* | --config-cache | -C | -disable-* | --disable-* \
1499 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1500 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1501 | -with-* | --with-* | -without-* | --without-* | --x)
1502 case "$ac_configure_args0 " in
1503 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1504 esac
1505 ;;
1506 -* ) ac_must_keep_next=true ;;
1507 esac
1508 fi
1509 ac_configure_args="$ac_configure_args '$ac_arg'"
1510 ;;
1511 esac
1512 done
1513 done
1514 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1515 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1516
1517 # When interrupted or exit'd, cleanup temporary files, and complete
1518 # config.log. We remove comments because anyway the quotes in there
1519 # would cause problems or look ugly.
1520 # WARNING: Use '\'' to represent an apostrophe within the trap.
1521 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1522 trap 'exit_status=$?
1523 # Save into config.log some information that might help in debugging.
1524 {
1525 echo
1526
1527 cat <<\_ASBOX
1528 ## ---------------- ##
1529 ## Cache variables. ##
1530 ## ---------------- ##
1531 _ASBOX
1532 echo
1533 # The following way of writing the cache mishandles newlines in values,
1534 (
1535 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1536 eval ac_val=\$$ac_var
1537 case $ac_val in #(
1538 *${as_nl}*)
1539 case $ac_var in #(
1540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1542 esac
1543 case $ac_var in #(
1544 _ | IFS | as_nl) ;; #(
1545 *) $as_unset $ac_var ;;
1546 esac ;;
1547 esac
1548 done
1549 (set) 2>&1 |
1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
1552 sed -n \
1553 "s/'\''/'\''\\\\'\'''\''/g;
1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1555 ;; #(
1556 *)
1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1558 ;;
1559 esac |
1560 sort
1561 )
1562 echo
1563
1564 cat <<\_ASBOX
1565 ## ----------------- ##
1566 ## Output variables. ##
1567 ## ----------------- ##
1568 _ASBOX
1569 echo
1570 for ac_var in $ac_subst_vars
1571 do
1572 eval ac_val=\$$ac_var
1573 case $ac_val in
1574 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575 esac
1576 echo "$ac_var='\''$ac_val'\''"
1577 done | sort
1578 echo
1579
1580 if test -n "$ac_subst_files"; then
1581 cat <<\_ASBOX
1582 ## ------------------- ##
1583 ## File substitutions. ##
1584 ## ------------------- ##
1585 _ASBOX
1586 echo
1587 for ac_var in $ac_subst_files
1588 do
1589 eval ac_val=\$$ac_var
1590 case $ac_val in
1591 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1592 esac
1593 echo "$ac_var='\''$ac_val'\''"
1594 done | sort
1595 echo
1596 fi
1597
1598 if test -s confdefs.h; then
1599 cat <<\_ASBOX
1600 ## ----------- ##
1601 ## confdefs.h. ##
1602 ## ----------- ##
1603 _ASBOX
1604 echo
1605 cat confdefs.h
1606 echo
1607 fi
1608 test "$ac_signal" != 0 &&
1609 echo "$as_me: caught signal $ac_signal"
1610 echo "$as_me: exit $exit_status"
1611 } >&5
1612 rm -f core *.core core.conftest.* &&
1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1614 exit $exit_status
1615 ' 0
1616 for ac_signal in 1 2 13 15; do
1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618 done
1619 ac_signal=0
1620
1621 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1622 rm -f -r conftest* confdefs.h
1623
1624 # Predefined preprocessor variables.
1625
1626 cat >>confdefs.h <<_ACEOF
1627 #define PACKAGE_NAME "$PACKAGE_NAME"
1628 _ACEOF
1629
1630
1631 cat >>confdefs.h <<_ACEOF
1632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633 _ACEOF
1634
1635
1636 cat >>confdefs.h <<_ACEOF
1637 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1638 _ACEOF
1639
1640
1641 cat >>confdefs.h <<_ACEOF
1642 #define PACKAGE_STRING "$PACKAGE_STRING"
1643 _ACEOF
1644
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1648 _ACEOF
1649
1650
1651 # Let the site file select an alternate cache file if it wants to.
1652 # Prefer explicitly selected file to automatically selected ones.
1653 if test -n "$CONFIG_SITE"; then
1654 set x "$CONFIG_SITE"
1655 elif test "x$prefix" != xNONE; then
1656 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1657 else
1658 set x "$ac_default_prefix/share/config.site" \
1659 "$ac_default_prefix/etc/config.site"
1660 fi
1661 shift
1662 for ac_site_file
1663 do
1664 if test -r "$ac_site_file"; then
1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1666 echo "$as_me: loading site script $ac_site_file" >&6;}
1667 sed 's/^/| /' "$ac_site_file" >&5
1668 . "$ac_site_file"
1669 fi
1670 done
1671
1672 if test -r "$cache_file"; then
1673 # Some versions of bash will fail to source /dev/null (special
1674 # files actually), so we avoid doing that.
1675 if test -f "$cache_file"; then
1676 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1677 echo "$as_me: loading cache $cache_file" >&6;}
1678 case $cache_file in
1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
1681 esac
1682 fi
1683 else
1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1685 echo "$as_me: creating cache $cache_file" >&6;}
1686 >$cache_file
1687 fi
1688
1689 # Check that the precious variables saved in the cache have kept the same
1690 # value.
1691 ac_cache_corrupted=false
1692 for ac_var in $ac_precious_vars; do
1693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1694 eval ac_new_set=\$ac_env_${ac_var}_set
1695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1696 eval ac_new_val=\$ac_env_${ac_var}_value
1697 case $ac_old_set,$ac_new_set in
1698 set,)
1699 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1700 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1701 ac_cache_corrupted=: ;;
1702 ,set)
1703 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1704 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1705 ac_cache_corrupted=: ;;
1706 ,);;
1707 *)
1708 if test "x$ac_old_val" != "x$ac_new_val"; then
1709 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1710 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1712 echo "$as_me: former value: $ac_old_val" >&2;}
1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1714 echo "$as_me: current value: $ac_new_val" >&2;}
1715 ac_cache_corrupted=:
1716 fi;;
1717 esac
1718 # Pass precious variables to config.status.
1719 if test "$ac_new_set" = set; then
1720 case $ac_new_val in
1721 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1722 *) ac_arg=$ac_var=$ac_new_val ;;
1723 esac
1724 case " $ac_configure_args " in
1725 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1726 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1727 esac
1728 fi
1729 done
1730 if $ac_cache_corrupted; then
1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1732 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1733 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1734 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1735 { (exit 1); exit 1; }; }
1736 fi
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762 ac_ext=c
1763 ac_cpp='$CPP $CPPFLAGS'
1764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767
1768
1769
1770 ac_config_headers="$ac_config_headers include/setup.h"
1771
1772
1773
1774
1775
1776 cat >>confdefs.h <<\_ACEOF
1777 #define _GNU_SOURCE 1
1778 _ACEOF
1779
1780
1781
1782 OLD_CFLAGS="$CFLAGS"
1783 ac_ext=c
1784 ac_cpp='$CPP $CPPFLAGS'
1785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 if test -n "$ac_tool_prefix"; then
1789 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1790 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1793 if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1806 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1809 fi
1810 done
1811 done
1812 IFS=$as_save_IFS
1813
1814 fi
1815 fi
1816 CC=$ac_cv_prog_CC
1817 if test -n "$CC"; then
1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6; }
1820 else
1821 { echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6; }
1823 fi
1824
1825
1826 fi
1827 if test -z "$ac_cv_prog_CC"; then
1828 ac_ct_CC=$CC
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 else
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 else
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 for as_dir in $PATH
1841 do
1842 IFS=$as_save_IFS
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1846 ac_cv_prog_ac_ct_CC="gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1848 break 2
1849 fi
1850 done
1851 done
1852 IFS=$as_save_IFS
1853
1854 fi
1855 fi
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6; }
1860 else
1861 { echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6; }
1863 fi
1864
1865 if test "x$ac_ct_CC" = x; then
1866 CC=""
1867 else
1868 case $cross_compiling:$ac_tool_warned in
1869 yes:)
1870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1871 whose name does not start with the host triplet. If you think this
1872 configuration is useful to you, please write to autoconf@gnu.org." >&5
1873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1874 whose name does not start with the host triplet. If you think this
1875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876 ac_tool_warned=yes ;;
1877 esac
1878 CC=$ac_ct_CC
1879 fi
1880 else
1881 CC="$ac_cv_prog_CC"
1882 fi
1883
1884 if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887 set dummy ${ac_tool_prefix}cc; ac_word=$2
1888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897 for as_dir in $PATH
1898 do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903 ac_cv_prog_CC="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1906 fi
1907 done
1908 done
1909 IFS=$as_save_IFS
1910
1911 fi
1912 fi
1913 CC=$ac_cv_prog_CC
1914 if test -n "$CC"; then
1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916 echo "${ECHO_T}$CC" >&6; }
1917 else
1918 { echo "$as_me:$LINENO: result: no" >&5
1919 echo "${ECHO_T}no" >&6; }
1920 fi
1921
1922
1923 fi
1924 fi
1925 if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927 set dummy cc; ac_word=$2
1928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1930 if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935 else
1936 ac_prog_rejected=no
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
1942 for ac_exec_ext in '' $ac_executable_extensions; do
1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1944 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945 ac_prog_rejected=yes
1946 continue
1947 fi
1948 ac_cv_prog_CC="cc"
1949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950 break 2
1951 fi
1952 done
1953 done
1954 IFS=$as_save_IFS
1955
1956 if test $ac_prog_rejected = yes; then
1957 # We found a bogon in the path, so make sure we never use it.
1958 set dummy $ac_cv_prog_CC
1959 shift
1960 if test $# != 0; then
1961 # We chose a different compiler from the bogus one.
1962 # However, it has the same basename, so the bogon will be chosen
1963 # first if we set CC to just the basename; use the full file name.
1964 shift
1965 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1966 fi
1967 fi
1968 fi
1969 fi
1970 CC=$ac_cv_prog_CC
1971 if test -n "$CC"; then
1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973 echo "${ECHO_T}$CC" >&6; }
1974 else
1975 { echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6; }
1977 fi
1978
1979
1980 fi
1981 if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog in cl.exe
1984 do
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1989 if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006 done
2007 done
2008 IFS=$as_save_IFS
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6; }
2016 else
2017 { echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6; }
2019 fi
2020
2021
2022 test -n "$CC" && break
2023 done
2024 fi
2025 if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl.exe
2028 do
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy $ac_prog; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_ac_ct_CC="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050 done
2051 done
2052 IFS=$as_save_IFS
2053
2054 fi
2055 fi
2056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6; }
2060 else
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2063 fi
2064
2065
2066 test -n "$ac_ct_CC" && break
2067 done
2068
2069 if test "x$ac_ct_CC" = x; then
2070 CC=""
2071 else
2072 case $cross_compiling:$ac_tool_warned in
2073 yes:)
2074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet. If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&5
2077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2078 whose name does not start with the host triplet. If you think this
2079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2080 ac_tool_warned=yes ;;
2081 esac
2082 CC=$ac_ct_CC
2083 fi
2084 fi
2085
2086 fi
2087
2088
2089 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: no acceptable C compiler found in \$PATH
2092 See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2094
2095 # Provide some information about the compiler.
2096 echo "$as_me:$LINENO: checking for C compiler version" >&5
2097 ac_compiler=`set X $ac_compile; echo $2`
2098 { (ac_try="$ac_compiler --version >&5"
2099 case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102 esac
2103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2104 (eval "$ac_compiler --version >&5") 2>&5
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (ac_try="$ac_compiler -v >&5"
2109 case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112 esac
2113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2114 (eval "$ac_compiler -v >&5") 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (ac_try="$ac_compiler -V >&5"
2119 case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122 esac
2123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2124 (eval "$ac_compiler -V >&5") 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }
2128
2129 cat >conftest.$ac_ext <<_ACEOF
2130 /* confdefs.h. */
2131 _ACEOF
2132 cat confdefs.h >>conftest.$ac_ext
2133 cat >>conftest.$ac_ext <<_ACEOF
2134 /* end confdefs.h. */
2135
2136 int
2137 main ()
2138 {
2139
2140 ;
2141 return 0;
2142 }
2143 _ACEOF
2144 ac_clean_files_save=$ac_clean_files
2145 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2146 # Try to create an executable without -o first, disregard a.out.
2147 # It will help us diagnose broken compilers, and finding out an intuition
2148 # of exeext.
2149 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2150 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2152 #
2153 # List of possible output files, starting from the most likely.
2154 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2155 # only as a last resort. b.out is created by i960 compilers.
2156 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2157 #
2158 # The IRIX 6 linker writes into existing files which may not be
2159 # executable, retaining their permissions. Remove them first so a
2160 # subsequent execution test works.
2161 ac_rmfiles=
2162 for ac_file in $ac_files
2163 do
2164 case $ac_file in
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2166 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2167 esac
2168 done
2169 rm -f $ac_rmfiles
2170
2171 if { (ac_try="$ac_link_default"
2172 case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175 esac
2176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2177 (eval "$ac_link_default") 2>&5
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2182 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2183 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2184 # so that the user can short-circuit this test for compilers unknown to
2185 # Autoconf.
2186 for ac_file in $ac_files ''
2187 do
2188 test -f "$ac_file" || continue
2189 case $ac_file in
2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2191 ;;
2192 [ab].out )
2193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
2196 *.* )
2197 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2198 then :; else
2199 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2200 fi
2201 # We set ac_cv_exeext here because the later test for it is not
2202 # safe: cross compilers may not add the suffix if given an `-o'
2203 # argument, so we may need to know it at that point already.
2204 # Even if this section looks crufty: it has the advantage of
2205 # actually working.
2206 break;;
2207 * )
2208 break;;
2209 esac
2210 done
2211 test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
2213 else
2214 ac_file=''
2215 fi
2216
2217 { echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6; }
2219 if test -z "$ac_file"; then
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224 See \`config.log' for more details." >&5
2225 echo "$as_me: error: C compiler cannot create executables
2226 See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2228 fi
2229
2230 ac_exeext=$ac_cv_exeext
2231
2232 # Check that the compiler produces executables we can run. If not, either
2233 # the compiler is broken, or we cross compile.
2234 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2236 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2237 # If not cross compiling, check that we can run a simple program.
2238 if test "$cross_compiling" != yes; then
2239 if { ac_try='./$ac_file'
2240 { (case "(($ac_try" in
2241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2242 *) ac_try_echo=$ac_try;;
2243 esac
2244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2245 (eval "$ac_try") 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 cross_compiling=no
2250 else
2251 if test "$cross_compiling" = maybe; then
2252 cross_compiling=yes
2253 else
2254 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2255 If you meant to cross compile, use \`--host'.
2256 See \`config.log' for more details." >&5
2257 echo "$as_me: error: cannot run C compiled programs.
2258 If you meant to cross compile, use \`--host'.
2259 See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262 fi
2263 fi
2264 { echo "$as_me:$LINENO: result: yes" >&5
2265 echo "${ECHO_T}yes" >&6; }
2266
2267 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268 ac_clean_files=$ac_clean_files_save
2269 # Check that the compiler produces executables we can run. If not, either
2270 # the compiler is broken, or we cross compile.
2271 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2272 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274 echo "${ECHO_T}$cross_compiling" >&6; }
2275
2276 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278 if { (ac_try="$ac_link"
2279 case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282 esac
2283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_link") 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2291 # `rm'.
2292 for ac_file in conftest.exe conftest conftest.*; do
2293 test -f "$ac_file" || continue
2294 case $ac_file in
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297 break;;
2298 * ) break;;
2299 esac
2300 done
2301 else
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303 See \`config.log' for more details." >&5
2304 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305 See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2307 fi
2308
2309 rm -f conftest$ac_cv_exeext
2310 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2312
2313 rm -f conftest.$ac_ext
2314 EXEEXT=$ac_cv_exeext
2315 ac_exeext=$EXEEXT
2316 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318 if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320 else
2321 cat >conftest.$ac_ext <<_ACEOF
2322 /* confdefs.h. */
2323 _ACEOF
2324 cat confdefs.h >>conftest.$ac_ext
2325 cat >>conftest.$ac_ext <<_ACEOF
2326 /* end confdefs.h. */
2327
2328 int
2329 main ()
2330 {
2331
2332 ;
2333 return 0;
2334 }
2335 _ACEOF
2336 rm -f conftest.o conftest.obj
2337 if { (ac_try="$ac_compile"
2338 case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341 esac
2342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_compile") 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
2349 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2351 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2352 break;;
2353 esac
2354 done
2355 else
2356 echo "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2358
2359 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360 See \`config.log' for more details." >&5
2361 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362 See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2364 fi
2365
2366 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367 fi
2368 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369 echo "${ECHO_T}$ac_cv_objext" >&6; }
2370 OBJEXT=$ac_cv_objext
2371 ac_objext=$OBJEXT
2372 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2374 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377 cat >conftest.$ac_ext <<_ACEOF
2378 /* confdefs.h. */
2379 _ACEOF
2380 cat confdefs.h >>conftest.$ac_ext
2381 cat >>conftest.$ac_ext <<_ACEOF
2382 /* end confdefs.h. */
2383
2384 int
2385 main ()
2386 {
2387 #ifndef __GNUC__
2388 choke me
2389 #endif
2390
2391 ;
2392 return 0;
2393 }
2394 _ACEOF
2395 rm -f conftest.$ac_objext
2396 if { (ac_try="$ac_compile"
2397 case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compile") 2>conftest.er1
2403 ac_status=$?
2404 grep -v '^ *+' conftest.er1 >conftest.err
2405 rm -f conftest.er1
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then
2412 ac_compiler_gnu=yes
2413 else
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418 fi
2419
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423 fi
2424 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
2427 ac_test_CFLAGS=${CFLAGS+set}
2428 ac_save_CFLAGS=$CFLAGS
2429 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 else
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2436 ac_cv_prog_cc_g=no
2437 CFLAGS="-g"
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444
2445 int
2446 main ()
2447 {
2448
2449 ;
2450 return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (ac_try="$ac_compile"
2455 case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2461 ac_status=$?
2462 grep -v '^ *+' conftest.er1 >conftest.err
2463 rm -f conftest.er1
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } && {
2467 test -z "$ac_c_werror_flag" ||
2468 test ! -s conftest.err
2469 } && test -s conftest.$ac_objext; then
2470 ac_cv_prog_cc_g=yes
2471 else
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 CFLAGS=""
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482
2483 int
2484 main ()
2485 {
2486
2487 ;
2488 return 0;
2489 }
2490 _ACEOF
2491 rm -f conftest.$ac_objext
2492 if { (ac_try="$ac_compile"
2493 case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496 esac
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_compile") 2>conftest.er1
2499 ac_status=$?
2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } && {
2505 test -z "$ac_c_werror_flag" ||
2506 test ! -s conftest.err
2507 } && test -s conftest.$ac_objext; then
2508 :
2509 else
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512
2513 ac_c_werror_flag=$ac_save_c_werror_flag
2514 CFLAGS="-g"
2515 cat >conftest.$ac_ext <<_ACEOF
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521
2522 int
2523 main ()
2524 {
2525
2526 ;
2527 return 0;
2528 }
2529 _ACEOF
2530 rm -f conftest.$ac_objext
2531 if { (ac_try="$ac_compile"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compile") 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
2547 ac_cv_prog_cc_g=yes
2548 else
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2551
2552
2553 fi
2554
2555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 fi
2557
2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559 fi
2560
2561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 ac_c_werror_flag=$ac_save_c_werror_flag
2563 fi
2564 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2566 if test "$ac_test_CFLAGS" = set; then
2567 CFLAGS=$ac_save_CFLAGS
2568 elif test $ac_cv_prog_cc_g = yes; then
2569 if test "$GCC" = yes; then
2570 CFLAGS="-g -O2"
2571 else
2572 CFLAGS="-g"
2573 fi
2574 else
2575 if test "$GCC" = yes; then
2576 CFLAGS="-O2"
2577 else
2578 CFLAGS=
2579 fi
2580 fi
2581 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2582 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_cc_c89+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 ac_cv_prog_cc_c89=no
2587 ac_save_CC=$CC
2588 cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h. */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h. */
2594 #include <stdarg.h>
2595 #include <stdio.h>
2596 #include <sys/types.h>
2597 #include <sys/stat.h>
2598 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2599 struct buf { int x; };
2600 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601 static char *e (p, i)
2602 char **p;
2603 int i;
2604 {
2605 return p[i];
2606 }
2607 static char *f (char * (*g) (char **, int), char **p, ...)
2608 {
2609 char *s;
2610 va_list v;
2611 va_start (v,p);
2612 s = g (p, va_arg (v,int));
2613 va_end (v);
2614 return s;
2615 }
2616
2617 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2618 function prototypes and stuff, but not '\xHH' hex character constants.
2619 These don't provoke an error unfortunately, instead are silently treated
2620 as 'x'. The following induces an error, until -std is added to get
2621 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2622 array size at least. It's necessary to write '\x00'==0 to get something
2623 that's true only with -std. */
2624 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2625
2626 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2627 inside strings and character constants. */
2628 #define FOO(x) 'x'
2629 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2630
2631 int test (int i, double x);
2632 struct s1 {int (*f) (int a);};
2633 struct s2 {int (*f) (double a);};
2634 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2635 int argc;
2636 char **argv;
2637 int
2638 main ()
2639 {
2640 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2641 ;
2642 return 0;
2643 }
2644 _ACEOF
2645 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2647 do
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
2650 if { (ac_try="$ac_compile"
2651 case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654 esac
2655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2656 (eval "$ac_compile") 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } && {
2663 test -z "$ac_c_werror_flag" ||
2664 test ! -s conftest.err
2665 } && test -s conftest.$ac_objext; then
2666 ac_cv_prog_cc_c89=$ac_arg
2667 else
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671
2672 fi
2673
2674 rm -f core conftest.err conftest.$ac_objext
2675 test "x$ac_cv_prog_cc_c89" != "xno" && break
2676 done
2677 rm -f conftest.$ac_ext
2678 CC=$ac_save_CC
2679
2680 fi
2681 # AC_CACHE_VAL
2682 case "x$ac_cv_prog_cc_c89" in
2683 x)
2684 { echo "$as_me:$LINENO: result: none needed" >&5
2685 echo "${ECHO_T}none needed" >&6; } ;;
2686 xno)
2687 { echo "$as_me:$LINENO: result: unsupported" >&5
2688 echo "${ECHO_T}unsupported" >&6; } ;;
2689 *)
2690 CC="$CC $ac_cv_prog_cc_c89"
2691 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2692 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2693 esac
2694
2695
2696 ac_ext=c
2697 ac_cpp='$CPP $CPPFLAGS'
2698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708
2709 CFLAGS="$OLD_CFLAGS"
2710
2711 ac_aux_dir=
2712 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2713 if test -f "$ac_dir/install-sh"; then
2714 ac_aux_dir=$ac_dir
2715 ac_install_sh="$ac_aux_dir/install-sh -c"
2716 break
2717 elif test -f "$ac_dir/install.sh"; then
2718 ac_aux_dir=$ac_dir
2719 ac_install_sh="$ac_aux_dir/install.sh -c"
2720 break
2721 elif test -f "$ac_dir/shtool"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/shtool install -c"
2724 break
2725 fi
2726 done
2727 if test -z "$ac_aux_dir"; then
2728 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2729 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2730 { (exit 1); exit 1; }; }
2731 fi
2732
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740
2741
2742 subdirs="$subdirs libratbox"
2743
2744
2745
2746 if test "$ac_cv_c_compiler_gnu" != yes; then
2747
2748 SGS=no
2749 { echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2750 echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; }
2751 case `$CC -version 2>&1` in
2752 *TenDRA*)
2753 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2754 echo "${ECHO_T}yes, TenDRA" >&6; }
2755 IRC_CFLAGS=""
2756 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
2757 SGS=yes
2758 TenDRA=yes
2759 ;;
2760 *MIPSpro*)
2761 { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2762 echo "${ECHO_T}yes, MIPSpro" >&6; }
2763 MIPSpro=yes
2764 SGS=yes
2765 ;;
2766 *)
2767 { echo "$as_me:$LINENO: result: no" >&5
2768 echo "${ECHO_T}no" >&6; }
2769 TenDRA=no
2770 MIPSpro=no
2771 ;;
2772 esac
2773
2774 { echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2775 echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; }
2776 case `$CC -V 2>&1` in
2777 *Sun*WorkShop* | *Forte*Developer*)
2778 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2779 echo "${ECHO_T}Sun Workshop/Forte" >&6; }
2780 IRC_CFLAGS="-fast -xinline=dlinkAdd,dlinkAddBefore,dlinkAddTail,dlinkDelete,dlink_list_length,dlink_node,dlinkMoveList,_MyMalloc,_MyRealloc,_MyFree,_DupString"
2781 SunWorkShop=yes
2782 SGS=yes
2783 ;;
2784 *Tru64*)
2785 { echo "$as_me:$LINENO: result: Tru64 cc" >&5
2786 echo "${ECHO_T}Tru64 cc" >&6; }
2787 IRC_CFLAGS="-O2"
2788 CPPFLAGS="-I/usr/local/include"
2789 Tru=yes
2790 ;;
2791 *HP*ANSI*)
2792 { echo "$as_me:$LINENO: result: HPUX cc" >&5
2793 echo "${ECHO_T}HPUX cc" >&6; }
2794 HPUX=yes
2795 IRC_CFLAGS="+e"
2796 ;;
2797 *)
2798 { echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6; }
2800 ;;
2801 esac
2802
2803 fi
2804
2805 { echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5
2806 echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; }
2807 OSNAME=`uname -s`
2808 case "$OSNAME" in
2809 HP-UX*)
2810
2811 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
2812 { echo "$as_me:$LINENO: result: assuming old HPUX with its own cc" >&5
2813 echo "${ECHO_T}assuming old HPUX with its own cc" >&6; }
2814 IRC_CFLAGS="$IRC_CFLAGS +e"
2815 HPUX=yes
2816 else
2817 { echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2818 echo "${ECHO_T}already using newer HPUX" >&6; }
2819 fi
2820 ;;
2821 CYGWIN*)
2822 { echo "$as_me:$LINENO: result: Cygwin" >&5
2823 echo "${ECHO_T}Cygwin" >&6; }
2824 CYGWIN=yes
2825 ;;
2826 SunOS*)
2827 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2828 echo "${ECHO_T}SunOS or Solaris" >&6; }
2829
2830 cat >>confdefs.h <<\_ACEOF
2831 #define __EXTENSIONS__ 1
2832 _ACEOF
2833
2834 SUN=yes
2835 ;;
2836 AIX*)
2837 { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2838 echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; }
2839 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2840 ;;
2841 *)
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2844 ;;
2845 esac
2846
2847 if test "$ac_cv_c_compiler_gnu" = yes; then
2848 { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2849 echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; }
2850
2851 case `$CC -v 2>&1 | tail -n 1` in
2852 *Apple*)
2853 { echo "$as_me:$LINENO: result: yes" >&5
2854 echo "${ECHO_T}yes" >&6; }
2855 AppleGCC=yes
2856 ;;
2857 *)
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2860 AppleGCC=no
2861 ;;
2862 esac
2863
2864 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
2865 fi
2866
2867 if test "$ac_cv_prog_cc_g" = yes; then
2868 if test "$Tru" = yes; then
2869 IRC_CFLAGS="$IRC_CFLAGS -g3"
2870 else
2871 IRC_CFLAGS="$IRC_CFLAGS -g"
2872 fi
2873 fi
2874
2875 { echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2876 echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; }
2877 if test "$SGS" = "yes"; then
2878 { echo "$as_me:$LINENO: result: yes" >&5
2879 echo "${ECHO_T}yes" >&6; }
2880 else
2881 { echo "$as_me:$LINENO: result: no" >&5
2882 echo "${ECHO_T}no" >&6; }
2883 fi
2884
2885 # Extract the first word of "mkdep", so it can be a program name with args.
2886 set dummy mkdep; ac_word=$2
2887 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2889 if test "${ac_cv_path_MKDEP+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 case $MKDEP in
2893 [\\/]* | ?:[\\/]*)
2894 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2895 ;;
2896 *)
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2904 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908 done
2909 done
2910 IFS=$as_save_IFS
2911
2912 ;;
2913 esac
2914 fi
2915 MKDEP=$ac_cv_path_MKDEP
2916 if test -n "$MKDEP"; then
2917 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2918 echo "${ECHO_T}$MKDEP" >&6; }
2919 else
2920 { echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6; }
2922 fi
2923
2924
2925 # Extract the first word of "makedepend", so it can be a program name with args.
2926 set dummy makedepend; ac_word=$2
2927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2929 if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932 case $MAKEDEPEND in
2933 [\\/]* | ?:[\\/]*)
2934 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2935 ;;
2936 *)
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 for as_dir in $PATH
2939 do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2944 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948 done
2949 done
2950 IFS=$as_save_IFS
2951
2952 ;;
2953 esac
2954 fi
2955 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2956 if test -n "$MAKEDEPEND"; then
2957 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2958 echo "${ECHO_T}$MAKEDEPEND" >&6; }
2959 else
2960 { echo "$as_me:$LINENO: result: no" >&5
2961 echo "${ECHO_T}no" >&6; }
2962 fi
2963
2964
2965
2966 { echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2967 echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; }
2968
2969 STDOUT="> .depend"
2970
2971 if test "$ac_cv_c_compiler_gnu" = yes; then
2972 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2973 echo "${ECHO_T}gcc -MM" >&6; }
2974 MKDEP="$CC -MM"
2975 elif test ! -z "$MKDEP"; then
2976 { echo "$as_me:$LINENO: result: mkdep" >&5
2977 echo "${ECHO_T}mkdep" >&6; }
2978
2979 if test -z "$Tru"; then
2980 STDOUT=""
2981 else
2982 STDOUT=" 2> /dev/null"
2983 fi
2984 elif test "$SunWorkShop" = yes; then
2985 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2986 echo "${ECHO_T}$CC -xM" >&6; }
2987 MKDEP="$CC -xM"
2988 STDOUT="> .depend 2> /dev/null"
2989 elif test ! -z "$MAKEDEPEND"; then
2990 { echo "$as_me:$LINENO: result: makedepend" >&5
2991 echo "${ECHO_T}makedepend" >&6; }
2992 MKDEP="$MAKEDEPEND -f-"
2993 else
2994 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2995 echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
2996 MKDEP=":"
2997 fi
2998
2999
3000
3001
3002 { echo "$as_me:$LINENO: checking for /dev/null" >&5
3003 echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
3004 if test -c /dev/null ; then
3005
3006 cat >>confdefs.h <<\_ACEOF
3007 #define PATH_DEVNULL "/dev/null"
3008 _ACEOF
3009
3010 { echo "$as_me:$LINENO: result: yes" >&5
3011 echo "${ECHO_T}yes" >&6; }
3012 else
3013
3014 cat >>confdefs.h <<\_ACEOF
3015 #define PATH_DEVNULL "devnull.log"
3016 _ACEOF
3017
3018 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
3019 echo "${ECHO_T}no - using devnull.log" >&6; }
3020 fi
3021
3022 if test ! -z "$CFLAGS"; then
3023 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
3024 fi
3025
3026
3027 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3028 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3029 if test "${ac_cv_search_strerror+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 ac_func_search_save_LIBS=$LIBS
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3039
3040 /* Override any GCC internal prototype to avoid an error.
3041 Use char because int might match the return type of a GCC
3042 builtin and then its argument prototype would still apply. */
3043 #ifdef __cplusplus
3044 extern "C"
3045 #endif
3046 char strerror ();
3047 int
3048 main ()
3049 {
3050 return strerror ();
3051 ;
3052 return 0;
3053 }
3054 _ACEOF
3055 for ac_lib in '' cposix; do
3056 if test -z "$ac_lib"; then
3057 ac_res="none required"
3058 else
3059 ac_res=-l$ac_lib
3060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3061 fi
3062 rm -f conftest.$ac_objext conftest$ac_exeext
3063 if { (ac_try="$ac_link"
3064 case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067 esac
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_link") 2>conftest.er1
3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest$ac_exeext &&
3079 $as_test_x conftest$ac_exeext; then
3080 ac_cv_search_strerror=$ac_res
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085
3086 fi
3087
3088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3089 conftest$ac_exeext
3090 if test "${ac_cv_search_strerror+set}" = set; then
3091 break
3092 fi
3093 done
3094 if test "${ac_cv_search_strerror+set}" = set; then
3095 :
3096 else
3097 ac_cv_search_strerror=no
3098 fi
3099 rm conftest.$ac_ext
3100 LIBS=$ac_func_search_save_LIBS
3101 fi
3102 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3103 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3104 ac_res=$ac_cv_search_strerror
3105 if test "$ac_res" != no; then
3106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3107
3108 fi
3109
3110 { echo "$as_me:$LINENO: checking for inline" >&5
3111 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3112 if test "${ac_cv_c_inline+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 ac_cv_c_inline=no
3116 for ac_kw in inline __inline__ __inline; do
3117 cat >conftest.$ac_ext <<_ACEOF
3118 /* confdefs.h. */
3119 _ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3123 #ifndef __cplusplus
3124 typedef int foo_t;
3125 static $ac_kw foo_t static_foo () {return 0; }
3126 $ac_kw foo_t foo () {return 0; }
3127 #endif
3128
3129 _ACEOF
3130 rm -f conftest.$ac_objext
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 ac_cv_c_inline=$ac_kw
3148 else
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3151
3152
3153 fi
3154
3155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 test "$ac_cv_c_inline" != no && break
3157 done
3158
3159 fi
3160 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3161 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3162
3163
3164 case $ac_cv_c_inline in
3165 inline | yes) ;;
3166 *)
3167 case $ac_cv_c_inline in
3168 no) ac_val=;;
3169 *) ac_val=$ac_cv_c_inline;;
3170 esac
3171 cat >>confdefs.h <<_ACEOF
3172 #ifndef __cplusplus
3173 #define inline $ac_val
3174 #endif
3175 _ACEOF
3176 ;;
3177 esac
3178
3179 ac_ext=c
3180 ac_cpp='$CPP $CPPFLAGS'
3181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3184 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3185 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3186 # On Suns, sometimes $CPP names a directory.
3187 if test -n "$CPP" && test -d "$CPP"; then
3188 CPP=
3189 fi
3190 if test -z "$CPP"; then
3191 if test "${ac_cv_prog_CPP+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 else
3194 # Double quotes because CPP needs to be expanded
3195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3196 do
3197 ac_preproc_ok=false
3198 for ac_c_preproc_warn_flag in '' yes
3199 do
3200 # Use a header file that comes with gcc, so configuring glibc
3201 # with a fresh cross-compiler works.
3202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203 # <limits.h> exists even on freestanding compilers.
3204 # On the NeXT, cc -E runs the code through the compiler's parser,
3205 # not just through cpp. "Syntax error" is here to catch this case.
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212 #ifdef __STDC__
3213 # include <limits.h>
3214 #else
3215 # include <assert.h>
3216 #endif
3217 Syntax error
3218 _ACEOF
3219 if { (ac_try="$ac_cpp conftest.$ac_ext"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); } >/dev/null && {
3232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 }; then
3235 :
3236 else
3237 echo "$as_me: failed program was:" >&5
3238 sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 # Broken: fails on valid input.
3241 continue
3242 fi
3243
3244 rm -f conftest.err conftest.$ac_ext
3245
3246 # OK, works on sane cases. Now check whether nonexistent headers
3247 # can be detected and how.
3248 cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h. */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3254 #include <ac_nonexistent.h>
3255 _ACEOF
3256 if { (ac_try="$ac_cpp conftest.$ac_ext"
3257 case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260 esac
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } >/dev/null && {
3269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 }; then
3272 # Broken: success on invalid input.
3273 continue
3274 else
3275 echo "$as_me: failed program was:" >&5
3276 sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Passes both tests.
3279 ac_preproc_ok=:
3280 break
3281 fi
3282
3283 rm -f conftest.err conftest.$ac_ext
3284
3285 done
3286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287 rm -f conftest.err conftest.$ac_ext
3288 if $ac_preproc_ok; then
3289 break
3290 fi
3291
3292 done
3293 ac_cv_prog_CPP=$CPP
3294
3295 fi
3296 CPP=$ac_cv_prog_CPP
3297 else
3298 ac_cv_prog_CPP=$CPP
3299 fi
3300 { echo "$as_me:$LINENO: result: $CPP" >&5
3301 echo "${ECHO_T}$CPP" >&6; }
3302 ac_preproc_ok=false
3303 for ac_c_preproc_warn_flag in '' yes
3304 do
3305 # Use a header file that comes with gcc, so configuring glibc
3306 # with a fresh cross-compiler works.
3307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3308 # <limits.h> exists even on freestanding compilers.
3309 # On the NeXT, cc -E runs the code through the compiler's parser,
3310 # not just through cpp. "Syntax error" is here to catch this case.
3311 cat >conftest.$ac_ext <<_ACEOF
3312 /* confdefs.h. */
3313 _ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3317 #ifdef __STDC__
3318 # include <limits.h>
3319 #else
3320 # include <assert.h>
3321 #endif
3322 Syntax error
3323 _ACEOF
3324 if { (ac_try="$ac_cpp conftest.$ac_ext"
3325 case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328 esac
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } >/dev/null && {
3337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 }; then
3340 :
3341 else
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 # Broken: fails on valid input.
3346 continue
3347 fi
3348
3349 rm -f conftest.err conftest.$ac_ext
3350
3351 # OK, works on sane cases. Now check whether nonexistent headers
3352 # can be detected and how.
3353 cat >conftest.$ac_ext <<_ACEOF
3354 /* confdefs.h. */
3355 _ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3359 #include <ac_nonexistent.h>
3360 _ACEOF
3361 if { (ac_try="$ac_cpp conftest.$ac_ext"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
3377 # Broken: success on invalid input.
3378 continue
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 # Passes both tests.
3384 ac_preproc_ok=:
3385 break
3386 fi
3387
3388 rm -f conftest.err conftest.$ac_ext
3389
3390 done
3391 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392 rm -f conftest.err conftest.$ac_ext
3393 if $ac_preproc_ok; then
3394 :
3395 else
3396 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3397 See \`config.log' for more details." >&5
3398 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3401 fi
3402
3403 ac_ext=c
3404 ac_cpp='$CPP $CPPFLAGS'
3405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409
3410 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3411 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3412 if test "${ac_cv_path_GREP+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 # Extract the first word of "grep ggrep" to use in msg output
3416 if test -z "$GREP"; then
3417 set dummy grep ggrep; ac_prog_name=$2
3418 if test "${ac_cv_path_GREP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420 else
3421 ac_path_GREP_found=false
3422 # Loop through the user's path and test for each of PROGNAME-LIST
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3425 do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_prog in grep ggrep; do
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3431 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3432 # Check for GNU ac_path_GREP and select it if it is found.
3433 # Check for GNU $ac_path_GREP
3434 case `"$ac_path_GREP" --version 2>&1` in
3435 *GNU*)
3436 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3437 *)
3438 ac_count=0
3439 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3440 while :
3441 do
3442 cat "conftest.in" "conftest.in" >"conftest.tmp"
3443 mv "conftest.tmp" "conftest.in"
3444 cp "conftest.in" "conftest.nl"
3445 echo 'GREP' >> "conftest.nl"
3446 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3448 ac_count=`expr $ac_count + 1`
3449 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3450 # Best one so far, save it but keep looking for a better one
3451 ac_cv_path_GREP="$ac_path_GREP"
3452 ac_path_GREP_max=$ac_count
3453 fi
3454 # 10*(2^10) chars as input seems more than enough
3455 test $ac_count -gt 10 && break
3456 done
3457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3458 esac
3459
3460
3461 $ac_path_GREP_found && break 3
3462 done
3463 done
3464
3465 done
3466 IFS=$as_save_IFS
3467
3468
3469 fi
3470
3471 GREP="$ac_cv_path_GREP"
3472 if test -z "$GREP"; then
3473 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3474 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3475 { (exit 1); exit 1; }; }
3476 fi
3477
3478 else
3479 ac_cv_path_GREP=$GREP
3480 fi
3481
3482
3483 fi
3484 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3485 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3486 GREP="$ac_cv_path_GREP"
3487
3488
3489 { echo "$as_me:$LINENO: checking for egrep" >&5
3490 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3491 if test "${ac_cv_path_EGREP+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3495 then ac_cv_path_EGREP="$GREP -E"
3496 else
3497 # Extract the first word of "egrep" to use in msg output
3498 if test -z "$EGREP"; then
3499 set dummy egrep; ac_prog_name=$2
3500 if test "${ac_cv_path_EGREP+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 ac_path_EGREP_found=false
3504 # Loop through the user's path and test for each of PROGNAME-LIST
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_prog in egrep; do
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3513 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3514 # Check for GNU ac_path_EGREP and select it if it is found.
3515 # Check for GNU $ac_path_EGREP
3516 case `"$ac_path_EGREP" --version 2>&1` in
3517 *GNU*)
3518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3519 *)
3520 ac_count=0
3521 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3522 while :
3523 do
3524 cat "conftest.in" "conftest.in" >"conftest.tmp"
3525 mv "conftest.tmp" "conftest.in"
3526 cp "conftest.in" "conftest.nl"
3527 echo 'EGREP' >> "conftest.nl"
3528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3530 ac_count=`expr $ac_count + 1`
3531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3532 # Best one so far, save it but keep looking for a better one
3533 ac_cv_path_EGREP="$ac_path_EGREP"
3534 ac_path_EGREP_max=$ac_count
3535 fi
3536 # 10*(2^10) chars as input seems more than enough
3537 test $ac_count -gt 10 && break
3538 done
3539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3540 esac
3541
3542
3543 $ac_path_EGREP_found && break 3
3544 done
3545 done
3546
3547 done
3548 IFS=$as_save_IFS
3549
3550
3551 fi
3552
3553 EGREP="$ac_cv_path_EGREP"
3554 if test -z "$EGREP"; then
3555 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3556 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3557 { (exit 1); exit 1; }; }
3558 fi
3559
3560 else
3561 ac_cv_path_EGREP=$EGREP
3562 fi
3563
3564
3565 fi
3566 fi
3567 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3568 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3569 EGREP="$ac_cv_path_EGREP"
3570
3571
3572 if test $ac_cv_c_compiler_gnu = yes; then
3573 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3574 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3575 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 else
3578 ac_pattern="Autoconf.*'x'"
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3585 #include <sgtty.h>
3586 Autoconf TIOCGETP
3587 _ACEOF
3588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3590 ac_cv_prog_gcc_traditional=yes
3591 else
3592 ac_cv_prog_gcc_traditional=no
3593 fi
3594 rm -f conftest*
3595
3596
3597 if test $ac_cv_prog_gcc_traditional = no; then
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 #include <termio.h>
3605 Autoconf TCGETA
3606 _ACEOF
3607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3609 ac_cv_prog_gcc_traditional=yes
3610 fi
3611 rm -f conftest*
3612
3613 fi
3614 fi
3615 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3616 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3617 if test $ac_cv_prog_gcc_traditional = yes; then
3618 CC="$CC -traditional"
3619 fi
3620 fi
3621
3622 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3623 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3624 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3625 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 cat >conftest.make <<\_ACEOF
3629 SHELL = /bin/sh
3630 all:
3631 @echo '@@@%%%=$(MAKE)=@@@%%%'
3632 _ACEOF
3633 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3634 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3635 *@@@%%%=?*=@@@%%%*)
3636 eval ac_cv_prog_make_${ac_make}_set=yes;;
3637 *)
3638 eval ac_cv_prog_make_${ac_make}_set=no;;
3639 esac
3640 rm -f conftest.make
3641 fi
3642 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644 echo "${ECHO_T}yes" >&6; }
3645 SET_MAKE=
3646 else
3647 { echo "$as_me:$LINENO: result: no" >&5
3648 echo "${ECHO_T}no" >&6; }
3649 SET_MAKE="MAKE=${MAKE-make}"
3650 fi
3651
3652 # Find a good install program. We prefer a C program (faster),
3653 # so one script is as good as another. But avoid the broken or
3654 # incompatible versions:
3655 # SysV /etc/install, /usr/sbin/install
3656 # SunOS /usr/etc/install
3657 # IRIX /sbin/install
3658 # AIX /bin/install
3659 # AmigaOS /C/install, which installs bootblocks on floppy discs
3660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663 # OS/2's system install, which has a completely different semantic
3664 # ./install, which can be erroneously created by make from ./install.sh.
3665 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3666 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3667 if test -z "$INSTALL"; then
3668 if test "${ac_cv_path_install+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 for as_dir in $PATH
3673 do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 # Account for people who put trailing slashes in PATH elements.
3677 case $as_dir/ in
3678 ./ | .// | /cC/* | \
3679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3681 /usr/ucb/* ) ;;
3682 *)
3683 # OSF1 and SCO ODT 3.0 have their own names for install.
3684 # Don't use installbsd from OSF since it installs stuff as root
3685 # by default.
3686 for ac_prog in ginstall scoinst install; do
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3689 if test $ac_prog = install &&
3690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # AIX install. It has an incompatible calling convention.
3692 :
3693 elif test $ac_prog = install &&
3694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # program-specific install script used by HP pwplus--don't use.
3696 :
3697 else
3698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3699 break 3
3700 fi
3701 fi
3702 done
3703 done
3704 ;;
3705 esac
3706 done
3707 IFS=$as_save_IFS
3708
3709
3710 fi
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
3713 else
3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
3716 # break other packages using the cache if that directory is
3717 # removed, or if the value is a relative name.
3718 INSTALL=$ac_install_sh
3719 fi
3720 fi
3721 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3722 echo "${ECHO_T}$INSTALL" >&6; }
3723
3724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725 # It thinks the first close brace ends the variable substitution.
3726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3727
3728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3729
3730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3731
3732 # Extract the first word of "rm", so it can be a program name with args.
3733 set dummy rm; ac_word=$2
3734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_RM+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739 case $RM in
3740 [\\/]* | ?:[\\/]*)
3741 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3742 ;;
3743 *)
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3746 do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3754 fi
3755 done
3756 done
3757 IFS=$as_save_IFS
3758
3759 ;;
3760 esac
3761 fi
3762 RM=$ac_cv_path_RM
3763 if test -n "$RM"; then
3764 { echo "$as_me:$LINENO: result: $RM" >&5
3765 echo "${ECHO_T}$RM" >&6; }
3766 else
3767 { echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; }
3769 fi
3770
3771
3772 # Extract the first word of "cp", so it can be a program name with args.
3773 set dummy cp; ac_word=$2
3774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3776 if test "${ac_cv_path_CP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 else
3779 case $CP in
3780 [\\/]* | ?:[\\/]*)
3781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3782 ;;
3783 *)
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 ;;
3800 esac
3801 fi
3802 CP=$ac_cv_path_CP
3803 if test -n "$CP"; then
3804 { echo "$as_me:$LINENO: result: $CP" >&5
3805 echo "${ECHO_T}$CP" >&6; }
3806 else
3807 { echo "$as_me:$LINENO: result: no" >&5
3808 echo "${ECHO_T}no" >&6; }
3809 fi
3810
3811
3812 # Extract the first word of "mv", so it can be a program name with args.
3813 set dummy mv; ac_word=$2
3814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3816 if test "${ac_cv_path_MV+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 else
3819 case $MV in
3820 [\\/]* | ?:[\\/]*)
3821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3822 ;;
3823 *)
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 for as_dir in $PATH
3826 do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835 done
3836 done
3837 IFS=$as_save_IFS
3838
3839 ;;
3840 esac
3841 fi
3842 MV=$ac_cv_path_MV
3843 if test -n "$MV"; then
3844 { echo "$as_me:$LINENO: result: $MV" >&5
3845 echo "${ECHO_T}$MV" >&6; }
3846 else
3847 { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3849 fi
3850
3851
3852 # Extract the first word of "ln", so it can be a program name with args.
3853 set dummy ln; ac_word=$2
3854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3856 if test "${ac_cv_path_LN+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 case $LN in
3860 [\\/]* | ?:[\\/]*)
3861 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3862 ;;
3863 *)
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3871 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875 done
3876 done
3877 IFS=$as_save_IFS
3878
3879 ;;
3880 esac
3881 fi
3882 LN=$ac_cv_path_LN
3883 if test -n "$LN"; then
3884 { echo "$as_me:$LINENO: result: $LN" >&5
3885 echo "${ECHO_T}$LN" >&6; }
3886 else
3887 { echo "$as_me:$LINENO: result: no" >&5
3888 echo "${ECHO_T}no" >&6; }
3889 fi
3890
3891
3892 # Extract the first word of "sed", so it can be a program name with args.
3893 set dummy sed; ac_word=$2
3894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3896 if test "${ac_cv_path_SED+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899 case $SED in
3900 [\\/]* | ?:[\\/]*)
3901 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3902 ;;
3903 *)
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3911 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915 done
3916 done
3917 IFS=$as_save_IFS
3918
3919 ;;
3920 esac
3921 fi
3922 SED=$ac_cv_path_SED
3923 if test -n "$SED"; then
3924 { echo "$as_me:$LINENO: result: $SED" >&5
3925 echo "${ECHO_T}$SED" >&6; }
3926 else
3927 { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3929 fi
3930
3931
3932 # Extract the first word of "ar", so it can be a program name with args.
3933 set dummy ar; ac_word=$2
3934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3936 if test "${ac_cv_path_AR+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939 case $AR in
3940 [\\/]* | ?:[\\/]*)
3941 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3942 ;;
3943 *)
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3951 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955 done
3956 done
3957 IFS=$as_save_IFS
3958
3959 ;;
3960 esac
3961 fi
3962 AR=$ac_cv_path_AR
3963 if test -n "$AR"; then
3964 { echo "$as_me:$LINENO: result: $AR" >&5
3965 echo "${ECHO_T}$AR" >&6; }
3966 else
3967 { echo "$as_me:$LINENO: result: no" >&5
3968 echo "${ECHO_T}no" >&6; }
3969 fi
3970
3971
3972 # Extract the first word of "ld", so it can be a program name with args.
3973 set dummy ld; ac_word=$2
3974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3976 if test "${ac_cv_path_LD+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 case $LD in
3980 [\\/]* | ?:[\\/]*)
3981 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3982 ;;
3983 *)
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3991 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995 done
3996 done
3997 IFS=$as_save_IFS
3998
3999 ;;
4000 esac
4001 fi
4002 LD=$ac_cv_path_LD
4003 if test -n "$LD"; then
4004 { echo "$as_me:$LINENO: result: $LD" >&5
4005 echo "${ECHO_T}$LD" >&6; }
4006 else
4007 { echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6; }
4009 fi
4010
4011
4012 # Extract the first word of "ranlib", so it can be a program name with args.
4013 set dummy ranlib; ac_word=$2
4014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4016 if test "${ac_cv_path_RANLIB+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 else
4019 case $RANLIB in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4022 ;;
4023 *)
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH
4026 do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035 done
4036 done
4037 IFS=$as_save_IFS
4038
4039 ;;
4040 esac
4041 fi
4042 RANLIB=$ac_cv_path_RANLIB
4043 if test -n "$RANLIB"; then
4044 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4045 echo "${ECHO_T}$RANLIB" >&6; }
4046 else
4047 { echo "$as_me:$LINENO: result: no" >&5
4048 echo "${ECHO_T}no" >&6; }
4049 fi
4050
4051
4052 # Extract the first word of "touch", so it can be a program name with args.
4053 set dummy touch; ac_word=$2
4054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4056 if test "${ac_cv_path_TOUCH+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059 case $TOUCH in
4060 [\\/]* | ?:[\\/]*)
4061 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4062 ;;
4063 *)
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065 for as_dir in $PATH
4066 do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4071 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075 done
4076 done
4077 IFS=$as_save_IFS
4078
4079 ;;
4080 esac
4081 fi
4082 TOUCH=$ac_cv_path_TOUCH
4083 if test -n "$TOUCH"; then
4084 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4085 echo "${ECHO_T}$TOUCH" >&6; }
4086 else
4087 { echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6; }
4089 fi
4090
4091
4092
4093 for ac_prog in 'bison -y' byacc
4094 do
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096 set dummy $ac_prog; ac_word=$2
4097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4099 if test "${ac_cv_prog_YACC+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101 else
4102 if test -n "$YACC"; then
4103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_prog_YACC="$ac_prog"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116 done
4117 done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 YACC=$ac_cv_prog_YACC
4123 if test -n "$YACC"; then
4124 { echo "$as_me:$LINENO: result: $YACC" >&5
4125 echo "${ECHO_T}$YACC" >&6; }
4126 else
4127 { echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6; }
4129 fi
4130
4131
4132 test -n "$YACC" && break
4133 done
4134 test -n "$YACC" || YACC="yacc"
4135
4136
4137 if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4138 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4139 echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4140 { (exit 1); exit 1; }; }
4141 fi
4142
4143 for ac_prog in flex lex
4144 do
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146 set dummy $ac_prog; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_LEX+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$LEX"; then
4153 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_LEX="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 LEX=$ac_cv_prog_LEX
4173 if test -n "$LEX"; then
4174 { echo "$as_me:$LINENO: result: $LEX" >&5
4175 echo "${ECHO_T}$LEX" >&6; }
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4179 fi
4180
4181
4182 test -n "$LEX" && break
4183 done
4184 test -n "$LEX" || LEX=":"
4185
4186 if test "x$LEX" != "x:"; then
4187 cat >conftest.l <<_ACEOF
4188 %%
4189 a { ECHO; }
4190 b { REJECT; }
4191 c { yymore (); }
4192 d { yyless (1); }
4193 e { yyless (input () != 0); }
4194 f { unput (yytext[0]); }
4195 . { BEGIN INITIAL; }
4196 %%
4197 #ifdef YYTEXT_POINTER
4198 extern char *yytext;
4199 #endif
4200 int
4201 main (void)
4202 {
4203 return ! yylex () + ! yywrap ();
4204 }
4205 _ACEOF
4206 { (ac_try="$LEX conftest.l"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$LEX conftest.l") 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }
4216 { echo "$as_me:$LINENO: checking lex output file root" >&5
4217 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4218 if test "${ac_cv_prog_lex_root+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221
4222 if test -f lex.yy.c; then
4223 ac_cv_prog_lex_root=lex.yy
4224 elif test -f lexyy.c; then
4225 ac_cv_prog_lex_root=lexyy
4226 else
4227 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4228 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4229 { (exit 1); exit 1; }; }
4230 fi
4231 fi
4232 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4233 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4234 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4235
4236 if test -z "${LEXLIB+set}"; then
4237 { echo "$as_me:$LINENO: checking lex library" >&5
4238 echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4239 if test "${ac_cv_lib_lex+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242
4243 ac_save_LIBS=$LIBS
4244 ac_cv_lib_lex='none needed'
4245 for ac_lib in '' -lfl -ll; do
4246 LIBS="$ac_lib $ac_save_LIBS"
4247 cat >conftest.$ac_ext <<_ACEOF
4248 `cat $LEX_OUTPUT_ROOT.c`
4249 _ACEOF
4250 rm -f conftest.$ac_objext conftest$ac_exeext
4251 if { (ac_try="$ac_link"
4252 case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_link") 2>conftest.er1
4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } && {
4264 test -z "$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4266 } && test -s conftest$ac_exeext &&
4267 $as_test_x conftest$ac_exeext; then
4268 ac_cv_lib_lex=$ac_lib
4269 else
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273
4274 fi
4275
4276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4277 conftest$ac_exeext conftest.$ac_ext
4278 test "$ac_cv_lib_lex" != 'none needed' && break
4279 done
4280 LIBS=$ac_save_LIBS
4281
4282 fi
4283 { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4284 echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4285 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4286 fi
4287
4288
4289 { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4290 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4291 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294 # POSIX says lex can declare yytext either as a pointer or an array; the
4295 # default is implementation-dependent. Figure out which it is, since
4296 # not all implementations provide the %pointer and %array declarations.
4297 ac_cv_prog_lex_yytext_pointer=no
4298 ac_save_LIBS=$LIBS
4299 LIBS="$LEXLIB $ac_save_LIBS"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 #define YYTEXT_POINTER 1
4302 `cat $LEX_OUTPUT_ROOT.c`
4303 _ACEOF
4304 rm -f conftest.$ac_objext conftest$ac_exeext
4305 if { (ac_try="$ac_link"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_link") 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } && {
4318 test -z "$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 } && test -s conftest$ac_exeext &&
4321 $as_test_x conftest$ac_exeext; then
4322 ac_cv_prog_lex_yytext_pointer=yes
4323 else
4324 echo "$as_me: failed program was:" >&5
4325 sed 's/^/| /' conftest.$ac_ext >&5
4326
4327
4328 fi
4329
4330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4331 conftest$ac_exeext conftest.$ac_ext
4332 LIBS=$ac_save_LIBS
4333
4334 fi
4335 { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4336 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4337 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4338
4339 cat >>confdefs.h <<\_ACEOF
4340 #define YYTEXT_POINTER 1
4341 _ACEOF
4342
4343 fi
4344 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4345
4346 fi
4347
4348 if test "$LEX" = ":"; then
4349 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4350 echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4351 { (exit 1); exit 1; }; }
4352 fi
4353
4354 if test "$libexecdir" = '${exec_prefix}/libexec' &&
4355 test "$localstatedir" = '${prefix}/var'; then
4356 libexecdir='${bindir}'
4357 localstatedir='${prefix}'
4358 fi
4359
4360 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4361 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4362 if test "${ac_cv_header_stdc+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 cat >conftest.$ac_ext <<_ACEOF
4366 /* confdefs.h. */
4367 _ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <stdlib.h>
4372 #include <stdarg.h>
4373 #include <string.h>
4374 #include <float.h>
4375
4376 int
4377 main ()
4378 {
4379
4380 ;
4381 return 0;
4382 }
4383 _ACEOF
4384 rm -f conftest.$ac_objext
4385 if { (ac_try="$ac_compile"
4386 case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389 esac
4390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_compile") 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest.$ac_objext; then
4401 ac_cv_header_stdc=yes
4402 else
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406 ac_cv_header_stdc=no
4407 fi
4408
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410
4411 if test $ac_cv_header_stdc = yes; then
4412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4413 cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h. */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 #include <string.h>
4420
4421 _ACEOF
4422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "memchr" >/dev/null 2>&1; then
4424 :
4425 else
4426 ac_cv_header_stdc=no
4427 fi
4428 rm -f conftest*
4429
4430 fi
4431
4432 if test $ac_cv_header_stdc = yes; then
4433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434 cat >conftest.$ac_ext <<_ACEOF
4435 /* confdefs.h. */
4436 _ACEOF
4437 cat confdefs.h >>conftest.$ac_ext
4438 cat >>conftest.$ac_ext <<_ACEOF
4439 /* end confdefs.h. */
4440 #include <stdlib.h>
4441
4442 _ACEOF
4443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4444 $EGREP "free" >/dev/null 2>&1; then
4445 :
4446 else
4447 ac_cv_header_stdc=no
4448 fi
4449 rm -f conftest*
4450
4451 fi
4452
4453 if test $ac_cv_header_stdc = yes; then
4454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4455 if test "$cross_compiling" = yes; then
4456 :
4457 else
4458 cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h. */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h. */
4464 #include <ctype.h>
4465 #include <stdlib.h>
4466 #if ((' ' & 0x0FF) == 0x020)
4467 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4468 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4469 #else
4470 # define ISLOWER(c) \
4471 (('a' <= (c) && (c) <= 'i') \
4472 || ('j' <= (c) && (c) <= 'r') \
4473 || ('s' <= (c) && (c) <= 'z'))
4474 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4475 #endif
4476
4477 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4478 int
4479 main ()
4480 {
4481 int i;
4482 for (i = 0; i < 256; i++)
4483 if (XOR (islower (i), ISLOWER (i))
4484 || toupper (i) != TOUPPER (i))
4485 return 2;
4486 return 0;
4487 }
4488 _ACEOF
4489 rm -f conftest$ac_exeext
4490 if { (ac_try="$ac_link"
4491 case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494 esac
4495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_link") 2>&5
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4500 { (case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_try") 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 :
4510 else
4511 echo "$as_me: program exited with status $ac_status" >&5
4512 echo "$as_me: failed program was:" >&5
4513 sed 's/^/| /' conftest.$ac_ext >&5
4514
4515 ( exit $ac_status )
4516 ac_cv_header_stdc=no
4517 fi
4518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4519 fi
4520
4521
4522 fi
4523 fi
4524 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4525 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4526 if test $ac_cv_header_stdc = yes; then
4527
4528 cat >>confdefs.h <<\_ACEOF
4529 #define STDC_HEADERS 1
4530 _ACEOF
4531
4532 fi
4533
4534
4535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4546 inttypes.h stdint.h unistd.h
4547 do
4548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 cat >conftest.$ac_ext <<_ACEOF
4555 /* confdefs.h. */
4556 _ACEOF
4557 cat confdefs.h >>conftest.$ac_ext
4558 cat >>conftest.$ac_ext <<_ACEOF
4559 /* end confdefs.h. */
4560 $ac_includes_default
4561
4562 #include <$ac_header>
4563 _ACEOF
4564 rm -f conftest.$ac_objext
4565 if { (ac_try="$ac_compile"
4566 case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569 esac
4570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_compile") 2>conftest.er1
4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
4581 eval "$as_ac_Header=yes"
4582 else
4583 echo "$as_me: failed program was:" >&5
4584 sed 's/^/| /' conftest.$ac_ext >&5
4585
4586 eval "$as_ac_Header=no"
4587 fi
4588
4589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590 fi
4591 ac_res=`eval echo '${'$as_ac_Header'}'`
4592 { echo "$as_me:$LINENO: result: $ac_res" >&5
4593 echo "${ECHO_T}$ac_res" >&6; }
4594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h <<_ACEOF
4596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597 _ACEOF
4598
4599 fi
4600
4601 done
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615 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
4616 do
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 fi
4624 ac_res=`eval echo '${'$as_ac_Header'}'`
4625 { echo "$as_me:$LINENO: result: $ac_res" >&5
4626 echo "${ECHO_T}$ac_res" >&6; }
4627 else
4628 # Is the header compilable?
4629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 $ac_includes_default
4638 #include <$ac_header>
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 ac_header_compiler=yes
4658 else
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 ac_header_compiler=no
4663 fi
4664
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4667 echo "${ECHO_T}$ac_header_compiler" >&6; }
4668
4669 # Is the header present?
4670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4672 cat >conftest.$ac_ext <<_ACEOF
4673 /* confdefs.h. */
4674 _ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4678 #include <$ac_header>
4679 _ACEOF
4680 if { (ac_try="$ac_cpp conftest.$ac_ext"
4681 case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684 esac
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } >/dev/null && {
4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4695 }; then
4696 ac_header_preproc=yes
4697 else
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ac_header_preproc=no
4702 fi
4703
4704 rm -f conftest.err conftest.$ac_ext
4705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706 echo "${ECHO_T}$ac_header_preproc" >&6; }
4707
4708 # So? What about this header?
4709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4710 yes:no: )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc=yes
4716 ;;
4717 no:yes:* )
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4730
4731 ;;
4732 esac
4733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738 eval "$as_ac_Header=\$ac_header_preproc"
4739 fi
4740 ac_res=`eval echo '${'$as_ac_Header'}'`
4741 { echo "$as_me:$LINENO: result: $ac_res" >&5
4742 echo "${ECHO_T}$ac_res" >&6; }
4743
4744 fi
4745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746 cat >>confdefs.h <<_ACEOF
4747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748 _ACEOF
4749
4750 fi
4751
4752 done
4753
4754
4755
4756 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4757 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4758 if test "${ac_cv_c_const+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767
4768 int
4769 main ()
4770 {
4771 /* FIXME: Include the comments suggested by Paul. */
4772 #ifndef __cplusplus
4773 /* Ultrix mips cc rejects this. */
4774 typedef int charset[2];
4775 const charset cs;
4776 /* SunOS 4.1.1 cc rejects this. */
4777 char const *const *pcpcc;
4778 char **ppc;
4779 /* NEC SVR4.0.2 mips cc rejects this. */
4780 struct point {int x, y;};
4781 static struct point const zero = {0,0};
4782 /* AIX XL C 1.02.0.0 rejects this.
4783 It does not let you subtract one const X* pointer from another in
4784 an arm of an if-expression whose if-part is not a constant
4785 expression */
4786 const char *g = "string";
4787 pcpcc = &g + (g ? g-g : 0);
4788 /* HPUX 7.0 cc rejects these. */
4789 ++pcpcc;
4790 ppc = (char**) pcpcc;
4791 pcpcc = (char const *const *) ppc;
4792 { /* SCO 3.2v4 cc rejects this. */
4793 char *t;
4794 char const *s = 0 ? (char *) 0 : (char const *) 0;
4795
4796 *t++ = 0;
4797 if (s) return 0;
4798 }
4799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4800 int x[] = {25, 17};
4801 const int *foo = &x[0];
4802 ++foo;
4803 }
4804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4805 typedef const int *iptr;
4806 iptr p = 0;
4807 ++p;
4808 }
4809 { /* AIX XL C 1.02.0.0 rejects this saying
4810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4811 struct s { int j; const int *ap[3]; };
4812 struct s *b; b->j = 5;
4813 }
4814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4815 const int foo = 10;
4816 if (!foo) return 0;
4817 }
4818 return !cs[0] && !zero.x;
4819 #endif
4820
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest.$ac_objext
4826 if { (ac_try="$ac_compile"
4827 case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830 esac
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_compile") 2>conftest.er1
4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.$ac_objext; then
4842 ac_cv_c_const=yes
4843 else
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ac_cv_c_const=no
4848 fi
4849
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4853 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4854 if test $ac_cv_c_const = no; then
4855
4856 cat >>confdefs.h <<\_ACEOF
4857 #define const
4858 _ACEOF
4859
4860 fi
4861
4862 if test "$ac_cv_header_machine_endian_h" = "no" ; then
4863 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4864 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4865 if test "${ac_cv_c_bigendian+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 # See if sys/param.h defines the BYTE_ORDER macro.
4869 cat >conftest.$ac_ext <<_ACEOF
4870 /* confdefs.h. */
4871 _ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4875 #include <sys/types.h>
4876 #include <sys/param.h>
4877
4878 int
4879 main ()
4880 {
4881 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4882 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4883 bogus endian macros
4884 #endif
4885
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 rm -f conftest.$ac_objext
4891 if { (ac_try="$ac_compile"
4892 case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
4907 # It does; now see whether it defined to BIG_ENDIAN or not.
4908 cat >conftest.$ac_ext <<_ACEOF
4909 /* confdefs.h. */
4910 _ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4914 #include <sys/types.h>
4915 #include <sys/param.h>
4916
4917 int
4918 main ()
4919 {
4920 #if BYTE_ORDER != BIG_ENDIAN
4921 not big endian
4922 #endif
4923
4924 ;
4925 return 0;
4926 }
4927 _ACEOF
4928 rm -f conftest.$ac_objext
4929 if { (ac_try="$ac_compile"
4930 case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933 esac
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4945 ac_cv_c_bigendian=yes
4946 else
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 ac_cv_c_bigendian=no
4951 fi
4952
4953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954 else
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4957
4958 # It does not; compile a test program.
4959 if test "$cross_compiling" = yes; then
4960 # try to guess the endianness by grepping values into an object file
4961 ac_cv_c_bigendian=unknown
4962 cat >conftest.$ac_ext <<_ACEOF
4963 /* confdefs.h. */
4964 _ACEOF
4965 cat confdefs.h >>conftest.$ac_ext
4966 cat >>conftest.$ac_ext <<_ACEOF
4967 /* end confdefs.h. */
4968 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4969 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4970 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4971 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4972 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4973 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4974 int
4975 main ()
4976 {
4977 _ascii (); _ebcdic ();
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (ac_try="$ac_compile"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_compile") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest.$ac_objext; then
4999 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5000 ac_cv_c_bigendian=yes
5001 fi
5002 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5003 if test "$ac_cv_c_bigendian" = unknown; then
5004 ac_cv_c_bigendian=no
5005 else
5006 # finding both strings is unlikely to happen, but who knows?
5007 ac_cv_c_bigendian=unknown
5008 fi
5009 fi
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014
5015 fi
5016
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 else
5019 cat >conftest.$ac_ext <<_ACEOF
5020 /* confdefs.h. */
5021 _ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5026 int
5027 main ()
5028 {
5029
5030 /* Are we little or big endian? From Harbison&Steele. */
5031 union
5032 {
5033 long int l;
5034 char c[sizeof (long int)];
5035 } u;
5036 u.l = 1;
5037 return u.c[sizeof (long int) - 1] == 1;
5038
5039 ;
5040 return 0;
5041 }
5042 _ACEOF
5043 rm -f conftest$ac_exeext
5044 if { (ac_try="$ac_link"
5045 case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048 esac
5049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>&5
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054 { (case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057 esac
5058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_try") 2>&5
5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_c_bigendian=no
5064 else
5065 echo "$as_me: program exited with status $ac_status" >&5
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 ( exit $ac_status )
5070 ac_cv_c_bigendian=yes
5071 fi
5072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5073 fi
5074
5075
5076 fi
5077
5078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5079 fi
5080 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5081 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5082 case $ac_cv_c_bigendian in
5083 yes)
5084
5085 cat >>confdefs.h <<\_ACEOF
5086 #define WORDS_BIGENDIAN 1
5087 _ACEOF
5088 ;;
5089 no)
5090 ;;
5091 *)
5092 { { echo "$as_me:$LINENO: error: unknown endianness
5093 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5094 echo "$as_me: error: unknown endianness
5095 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097 esac
5098
5099 fi
5100 { echo "$as_me:$LINENO: checking for pid_t" >&5
5101 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5102 if test "${ac_cv_type_pid_t+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 cat >conftest.$ac_ext <<_ACEOF
5106 /* confdefs.h. */
5107 _ACEOF
5108 cat confdefs.h >>conftest.$ac_ext
5109 cat >>conftest.$ac_ext <<_ACEOF
5110 /* end confdefs.h. */
5111 $ac_includes_default
5112 typedef pid_t ac__type_new_;
5113 int
5114 main ()
5115 {
5116 if ((ac__type_new_ *) 0)
5117 return 0;
5118 if (sizeof (ac__type_new_))
5119 return 0;
5120 ;
5121 return 0;
5122 }
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
5141 ac_cv_type_pid_t=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_cv_type_pid_t=no
5147 fi
5148
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 fi
5151 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5152 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5153 if test $ac_cv_type_pid_t = yes; then
5154 :
5155 else
5156
5157 cat >>confdefs.h <<_ACEOF
5158 #define pid_t int
5159 _ACEOF
5160
5161 fi
5162
5163 { echo "$as_me:$LINENO: checking for size_t" >&5
5164 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5165 if test "${ac_cv_type_size_t+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 else
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5174 $ac_includes_default
5175 typedef size_t ac__type_new_;
5176 int
5177 main ()
5178 {
5179 if ((ac__type_new_ *) 0)
5180 return 0;
5181 if (sizeof (ac__type_new_))
5182 return 0;
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest.$ac_objext
5188 if { (ac_try="$ac_compile"
5189 case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
5204 ac_cv_type_size_t=yes
5205 else
5206 echo "$as_me: failed program was:" >&5
5207 sed 's/^/| /' conftest.$ac_ext >&5
5208
5209 ac_cv_type_size_t=no
5210 fi
5211
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 fi
5214 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5215 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5216 if test $ac_cv_type_size_t = yes; then
5217 :
5218 else
5219
5220 cat >>confdefs.h <<_ACEOF
5221 #define size_t unsigned int
5222 _ACEOF
5223
5224 fi
5225
5226 { echo "$as_me:$LINENO: checking for short" >&5
5227 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5228 if test "${ac_cv_type_short+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5238 typedef short ac__type_new_;
5239 int
5240 main ()
5241 {
5242 if ((ac__type_new_ *) 0)
5243 return 0;
5244 if (sizeof (ac__type_new_))
5245 return 0;
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5267 ac_cv_type_short=yes
5268 else
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ac_cv_type_short=no
5273 fi
5274
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 fi
5277 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5278 echo "${ECHO_T}$ac_cv_type_short" >&6; }
5279
5280 # The cast to long int works around a bug in the HP C Compiler
5281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283 # This bug is HP SR number 8606223364.
5284 { echo "$as_me:$LINENO: checking size of short" >&5
5285 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5286 if test "${ac_cv_sizeof_short+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289 if test "$cross_compiling" = yes; then
5290 # Depending upon the size, compute the lo and hi bounds.
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 $ac_includes_default
5298 typedef short ac__type_sizeof_;
5299 int
5300 main ()
5301 {
5302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5303 test_array [0] = 0
5304
5305 ;
5306 return 0;
5307 }
5308 _ACEOF
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
5326 ac_lo=0 ac_mid=0
5327 while :; do
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h. */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334 $ac_includes_default
5335 typedef short ac__type_sizeof_;
5336 int
5337 main ()
5338 {
5339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5340 test_array [0] = 0
5341
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (ac_try="$ac_compile"
5348 case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351 esac
5352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
5363 ac_hi=$ac_mid; break
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_lo=`expr $ac_mid + 1`
5369 if test $ac_lo -le $ac_mid; then
5370 ac_lo= ac_hi=
5371 break
5372 fi
5373 ac_mid=`expr 2 '*' $ac_mid + 1`
5374 fi
5375
5376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5377 done
5378 else
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 cat >conftest.$ac_ext <<_ACEOF
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 typedef short ac__type_sizeof_;
5390 int
5391 main ()
5392 {
5393 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5394 test_array [0] = 0
5395
5396 ;
5397 return 0;
5398 }
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (ac_try="$ac_compile"
5402 case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_hi=-1 ac_mid=-1
5418 while :; do
5419 cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h. */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5425 $ac_includes_default
5426 typedef short ac__type_sizeof_;
5427 int
5428 main ()
5429 {
5430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5431 test_array [0] = 0
5432
5433 ;
5434 return 0;
5435 }
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
5454 ac_lo=$ac_mid; break
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459 ac_hi=`expr '(' $ac_mid ')' - 1`
5460 if test $ac_mid -le $ac_hi; then
5461 ac_lo= ac_hi=
5462 break
5463 fi
5464 ac_mid=`expr 2 '*' $ac_mid`
5465 fi
5466
5467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 done
5469 else
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_lo= ac_hi=
5474 fi
5475
5476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477 fi
5478
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480 # Binary search between lo and hi bounds.
5481 while test "x$ac_lo" != "x$ac_hi"; do
5482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5483 cat >conftest.$ac_ext <<_ACEOF
5484 /* confdefs.h. */
5485 _ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 typedef short ac__type_sizeof_;
5491 int
5492 main ()
5493 {
5494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5495 test_array [0] = 0
5496
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 rm -f conftest.$ac_objext
5502 if { (ac_try="$ac_compile"
5503 case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
5518 ac_hi=$ac_mid
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 sed 's/^/| /' conftest.$ac_ext >&5
5522
5523 ac_lo=`expr '(' $ac_mid ')' + 1`
5524 fi
5525
5526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 done
5528 case $ac_lo in
5529 ?*) ac_cv_sizeof_short=$ac_lo;;
5530 '') if test "$ac_cv_type_short" = yes; then
5531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5532 See \`config.log' for more details." >&5
5533 echo "$as_me: error: cannot compute sizeof (short)
5534 See \`config.log' for more details." >&2;}
5535 { (exit 77); exit 77; }; }
5536 else
5537 ac_cv_sizeof_short=0
5538 fi ;;
5539 esac
5540 else
5541 cat >conftest.$ac_ext <<_ACEOF
5542 /* confdefs.h. */
5543 _ACEOF
5544 cat confdefs.h >>conftest.$ac_ext
5545 cat >>conftest.$ac_ext <<_ACEOF
5546 /* end confdefs.h. */
5547 $ac_includes_default
5548 typedef short ac__type_sizeof_;
5549 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5550 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5551 #include <stdio.h>
5552 #include <stdlib.h>
5553 int
5554 main ()
5555 {
5556
5557 FILE *f = fopen ("conftest.val", "w");
5558 if (! f)
5559 return 1;
5560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5561 {
5562 long int i = longval ();
5563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5564 return 1;
5565 fprintf (f, "%ld\n", i);
5566 }
5567 else
5568 {
5569 unsigned long int i = ulongval ();
5570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5571 return 1;
5572 fprintf (f, "%lu\n", i);
5573 }
5574 return ferror (f) || fclose (f) != 0;
5575
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest$ac_exeext
5581 if { (ac_try="$ac_link"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_link") 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594 esac
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_cv_sizeof_short=`cat conftest.val`
5601 else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.$ac_ext >&5
5605
5606 ( exit $ac_status )
5607 if test "$ac_cv_type_short" = yes; then
5608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5609 See \`config.log' for more details." >&5
5610 echo "$as_me: error: cannot compute sizeof (short)
5611 See \`config.log' for more details." >&2;}
5612 { (exit 77); exit 77; }; }
5613 else
5614 ac_cv_sizeof_short=0
5615 fi
5616 fi
5617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5618 fi
5619 rm -f conftest.val
5620 fi
5621 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5622 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5623
5624
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define SIZEOF_SHORT $ac_cv_sizeof_short
5628 _ACEOF
5629
5630
5631 { echo "$as_me:$LINENO: checking for int" >&5
5632 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5633 if test "${ac_cv_type_int+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5643 typedef int ac__type_new_;
5644 int
5645 main ()
5646 {
5647 if ((ac__type_new_ *) 0)
5648 return 0;
5649 if (sizeof (ac__type_new_))
5650 return 0;
5651 ;
5652 return 0;
5653 }
5654 _ACEOF
5655 rm -f conftest.$ac_objext
5656 if { (ac_try="$ac_compile"
5657 case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660 esac
5661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
5672 ac_cv_type_int=yes
5673 else
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5676
5677 ac_cv_type_int=no
5678 fi
5679
5680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5681 fi
5682 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5683 echo "${ECHO_T}$ac_cv_type_int" >&6; }
5684
5685 # The cast to long int works around a bug in the HP C Compiler
5686 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5687 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5688 # This bug is HP SR number 8606223364.
5689 { echo "$as_me:$LINENO: checking size of int" >&5
5690 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5691 if test "${ac_cv_sizeof_int+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 else
5694 if test "$cross_compiling" = yes; then
5695 # Depending upon the size, compute the lo and hi bounds.
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h. */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 $ac_includes_default
5703 typedef int ac__type_sizeof_;
5704 int
5705 main ()
5706 {
5707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5708 test_array [0] = 0
5709
5710 ;
5711 return 0;
5712 }
5713 _ACEOF
5714 rm -f conftest.$ac_objext
5715 if { (ac_try="$ac_compile"
5716 case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719 esac
5720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
5731 ac_lo=0 ac_mid=0
5732 while :; do
5733 cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h. */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */
5739 $ac_includes_default
5740 typedef int ac__type_sizeof_;
5741 int
5742 main ()
5743 {
5744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5745 test_array [0] = 0
5746
5747 ;
5748 return 0;
5749 }
5750 _ACEOF
5751 rm -f conftest.$ac_objext
5752 if { (ac_try="$ac_compile"
5753 case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756 esac
5757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
5768 ac_hi=$ac_mid; break
5769 else
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 ac_lo=`expr $ac_mid + 1`
5774 if test $ac_lo -le $ac_mid; then
5775 ac_lo= ac_hi=
5776 break
5777 fi
5778 ac_mid=`expr 2 '*' $ac_mid + 1`
5779 fi
5780
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 done
5783 else
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 $ac_includes_default
5794 typedef int ac__type_sizeof_;
5795 int
5796 main ()
5797 {
5798 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5799 test_array [0] = 0
5800
5801 ;
5802 return 0;
5803 }
5804 _ACEOF
5805 rm -f conftest.$ac_objext
5806 if { (ac_try="$ac_compile"
5807 case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compile") 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } && {
5819 test -z "$ac_c_werror_flag" ||
5820 test ! -s conftest.err
5821 } && test -s conftest.$ac_objext; then
5822 ac_hi=-1 ac_mid=-1
5823 while :; do
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 $ac_includes_default
5831 typedef int ac__type_sizeof_;
5832 int
5833 main ()
5834 {
5835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5836 test_array [0] = 0
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 rm -f conftest.$ac_objext
5843 if { (ac_try="$ac_compile"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
5859 ac_lo=$ac_mid; break
5860 else
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 ac_hi=`expr '(' $ac_mid ')' - 1`
5865 if test $ac_mid -le $ac_hi; then
5866 ac_lo= ac_hi=
5867 break
5868 fi
5869 ac_mid=`expr 2 '*' $ac_mid`
5870 fi
5871
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 done
5874 else
5875 echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 ac_lo= ac_hi=
5879 fi
5880
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 # Binary search between lo and hi bounds.
5886 while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.$ac_ext <<_ACEOF
5889 /* confdefs.h. */
5890 _ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5895 typedef int ac__type_sizeof_;
5896 int
5897 main ()
5898 {
5899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5900 test_array [0] = 0
5901
5902 ;
5903 return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
5923 ac_hi=$ac_mid
5924 else
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 ac_lo=`expr '(' $ac_mid ')' + 1`
5929 fi
5930
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 done
5933 case $ac_lo in
5934 ?*) ac_cv_sizeof_int=$ac_lo;;
5935 '') if test "$ac_cv_type_int" = yes; then
5936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5937 See \`config.log' for more details." >&5
5938 echo "$as_me: error: cannot compute sizeof (int)
5939 See \`config.log' for more details." >&2;}
5940 { (exit 77); exit 77; }; }
5941 else
5942 ac_cv_sizeof_int=0
5943 fi ;;
5944 esac
5945 else
5946 cat >conftest.$ac_ext <<_ACEOF
5947 /* confdefs.h. */
5948 _ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5952 $ac_includes_default
5953 typedef int ac__type_sizeof_;
5954 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5955 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5956 #include <stdio.h>
5957 #include <stdlib.h>
5958 int
5959 main ()
5960 {
5961
5962 FILE *f = fopen ("conftest.val", "w");
5963 if (! f)
5964 return 1;
5965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5966 {
5967 long int i = longval ();
5968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5969 return 1;
5970 fprintf (f, "%ld\n", i);
5971 }
5972 else
5973 {
5974 unsigned long int i = ulongval ();
5975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5976 return 1;
5977 fprintf (f, "%lu\n", i);
5978 }
5979 return ferror (f) || fclose (f) != 0;
5980
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest$ac_exeext
5986 if { (ac_try="$ac_link"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_link") 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5996 { (case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_int=`cat conftest.val`
6006 else
6007 echo "$as_me: program exited with status $ac_status" >&5
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ( exit $ac_status )
6012 if test "$ac_cv_type_int" = yes; then
6013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6014 See \`config.log' for more details." >&5
6015 echo "$as_me: error: cannot compute sizeof (int)
6016 See \`config.log' for more details." >&2;}
6017 { (exit 77); exit 77; }; }
6018 else
6019 ac_cv_sizeof_int=0
6020 fi
6021 fi
6022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 rm -f conftest.val
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6027 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6028
6029
6030
6031 cat >>confdefs.h <<_ACEOF
6032 #define SIZEOF_INT $ac_cv_sizeof_int
6033 _ACEOF
6034
6035
6036 { echo "$as_me:$LINENO: checking for long" >&5
6037 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6038 if test "${ac_cv_type_long+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 else
6041 cat >conftest.$ac_ext <<_ACEOF
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 typedef long ac__type_new_;
6049 int
6050 main ()
6051 {
6052 if ((ac__type_new_ *) 0)
6053 return 0;
6054 if (sizeof (ac__type_new_))
6055 return 0;
6056 ;
6057 return 0;
6058 }
6059 _ACEOF
6060 rm -f conftest.$ac_objext
6061 if { (ac_try="$ac_compile"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
6077 ac_cv_type_long=yes
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_cv_type_long=no
6083 fi
6084
6085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6086 fi
6087 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6088 echo "${ECHO_T}$ac_cv_type_long" >&6; }
6089
6090 # The cast to long int works around a bug in the HP C Compiler
6091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093 # This bug is HP SR number 8606223364.
6094 { echo "$as_me:$LINENO: checking size of long" >&5
6095 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6096 if test "${ac_cv_sizeof_long+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 if test "$cross_compiling" = yes; then
6100 # Depending upon the size, compute the lo and hi bounds.
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6108 typedef long ac__type_sizeof_;
6109 int
6110 main ()
6111 {
6112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6113 test_array [0] = 0
6114
6115 ;
6116 return 0;
6117 }
6118 _ACEOF
6119 rm -f conftest.$ac_objext
6120 if { (ac_try="$ac_compile"
6121 case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124 esac
6125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
6136 ac_lo=0 ac_mid=0
6137 while :; do
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 $ac_includes_default
6145 typedef long ac__type_sizeof_;
6146 int
6147 main ()
6148 {
6149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6150 test_array [0] = 0
6151
6152 ;
6153 return 0;
6154 }
6155 _ACEOF
6156 rm -f conftest.$ac_objext
6157 if { (ac_try="$ac_compile"
6158 case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161 esac
6162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
6173 ac_hi=$ac_mid; break
6174 else
6175 echo "$as_me: failed program was:" >&5
6176 sed 's/^/| /' conftest.$ac_ext >&5
6177
6178 ac_lo=`expr $ac_mid + 1`
6179 if test $ac_lo -le $ac_mid; then
6180 ac_lo= ac_hi=
6181 break
6182 fi
6183 ac_mid=`expr 2 '*' $ac_mid + 1`
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 done
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6191
6192 cat >conftest.$ac_ext <<_ACEOF
6193 /* confdefs.h. */
6194 _ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6199 typedef long ac__type_sizeof_;
6200 int
6201 main ()
6202 {
6203 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6204 test_array [0] = 0
6205
6206 ;
6207 return 0;
6208 }
6209 _ACEOF
6210 rm -f conftest.$ac_objext
6211 if { (ac_try="$ac_compile"
6212 case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215 esac
6216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
6227 ac_hi=-1 ac_mid=-1
6228 while :; do
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 $ac_includes_default
6236 typedef long ac__type_sizeof_;
6237 int
6238 main ()
6239 {
6240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6241 test_array [0] = 0
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 rm -f conftest.$ac_objext
6248 if { (ac_try="$ac_compile"
6249 case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252 esac
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest.$ac_objext; then
6264 ac_lo=$ac_mid; break
6265 else
6266 echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269 ac_hi=`expr '(' $ac_mid ')' - 1`
6270 if test $ac_mid -le $ac_hi; then
6271 ac_lo= ac_hi=
6272 break
6273 fi
6274 ac_mid=`expr 2 '*' $ac_mid`
6275 fi
6276
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6278 done
6279 else
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6282
6283 ac_lo= ac_hi=
6284 fi
6285
6286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287 fi
6288
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 # Binary search between lo and hi bounds.
6291 while test "x$ac_lo" != "x$ac_hi"; do
6292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6293 cat >conftest.$ac_ext <<_ACEOF
6294 /* confdefs.h. */
6295 _ACEOF
6296 cat confdefs.h >>conftest.$ac_ext
6297 cat >>conftest.$ac_ext <<_ACEOF
6298 /* end confdefs.h. */
6299 $ac_includes_default
6300 typedef long ac__type_sizeof_;
6301 int
6302 main ()
6303 {
6304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6305 test_array [0] = 0
6306
6307 ;
6308 return 0;
6309 }
6310 _ACEOF
6311 rm -f conftest.$ac_objext
6312 if { (ac_try="$ac_compile"
6313 case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316 esac
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
6328 ac_hi=$ac_mid
6329 else
6330 echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 ac_lo=`expr '(' $ac_mid ')' + 1`
6334 fi
6335
6336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6337 done
6338 case $ac_lo in
6339 ?*) ac_cv_sizeof_long=$ac_lo;;
6340 '') if test "$ac_cv_type_long" = yes; then
6341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6342 See \`config.log' for more details." >&5
6343 echo "$as_me: error: cannot compute sizeof (long)
6344 See \`config.log' for more details." >&2;}
6345 { (exit 77); exit 77; }; }
6346 else
6347 ac_cv_sizeof_long=0
6348 fi ;;
6349 esac
6350 else
6351 cat >conftest.$ac_ext <<_ACEOF
6352 /* confdefs.h. */
6353 _ACEOF
6354 cat confdefs.h >>conftest.$ac_ext
6355 cat >>conftest.$ac_ext <<_ACEOF
6356 /* end confdefs.h. */
6357 $ac_includes_default
6358 typedef long ac__type_sizeof_;
6359 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6360 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6361 #include <stdio.h>
6362 #include <stdlib.h>
6363 int
6364 main ()
6365 {
6366
6367 FILE *f = fopen ("conftest.val", "w");
6368 if (! f)
6369 return 1;
6370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6371 {
6372 long int i = longval ();
6373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6374 return 1;
6375 fprintf (f, "%ld\n", i);
6376 }
6377 else
6378 {
6379 unsigned long int i = ulongval ();
6380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6381 return 1;
6382 fprintf (f, "%lu\n", i);
6383 }
6384 return ferror (f) || fclose (f) != 0;
6385
6386 ;
6387 return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest$ac_exeext
6391 if { (ac_try="$ac_link"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_link") 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404 esac
6405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_try") 2>&5
6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_sizeof_long=`cat conftest.val`
6411 else
6412 echo "$as_me: program exited with status $ac_status" >&5
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416 ( exit $ac_status )
6417 if test "$ac_cv_type_long" = yes; then
6418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6419 See \`config.log' for more details." >&5
6420 echo "$as_me: error: cannot compute sizeof (long)
6421 See \`config.log' for more details." >&2;}
6422 { (exit 77); exit 77; }; }
6423 else
6424 ac_cv_sizeof_long=0
6425 fi
6426 fi
6427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6428 fi
6429 rm -f conftest.val
6430 fi
6431 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6432 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6433
6434
6435
6436 cat >>confdefs.h <<_ACEOF
6437 #define SIZEOF_LONG $ac_cv_sizeof_long
6438 _ACEOF
6439
6440
6441 { echo "$as_me:$LINENO: checking for long long" >&5
6442 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6443 if test "${ac_cv_type_long_long+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 else
6446 cat >conftest.$ac_ext <<_ACEOF
6447 /* confdefs.h. */
6448 _ACEOF
6449 cat confdefs.h >>conftest.$ac_ext
6450 cat >>conftest.$ac_ext <<_ACEOF
6451 /* end confdefs.h. */
6452 $ac_includes_default
6453 typedef long long ac__type_new_;
6454 int
6455 main ()
6456 {
6457 if ((ac__type_new_ *) 0)
6458 return 0;
6459 if (sizeof (ac__type_new_))
6460 return 0;
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 rm -f conftest.$ac_objext
6466 if { (ac_try="$ac_compile"
6467 case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470 esac
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
6482 ac_cv_type_long_long=yes
6483 else
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6486
6487 ac_cv_type_long_long=no
6488 fi
6489
6490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 fi
6492 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6493 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6494
6495 # The cast to long int works around a bug in the HP C Compiler
6496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6498 # This bug is HP SR number 8606223364.
6499 { echo "$as_me:$LINENO: checking size of long long" >&5
6500 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6501 if test "${ac_cv_sizeof_long_long+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 else
6504 if test "$cross_compiling" = yes; then
6505 # Depending upon the size, compute the lo and hi bounds.
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 $ac_includes_default
6513 typedef long long ac__type_sizeof_;
6514 int
6515 main ()
6516 {
6517 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6518 test_array [0] = 0
6519
6520 ;
6521 return 0;
6522 }
6523 _ACEOF
6524 rm -f conftest.$ac_objext
6525 if { (ac_try="$ac_compile"
6526 case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529 esac
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 ac_lo=0 ac_mid=0
6542 while :; do
6543 cat >conftest.$ac_ext <<_ACEOF
6544 /* confdefs.h. */
6545 _ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 typedef long long ac__type_sizeof_;
6551 int
6552 main ()
6553 {
6554 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6555 test_array [0] = 0
6556
6557 ;
6558 return 0;
6559 }
6560 _ACEOF
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_hi=$ac_mid; break
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_lo=`expr $ac_mid + 1`
6584 if test $ac_lo -le $ac_mid; then
6585 ac_lo= ac_hi=
6586 break
6587 fi
6588 ac_mid=`expr 2 '*' $ac_mid + 1`
6589 fi
6590
6591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6592 done
6593 else
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 $ac_includes_default
6604 typedef long long ac__type_sizeof_;
6605 int
6606 main ()
6607 {
6608 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6609 test_array [0] = 0
6610
6611 ;
6612 return 0;
6613 }
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (ac_try="$ac_compile"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_compile") 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.$ac_objext; then
6632 ac_hi=-1 ac_mid=-1
6633 while :; do
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 $ac_includes_default
6641 typedef long long ac__type_sizeof_;
6642 int
6643 main ()
6644 {
6645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6646 test_array [0] = 0
6647
6648 ;
6649 return 0;
6650 }
6651 _ACEOF
6652 rm -f conftest.$ac_objext
6653 if { (ac_try="$ac_compile"
6654 case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657 esac
6658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_compile") 2>conftest.er1
6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest.$ac_objext; then
6669 ac_lo=$ac_mid; break
6670 else
6671 echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6673
6674 ac_hi=`expr '(' $ac_mid ')' - 1`
6675 if test $ac_mid -le $ac_hi; then
6676 ac_lo= ac_hi=
6677 break
6678 fi
6679 ac_mid=`expr 2 '*' $ac_mid`
6680 fi
6681
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 done
6684 else
6685 echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_lo= ac_hi=
6689 fi
6690
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 fi
6693
6694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6695 # Binary search between lo and hi bounds.
6696 while test "x$ac_lo" != "x$ac_hi"; do
6697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h. */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h. */
6704 $ac_includes_default
6705 typedef long long ac__type_sizeof_;
6706 int
6707 main ()
6708 {
6709 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6710 test_array [0] = 0
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6718 case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 ac_hi=$ac_mid
6734 else
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738 ac_lo=`expr '(' $ac_mid ')' + 1`
6739 fi
6740
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 done
6743 case $ac_lo in
6744 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6745 '') if test "$ac_cv_type_long_long" = yes; then
6746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6747 See \`config.log' for more details." >&5
6748 echo "$as_me: error: cannot compute sizeof (long long)
6749 See \`config.log' for more details." >&2;}
6750 { (exit 77); exit 77; }; }
6751 else
6752 ac_cv_sizeof_long_long=0
6753 fi ;;
6754 esac
6755 else
6756 cat >conftest.$ac_ext <<_ACEOF
6757 /* confdefs.h. */
6758 _ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 typedef long long ac__type_sizeof_;
6764 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6765 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6766 #include <stdio.h>
6767 #include <stdlib.h>
6768 int
6769 main ()
6770 {
6771
6772 FILE *f = fopen ("conftest.val", "w");
6773 if (! f)
6774 return 1;
6775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6776 {
6777 long int i = longval ();
6778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6779 return 1;
6780 fprintf (f, "%ld\n", i);
6781 }
6782 else
6783 {
6784 unsigned long int i = ulongval ();
6785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6786 return 1;
6787 fprintf (f, "%lu\n", i);
6788 }
6789 return ferror (f) || fclose (f) != 0;
6790
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>&5
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6806 { (case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809 esac
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_try") 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_sizeof_long_long=`cat conftest.val`
6816 else
6817 echo "$as_me: program exited with status $ac_status" >&5
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6820
6821 ( exit $ac_status )
6822 if test "$ac_cv_type_long_long" = yes; then
6823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6824 See \`config.log' for more details." >&5
6825 echo "$as_me: error: cannot compute sizeof (long long)
6826 See \`config.log' for more details." >&2;}
6827 { (exit 77); exit 77; }; }
6828 else
6829 ac_cv_sizeof_long_long=0
6830 fi
6831 fi
6832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6833 fi
6834 rm -f conftest.val
6835 fi
6836 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6837 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6838
6839
6840
6841 cat >>confdefs.h <<_ACEOF
6842 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6843 _ACEOF
6844
6845
6846
6847
6848 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6849 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6850 if test "${ac_cv_search_socket+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853 ac_func_search_save_LIBS=$LIBS
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860
6861 /* Override any GCC internal prototype to avoid an error.
6862 Use char because int might match the return type of a GCC
6863 builtin and then its argument prototype would still apply. */
6864 #ifdef __cplusplus
6865 extern "C"
6866 #endif
6867 char socket ();
6868 int
6869 main ()
6870 {
6871 return socket ();
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 for ac_lib in '' socket; do
6877 if test -z "$ac_lib"; then
6878 ac_res="none required"
6879 else
6880 ac_res=-l$ac_lib
6881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6882 fi
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884 if { (ac_try="$ac_link"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_link") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest$ac_exeext &&
6900 $as_test_x conftest$ac_exeext; then
6901 ac_cv_search_socket=$ac_res
6902 else
6903 echo "$as_me: failed program was:" >&5
6904 sed 's/^/| /' conftest.$ac_ext >&5
6905
6906
6907 fi
6908
6909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6910 conftest$ac_exeext
6911 if test "${ac_cv_search_socket+set}" = set; then
6912 break
6913 fi
6914 done
6915 if test "${ac_cv_search_socket+set}" = set; then
6916 :
6917 else
6918 ac_cv_search_socket=no
6919 fi
6920 rm conftest.$ac_ext
6921 LIBS=$ac_func_search_save_LIBS
6922 fi
6923 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6924 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6925 ac_res=$ac_cv_search_socket
6926 if test "$ac_res" != no; then
6927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6928
6929 else
6930 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
6931 echo "$as_me: error: You have no socket()! Aborting." >&2;}
6932 { (exit 1); exit 1; }; }
6933 fi
6934
6935
6936 if test x"$SUN" = xyes; then
6937 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
6938 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
6939 if test "${ac_cv_search_inet_ntoa+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941 else
6942 ac_func_search_save_LIBS=$LIBS
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949
6950 /* Override any GCC internal prototype to avoid an error.
6951 Use char because int might match the return type of a GCC
6952 builtin and then its argument prototype would still apply. */
6953 #ifdef __cplusplus
6954 extern "C"
6955 #endif
6956 char inet_ntoa ();
6957 int
6958 main ()
6959 {
6960 return inet_ntoa ();
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 for ac_lib in '' nsl; do
6966 if test -z "$ac_lib"; then
6967 ac_res="none required"
6968 else
6969 ac_res=-l$ac_lib
6970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6971 fi
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973 if { (ac_try="$ac_link"
6974 case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6979 (eval "$ac_link") 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest$ac_exeext &&
6989 $as_test_x conftest$ac_exeext; then
6990 ac_cv_search_inet_ntoa=$ac_res
6991 else
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995
6996 fi
6997
6998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6999 conftest$ac_exeext
7000 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7001 break
7002 fi
7003 done
7004 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7005 :
7006 else
7007 ac_cv_search_inet_ntoa=no
7008 fi
7009 rm conftest.$ac_ext
7010 LIBS=$ac_func_search_save_LIBS
7011 fi
7012 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7013 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7014 ac_res=$ac_cv_search_inet_ntoa
7015 if test "$ac_res" != no; then
7016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7017
7018 else
7019 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7020 echo "$as_me: error: libnsl not found! Aborting." >&2;}
7021 { (exit 1); exit 1; }; }
7022 fi
7023
7024 fi
7025
7026 { echo "$as_me:$LINENO: checking for socklen_t" >&5
7027 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7028 if test "${ac_cv_type_socklen_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/types.h>
7038 #include <sys/socket.h>
7039
7040 typedef socklen_t ac__type_new_;
7041 int
7042 main ()
7043 {
7044 if ((ac__type_new_ *) 0)
7045 return 0;
7046 if (sizeof (ac__type_new_))
7047 return 0;
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7054 case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
7069 ac_cv_type_socklen_t=yes
7070 else
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7073
7074 ac_cv_type_socklen_t=no
7075 fi
7076
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7078 fi
7079 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7080 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7081 if test $ac_cv_type_socklen_t = yes; then
7082 :
7083 else
7084
7085 cat >>confdefs.h <<\_ACEOF
7086 #define socklen_t unsigned int
7087 _ACEOF
7088
7089 fi
7090
7091
7092 # Check whether --enable-ipv6 was given.
7093 if test "${enable_ipv6+set}" = set; then
7094 enableval=$enable_ipv6; ipv6=$enableval
7095 else
7096 ipv6=no
7097 fi
7098
7099
7100 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7101 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7102 if test "${ac_cv_search_crypt+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105 ac_func_search_save_LIBS=$LIBS
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112
7113 /* Override any GCC internal prototype to avoid an error.
7114 Use char because int might match the return type of a GCC
7115 builtin and then its argument prototype would still apply. */
7116 #ifdef __cplusplus
7117 extern "C"
7118 #endif
7119 char crypt ();
7120 int
7121 main ()
7122 {
7123 return crypt ();
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 for ac_lib in '' crypt descrypt; do
7129 if test -z "$ac_lib"; then
7130 ac_res="none required"
7131 else
7132 ac_res=-l$ac_lib
7133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7134 fi
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136 if { (ac_try="$ac_link"
7137 case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140 esac
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_link") 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest$ac_exeext &&
7152 $as_test_x conftest$ac_exeext; then
7153 ac_cv_search_crypt=$ac_res
7154 else
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.$ac_ext >&5
7157
7158
7159 fi
7160
7161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7162 conftest$ac_exeext
7163 if test "${ac_cv_search_crypt+set}" = set; then
7164 break
7165 fi
7166 done
7167 if test "${ac_cv_search_crypt+set}" = set; then
7168 :
7169 else
7170 ac_cv_search_crypt=no
7171 fi
7172 rm conftest.$ac_ext
7173 LIBS=$ac_func_search_save_LIBS
7174 fi
7175 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7176 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7177 ac_res=$ac_cv_search_crypt
7178 if test "$ac_res" != no; then
7179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7180
7181 fi
7182
7183
7184 CRYPT_LIB=$ac_cv_search_crypt
7185
7186 if test "$CRYPT_LIB" = "none required"; then
7187 unset CRYPT_LIB
7188 elif test "$CRYPT_LIB" = no; then
7189 unset CRYPT_LIB
7190 fi
7191
7192
7193
7194 if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7195 VICONF=viconf
7196 else
7197 VICONF=""
7198 fi
7199
7200
7201
7202 { echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7203 echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
7204 if test "${gcc_cv_header_string+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 else
7207
7208 cat >conftest.$ac_ext <<_ACEOF
7209 #include <string.h>
7210 #include <strings.h>
7211 _ACEOF
7212 rm -f conftest.$ac_objext
7213 if { (ac_try="$ac_compile"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 gcc_cv_header_string=yes
7230 else
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 gcc_cv_header_string=no
7235 fi
7236
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238
7239 fi
7240 { echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7241 echo "${ECHO_T}$gcc_cv_header_string" >&6; }
7242
7243 if test "$gcc_cv_header_string" = "yes"; then
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define STRING_WITH_STRINGS 1
7247 _ACEOF
7248
7249 fi
7250
7251 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7252 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7253 if test "${ac_cv_c_bigendian+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 # See if sys/param.h defines the BYTE_ORDER macro.
7257 cat >conftest.$ac_ext <<_ACEOF
7258 /* confdefs.h. */
7259 _ACEOF
7260 cat confdefs.h >>conftest.$ac_ext
7261 cat >>conftest.$ac_ext <<_ACEOF
7262 /* end confdefs.h. */
7263 #include <sys/types.h>
7264 #include <sys/param.h>
7265
7266 int
7267 main ()
7268 {
7269 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7270 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7271 bogus endian macros
7272 #endif
7273
7274 ;
7275 return 0;
7276 }
7277 _ACEOF
7278 rm -f conftest.$ac_objext
7279 if { (ac_try="$ac_compile"
7280 case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283 esac
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7295 # It does; now see whether it defined to BIG_ENDIAN or not.
7296 cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h. */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h. */
7302 #include <sys/types.h>
7303 #include <sys/param.h>
7304
7305 int
7306 main ()
7307 {
7308 #if BYTE_ORDER != BIG_ENDIAN
7309 not big endian
7310 #endif
7311
7312 ;
7313 return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (ac_try="$ac_compile"
7318 case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321 esac
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 ac_cv_c_bigendian=yes
7334 else
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 ac_cv_c_bigendian=no
7339 fi
7340
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 # It does not; compile a test program.
7347 if test "$cross_compiling" = yes; then
7348 # try to guess the endianness by grepping values into an object file
7349 ac_cv_c_bigendian=unknown
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7357 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7358 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7359 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7360 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7361 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7362 int
7363 main ()
7364 {
7365 _ascii (); _ebcdic ();
7366 ;
7367 return 0;
7368 }
7369 _ACEOF
7370 rm -f conftest.$ac_objext
7371 if { (ac_try="$ac_compile"
7372 case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375 esac
7376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_compile") 2>conftest.er1
7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest.$ac_objext; then
7387 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7388 ac_cv_c_bigendian=yes
7389 fi
7390 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7391 if test "$ac_cv_c_bigendian" = unknown; then
7392 ac_cv_c_bigendian=no
7393 else
7394 # finding both strings is unlikely to happen, but who knows?
7395 ac_cv_c_bigendian=unknown
7396 fi
7397 fi
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402
7403 fi
7404
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406 else
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 $ac_includes_default
7414 int
7415 main ()
7416 {
7417
7418 /* Are we little or big endian? From Harbison&Steele. */
7419 union
7420 {
7421 long int l;
7422 char c[sizeof (long int)];
7423 } u;
7424 u.l = 1;
7425 return u.c[sizeof (long int) - 1] == 1;
7426
7427 ;
7428 return 0;
7429 }
7430 _ACEOF
7431 rm -f conftest$ac_exeext
7432 if { (ac_try="$ac_link"
7433 case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436 esac
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_link") 2>&5
7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7442 { (case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445 esac
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_try") 2>&5
7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_cv_c_bigendian=no
7452 else
7453 echo "$as_me: program exited with status $ac_status" >&5
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457 ( exit $ac_status )
7458 ac_cv_c_bigendian=yes
7459 fi
7460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7461 fi
7462
7463
7464 fi
7465
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 fi
7468 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7469 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7470 case $ac_cv_c_bigendian in
7471 yes)
7472
7473 cat >>confdefs.h <<\_ACEOF
7474 #define WORDS_BIGENDIAN 1
7475 _ACEOF
7476 ;;
7477 no)
7478 ;;
7479 *)
7480 { { echo "$as_me:$LINENO: error: unknown endianness
7481 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7482 echo "$as_me: error: unknown endianness
7483 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7484 { (exit 1); exit 1; }; } ;;
7485 esac
7486
7487
7488 if test "${ac_cv_header_stdarg_h+set}" = set; then
7489 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7490 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7491 if test "${ac_cv_header_stdarg_h+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 fi
7494 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7495 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7496 else
7497 # Is the header compilable?
7498 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7499 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7500 cat >conftest.$ac_ext <<_ACEOF
7501 /* confdefs.h. */
7502 _ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 $ac_includes_default
7507 #include <stdarg.h>
7508 _ACEOF
7509 rm -f conftest.$ac_objext
7510 if { (ac_try="$ac_compile"
7511 case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514 esac
7515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_compile") 2>conftest.er1
7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } && {
7523 test -z "$ac_c_werror_flag" ||
7524 test ! -s conftest.err
7525 } && test -s conftest.$ac_objext; then
7526 ac_header_compiler=yes
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 ac_header_compiler=no
7532 fi
7533
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7536 echo "${ECHO_T}$ac_header_compiler" >&6; }
7537
7538 # Is the header present?
7539 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7540 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <stdarg.h>
7548 _ACEOF
7549 if { (ac_try="$ac_cpp conftest.$ac_ext"
7550 case "(($ac_try" in
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7553 esac
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } >/dev/null && {
7562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 }; then
7565 ac_header_preproc=yes
7566 else
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570 ac_header_preproc=no
7571 fi
7572
7573 rm -f conftest.err conftest.$ac_ext
7574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7575 echo "${ECHO_T}$ac_header_preproc" >&6; }
7576
7577 # So? What about this header?
7578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7579 yes:no: )
7580 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7581 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7583 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7584 ac_header_preproc=yes
7585 ;;
7586 no:yes:* )
7587 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7588 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7590 echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7592 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7594 echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7596 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7597 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7598 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7599
7600 ;;
7601 esac
7602 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7603 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7604 if test "${ac_cv_header_stdarg_h+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 else
7607 ac_cv_header_stdarg_h=$ac_header_preproc
7608 fi
7609 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7610 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7611
7612 fi
7613 if test $ac_cv_header_stdarg_h = yes; then
7614 :
7615 else
7616 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7617 echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7618 { (exit 1); exit 1; }; }
7619 fi
7620
7621
7622
7623
7624 if test "$ac_cv_c_compiler_gnu" = yes; then
7625
7626 { echo "$as_me:$LINENO: checking for strlcpy" >&5
7627 echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
7628 save_CFLAGS=$CFLAGS
7629 CFLAGS="$CFLAGS -Wimplicit -Werror"
7630
7631 cat >conftest.$ac_ext <<_ACEOF
7632 /* confdefs.h. */
7633 _ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7637 #include <string.h>
7638 #include <stdlib.h>
7639 int
7640 main ()
7641 {
7642 char *a = malloc(6);
7643 strlcpy(a, "hello", 6);
7644
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest.$ac_objext conftest$ac_exeext
7650 if { (ac_try="$ac_link"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_link") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest$ac_exeext &&
7666 $as_test_x conftest$ac_exeext; then
7667 { echo "$as_me:$LINENO: result: yes" >&5
7668 echo "${ECHO_T}yes" >&6; }
7669
7670 cat >>confdefs.h <<\_ACEOF
7671 #define HAVE_STRLCPY 1
7672 _ACEOF
7673
7674 else
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 { echo "$as_me:$LINENO: result: no" >&5
7679 echo "${ECHO_T}no" >&6; }
7680
7681 fi
7682
7683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7684 conftest$ac_exeext conftest.$ac_ext
7685
7686 { echo "$as_me:$LINENO: checking for strlcat" >&5
7687 echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
7688 cat >conftest.$ac_ext <<_ACEOF
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 #include <string.h>
7695 #include <stdlib.h>
7696 int
7697 main ()
7698 {
7699 char *a = malloc(6);
7700 a[0] = '\0';
7701 strlcat(a, "hello", 6);
7702
7703 ;
7704 return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext conftest$ac_exeext
7708 if { (ac_try="$ac_link"
7709 case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712 esac
7713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714 (eval "$ac_link") 2>conftest.er1
7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest$ac_exeext &&
7724 $as_test_x conftest$ac_exeext; then
7725 { echo "$as_me:$LINENO: result: yes" >&5
7726 echo "${ECHO_T}yes" >&6; }
7727
7728 cat >>confdefs.h <<\_ACEOF
7729 #define HAVE_STRLCAT 1
7730 _ACEOF
7731
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7738
7739 fi
7740
7741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7742 conftest$ac_exeext conftest.$ac_ext
7743
7744 CFLAGS=$save_CFLAGS
7745
7746 else
7747
7748
7749
7750
7751 for ac_func in strlcat strlcpy
7752 do
7753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759 cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h. */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7767 #define $ac_func innocuous_$ac_func
7768
7769 /* System header to define __stub macros and hopefully few prototypes,
7770 which can conflict with char $ac_func (); below.
7771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7772 <limits.h> exists even on freestanding compilers. */
7773
7774 #ifdef __STDC__
7775 # include <limits.h>
7776 #else
7777 # include <assert.h>
7778 #endif
7779
7780 #undef $ac_func
7781
7782 /* Override any GCC internal prototype to avoid an error.
7783 Use char because int might match the return type of a GCC
7784 builtin and then its argument prototype would still apply. */
7785 #ifdef __cplusplus
7786 extern "C"
7787 #endif
7788 char $ac_func ();
7789 /* The GNU C library defines this for functions which it implements
7790 to always fail with ENOSYS. Some functions are actually named
7791 something starting with __ and the normal name is an alias. */
7792 #if defined __stub_$ac_func || defined __stub___$ac_func
7793 choke me
7794 #endif
7795
7796 int
7797 main ()
7798 {
7799 return $ac_func ();
7800 ;
7801 return 0;
7802 }
7803 _ACEOF
7804 rm -f conftest.$ac_objext conftest$ac_exeext
7805 if { (ac_try="$ac_link"
7806 case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809 esac
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_link") 2>conftest.er1
7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest$ac_exeext &&
7821 $as_test_x conftest$ac_exeext; then
7822 eval "$as_ac_var=yes"
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 eval "$as_ac_var=no"
7828 fi
7829
7830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7831 conftest$ac_exeext conftest.$ac_ext
7832 fi
7833 ac_res=`eval echo '${'$as_ac_var'}'`
7834 { echo "$as_me:$LINENO: result: $ac_res" >&5
7835 echo "${ECHO_T}$ac_res" >&6; }
7836 if test `eval echo '${'$as_ac_var'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7839 _ACEOF
7840
7841 fi
7842 done
7843
7844
7845 fi
7846
7847 { echo "$as_me:$LINENO: checking for u_int32_t" >&5
7848 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
7849 if test "${ac_cv_type_u_int32_t+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 else
7852 cat >conftest.$ac_ext <<_ACEOF
7853 /* confdefs.h. */
7854 _ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 $ac_includes_default
7859 typedef u_int32_t ac__type_new_;
7860 int
7861 main ()
7862 {
7863 if ((ac__type_new_ *) 0)
7864 return 0;
7865 if (sizeof (ac__type_new_))
7866 return 0;
7867 ;
7868 return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext
7872 if { (ac_try="$ac_compile"
7873 case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_compile") 2>conftest.er1
7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest.$ac_objext; then
7888 ac_cv_type_u_int32_t=yes
7889 else
7890 echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893 ac_cv_type_u_int32_t=no
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 fi
7898 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7899 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
7900 if test $ac_cv_type_u_int32_t = yes; then
7901 :
7902 else
7903
7904 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7905 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7906 if test "${ac_cv_type_uint32_t+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h. */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7915 $ac_includes_default
7916 typedef uint32_t ac__type_new_;
7917 int
7918 main ()
7919 {
7920 if ((ac__type_new_ *) 0)
7921 return 0;
7922 if (sizeof (ac__type_new_))
7923 return 0;
7924 ;
7925 return 0;
7926 }
7927 _ACEOF
7928 rm -f conftest.$ac_objext
7929 if { (ac_try="$ac_compile"
7930 case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933 esac
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7945 ac_cv_type_uint32_t=yes
7946 else
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7949
7950 ac_cv_type_uint32_t=no
7951 fi
7952
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 fi
7955 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7956 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7957 if test $ac_cv_type_uint32_t = yes; then
7958
7959
7960 cat >>confdefs.h <<\_ACEOF
7961 #define u_int32_t uint32_t
7962 _ACEOF
7963
7964
7965 else
7966
7967 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
7968 echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
7969
7970 cat >>confdefs.h <<\_ACEOF
7971 #define u_int32_t unsigned long int
7972 _ACEOF
7973
7974
7975 fi
7976
7977
7978 fi
7979
7980
7981 { echo "$as_me:$LINENO: checking for u_int16_t" >&5
7982 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
7983 if test "${ac_cv_type_u_int16_t+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 $ac_includes_default
7993 typedef u_int16_t ac__type_new_;
7994 int
7995 main ()
7996 {
7997 if ((ac__type_new_ *) 0)
7998 return 0;
7999 if (sizeof (ac__type_new_))
8000 return 0;
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 rm -f conftest.$ac_objext
8006 if { (ac_try="$ac_compile"
8007 case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_compile") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest.$ac_objext; then
8022 ac_cv_type_u_int16_t=yes
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_cv_type_u_int16_t=no
8028 fi
8029
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8033 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
8034 if test $ac_cv_type_u_int16_t = yes; then
8035 :
8036 else
8037
8038 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8039 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8040 if test "${ac_cv_type_uint16_t+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042 else
8043 cat >conftest.$ac_ext <<_ACEOF
8044 /* confdefs.h. */
8045 _ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8049 $ac_includes_default
8050 typedef uint16_t ac__type_new_;
8051 int
8052 main ()
8053 {
8054 if ((ac__type_new_ *) 0)
8055 return 0;
8056 if (sizeof (ac__type_new_))
8057 return 0;
8058 ;
8059 return 0;
8060 }
8061 _ACEOF
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8064 case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_cv_type_uint16_t=yes
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 ac_cv_type_uint16_t=no
8085 fi
8086
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8088 fi
8089 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8090 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8091 if test $ac_cv_type_uint16_t = yes; then
8092
8093
8094 cat >>confdefs.h <<\_ACEOF
8095 #define u_int16_t uint16_t
8096 _ACEOF
8097
8098
8099 else
8100
8101 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8102 echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8103
8104 cat >>confdefs.h <<\_ACEOF
8105 #define u_int16_t unsigned short int
8106 _ACEOF
8107
8108
8109 fi
8110
8111
8112 fi
8113
8114
8115 { echo "$as_me:$LINENO: checking for in_port_t" >&5
8116 echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
8117 if test "${ac_cv_type_in_port_t+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 #include <sys/types.h>
8127 #include <netinet/in.h>
8128
8129 typedef in_port_t ac__type_new_;
8130 int
8131 main ()
8132 {
8133 if ((ac__type_new_ *) 0)
8134 return 0;
8135 if (sizeof (ac__type_new_))
8136 return 0;
8137 ;
8138 return 0;
8139 }
8140 _ACEOF
8141 rm -f conftest.$ac_objext
8142 if { (ac_try="$ac_compile"
8143 case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146 esac
8147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_compile") 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } && {
8155 test -z "$ac_c_werror_flag" ||
8156 test ! -s conftest.err
8157 } && test -s conftest.$ac_objext; then
8158 ac_cv_type_in_port_t=yes
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163 ac_cv_type_in_port_t=no
8164 fi
8165
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 fi
8168 { echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8169 echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
8170 if test $ac_cv_type_in_port_t = yes; then
8171 :
8172 else
8173
8174 cat >>confdefs.h <<\_ACEOF
8175 #define in_port_t u_int16_t
8176 _ACEOF
8177
8178 fi
8179
8180
8181 { echo "$as_me:$LINENO: checking for sa_family_t" >&5
8182 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
8183 if test "${ac_cv_type_sa_family_t+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186 cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h. */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h. */
8192 #include <sys/types.h>
8193 #include <sys/socket.h>
8194
8195 typedef sa_family_t ac__type_new_;
8196 int
8197 main ()
8198 {
8199 if ((ac__type_new_ *) 0)
8200 return 0;
8201 if (sizeof (ac__type_new_))
8202 return 0;
8203 ;
8204 return 0;
8205 }
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (ac_try="$ac_compile"
8209 case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest.$ac_objext; then
8224 ac_cv_type_sa_family_t=yes
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
8229 ac_cv_type_sa_family_t=no
8230 fi
8231
8232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 { echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8235 echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
8236 if test $ac_cv_type_sa_family_t = yes; then
8237 :
8238 else
8239
8240 cat >>confdefs.h <<\_ACEOF
8241 #define sa_family_t u_int16_t
8242 _ACEOF
8243
8244 fi
8245
8246
8247 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
8248 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8249 if test "${ac_cv_type_uintptr_t+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251 else
8252 cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h. */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 $ac_includes_default
8259 typedef uintptr_t ac__type_new_;
8260 int
8261 main ()
8262 {
8263 if ((ac__type_new_ *) 0)
8264 return 0;
8265 if (sizeof (ac__type_new_))
8266 return 0;
8267 ;
8268 return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8273 case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276 esac
8277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_compile") 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } && {
8285 test -z "$ac_c_werror_flag" ||
8286 test ! -s conftest.err
8287 } && test -s conftest.$ac_objext; then
8288 ac_cv_type_uintptr_t=yes
8289 else
8290 echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293 ac_cv_type_uintptr_t=no
8294 fi
8295
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8299 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
8300 if test $ac_cv_type_uintptr_t = yes; then
8301
8302 cat >>confdefs.h <<_ACEOF
8303 #define HAVE_UINTPTR_T 1
8304 _ACEOF
8305
8306
8307 fi
8308
8309
8310
8311
8312
8313
8314
8315
8316 for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8317 do
8318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8319 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8321 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8332 #define $ac_func innocuous_$ac_func
8333
8334 /* System header to define __stub macros and hopefully few prototypes,
8335 which can conflict with char $ac_func (); below.
8336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8337 <limits.h> exists even on freestanding compilers. */
8338
8339 #ifdef __STDC__
8340 # include <limits.h>
8341 #else
8342 # include <assert.h>
8343 #endif
8344
8345 #undef $ac_func
8346
8347 /* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
8350 #ifdef __cplusplus
8351 extern "C"
8352 #endif
8353 char $ac_func ();
8354 /* The GNU C library defines this for functions which it implements
8355 to always fail with ENOSYS. Some functions are actually named
8356 something starting with __ and the normal name is an alias. */
8357 #if defined __stub_$ac_func || defined __stub___$ac_func
8358 choke me
8359 #endif
8360
8361 int
8362 main ()
8363 {
8364 return $ac_func ();
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8371 case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest$ac_exeext &&
8386 $as_test_x conftest$ac_exeext; then
8387 eval "$as_ac_var=yes"
8388 else
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392 eval "$as_ac_var=no"
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8396 conftest$ac_exeext conftest.$ac_ext
8397 fi
8398 ac_res=`eval echo '${'$as_ac_var'}'`
8399 { echo "$as_me:$LINENO: result: $ac_res" >&5
8400 echo "${ECHO_T}$ac_res" >&6; }
8401 if test `eval echo '${'$as_ac_var'}'` = yes; then
8402 cat >>confdefs.h <<_ACEOF
8403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8404 _ACEOF
8405
8406 fi
8407 done
8408
8409
8410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8411 # for constant arguments. Useless!
8412 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8413 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8414 if test "${ac_cv_working_alloca_h+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416 else
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 #include <alloca.h>
8424 int
8425 main ()
8426 {
8427 char *p = (char *) alloca (2 * sizeof (int));
8428 if (p) return 0;
8429 ;
8430 return 0;
8431 }
8432 _ACEOF
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (ac_try="$ac_link"
8435 case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_link") 2>conftest.er1
8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); } && {
8447 test -z "$ac_c_werror_flag" ||
8448 test ! -s conftest.err
8449 } && test -s conftest$ac_exeext &&
8450 $as_test_x conftest$ac_exeext; then
8451 ac_cv_working_alloca_h=yes
8452 else
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456 ac_cv_working_alloca_h=no
8457 fi
8458
8459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8460 conftest$ac_exeext conftest.$ac_ext
8461 fi
8462 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8463 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8464 if test $ac_cv_working_alloca_h = yes; then
8465
8466 cat >>confdefs.h <<\_ACEOF
8467 #define HAVE_ALLOCA_H 1
8468 _ACEOF
8469
8470 fi
8471
8472 { echo "$as_me:$LINENO: checking for alloca" >&5
8473 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8474 if test "${ac_cv_func_alloca_works+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 #ifdef __GNUC__
8484 # define alloca __builtin_alloca
8485 #else
8486 # ifdef _MSC_VER
8487 # include <malloc.h>
8488 # define alloca _alloca
8489 # else
8490 # ifdef HAVE_ALLOCA_H
8491 # include <alloca.h>
8492 # else
8493 # ifdef _AIX
8494 #pragma alloca
8495 # else
8496 # ifndef alloca /* predefined by HP cc +Olibcalls */
8497 char *alloca ();
8498 # endif
8499 # endif
8500 # endif
8501 # endif
8502 #endif
8503
8504 int
8505 main ()
8506 {
8507 char *p = (char *) alloca (1);
8508 if (p) return 0;
8509 ;
8510 return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (ac_try="$ac_link"
8515 case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest$ac_exeext &&
8530 $as_test_x conftest$ac_exeext; then
8531 ac_cv_func_alloca_works=yes
8532 else
8533 echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536 ac_cv_func_alloca_works=no
8537 fi
8538
8539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8540 conftest$ac_exeext conftest.$ac_ext
8541 fi
8542 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8543 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8544
8545 if test $ac_cv_func_alloca_works = yes; then
8546
8547 cat >>confdefs.h <<\_ACEOF
8548 #define HAVE_ALLOCA 1
8549 _ACEOF
8550
8551 else
8552 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8553 # that cause trouble. Some versions do not even contain alloca or
8554 # contain a buggy version. If you still want to use their alloca,
8555 # use ar to extract alloca.o from them instead of compiling alloca.c.
8556
8557 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define C_ALLOCA 1
8561 _ACEOF
8562
8563
8564 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8565 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8566 if test "${ac_cv_os_cray+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568 else
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h. */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 #if defined CRAY && ! defined CRAY2
8576 webecray
8577 #else
8578 wenotbecray
8579 #endif
8580
8581 _ACEOF
8582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8583 $EGREP "webecray" >/dev/null 2>&1; then
8584 ac_cv_os_cray=yes
8585 else
8586 ac_cv_os_cray=no
8587 fi
8588 rm -f conftest*
8589
8590 fi
8591 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8592 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8593 if test $ac_cv_os_cray = yes; then
8594 for ac_func in _getb67 GETB67 getb67; do
8595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h. */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8609 #define $ac_func innocuous_$ac_func
8610
8611 /* System header to define __stub macros and hopefully few prototypes,
8612 which can conflict with char $ac_func (); below.
8613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8614 <limits.h> exists even on freestanding compilers. */
8615
8616 #ifdef __STDC__
8617 # include <limits.h>
8618 #else
8619 # include <assert.h>
8620 #endif
8621
8622 #undef $ac_func
8623
8624 /* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
8627 #ifdef __cplusplus
8628 extern "C"
8629 #endif
8630 char $ac_func ();
8631 /* The GNU C library defines this for functions which it implements
8632 to always fail with ENOSYS. Some functions are actually named
8633 something starting with __ and the normal name is an alias. */
8634 #if defined __stub_$ac_func || defined __stub___$ac_func
8635 choke me
8636 #endif
8637
8638 int
8639 main ()
8640 {
8641 return $ac_func ();
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext conftest$ac_exeext
8647 if { (ac_try="$ac_link"
8648 case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_link") 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest$ac_exeext &&
8663 $as_test_x conftest$ac_exeext; then
8664 eval "$as_ac_var=yes"
8665 else
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8668
8669 eval "$as_ac_var=no"
8670 fi
8671
8672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8673 conftest$ac_exeext conftest.$ac_ext
8674 fi
8675 ac_res=`eval echo '${'$as_ac_var'}'`
8676 { echo "$as_me:$LINENO: result: $ac_res" >&5
8677 echo "${ECHO_T}$ac_res" >&6; }
8678 if test `eval echo '${'$as_ac_var'}'` = yes; then
8679
8680 cat >>confdefs.h <<_ACEOF
8681 #define CRAY_STACKSEG_END $ac_func
8682 _ACEOF
8683
8684 break
8685 fi
8686
8687 done
8688 fi
8689
8690 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8691 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8692 if test "${ac_cv_c_stack_direction+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694 else
8695 if test "$cross_compiling" = yes; then
8696 ac_cv_c_stack_direction=0
8697 else
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 $ac_includes_default
8705 int
8706 find_stack_direction ()
8707 {
8708 static char *addr = 0;
8709 auto char dummy;
8710 if (addr == 0)
8711 {
8712 addr = &dummy;
8713 return find_stack_direction ();
8714 }
8715 else
8716 return (&dummy > addr) ? 1 : -1;
8717 }
8718
8719 int
8720 main ()
8721 {
8722 return find_stack_direction () < 0;
8723 }
8724 _ACEOF
8725 rm -f conftest$ac_exeext
8726 if { (ac_try="$ac_link"
8727 case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730 esac
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_link") 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8736 { (case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739 esac
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_try") 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_cv_c_stack_direction=1
8746 else
8747 echo "$as_me: program exited with status $ac_status" >&5
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.$ac_ext >&5
8750
8751 ( exit $ac_status )
8752 ac_cv_c_stack_direction=-1
8753 fi
8754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8755 fi
8756
8757
8758 fi
8759 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8760 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define STACK_DIRECTION $ac_cv_c_stack_direction
8764 _ACEOF
8765
8766
8767 fi
8768
8769
8770
8771 { echo "$as_me:$LINENO: checking for nanosleep" >&5
8772 echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
8773 if test "${ac_cv_func_nanosleep+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 else
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h. */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 /* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
8783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8784 #define nanosleep innocuous_nanosleep
8785
8786 /* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char nanosleep (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8790
8791 #ifdef __STDC__
8792 # include <limits.h>
8793 #else
8794 # include <assert.h>
8795 #endif
8796
8797 #undef nanosleep
8798
8799 /* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
8802 #ifdef __cplusplus
8803 extern "C"
8804 #endif
8805 char nanosleep ();
8806 /* The GNU C library defines this for functions which it implements
8807 to always fail with ENOSYS. Some functions are actually named
8808 something starting with __ and the normal name is an alias. */
8809 #if defined __stub_nanosleep || defined __stub___nanosleep
8810 choke me
8811 #endif
8812
8813 int
8814 main ()
8815 {
8816 return nanosleep ();
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 rm -f conftest.$ac_objext conftest$ac_exeext
8822 if { (ac_try="$ac_link"
8823 case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_link") 2>conftest.er1
8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest$ac_exeext &&
8838 $as_test_x conftest$ac_exeext; then
8839 ac_cv_func_nanosleep=yes
8840 else
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8843
8844 ac_cv_func_nanosleep=no
8845 fi
8846
8847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8848 conftest$ac_exeext conftest.$ac_ext
8849 fi
8850 { echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
8851 echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
8852 if test $ac_cv_func_nanosleep = yes; then
8853 :
8854 else
8855 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
8856 echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
8857 if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-lrt $LIBS"
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8868
8869 /* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
8872 #ifdef __cplusplus
8873 extern "C"
8874 #endif
8875 char nanosleep ();
8876 int
8877 main ()
8878 {
8879 return nanosleep ();
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (ac_try="$ac_link"
8886 case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_link") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext &&
8901 $as_test_x conftest$ac_exeext; then
8902 ac_cv_lib_rt_nanosleep=yes
8903 else
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8906
8907 ac_cv_lib_rt_nanosleep=no
8908 fi
8909
8910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8911 conftest$ac_exeext conftest.$ac_ext
8912 LIBS=$ac_check_lib_save_LIBS
8913 fi
8914 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
8915 echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
8916 if test $ac_cv_lib_rt_nanosleep = yes; then
8917 LIBS="${LIBS} -lrt"
8918 else
8919 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
8920 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
8921 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924 ac_check_lib_save_LIBS=$LIBS
8925 LIBS="-lposix4 $LIBS"
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932
8933 /* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
8936 #ifdef __cplusplus
8937 extern "C"
8938 #endif
8939 char nanosleep ();
8940 int
8941 main ()
8942 {
8943 return nanosleep ();
8944 ;
8945 return 0;
8946 }
8947 _ACEOF
8948 rm -f conftest.$ac_objext conftest$ac_exeext
8949 if { (ac_try="$ac_link"
8950 case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_link") 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest$ac_exeext &&
8965 $as_test_x conftest$ac_exeext; then
8966 ac_cv_lib_posix4_nanosleep=yes
8967 else
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 ac_cv_lib_posix4_nanosleep=no
8972 fi
8973
8974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8975 conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8977 fi
8978 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
8979 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
8980 if test $ac_cv_lib_posix4_nanosleep = yes; then
8981 LIBS="${LIBS} -lposix4"
8982
8983 fi
8984
8985 fi
8986
8987 fi
8988
8989 if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
8990 then
8991 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
8992 echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
8993 else
8994
8995 cat >>confdefs.h <<\_ACEOF
8996 #define HAVE_NANOSLEEP 1
8997 _ACEOF
8998
8999 fi
9000
9001 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
9002 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9003 # Check whether --enable-openssl was given.
9004 if test "${enable_openssl+set}" = set; then
9005 enableval=$enable_openssl; cf_enable_openssl=$enableval
9006 else
9007 cf_enable_openssl="auto"
9008 fi
9009
9010
9011 if test "$cf_enable_openssl" != "no" ; then
9012 cf_openssl_basedir=""
9013 if test "$cf_enable_openssl" != "auto" &&
9014 test "$cf_enable_openssl" != "yes" ; then
9015 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9016 else
9017 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9018 /usr/local/openssl ; do
9019 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9020 cf_openssl_basedir="${dirs}"
9021 break
9022 fi
9023 done
9024 unset dirs
9025 fi
9026 if test ! -z "$cf_openssl_basedir"; then
9027 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9028 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9029 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9030 else
9031 cf_openssl_basedir=""
9032 fi
9033 else
9034 if test -f "/usr/include/openssl/opensslv.h" ; then
9035 cf_openssl_basedir="/usr"
9036 fi
9037 fi
9038
9039 if test ! -z "$cf_openssl_basedir"; then
9040 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9041 echo "${ECHO_T}$cf_openssl_basedir" >&6; }
9042 cf_enable_openssl="yes"
9043 else
9044 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9045 echo "${ECHO_T}not found. Specify a correct path?" >&6; }
9046 cf_enable_openssl="no"
9047 fi
9048 unset cf_openssl_basedir
9049 else
9050 { echo "$as_me:$LINENO: result: disabled" >&5
9051 echo "${ECHO_T}disabled" >&6; }
9052 fi
9053
9054 save_CPPFLAGS="$CPPFLAGS"
9055 CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9056 save_LIBS="$LIBS"
9057 LIBS="$LIBS $SSL_LIBS"
9058 if test "$cf_enable_openssl" != no; then
9059 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9060 echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
9061 if test "$cross_compiling" = yes; then
9062 cf_openssl_version_ok=no
9063 else
9064 cat >conftest.$ac_ext <<_ACEOF
9065 /* confdefs.h. */
9066 _ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 #include <openssl/opensslv.h>
9071 #include <stdlib.h>
9072 int
9073 main ()
9074 {
9075 if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9076 exit(0); else exit(1);
9077 ;
9078 return 0;
9079 }
9080 _ACEOF
9081 rm -f conftest$ac_exeext
9082 if { (ac_try="$ac_link"
9083 case "(($ac_try" in
9084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9085 *) ac_try_echo=$ac_try;;
9086 esac
9087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9088 (eval "$ac_link") 2>&5
9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9092 { (case "(($ac_try" in
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9095 esac
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_try") 2>&5
9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101 cf_openssl_version_ok=yes
9102 else
9103 echo "$as_me: program exited with status $ac_status" >&5
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9106
9107 ( exit $ac_status )
9108 cf_openssl_version_ok=no
9109 fi
9110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9111 fi
9112
9113
9114
9115 if test "$cf_openssl_version_ok" = yes; then
9116 { echo "$as_me:$LINENO: result: found" >&5
9117 echo "${ECHO_T}found" >&6; }
9118
9119 ENCSPEED=encspeed
9120
9121
9122 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9123
9124 { echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9125 echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
9126 if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128 else
9129 ac_check_lib_save_LIBS=$LIBS
9130 LIBS="-lcrypto $LIBS"
9131 cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h. */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h. */
9137
9138 /* Override any GCC internal prototype to avoid an error.
9139 Use char because int might match the return type of a GCC
9140 builtin and then its argument prototype would still apply. */
9141 #ifdef __cplusplus
9142 extern "C"
9143 #endif
9144 char RSA_free ();
9145 int
9146 main ()
9147 {
9148 return RSA_free ();
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (ac_try="$ac_link"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
9171 ac_cv_lib_crypto_RSA_free=yes
9172 else
9173 echo "$as_me: failed program was:" >&5
9174 sed 's/^/| /' conftest.$ac_ext >&5
9175
9176 ac_cv_lib_crypto_RSA_free=no
9177 fi
9178
9179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9180 conftest$ac_exeext conftest.$ac_ext
9181 LIBS=$ac_check_lib_save_LIBS
9182 fi
9183 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9184 echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
9185 if test $ac_cv_lib_crypto_RSA_free = yes; then
9186 cat >>confdefs.h <<_ACEOF
9187 #define HAVE_LIBCRYPTO 1
9188 _ACEOF
9189
9190 LIBS="-lcrypto $LIBS"
9191
9192 fi
9193
9194 SSL_LIBS="$SSL_LIBS -lcrypto"
9195 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9196 else
9197 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9198 echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
9199 fi
9200 fi
9201
9202 CPPFLAGS="$save_CPPFLAGS"
9203 LIBS="$save_LIBS"
9204
9205
9206
9207
9208
9209 # Check whether --with-zlib-path was given.
9210 if test "${with_zlib_path+set}" = set; then
9211 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9212 fi
9213
9214
9215 # Check whether --enable-zlib was given.
9216 if test "${enable_zlib+set}" = set; then
9217 enableval=$enable_zlib; zlib=$enableval
9218 else
9219 zlib=yes
9220 fi
9221
9222
9223 if test "$zlib" = yes; then
9224
9225 if test "${ac_cv_header_zlib_h+set}" = set; then
9226 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9227 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9228 if test "${ac_cv_header_zlib_h+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230 fi
9231 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9232 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9233 else
9234 # Is the header compilable?
9235 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
9236 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h. */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243 $ac_includes_default
9244 #include <zlib.h>
9245 _ACEOF
9246 rm -f conftest.$ac_objext
9247 if { (ac_try="$ac_compile"
9248 case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
9263 ac_header_compiler=yes
9264 else
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268 ac_header_compiler=no
9269 fi
9270
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9273 echo "${ECHO_T}$ac_header_compiler" >&6; }
9274
9275 # Is the header present?
9276 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
9277 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 #include <zlib.h>
9285 _ACEOF
9286 if { (ac_try="$ac_cpp conftest.$ac_ext"
9287 case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } >/dev/null && {
9299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9301 }; then
9302 ac_header_preproc=yes
9303 else
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ac_header_preproc=no
9308 fi
9309
9310 rm -f conftest.err conftest.$ac_ext
9311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9312 echo "${ECHO_T}$ac_header_preproc" >&6; }
9313
9314 # So? What about this header?
9315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9316 yes:no: )
9317 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9318 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9320 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9321 ac_header_preproc=yes
9322 ;;
9323 no:yes:* )
9324 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9325 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9327 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9329 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9331 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9333 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9335 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9336
9337 ;;
9338 esac
9339 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9340 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9341 if test "${ac_cv_header_zlib_h+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344 ac_cv_header_zlib_h=$ac_header_preproc
9345 fi
9346 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9347 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9348
9349 fi
9350 if test $ac_cv_header_zlib_h = yes; then
9351
9352 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9353 echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
9354 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357 ac_check_lib_save_LIBS=$LIBS
9358 LIBS="-lz $LIBS"
9359 cat >conftest.$ac_ext <<_ACEOF
9360 /* confdefs.h. */
9361 _ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9365
9366 /* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9369 #ifdef __cplusplus
9370 extern "C"
9371 #endif
9372 char zlibVersion ();
9373 int
9374 main ()
9375 {
9376 return zlibVersion ();
9377 ;
9378 return 0;
9379 }
9380 _ACEOF
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (ac_try="$ac_link"
9383 case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386 esac
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_link") 2>conftest.er1
9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest$ac_exeext &&
9398 $as_test_x conftest$ac_exeext; then
9399 ac_cv_lib_z_zlibVersion=yes
9400 else
9401 echo "$as_me: failed program was:" >&5
9402 sed 's/^/| /' conftest.$ac_ext >&5
9403
9404 ac_cv_lib_z_zlibVersion=no
9405 fi
9406
9407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9408 conftest$ac_exeext conftest.$ac_ext
9409 LIBS=$ac_check_lib_save_LIBS
9410 fi
9411 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9412 echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
9413 if test $ac_cv_lib_z_zlibVersion = yes; then
9414
9415 ZLIB_LD=-lz
9416
9417
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE_LIBZ 1
9420 _ACEOF
9421
9422
9423 else
9424 zlib=no
9425 fi
9426
9427
9428 else
9429 zlib=no
9430 fi
9431
9432
9433
9434 fi
9435
9436
9437 # Check whether --enable-ports was given.
9438 if test "${enable_ports+set}" = set; then
9439 enableval=$enable_ports; if test $enableval = yes; then
9440 SELECT_TYPE_EXPLICIT="ports"
9441 else
9442 use_ports=no
9443 fi
9444
9445 fi
9446
9447
9448 # Check whether --enable-poll was given.
9449 if test "${enable_poll+set}" = set; then
9450 enableval=$enable_poll; if test $enableval = yes; then
9451 SELECT_TYPE_EXPLICIT="poll"
9452 else
9453 use_poll=no
9454 fi
9455
9456 fi
9457
9458
9459 # Check whether --enable-select was given.
9460 if test "${enable_select+set}" = set; then
9461 enableval=$enable_select; if test $enableval = yes; then
9462 SELECT_TYPE_EXPLICIT="select"
9463 else
9464 use_select=no
9465 fi
9466
9467 fi
9468
9469
9470 # Check whether --enable-kqueue was given.
9471 if test "${enable_kqueue+set}" = set; then
9472 enableval=$enable_kqueue; if test $enableval = yes; then
9473 SELECT_TYPE_EXPLICIT="kqueue"
9474 else
9475 use_kqueue=no
9476 fi
9477
9478 fi
9479
9480
9481 # Check whether --enable-epoll was given.
9482 if test "${enable_epoll+set}" = set; then
9483 enableval=$enable_epoll; if test $enableval = yes; then
9484 SELECT_TYPE_EXPLICIT="epoll"
9485
9486 for ac_func in epoll_ctl
9487 do
9488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 else
9494 cat >conftest.$ac_ext <<_ACEOF
9495 /* confdefs.h. */
9496 _ACEOF
9497 cat confdefs.h >>conftest.$ac_ext
9498 cat >>conftest.$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9502 #define $ac_func innocuous_$ac_func
9503
9504 /* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char $ac_func (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9508
9509 #ifdef __STDC__
9510 # include <limits.h>
9511 #else
9512 # include <assert.h>
9513 #endif
9514
9515 #undef $ac_func
9516
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char $ac_func ();
9524 /* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
9527 #if defined __stub_$ac_func || defined __stub___$ac_func
9528 choke me
9529 #endif
9530
9531 int
9532 main ()
9533 {
9534 return $ac_func ();
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 rm -f conftest.$ac_objext conftest$ac_exeext
9540 if { (ac_try="$ac_link"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_link") 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest$ac_exeext &&
9556 $as_test_x conftest$ac_exeext; then
9557 eval "$as_ac_var=yes"
9558 else
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9561
9562 eval "$as_ac_var=no"
9563 fi
9564
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9567 fi
9568 ac_res=`eval echo '${'$as_ac_var'}'`
9569 { echo "$as_me:$LINENO: result: $ac_res" >&5
9570 echo "${ECHO_T}$ac_res" >&6; }
9571 if test `eval echo '${'$as_ac_var'}'` = yes; then
9572 cat >>confdefs.h <<_ACEOF
9573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574 _ACEOF
9575 haveepoll=yes
9576 else
9577 haveepoll=no
9578 fi
9579 done
9580
9581 else
9582 use_epoll=no
9583 fi
9584
9585 fi
9586
9587
9588
9589 { echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9590 echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
9591
9592 # Check whether --with-confdir was given.
9593 if test "${with_confdir+set}" = set; then
9594 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9595 { echo "$as_me:$LINENO: result: yes" >&5
9596 echo "${ECHO_T}yes" >&6; }
9597
9598 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9600 ac_define_dir=`eval echo $confdir`
9601 ac_define_dir=`eval echo $ac_define_dir`
9602 ETC_DIR="$ac_define_dir"
9603
9604
9605 cat >>confdefs.h <<_ACEOF
9606 #define ETC_DIR "$ac_define_dir"
9607 _ACEOF
9608
9609
9610
9611
9612 confdir=`(
9613 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9614 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9615 eval echo \""$confdir"\"
9616 )`
9617
9618
9619 else
9620 confdir='${prefix}/etc'
9621 { echo "$as_me:$LINENO: result: no" >&5
9622 echo "${ECHO_T}no" >&6; }
9623
9624 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9626 ac_define_dir=`eval echo $confdir`
9627 ac_define_dir=`eval echo $ac_define_dir`
9628 ETC_DIR="$ac_define_dir"
9629
9630
9631 cat >>confdefs.h <<_ACEOF
9632 #define ETC_DIR "$ac_define_dir"
9633 _ACEOF
9634
9635
9636
9637
9638 confdir=`(
9639 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9640 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9641 eval echo \""$confdir"\"
9642 )`
9643
9644
9645
9646 fi
9647
9648
9649
9650 { echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9651 echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
9652
9653 # Check whether --with-logdir was given.
9654 if test "${with_logdir+set}" = set; then
9655 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9656 { echo "$as_me:$LINENO: result: yes" >&5
9657 echo "${ECHO_T}yes" >&6; }
9658
9659 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9661 ac_define_dir=`eval echo $logdir`
9662 ac_define_dir=`eval echo $ac_define_dir`
9663 LOG_DIR="$ac_define_dir"
9664
9665
9666 cat >>confdefs.h <<_ACEOF
9667 #define LOG_DIR "$ac_define_dir"
9668 _ACEOF
9669
9670
9671
9672
9673 logdir=`(
9674 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9675 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9676 eval echo \""$logdir"\"
9677 )`
9678
9679
9680 else
9681 logdir='${prefix}/logs'
9682 { echo "$as_me:$LINENO: result: no" >&5
9683 echo "${ECHO_T}no" >&6; }
9684
9685 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9687 ac_define_dir=`eval echo $logdir`
9688 ac_define_dir=`eval echo $ac_define_dir`
9689 LOG_DIR="$ac_define_dir"
9690
9691
9692 cat >>confdefs.h <<_ACEOF
9693 #define LOG_DIR "$ac_define_dir"
9694 _ACEOF
9695
9696
9697
9698
9699 logdir=`(
9700 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9701 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9702 eval echo \""$logdir"\"
9703 )`
9704
9705
9706
9707 fi
9708
9709
9710
9711 { echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
9712 echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
9713
9714 # Check whether --with-helpdir was given.
9715 if test "${with_helpdir+set}" = set; then
9716 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
9717 { echo "$as_me:$LINENO: result: yes" >&5
9718 echo "${ECHO_T}yes" >&6; }
9719
9720 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9722 ac_define_dir=`eval echo $helpdir`
9723 ac_define_dir=`eval echo $ac_define_dir`
9724 HELP_DIR="$ac_define_dir"
9725
9726
9727 cat >>confdefs.h <<_ACEOF
9728 #define HELP_DIR "$ac_define_dir"
9729 _ACEOF
9730
9731
9732
9733
9734 helpdir=`(
9735 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9736 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9737 eval echo \""$helpdir"\"
9738 )`
9739
9740
9741 else
9742 helpdir='${prefix}/help'
9743 { echo "$as_me:$LINENO: result: no" >&5
9744 echo "${ECHO_T}no" >&6; }
9745
9746 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9748 ac_define_dir=`eval echo $helpdir`
9749 ac_define_dir=`eval echo $ac_define_dir`
9750 HELP_DIR="$ac_define_dir"
9751
9752
9753 cat >>confdefs.h <<_ACEOF
9754 #define HELP_DIR "$ac_define_dir"
9755 _ACEOF
9756
9757
9758
9759
9760 helpdir=`(
9761 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9762 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9763 eval echo \""$helpdir"\"
9764 )`
9765
9766
9767
9768 fi
9769
9770
9771
9772 { echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
9773 echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
9774
9775 # Check whether --with-moduledir was given.
9776 if test "${with_moduledir+set}" = set; then
9777 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
9778 { echo "$as_me:$LINENO: result: yes" >&5
9779 echo "${ECHO_T}yes" >&6; }
9780
9781 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9783 ac_define_dir=`eval echo $moduledir`
9784 ac_define_dir=`eval echo $ac_define_dir`
9785 MODULE_DIR="$ac_define_dir"
9786
9787
9788 cat >>confdefs.h <<_ACEOF
9789 #define MODULE_DIR "$ac_define_dir"
9790 _ACEOF
9791
9792
9793
9794
9795 moduledir=`(
9796 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9797 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9798 eval echo \""$moduledir"\"
9799 )`
9800
9801
9802 else
9803 moduledir='${prefix}/modules'
9804 { echo "$as_me:$LINENO: result: no" >&5
9805 echo "${ECHO_T}no" >&6; }
9806
9807 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9808 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9809 ac_define_dir=`eval echo $moduledir`
9810 ac_define_dir=`eval echo $ac_define_dir`
9811 MODULE_DIR="$ac_define_dir"
9812
9813
9814 cat >>confdefs.h <<_ACEOF
9815 #define MODULE_DIR "$ac_define_dir"
9816 _ACEOF
9817
9818
9819
9820
9821 moduledir=`(
9822 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9823 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9824 eval echo \""$moduledir"\"
9825 )`
9826
9827
9828
9829 fi
9830
9831
9832 if test ! -z "$SELECT_TYPE_EXPLICIT"; then
9833 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
9834 echo "Forcing $SELECT_TYPE to be enabled"
9835 else
9836
9837 if test ! "x$use_ports" = "xno"; then
9838
9839 for ac_func in port_getn
9840 do
9841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9842 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9844 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 else
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9855 #define $ac_func innocuous_$ac_func
9856
9857 /* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char $ac_func (); below.
9859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860 <limits.h> exists even on freestanding compilers. */
9861
9862 #ifdef __STDC__
9863 # include <limits.h>
9864 #else
9865 # include <assert.h>
9866 #endif
9867
9868 #undef $ac_func
9869
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 char $ac_func ();
9877 /* The GNU C library defines this for functions which it implements
9878 to always fail with ENOSYS. Some functions are actually named
9879 something starting with __ and the normal name is an alias. */
9880 #if defined __stub_$ac_func || defined __stub___$ac_func
9881 choke me
9882 #endif
9883
9884 int
9885 main ()
9886 {
9887 return $ac_func ();
9888 ;
9889 return 0;
9890 }
9891 _ACEOF
9892 rm -f conftest.$ac_objext conftest$ac_exeext
9893 if { (ac_try="$ac_link"
9894 case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest$ac_exeext &&
9909 $as_test_x conftest$ac_exeext; then
9910 eval "$as_ac_var=yes"
9911 else
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 eval "$as_ac_var=no"
9916 fi
9917
9918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919 conftest$ac_exeext conftest.$ac_ext
9920 fi
9921 ac_res=`eval echo '${'$as_ac_var'}'`
9922 { echo "$as_me:$LINENO: result: $ac_res" >&5
9923 echo "${ECHO_T}$ac_res" >&6; }
9924 if test `eval echo '${'$as_ac_var'}'` = yes; then
9925 cat >>confdefs.h <<_ACEOF
9926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9927 _ACEOF
9928 haveports=yes
9929 else
9930 haveports=no
9931 fi
9932 done
9933
9934 if test "x$haveports" = "xyes" ; then
9935 SELECT_TYPE="ports"
9936 fi
9937 fi
9938
9939 if test ! "x$use_select" = "xno"; then
9940
9941 for ac_func in select
9942 do
9943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 else
9949 cat >conftest.$ac_ext <<_ACEOF
9950 /* confdefs.h. */
9951 _ACEOF
9952 cat confdefs.h >>conftest.$ac_ext
9953 cat >>conftest.$ac_ext <<_ACEOF
9954 /* end confdefs.h. */
9955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9957 #define $ac_func innocuous_$ac_func
9958
9959 /* System header to define __stub macros and hopefully few prototypes,
9960 which can conflict with char $ac_func (); below.
9961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9962 <limits.h> exists even on freestanding compilers. */
9963
9964 #ifdef __STDC__
9965 # include <limits.h>
9966 #else
9967 # include <assert.h>
9968 #endif
9969
9970 #undef $ac_func
9971
9972 /* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
9975 #ifdef __cplusplus
9976 extern "C"
9977 #endif
9978 char $ac_func ();
9979 /* The GNU C library defines this for functions which it implements
9980 to always fail with ENOSYS. Some functions are actually named
9981 something starting with __ and the normal name is an alias. */
9982 #if defined __stub_$ac_func || defined __stub___$ac_func
9983 choke me
9984 #endif
9985
9986 int
9987 main ()
9988 {
9989 return $ac_func ();
9990 ;
9991 return 0;
9992 }
9993 _ACEOF
9994 rm -f conftest.$ac_objext conftest$ac_exeext
9995 if { (ac_try="$ac_link"
9996 case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999 esac
10000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_link") 2>conftest.er1
10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest$ac_exeext &&
10011 $as_test_x conftest$ac_exeext; then
10012 eval "$as_ac_var=yes"
10013 else
10014 echo "$as_me: failed program was:" >&5
10015 sed 's/^/| /' conftest.$ac_ext >&5
10016
10017 eval "$as_ac_var=no"
10018 fi
10019
10020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10021 conftest$ac_exeext conftest.$ac_ext
10022 fi
10023 ac_res=`eval echo '${'$as_ac_var'}'`
10024 { echo "$as_me:$LINENO: result: $ac_res" >&5
10025 echo "${ECHO_T}$ac_res" >&6; }
10026 if test `eval echo '${'$as_ac_var'}'` = yes; then
10027 cat >>confdefs.h <<_ACEOF
10028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10029 _ACEOF
10030 haveselect=yes
10031 else
10032 haveselect=no
10033 fi
10034 done
10035
10036 if test "x$haveselect" = "xyes" ; then
10037 SELECT_TYPE="select"
10038 fi
10039 fi
10040
10041 if test ! "x$use_poll" = "xno"; then
10042
10043 for ac_func in poll
10044 do
10045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051 cat >conftest.$ac_ext <<_ACEOF
10052 /* confdefs.h. */
10053 _ACEOF
10054 cat confdefs.h >>conftest.$ac_ext
10055 cat >>conftest.$ac_ext <<_ACEOF
10056 /* end confdefs.h. */
10057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059 #define $ac_func innocuous_$ac_func
10060
10061 /* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char $ac_func (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10065
10066 #ifdef __STDC__
10067 # include <limits.h>
10068 #else
10069 # include <assert.h>
10070 #endif
10071
10072 #undef $ac_func
10073
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10077 #ifdef __cplusplus
10078 extern "C"
10079 #endif
10080 char $ac_func ();
10081 /* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
10084 #if defined __stub_$ac_func || defined __stub___$ac_func
10085 choke me
10086 #endif
10087
10088 int
10089 main ()
10090 {
10091 return $ac_func ();
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 rm -f conftest.$ac_objext conftest$ac_exeext
10097 if { (ac_try="$ac_link"
10098 case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101 esac
10102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
10114 eval "$as_ac_var=yes"
10115 else
10116 echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10118
10119 eval "$as_ac_var=no"
10120 fi
10121
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124 fi
10125 ac_res=`eval echo '${'$as_ac_var'}'`
10126 { echo "$as_me:$LINENO: result: $ac_res" >&5
10127 echo "${ECHO_T}$ac_res" >&6; }
10128 if test `eval echo '${'$as_ac_var'}'` = yes; then
10129 cat >>confdefs.h <<_ACEOF
10130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10131 _ACEOF
10132 havepoll=yes
10133 else
10134 havepoll=no
10135 fi
10136 done
10137
10138 if test "x$havepoll" = "xyes" ; then
10139 SELECT_TYPE="poll"
10140 fi
10141 fi
10142
10143 if test ! "x$use_kqueue" = "xno"; then
10144
10145 for ac_func in kevent
10146 do
10147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 else
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h. */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10161 #define $ac_func innocuous_$ac_func
10162
10163 /* System header to define __stub macros and hopefully few prototypes,
10164 which can conflict with char $ac_func (); below.
10165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166 <limits.h> exists even on freestanding compilers. */
10167
10168 #ifdef __STDC__
10169 # include <limits.h>
10170 #else
10171 # include <assert.h>
10172 #endif
10173
10174 #undef $ac_func
10175
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10179 #ifdef __cplusplus
10180 extern "C"
10181 #endif
10182 char $ac_func ();
10183 /* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186 #if defined __stub_$ac_func || defined __stub___$ac_func
10187 choke me
10188 #endif
10189
10190 int
10191 main ()
10192 {
10193 return $ac_func ();
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203 esac
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext &&
10215 $as_test_x conftest$ac_exeext; then
10216 eval "$as_ac_var=yes"
10217 else
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221 eval "$as_ac_var=no"
10222 fi
10223
10224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10225 conftest$ac_exeext conftest.$ac_ext
10226 fi
10227 ac_res=`eval echo '${'$as_ac_var'}'`
10228 { echo "$as_me:$LINENO: result: $ac_res" >&5
10229 echo "${ECHO_T}$ac_res" >&6; }
10230 if test `eval echo '${'$as_ac_var'}'` = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10233 _ACEOF
10234 havekqueue=yes
10235 else
10236 havekqueue=no
10237 fi
10238 done
10239
10240 if test "x$havekqueue" = "xyes" ; then
10241 SELECT_TYPE="kqueue"
10242 fi
10243 fi
10244
10245 if test ! "x$use_epoll" = "xno"; then
10246
10247 for ac_func in epoll_ctl
10248 do
10249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10250 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10252 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255 cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h. */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10263 #define $ac_func innocuous_$ac_func
10264
10265 /* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char $ac_func (); below.
10267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268 <limits.h> exists even on freestanding compilers. */
10269
10270 #ifdef __STDC__
10271 # include <limits.h>
10272 #else
10273 # include <assert.h>
10274 #endif
10275
10276 #undef $ac_func
10277
10278 /* Override any GCC internal prototype to avoid an error.
10279 Use char because int might match the return type of a GCC
10280 builtin and then its argument prototype would still apply. */
10281 #ifdef __cplusplus
10282 extern "C"
10283 #endif
10284 char $ac_func ();
10285 /* The GNU C library defines this for functions which it implements
10286 to always fail with ENOSYS. Some functions are actually named
10287 something starting with __ and the normal name is an alias. */
10288 #if defined __stub_$ac_func || defined __stub___$ac_func
10289 choke me
10290 #endif
10291
10292 int
10293 main ()
10294 {
10295 return $ac_func ();
10296 ;
10297 return 0;
10298 }
10299 _ACEOF
10300 rm -f conftest.$ac_objext conftest$ac_exeext
10301 if { (ac_try="$ac_link"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305 esac
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest$ac_exeext &&
10317 $as_test_x conftest$ac_exeext; then
10318 eval "$as_ac_var=yes"
10319 else
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 eval "$as_ac_var=no"
10324 fi
10325
10326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10327 conftest$ac_exeext conftest.$ac_ext
10328 fi
10329 ac_res=`eval echo '${'$as_ac_var'}'`
10330 { echo "$as_me:$LINENO: result: $ac_res" >&5
10331 echo "${ECHO_T}$ac_res" >&6; }
10332 if test `eval echo '${'$as_ac_var'}'` = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335 _ACEOF
10336 haveepoll=yes
10337 else
10338 haveepoll=no
10339 fi
10340 done
10341
10342 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10343 if test "x$haveepoll" = "xyes" ; then
10344 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10345 echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
10346 if test "$cross_compiling" = yes; then
10347 { echo "$as_me:$LINENO: result: no" >&5
10348 echo "${ECHO_T}no" >&6; }
10349 else
10350 cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h. */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h. */
10356 #include <stdint.h>
10357 #include <sys/param.h>
10358 #include <sys/types.h>
10359 #include <sys/epoll.h>
10360 #include <sys/syscall.h>
10361 #include <unistd.h>
10362
10363 int
10364 main(int argc, char **argv)
10365 {
10366 int epfd;
10367
10368 epfd = epoll_create(256);
10369 return (epfd == -1 ? 1 : 0);
10370 }
10371 _ACEOF
10372 rm -f conftest$ac_exeext
10373 if { (ac_try="$ac_link"
10374 case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377 esac
10378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_link") 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386 esac
10387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 { echo "$as_me:$LINENO: result: yes" >&5
10393 echo "${ECHO_T}yes" >&6; }
10394
10395 cat >>confdefs.h <<\_ACEOF
10396 #define HAVE_EPOLL 1
10397 _ACEOF
10398
10399 SELECT_TYPE="epoll"
10400 else
10401 echo "$as_me: program exited with status $ac_status" >&5
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 ( exit $ac_status )
10406 { echo "$as_me:$LINENO: result: no" >&5
10407 echo "${ECHO_T}no" >&6; }
10408 fi
10409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10410 fi
10411
10412
10413 fi
10414 fi
10415
10416 haveepollsyscall=no
10417
10418 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10419 if test "x$haveepoll" = "xno" ; then
10420 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10421 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
10422 if test "$cross_compiling" = yes; then
10423 { echo "$as_me:$LINENO: result: no" >&5
10424 echo "${ECHO_T}no" >&6; }
10425 else
10426 cat >conftest.$ac_ext <<_ACEOF
10427 /* confdefs.h. */
10428 _ACEOF
10429 cat confdefs.h >>conftest.$ac_ext
10430 cat >>conftest.$ac_ext <<_ACEOF
10431 /* end confdefs.h. */
10432 #include <stdint.h>
10433 #include <sys/param.h>
10434 #include <sys/types.h>
10435 #include <sys/epoll.h>
10436 #include <sys/syscall.h>
10437 #include <unistd.h>
10438
10439 int
10440 epoll_create(int size)
10441 {
10442 return (syscall(__NR_epoll_create, size));
10443 }
10444
10445 int
10446 main(int argc, char **argv)
10447 {
10448 int epfd;
10449
10450 epfd = epoll_create(256);
10451 exit (epfd == -1 ? 1 : 0);
10452 }
10453 _ACEOF
10454 rm -f conftest$ac_exeext
10455 if { (ac_try="$ac_link"
10456 case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
10474 { echo "$as_me:$LINENO: result: yes" >&5
10475 echo "${ECHO_T}yes" >&6; }
10476
10477 cat >>confdefs.h <<\_ACEOF
10478 #define HAVE_EPOLL 1
10479 _ACEOF
10480
10481 SELECT_TYPE="epoll"
10482 else
10483 echo "$as_me: program exited with status $ac_status" >&5
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ( exit $ac_status )
10488 { echo "$as_me:$LINENO: result: no" >&5
10489 echo "${ECHO_T}no" >&6; }
10490 fi
10491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10492 fi
10493
10494
10495 fi
10496 fi
10497
10498 fi
10499
10500 fi
10501
10502 if test -z "$SELECT_TYPE"; then
10503 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10504 echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10505 { (exit 1); exit 1; }; }
10506 fi
10507
10508 echo "Using $SELECT_TYPE for select loop."
10509
10510
10511 cat >>confdefs.h <<_ACEOF
10512 #define SELECT_TYPE "$SELECT_TYPE"
10513 _ACEOF
10514
10515
10516
10517
10518
10519 # Check whether --enable-assert was given.
10520 if test "${enable_assert+set}" = set; then
10521 enableval=$enable_assert; assert=$enableval
10522 else
10523 assert=no
10524 fi
10525
10526
10527 if test "$assert" = no; then
10528
10529 cat >>confdefs.h <<\_ACEOF
10530 #define NDEBUG 1
10531 _ACEOF
10532
10533 elif test "$assert" = soft; then
10534
10535 cat >>confdefs.h <<\_ACEOF
10536 #define SOFT_ASSERT 1
10537 _ACEOF
10538
10539
10540 cat >>confdefs.h <<\_ACEOF
10541 #define NDEBUG 1
10542 _ACEOF
10543
10544 elif test "$assert" = yes; then
10545 assert = "hard";
10546 fi
10547
10548 { echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10549 echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10550 # Check whether --enable-iodebug was given.
10551 if test "${enable_iodebug+set}" = set; then
10552 enableval=$enable_iodebug; iodebug=$enableval
10553 else
10554 iodebug=no
10555 fi
10556
10557
10558 if test "$iodebug" = yes; then
10559
10560 cat >>confdefs.h <<\_ACEOF
10561 #define USE_IODEBUG_HOOKS 1
10562 _ACEOF
10563
10564 { echo "$as_me:$LINENO: result: yes" >&5
10565 echo "${ECHO_T}yes" >&6; }
10566 else
10567 { echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6; }
10569 fi
10570
10571
10572 { echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10573 echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10574 # Check whether --enable-profile was given.
10575 if test "${enable_profile+set}" = set; then
10576 enableval=$enable_profile; profile=$enableval
10577 else
10578 profile=no
10579 fi
10580
10581
10582 if test "$profile" = yes; then
10583 if test "$ac_cv_c_compiler_gnu" = yes; then
10584 IRC_CFLAGS="$IRC_CFLAGS -pg"
10585 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10586 echo "${ECHO_T}yes, adding -pg" >&6; }
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define CHARYBDIS_PROFILE 1
10590 _ACEOF
10591
10592 else
10593 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10594 echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
10595 fi
10596 else
10597 { echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6; }
10599 fi
10600
10601 # Check whether --enable-balloc was given.
10602 if test "${enable_balloc+set}" = set; then
10603 enableval=$enable_balloc; balloc=$enableval
10604 else
10605 balloc=yes
10606 fi
10607
10608
10609 if test "$balloc" = no; then
10610
10611 cat >>confdefs.h <<\_ACEOF
10612 #define NOBALLOC 1
10613 _ACEOF
10614
10615 fi
10616
10617 # Check whether --enable-small-net was given.
10618 if test "${enable_small_net+set}" = set; then
10619 enableval=$enable_small_net; small_net=$enableval
10620 else
10621 small_net=no
10622 fi
10623
10624
10625 if test "$small_net" = yes; then
10626
10627 cat >>confdefs.h <<\_ACEOF
10628 #define NICKNAMEHISTORYLENGTH 1500
10629 _ACEOF
10630
10631
10632 cat >>confdefs.h <<\_ACEOF
10633 #define CHANNEL_HEAP_SIZE 256
10634 _ACEOF
10635
10636
10637 cat >>confdefs.h <<\_ACEOF
10638 #define BAN_HEAP_SIZE 128
10639 _ACEOF
10640
10641
10642 cat >>confdefs.h <<\_ACEOF
10643 #define CLIENT_HEAP_SIZE 256
10644 _ACEOF
10645
10646
10647 cat >>confdefs.h <<\_ACEOF
10648 #define LCLIENT_HEAP_SIZE 128
10649 _ACEOF
10650
10651
10652 cat >>confdefs.h <<\_ACEOF
10653 #define PCLIENT_HEAP_SIZE 32
10654 _ACEOF
10655
10656
10657 cat >>confdefs.h <<\_ACEOF
10658 #define USER_HEAP_SIZE 128
10659 _ACEOF
10660
10661
10662 cat >>confdefs.h <<\_ACEOF
10663 #define DNODE_HEAP_SIZE 256
10664 _ACEOF
10665
10666
10667 cat >>confdefs.h <<\_ACEOF
10668 #define TOPIC_HEAP_SIZE 256
10669 _ACEOF
10670
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define LINEBUF_HEAP_SIZE 128
10674 _ACEOF
10675
10676
10677 cat >>confdefs.h <<\_ACEOF
10678 #define MEMBER_HEAP_SIZE 256
10679 _ACEOF
10680
10681
10682 cat >>confdefs.h <<\_ACEOF
10683 #define ND_HEAP_SIZE 128
10684 _ACEOF
10685
10686
10687 cat >>confdefs.h <<\_ACEOF
10688 #define CONFITEM_HEAP_SIZE 128
10689 _ACEOF
10690
10691
10692 cat >>confdefs.h <<\_ACEOF
10693 #define MONITOR_HEAP_SIZE 128
10694 _ACEOF
10695
10696
10697 cat >>confdefs.h <<\_ACEOF
10698 #define FD_HEAP_SIZE 128
10699 _ACEOF
10700
10701
10702 cat >>confdefs.h <<\_ACEOF
10703 #define AWAY_HEAP_SIZE 128
10704 _ACEOF
10705
10706 else
10707
10708 cat >>confdefs.h <<\_ACEOF
10709 #define NICKNAMEHISTORYLENGTH 15000
10710 _ACEOF
10711
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define CHANNEL_HEAP_SIZE 8192
10715 _ACEOF
10716
10717
10718 cat >>confdefs.h <<\_ACEOF
10719 #define BAN_HEAP_SIZE 4096
10720 _ACEOF
10721
10722
10723 cat >>confdefs.h <<\_ACEOF
10724 #define CLIENT_HEAP_SIZE 8192
10725 _ACEOF
10726
10727
10728 cat >>confdefs.h <<\_ACEOF
10729 #define LCLIENT_HEAP_SIZE 1024
10730 _ACEOF
10731
10732
10733 cat >>confdefs.h <<\_ACEOF
10734 #define PCLIENT_HEAP_SIZE 256
10735 _ACEOF
10736
10737
10738 cat >>confdefs.h <<\_ACEOF
10739 #define USER_HEAP_SIZE 8192
10740 _ACEOF
10741
10742
10743 cat >>confdefs.h <<\_ACEOF
10744 #define DNODE_HEAP_SIZE 8192
10745 _ACEOF
10746
10747
10748 cat >>confdefs.h <<\_ACEOF
10749 #define TOPIC_HEAP_SIZE 4096
10750 _ACEOF
10751
10752
10753 cat >>confdefs.h <<\_ACEOF
10754 #define LINEBUF_HEAP_SIZE 2048
10755 _ACEOF
10756
10757
10758 cat >>confdefs.h <<\_ACEOF
10759 #define MEMBER_HEAP_SIZE 32768
10760 _ACEOF
10761
10762
10763 cat >>confdefs.h <<\_ACEOF
10764 #define ND_HEAP_SIZE 512
10765 _ACEOF
10766
10767
10768 cat >>confdefs.h <<\_ACEOF
10769 #define CONFITEM_HEAP_SIZE 256
10770 _ACEOF
10771
10772
10773 cat >>confdefs.h <<\_ACEOF
10774 #define MONITOR_HEAP_SIZE 1024
10775 _ACEOF
10776
10777
10778 cat >>confdefs.h <<\_ACEOF
10779 #define FD_HEAP_SIZE 1024
10780 _ACEOF
10781
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define AWAY_HEAP_SIZE 512
10785 _ACEOF
10786
10787 fi
10788
10789
10790 # Check whether --with-nicklen was given.
10791 if test "${with_nicklen+set}" = set; then
10792 withval=$with_nicklen;
10793 if test $withval -ge 50; then
10794 NICKLEN=50
10795 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
10796 echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
10797 else
10798 NICKLEN="$withval"
10799 fi
10800
10801 else
10802 NICKLEN=15
10803 fi
10804
10805
10806
10807 # Check whether --with-topiclen was given.
10808 if test "${with_topiclen+set}" = set; then
10809 withval=$with_topiclen;
10810 if test $withval -ge 390; then
10811 TOPICLEN=390
10812 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
10813 echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
10814 else
10815 TOPICLEN=$withval
10816 fi
10817
10818 else
10819 TOPICLEN=390
10820 fi
10821
10822
10823
10824 cat >>confdefs.h <<_ACEOF
10825 #define TOPICLEN ${TOPICLEN}
10826 _ACEOF
10827
10828
10829 cat >>confdefs.h <<_ACEOF
10830 #define NICKLEN (${NICKLEN}+1)
10831 _ACEOF
10832
10833
10834 shared_modules="yes"
10835 if test "$shared_modules" = yes; then
10836
10837 if test "$CYGWIN" = yes; then
10838 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
10839 echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
10840 shared_modules="no"
10841 fi
10842
10843 if test "$CC" = tcc -a "$TenDRA" = "no"; then
10844 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
10845 echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
10846 shared_modules="no"
10847 fi
10848 fi
10849
10850 if test "$shared_modules" = yes; then
10851 DYNLINK_C=dynlink.c
10852
10853 for ac_header in dlfcn.h
10854 do
10855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 fi
10862 ac_res=`eval echo '${'$as_ac_Header'}'`
10863 { echo "$as_me:$LINENO: result: $ac_res" >&5
10864 echo "${ECHO_T}$ac_res" >&6; }
10865 else
10866 # Is the header compilable?
10867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10869 cat >conftest.$ac_ext <<_ACEOF
10870 /* confdefs.h. */
10871 _ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 $ac_includes_default
10876 #include <$ac_header>
10877 _ACEOF
10878 rm -f conftest.$ac_objext
10879 if { (ac_try="$ac_compile"
10880 case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883 esac
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_compile") 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } && {
10892 test -z "$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10894 } && test -s conftest.$ac_objext; then
10895 ac_header_compiler=yes
10896 else
10897 echo "$as_me: failed program was:" >&5
10898 sed 's/^/| /' conftest.$ac_ext >&5
10899
10900 ac_header_compiler=no
10901 fi
10902
10903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10905 echo "${ECHO_T}$ac_header_compiler" >&6; }
10906
10907 # Is the header present?
10908 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 #include <$ac_header>
10917 _ACEOF
10918 if { (ac_try="$ac_cpp conftest.$ac_ext"
10919 case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } >/dev/null && {
10931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 }; then
10934 ac_header_preproc=yes
10935 else
10936 echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 ac_header_preproc=no
10940 fi
10941
10942 rm -f conftest.err conftest.$ac_ext
10943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10944 echo "${ECHO_T}$ac_header_preproc" >&6; }
10945
10946 # So? What about this header?
10947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10948 yes:no: )
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10953 ac_header_preproc=yes
10954 ;;
10955 no:yes:* )
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10968
10969 ;;
10970 esac
10971 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976 eval "$as_ac_Header=\$ac_header_preproc"
10977 fi
10978 ac_res=`eval echo '${'$as_ac_Header'}'`
10979 { echo "$as_me:$LINENO: result: $ac_res" >&5
10980 echo "${ECHO_T}$ac_res" >&6; }
10981
10982 fi
10983 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986 _ACEOF
10987
10988 fi
10989
10990 done
10991
10992 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10993 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
10994 if test "${ac_cv_search_shl_load+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 else
10997 ac_func_search_save_LIBS=$LIBS
10998 cat >conftest.$ac_ext <<_ACEOF
10999 /* confdefs.h. */
11000 _ACEOF
11001 cat confdefs.h >>conftest.$ac_ext
11002 cat >>conftest.$ac_ext <<_ACEOF
11003 /* end confdefs.h. */
11004
11005 /* Override any GCC internal prototype to avoid an error.
11006 Use char because int might match the return type of a GCC
11007 builtin and then its argument prototype would still apply. */
11008 #ifdef __cplusplus
11009 extern "C"
11010 #endif
11011 char shl_load ();
11012 int
11013 main ()
11014 {
11015 return shl_load ();
11016 ;
11017 return 0;
11018 }
11019 _ACEOF
11020 for ac_lib in '' dld; do
11021 if test -z "$ac_lib"; then
11022 ac_res="none required"
11023 else
11024 ac_res=-l$ac_lib
11025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11026 fi
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028 if { (ac_try="$ac_link"
11029 case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_link") 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } && {
11041 test -z "$ac_c_werror_flag" ||
11042 test ! -s conftest.err
11043 } && test -s conftest$ac_exeext &&
11044 $as_test_x conftest$ac_exeext; then
11045 ac_cv_search_shl_load=$ac_res
11046 else
11047 echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11049
11050
11051 fi
11052
11053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11054 conftest$ac_exeext
11055 if test "${ac_cv_search_shl_load+set}" = set; then
11056 break
11057 fi
11058 done
11059 if test "${ac_cv_search_shl_load+set}" = set; then
11060 :
11061 else
11062 ac_cv_search_shl_load=no
11063 fi
11064 rm conftest.$ac_ext
11065 LIBS=$ac_func_search_save_LIBS
11066 fi
11067 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11068 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11069 ac_res=$ac_cv_search_shl_load
11070 if test "$ac_res" != no; then
11071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11072
11073
11074 cat >>confdefs.h <<\_ACEOF
11075 #define HAVE_SHL_LOAD 1
11076 _ACEOF
11077
11078 SUFFIX=".sl"
11079 MOD_TARGET=hpux_shared
11080 SEDOBJ="s/\.o/.sl/g"
11081
11082 else
11083
11084 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11085 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11086 if test "${ac_cv_search_dlopen+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089 ac_func_search_save_LIBS=$LIBS
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100 #ifdef __cplusplus
11101 extern "C"
11102 #endif
11103 char dlopen ();
11104 int
11105 main ()
11106 {
11107 return dlopen ();
11108 ;
11109 return 0;
11110 }
11111 _ACEOF
11112 for ac_lib in '' dl c_r; do
11113 if test -z "$ac_lib"; then
11114 ac_res="none required"
11115 else
11116 ac_res=-l$ac_lib
11117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11118 fi
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124 esac
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
11137 ac_cv_search_dlopen=$ac_res
11138 else
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.$ac_ext >&5
11141
11142
11143 fi
11144
11145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext
11147 if test "${ac_cv_search_dlopen+set}" = set; then
11148 break
11149 fi
11150 done
11151 if test "${ac_cv_search_dlopen+set}" = set; then
11152 :
11153 else
11154 ac_cv_search_dlopen=no
11155 fi
11156 rm conftest.$ac_ext
11157 LIBS=$ac_func_search_save_LIBS
11158 fi
11159 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11160 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11161 ac_res=$ac_cv_search_dlopen
11162 if test "$ac_res" != no; then
11163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11164
11165
11166 cat >>confdefs.h <<\_ACEOF
11167 #define HAVE_DLOPEN 1
11168 _ACEOF
11169
11170 SUFFIX=".so"
11171 MOD_TARGET=shared_modules
11172 SEDOBJ="s/\.o/.so/g"
11173 if test "$AppleGCC" = yes; then
11174
11175 for ac_header in mach-o/dyld.h
11176 do
11177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 fi
11184 ac_res=`eval echo '${'$as_ac_Header'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186 echo "${ECHO_T}$ac_res" >&6; }
11187 else
11188 # Is the header compilable?
11189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11191 cat >conftest.$ac_ext <<_ACEOF
11192 /* confdefs.h. */
11193 _ACEOF
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 $ac_includes_default
11198 #include <$ac_header>
11199 _ACEOF
11200 rm -f conftest.$ac_objext
11201 if { (ac_try="$ac_compile"
11202 case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205 esac
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
11217 ac_header_compiler=yes
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11221
11222 ac_header_compiler=no
11223 fi
11224
11225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11227 echo "${ECHO_T}$ac_header_compiler" >&6; }
11228
11229 # Is the header present?
11230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h. */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h. */
11238 #include <$ac_header>
11239 _ACEOF
11240 if { (ac_try="$ac_cpp conftest.$ac_ext"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252 (exit $ac_status); } >/dev/null && {
11253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 }; then
11256 ac_header_preproc=yes
11257 else
11258 echo "$as_me: failed program was:" >&5
11259 sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 ac_header_preproc=no
11262 fi
11263
11264 rm -f conftest.err conftest.$ac_ext
11265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266 echo "${ECHO_T}$ac_header_preproc" >&6; }
11267
11268 # So? What about this header?
11269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270 yes:no: )
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11276 ;;
11277 no:yes:* )
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11290
11291 ;;
11292 esac
11293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 eval "$as_ac_Header=\$ac_header_preproc"
11299 fi
11300 ac_res=`eval echo '${'$as_ac_Header'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11303
11304 fi
11305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308 _ACEOF
11309
11310 fi
11311
11312 done
11313
11314 fi
11315 { echo "$as_me:$LINENO: checking for dlsym" >&5
11316 echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
11317 if test "${ac_cv_func_dlsym+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h. */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h. */
11326 /* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328 #define dlsym innocuous_dlsym
11329
11330 /* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char dlsym (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11334
11335 #ifdef __STDC__
11336 # include <limits.h>
11337 #else
11338 # include <assert.h>
11339 #endif
11340
11341 #undef dlsym
11342
11343 /* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
11346 #ifdef __cplusplus
11347 extern "C"
11348 #endif
11349 char dlsym ();
11350 /* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
11353 #if defined __stub_dlsym || defined __stub___dlsym
11354 choke me
11355 #endif
11356
11357 int
11358 main ()
11359 {
11360 return dlsym ();
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 rm -f conftest.$ac_objext conftest$ac_exeext
11366 if { (ac_try="$ac_link"
11367 case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370 esac
11371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_link") 2>conftest.er1
11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest$ac_exeext &&
11382 $as_test_x conftest$ac_exeext; then
11383 ac_cv_func_dlsym=yes
11384 else
11385 echo "$as_me: failed program was:" >&5
11386 sed 's/^/| /' conftest.$ac_ext >&5
11387
11388 ac_cv_func_dlsym=no
11389 fi
11390
11391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11392 conftest$ac_exeext conftest.$ac_ext
11393 fi
11394 { echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11395 echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
11396 if test $ac_cv_func_dlsym = yes; then
11397 :
11398 else
11399
11400 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11401 echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11402 shared_modules=no
11403
11404 fi
11405
11406
11407 for ac_func in dlfunc
11408 do
11409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 else
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423 #define $ac_func innocuous_$ac_func
11424
11425 /* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11429
11430 #ifdef __STDC__
11431 # include <limits.h>
11432 #else
11433 # include <assert.h>
11434 #endif
11435
11436 #undef $ac_func
11437
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char $ac_func ();
11445 /* The GNU C library defines this for functions which it implements
11446 to always fail with ENOSYS. Some functions are actually named
11447 something starting with __ and the normal name is an alias. */
11448 #if defined __stub_$ac_func || defined __stub___$ac_func
11449 choke me
11450 #endif
11451
11452 int
11453 main ()
11454 {
11455 return $ac_func ();
11456 ;
11457 return 0;
11458 }
11459 _ACEOF
11460 rm -f conftest.$ac_objext conftest$ac_exeext
11461 if { (ac_try="$ac_link"
11462 case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465 esac
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest$ac_exeext &&
11477 $as_test_x conftest$ac_exeext; then
11478 eval "$as_ac_var=yes"
11479 else
11480 echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11482
11483 eval "$as_ac_var=no"
11484 fi
11485
11486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11487 conftest$ac_exeext conftest.$ac_ext
11488 fi
11489 ac_res=`eval echo '${'$as_ac_var'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 if test `eval echo '${'$as_ac_var'}'` = yes; then
11493 cat >>confdefs.h <<_ACEOF
11494 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11495 _ACEOF
11496
11497 fi
11498 done
11499
11500
11501 else
11502
11503 shared_modules=no
11504
11505 fi
11506
11507
11508 fi
11509
11510 fi
11511
11512
11513 cat >>confdefs.h <<_ACEOF
11514 #define SHARED_SUFFIX "$SUFFIX"
11515 _ACEOF
11516
11517
11518 if test "$shared_modules" = yes; then
11519 # The GNU linker requires the -export-dynamic option to make
11520 # all symbols visible in the dynamic symbol table.
11521 hold_ldflags=$LDFLAGS
11522 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11523 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
11524 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11525 cat >conftest.$ac_ext <<_ACEOF
11526 /* confdefs.h. */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531
11532 int
11533 main ()
11534 {
11535 int i;
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 rm -f conftest.$ac_objext conftest$ac_exeext
11541 if { (ac_try="$ac_link"
11542 case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545 esac
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } && {
11554 test -z "$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 } && test -s conftest$ac_exeext &&
11557 $as_test_x conftest$ac_exeext; then
11558 found=yes
11559 else
11560 echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563 found=no
11564 fi
11565
11566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11567 conftest$ac_exeext conftest.$ac_ext
11568 LDFLAGS=$hold_ldflags
11569
11570 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11571 found="no, IRIX ld uses -B,dynamic"
11572 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11573 fi
11574
11575 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11576 found="no, AIX ld uses -G -brtl"
11577 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11578 fi
11579
11580 { echo "$as_me:$LINENO: result: $found" >&5
11581 echo "${ECHO_T}$found" >&6; }
11582
11583 if test "$found" = yes; then
11584 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11585 fi
11586
11587 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11588 echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
11589 if test "$SGS" = "yes"; then
11590 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11591 echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
11592 PICFLAGS="-KPIC -DPIC -G"
11593 fi
11594
11595 if test "$AppleGCC" = "yes"; then
11596 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11597 echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
11598 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11599 fi
11600 if test "$HPUX" = "yes" -a "$CC" != gcc; then
11601 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11602 echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
11603 PICFLAGS="+z -r -q -n -c"
11604 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11605 echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
11606
11607 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
11608 { echo "$as_me:$LINENO: result: no" >&5
11609 echo "${ECHO_T}no" >&6; }
11610 else
11611 { echo "$as_me:$LINENO: result: yes" >&5
11612 echo "${ECHO_T}yes" >&6; }
11613 PICFLAGS="$PICFLAGS +ESfic"
11614 fi
11615
11616 LDFLAGS="${LDFLAGS} -Wl,-E"
11617 fi
11618 if test "$Tru" = yes -a "$CC" != gcc; then
11619 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11620 echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
11621 PICFLAGS="-shared -expect_unresolved '*' "
11622 LDFLAGS="-call_shared"
11623 fi
11624 if test -z "$PICFLAGS"; then
11625 if test "$ac_cv_c_compiler_gnu" = "yes"; then
11626 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11627 echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
11628 PICFLAGS="-fPIC -DPIC -shared"
11629 else
11630 { echo "$as_me:$LINENO: result: no" >&5
11631 echo "${ECHO_T}no" >&6; }
11632 shared_modules=no
11633 fi
11634 fi
11635 fi
11636
11637 # rpath, for finding libratbox.so at run time
11638 hold_ldflags=$LDFLAGS
11639 { echo "$as_me:$LINENO: checking for the ld -rpath flag" >&5
11640 echo $ECHO_N "checking for the ld -rpath flag... $ECHO_C" >&6; }
11641 LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h. */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11648
11649 int
11650 main ()
11651 {
11652 int i;
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest$ac_exeext &&
11674 $as_test_x conftest$ac_exeext; then
11675 found=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 found=no
11681 fi
11682
11683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LDFLAGS=$hold_ldflags
11686 { echo "$as_me:$LINENO: result: $found" >&5
11687 echo "${ECHO_T}$found" >&6; }
11688 if test "$found" = yes; then
11689 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
11690 fi
11691
11692 # This must be down here, or it will mess up checks like the ones
11693 # for -Wl,-export-dynamic
11694 # -- jilles
11695 CWARNS=""
11696 # Check whether --enable-warnings was given.
11697 if test "${enable_warnings+set}" = set; then
11698 enableval=$enable_warnings;
11699 IRC_CFLAGS="$IRC_CFLAGS -O0"
11700 CFLAGS="$IRC_CFLAGS"
11701
11702
11703 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11704 echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
11705 if test "${GCC-no}" = yes
11706 then
11707 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710
11711 oldcflags="${CFLAGS-}"
11712 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11713 cat >conftest.$ac_ext <<_ACEOF
11714 /* confdefs.h. */
11715 _ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719
11720 #include <string.h>
11721 #include <stdio.h>
11722 int main(void);
11723
11724 int
11725 main ()
11726 {
11727
11728 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11729
11730 ;
11731 return 0;
11732 }
11733 _ACEOF
11734 rm -f conftest.$ac_objext
11735 if { (ac_try="$ac_compile"
11736 case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_compile") 2>conftest.er1
11742 ac_status=$?
11743 grep -v '^ *+' conftest.er1 >conftest.err
11744 rm -f conftest.er1
11745 cat conftest.err >&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); } && {
11748 test -z "$ac_c_werror_flag" ||
11749 test ! -s conftest.err
11750 } && test -s conftest.$ac_objext; then
11751 charybdis_cv_c_gcc_w_all=yes
11752 else
11753 echo "$as_me: failed program was:" >&5
11754 sed 's/^/| /' conftest.$ac_ext >&5
11755
11756 charybdis_cv_c_gcc_w_all=no
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760 CFLAGS="${oldcflags}"
11761 fi
11762
11763 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
11764 CWARNS="${CWARNS}-Wall "
11765 { echo "$as_me:$LINENO: result: ok" >&5
11766 echo "${ECHO_T}ok" >&6; }
11767 else
11768 charybdis_cv_c_gcc_w_all=''
11769 { echo "$as_me:$LINENO: result: no" >&5
11770 echo "${ECHO_T}no" >&6; }
11771 fi
11772 else
11773 { echo "$as_me:$LINENO: result: no" >&5
11774 echo "${ECHO_T}no" >&6; }
11775 fi
11776
11777
11778 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
11779 echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
11780 if test "${GCC-no}" = yes
11781 then
11782 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11784 else
11785
11786 oldcflags="${CFLAGS-}"
11787 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
11788 cat >conftest.$ac_ext <<_ACEOF
11789 /* confdefs.h. */
11790 _ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11794
11795 #include <string.h>
11796 #include <stdio.h>
11797 int main(void);
11798
11799 int
11800 main ()
11801 {
11802
11803 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11804
11805 ;
11806 return 0;
11807 }
11808 _ACEOF
11809 rm -f conftest.$ac_objext
11810 if { (ac_try="$ac_compile"
11811 case "(($ac_try" in
11812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11814 esac
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_compile") 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest.$ac_objext; then
11826 charybdis_cv_c_gcc_w_pointer_arith=yes
11827 else
11828 echo "$as_me: failed program was:" >&5
11829 sed 's/^/| /' conftest.$ac_ext >&5
11830
11831 charybdis_cv_c_gcc_w_pointer_arith=no
11832 fi
11833
11834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11835 CFLAGS="${oldcflags}"
11836 fi
11837
11838 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
11839 CWARNS="${CWARNS}-Wpointer-arith "
11840 { echo "$as_me:$LINENO: result: ok" >&5
11841 echo "${ECHO_T}ok" >&6; }
11842 else
11843 charybdis_cv_c_gcc_w_pointer_arith=''
11844 { echo "$as_me:$LINENO: result: no" >&5
11845 echo "${ECHO_T}no" >&6; }
11846 fi
11847 else
11848 { echo "$as_me:$LINENO: result: no" >&5
11849 echo "${ECHO_T}no" >&6; }
11850 fi
11851
11852
11853 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
11854 echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
11855 if test "${GCC-no}" = yes
11856 then
11857 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860
11861 oldcflags="${CFLAGS-}"
11862 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
11863 cat >conftest.$ac_ext <<_ACEOF
11864 /* confdefs.h. */
11865 _ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869
11870 #include <string.h>
11871 #include <stdio.h>
11872 int main(void);
11873
11874 int
11875 main ()
11876 {
11877
11878 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11879
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 rm -f conftest.$ac_objext
11885 if { (ac_try="$ac_compile"
11886 case "(($ac_try" in
11887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11888 *) ac_try_echo=$ac_try;;
11889 esac
11890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11891 (eval "$ac_compile") 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } && {
11898 test -z "$ac_c_werror_flag" ||
11899 test ! -s conftest.err
11900 } && test -s conftest.$ac_objext; then
11901 charybdis_cv_c_gcc_w_implicit=yes
11902 else
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906 charybdis_cv_c_gcc_w_implicit=no
11907 fi
11908
11909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11910 CFLAGS="${oldcflags}"
11911 fi
11912
11913 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
11914 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
11915 { echo "$as_me:$LINENO: result: ok" >&5
11916 echo "${ECHO_T}ok" >&6; }
11917 else
11918 charybdis_cv_c_gcc_w_implicit=''
11919 { echo "$as_me:$LINENO: result: no" >&5
11920 echo "${ECHO_T}no" >&6; }
11921 fi
11922 else
11923 { echo "$as_me:$LINENO: result: no" >&5
11924 echo "${ECHO_T}no" >&6; }
11925 fi
11926
11927
11928 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
11929 echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
11930 if test "${GCC-no}" = yes
11931 then
11932 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935
11936 oldcflags="${CFLAGS-}"
11937 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
11938 cat >conftest.$ac_ext <<_ACEOF
11939 /* confdefs.h. */
11940 _ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11944
11945 #include <string.h>
11946 #include <stdio.h>
11947 int main(void);
11948
11949 int
11950 main ()
11951 {
11952
11953 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11954
11955 ;
11956 return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext
11960 if { (ac_try="$ac_compile"
11961 case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964 esac
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_compile") 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } && {
11973 test -z "$ac_c_werror_flag" ||
11974 test ! -s conftest.err
11975 } && test -s conftest.$ac_objext; then
11976 charybdis_cv_c_gcc_w_cast_align=yes
11977 else
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11980
11981 charybdis_cv_c_gcc_w_cast_align=no
11982 fi
11983
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 CFLAGS="${oldcflags}"
11986 fi
11987
11988 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
11989 CWARNS="${CWARNS}-Wcast-align "
11990 { echo "$as_me:$LINENO: result: ok" >&5
11991 echo "${ECHO_T}ok" >&6; }
11992 else
11993 charybdis_cv_c_gcc_w_cast_align=''
11994 { echo "$as_me:$LINENO: result: no" >&5
11995 echo "${ECHO_T}no" >&6; }
11996 fi
11997 else
11998 { echo "$as_me:$LINENO: result: no" >&5
11999 echo "${ECHO_T}no" >&6; }
12000 fi
12001
12002
12003 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12004 echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
12005 if test "${GCC-no}" = yes
12006 then
12007 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010
12011 oldcflags="${CFLAGS-}"
12012 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12013 cat >conftest.$ac_ext <<_ACEOF
12014 /* confdefs.h. */
12015 _ACEOF
12016 cat confdefs.h >>conftest.$ac_ext
12017 cat >>conftest.$ac_ext <<_ACEOF
12018 /* end confdefs.h. */
12019
12020 #include <string.h>
12021 #include <stdio.h>
12022 int main(void);
12023
12024 int
12025 main ()
12026 {
12027
12028 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12029
12030 ;
12031 return 0;
12032 }
12033 _ACEOF
12034 rm -f conftest.$ac_objext
12035 if { (ac_try="$ac_compile"
12036 case "(($ac_try" in
12037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12038 *) ac_try_echo=$ac_try;;
12039 esac
12040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12041 (eval "$ac_compile") 2>conftest.er1
12042 ac_status=$?
12043 grep -v '^ *+' conftest.er1 >conftest.err
12044 rm -f conftest.er1
12045 cat conftest.err >&5
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); } && {
12048 test -z "$ac_c_werror_flag" ||
12049 test ! -s conftest.err
12050 } && test -s conftest.$ac_objext; then
12051 charybdis_cv_c_gcc_w_cast_qual=yes
12052 else
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12055
12056 charybdis_cv_c_gcc_w_cast_qual=no
12057 fi
12058
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060 CFLAGS="${oldcflags}"
12061 fi
12062
12063 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12064 CWARNS="${CWARNS}-Wcast-qual "
12065 { echo "$as_me:$LINENO: result: ok" >&5
12066 echo "${ECHO_T}ok" >&6; }
12067 else
12068 charybdis_cv_c_gcc_w_cast_qual=''
12069 { echo "$as_me:$LINENO: result: no" >&5
12070 echo "${ECHO_T}no" >&6; }
12071 fi
12072 else
12073 { echo "$as_me:$LINENO: result: no" >&5
12074 echo "${ECHO_T}no" >&6; }
12075 fi
12076
12077
12078 { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5
12079 echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; }
12080 if test "${GCC-no}" = yes
12081 then
12082 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 else
12085
12086 oldcflags="${CFLAGS-}"
12087 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094
12095 #include <string.h>
12096 #include <stdio.h>
12097 int main(void);
12098
12099 int
12100 main ()
12101 {
12102
12103 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12104
12105 ;
12106 return 0;
12107 }
12108 _ACEOF
12109 rm -f conftest.$ac_objext
12110 if { (ac_try="$ac_compile"
12111 case "(($ac_try" in
12112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_compile") 2>conftest.er1
12117 ac_status=$?
12118 grep -v '^ *+' conftest.er1 >conftest.err
12119 rm -f conftest.er1
12120 cat conftest.err >&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest.$ac_objext; then
12126 charybdis_cv_c_gcc_w_float_equal=yes
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 charybdis_cv_c_gcc_w_float_equal=no
12132 fi
12133
12134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12135 CFLAGS="${oldcflags}"
12136 fi
12137
12138 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
12139 CWARNS="${CWARNS}-Wwrite-strings "
12140 { echo "$as_me:$LINENO: result: ok" >&5
12141 echo "${ECHO_T}ok" >&6; }
12142 else
12143 charybdis_cv_c_gcc_w_float_equal=''
12144 { echo "$as_me:$LINENO: result: no" >&5
12145 echo "${ECHO_T}no" >&6; }
12146 fi
12147 else
12148 { echo "$as_me:$LINENO: result: no" >&5
12149 echo "${ECHO_T}no" >&6; }
12150 fi
12151
12152
12153 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12154 echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
12155 if test "${GCC-no}" = yes
12156 then
12157 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12159 else
12160
12161 oldcflags="${CFLAGS-}"
12162 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h. */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h. */
12169
12170 #include <string.h>
12171 #include <stdio.h>
12172 int main(void);
12173
12174 int
12175 main ()
12176 {
12177
12178 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12179
12180 ;
12181 return 0;
12182 }
12183 _ACEOF
12184 rm -f conftest.$ac_objext
12185 if { (ac_try="$ac_compile"
12186 case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189 esac
12190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_compile") 2>conftest.er1
12192 ac_status=$?
12193 grep -v '^ *+' conftest.er1 >conftest.err
12194 rm -f conftest.er1
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } && {
12198 test -z "$ac_c_werror_flag" ||
12199 test ! -s conftest.err
12200 } && test -s conftest.$ac_objext; then
12201 charybdis_cv_c_gcc_prototypes=yes
12202 else
12203 echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 charybdis_cv_c_gcc_prototypes=no
12207 fi
12208
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 CFLAGS="${oldcflags}"
12211 fi
12212
12213 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12214 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12215 { echo "$as_me:$LINENO: result: ok" >&5
12216 echo "${ECHO_T}ok" >&6; }
12217 else
12218 charybdis_cv_c_gcc_prototypes=''
12219 { echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6; }
12221 fi
12222 else
12223 { echo "$as_me:$LINENO: result: no" >&5
12224 echo "${ECHO_T}no" >&6; }
12225 fi
12226
12227
12228 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12229 echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
12230 if test "${GCC-no}" = yes
12231 then
12232 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235
12236 oldcflags="${CFLAGS-}"
12237 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244
12245 #include <string.h>
12246 #include <stdio.h>
12247 int main(void);
12248
12249 int
12250 main ()
12251 {
12252
12253 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12254
12255 ;
12256 return 0;
12257 }
12258 _ACEOF
12259 rm -f conftest.$ac_objext
12260 if { (ac_try="$ac_compile"
12261 case "(($ac_try" in
12262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12263 *) ac_try_echo=$ac_try;;
12264 esac
12265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12266 (eval "$ac_compile") 2>conftest.er1
12267 ac_status=$?
12268 grep -v '^ *+' conftest.er1 >conftest.err
12269 rm -f conftest.er1
12270 cat conftest.err >&5
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); } && {
12273 test -z "$ac_c_werror_flag" ||
12274 test ! -s conftest.err
12275 } && test -s conftest.$ac_objext; then
12276 charybdis_cv_c_gcc_parenthesis=yes
12277 else
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281 charybdis_cv_c_gcc_parenthesis=no
12282 fi
12283
12284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12285 CFLAGS="${oldcflags}"
12286 fi
12287
12288 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12289 CWARNS="${CWARNS}-Wparenthesis "
12290 { echo "$as_me:$LINENO: result: ok" >&5
12291 echo "${ECHO_T}ok" >&6; }
12292 else
12293 charybdis_cv_c_gcc_parenthesis=''
12294 { echo "$as_me:$LINENO: result: no" >&5
12295 echo "${ECHO_T}no" >&6; }
12296 fi
12297 else
12298 { echo "$as_me:$LINENO: result: no" >&5
12299 echo "${ECHO_T}no" >&6; }
12300 fi
12301
12302
12303 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12304 echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
12305 if test "${GCC-no}" = yes
12306 then
12307 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12308 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 else
12310
12311 oldcflags="${CFLAGS-}"
12312 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12313 cat >conftest.$ac_ext <<_ACEOF
12314 /* confdefs.h. */
12315 _ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319
12320 #include <string.h>
12321 #include <stdio.h>
12322 int main(void);
12323
12324 int
12325 main ()
12326 {
12327
12328 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12329
12330 ;
12331 return 0;
12332 }
12333 _ACEOF
12334 rm -f conftest.$ac_objext
12335 if { (ac_try="$ac_compile"
12336 case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12339 esac
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_compile") 2>conftest.er1
12342 ac_status=$?
12343 grep -v '^ *+' conftest.er1 >conftest.err
12344 rm -f conftest.er1
12345 cat conftest.err >&5
12346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest.$ac_objext; then
12351 charybdis_cv_c_gcc_w=yes
12352 else
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12355
12356 charybdis_cv_c_gcc_w=no
12357 fi
12358
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 CFLAGS="${oldcflags}"
12361 fi
12362
12363 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12364 CWARNS="${CWARNS}-W -Wno-unused "
12365 { echo "$as_me:$LINENO: result: ok" >&5
12366 echo "${ECHO_T}ok" >&6; }
12367 else
12368 charybdis_cv_c_gcc_w=''
12369 { echo "$as_me:$LINENO: result: no" >&5
12370 echo "${ECHO_T}no" >&6; }
12371 fi
12372 else
12373 { echo "$as_me:$LINENO: result: no" >&5
12374 echo "${ECHO_T}no" >&6; }
12375 fi
12376
12377
12378 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12379 echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
12380 if test "${GCC-no}" = yes
12381 then
12382 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385
12386 oldcflags="${CFLAGS-}"
12387 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h. */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394
12395 #include <string.h>
12396 #include <stdio.h>
12397 int main(void);
12398
12399 int
12400 main ()
12401 {
12402
12403 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12404
12405 ;
12406 return 0;
12407 }
12408 _ACEOF
12409 rm -f conftest.$ac_objext
12410 if { (ac_try="$ac_compile"
12411 case "(($ac_try" in
12412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12414 esac
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_compile") 2>conftest.er1
12417 ac_status=$?
12418 grep -v '^ *+' conftest.er1 >conftest.err
12419 rm -f conftest.er1
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest.$ac_objext; then
12426 charybdis_cv_c_gcc_w_extra=yes
12427 else
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431 charybdis_cv_c_gcc_w_extra=no
12432 fi
12433
12434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12435 CFLAGS="${oldcflags}"
12436 fi
12437
12438 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12439 CWARNS="${CWARNS}-Wextra "
12440 { echo "$as_me:$LINENO: result: ok" >&5
12441 echo "${ECHO_T}ok" >&6; }
12442 else
12443 charybdis_cv_c_gcc_w_extra=''
12444 { echo "$as_me:$LINENO: result: no" >&5
12445 echo "${ECHO_T}no" >&6; }
12446 fi
12447 else
12448 { echo "$as_me:$LINENO: result: no" >&5
12449 echo "${ECHO_T}no" >&6; }
12450 fi
12451
12452
12453 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12454 echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
12455 if test "${GCC-no}" = yes
12456 then
12457 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460
12461 oldcflags="${CFLAGS-}"
12462 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12463 cat >conftest.$ac_ext <<_ACEOF
12464 /* confdefs.h. */
12465 _ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469
12470 #include <string.h>
12471 #include <stdio.h>
12472 int main(void);
12473
12474 int
12475 main ()
12476 {
12477
12478 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12479
12480 ;
12481 return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext
12485 if { (ac_try="$ac_compile"
12486 case "(($ac_try" in
12487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488 *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_compile") 2>conftest.er1
12492 ac_status=$?
12493 grep -v '^ *+' conftest.er1 >conftest.err
12494 rm -f conftest.er1
12495 cat conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } && {
12498 test -z "$ac_c_werror_flag" ||
12499 test ! -s conftest.err
12500 } && test -s conftest.$ac_objext; then
12501 charybdis_cv_c_gcc_w_shadow=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 charybdis_cv_c_gcc_w_shadow=no
12507 fi
12508
12509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12510 CFLAGS="${oldcflags}"
12511 fi
12512
12513 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12514 CWARNS="${CWARNS}-Wshadow "
12515 { echo "$as_me:$LINENO: result: ok" >&5
12516 echo "${ECHO_T}ok" >&6; }
12517 else
12518 charybdis_cv_c_gcc_w_shadow=''
12519 { echo "$as_me:$LINENO: result: no" >&5
12520 echo "${ECHO_T}no" >&6; }
12521 fi
12522 else
12523 { echo "$as_me:$LINENO: result: no" >&5
12524 echo "${ECHO_T}no" >&6; }
12525 fi
12526
12527
12528 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12529 echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
12530 if test "${GCC-no}" = yes
12531 then
12532 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 else
12535
12536 oldcflags="${CFLAGS-}"
12537 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12538 cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h. */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544
12545 #include <string.h>
12546 #include <stdio.h>
12547 int main(void);
12548
12549 int
12550 main ()
12551 {
12552
12553 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12554
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 rm -f conftest.$ac_objext
12560 if { (ac_try="$ac_compile"
12561 case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12564 esac
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_compile") 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } && {
12573 test -z "$ac_c_werror_flag" ||
12574 test ! -s conftest.err
12575 } && test -s conftest.$ac_objext; then
12576 charybdis_cv_c_gcc_w_missing_noreturn=yes
12577 else
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.$ac_ext >&5
12580
12581 charybdis_cv_c_gcc_w_missing_noreturn=no
12582 fi
12583
12584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12585 CFLAGS="${oldcflags}"
12586 fi
12587
12588 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12589 CWARNS="${CWARNS}-Wmissing-noreturn "
12590 { echo "$as_me:$LINENO: result: ok" >&5
12591 echo "${ECHO_T}ok" >&6; }
12592 else
12593 charybdis_cv_c_gcc_w_missing_noreturn=''
12594 { echo "$as_me:$LINENO: result: no" >&5
12595 echo "${ECHO_T}no" >&6; }
12596 fi
12597 else
12598 { echo "$as_me:$LINENO: result: no" >&5
12599 echo "${ECHO_T}no" >&6; }
12600 fi
12601
12602
12603 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12604 echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
12605 if test "${GCC-no}" = yes
12606 then
12607 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 else
12610
12611 oldcflags="${CFLAGS-}"
12612 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12613 cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h. */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619
12620 #include <string.h>
12621 #include <stdio.h>
12622 int main(void);
12623
12624 int
12625 main ()
12626 {
12627
12628 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12629
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12651 charybdis_cv_c_gcc_w_undef=yes
12652 else
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12655
12656 charybdis_cv_c_gcc_w_undef=no
12657 fi
12658
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 CFLAGS="${oldcflags}"
12661 fi
12662
12663 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12664 CWARNS="${CWARNS}-Wundef "
12665 { echo "$as_me:$LINENO: result: ok" >&5
12666 echo "${ECHO_T}ok" >&6; }
12667 else
12668 charybdis_cv_c_gcc_w_undef=''
12669 { echo "$as_me:$LINENO: result: no" >&5
12670 echo "${ECHO_T}no" >&6; }
12671 fi
12672 else
12673 { echo "$as_me:$LINENO: result: no" >&5
12674 echo "${ECHO_T}no" >&6; }
12675 fi
12676
12677
12678 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12679 echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
12680 if test "${GCC-no}" = yes
12681 then
12682 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 else
12685
12686 oldcflags="${CFLAGS-}"
12687 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12688 cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h. */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h. */
12694
12695 #include <string.h>
12696 #include <stdio.h>
12697 int main(void);
12698
12699 int
12700 main ()
12701 {
12702
12703 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12704
12705 ;
12706 return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_compile") 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest.$ac_objext; then
12726 charybdis_cv_c_gcc_w_packed=yes
12727 else
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12730
12731 charybdis_cv_c_gcc_w_packed=no
12732 fi
12733
12734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 CFLAGS="${oldcflags}"
12736 fi
12737
12738 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12739 CWARNS="${CWARNS}-Wpacked "
12740 { echo "$as_me:$LINENO: result: ok" >&5
12741 echo "${ECHO_T}ok" >&6; }
12742 else
12743 charybdis_cv_c_gcc_w_packed=''
12744 { echo "$as_me:$LINENO: result: no" >&5
12745 echo "${ECHO_T}no" >&6; }
12746 fi
12747 else
12748 { echo "$as_me:$LINENO: result: no" >&5
12749 echo "${ECHO_T}no" >&6; }
12750 fi
12751
12752
12753 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12754 echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
12755 if test "${GCC-no}" = yes
12756 then
12757 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760
12761 oldcflags="${CFLAGS-}"
12762 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769
12770 #include <string.h>
12771 #include <stdio.h>
12772 int main(void);
12773
12774 int
12775 main ()
12776 {
12777
12778 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12779
12780 ;
12781 return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (ac_try="$ac_compile"
12786 case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_compile") 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } && {
12798 test -z "$ac_c_werror_flag" ||
12799 test ! -s conftest.err
12800 } && test -s conftest.$ac_objext; then
12801 charybdis_cv_c_gcc_w_nested_externs=yes
12802 else
12803 echo "$as_me: failed program was:" >&5
12804 sed 's/^/| /' conftest.$ac_ext >&5
12805
12806 charybdis_cv_c_gcc_w_nested_externs=no
12807 fi
12808
12809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12810 CFLAGS="${oldcflags}"
12811 fi
12812
12813 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
12814 CWARNS="${CWARNS}-Wnested-externs "
12815 { echo "$as_me:$LINENO: result: ok" >&5
12816 echo "${ECHO_T}ok" >&6; }
12817 else
12818 charybdis_cv_c_gcc_w_nested_externs=''
12819 { echo "$as_me:$LINENO: result: no" >&5
12820 echo "${ECHO_T}no" >&6; }
12821 fi
12822 else
12823 { echo "$as_me:$LINENO: result: no" >&5
12824 echo "${ECHO_T}no" >&6; }
12825 fi
12826
12827
12828 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
12829 echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
12830 if test "${GCC-no}" = yes
12831 then
12832 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 else
12835
12836 oldcflags="${CFLAGS-}"
12837 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844
12845 #include <string.h>
12846 #include <stdio.h>
12847 int main(void);
12848
12849 int
12850 main ()
12851 {
12852
12853 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12854
12855 ;
12856 return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext
12860 if { (ac_try="$ac_compile"
12861 case "(($ac_try" in
12862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12863 *) ac_try_echo=$ac_try;;
12864 esac
12865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12866 (eval "$ac_compile") 2>conftest.er1
12867 ac_status=$?
12868 grep -v '^ *+' conftest.er1 >conftest.err
12869 rm -f conftest.er1
12870 cat conftest.err >&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } && {
12873 test -z "$ac_c_werror_flag" ||
12874 test ! -s conftest.err
12875 } && test -s conftest.$ac_objext; then
12876 charybdis_cv_c_gcc_w_bad_function_cast=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12880
12881 charybdis_cv_c_gcc_w_bad_function_cast=no
12882 fi
12883
12884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12885 CFLAGS="${oldcflags}"
12886 fi
12887
12888 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
12889 CWARNS="${CWARNS}-Wbad-function-cast "
12890 { echo "$as_me:$LINENO: result: ok" >&5
12891 echo "${ECHO_T}ok" >&6; }
12892 else
12893 charybdis_cv_c_gcc_w_bad_function_cast=''
12894 { echo "$as_me:$LINENO: result: no" >&5
12895 echo "${ECHO_T}no" >&6; }
12896 fi
12897 else
12898 { echo "$as_me:$LINENO: result: no" >&5
12899 echo "${ECHO_T}no" >&6; }
12900 fi
12901
12902
12903 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
12904 echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
12905 if test "${GCC-no}" = yes
12906 then
12907 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 else
12910
12911 oldcflags="${CFLAGS-}"
12912 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h. */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919
12920 #include <string.h>
12921 #include <stdio.h>
12922 int main(void);
12923
12924 int
12925 main ()
12926 {
12927
12928 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12929
12930 ;
12931 return 0;
12932 }
12933 _ACEOF
12934 rm -f conftest.$ac_objext
12935 if { (ac_try="$ac_compile"
12936 case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12939 esac
12940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12941 (eval "$ac_compile") 2>conftest.er1
12942 ac_status=$?
12943 grep -v '^ *+' conftest.er1 >conftest.err
12944 rm -f conftest.er1
12945 cat conftest.err >&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } && {
12948 test -z "$ac_c_werror_flag" ||
12949 test ! -s conftest.err
12950 } && test -s conftest.$ac_objext; then
12951 charybdis_cv_c_gcc_w_unused=yes
12952 else
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 charybdis_cv_c_gcc_w_unused=no
12957 fi
12958
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 CFLAGS="${oldcflags}"
12961 fi
12962
12963 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
12964 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
12965 { echo "$as_me:$LINENO: result: ok" >&5
12966 echo "${ECHO_T}ok" >&6; }
12967 else
12968 charybdis_cv_c_gcc_w_unused=''
12969 { echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6; }
12971 fi
12972 else
12973 { echo "$as_me:$LINENO: result: no" >&5
12974 echo "${ECHO_T}no" >&6; }
12975 fi
12976
12977
12978 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
12979 echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
12980 if test "${GCC-no}" = yes
12981 then
12982 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
12983 echo $ECHO_N "(cached) $ECHO_C" >&6
12984 else
12985
12986 oldcflags="${CFLAGS-}"
12987 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
12988 cat >conftest.$ac_ext <<_ACEOF
12989 /* confdefs.h. */
12990 _ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12994
12995 #include <string.h>
12996 #include <stdio.h>
12997 int main(void);
12998
12999 int
13000 main ()
13001 {
13002
13003 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13004
13005 ;
13006 return 0;
13007 }
13008 _ACEOF
13009 rm -f conftest.$ac_objext
13010 if { (ac_try="$ac_compile"
13011 case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_compile") 2>conftest.er1
13017 ac_status=$?
13018 grep -v '^ *+' conftest.er1 >conftest.err
13019 rm -f conftest.er1
13020 cat conftest.err >&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } && {
13023 test -z "$ac_c_werror_flag" ||
13024 test ! -s conftest.err
13025 } && test -s conftest.$ac_objext; then
13026 charybdis_cv_c_gcc_w_redundant_decls=yes
13027 else
13028 echo "$as_me: failed program was:" >&5
13029 sed 's/^/| /' conftest.$ac_ext >&5
13030
13031 charybdis_cv_c_gcc_w_redundant_decls=no
13032 fi
13033
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 CFLAGS="${oldcflags}"
13036 fi
13037
13038 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13039 CWARNS="${CWARNS}-Wredundant-decls "
13040 { echo "$as_me:$LINENO: result: ok" >&5
13041 echo "${ECHO_T}ok" >&6; }
13042 else
13043 charybdis_cv_c_gcc_w_redundant_decls=''
13044 { echo "$as_me:$LINENO: result: no" >&5
13045 echo "${ECHO_T}no" >&6; }
13046 fi
13047 else
13048 { echo "$as_me:$LINENO: result: no" >&5
13049 echo "${ECHO_T}no" >&6; }
13050 fi
13051
13052
13053 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13054 echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
13055 if test "${GCC-no}" = yes
13056 then
13057 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 else
13060
13061 oldcflags="${CFLAGS-}"
13062 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13063 cat >conftest.$ac_ext <<_ACEOF
13064 /* confdefs.h. */
13065 _ACEOF
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069
13070 #include <string.h>
13071 #include <stdio.h>
13072 int main(void);
13073
13074 int
13075 main ()
13076 {
13077
13078 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13079
13080 ;
13081 return 0;
13082 }
13083 _ACEOF
13084 rm -f conftest.$ac_objext
13085 if { (ac_try="$ac_compile"
13086 case "(($ac_try" in
13087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_compile") 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && {
13098 test -z "$ac_c_werror_flag" ||
13099 test ! -s conftest.err
13100 } && test -s conftest.$ac_objext; then
13101 charybdis_cv_c_gcc_w_float_equal=yes
13102 else
13103 echo "$as_me: failed program was:" >&5
13104 sed 's/^/| /' conftest.$ac_ext >&5
13105
13106 charybdis_cv_c_gcc_w_float_equal=no
13107 fi
13108
13109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13110 CFLAGS="${oldcflags}"
13111 fi
13112
13113 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13114 CWARNS="${CWARNS}-Wfloat-equal "
13115 { echo "$as_me:$LINENO: result: ok" >&5
13116 echo "${ECHO_T}ok" >&6; }
13117 else
13118 charybdis_cv_c_gcc_w_float_equal=''
13119 { echo "$as_me:$LINENO: result: no" >&5
13120 echo "${ECHO_T}no" >&6; }
13121 fi
13122 else
13123 { echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6; }
13125 fi
13126
13127
13128 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security" >&5
13129 echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security... $ECHO_C" >&6; }
13130 if test "${GCC-no}" = yes
13131 then
13132 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13134 else
13135
13136 oldcflags="${CFLAGS-}"
13137 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wformat-security -Werror"
13138 cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h. */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h. */
13144
13145 #include <string.h>
13146 #include <stdio.h>
13147 int main(void);
13148
13149 int
13150 main ()
13151 {
13152
13153 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13154
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 rm -f conftest.$ac_objext
13160 if { (ac_try="$ac_compile"
13161 case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164 esac
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_compile") 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest.$ac_objext; then
13176 charybdis_cv_c_gcc_w_format=yes
13177 else
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 charybdis_cv_c_gcc_w_format=no
13182 fi
13183
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 CFLAGS="${oldcflags}"
13186 fi
13187
13188 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13189 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wformat-security "
13190 { echo "$as_me:$LINENO: result: ok" >&5
13191 echo "${ECHO_T}ok" >&6; }
13192 else
13193 charybdis_cv_c_gcc_w_format=''
13194 { echo "$as_me:$LINENO: result: no" >&5
13195 echo "${ECHO_T}no" >&6; }
13196 fi
13197 else
13198 { echo "$as_me:$LINENO: result: no" >&5
13199 echo "${ECHO_T}no" >&6; }
13200 fi
13201
13202
13203 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13204 echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
13205 if test "${GCC-no}" = yes
13206 then
13207 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13209 else
13210
13211 oldcflags="${CFLAGS-}"
13212 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13213 cat >conftest.$ac_ext <<_ACEOF
13214 /* confdefs.h. */
13215 _ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219
13220 #include <string.h>
13221 #include <stdio.h>
13222 int main(void);
13223
13224 int
13225 main ()
13226 {
13227
13228 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13229
13230 ;
13231 return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13242 ac_status=$?
13243 grep -v '^ *+' conftest.er1 >conftest.err
13244 rm -f conftest.er1
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 charybdis_cv_c_gcc_pedantic=yes
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 charybdis_cv_c_gcc_pedantic=no
13257 fi
13258
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 CFLAGS="${oldcflags}"
13261 fi
13262
13263 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13264 CWARNS="${CWARNS}-pedantic "
13265 { echo "$as_me:$LINENO: result: ok" >&5
13266 echo "${ECHO_T}ok" >&6; }
13267 else
13268 charybdis_cv_c_gcc_pedantic=''
13269 { echo "$as_me:$LINENO: result: no" >&5
13270 echo "${ECHO_T}no" >&6; }
13271 fi
13272 else
13273 { echo "$as_me:$LINENO: result: no" >&5
13274 echo "${ECHO_T}no" >&6; }
13275 fi
13276
13277
13278 IRC_CFLAGS="$CFLAGS"
13279
13280 fi
13281
13282
13283 if test "$shared_modules" = no; then
13284 DYNLINK_C=""
13285 MOD_TARGET="libmodules.a"
13286 MODULES_LIBS="../modules/libmodules.a"
13287 SEDOBJ=""
13288
13289 cat >>confdefs.h <<\_ACEOF
13290 #define STATIC_MODULES 1
13291 _ACEOF
13292
13293 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13294 echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13295 fi
13296
13297 if test "$shared_modules" = yes; then
13298
13299 { echo "$as_me:$LINENO: checking for nlist" >&5
13300 echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
13301 if test "${ac_cv_func_nlist+set}" = set; then
13302 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 else
13304 cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h. */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13310 /* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13312 #define nlist innocuous_nlist
13313
13314 /* System header to define __stub macros and hopefully few prototypes,
13315 which can conflict with char nlist (); below.
13316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13317 <limits.h> exists even on freestanding compilers. */
13318
13319 #ifdef __STDC__
13320 # include <limits.h>
13321 #else
13322 # include <assert.h>
13323 #endif
13324
13325 #undef nlist
13326
13327 /* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13330 #ifdef __cplusplus
13331 extern "C"
13332 #endif
13333 char nlist ();
13334 /* The GNU C library defines this for functions which it implements
13335 to always fail with ENOSYS. Some functions are actually named
13336 something starting with __ and the normal name is an alias. */
13337 #if defined __stub_nlist || defined __stub___nlist
13338 choke me
13339 #endif
13340
13341 int
13342 main ()
13343 {
13344 return nlist ();
13345 ;
13346 return 0;
13347 }
13348 _ACEOF
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354 esac
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } && {
13363 test -z "$ac_c_werror_flag" ||
13364 test ! -s conftest.err
13365 } && test -s conftest$ac_exeext &&
13366 $as_test_x conftest$ac_exeext; then
13367 ac_cv_func_nlist=yes
13368 else
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13371
13372 ac_cv_func_nlist=no
13373 fi
13374
13375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376 conftest$ac_exeext conftest.$ac_ext
13377 fi
13378 { echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13379 echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
13380 if test $ac_cv_func_nlist = yes; then
13381 :
13382 else
13383 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13384 echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
13385 if test "${ac_cv_lib_dl_nlist+set}" = set; then
13386 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 else
13388 ac_check_lib_save_LIBS=$LIBS
13389 LIBS="-ldl $LIBS"
13390 cat >conftest.$ac_ext <<_ACEOF
13391 /* confdefs.h. */
13392 _ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396
13397 /* Override any GCC internal prototype to avoid an error.
13398 Use char because int might match the return type of a GCC
13399 builtin and then its argument prototype would still apply. */
13400 #ifdef __cplusplus
13401 extern "C"
13402 #endif
13403 char nlist ();
13404 int
13405 main ()
13406 {
13407 return nlist ();
13408 ;
13409 return 0;
13410 }
13411 _ACEOF
13412 rm -f conftest.$ac_objext conftest$ac_exeext
13413 if { (ac_try="$ac_link"
13414 case "(($ac_try" in
13415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416 *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419 (eval "$ac_link") 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } && {
13426 test -z "$ac_c_werror_flag" ||
13427 test ! -s conftest.err
13428 } && test -s conftest$ac_exeext &&
13429 $as_test_x conftest$ac_exeext; then
13430 ac_cv_lib_dl_nlist=yes
13431 else
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435 ac_cv_lib_dl_nlist=no
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13441 fi
13442 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13443 echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
13444 if test $ac_cv_lib_dl_nlist = yes; then
13445 nlist_lib="-ldl"
13446 else
13447 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13448 echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
13449 if test "${ac_cv_lib_elf_nlist+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452 ac_check_lib_save_LIBS=$LIBS
13453 LIBS="-lelf $LIBS"
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h. */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460
13461 /* Override any GCC internal prototype to avoid an error.
13462 Use char because int might match the return type of a GCC
13463 builtin and then its argument prototype would still apply. */
13464 #ifdef __cplusplus
13465 extern "C"
13466 #endif
13467 char nlist ();
13468 int
13469 main ()
13470 {
13471 return nlist ();
13472 ;
13473 return 0;
13474 }
13475 _ACEOF
13476 rm -f conftest.$ac_objext conftest$ac_exeext
13477 if { (ac_try="$ac_link"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481 esac
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_link") 2>conftest.er1
13484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } && {
13490 test -z "$ac_c_werror_flag" ||
13491 test ! -s conftest.err
13492 } && test -s conftest$ac_exeext &&
13493 $as_test_x conftest$ac_exeext; then
13494 ac_cv_lib_elf_nlist=yes
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499 ac_cv_lib_elf_nlist=no
13500 fi
13501
13502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13503 conftest$ac_exeext conftest.$ac_ext
13504 LIBS=$ac_check_lib_save_LIBS
13505 fi
13506 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13507 echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
13508 if test $ac_cv_lib_elf_nlist = yes; then
13509 nlist_lib="-lelf"
13510 fi
13511
13512
13513 fi
13514
13515
13516 fi
13517
13518
13519 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13520 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13521 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13522 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 fi
13525 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13526 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13527 else
13528 # Is the header compilable?
13529 { echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13530 echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
13531 cat >conftest.$ac_ext <<_ACEOF
13532 /* confdefs.h. */
13533 _ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 $ac_includes_default
13538 #include <libelf/nlist.h>
13539 _ACEOF
13540 rm -f conftest.$ac_objext
13541 if { (ac_try="$ac_compile"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13545 esac
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_compile") 2>conftest.er1
13548 ac_status=$?
13549 grep -v '^ *+' conftest.er1 >conftest.err
13550 rm -f conftest.er1
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest.$ac_objext; then
13557 ac_header_compiler=yes
13558 else
13559 echo "$as_me: failed program was:" >&5
13560 sed 's/^/| /' conftest.$ac_ext >&5
13561
13562 ac_header_compiler=no
13563 fi
13564
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13567 echo "${ECHO_T}$ac_header_compiler" >&6; }
13568
13569 # Is the header present?
13570 { echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13571 echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
13572 cat >conftest.$ac_ext <<_ACEOF
13573 /* confdefs.h. */
13574 _ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 #include <libelf/nlist.h>
13579 _ACEOF
13580 if { (ac_try="$ac_cpp conftest.$ac_ext"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13587 ac_status=$?
13588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } >/dev/null && {
13593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13595 }; then
13596 ac_header_preproc=yes
13597 else
13598 echo "$as_me: failed program was:" >&5
13599 sed 's/^/| /' conftest.$ac_ext >&5
13600
13601 ac_header_preproc=no
13602 fi
13603
13604 rm -f conftest.err conftest.$ac_ext
13605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13606 echo "${ECHO_T}$ac_header_preproc" >&6; }
13607
13608 # So? What about this header?
13609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13610 yes:no: )
13611 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13612 echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13614 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13615 ac_header_preproc=yes
13616 ;;
13617 no:yes:* )
13618 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13619 echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13621 echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13623 echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13625 echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13627 echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13629 echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13630
13631 ;;
13632 esac
13633 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13634 echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13635 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13639 fi
13640 { echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13641 echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13642
13643 fi
13644 if test $ac_cv_header_libelf_nlist_h = yes; then
13645 nlist_h="libelf/nlist.h"
13646 fi
13647
13648
13649 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13650 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13651 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13652 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13654 fi
13655 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13656 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13657 else
13658 # Is the header compilable?
13659 { echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13660 echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
13661 cat >conftest.$ac_ext <<_ACEOF
13662 /* confdefs.h. */
13663 _ACEOF
13664 cat confdefs.h >>conftest.$ac_ext
13665 cat >>conftest.$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13667 $ac_includes_default
13668 #include <elf/nlist.h>
13669 _ACEOF
13670 rm -f conftest.$ac_objext
13671 if { (ac_try="$ac_compile"
13672 case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_compile") 2>conftest.er1
13678 ac_status=$?
13679 grep -v '^ *+' conftest.er1 >conftest.err
13680 rm -f conftest.er1
13681 cat conftest.err >&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); } && {
13684 test -z "$ac_c_werror_flag" ||
13685 test ! -s conftest.err
13686 } && test -s conftest.$ac_objext; then
13687 ac_header_compiler=yes
13688 else
13689 echo "$as_me: failed program was:" >&5
13690 sed 's/^/| /' conftest.$ac_ext >&5
13691
13692 ac_header_compiler=no
13693 fi
13694
13695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13697 echo "${ECHO_T}$ac_header_compiler" >&6; }
13698
13699 # Is the header present?
13700 { echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13701 echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
13702 cat >conftest.$ac_ext <<_ACEOF
13703 /* confdefs.h. */
13704 _ACEOF
13705 cat confdefs.h >>conftest.$ac_ext
13706 cat >>conftest.$ac_ext <<_ACEOF
13707 /* end confdefs.h. */
13708 #include <elf/nlist.h>
13709 _ACEOF
13710 if { (ac_try="$ac_cpp conftest.$ac_ext"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714 esac
13715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } >/dev/null && {
13723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13724 test ! -s conftest.err
13725 }; then
13726 ac_header_preproc=yes
13727 else
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13730
13731 ac_header_preproc=no
13732 fi
13733
13734 rm -f conftest.err conftest.$ac_ext
13735 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13736 echo "${ECHO_T}$ac_header_preproc" >&6; }
13737
13738 # So? What about this header?
13739 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13740 yes:no: )
13741 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13742 echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13743 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13744 echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13745 ac_header_preproc=yes
13746 ;;
13747 no:yes:* )
13748 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13749 echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13750 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13751 echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13752 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13753 echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13754 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13755 echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13757 echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13759 echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
13760
13761 ;;
13762 esac
13763 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13764 echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13765 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767 else
13768 ac_cv_header_elf_nlist_h=$ac_header_preproc
13769 fi
13770 { echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13771 echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13772
13773 fi
13774 if test $ac_cv_header_elf_nlist_h = yes; then
13775 nlist_h="elf/nlist.h"
13776 fi
13777
13778
13779 if test "${ac_cv_header_nlist_h+set}" = set; then
13780 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13781 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13782 if test "${ac_cv_header_nlist_h+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 fi
13785 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13786 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13787 else
13788 # Is the header compilable?
13789 { echo "$as_me:$LINENO: checking nlist.h usability" >&5
13790 echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
13791 cat >conftest.$ac_ext <<_ACEOF
13792 /* confdefs.h. */
13793 _ACEOF
13794 cat confdefs.h >>conftest.$ac_ext
13795 cat >>conftest.$ac_ext <<_ACEOF
13796 /* end confdefs.h. */
13797 $ac_includes_default
13798 #include <nlist.h>
13799 _ACEOF
13800 rm -f conftest.$ac_objext
13801 if { (ac_try="$ac_compile"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_compile") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } && {
13814 test -z "$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 } && test -s conftest.$ac_objext; then
13817 ac_header_compiler=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_header_compiler=no
13823 fi
13824
13825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13827 echo "${ECHO_T}$ac_header_compiler" >&6; }
13828
13829 # Is the header present?
13830 { echo "$as_me:$LINENO: checking nlist.h presence" >&5
13831 echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
13832 cat >conftest.$ac_ext <<_ACEOF
13833 /* confdefs.h. */
13834 _ACEOF
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 #include <nlist.h>
13839 _ACEOF
13840 if { (ac_try="$ac_cpp conftest.$ac_ext"
13841 case "(($ac_try" in
13842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13843 *) ac_try_echo=$ac_try;;
13844 esac
13845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13847 ac_status=$?
13848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); } >/dev/null && {
13853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13854 test ! -s conftest.err
13855 }; then
13856 ac_header_preproc=yes
13857 else
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 ac_header_preproc=no
13862 fi
13863
13864 rm -f conftest.err conftest.$ac_ext
13865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13866 echo "${ECHO_T}$ac_header_preproc" >&6; }
13867
13868 # So? What about this header?
13869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13870 yes:no: )
13871 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13872 echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
13874 echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
13875 ac_header_preproc=yes
13876 ;;
13877 no:yes:* )
13878 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
13879 echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
13880 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
13881 echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
13882 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
13883 echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
13884 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13885 echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13886 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
13887 echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
13888 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
13889 echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
13890
13891 ;;
13892 esac
13893 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13894 echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13895 if test "${ac_cv_header_nlist_h+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 else
13898 ac_cv_header_nlist_h=$ac_header_preproc
13899 fi
13900 { echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13901 echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13902
13903 fi
13904 if test $ac_cv_header_nlist_h = yes; then
13905 nlist_h="nlist.h"
13906 fi
13907
13908
13909 if test x"$nlist_h" = "x"; then
13910
13911 cat >>confdefs.h <<_ACEOF
13912 #define SYMBOL_PREFIX ""
13913 _ACEOF
13914
13915 else
13916 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
13917 echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
13918 if test "${symbol_underscores+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 else
13921
13922 cat << EOF > conftest.c
13923 #include <$nlist_h>
13924 #include <stdio.h>
13925 #include <stdlib.h>
13926 void _modinit(void);
13927 int main(int argc, char *argv[]) {
13928 int i;
13929 struct nlist nl[5];
13930
13931 /* fill the names in this way, so it'll work almost everywhere */
13932 nl[0].n_name = "_modinit";
13933 nl[1].n_name = "__modinit";
13934 nl[2].n_name = "___modinit";
13935 nl[3].n_name = "____modinit";
13936 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
13937
13938 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
13939 for(i = 0; i < 4; i++) {
13940 if(nl[i].n_value != NULL)
13941 {
13942 int j;
13943 for(j = 0; j < i; j++)
13944 printf("_");
13945 exit(i);
13946 }
13947 }
13948 exit(-1);
13949 }
13950 void _modinit(void) { return; }
13951 EOF
13952 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
13953 symbol_underscores=`./conftest conftest`
13954 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
13955 echo "${ECHO_T}$symbol_underscores" >&6; }
13956 $RM -f conftest conftest.c
13957
13958 fi
13959
13960
13961 cat >>confdefs.h <<_ACEOF
13962 #define SYMBOL_PREFIX "${symbol_underscores}"
13963 _ACEOF
13964
13965 fi
13966 fi
13967
13968 IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983 if test "$prefix" = "NONE"; then
13984
13985 cat >>confdefs.h <<_ACEOF
13986 #define IRCD_PREFIX "$ac_default_prefix"
13987 _ACEOF
13988
13989
13990 else
13991
13992
13993 prefix=`echo $prefix | sed 's/\/$//'`
13994
13995 cat >>confdefs.h <<_ACEOF
13996 #define IRCD_PREFIX "$prefix"
13997 _ACEOF
13998
13999
14000 fi
14001
14002 ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14003
14004
14005 cat >confcache <<\_ACEOF
14006 # This file is a shell script that caches the results of configure
14007 # tests run on this system so they can be shared between configure
14008 # scripts and configure runs, see configure's option --config-cache.
14009 # It is not useful on other systems. If it contains results you don't
14010 # want to keep, you may remove or edit it.
14011 #
14012 # config.status only pays attention to the cache file if you give it
14013 # the --recheck option to rerun configure.
14014 #
14015 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14016 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14017 # following values.
14018
14019 _ACEOF
14020
14021 # The following way of writing the cache mishandles newlines in values,
14022 # but we know of no workaround that is simple, portable, and efficient.
14023 # So, we kill variables containing newlines.
14024 # Ultrix sh set writes to stderr and can't be redirected directly,
14025 # and sets the high bit in the cache file unless we assign to the vars.
14026 (
14027 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14028 eval ac_val=\$$ac_var
14029 case $ac_val in #(
14030 *${as_nl}*)
14031 case $ac_var in #(
14032 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14033 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14034 esac
14035 case $ac_var in #(
14036 _ | IFS | as_nl) ;; #(
14037 *) $as_unset $ac_var ;;
14038 esac ;;
14039 esac
14040 done
14041
14042 (set) 2>&1 |
14043 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14044 *${as_nl}ac_space=\ *)
14045 # `set' does not quote correctly, so add quotes (double-quote
14046 # substitution turns \\\\ into \\, and sed turns \\ into \).
14047 sed -n \
14048 "s/'/'\\\\''/g;
14049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14050 ;; #(
14051 *)
14052 # `set' quotes correctly as required by POSIX, so do not add quotes.
14053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14054 ;;
14055 esac |
14056 sort
14057 ) |
14058 sed '
14059 /^ac_cv_env_/b end
14060 t clear
14061 :clear
14062 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14063 t end
14064 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14065 :end' >>confcache
14066 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14067 if test -w "$cache_file"; then
14068 test "x$cache_file" != "x/dev/null" &&
14069 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14070 echo "$as_me: updating cache $cache_file" >&6;}
14071 cat confcache >$cache_file
14072 else
14073 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14074 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14075 fi
14076 fi
14077 rm -f confcache
14078
14079 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14080 # Let make expand exec_prefix.
14081 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14082
14083 DEFS=-DHAVE_CONFIG_H
14084
14085 ac_libobjs=
14086 ac_ltlibobjs=
14087 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14088 # 1. Remove the extension, and $U if already installed.
14089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14090 ac_i=`echo "$ac_i" | sed "$ac_script"`
14091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14092 # will be set to the directory where LIBOBJS objects are built.
14093 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14094 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14095 done
14096 LIBOBJS=$ac_libobjs
14097
14098 LTLIBOBJS=$ac_ltlibobjs
14099
14100
14101
14102 : ${CONFIG_STATUS=./config.status}
14103 ac_clean_files_save=$ac_clean_files
14104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14107 cat >$CONFIG_STATUS <<_ACEOF
14108 #! $SHELL
14109 # Generated by $as_me.
14110 # Run this file to recreate the current configuration.
14111 # Compiler output produced by configure, useful for debugging
14112 # configure, is in config.log if it exists.
14113
14114 debug=false
14115 ac_cs_recheck=false
14116 ac_cs_silent=false
14117 SHELL=\${CONFIG_SHELL-$SHELL}
14118 _ACEOF
14119
14120 cat >>$CONFIG_STATUS <<\_ACEOF
14121 ## --------------------- ##
14122 ## M4sh Initialization. ##
14123 ## --------------------- ##
14124
14125 # Be more Bourne compatible
14126 DUALCASE=1; export DUALCASE # for MKS sh
14127 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14128 emulate sh
14129 NULLCMD=:
14130 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14131 # is contrary to our usage. Disable this feature.
14132 alias -g '${1+"$@"}'='"$@"'
14133 setopt NO_GLOB_SUBST
14134 else
14135 case `(set -o) 2>/dev/null` in
14136 *posix*) set -o posix ;;
14137 esac
14138
14139 fi
14140
14141
14142
14143
14144 # PATH needs CR
14145 # Avoid depending upon Character Ranges.
14146 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14147 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14148 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14149 as_cr_digits='0123456789'
14150 as_cr_alnum=$as_cr_Letters$as_cr_digits
14151
14152 # The user is always right.
14153 if test "${PATH_SEPARATOR+set}" != set; then
14154 echo "#! /bin/sh" >conf$$.sh
14155 echo "exit 0" >>conf$$.sh
14156 chmod +x conf$$.sh
14157 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14158 PATH_SEPARATOR=';'
14159 else
14160 PATH_SEPARATOR=:
14161 fi
14162 rm -f conf$$.sh
14163 fi
14164
14165 # Support unset when possible.
14166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14167 as_unset=unset
14168 else
14169 as_unset=false
14170 fi
14171
14172
14173 # IFS
14174 # We need space, tab and new line, in precisely that order. Quoting is
14175 # there to prevent editors from complaining about space-tab.
14176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14177 # splitting by setting IFS to empty value.)
14178 as_nl='
14179 '
14180 IFS=" "" $as_nl"
14181
14182 # Find who we are. Look in the path if we contain no directory separator.
14183 case $0 in
14184 *[\\/]* ) as_myself=$0 ;;
14185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14187 do
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14191 done
14192 IFS=$as_save_IFS
14193
14194 ;;
14195 esac
14196 # We did not find ourselves, most probably we were run as `sh COMMAND'
14197 # in which case we are not to be found in the path.
14198 if test "x$as_myself" = x; then
14199 as_myself=$0
14200 fi
14201 if test ! -f "$as_myself"; then
14202 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14203 { (exit 1); exit 1; }
14204 fi
14205
14206 # Work around bugs in pre-3.0 UWIN ksh.
14207 for as_var in ENV MAIL MAILPATH
14208 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14209 done
14210 PS1='$ '
14211 PS2='> '
14212 PS4='+ '
14213
14214 # NLS nuisances.
14215 for as_var in \
14216 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14217 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14218 LC_TELEPHONE LC_TIME
14219 do
14220 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14221 eval $as_var=C; export $as_var
14222 else
14223 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14224 fi
14225 done
14226
14227 # Required to use basename.
14228 if expr a : '\(a\)' >/dev/null 2>&1 &&
14229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14230 as_expr=expr
14231 else
14232 as_expr=false
14233 fi
14234
14235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14236 as_basename=basename
14237 else
14238 as_basename=false
14239 fi
14240
14241
14242 # Name of the executable.
14243 as_me=`$as_basename -- "$0" ||
14244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14245 X"$0" : 'X\(//\)$' \| \
14246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14247 echo X/"$0" |
14248 sed '/^.*\/\([^/][^/]*\)\/*$/{
14249 s//\1/
14250 q
14251 }
14252 /^X\/\(\/\/\)$/{
14253 s//\1/
14254 q
14255 }
14256 /^X\/\(\/\).*/{
14257 s//\1/
14258 q
14259 }
14260 s/.*/./; q'`
14261
14262 # CDPATH.
14263 $as_unset CDPATH
14264
14265
14266
14267 as_lineno_1=$LINENO
14268 as_lineno_2=$LINENO
14269 test "x$as_lineno_1" != "x$as_lineno_2" &&
14270 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14271
14272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14273 # uniformly replaced by the line number. The first 'sed' inserts a
14274 # line-number line after each line using $LINENO; the second 'sed'
14275 # does the real work. The second script uses 'N' to pair each
14276 # line-number line with the line containing $LINENO, and appends
14277 # trailing '-' during substitution so that $LINENO is not a special
14278 # case at line end.
14279 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14280 # scripts with optimization help from Paolo Bonzini. Blame Lee
14281 # E. McMahon (1931-1989) for sed's syntax. :-)
14282 sed -n '
14283 p
14284 /[$]LINENO/=
14285 ' <$as_myself |
14286 sed '
14287 s/[$]LINENO.*/&-/
14288 t lineno
14289 b
14290 :lineno
14291 N
14292 :loop
14293 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14294 t loop
14295 s/-\n.*//
14296 ' >$as_me.lineno &&
14297 chmod +x "$as_me.lineno" ||
14298 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14299 { (exit 1); exit 1; }; }
14300
14301 # Don't try to exec as it changes $[0], causing all sort of problems
14302 # (the dirname of $[0] is not the place where we might find the
14303 # original and so on. Autoconf is especially sensitive to this).
14304 . "./$as_me.lineno"
14305 # Exit status is that of the last command.
14306 exit
14307 }
14308
14309
14310 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14311 as_dirname=dirname
14312 else
14313 as_dirname=false
14314 fi
14315
14316 ECHO_C= ECHO_N= ECHO_T=
14317 case `echo -n x` in
14318 -n*)
14319 case `echo 'x\c'` in
14320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14321 *) ECHO_C='\c';;
14322 esac;;
14323 *)
14324 ECHO_N='-n';;
14325 esac
14326
14327 if expr a : '\(a\)' >/dev/null 2>&1 &&
14328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14329 as_expr=expr
14330 else
14331 as_expr=false
14332 fi
14333
14334 rm -f conf$$ conf$$.exe conf$$.file
14335 if test -d conf$$.dir; then
14336 rm -f conf$$.dir/conf$$.file
14337 else
14338 rm -f conf$$.dir
14339 mkdir conf$$.dir
14340 fi
14341 echo >conf$$.file
14342 if ln -s conf$$.file conf$$ 2>/dev/null; then
14343 as_ln_s='ln -s'
14344 # ... but there are two gotchas:
14345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14347 # In both cases, we have to default to `cp -p'.
14348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14349 as_ln_s='cp -p'
14350 elif ln conf$$.file conf$$ 2>/dev/null; then
14351 as_ln_s=ln
14352 else
14353 as_ln_s='cp -p'
14354 fi
14355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14356 rmdir conf$$.dir 2>/dev/null
14357
14358 if mkdir -p . 2>/dev/null; then
14359 as_mkdir_p=:
14360 else
14361 test -d ./-p && rmdir ./-p
14362 as_mkdir_p=false
14363 fi
14364
14365 if test -x / >/dev/null 2>&1; then
14366 as_test_x='test -x'
14367 else
14368 if ls -dL / >/dev/null 2>&1; then
14369 as_ls_L_option=L
14370 else
14371 as_ls_L_option=
14372 fi
14373 as_test_x='
14374 eval sh -c '\''
14375 if test -d "$1"; then
14376 test -d "$1/.";
14377 else
14378 case $1 in
14379 -*)set "./$1";;
14380 esac;
14381 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14382 ???[sx]*):;;*)false;;esac;fi
14383 '\'' sh
14384 '
14385 fi
14386 as_executable_p=$as_test_x
14387
14388 # Sed expression to map a string onto a valid CPP name.
14389 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14390
14391 # Sed expression to map a string onto a valid variable name.
14392 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14393
14394
14395 exec 6>&1
14396
14397 # Save the log message, to keep $[0] and so on meaningful, and to
14398 # report actual input values of CONFIG_FILES etc. instead of their
14399 # values after options handling.
14400 ac_log="
14401 This file was extended by charybdis $as_me 3.1, which was
14402 generated by GNU Autoconf 2.61. Invocation command line was
14403
14404 CONFIG_FILES = $CONFIG_FILES
14405 CONFIG_HEADERS = $CONFIG_HEADERS
14406 CONFIG_LINKS = $CONFIG_LINKS
14407 CONFIG_COMMANDS = $CONFIG_COMMANDS
14408 $ $0 $@
14409
14410 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14411 "
14412
14413 _ACEOF
14414
14415 cat >>$CONFIG_STATUS <<_ACEOF
14416 # Files that config.status was made for.
14417 config_files="$ac_config_files"
14418 config_headers="$ac_config_headers"
14419
14420 _ACEOF
14421
14422 cat >>$CONFIG_STATUS <<\_ACEOF
14423 ac_cs_usage="\
14424 \`$as_me' instantiates files from templates according to the
14425 current configuration.
14426
14427 Usage: $0 [OPTIONS] [FILE]...
14428
14429 -h, --help print this help, then exit
14430 -V, --version print version number and configuration settings, then exit
14431 -q, --quiet do not print progress messages
14432 -d, --debug don't remove temporary files
14433 --recheck update $as_me by reconfiguring in the same conditions
14434 --file=FILE[:TEMPLATE]
14435 instantiate the configuration file FILE
14436 --header=FILE[:TEMPLATE]
14437 instantiate the configuration header FILE
14438
14439 Configuration files:
14440 $config_files
14441
14442 Configuration headers:
14443 $config_headers
14444
14445 Report bugs to <bug-autoconf@gnu.org>."
14446
14447 _ACEOF
14448 cat >>$CONFIG_STATUS <<_ACEOF
14449 ac_cs_version="\\
14450 charybdis config.status 3.1
14451 configured by $0, generated by GNU Autoconf 2.61,
14452 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14453
14454 Copyright (C) 2006 Free Software Foundation, Inc.
14455 This config.status script is free software; the Free Software Foundation
14456 gives unlimited permission to copy, distribute and modify it."
14457
14458 ac_pwd='$ac_pwd'
14459 srcdir='$srcdir'
14460 INSTALL='$INSTALL'
14461 _ACEOF
14462
14463 cat >>$CONFIG_STATUS <<\_ACEOF
14464 # If no file are specified by the user, then we need to provide default
14465 # value. By we need to know if files were specified by the user.
14466 ac_need_defaults=:
14467 while test $# != 0
14468 do
14469 case $1 in
14470 --*=*)
14471 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14472 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14473 ac_shift=:
14474 ;;
14475 *)
14476 ac_option=$1
14477 ac_optarg=$2
14478 ac_shift=shift
14479 ;;
14480 esac
14481
14482 case $ac_option in
14483 # Handling of the options.
14484 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14485 ac_cs_recheck=: ;;
14486 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14487 echo "$ac_cs_version"; exit ;;
14488 --debug | --debu | --deb | --de | --d | -d )
14489 debug=: ;;
14490 --file | --fil | --fi | --f )
14491 $ac_shift
14492 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14493 ac_need_defaults=false;;
14494 --header | --heade | --head | --hea )
14495 $ac_shift
14496 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14497 ac_need_defaults=false;;
14498 --he | --h)
14499 # Conflict between --help and --header
14500 { echo "$as_me: error: ambiguous option: $1
14501 Try \`$0 --help' for more information." >&2
14502 { (exit 1); exit 1; }; };;
14503 --help | --hel | -h )
14504 echo "$ac_cs_usage"; exit ;;
14505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14506 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14507 ac_cs_silent=: ;;
14508
14509 # This is an error.
14510 -*) { echo "$as_me: error: unrecognized option: $1
14511 Try \`$0 --help' for more information." >&2
14512 { (exit 1); exit 1; }; } ;;
14513
14514 *) ac_config_targets="$ac_config_targets $1"
14515 ac_need_defaults=false ;;
14516
14517 esac
14518 shift
14519 done
14520
14521 ac_configure_extra_args=
14522
14523 if $ac_cs_silent; then
14524 exec 6>/dev/null
14525 ac_configure_extra_args="$ac_configure_extra_args --silent"
14526 fi
14527
14528 _ACEOF
14529 cat >>$CONFIG_STATUS <<_ACEOF
14530 if \$ac_cs_recheck; then
14531 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14532 CONFIG_SHELL=$SHELL
14533 export CONFIG_SHELL
14534 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14535 fi
14536
14537 _ACEOF
14538 cat >>$CONFIG_STATUS <<\_ACEOF
14539 exec 5>>config.log
14540 {
14541 echo
14542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14543 ## Running $as_me. ##
14544 _ASBOX
14545 echo "$ac_log"
14546 } >&5
14547
14548 _ACEOF
14549 cat >>$CONFIG_STATUS <<_ACEOF
14550 _ACEOF
14551
14552 cat >>$CONFIG_STATUS <<\_ACEOF
14553
14554 # Handling of arguments.
14555 for ac_config_target in $ac_config_targets
14556 do
14557 case $ac_config_target in
14558 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14559 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14560 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
14561 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
14562 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
14563 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14564 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14565 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14566 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14567 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14568
14569 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14570 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14571 { (exit 1); exit 1; }; };;
14572 esac
14573 done
14574
14575
14576 # If the user did not use the arguments to specify the items to instantiate,
14577 # then the envvar interface is used. Set only those that are not.
14578 # We use the long form for the default assignment because of an extremely
14579 # bizarre bug on SunOS 4.1.3.
14580 if $ac_need_defaults; then
14581 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14582 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14583 fi
14584
14585 # Have a temporary directory for convenience. Make it in the build tree
14586 # simply because there is no reason against having it here, and in addition,
14587 # creating and moving files from /tmp can sometimes cause problems.
14588 # Hook for its removal unless debugging.
14589 # Note that there is a small window in which the directory will not be cleaned:
14590 # after its creation but before its name has been assigned to `$tmp'.
14591 $debug ||
14592 {
14593 tmp=
14594 trap 'exit_status=$?
14595 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14596 ' 0
14597 trap '{ (exit 1); exit 1; }' 1 2 13 15
14598 }
14599 # Create a (secure) tmp directory for tmp files.
14600
14601 {
14602 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14603 test -n "$tmp" && test -d "$tmp"
14604 } ||
14605 {
14606 tmp=./conf$$-$RANDOM
14607 (umask 077 && mkdir "$tmp")
14608 } ||
14609 {
14610 echo "$me: cannot create a temporary directory in ." >&2
14611 { (exit 1); exit 1; }
14612 }
14613
14614 #
14615 # Set up the sed scripts for CONFIG_FILES section.
14616 #
14617
14618 # No need to generate the scripts if there are no CONFIG_FILES.
14619 # This happens for instance when ./config.status config.h
14620 if test -n "$CONFIG_FILES"; then
14621
14622 _ACEOF
14623
14624
14625
14626 ac_delim='%!_!# '
14627 for ac_last_try in false false false false false :; do
14628 cat >conf$$subs.sed <<_ACEOF
14629 SHELL!$SHELL$ac_delim
14630 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14631 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14632 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14633 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14634 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14635 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14636 exec_prefix!$exec_prefix$ac_delim
14637 prefix!$prefix$ac_delim
14638 program_transform_name!$program_transform_name$ac_delim
14639 bindir!$bindir$ac_delim
14640 sbindir!$sbindir$ac_delim
14641 libexecdir!$libexecdir$ac_delim
14642 datarootdir!$datarootdir$ac_delim
14643 datadir!$datadir$ac_delim
14644 sysconfdir!$sysconfdir$ac_delim
14645 sharedstatedir!$sharedstatedir$ac_delim
14646 localstatedir!$localstatedir$ac_delim
14647 includedir!$includedir$ac_delim
14648 oldincludedir!$oldincludedir$ac_delim
14649 docdir!$docdir$ac_delim
14650 infodir!$infodir$ac_delim
14651 htmldir!$htmldir$ac_delim
14652 dvidir!$dvidir$ac_delim
14653 pdfdir!$pdfdir$ac_delim
14654 psdir!$psdir$ac_delim
14655 libdir!$libdir$ac_delim
14656 localedir!$localedir$ac_delim
14657 mandir!$mandir$ac_delim
14658 DEFS!$DEFS$ac_delim
14659 ECHO_C!$ECHO_C$ac_delim
14660 ECHO_N!$ECHO_N$ac_delim
14661 ECHO_T!$ECHO_T$ac_delim
14662 LIBS!$LIBS$ac_delim
14663 build_alias!$build_alias$ac_delim
14664 host_alias!$host_alias$ac_delim
14665 target_alias!$target_alias$ac_delim
14666 CC!$CC$ac_delim
14667 CFLAGS!$CFLAGS$ac_delim
14668 LDFLAGS!$LDFLAGS$ac_delim
14669 CPPFLAGS!$CPPFLAGS$ac_delim
14670 ac_ct_CC!$ac_ct_CC$ac_delim
14671 EXEEXT!$EXEEXT$ac_delim
14672 OBJEXT!$OBJEXT$ac_delim
14673 subdirs!$subdirs$ac_delim
14674 MKDEP!$MKDEP$ac_delim
14675 MAKEDEPEND!$MAKEDEPEND$ac_delim
14676 STDOUT!$STDOUT$ac_delim
14677 CPP!$CPP$ac_delim
14678 GREP!$GREP$ac_delim
14679 EGREP!$EGREP$ac_delim
14680 SET_MAKE!$SET_MAKE$ac_delim
14681 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14682 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14683 INSTALL_DATA!$INSTALL_DATA$ac_delim
14684 RM!$RM$ac_delim
14685 CP!$CP$ac_delim
14686 MV!$MV$ac_delim
14687 LN!$LN$ac_delim
14688 SED!$SED$ac_delim
14689 AR!$AR$ac_delim
14690 LD!$LD$ac_delim
14691 RANLIB!$RANLIB$ac_delim
14692 TOUCH!$TOUCH$ac_delim
14693 YACC!$YACC$ac_delim
14694 YFLAGS!$YFLAGS$ac_delim
14695 LEX!$LEX$ac_delim
14696 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14697 LEXLIB!$LEXLIB$ac_delim
14698 CRYPT_LIB!$CRYPT_LIB$ac_delim
14699 VICONF!$VICONF$ac_delim
14700 ALLOCA!$ALLOCA$ac_delim
14701 ENCSPEED!$ENCSPEED$ac_delim
14702 ZLIB_LD!$ZLIB_LD$ac_delim
14703 ETC_DIR!$ETC_DIR$ac_delim
14704 confdir!$confdir$ac_delim
14705 LOG_DIR!$LOG_DIR$ac_delim
14706 logdir!$logdir$ac_delim
14707 HELP_DIR!$HELP_DIR$ac_delim
14708 helpdir!$helpdir$ac_delim
14709 MODULE_DIR!$MODULE_DIR$ac_delim
14710 moduledir!$moduledir$ac_delim
14711 SELECT_TYPE!$SELECT_TYPE$ac_delim
14712 MODULES_LIBS!$MODULES_LIBS$ac_delim
14713 MOD_TARGET!$MOD_TARGET$ac_delim
14714 SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14715 SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14716 SSL_LIBS!$SSL_LIBS$ac_delim
14717 PICFLAGS!$PICFLAGS$ac_delim
14718 IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14719 SEDOBJ!$SEDOBJ$ac_delim
14720 LIBOBJS!$LIBOBJS$ac_delim
14721 LTLIBOBJS!$LTLIBOBJS$ac_delim
14722 _ACEOF
14723
14724 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
14725 break
14726 elif $ac_last_try; then
14727 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14728 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14729 { (exit 1); exit 1; }; }
14730 else
14731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14732 fi
14733 done
14734
14735 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14736 if test -n "$ac_eof"; then
14737 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14738 ac_eof=`expr $ac_eof + 1`
14739 fi
14740
14741 cat >>$CONFIG_STATUS <<_ACEOF
14742 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14744 _ACEOF
14745 sed '
14746 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14747 s/^/s,@/; s/!/@,|#_!!_#|/
14748 :n
14749 t n
14750 s/'"$ac_delim"'$/,g/; t
14751 s/$/\\/; p
14752 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14753 ' >>$CONFIG_STATUS <conf$$subs.sed
14754 rm -f conf$$subs.sed
14755 cat >>$CONFIG_STATUS <<_ACEOF
14756 :end
14757 s/|#_!!_#|//g
14758 CEOF$ac_eof
14759 _ACEOF
14760
14761
14762 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14763 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14764 # trailing colons and then remove the whole line if VPATH becomes empty
14765 # (actually we leave an empty line to preserve line numbers).
14766 if test "x$srcdir" = x.; then
14767 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14768 s/:*\$(srcdir):*/:/
14769 s/:*\${srcdir}:*/:/
14770 s/:*@srcdir@:*/:/
14771 s/^\([^=]*=[ ]*\):*/\1/
14772 s/:*$//
14773 s/^[^=]*=[ ]*$//
14774 }'
14775 fi
14776
14777 cat >>$CONFIG_STATUS <<\_ACEOF
14778 fi # test -n "$CONFIG_FILES"
14779
14780
14781 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14782 do
14783 case $ac_tag in
14784 :[FHLC]) ac_mode=$ac_tag; continue;;
14785 esac
14786 case $ac_mode$ac_tag in
14787 :[FHL]*:*);;
14788 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14789 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14790 { (exit 1); exit 1; }; };;
14791 :[FH]-) ac_tag=-:-;;
14792 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14793 esac
14794 ac_save_IFS=$IFS
14795 IFS=:
14796 set x $ac_tag
14797 IFS=$ac_save_IFS
14798 shift
14799 ac_file=$1
14800 shift
14801
14802 case $ac_mode in
14803 :L) ac_source=$1;;
14804 :[FH])
14805 ac_file_inputs=
14806 for ac_f
14807 do
14808 case $ac_f in
14809 -) ac_f="$tmp/stdin";;
14810 *) # Look for the file first in the build tree, then in the source tree
14811 # (if the path is not absolute). The absolute path cannot be DOS-style,
14812 # because $ac_f cannot contain `:'.
14813 test -f "$ac_f" ||
14814 case $ac_f in
14815 [\\/$]*) false;;
14816 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14817 esac ||
14818 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14819 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14820 { (exit 1); exit 1; }; };;
14821 esac
14822 ac_file_inputs="$ac_file_inputs $ac_f"
14823 done
14824
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
14828 configure_input="Generated from "`IFS=:
14829 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14830 if test x"$ac_file" != x-; then
14831 configure_input="$ac_file. $configure_input"
14832 { echo "$as_me:$LINENO: creating $ac_file" >&5
14833 echo "$as_me: creating $ac_file" >&6;}
14834 fi
14835
14836 case $ac_tag in
14837 *:-:* | *:-) cat >"$tmp/stdin";;
14838 esac
14839 ;;
14840 esac
14841
14842 ac_dir=`$as_dirname -- "$ac_file" ||
14843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14844 X"$ac_file" : 'X\(//\)[^/]' \| \
14845 X"$ac_file" : 'X\(//\)$' \| \
14846 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14847 echo X"$ac_file" |
14848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14849 s//\1/
14850 q
14851 }
14852 /^X\(\/\/\)[^/].*/{
14853 s//\1/
14854 q
14855 }
14856 /^X\(\/\/\)$/{
14857 s//\1/
14858 q
14859 }
14860 /^X\(\/\).*/{
14861 s//\1/
14862 q
14863 }
14864 s/.*/./; q'`
14865 { as_dir="$ac_dir"
14866 case $as_dir in #(
14867 -*) as_dir=./$as_dir;;
14868 esac
14869 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14870 as_dirs=
14871 while :; do
14872 case $as_dir in #(
14873 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14874 *) as_qdir=$as_dir;;
14875 esac
14876 as_dirs="'$as_qdir' $as_dirs"
14877 as_dir=`$as_dirname -- "$as_dir" ||
14878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14879 X"$as_dir" : 'X\(//\)[^/]' \| \
14880 X"$as_dir" : 'X\(//\)$' \| \
14881 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14882 echo X"$as_dir" |
14883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14884 s//\1/
14885 q
14886 }
14887 /^X\(\/\/\)[^/].*/{
14888 s//\1/
14889 q
14890 }
14891 /^X\(\/\/\)$/{
14892 s//\1/
14893 q
14894 }
14895 /^X\(\/\).*/{
14896 s//\1/
14897 q
14898 }
14899 s/.*/./; q'`
14900 test -d "$as_dir" && break
14901 done
14902 test -z "$as_dirs" || eval "mkdir $as_dirs"
14903 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14904 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14905 { (exit 1); exit 1; }; }; }
14906 ac_builddir=.
14907
14908 case "$ac_dir" in
14909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14910 *)
14911 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14912 # A ".." for each directory in $ac_dir_suffix.
14913 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14914 case $ac_top_builddir_sub in
14915 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14916 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14917 esac ;;
14918 esac
14919 ac_abs_top_builddir=$ac_pwd
14920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14921 # for backward compatibility:
14922 ac_top_builddir=$ac_top_build_prefix
14923
14924 case $srcdir in
14925 .) # We are building in place.
14926 ac_srcdir=.
14927 ac_top_srcdir=$ac_top_builddir_sub
14928 ac_abs_top_srcdir=$ac_pwd ;;
14929 [\\/]* | ?:[\\/]* ) # Absolute name.
14930 ac_srcdir=$srcdir$ac_dir_suffix;
14931 ac_top_srcdir=$srcdir
14932 ac_abs_top_srcdir=$srcdir ;;
14933 *) # Relative name.
14934 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14935 ac_top_srcdir=$ac_top_build_prefix$srcdir
14936 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14937 esac
14938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14939
14940
14941 case $ac_mode in
14942 :F)
14943 #
14944 # CONFIG_FILE
14945 #
14946
14947 case $INSTALL in
14948 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14949 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14950 esac
14951 _ACEOF
14952
14953 cat >>$CONFIG_STATUS <<\_ACEOF
14954 # If the template does not know about datarootdir, expand it.
14955 # FIXME: This hack should be removed a few years after 2.60.
14956 ac_datarootdir_hack=; ac_datarootdir_seen=
14957
14958 case `sed -n '/datarootdir/ {
14959 p
14960 q
14961 }
14962 /@datadir@/p
14963 /@docdir@/p
14964 /@infodir@/p
14965 /@localedir@/p
14966 /@mandir@/p
14967 ' $ac_file_inputs` in
14968 *datarootdir*) ac_datarootdir_seen=yes;;
14969 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14970 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14971 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14972 _ACEOF
14973 cat >>$CONFIG_STATUS <<_ACEOF
14974 ac_datarootdir_hack='
14975 s&@datadir@&$datadir&g
14976 s&@docdir@&$docdir&g
14977 s&@infodir@&$infodir&g
14978 s&@localedir@&$localedir&g
14979 s&@mandir@&$mandir&g
14980 s&\\\${datarootdir}&$datarootdir&g' ;;
14981 esac
14982 _ACEOF
14983
14984 # Neutralize VPATH when `$srcdir' = `.'.
14985 # Shell code in configure.ac might set extrasub.
14986 # FIXME: do we really want to maintain this feature?
14987 cat >>$CONFIG_STATUS <<_ACEOF
14988 sed "$ac_vpsub
14989 $extrasub
14990 _ACEOF
14991 cat >>$CONFIG_STATUS <<\_ACEOF
14992 :t
14993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14994 s&@configure_input@&$configure_input&;t t
14995 s&@top_builddir@&$ac_top_builddir_sub&;t t
14996 s&@srcdir@&$ac_srcdir&;t t
14997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14998 s&@top_srcdir@&$ac_top_srcdir&;t t
14999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15000 s&@builddir@&$ac_builddir&;t t
15001 s&@abs_builddir@&$ac_abs_builddir&;t t
15002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15003 s&@INSTALL@&$ac_INSTALL&;t t
15004 $ac_datarootdir_hack
15005 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15006
15007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15008 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15009 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15010 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15011 which seems to be undefined. Please make sure it is defined." >&5
15012 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15013 which seems to be undefined. Please make sure it is defined." >&2;}
15014
15015 rm -f "$tmp/stdin"
15016 case $ac_file in
15017 -) cat "$tmp/out"; rm -f "$tmp/out";;
15018 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15019 esac
15020 ;;
15021 :H)
15022 #
15023 # CONFIG_HEADER
15024 #
15025 _ACEOF
15026
15027 # Transform confdefs.h into a sed script `conftest.defines', that
15028 # substitutes the proper values into config.h.in to produce config.h.
15029 rm -f conftest.defines conftest.tail
15030 # First, append a space to every undef/define line, to ease matching.
15031 echo 's/$/ /' >conftest.defines
15032 # Then, protect against being on the right side of a sed subst, or in
15033 # an unquoted here document, in config.status. If some macros were
15034 # called several times there might be several #defines for the same
15035 # symbol, which is useless. But do not sort them, since the last
15036 # AC_DEFINE must be honored.
15037 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15038 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15039 # NAME is the cpp macro being defined, VALUE is the value it is being given.
15040 # PARAMS is the parameter list in the macro definition--in most cases, it's
15041 # just an empty string.
15042 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15043 ac_dB='\\)[ (].*,\\1define\\2'
15044 ac_dC=' '
15045 ac_dD=' ,'
15046
15047 uniq confdefs.h |
15048 sed -n '
15049 t rset
15050 :rset
15051 s/^[ ]*#[ ]*define[ ][ ]*//
15052 t ok
15053 d
15054 :ok
15055 s/[\\&,]/\\&/g
15056 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15057 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15058 ' >>conftest.defines
15059
15060 # Remove the space that was appended to ease matching.
15061 # Then replace #undef with comments. This is necessary, for
15062 # example, in the case of _POSIX_SOURCE, which is predefined and required
15063 # on some systems where configure will not decide to define it.
15064 # (The regexp can be short, since the line contains either #define or #undef.)
15065 echo 's/ $//
15066 s,^[ #]*u.*,/* & */,' >>conftest.defines
15067
15068 # Break up conftest.defines:
15069 ac_max_sed_lines=50
15070
15071 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15072 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15073 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15074 # et cetera.
15075 ac_in='$ac_file_inputs'
15076 ac_out='"$tmp/out1"'
15077 ac_nxt='"$tmp/out2"'
15078
15079 while :
15080 do
15081 # Write a here document:
15082 cat >>$CONFIG_STATUS <<_ACEOF
15083 # First, check the format of the line:
15084 cat >"\$tmp/defines.sed" <<\\CEOF
15085 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15086 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15087 b
15088 :def
15089 _ACEOF
15090 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15091 echo 'CEOF
15092 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15093 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15094 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15095 grep . conftest.tail >/dev/null || break
15096 rm -f conftest.defines
15097 mv conftest.tail conftest.defines
15098 done
15099 rm -f conftest.defines conftest.tail
15100
15101 echo "ac_result=$ac_in" >>$CONFIG_STATUS
15102 cat >>$CONFIG_STATUS <<\_ACEOF
15103 if test x"$ac_file" != x-; then
15104 echo "/* $configure_input */" >"$tmp/config.h"
15105 cat "$ac_result" >>"$tmp/config.h"
15106 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15107 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15108 echo "$as_me: $ac_file is unchanged" >&6;}
15109 else
15110 rm -f $ac_file
15111 mv "$tmp/config.h" $ac_file
15112 fi
15113 else
15114 echo "/* $configure_input */"
15115 cat "$ac_result"
15116 fi
15117 rm -f "$tmp/out12"
15118 ;;
15119
15120
15121 esac
15122
15123 done # for ac_tag
15124
15125
15126 { (exit 0); exit 0; }
15127 _ACEOF
15128 chmod +x $CONFIG_STATUS
15129 ac_clean_files=$ac_clean_files_save
15130
15131
15132 # configure is writing to config.log, and then calls config.status.
15133 # config.status does its own redirection, appending to config.log.
15134 # Unfortunately, on DOS this fails, as config.log is still kept open
15135 # by configure, so config.status won't be able to write to it; its
15136 # output is simply discarded. So we exec the FD to /dev/null,
15137 # effectively closing config.log, so it can be properly (re)opened and
15138 # appended to by config.status. When coming back to configure, we
15139 # need to make the FD available again.
15140 if test "$no_create" != yes; then
15141 ac_cs_success=:
15142 ac_config_status_args=
15143 test "$silent" = yes &&
15144 ac_config_status_args="$ac_config_status_args --quiet"
15145 exec 5>/dev/null
15146 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15147 exec 5>>config.log
15148 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15149 # would make configure fail if this is the last instruction.
15150 $ac_cs_success || { (exit 1); exit 1; }
15151 fi
15152
15153 #
15154 # CONFIG_SUBDIRS section.
15155 #
15156 if test "$no_recursion" != yes; then
15157
15158 # Remove --cache-file and --srcdir arguments so they do not pile up.
15159 ac_sub_configure_args=
15160 ac_prev=
15161 eval "set x $ac_configure_args"
15162 shift
15163 for ac_arg
15164 do
15165 if test -n "$ac_prev"; then
15166 ac_prev=
15167 continue
15168 fi
15169 case $ac_arg in
15170 -cache-file | --cache-file | --cache-fil | --cache-fi \
15171 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15172 ac_prev=cache_file ;;
15173 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15174 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15175 | --c=*)
15176 ;;
15177 --config-cache | -C)
15178 ;;
15179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15180 ac_prev=srcdir ;;
15181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15182 ;;
15183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15184 ac_prev=prefix ;;
15185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15186 ;;
15187 *)
15188 case $ac_arg in
15189 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15190 esac
15191 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15192 esac
15193 done
15194
15195 # Always prepend --prefix to ensure using the same prefix
15196 # in subdir configurations.
15197 ac_arg="--prefix=$prefix"
15198 case $ac_arg in
15199 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15200 esac
15201 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15202
15203 # Pass --silent
15204 if test "$silent" = yes; then
15205 ac_sub_configure_args="--silent $ac_sub_configure_args"
15206 fi
15207
15208 ac_popdir=`pwd`
15209 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15210
15211 # Do not complain, so a configure script can configure whichever
15212 # parts of a large source tree are present.
15213 test -d "$srcdir/$ac_dir" || continue
15214
15215 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15216 echo "$as_me:$LINENO: $ac_msg" >&5
15217 echo "$ac_msg" >&6
15218 { as_dir="$ac_dir"
15219 case $as_dir in #(
15220 -*) as_dir=./$as_dir;;
15221 esac
15222 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15223 as_dirs=
15224 while :; do
15225 case $as_dir in #(
15226 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15227 *) as_qdir=$as_dir;;
15228 esac
15229 as_dirs="'$as_qdir' $as_dirs"
15230 as_dir=`$as_dirname -- "$as_dir" ||
15231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15232 X"$as_dir" : 'X\(//\)[^/]' \| \
15233 X"$as_dir" : 'X\(//\)$' \| \
15234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15235 echo X"$as_dir" |
15236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15237 s//\1/
15238 q
15239 }
15240 /^X\(\/\/\)[^/].*/{
15241 s//\1/
15242 q
15243 }
15244 /^X\(\/\/\)$/{
15245 s//\1/
15246 q
15247 }
15248 /^X\(\/\).*/{
15249 s//\1/
15250 q
15251 }
15252 s/.*/./; q'`
15253 test -d "$as_dir" && break
15254 done
15255 test -z "$as_dirs" || eval "mkdir $as_dirs"
15256 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15257 echo "$as_me: error: cannot create directory $as_dir" >&2;}
15258 { (exit 1); exit 1; }; }; }
15259 ac_builddir=.
15260
15261 case "$ac_dir" in
15262 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15263 *)
15264 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15265 # A ".." for each directory in $ac_dir_suffix.
15266 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15267 case $ac_top_builddir_sub in
15268 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15269 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15270 esac ;;
15271 esac
15272 ac_abs_top_builddir=$ac_pwd
15273 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15274 # for backward compatibility:
15275 ac_top_builddir=$ac_top_build_prefix
15276
15277 case $srcdir in
15278 .) # We are building in place.
15279 ac_srcdir=.
15280 ac_top_srcdir=$ac_top_builddir_sub
15281 ac_abs_top_srcdir=$ac_pwd ;;
15282 [\\/]* | ?:[\\/]* ) # Absolute name.
15283 ac_srcdir=$srcdir$ac_dir_suffix;
15284 ac_top_srcdir=$srcdir
15285 ac_abs_top_srcdir=$srcdir ;;
15286 *) # Relative name.
15287 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15288 ac_top_srcdir=$ac_top_build_prefix$srcdir
15289 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15290 esac
15291 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15292
15293
15294 cd "$ac_dir"
15295
15296 # Check for guested configure; otherwise get Cygnus style configure.
15297 if test -f "$ac_srcdir/configure.gnu"; then
15298 ac_sub_configure=$ac_srcdir/configure.gnu
15299 elif test -f "$ac_srcdir/configure"; then
15300 ac_sub_configure=$ac_srcdir/configure
15301 elif test -f "$ac_srcdir/configure.in"; then
15302 # This should be Cygnus configure.
15303 ac_sub_configure=$ac_aux_dir/configure
15304 else
15305 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15306 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15307 ac_sub_configure=
15308 fi
15309
15310 # The recursion is here.
15311 if test -n "$ac_sub_configure"; then
15312 # Make the cache file name correct relative to the subdirectory.
15313 case $cache_file in
15314 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15315 *) # Relative name.
15316 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15317 esac
15318
15319 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15320 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15321 # The eval makes quoting arguments work.
15322 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15323 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15324 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15325 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15326 { (exit 1); exit 1; }; }
15327 fi
15328
15329 cd "$ac_popdir"
15330 done
15331 fi
15332
15333
15334 if test "$cf_openssl_version_ok" = yes; then
15335 openssl="yes"
15336 else
15337 openssl="no"
15338 fi
15339
15340 if test "$shared_modules" = yes; then
15341 modules=shared
15342 else
15343 modules=static
15344 fi
15345
15346 echo "
15347 Configuration:
15348 Install directory : $prefix
15349
15350 Ziplinks : $zlib
15351 OpenSSL : $openssl
15352 Socket Engine : $SELECT_TYPE
15353 Small network : $small_net
15354 Block allocator : $balloc
15355
15356 Nickname length : $NICKLEN
15357 Topic length : $TOPICLEN
15358
15359 Use (g)make to compile Charybdis, then (g)make install to install it.
15360 "