]> jfr.im git - irc/rqf/shadowircd.git/blame_incremental - configure
Update some copyright years.
[irc/rqf/shadowircd.git] / configure
... / ...
CommitLineData
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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if 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
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57 as_unset=unset
58else
59 as_unset=false
60fi
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.)
68as_nl='
69'
70IFS=" "" $as_nl"
71
72# Find who we are. Look in the path if we contain no directory separator.
73case $0 in
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78 IFS=$as_save_IFS
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84 ;;
85esac
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.
88if test "x$as_myself" = x; then
89 as_myself=$0
90fi
91if 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; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for 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
109do
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
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
120 as_expr=expr
121else
122 as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo 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
156if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
158 as_have_required=yes
159else
160 as_have_required=no
161fi
162
163 if test $as_have_required = yes && (eval ":
164(as_func_return () {
165 (exit \$1)
166}
167as_func_success () {
168 as_func_return 0
169}
170as_func_failure () {
171 as_func_return 1
172}
173as_func_ret_success () {
174 return 0
175}
176as_func_ret_failure () {
177 return 1
178}
179
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
187
188if as_func_failure; then
189 exitcode=1
190 echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194 :
195else
196 exitcode=1
197 echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201 exitcode=1
202 echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 :
207else
208 exitcode=1
209 echo positional parameters were not saved.
210fi
211
212test \$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 :
221else
222 as_candidate_shells=
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
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
234done
235IFS=$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
242if 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
249else
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
252esac
253
254fi
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
263if 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
270else
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280 (exit $1)
281}
282as_func_success () {
283 as_func_return 0
284}
285as_func_failure () {
286 as_func_return 1
287}
288as_func_ret_success () {
289 return 0
290}
291as_func_ret_failure () {
292 return 1
293}
294
295exitcode=0
296if as_func_success; then
297 :
298else
299 exitcode=1
300 echo as_func_success failed.
301fi
302
303if as_func_failure; then
304 exitcode=1
305 echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309 :
310else
311 exitcode=1
312 echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316 exitcode=1
317 echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321 :
322else
323 exitcode=1
324 echo positional parameters were not saved.
325fi
326
327test $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
338fi
339
340fi
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+"$@"}
350fi
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; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369 (exit \$1)
370}
371as_func_success () {
372 as_func_return 0
373}
374as_func_failure () {
375 as_func_return 1
376}
377as_func_ret_success () {
378 return 0
379}
380as_func_ret_failure () {
381 return 1
382}
383
384exitcode=0
385if as_func_success; then
386 :
387else
388 exitcode=1
389 echo as_func_success failed.
390fi
391
392if as_func_failure; then
393 exitcode=1
394 echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398 :
399else
400 exitcode=1
401 echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405 exitcode=1
406 echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410 :
411else
412 exitcode=1
413 echo positional parameters were not saved.
414fi
415
416test \$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
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 as_dirname=dirname
470else
471 as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `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';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
499echo >conf$$.file
500if 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'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517 as_mkdir_p=:
518else
519 test -d ./-p && rmdir ./-p
520 as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524 as_test_x='test -x'
525else
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 '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_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.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554exec 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.
559ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
565ac_clean_files=
566ac_config_libobj_dir=.
567LIBOBJS=
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
574# Identity of this package.
575PACKAGE_NAME='charybdis'
576PACKAGE_TARNAME='charybdis'
577PACKAGE_VERSION='3.1'
578PACKAGE_STRING='charybdis 3.1'
579PACKAGE_BUGREPORT=''
580
581ac_default_prefix=$HOME/ircd
582# Factoring default headers for most tests.
583ac_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
618ac_subst_vars='SHELL
619PATH_SEPARATOR
620PACKAGE_NAME
621PACKAGE_TARNAME
622PACKAGE_VERSION
623PACKAGE_STRING
624PACKAGE_BUGREPORT
625exec_prefix
626prefix
627program_transform_name
628bindir
629sbindir
630libexecdir
631datarootdir
632datadir
633sysconfdir
634sharedstatedir
635localstatedir
636includedir
637oldincludedir
638docdir
639infodir
640htmldir
641dvidir
642pdfdir
643psdir
644libdir
645localedir
646mandir
647DEFS
648ECHO_C
649ECHO_N
650ECHO_T
651LIBS
652build_alias
653host_alias
654target_alias
655CC
656CFLAGS
657LDFLAGS
658CPPFLAGS
659ac_ct_CC
660EXEEXT
661OBJEXT
662subdirs
663MKDEP
664MAKEDEPEND
665STDOUT
666CPP
667GREP
668EGREP
669SET_MAKE
670INSTALL_PROGRAM
671INSTALL_SCRIPT
672INSTALL_DATA
673RM
674CP
675MV
676LN
677SED
678AR
679LD
680RANLIB
681TOUCH
682YACC
683YFLAGS
684LEX
685LEX_OUTPUT_ROOT
686LEXLIB
687CRYPT_LIB
688VICONF
689ALLOCA
690ENCSPEED
691ZLIB_LD
692ETC_DIR
693confdir
694LOG_DIR
695logdir
696HELP_DIR
697helpdir
698MODULE_DIR
699moduledir
700SELECT_TYPE
701MODULES_LIBS
702MOD_TARGET
703SSL_SRCS_ENABLE
704SSL_INCLUDES
705SSL_LIBS
706PICFLAGS
707IRC_CFLAGS
708SEDOBJ
709LIBOBJS
710LTLIBOBJS'
711ac_subst_files=''
712 ac_precious_vars='build_alias
713host_alias
714target_alias
715CC
716CFLAGS
717LDFLAGS
718LIBS
719CPPFLAGS
720CPP
721YACC
722YFLAGS'
723ac_subdirs_all='libratbox'
724
725# Initialize some variables set by options.
726ac_init_help=
727ac_init_version=false
728# The variables have the same names as the options, with
729# dashes changed to underlines.
730cache_file=/dev/null
731exec_prefix=NONE
732no_create=
733no_recursion=
734prefix=NONE
735program_prefix=NONE
736program_suffix=NONE
737program_transform_name=s,x,x,
738silent=
739site=
740srcdir=
741verbose=
742x_includes=NONE
743x_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.)
751bindir='${exec_prefix}/bin'
752sbindir='${exec_prefix}/sbin'
753libexecdir='${exec_prefix}/libexec'
754datarootdir='${prefix}/share'
755datadir='${datarootdir}'
756sysconfdir='${prefix}/etc'
757sharedstatedir='${prefix}/com'
758localstatedir='${prefix}/var'
759includedir='${prefix}/include'
760oldincludedir='/usr/include'
761docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
762infodir='${datarootdir}/info'
763htmldir='${docdir}'
764dvidir='${docdir}'
765pdfdir='${docdir}'
766psdir='${docdir}'
767libdir='${exec_prefix}/lib'
768localedir='${datarootdir}/locale'
769mandir='${datarootdir}/man'
770
771ac_prev=
772ac_dashdash=
773for ac_option
774do
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
1078Try \`$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
1100done
1101
1102if 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; }; }
1106fi
1107
1108# Be sure to have absolute directory names.
1109for 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
1113do
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; }; }
1121done
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.
1126build=$build_alias
1127host=$host_alias
1128target=$target_alias
1129
1130# FIXME: To remove some day.
1131if 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
1139fi
1140
1141ac_tool_prefix=
1142test -n "$host_alias" && ac_tool_prefix=$host_alias-
1143
1144test "$silent" = yes && exec 6>/dev/null
1145
1146
1147ac_pwd=`pwd` && test -n "$ac_pwd" &&
1148ac_ls_di=`ls -di .` &&
1149ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1150 { echo "$as_me: error: Working directory cannot be determined" >&2
1151 { (exit 1); exit 1; }; }
1152test "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.
1158if 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 ||
1166echo 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
1188else
1189 ac_srcdir_defaulted=no
1190fi
1191if 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; }; }
1195fi
1196ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1197ac_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=.
1202if test "$ac_abs_confdir" = "$ac_pwd"; then
1203 srcdir=.
1204fi
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.
1208case $srcdir in
1209*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1210esac
1211for 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}
1216done
1217
1218#
1219# Report the --help message.
1220#
1221if 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
1227Usage: $0 [OPTION]... [VAR=VALUE]...
1228
1229To assign environment variables (e.g., CC, CFLAGS...), specify them as
1230VAR=VALUE. See below for descriptions of some of the useful variables.
1231
1232Defaults for the options are specified in brackets.
1233
1234Configuration:
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
1245Installation 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
1251By default, \`make install' will install all the files in
1252\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1253an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1254for instance \`--prefix=\$HOME'.
1255
1256For better control, use the options below.
1257
1258Fine 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
1282fi
1283
1284if 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
1290Optional 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
1310Optional 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
1322Some 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
1337Use these variables to override the choices made by `configure' or to help
1338it to find libraries and programs with nonstandard names/locations.
1339
1340_ACEOF
1341ac_status=$?
1342fi
1343
1344if 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
1350case "$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 ;;
1360esac
1361ac_abs_top_builddir=$ac_pwd
1362ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363# for backward compatibility:
1364ac_top_builddir=$ac_top_build_prefix
1365
1366case $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 ;;
1379esac
1380ac_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
1395fi
1396
1397test -n "$ac_init_help" && exit $ac_status
1398if $ac_init_version; then
1399 cat <<\_ACEOF
1400charybdis configure 3.1
1401generated by GNU Autoconf 2.61
1402
1403Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1405This configure script is free software; the Free Software Foundation
1406gives 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
1411fi
1412cat >config.log <<_ACEOF
1413This file contains any messages produced by compilers while
1414running configure, to aid debugging if configure makes a mistake.
1415
1416It was created by charybdis $as_me 3.1, which was
1417generated by GNU Autoconf 2.61. Invocation command line was
1418
1419 $ $0 $@
1420
1421_ACEOF
1422exec 5>>config.log
1423{
1424cat <<_ASUNAME
1425## --------- ##
1426## Platform. ##
1427## --------- ##
1428
1429hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1430uname -m = `(uname -m) 2>/dev/null || echo unknown`
1431uname -r = `(uname -r) 2>/dev/null || echo unknown`
1432uname -s = `(uname -s) 2>/dev/null || echo unknown`
1433uname -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
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 echo "PATH: $as_dir"
1454done
1455IFS=$as_save_IFS
1456
1457} >&5
1458
1459cat >&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.
1474ac_configure_args=
1475ac_configure_args0=
1476ac_configure_args1=
1477ac_must_keep_next=false
1478for ac_pass in 1 2
1479do
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
1513done
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.
1522trap '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
1541echo "$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
1616for ac_signal in 1 2 13 15; do
1617 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1618done
1619ac_signal=0
1620
1621# confdefs.h avoids OS command line length limits that DEFS can exceed.
1622rm -f -r conftest* confdefs.h
1623
1624# Predefined preprocessor variables.
1625
1626cat >>confdefs.h <<_ACEOF
1627#define PACKAGE_NAME "$PACKAGE_NAME"
1628_ACEOF
1629
1630
1631cat >>confdefs.h <<_ACEOF
1632#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1633_ACEOF
1634
1635
1636cat >>confdefs.h <<_ACEOF
1637#define PACKAGE_VERSION "$PACKAGE_VERSION"
1638_ACEOF
1639
1640
1641cat >>confdefs.h <<_ACEOF
1642#define PACKAGE_STRING "$PACKAGE_STRING"
1643_ACEOF
1644
1645
1646cat >>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.
1653if test -n "$CONFIG_SITE"; then
1654 set x "$CONFIG_SITE"
1655elif test "x$prefix" != xNONE; then
1656 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1657else
1658 set x "$ac_default_prefix/share/config.site" \
1659 "$ac_default_prefix/etc/config.site"
1660fi
1661shift
1662for ac_site_file
1663do
1664 if test -r "$ac_site_file"; then
1665 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1666echo "$as_me: loading site script $ac_site_file" >&6;}
1667 sed 's/^/| /' "$ac_site_file" >&5
1668 . "$ac_site_file"
1669 fi
1670done
1671
1672if 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
1677echo "$as_me: loading cache $cache_file" >&6;}
1678 case $cache_file in
1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
1681 esac
1682 fi
1683else
1684 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1685echo "$as_me: creating cache $cache_file" >&6;}
1686 >$cache_file
1687fi
1688
1689# Check that the precious variables saved in the cache have kept the same
1690# value.
1691ac_cache_corrupted=false
1692for 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
1700echo "$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
1704echo "$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
1710echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1711 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1712echo "$as_me: former value: $ac_old_val" >&2;}
1713 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1714echo "$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
1729done
1730if $ac_cache_corrupted; then
1731 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1732echo "$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
1734echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1735 { (exit 1); exit 1; }; }
1736fi
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
1762ac_ext=c
1763ac_cpp='$CPP $CPPFLAGS'
1764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766ac_compiler_gnu=$ac_cv_c_compiler_gnu
1767
1768
1769
1770ac_config_headers="$ac_config_headers include/setup.h"
1771
1772
1773
1774
1775
1776cat >>confdefs.h <<\_ACEOF
1777#define _GNU_SOURCE 1
1778_ACEOF
1779
1780
1781
1782OLD_CFLAGS="$CFLAGS"
1783ac_ext=c
1784ac_cpp='$CPP $CPPFLAGS'
1785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788if 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.
1790set dummy ${ac_tool_prefix}gcc; ac_word=$2
1791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1793if test "${ac_cv_prog_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 if test -n "$CC"; then
1797 ac_cv_prog_CC="$CC" # Let the user override the test.
1798else
1799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800for as_dir in $PATH
1801do
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
1810done
1811done
1812IFS=$as_save_IFS
1813
1814fi
1815fi
1816CC=$ac_cv_prog_CC
1817if test -n "$CC"; then
1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819echo "${ECHO_T}$CC" >&6; }
1820else
1821 { echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6; }
1823fi
1824
1825
1826fi
1827if 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.
1830set dummy gcc; ac_word=$2
1831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1833if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838else
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
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
1850done
1851done
1852IFS=$as_save_IFS
1853
1854fi
1855fi
1856ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857if test -n "$ac_ct_CC"; then
1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859echo "${ECHO_T}$ac_ct_CC" >&6; }
1860else
1861 { echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6; }
1863fi
1864
1865 if test "x$ac_ct_CC" = x; then
1866 CC=""
1867 else
1868 case $cross_compiling:$ac_tool_warned in
1869yes:)
1870{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1871whose name does not start with the host triplet. If you think this
1872configuration is useful to you, please write to autoconf@gnu.org." >&5
1873echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1874whose name does not start with the host triplet. If you think this
1875configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1876ac_tool_warned=yes ;;
1877esac
1878 CC=$ac_ct_CC
1879 fi
1880else
1881 CC="$ac_cv_prog_CC"
1882fi
1883
1884if 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.
1887set dummy ${ac_tool_prefix}cc; ac_word=$2
1888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1890if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895else
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
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
1907done
1908done
1909IFS=$as_save_IFS
1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6; }
1917else
1918 { echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6; }
1920fi
1921
1922
1923 fi
1924fi
1925if test -z "$CC"; then
1926 # Extract the first word of "cc", so it can be a program name with args.
1927set dummy cc; ac_word=$2
1928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1930if test "${ac_cv_prog_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933 if test -n "$CC"; then
1934 ac_cv_prog_CC="$CC" # Let the user override the test.
1935else
1936 ac_prog_rejected=no
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
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
1952done
1953done
1954IFS=$as_save_IFS
1955
1956if 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
1967fi
1968fi
1969fi
1970CC=$ac_cv_prog_CC
1971if test -n "$CC"; then
1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973echo "${ECHO_T}$CC" >&6; }
1974else
1975 { echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6; }
1977fi
1978
1979
1980fi
1981if 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.
1986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1989if test "${ac_cv_prog_CC+set}" = set; then
1990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
1992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
1994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
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
2006done
2007done
2008IFS=$as_save_IFS
2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6; }
2016else
2017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
2019fi
2020
2021
2022 test -n "$CC" && break
2023 done
2024fi
2025if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl.exe
2028do
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030set dummy $ac_prog; ac_word=$2
2031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038else
2039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
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
2050done
2051done
2052IFS=$as_save_IFS
2053
2054fi
2055fi
2056ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057if test -n "$ac_ct_CC"; then
2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059echo "${ECHO_T}$ac_ct_CC" >&6; }
2060else
2061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
2063fi
2064
2065
2066 test -n "$ac_ct_CC" && break
2067done
2068
2069 if test "x$ac_ct_CC" = x; then
2070 CC=""
2071 else
2072 case $cross_compiling:$ac_tool_warned in
2073yes:)
2074{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2075whose name does not start with the host triplet. If you think this
2076configuration is useful to you, please write to autoconf@gnu.org." >&5
2077echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2078whose name does not start with the host triplet. If you think this
2079configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2080ac_tool_warned=yes ;;
2081esac
2082 CC=$ac_ct_CC
2083 fi
2084fi
2085
2086fi
2087
2088
2089test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2090See \`config.log' for more details." >&5
2091echo "$as_me: error: no acceptable C compiler found in \$PATH
2092See \`config.log' for more details." >&2;}
2093 { (exit 1); exit 1; }; }
2094
2095# Provide some information about the compiler.
2096echo "$as_me:$LINENO: checking for C compiler version" >&5
2097ac_compiler=`set X $ac_compile; echo $2`
2098{ (ac_try="$ac_compiler --version >&5"
2099case "(($ac_try" in
2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2101 *) ac_try_echo=$ac_try;;
2102esac
2103eval "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"
2109case "(($ac_try" in
2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111 *) ac_try_echo=$ac_try;;
2112esac
2113eval "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"
2119case "(($ac_try" in
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2122esac
2123eval "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
2129cat >conftest.$ac_ext <<_ACEOF
2130/* confdefs.h. */
2131_ACEOF
2132cat confdefs.h >>conftest.$ac_ext
2133cat >>conftest.$ac_ext <<_ACEOF
2134/* end confdefs.h. */
2135
2136int
2137main ()
2138{
2139
2140 ;
2141 return 0;
2142}
2143_ACEOF
2144ac_clean_files_save=$ac_clean_files
2145ac_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
2150echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2151ac_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.
2156ac_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.
2161ac_rmfiles=
2162for ac_file in $ac_files
2163do
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
2168done
2169rm -f $ac_rmfiles
2170
2171if { (ac_try="$ac_link_default"
2172case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2175esac
2176eval "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.
2186for ac_file in $ac_files ''
2187do
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
2210done
2211test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
2213else
2214 ac_file=''
2215fi
2216
2217{ echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6; }
2219if test -z "$ac_file"; then
2220 echo "$as_me: failed program was:" >&5
2221sed 's/^/| /' conftest.$ac_ext >&5
2222
2223{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2224See \`config.log' for more details." >&5
2225echo "$as_me: error: C compiler cannot create executables
2226See \`config.log' for more details." >&2;}
2227 { (exit 77); exit 77; }; }
2228fi
2229
2230ac_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
2235echo $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.
2238if 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;;
2243esac
2244eval "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.
2255If you meant to cross compile, use \`--host'.
2256See \`config.log' for more details." >&5
2257echo "$as_me: error: cannot run C compiled programs.
2258If you meant to cross compile, use \`--host'.
2259See \`config.log' for more details." >&2;}
2260 { (exit 1); exit 1; }; }
2261 fi
2262 fi
2263fi
2264{ echo "$as_me:$LINENO: result: yes" >&5
2265echo "${ECHO_T}yes" >&6; }
2266
2267rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268ac_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
2272echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2273{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2274echo "${ECHO_T}$cross_compiling" >&6; }
2275
2276{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2277echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2278if { (ac_try="$ac_link"
2279case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282esac
2283eval "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'.
2292for 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
2300done
2301else
2302 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&5
2304echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2305See \`config.log' for more details." >&2;}
2306 { (exit 1); exit 1; }; }
2307fi
2308
2309rm -f conftest$ac_cv_exeext
2310{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6; }
2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
2316{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2318if test "${ac_cv_objext+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2320else
2321 cat >conftest.$ac_ext <<_ACEOF
2322/* confdefs.h. */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h. */
2327
2328int
2329main ()
2330{
2331
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336rm -f conftest.o conftest.obj
2337if { (ac_try="$ac_compile"
2338case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341esac
2342eval "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
2354done
2355else
2356 echo "$as_me: failed program was:" >&5
2357sed 's/^/| /' conftest.$ac_ext >&5
2358
2359{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: cannot compute suffix of object files: cannot compile
2362See \`config.log' for more details." >&2;}
2363 { (exit 1); exit 1; }; }
2364fi
2365
2366rm -f conftest.$ac_cv_objext conftest.$ac_ext
2367fi
2368{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369echo "${ECHO_T}$ac_cv_objext" >&6; }
2370OBJEXT=$ac_cv_objext
2371ac_objext=$OBJEXT
2372{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2373echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2374if test "${ac_cv_c_compiler_gnu+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383
2384int
2385main ()
2386{
2387#ifndef __GNUC__
2388 choke me
2389#endif
2390
2391 ;
2392 return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
2396if { (ac_try="$ac_compile"
2397case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400esac
2401eval "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
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417 ac_compiler_gnu=no
2418fi
2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
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
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h. */
2444
2445int
2446main ()
2447{
2448
2449 ;
2450 return 0;
2451}
2452_ACEOF
2453rm -f conftest.$ac_objext
2454if { (ac_try="$ac_compile"
2455case "(($ac_try" in
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2458esac
2459eval "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
2471else
2472 echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475 CFLAGS=""
2476 cat >conftest.$ac_ext <<_ACEOF
2477/* confdefs.h. */
2478_ACEOF
2479cat confdefs.h >>conftest.$ac_ext
2480cat >>conftest.$ac_ext <<_ACEOF
2481/* end confdefs.h. */
2482
2483int
2484main ()
2485{
2486
2487 ;
2488 return 0;
2489}
2490_ACEOF
2491rm -f conftest.$ac_objext
2492if { (ac_try="$ac_compile"
2493case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496esac
2497eval "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 :
2509else
2510 echo "$as_me: failed program was:" >&5
2511sed '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
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h. */
2521
2522int
2523main ()
2524{
2525
2526 ;
2527 return 0;
2528}
2529_ACEOF
2530rm -f conftest.$ac_objext
2531if { (ac_try="$ac_compile"
2532case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535esac
2536eval "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
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552
2553fi
2554
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556fi
2557
2558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2559fi
2560
2561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 ac_c_werror_flag=$ac_save_c_werror_flag
2563fi
2564{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2566if test "$ac_test_CFLAGS" = set; then
2567 CFLAGS=$ac_save_CFLAGS
2568elif 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
2574else
2575 if test "$GCC" = yes; then
2576 CFLAGS="-O2"
2577 else
2578 CFLAGS=
2579 fi
2580fi
2581{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2582echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2583if test "${ac_cv_prog_cc_c89+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
2586 ac_cv_prog_cc_c89=no
2587ac_save_CC=$CC
2588cat >conftest.$ac_ext <<_ACEOF
2589/* confdefs.h. */
2590_ACEOF
2591cat confdefs.h >>conftest.$ac_ext
2592cat >>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. */
2599struct buf { int x; };
2600FILE * (*rcsopen) (struct buf *, struct stat *, int);
2601static char *e (p, i)
2602 char **p;
2603 int i;
2604{
2605 return p[i];
2606}
2607static 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. */
2624int 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'
2629int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2630
2631int test (int i, double x);
2632struct s1 {int (*f) (int a);};
2633struct s2 {int (*f) (double a);};
2634int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2635int argc;
2636char **argv;
2637int
2638main ()
2639{
2640return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2641 ;
2642 return 0;
2643}
2644_ACEOF
2645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2647do
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
2650if { (ac_try="$ac_compile"
2651case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654esac
2655eval "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
2667else
2668 echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
2671
2672fi
2673
2674rm -f core conftest.err conftest.$ac_objext
2675 test "x$ac_cv_prog_cc_c89" != "xno" && break
2676done
2677rm -f conftest.$ac_ext
2678CC=$ac_save_CC
2679
2680fi
2681# AC_CACHE_VAL
2682case "x$ac_cv_prog_cc_c89" in
2683 x)
2684 { echo "$as_me:$LINENO: result: none needed" >&5
2685echo "${ECHO_T}none needed" >&6; } ;;
2686 xno)
2687 { echo "$as_me:$LINENO: result: unsupported" >&5
2688echo "${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
2692echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2693esac
2694
2695
2696ac_ext=c
2697ac_cpp='$CPP $CPPFLAGS'
2698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2700ac_compiler_gnu=$ac_cv_c_compiler_gnu
2701
2702ac_ext=c
2703ac_cpp='$CPP $CPPFLAGS'
2704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708
2709CFLAGS="$OLD_CFLAGS"
2710
2711ac_aux_dir=
2712for 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
2726done
2727if test -z "$ac_aux_dir"; then
2728 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2729echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2730 { (exit 1); exit 1; }; }
2731fi
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.
2737ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740
2741
2742subdirs="$subdirs libratbox"
2743
2744
2745
2746if test "$ac_cv_c_compiler_gnu" != yes; then
2747
2748SGS=no
2749{ echo "$as_me:$LINENO: checking $CC -version for TenDRA or MIPSpro" >&5
2750echo $ECHO_N "checking $CC -version for TenDRA or MIPSpro... $ECHO_C" >&6; }
2751case `$CC -version 2>&1` in
2752*TenDRA*)
2753 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2754echo "${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
2762echo "${ECHO_T}yes, MIPSpro" >&6; }
2763 MIPSpro=yes
2764 SGS=yes
2765;;
2766*)
2767 { echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6; }
2769 TenDRA=no
2770 MIPSpro=no
2771;;
2772esac
2773
2774{ echo "$as_me:$LINENO: checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc" >&5
2775echo $ECHO_N "checking $CC -V for Sun Workshop, Forte, HPUX or Tru64 cc... $ECHO_C" >&6; }
2776case `$CC -V 2>&1` in
2777*Sun*WorkShop* | *Forte*Developer*)
2778 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2779echo "${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
2786echo "${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
2793echo "${ECHO_T}HPUX cc" >&6; }
2794 HPUX=yes
2795 IRC_CFLAGS="+e"
2796;;
2797*)
2798 { echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6; }
2800;;
2801esac
2802
2803fi
2804
2805{ echo "$as_me:$LINENO: checking uname -s for Solaris, AIX or HPUX" >&5
2806echo $ECHO_N "checking uname -s for Solaris, AIX or HPUX... $ECHO_C" >&6; }
2807OSNAME=`uname -s`
2808case "$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
2813echo "${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
2818echo "${ECHO_T}already using newer HPUX" >&6; }
2819 fi
2820 ;;
2821 SunOS*)
2822 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2823echo "${ECHO_T}SunOS or Solaris" >&6; }
2824
2825cat >>confdefs.h <<\_ACEOF
2826#define __EXTENSIONS__ 1
2827_ACEOF
2828
2829 SUN=yes
2830 ;;
2831 AIX*)
2832 { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2833echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; }
2834 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2835 ;;
2836 *)
2837 { echo "$as_me:$LINENO: result: no" >&5
2838echo "${ECHO_T}no" >&6; }
2839 ;;
2840esac
2841
2842if test "$ac_cv_c_compiler_gnu" = yes; then
2843 { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2844echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; }
2845
2846 case `$CC -v 2>&1 | tail -n 1` in
2847 *Apple*)
2848 { echo "$as_me:$LINENO: result: yes" >&5
2849echo "${ECHO_T}yes" >&6; }
2850 AppleGCC=yes
2851 ;;
2852 *)
2853 { echo "$as_me:$LINENO: result: no" >&5
2854echo "${ECHO_T}no" >&6; }
2855 AppleGCC=no
2856 ;;
2857 esac
2858
2859 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
2860fi
2861
2862if test "$ac_cv_prog_cc_g" = yes; then
2863 if test "$Tru" = yes; then
2864 IRC_CFLAGS="$IRC_CFLAGS -g3"
2865 else
2866 IRC_CFLAGS="$IRC_CFLAGS -g"
2867 fi
2868fi
2869
2870{ echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2871echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; }
2872if test "$SGS" = "yes"; then
2873 { echo "$as_me:$LINENO: result: yes" >&5
2874echo "${ECHO_T}yes" >&6; }
2875else
2876 { echo "$as_me:$LINENO: result: no" >&5
2877echo "${ECHO_T}no" >&6; }
2878fi
2879
2880# Extract the first word of "mkdep", so it can be a program name with args.
2881set dummy mkdep; ac_word=$2
2882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2884if test "${ac_cv_path_MKDEP+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886else
2887 case $MKDEP in
2888 [\\/]* | ?:[\\/]*)
2889 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2890 ;;
2891 *)
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904done
2905IFS=$as_save_IFS
2906
2907 ;;
2908esac
2909fi
2910MKDEP=$ac_cv_path_MKDEP
2911if test -n "$MKDEP"; then
2912 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2913echo "${ECHO_T}$MKDEP" >&6; }
2914else
2915 { echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6; }
2917fi
2918
2919
2920# Extract the first word of "makedepend", so it can be a program name with args.
2921set dummy makedepend; ac_word=$2
2922{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2924if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2926else
2927 case $MAKEDEPEND in
2928 [\\/]* | ?:[\\/]*)
2929 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2930 ;;
2931 *)
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945IFS=$as_save_IFS
2946
2947 ;;
2948esac
2949fi
2950MAKEDEPEND=$ac_cv_path_MAKEDEPEND
2951if test -n "$MAKEDEPEND"; then
2952 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2953echo "${ECHO_T}$MAKEDEPEND" >&6; }
2954else
2955 { echo "$as_me:$LINENO: result: no" >&5
2956echo "${ECHO_T}no" >&6; }
2957fi
2958
2959
2960
2961{ echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2962echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; }
2963
2964STDOUT="> .depend"
2965
2966if test "$ac_cv_c_compiler_gnu" = yes; then
2967 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2968echo "${ECHO_T}gcc -MM" >&6; }
2969 MKDEP="$CC -MM"
2970elif test ! -z "$MKDEP"; then
2971 { echo "$as_me:$LINENO: result: mkdep" >&5
2972echo "${ECHO_T}mkdep" >&6; }
2973
2974 if test -z "$Tru"; then
2975 STDOUT=""
2976 else
2977 STDOUT=" 2> /dev/null"
2978 fi
2979elif test "$SunWorkShop" = yes; then
2980 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2981echo "${ECHO_T}$CC -xM" >&6; }
2982 MKDEP="$CC -xM"
2983 STDOUT="> .depend 2> /dev/null"
2984elif test ! -z "$MAKEDEPEND"; then
2985 { echo "$as_me:$LINENO: result: makedepend" >&5
2986echo "${ECHO_T}makedepend" >&6; }
2987 MKDEP="$MAKEDEPEND -f-"
2988else
2989 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2990echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
2991 MKDEP=":"
2992fi
2993
2994
2995
2996
2997{ echo "$as_me:$LINENO: checking for /dev/null" >&5
2998echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
2999if test -c /dev/null ; then
3000
3001cat >>confdefs.h <<\_ACEOF
3002#define PATH_DEVNULL "/dev/null"
3003_ACEOF
3004
3005 { echo "$as_me:$LINENO: result: yes" >&5
3006echo "${ECHO_T}yes" >&6; }
3007else
3008
3009cat >>confdefs.h <<\_ACEOF
3010#define PATH_DEVNULL "devnull.log"
3011_ACEOF
3012
3013 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
3014echo "${ECHO_T}no - using devnull.log" >&6; }
3015fi
3016
3017if test ! -z "$CFLAGS"; then
3018 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
3019fi
3020
3021
3022{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3023echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3024if test "${ac_cv_search_strerror+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
3027 ac_func_search_save_LIBS=$LIBS
3028cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034
3035/* Override any GCC internal prototype to avoid an error.
3036 Use char because int might match the return type of a GCC
3037 builtin and then its argument prototype would still apply. */
3038#ifdef __cplusplus
3039extern "C"
3040#endif
3041char strerror ();
3042int
3043main ()
3044{
3045return strerror ();
3046 ;
3047 return 0;
3048}
3049_ACEOF
3050for ac_lib in '' cposix; do
3051 if test -z "$ac_lib"; then
3052 ac_res="none required"
3053 else
3054 ac_res=-l$ac_lib
3055 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3056 fi
3057 rm -f conftest.$ac_objext conftest$ac_exeext
3058if { (ac_try="$ac_link"
3059case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_link") 2>conftest.er1
3065 ac_status=$?
3066 grep -v '^ *+' conftest.er1 >conftest.err
3067 rm -f conftest.er1
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } && {
3071 test -z "$ac_c_werror_flag" ||
3072 test ! -s conftest.err
3073 } && test -s conftest$ac_exeext &&
3074 $as_test_x conftest$ac_exeext; then
3075 ac_cv_search_strerror=$ac_res
3076else
3077 echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080
3081fi
3082
3083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3084 conftest$ac_exeext
3085 if test "${ac_cv_search_strerror+set}" = set; then
3086 break
3087fi
3088done
3089if test "${ac_cv_search_strerror+set}" = set; then
3090 :
3091else
3092 ac_cv_search_strerror=no
3093fi
3094rm conftest.$ac_ext
3095LIBS=$ac_func_search_save_LIBS
3096fi
3097{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3098echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3099ac_res=$ac_cv_search_strerror
3100if test "$ac_res" != no; then
3101 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3102
3103fi
3104
3105{ echo "$as_me:$LINENO: checking for inline" >&5
3106echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
3107if test "${ac_cv_c_inline+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110 ac_cv_c_inline=no
3111for ac_kw in inline __inline__ __inline; do
3112 cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h. */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h. */
3118#ifndef __cplusplus
3119typedef int foo_t;
3120static $ac_kw foo_t static_foo () {return 0; }
3121$ac_kw foo_t foo () {return 0; }
3122#endif
3123
3124_ACEOF
3125rm -f conftest.$ac_objext
3126if { (ac_try="$ac_compile"
3127case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3130esac
3131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3133 ac_status=$?
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } && {
3139 test -z "$ac_c_werror_flag" ||
3140 test ! -s conftest.err
3141 } && test -s conftest.$ac_objext; then
3142 ac_cv_c_inline=$ac_kw
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147
3148fi
3149
3150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 test "$ac_cv_c_inline" != no && break
3152done
3153
3154fi
3155{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3156echo "${ECHO_T}$ac_cv_c_inline" >&6; }
3157
3158
3159case $ac_cv_c_inline in
3160 inline | yes) ;;
3161 *)
3162 case $ac_cv_c_inline in
3163 no) ac_val=;;
3164 *) ac_val=$ac_cv_c_inline;;
3165 esac
3166 cat >>confdefs.h <<_ACEOF
3167#ifndef __cplusplus
3168#define inline $ac_val
3169#endif
3170_ACEOF
3171 ;;
3172esac
3173
3174ac_ext=c
3175ac_cpp='$CPP $CPPFLAGS'
3176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3180echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3181# On Suns, sometimes $CPP names a directory.
3182if test -n "$CPP" && test -d "$CPP"; then
3183 CPP=
3184fi
3185if test -z "$CPP"; then
3186 if test "${ac_cv_prog_CPP+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189 # Double quotes because CPP needs to be expanded
3190 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3191 do
3192 ac_preproc_ok=false
3193for ac_c_preproc_warn_flag in '' yes
3194do
3195 # Use a header file that comes with gcc, so configuring glibc
3196 # with a fresh cross-compiler works.
3197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3198 # <limits.h> exists even on freestanding compilers.
3199 # On the NeXT, cc -E runs the code through the compiler's parser,
3200 # not just through cpp. "Syntax error" is here to catch this case.
3201 cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h. */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h. */
3207#ifdef __STDC__
3208# include <limits.h>
3209#else
3210# include <assert.h>
3211#endif
3212 Syntax error
3213_ACEOF
3214if { (ac_try="$ac_cpp conftest.$ac_ext"
3215case "(($ac_try" in
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3221 ac_status=$?
3222 grep -v '^ *+' conftest.er1 >conftest.err
3223 rm -f conftest.er1
3224 cat conftest.err >&5
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); } >/dev/null && {
3227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3228 test ! -s conftest.err
3229 }; then
3230 :
3231else
3232 echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235 # Broken: fails on valid input.
3236continue
3237fi
3238
3239rm -f conftest.err conftest.$ac_ext
3240
3241 # OK, works on sane cases. Now check whether nonexistent headers
3242 # can be detected and how.
3243 cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249#include <ac_nonexistent.h>
3250_ACEOF
3251if { (ac_try="$ac_cpp conftest.$ac_ext"
3252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
3256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } >/dev/null && {
3264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3266 }; then
3267 # Broken: success on invalid input.
3268continue
3269else
3270 echo "$as_me: failed program was:" >&5
3271sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 # Passes both tests.
3274ac_preproc_ok=:
3275break
3276fi
3277
3278rm -f conftest.err conftest.$ac_ext
3279
3280done
3281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3282rm -f conftest.err conftest.$ac_ext
3283if $ac_preproc_ok; then
3284 break
3285fi
3286
3287 done
3288 ac_cv_prog_CPP=$CPP
3289
3290fi
3291 CPP=$ac_cv_prog_CPP
3292else
3293 ac_cv_prog_CPP=$CPP
3294fi
3295{ echo "$as_me:$LINENO: result: $CPP" >&5
3296echo "${ECHO_T}$CPP" >&6; }
3297ac_preproc_ok=false
3298for ac_c_preproc_warn_flag in '' yes
3299do
3300 # Use a header file that comes with gcc, so configuring glibc
3301 # with a fresh cross-compiler works.
3302 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3303 # <limits.h> exists even on freestanding compilers.
3304 # On the NeXT, cc -E runs the code through the compiler's parser,
3305 # not just through cpp. "Syntax error" is here to catch this case.
3306 cat >conftest.$ac_ext <<_ACEOF
3307/* confdefs.h. */
3308_ACEOF
3309cat confdefs.h >>conftest.$ac_ext
3310cat >>conftest.$ac_ext <<_ACEOF
3311/* end confdefs.h. */
3312#ifdef __STDC__
3313# include <limits.h>
3314#else
3315# include <assert.h>
3316#endif
3317 Syntax error
3318_ACEOF
3319if { (ac_try="$ac_cpp conftest.$ac_ext"
3320case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323esac
3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3326 ac_status=$?
3327 grep -v '^ *+' conftest.er1 >conftest.err
3328 rm -f conftest.er1
3329 cat conftest.err >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); } >/dev/null && {
3332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3333 test ! -s conftest.err
3334 }; then
3335 :
3336else
3337 echo "$as_me: failed program was:" >&5
3338sed 's/^/| /' conftest.$ac_ext >&5
3339
3340 # Broken: fails on valid input.
3341continue
3342fi
3343
3344rm -f conftest.err conftest.$ac_ext
3345
3346 # OK, works on sane cases. Now check whether nonexistent headers
3347 # can be detected and how.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */
3354#include <ac_nonexistent.h>
3355_ACEOF
3356if { (ac_try="$ac_cpp conftest.$ac_ext"
3357case "(($ac_try" in
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3360esac
3361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null && {
3369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3370 test ! -s conftest.err
3371 }; then
3372 # Broken: success on invalid input.
3373continue
3374else
3375 echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 # Passes both tests.
3379ac_preproc_ok=:
3380break
3381fi
3382
3383rm -f conftest.err conftest.$ac_ext
3384
3385done
3386# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3387rm -f conftest.err conftest.$ac_ext
3388if $ac_preproc_ok; then
3389 :
3390else
3391 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3392See \`config.log' for more details." >&5
3393echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3394See \`config.log' for more details." >&2;}
3395 { (exit 1); exit 1; }; }
3396fi
3397
3398ac_ext=c
3399ac_cpp='$CPP $CPPFLAGS'
3400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403
3404
3405{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3406echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3407if test "${ac_cv_path_GREP+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 # Extract the first word of "grep ggrep" to use in msg output
3411if test -z "$GREP"; then
3412set dummy grep ggrep; ac_prog_name=$2
3413if test "${ac_cv_path_GREP+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 ac_path_GREP_found=false
3417# Loop through the user's path and test for each of PROGNAME-LIST
3418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_prog in grep ggrep; do
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3426 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3427 # Check for GNU ac_path_GREP and select it if it is found.
3428 # Check for GNU $ac_path_GREP
3429case `"$ac_path_GREP" --version 2>&1` in
3430*GNU*)
3431 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3432*)
3433 ac_count=0
3434 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3435 while :
3436 do
3437 cat "conftest.in" "conftest.in" >"conftest.tmp"
3438 mv "conftest.tmp" "conftest.in"
3439 cp "conftest.in" "conftest.nl"
3440 echo 'GREP' >> "conftest.nl"
3441 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3443 ac_count=`expr $ac_count + 1`
3444 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3445 # Best one so far, save it but keep looking for a better one
3446 ac_cv_path_GREP="$ac_path_GREP"
3447 ac_path_GREP_max=$ac_count
3448 fi
3449 # 10*(2^10) chars as input seems more than enough
3450 test $ac_count -gt 10 && break
3451 done
3452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3453esac
3454
3455
3456 $ac_path_GREP_found && break 3
3457 done
3458done
3459
3460done
3461IFS=$as_save_IFS
3462
3463
3464fi
3465
3466GREP="$ac_cv_path_GREP"
3467if test -z "$GREP"; then
3468 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3469echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3470 { (exit 1); exit 1; }; }
3471fi
3472
3473else
3474 ac_cv_path_GREP=$GREP
3475fi
3476
3477
3478fi
3479{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3480echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3481 GREP="$ac_cv_path_GREP"
3482
3483
3484{ echo "$as_me:$LINENO: checking for egrep" >&5
3485echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3486if test "${ac_cv_path_EGREP+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3490 then ac_cv_path_EGREP="$GREP -E"
3491 else
3492 # Extract the first word of "egrep" to use in msg output
3493if test -z "$EGREP"; then
3494set dummy egrep; ac_prog_name=$2
3495if test "${ac_cv_path_EGREP+set}" = set; then
3496 echo $ECHO_N "(cached) $ECHO_C" >&6
3497else
3498 ac_path_EGREP_found=false
3499# Loop through the user's path and test for each of PROGNAME-LIST
3500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_prog in egrep; do
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3508 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3509 # Check for GNU ac_path_EGREP and select it if it is found.
3510 # Check for GNU $ac_path_EGREP
3511case `"$ac_path_EGREP" --version 2>&1` in
3512*GNU*)
3513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3514*)
3515 ac_count=0
3516 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3517 while :
3518 do
3519 cat "conftest.in" "conftest.in" >"conftest.tmp"
3520 mv "conftest.tmp" "conftest.in"
3521 cp "conftest.in" "conftest.nl"
3522 echo 'EGREP' >> "conftest.nl"
3523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3525 ac_count=`expr $ac_count + 1`
3526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3527 # Best one so far, save it but keep looking for a better one
3528 ac_cv_path_EGREP="$ac_path_EGREP"
3529 ac_path_EGREP_max=$ac_count
3530 fi
3531 # 10*(2^10) chars as input seems more than enough
3532 test $ac_count -gt 10 && break
3533 done
3534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3535esac
3536
3537
3538 $ac_path_EGREP_found && break 3
3539 done
3540done
3541
3542done
3543IFS=$as_save_IFS
3544
3545
3546fi
3547
3548EGREP="$ac_cv_path_EGREP"
3549if test -z "$EGREP"; then
3550 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3551echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3552 { (exit 1); exit 1; }; }
3553fi
3554
3555else
3556 ac_cv_path_EGREP=$EGREP
3557fi
3558
3559
3560 fi
3561fi
3562{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3563echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3564 EGREP="$ac_cv_path_EGREP"
3565
3566
3567if test $ac_cv_c_compiler_gnu = yes; then
3568 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3569echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3570if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573 ac_pattern="Autoconf.*'x'"
3574 cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h. */
3580#include <sgtty.h>
3581Autoconf TIOCGETP
3582_ACEOF
3583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3584 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3585 ac_cv_prog_gcc_traditional=yes
3586else
3587 ac_cv_prog_gcc_traditional=no
3588fi
3589rm -f conftest*
3590
3591
3592 if test $ac_cv_prog_gcc_traditional = no; then
3593 cat >conftest.$ac_ext <<_ACEOF
3594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
3599#include <termio.h>
3600Autoconf TCGETA
3601_ACEOF
3602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3603 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3604 ac_cv_prog_gcc_traditional=yes
3605fi
3606rm -f conftest*
3607
3608 fi
3609fi
3610{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3611echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3612 if test $ac_cv_prog_gcc_traditional = yes; then
3613 CC="$CC -traditional"
3614 fi
3615fi
3616
3617{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3618echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3619set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3620if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 cat >conftest.make <<\_ACEOF
3624SHELL = /bin/sh
3625all:
3626 @echo '@@@%%%=$(MAKE)=@@@%%%'
3627_ACEOF
3628# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3629case `${MAKE-make} -f conftest.make 2>/dev/null` in
3630 *@@@%%%=?*=@@@%%%*)
3631 eval ac_cv_prog_make_${ac_make}_set=yes;;
3632 *)
3633 eval ac_cv_prog_make_${ac_make}_set=no;;
3634esac
3635rm -f conftest.make
3636fi
3637if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3638 { echo "$as_me:$LINENO: result: yes" >&5
3639echo "${ECHO_T}yes" >&6; }
3640 SET_MAKE=
3641else
3642 { echo "$as_me:$LINENO: result: no" >&5
3643echo "${ECHO_T}no" >&6; }
3644 SET_MAKE="MAKE=${MAKE-make}"
3645fi
3646
3647# Find a good install program. We prefer a C program (faster),
3648# so one script is as good as another. But avoid the broken or
3649# incompatible versions:
3650# SysV /etc/install, /usr/sbin/install
3651# SunOS /usr/etc/install
3652# IRIX /sbin/install
3653# AIX /bin/install
3654# AmigaOS /C/install, which installs bootblocks on floppy discs
3655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658# OS/2's system install, which has a completely different semantic
3659# ./install, which can be erroneously created by make from ./install.sh.
3660{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3661echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3662if test -z "$INSTALL"; then
3663if test "${ac_cv_path_install+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665else
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
3671 # Account for people who put trailing slashes in PATH elements.
3672case $as_dir/ in
3673 ./ | .// | /cC/* | \
3674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3676 /usr/ucb/* ) ;;
3677 *)
3678 # OSF1 and SCO ODT 3.0 have their own names for install.
3679 # Don't use installbsd from OSF since it installs stuff as root
3680 # by default.
3681 for ac_prog in ginstall scoinst install; do
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3684 if test $ac_prog = install &&
3685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3686 # AIX install. It has an incompatible calling convention.
3687 :
3688 elif test $ac_prog = install &&
3689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3690 # program-specific install script used by HP pwplus--don't use.
3691 :
3692 else
3693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3694 break 3
3695 fi
3696 fi
3697 done
3698 done
3699 ;;
3700esac
3701done
3702IFS=$as_save_IFS
3703
3704
3705fi
3706 if test "${ac_cv_path_install+set}" = set; then
3707 INSTALL=$ac_cv_path_install
3708 else
3709 # As a last resort, use the slow shell script. Don't cache a
3710 # value for INSTALL within a source directory, because that will
3711 # break other packages using the cache if that directory is
3712 # removed, or if the value is a relative name.
3713 INSTALL=$ac_install_sh
3714 fi
3715fi
3716{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3717echo "${ECHO_T}$INSTALL" >&6; }
3718
3719# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720# It thinks the first close brace ends the variable substitution.
3721test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3722
3723test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3724
3725test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3726
3727# Extract the first word of "rm", so it can be a program name with args.
3728set dummy rm; ac_word=$2
3729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3731if test "${ac_cv_path_RM+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3733else
3734 case $RM in
3735 [\\/]* | ?:[\\/]*)
3736 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3737 ;;
3738 *)
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740for as_dir in $PATH
3741do
3742 IFS=$as_save_IFS
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 break 2
3749 fi
3750done
3751done
3752IFS=$as_save_IFS
3753
3754 ;;
3755esac
3756fi
3757RM=$ac_cv_path_RM
3758if test -n "$RM"; then
3759 { echo "$as_me:$LINENO: result: $RM" >&5
3760echo "${ECHO_T}$RM" >&6; }
3761else
3762 { echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6; }
3764fi
3765
3766
3767# Extract the first word of "cp", so it can be a program name with args.
3768set dummy cp; ac_word=$2
3769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3771if test "${ac_cv_path_CP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3773else
3774 case $CP in
3775 [\\/]* | ?:[\\/]*)
3776 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3777 ;;
3778 *)
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3786 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3788 break 2
3789 fi
3790done
3791done
3792IFS=$as_save_IFS
3793
3794 ;;
3795esac
3796fi
3797CP=$ac_cv_path_CP
3798if test -n "$CP"; then
3799 { echo "$as_me:$LINENO: result: $CP" >&5
3800echo "${ECHO_T}$CP" >&6; }
3801else
3802 { echo "$as_me:$LINENO: result: no" >&5
3803echo "${ECHO_T}no" >&6; }
3804fi
3805
3806
3807# Extract the first word of "mv", so it can be a program name with args.
3808set dummy mv; ac_word=$2
3809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3811if test "${ac_cv_path_MV+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 case $MV in
3815 [\\/]* | ?:[\\/]*)
3816 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3817 ;;
3818 *)
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820for as_dir in $PATH
3821do
3822 IFS=$as_save_IFS
3823 test -z "$as_dir" && as_dir=.
3824 for ac_exec_ext in '' $ac_executable_extensions; do
3825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3826 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3828 break 2
3829 fi
3830done
3831done
3832IFS=$as_save_IFS
3833
3834 ;;
3835esac
3836fi
3837MV=$ac_cv_path_MV
3838if test -n "$MV"; then
3839 { echo "$as_me:$LINENO: result: $MV" >&5
3840echo "${ECHO_T}$MV" >&6; }
3841else
3842 { echo "$as_me:$LINENO: result: no" >&5
3843echo "${ECHO_T}no" >&6; }
3844fi
3845
3846
3847# Extract the first word of "ln", so it can be a program name with args.
3848set dummy ln; ac_word=$2
3849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3851if test "${ac_cv_path_LN+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853else
3854 case $LN in
3855 [\\/]* | ?:[\\/]*)
3856 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3857 ;;
3858 *)
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871done
3872IFS=$as_save_IFS
3873
3874 ;;
3875esac
3876fi
3877LN=$ac_cv_path_LN
3878if test -n "$LN"; then
3879 { echo "$as_me:$LINENO: result: $LN" >&5
3880echo "${ECHO_T}$LN" >&6; }
3881else
3882 { echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6; }
3884fi
3885
3886
3887# Extract the first word of "sed", so it can be a program name with args.
3888set dummy sed; ac_word=$2
3889{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3891if test "${ac_cv_path_SED+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3893else
3894 case $SED in
3895 [\\/]* | ?:[\\/]*)
3896 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3897 ;;
3898 *)
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
3905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3906 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910done
3911done
3912IFS=$as_save_IFS
3913
3914 ;;
3915esac
3916fi
3917SED=$ac_cv_path_SED
3918if test -n "$SED"; then
3919 { echo "$as_me:$LINENO: result: $SED" >&5
3920echo "${ECHO_T}$SED" >&6; }
3921else
3922 { echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6; }
3924fi
3925
3926
3927# Extract the first word of "ar", so it can be a program name with args.
3928set dummy ar; ac_word=$2
3929{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3930echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3931if test "${ac_cv_path_AR+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 case $AR in
3935 [\\/]* | ?:[\\/]*)
3936 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3937 ;;
3938 *)
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940for as_dir in $PATH
3941do
3942 IFS=$as_save_IFS
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 break 2
3949 fi
3950done
3951done
3952IFS=$as_save_IFS
3953
3954 ;;
3955esac
3956fi
3957AR=$ac_cv_path_AR
3958if test -n "$AR"; then
3959 { echo "$as_me:$LINENO: result: $AR" >&5
3960echo "${ECHO_T}$AR" >&6; }
3961else
3962 { echo "$as_me:$LINENO: result: no" >&5
3963echo "${ECHO_T}no" >&6; }
3964fi
3965
3966
3967# Extract the first word of "ld", so it can be a program name with args.
3968set dummy ld; ac_word=$2
3969{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3971if test "${ac_cv_path_LD+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974 case $LD in
3975 [\\/]* | ?:[\\/]*)
3976 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3977 ;;
3978 *)
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980for as_dir in $PATH
3981do
3982 IFS=$as_save_IFS
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3986 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 break 2
3989 fi
3990done
3991done
3992IFS=$as_save_IFS
3993
3994 ;;
3995esac
3996fi
3997LD=$ac_cv_path_LD
3998if test -n "$LD"; then
3999 { echo "$as_me:$LINENO: result: $LD" >&5
4000echo "${ECHO_T}$LD" >&6; }
4001else
4002 { echo "$as_me:$LINENO: result: no" >&5
4003echo "${ECHO_T}no" >&6; }
4004fi
4005
4006
4007# Extract the first word of "ranlib", so it can be a program name with args.
4008set dummy ranlib; ac_word=$2
4009{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4011if test "${ac_cv_path_RANLIB+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014 case $RANLIB in
4015 [\\/]* | ?:[\\/]*)
4016 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4017 ;;
4018 *)
4019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020for as_dir in $PATH
4021do
4022 IFS=$as_save_IFS
4023 test -z "$as_dir" && as_dir=.
4024 for ac_exec_ext in '' $ac_executable_extensions; do
4025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4026 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 break 2
4029 fi
4030done
4031done
4032IFS=$as_save_IFS
4033
4034 ;;
4035esac
4036fi
4037RANLIB=$ac_cv_path_RANLIB
4038if test -n "$RANLIB"; then
4039 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4040echo "${ECHO_T}$RANLIB" >&6; }
4041else
4042 { echo "$as_me:$LINENO: result: no" >&5
4043echo "${ECHO_T}no" >&6; }
4044fi
4045
4046
4047# Extract the first word of "touch", so it can be a program name with args.
4048set dummy touch; ac_word=$2
4049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051if test "${ac_cv_path_TOUCH+set}" = set; then
4052 echo $ECHO_N "(cached) $ECHO_C" >&6
4053else
4054 case $TOUCH in
4055 [\\/]* | ?:[\\/]*)
4056 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4057 ;;
4058 *)
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060for as_dir in $PATH
4061do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068 break 2
4069 fi
4070done
4071done
4072IFS=$as_save_IFS
4073
4074 ;;
4075esac
4076fi
4077TOUCH=$ac_cv_path_TOUCH
4078if test -n "$TOUCH"; then
4079 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4080echo "${ECHO_T}$TOUCH" >&6; }
4081else
4082 { echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6; }
4084fi
4085
4086
4087
4088for ac_prog in 'bison -y' byacc
4089do
4090 # Extract the first word of "$ac_prog", so it can be a program name with args.
4091set dummy $ac_prog; ac_word=$2
4092{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4094if test "${ac_cv_prog_YACC+set}" = set; then
4095 echo $ECHO_N "(cached) $ECHO_C" >&6
4096else
4097 if test -n "$YACC"; then
4098 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4099else
4100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101for as_dir in $PATH
4102do
4103 IFS=$as_save_IFS
4104 test -z "$as_dir" && as_dir=.
4105 for ac_exec_ext in '' $ac_executable_extensions; do
4106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4107 ac_cv_prog_YACC="$ac_prog"
4108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109 break 2
4110 fi
4111done
4112done
4113IFS=$as_save_IFS
4114
4115fi
4116fi
4117YACC=$ac_cv_prog_YACC
4118if test -n "$YACC"; then
4119 { echo "$as_me:$LINENO: result: $YACC" >&5
4120echo "${ECHO_T}$YACC" >&6; }
4121else
4122 { echo "$as_me:$LINENO: result: no" >&5
4123echo "${ECHO_T}no" >&6; }
4124fi
4125
4126
4127 test -n "$YACC" && break
4128done
4129test -n "$YACC" || YACC="yacc"
4130
4131
4132if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4133 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4134echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4135 { (exit 1); exit 1; }; }
4136fi
4137
4138for ac_prog in flex lex
4139do
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141set dummy $ac_prog; ac_word=$2
4142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4144if test "${ac_cv_prog_LEX+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147 if test -n "$LEX"; then
4148 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_LEX="$ac_prog"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159 break 2
4160 fi
4161done
4162done
4163IFS=$as_save_IFS
4164
4165fi
4166fi
4167LEX=$ac_cv_prog_LEX
4168if test -n "$LEX"; then
4169 { echo "$as_me:$LINENO: result: $LEX" >&5
4170echo "${ECHO_T}$LEX" >&6; }
4171else
4172 { echo "$as_me:$LINENO: result: no" >&5
4173echo "${ECHO_T}no" >&6; }
4174fi
4175
4176
4177 test -n "$LEX" && break
4178done
4179test -n "$LEX" || LEX=":"
4180
4181if test "x$LEX" != "x:"; then
4182 cat >conftest.l <<_ACEOF
4183%%
4184a { ECHO; }
4185b { REJECT; }
4186c { yymore (); }
4187d { yyless (1); }
4188e { yyless (input () != 0); }
4189f { unput (yytext[0]); }
4190. { BEGIN INITIAL; }
4191%%
4192#ifdef YYTEXT_POINTER
4193extern char *yytext;
4194#endif
4195int
4196main (void)
4197{
4198 return ! yylex () + ! yywrap ();
4199}
4200_ACEOF
4201{ (ac_try="$LEX conftest.l"
4202case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$LEX conftest.l") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }
4211{ echo "$as_me:$LINENO: checking lex output file root" >&5
4212echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4213if test "${ac_cv_prog_lex_root+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216
4217if test -f lex.yy.c; then
4218 ac_cv_prog_lex_root=lex.yy
4219elif test -f lexyy.c; then
4220 ac_cv_prog_lex_root=lexyy
4221else
4222 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4223echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4224 { (exit 1); exit 1; }; }
4225fi
4226fi
4227{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4228echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4229LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4230
4231if test -z "${LEXLIB+set}"; then
4232 { echo "$as_me:$LINENO: checking lex library" >&5
4233echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4234if test "${ac_cv_lib_lex+set}" = set; then
4235 echo $ECHO_N "(cached) $ECHO_C" >&6
4236else
4237
4238 ac_save_LIBS=$LIBS
4239 ac_cv_lib_lex='none needed'
4240 for ac_lib in '' -lfl -ll; do
4241 LIBS="$ac_lib $ac_save_LIBS"
4242 cat >conftest.$ac_ext <<_ACEOF
4243`cat $LEX_OUTPUT_ROOT.c`
4244_ACEOF
4245rm -f conftest.$ac_objext conftest$ac_exeext
4246if { (ac_try="$ac_link"
4247case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_link") 2>conftest.er1
4253 ac_status=$?
4254 grep -v '^ *+' conftest.er1 >conftest.err
4255 rm -f conftest.er1
4256 cat conftest.err >&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); } && {
4259 test -z "$ac_c_werror_flag" ||
4260 test ! -s conftest.err
4261 } && test -s conftest$ac_exeext &&
4262 $as_test_x conftest$ac_exeext; then
4263 ac_cv_lib_lex=$ac_lib
4264else
4265 echo "$as_me: failed program was:" >&5
4266sed 's/^/| /' conftest.$ac_ext >&5
4267
4268
4269fi
4270
4271rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4272 conftest$ac_exeext conftest.$ac_ext
4273 test "$ac_cv_lib_lex" != 'none needed' && break
4274 done
4275 LIBS=$ac_save_LIBS
4276
4277fi
4278{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4279echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4280 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4281fi
4282
4283
4284{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4285echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
4286if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 # POSIX says lex can declare yytext either as a pointer or an array; the
4290# default is implementation-dependent. Figure out which it is, since
4291# not all implementations provide the %pointer and %array declarations.
4292ac_cv_prog_lex_yytext_pointer=no
4293ac_save_LIBS=$LIBS
4294LIBS="$LEXLIB $ac_save_LIBS"
4295cat >conftest.$ac_ext <<_ACEOF
4296#define YYTEXT_POINTER 1
4297`cat $LEX_OUTPUT_ROOT.c`
4298_ACEOF
4299rm -f conftest.$ac_objext conftest$ac_exeext
4300if { (ac_try="$ac_link"
4301case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && {
4313 test -z "$ac_c_werror_flag" ||
4314 test ! -s conftest.err
4315 } && test -s conftest$ac_exeext &&
4316 $as_test_x conftest$ac_exeext; then
4317 ac_cv_prog_lex_yytext_pointer=yes
4318else
4319 echo "$as_me: failed program was:" >&5
4320sed 's/^/| /' conftest.$ac_ext >&5
4321
4322
4323fi
4324
4325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4326 conftest$ac_exeext conftest.$ac_ext
4327LIBS=$ac_save_LIBS
4328
4329fi
4330{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4331echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
4332if test $ac_cv_prog_lex_yytext_pointer = yes; then
4333
4334cat >>confdefs.h <<\_ACEOF
4335#define YYTEXT_POINTER 1
4336_ACEOF
4337
4338fi
4339rm -f conftest.l $LEX_OUTPUT_ROOT.c
4340
4341fi
4342
4343if test "$LEX" = ":"; then
4344 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4345echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4346 { (exit 1); exit 1; }; }
4347fi
4348
4349if test "$libexecdir" = '${exec_prefix}/libexec' &&
4350 test "$localstatedir" = '${prefix}/var'; then
4351 libexecdir='${bindir}'
4352 localstatedir='${prefix}'
4353fi
4354
4355{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4356echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4357if test "${ac_cv_header_stdc+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359else
4360 cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h. */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h. */
4366#include <stdlib.h>
4367#include <stdarg.h>
4368#include <string.h>
4369#include <float.h>
4370
4371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
4378_ACEOF
4379rm -f conftest.$ac_objext
4380if { (ac_try="$ac_compile"
4381case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4386 (eval "$ac_compile") 2>conftest.er1
4387 ac_status=$?
4388 grep -v '^ *+' conftest.er1 >conftest.err
4389 rm -f conftest.er1
4390 cat conftest.err >&5
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); } && {
4393 test -z "$ac_c_werror_flag" ||
4394 test ! -s conftest.err
4395 } && test -s conftest.$ac_objext; then
4396 ac_cv_header_stdc=yes
4397else
4398 echo "$as_me: failed program was:" >&5
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 ac_cv_header_stdc=no
4402fi
4403
4404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4405
4406if test $ac_cv_header_stdc = yes; then
4407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4408 cat >conftest.$ac_ext <<_ACEOF
4409/* confdefs.h. */
4410_ACEOF
4411cat confdefs.h >>conftest.$ac_ext
4412cat >>conftest.$ac_ext <<_ACEOF
4413/* end confdefs.h. */
4414#include <string.h>
4415
4416_ACEOF
4417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4418 $EGREP "memchr" >/dev/null 2>&1; then
4419 :
4420else
4421 ac_cv_header_stdc=no
4422fi
4423rm -f conftest*
4424
4425fi
4426
4427if test $ac_cv_header_stdc = yes; then
4428 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4429 cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
4435#include <stdlib.h>
4436
4437_ACEOF
4438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 $EGREP "free" >/dev/null 2>&1; then
4440 :
4441else
4442 ac_cv_header_stdc=no
4443fi
4444rm -f conftest*
4445
4446fi
4447
4448if test $ac_cv_header_stdc = yes; then
4449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4450 if test "$cross_compiling" = yes; then
4451 :
4452else
4453 cat >conftest.$ac_ext <<_ACEOF
4454/* confdefs.h. */
4455_ACEOF
4456cat confdefs.h >>conftest.$ac_ext
4457cat >>conftest.$ac_ext <<_ACEOF
4458/* end confdefs.h. */
4459#include <ctype.h>
4460#include <stdlib.h>
4461#if ((' ' & 0x0FF) == 0x020)
4462# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4463# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4464#else
4465# define ISLOWER(c) \
4466 (('a' <= (c) && (c) <= 'i') \
4467 || ('j' <= (c) && (c) <= 'r') \
4468 || ('s' <= (c) && (c) <= 'z'))
4469# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4470#endif
4471
4472#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4473int
4474main ()
4475{
4476 int i;
4477 for (i = 0; i < 256; i++)
4478 if (XOR (islower (i), ISLOWER (i))
4479 || toupper (i) != TOUPPER (i))
4480 return 2;
4481 return 0;
4482}
4483_ACEOF
4484rm -f conftest$ac_exeext
4485if { (ac_try="$ac_link"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4491 (eval "$ac_link") 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4495 { (case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498esac
4499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_try") 2>&5
4501 ac_status=$?
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; }; then
4504 :
4505else
4506 echo "$as_me: program exited with status $ac_status" >&5
4507echo "$as_me: failed program was:" >&5
4508sed 's/^/| /' conftest.$ac_ext >&5
4509
4510( exit $ac_status )
4511ac_cv_header_stdc=no
4512fi
4513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4514fi
4515
4516
4517fi
4518fi
4519{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4520echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4521if test $ac_cv_header_stdc = yes; then
4522
4523cat >>confdefs.h <<\_ACEOF
4524#define STDC_HEADERS 1
4525_ACEOF
4526
4527fi
4528
4529
4530# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4541 inttypes.h stdint.h unistd.h
4542do
4543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4544{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548else
4549 cat >conftest.$ac_ext <<_ACEOF
4550/* confdefs.h. */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h. */
4555$ac_includes_default
4556
4557#include <$ac_header>
4558_ACEOF
4559rm -f conftest.$ac_objext
4560if { (ac_try="$ac_compile"
4561case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564esac
4565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4567 ac_status=$?
4568 grep -v '^ *+' conftest.er1 >conftest.err
4569 rm -f conftest.er1
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 eval "$as_ac_Header=yes"
4577else
4578 echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581 eval "$as_ac_Header=no"
4582fi
4583
4584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4585fi
4586ac_res=`eval echo '${'$as_ac_Header'}'`
4587 { echo "$as_me:$LINENO: result: $ac_res" >&5
4588echo "${ECHO_T}$ac_res" >&6; }
4589if test `eval echo '${'$as_ac_Header'}'` = yes; then
4590 cat >>confdefs.h <<_ACEOF
4591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592_ACEOF
4593
4594fi
4595
4596done
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610for 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
4611do
4612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618fi
4619ac_res=`eval echo '${'$as_ac_Header'}'`
4620 { echo "$as_me:$LINENO: result: $ac_res" >&5
4621echo "${ECHO_T}$ac_res" >&6; }
4622else
4623 # Is the header compilable?
4624{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4626cat >conftest.$ac_ext <<_ACEOF
4627/* confdefs.h. */
4628_ACEOF
4629cat confdefs.h >>conftest.$ac_ext
4630cat >>conftest.$ac_ext <<_ACEOF
4631/* end confdefs.h. */
4632$ac_includes_default
4633#include <$ac_header>
4634_ACEOF
4635rm -f conftest.$ac_objext
4636if { (ac_try="$ac_compile"
4637case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640esac
4641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 ac_header_compiler=yes
4653else
4654 echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
4657 ac_header_compiler=no
4658fi
4659
4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4662echo "${ECHO_T}$ac_header_compiler" >&6; }
4663
4664# Is the header present?
4665{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4667cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h. */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h. */
4673#include <$ac_header>
4674_ACEOF
4675if { (ac_try="$ac_cpp conftest.$ac_ext"
4676case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679esac
4680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } >/dev/null && {
4688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4689 test ! -s conftest.err
4690 }; then
4691 ac_header_preproc=yes
4692else
4693 echo "$as_me: failed program was:" >&5
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696 ac_header_preproc=no
4697fi
4698
4699rm -f conftest.err conftest.$ac_ext
4700{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4701echo "${ECHO_T}$ac_header_preproc" >&6; }
4702
4703# So? What about this header?
4704case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4705 yes:no: )
4706 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4707echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4709echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4710 ac_header_preproc=yes
4711 ;;
4712 no:yes:* )
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4714echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4716echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4718echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4720echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4722echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4724echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4725
4726 ;;
4727esac
4728{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 eval "$as_ac_Header=\$ac_header_preproc"
4734fi
4735ac_res=`eval echo '${'$as_ac_Header'}'`
4736 { echo "$as_me:$LINENO: result: $ac_res" >&5
4737echo "${ECHO_T}$ac_res" >&6; }
4738
4739fi
4740if test `eval echo '${'$as_ac_Header'}'` = yes; then
4741 cat >>confdefs.h <<_ACEOF
4742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4743_ACEOF
4744
4745fi
4746
4747done
4748
4749
4750
4751{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4752echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4753if test "${ac_cv_c_const+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755else
4756 cat >conftest.$ac_ext <<_ACEOF
4757/* confdefs.h. */
4758_ACEOF
4759cat confdefs.h >>conftest.$ac_ext
4760cat >>conftest.$ac_ext <<_ACEOF
4761/* end confdefs.h. */
4762
4763int
4764main ()
4765{
4766/* FIXME: Include the comments suggested by Paul. */
4767#ifndef __cplusplus
4768 /* Ultrix mips cc rejects this. */
4769 typedef int charset[2];
4770 const charset cs;
4771 /* SunOS 4.1.1 cc rejects this. */
4772 char const *const *pcpcc;
4773 char **ppc;
4774 /* NEC SVR4.0.2 mips cc rejects this. */
4775 struct point {int x, y;};
4776 static struct point const zero = {0,0};
4777 /* AIX XL C 1.02.0.0 rejects this.
4778 It does not let you subtract one const X* pointer from another in
4779 an arm of an if-expression whose if-part is not a constant
4780 expression */
4781 const char *g = "string";
4782 pcpcc = &g + (g ? g-g : 0);
4783 /* HPUX 7.0 cc rejects these. */
4784 ++pcpcc;
4785 ppc = (char**) pcpcc;
4786 pcpcc = (char const *const *) ppc;
4787 { /* SCO 3.2v4 cc rejects this. */
4788 char *t;
4789 char const *s = 0 ? (char *) 0 : (char const *) 0;
4790
4791 *t++ = 0;
4792 if (s) return 0;
4793 }
4794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4795 int x[] = {25, 17};
4796 const int *foo = &x[0];
4797 ++foo;
4798 }
4799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4800 typedef const int *iptr;
4801 iptr p = 0;
4802 ++p;
4803 }
4804 { /* AIX XL C 1.02.0.0 rejects this saying
4805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4806 struct s { int j; const int *ap[3]; };
4807 struct s *b; b->j = 5;
4808 }
4809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4810 const int foo = 10;
4811 if (!foo) return 0;
4812 }
4813 return !cs[0] && !zero.x;
4814#endif
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
4820rm -f conftest.$ac_objext
4821if { (ac_try="$ac_compile"
4822case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4825esac
4826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_compile") 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } && {
4834 test -z "$ac_c_werror_flag" ||
4835 test ! -s conftest.err
4836 } && test -s conftest.$ac_objext; then
4837 ac_cv_c_const=yes
4838else
4839 echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ac_cv_c_const=no
4843fi
4844
4845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4846fi
4847{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4848echo "${ECHO_T}$ac_cv_c_const" >&6; }
4849if test $ac_cv_c_const = no; then
4850
4851cat >>confdefs.h <<\_ACEOF
4852#define const
4853_ACEOF
4854
4855fi
4856
4857if test "$ac_cv_header_machine_endian_h" = "no" ; then
4858 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4859echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4860if test "${ac_cv_c_bigendian+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 # See if sys/param.h defines the BYTE_ORDER macro.
4864cat >conftest.$ac_ext <<_ACEOF
4865/* confdefs.h. */
4866_ACEOF
4867cat confdefs.h >>conftest.$ac_ext
4868cat >>conftest.$ac_ext <<_ACEOF
4869/* end confdefs.h. */
4870#include <sys/types.h>
4871#include <sys/param.h>
4872
4873int
4874main ()
4875{
4876#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4877 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
4878 bogus endian macros
4879#endif
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885rm -f conftest.$ac_objext
4886if { (ac_try="$ac_compile"
4887case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
4891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4893 ac_status=$?
4894 grep -v '^ *+' conftest.er1 >conftest.err
4895 rm -f conftest.er1
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4902 # It does; now see whether it defined to BIG_ENDIAN or not.
4903cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h. */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h. */
4909#include <sys/types.h>
4910#include <sys/param.h>
4911
4912int
4913main ()
4914{
4915#if BYTE_ORDER != BIG_ENDIAN
4916 not big endian
4917#endif
4918
4919 ;
4920 return 0;
4921}
4922_ACEOF
4923rm -f conftest.$ac_objext
4924if { (ac_try="$ac_compile"
4925case "(($ac_try" in
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4928esac
4929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4931 ac_status=$?
4932 grep -v '^ *+' conftest.er1 >conftest.err
4933 rm -f conftest.er1
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4940 ac_cv_c_bigendian=yes
4941else
4942 echo "$as_me: failed program was:" >&5
4943sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 ac_cv_c_bigendian=no
4946fi
4947
4948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949else
4950 echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 # It does not; compile a test program.
4954if test "$cross_compiling" = yes; then
4955 # try to guess the endianness by grepping values into an object file
4956 ac_cv_c_bigendian=unknown
4957 cat >conftest.$ac_ext <<_ACEOF
4958/* confdefs.h. */
4959_ACEOF
4960cat confdefs.h >>conftest.$ac_ext
4961cat >>conftest.$ac_ext <<_ACEOF
4962/* end confdefs.h. */
4963short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4964short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4965void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4966short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4967short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4968void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4969int
4970main ()
4971{
4972 _ascii (); _ebcdic ();
4973 ;
4974 return 0;
4975}
4976_ACEOF
4977rm -f conftest.$ac_objext
4978if { (ac_try="$ac_compile"
4979case "(($ac_try" in
4980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4981 *) ac_try_echo=$ac_try;;
4982esac
4983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4984 (eval "$ac_compile") 2>conftest.er1
4985 ac_status=$?
4986 grep -v '^ *+' conftest.er1 >conftest.err
4987 rm -f conftest.er1
4988 cat conftest.err >&5
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); } && {
4991 test -z "$ac_c_werror_flag" ||
4992 test ! -s conftest.err
4993 } && test -s conftest.$ac_objext; then
4994 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4995 ac_cv_c_bigendian=yes
4996fi
4997if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4998 if test "$ac_cv_c_bigendian" = unknown; then
4999 ac_cv_c_bigendian=no
5000 else
5001 # finding both strings is unlikely to happen, but who knows?
5002 ac_cv_c_bigendian=unknown
5003 fi
5004fi
5005else
5006 echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009
5010fi
5011
5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5013else
5014 cat >conftest.$ac_ext <<_ACEOF
5015/* confdefs.h. */
5016_ACEOF
5017cat confdefs.h >>conftest.$ac_ext
5018cat >>conftest.$ac_ext <<_ACEOF
5019/* end confdefs.h. */
5020$ac_includes_default
5021int
5022main ()
5023{
5024
5025 /* Are we little or big endian? From Harbison&Steele. */
5026 union
5027 {
5028 long int l;
5029 char c[sizeof (long int)];
5030 } u;
5031 u.l = 1;
5032 return u.c[sizeof (long int) - 1] == 1;
5033
5034 ;
5035 return 0;
5036}
5037_ACEOF
5038rm -f conftest$ac_exeext
5039if { (ac_try="$ac_link"
5040case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043esac
5044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5045 (eval "$ac_link") 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5049 { (case "(($ac_try" in
5050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051 *) ac_try_echo=$ac_try;;
5052esac
5053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054 (eval "$ac_try") 2>&5
5055 ac_status=$?
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); }; }; then
5058 ac_cv_c_bigendian=no
5059else
5060 echo "$as_me: program exited with status $ac_status" >&5
5061echo "$as_me: failed program was:" >&5
5062sed 's/^/| /' conftest.$ac_ext >&5
5063
5064( exit $ac_status )
5065ac_cv_c_bigendian=yes
5066fi
5067rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5068fi
5069
5070
5071fi
5072
5073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074fi
5075{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5076echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
5077case $ac_cv_c_bigendian in
5078 yes)
5079
5080cat >>confdefs.h <<\_ACEOF
5081#define WORDS_BIGENDIAN 1
5082_ACEOF
5083 ;;
5084 no)
5085 ;;
5086 *)
5087 { { echo "$as_me:$LINENO: error: unknown endianness
5088presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5089echo "$as_me: error: unknown endianness
5090presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5091 { (exit 1); exit 1; }; } ;;
5092esac
5093
5094fi
5095{ echo "$as_me:$LINENO: checking for pid_t" >&5
5096echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5097if test "${ac_cv_type_pid_t+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 cat >conftest.$ac_ext <<_ACEOF
5101/* confdefs.h. */
5102_ACEOF
5103cat confdefs.h >>conftest.$ac_ext
5104cat >>conftest.$ac_ext <<_ACEOF
5105/* end confdefs.h. */
5106$ac_includes_default
5107typedef pid_t ac__type_new_;
5108int
5109main ()
5110{
5111if ((ac__type_new_ *) 0)
5112 return 0;
5113if (sizeof (ac__type_new_))
5114 return 0;
5115 ;
5116 return 0;
5117}
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (ac_try="$ac_compile"
5121case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_compile") 2>conftest.er1
5127 ac_status=$?
5128 grep -v '^ *+' conftest.er1 >conftest.err
5129 rm -f conftest.er1
5130 cat conftest.err >&5
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && {
5133 test -z "$ac_c_werror_flag" ||
5134 test ! -s conftest.err
5135 } && test -s conftest.$ac_objext; then
5136 ac_cv_type_pid_t=yes
5137else
5138 echo "$as_me: failed program was:" >&5
5139sed 's/^/| /' conftest.$ac_ext >&5
5140
5141 ac_cv_type_pid_t=no
5142fi
5143
5144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5147echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5148if test $ac_cv_type_pid_t = yes; then
5149 :
5150else
5151
5152cat >>confdefs.h <<_ACEOF
5153#define pid_t int
5154_ACEOF
5155
5156fi
5157
5158{ echo "$as_me:$LINENO: checking for size_t" >&5
5159echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5160if test "${ac_cv_type_size_t+set}" = set; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162else
5163 cat >conftest.$ac_ext <<_ACEOF
5164/* confdefs.h. */
5165_ACEOF
5166cat confdefs.h >>conftest.$ac_ext
5167cat >>conftest.$ac_ext <<_ACEOF
5168/* end confdefs.h. */
5169$ac_includes_default
5170typedef size_t ac__type_new_;
5171int
5172main ()
5173{
5174if ((ac__type_new_ *) 0)
5175 return 0;
5176if (sizeof (ac__type_new_))
5177 return 0;
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (ac_try="$ac_compile"
5184case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187esac
5188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189 (eval "$ac_compile") 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && {
5196 test -z "$ac_c_werror_flag" ||
5197 test ! -s conftest.err
5198 } && test -s conftest.$ac_objext; then
5199 ac_cv_type_size_t=yes
5200else
5201 echo "$as_me: failed program was:" >&5
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ac_cv_type_size_t=no
5205fi
5206
5207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5208fi
5209{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5210echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5211if test $ac_cv_type_size_t = yes; then
5212 :
5213else
5214
5215cat >>confdefs.h <<_ACEOF
5216#define size_t unsigned int
5217_ACEOF
5218
5219fi
5220
5221{ echo "$as_me:$LINENO: checking for short" >&5
5222echo $ECHO_N "checking for short... $ECHO_C" >&6; }
5223if test "${ac_cv_type_short+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
5232$ac_includes_default
5233typedef short ac__type_new_;
5234int
5235main ()
5236{
5237if ((ac__type_new_ *) 0)
5238 return 0;
5239if (sizeof (ac__type_new_))
5240 return 0;
5241 ;
5242 return 0;
5243}
5244_ACEOF
5245rm -f conftest.$ac_objext
5246if { (ac_try="$ac_compile"
5247case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250esac
5251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_compile") 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest.$ac_objext; then
5262 ac_cv_type_short=yes
5263else
5264 echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 ac_cv_type_short=no
5268fi
5269
5270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271fi
5272{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5273echo "${ECHO_T}$ac_cv_type_short" >&6; }
5274
5275# The cast to long int works around a bug in the HP C Compiler
5276# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5277# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5278# This bug is HP SR number 8606223364.
5279{ echo "$as_me:$LINENO: checking size of short" >&5
5280echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
5281if test "${ac_cv_sizeof_short+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284 if test "$cross_compiling" = yes; then
5285 # Depending upon the size, compute the lo and hi bounds.
5286cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
5292$ac_includes_default
5293 typedef short ac__type_sizeof_;
5294int
5295main ()
5296{
5297static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5298test_array [0] = 0
5299
5300 ;
5301 return 0;
5302}
5303_ACEOF
5304rm -f conftest.$ac_objext
5305if { (ac_try="$ac_compile"
5306case "(($ac_try" in
5307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308 *) ac_try_echo=$ac_try;;
5309esac
5310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311 (eval "$ac_compile") 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } && {
5318 test -z "$ac_c_werror_flag" ||
5319 test ! -s conftest.err
5320 } && test -s conftest.$ac_objext; then
5321 ac_lo=0 ac_mid=0
5322 while :; do
5323 cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h. */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h. */
5329$ac_includes_default
5330 typedef short ac__type_sizeof_;
5331int
5332main ()
5333{
5334static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5335test_array [0] = 0
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341rm -f conftest.$ac_objext
5342if { (ac_try="$ac_compile"
5343case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346esac
5347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5349 ac_status=$?
5350 grep -v '^ *+' conftest.er1 >conftest.err
5351 rm -f conftest.er1
5352 cat conftest.err >&5
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && {
5355 test -z "$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5357 } && test -s conftest.$ac_objext; then
5358 ac_hi=$ac_mid; break
5359else
5360 echo "$as_me: failed program was:" >&5
5361sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 ac_lo=`expr $ac_mid + 1`
5364 if test $ac_lo -le $ac_mid; then
5365 ac_lo= ac_hi=
5366 break
5367 fi
5368 ac_mid=`expr 2 '*' $ac_mid + 1`
5369fi
5370
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 done
5373else
5374 echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 cat >conftest.$ac_ext <<_ACEOF
5378/* confdefs.h. */
5379_ACEOF
5380cat confdefs.h >>conftest.$ac_ext
5381cat >>conftest.$ac_ext <<_ACEOF
5382/* end confdefs.h. */
5383$ac_includes_default
5384 typedef short ac__type_sizeof_;
5385int
5386main ()
5387{
5388static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5389test_array [0] = 0
5390
5391 ;
5392 return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext
5396if { (ac_try="$ac_compile"
5397case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5403 ac_status=$?
5404 grep -v '^ *+' conftest.er1 >conftest.err
5405 rm -f conftest.er1
5406 cat conftest.err >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.$ac_objext; then
5412 ac_hi=-1 ac_mid=-1
5413 while :; do
5414 cat >conftest.$ac_ext <<_ACEOF
5415/* confdefs.h. */
5416_ACEOF
5417cat confdefs.h >>conftest.$ac_ext
5418cat >>conftest.$ac_ext <<_ACEOF
5419/* end confdefs.h. */
5420$ac_includes_default
5421 typedef short ac__type_sizeof_;
5422int
5423main ()
5424{
5425static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5426test_array [0] = 0
5427
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432rm -f conftest.$ac_objext
5433if { (ac_try="$ac_compile"
5434case "(($ac_try" in
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5437esac
5438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5449 ac_lo=$ac_mid; break
5450else
5451 echo "$as_me: failed program was:" >&5
5452sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 ac_hi=`expr '(' $ac_mid ')' - 1`
5455 if test $ac_mid -le $ac_hi; then
5456 ac_lo= ac_hi=
5457 break
5458 fi
5459 ac_mid=`expr 2 '*' $ac_mid`
5460fi
5461
5462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 done
5464else
5465 echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468 ac_lo= ac_hi=
5469fi
5470
5471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
5473
5474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475# Binary search between lo and hi bounds.
5476while test "x$ac_lo" != "x$ac_hi"; do
5477 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5478 cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484$ac_includes_default
5485 typedef short ac__type_sizeof_;
5486int
5487main ()
5488{
5489static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5490test_array [0] = 0
5491
5492 ;
5493 return 0;
5494}
5495_ACEOF
5496rm -f conftest.$ac_objext
5497if { (ac_try="$ac_compile"
5498case "(($ac_try" in
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5501esac
5502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5504 ac_status=$?
5505 grep -v '^ *+' conftest.er1 >conftest.err
5506 rm -f conftest.er1
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_hi=$ac_mid
5514else
5515 echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518 ac_lo=`expr '(' $ac_mid ')' + 1`
5519fi
5520
5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522done
5523case $ac_lo in
5524?*) ac_cv_sizeof_short=$ac_lo;;
5525'') if test "$ac_cv_type_short" = yes; then
5526 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5527See \`config.log' for more details." >&5
5528echo "$as_me: error: cannot compute sizeof (short)
5529See \`config.log' for more details." >&2;}
5530 { (exit 77); exit 77; }; }
5531 else
5532 ac_cv_sizeof_short=0
5533 fi ;;
5534esac
5535else
5536 cat >conftest.$ac_ext <<_ACEOF
5537/* confdefs.h. */
5538_ACEOF
5539cat confdefs.h >>conftest.$ac_ext
5540cat >>conftest.$ac_ext <<_ACEOF
5541/* end confdefs.h. */
5542$ac_includes_default
5543 typedef short ac__type_sizeof_;
5544static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5545static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5546#include <stdio.h>
5547#include <stdlib.h>
5548int
5549main ()
5550{
5551
5552 FILE *f = fopen ("conftest.val", "w");
5553 if (! f)
5554 return 1;
5555 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5556 {
5557 long int i = longval ();
5558 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5559 return 1;
5560 fprintf (f, "%ld\n", i);
5561 }
5562 else
5563 {
5564 unsigned long int i = ulongval ();
5565 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5566 return 1;
5567 fprintf (f, "%lu\n", i);
5568 }
5569 return ferror (f) || fclose (f) != 0;
5570
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575rm -f conftest$ac_exeext
5576if { (ac_try="$ac_link"
5577case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_link") 2>&5
5583 ac_status=$?
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5586 { (case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589esac
5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_try") 2>&5
5592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_sizeof_short=`cat conftest.val`
5596else
5597 echo "$as_me: program exited with status $ac_status" >&5
5598echo "$as_me: failed program was:" >&5
5599sed 's/^/| /' conftest.$ac_ext >&5
5600
5601( exit $ac_status )
5602if test "$ac_cv_type_short" = yes; then
5603 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
5604See \`config.log' for more details." >&5
5605echo "$as_me: error: cannot compute sizeof (short)
5606See \`config.log' for more details." >&2;}
5607 { (exit 77); exit 77; }; }
5608 else
5609 ac_cv_sizeof_short=0
5610 fi
5611fi
5612rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5613fi
5614rm -f conftest.val
5615fi
5616{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5617echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5618
5619
5620
5621cat >>confdefs.h <<_ACEOF
5622#define SIZEOF_SHORT $ac_cv_sizeof_short
5623_ACEOF
5624
5625
5626{ echo "$as_me:$LINENO: checking for int" >&5
5627echo $ECHO_N "checking for int... $ECHO_C" >&6; }
5628if test "${ac_cv_type_int+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 cat >conftest.$ac_ext <<_ACEOF
5632/* confdefs.h. */
5633_ACEOF
5634cat confdefs.h >>conftest.$ac_ext
5635cat >>conftest.$ac_ext <<_ACEOF
5636/* end confdefs.h. */
5637$ac_includes_default
5638typedef int ac__type_new_;
5639int
5640main ()
5641{
5642if ((ac__type_new_ *) 0)
5643 return 0;
5644if (sizeof (ac__type_new_))
5645 return 0;
5646 ;
5647 return 0;
5648}
5649_ACEOF
5650rm -f conftest.$ac_objext
5651if { (ac_try="$ac_compile"
5652case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_cv_type_int=yes
5668else
5669 echo "$as_me: failed program was:" >&5
5670sed 's/^/| /' conftest.$ac_ext >&5
5671
5672 ac_cv_type_int=no
5673fi
5674
5675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5678echo "${ECHO_T}$ac_cv_type_int" >&6; }
5679
5680# The cast to long int works around a bug in the HP C Compiler
5681# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683# This bug is HP SR number 8606223364.
5684{ echo "$as_me:$LINENO: checking size of int" >&5
5685echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
5686if test "${ac_cv_sizeof_int+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689 if test "$cross_compiling" = yes; then
5690 # Depending upon the size, compute the lo and hi bounds.
5691cat >conftest.$ac_ext <<_ACEOF
5692/* confdefs.h. */
5693_ACEOF
5694cat confdefs.h >>conftest.$ac_ext
5695cat >>conftest.$ac_ext <<_ACEOF
5696/* end confdefs.h. */
5697$ac_includes_default
5698 typedef int ac__type_sizeof_;
5699int
5700main ()
5701{
5702static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5703test_array [0] = 0
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
5709rm -f conftest.$ac_objext
5710if { (ac_try="$ac_compile"
5711case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_lo=0 ac_mid=0
5727 while :; do
5728 cat >conftest.$ac_ext <<_ACEOF
5729/* confdefs.h. */
5730_ACEOF
5731cat confdefs.h >>conftest.$ac_ext
5732cat >>conftest.$ac_ext <<_ACEOF
5733/* end confdefs.h. */
5734$ac_includes_default
5735 typedef int ac__type_sizeof_;
5736int
5737main ()
5738{
5739static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5740test_array [0] = 0
5741
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746rm -f conftest.$ac_objext
5747if { (ac_try="$ac_compile"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5763 ac_hi=$ac_mid; break
5764else
5765 echo "$as_me: failed program was:" >&5
5766sed 's/^/| /' conftest.$ac_ext >&5
5767
5768 ac_lo=`expr $ac_mid + 1`
5769 if test $ac_lo -le $ac_mid; then
5770 ac_lo= ac_hi=
5771 break
5772 fi
5773 ac_mid=`expr 2 '*' $ac_mid + 1`
5774fi
5775
5776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 done
5778else
5779 echo "$as_me: failed program was:" >&5
5780sed 's/^/| /' conftest.$ac_ext >&5
5781
5782 cat >conftest.$ac_ext <<_ACEOF
5783/* confdefs.h. */
5784_ACEOF
5785cat confdefs.h >>conftest.$ac_ext
5786cat >>conftest.$ac_ext <<_ACEOF
5787/* end confdefs.h. */
5788$ac_includes_default
5789 typedef int ac__type_sizeof_;
5790int
5791main ()
5792{
5793static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5794test_array [0] = 0
5795
5796 ;
5797 return 0;
5798}
5799_ACEOF
5800rm -f conftest.$ac_objext
5801if { (ac_try="$ac_compile"
5802case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805esac
5806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5808 ac_status=$?
5809 grep -v '^ *+' conftest.er1 >conftest.err
5810 rm -f conftest.er1
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_hi=-1 ac_mid=-1
5818 while :; do
5819 cat >conftest.$ac_ext <<_ACEOF
5820/* confdefs.h. */
5821_ACEOF
5822cat confdefs.h >>conftest.$ac_ext
5823cat >>conftest.$ac_ext <<_ACEOF
5824/* end confdefs.h. */
5825$ac_includes_default
5826 typedef int ac__type_sizeof_;
5827int
5828main ()
5829{
5830static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5831test_array [0] = 0
5832
5833 ;
5834 return 0;
5835}
5836_ACEOF
5837rm -f conftest.$ac_objext
5838if { (ac_try="$ac_compile"
5839case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5842esac
5843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_compile") 2>conftest.er1
5845 ac_status=$?
5846 grep -v '^ *+' conftest.er1 >conftest.err
5847 rm -f conftest.er1
5848 cat conftest.err >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && {
5851 test -z "$ac_c_werror_flag" ||
5852 test ! -s conftest.err
5853 } && test -s conftest.$ac_objext; then
5854 ac_lo=$ac_mid; break
5855else
5856 echo "$as_me: failed program was:" >&5
5857sed 's/^/| /' conftest.$ac_ext >&5
5858
5859 ac_hi=`expr '(' $ac_mid ')' - 1`
5860 if test $ac_mid -le $ac_hi; then
5861 ac_lo= ac_hi=
5862 break
5863 fi
5864 ac_mid=`expr 2 '*' $ac_mid`
5865fi
5866
5867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 done
5869else
5870 echo "$as_me: failed program was:" >&5
5871sed 's/^/| /' conftest.$ac_ext >&5
5872
5873 ac_lo= ac_hi=
5874fi
5875
5876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877fi
5878
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880# Binary search between lo and hi bounds.
5881while test "x$ac_lo" != "x$ac_hi"; do
5882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
5889$ac_includes_default
5890 typedef int ac__type_sizeof_;
5891int
5892main ()
5893{
5894static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5895test_array [0] = 0
5896
5897 ;
5898 return 0;
5899}
5900_ACEOF
5901rm -f conftest.$ac_objext
5902if { (ac_try="$ac_compile"
5903case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906esac
5907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5909 ac_status=$?
5910 grep -v '^ *+' conftest.er1 >conftest.err
5911 rm -f conftest.er1
5912 cat conftest.err >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.$ac_objext; then
5918 ac_hi=$ac_mid
5919else
5920 echo "$as_me: failed program was:" >&5
5921sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ac_lo=`expr '(' $ac_mid ')' + 1`
5924fi
5925
5926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5927done
5928case $ac_lo in
5929?*) ac_cv_sizeof_int=$ac_lo;;
5930'') if test "$ac_cv_type_int" = yes; then
5931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
5932See \`config.log' for more details." >&5
5933echo "$as_me: error: cannot compute sizeof (int)
5934See \`config.log' for more details." >&2;}
5935 { (exit 77); exit 77; }; }
5936 else
5937 ac_cv_sizeof_int=0
5938 fi ;;
5939esac
5940else
5941 cat >conftest.$ac_ext <<_ACEOF
5942/* confdefs.h. */
5943_ACEOF
5944cat confdefs.h >>conftest.$ac_ext
5945cat >>conftest.$ac_ext <<_ACEOF
5946/* end confdefs.h. */
5947$ac_includes_default
5948 typedef int ac__type_sizeof_;
5949static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5950static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5951#include <stdio.h>
5952#include <stdlib.h>
5953int
5954main ()
5955{
5956
5957 FILE *f = fopen ("conftest.val", "w");
5958 if (! f)
5959 return 1;
5960 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5961 {
5962 long int i = longval ();
5963 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5964 return 1;
5965 fprintf (f, "%ld\n", i);
5966 }
5967 else
5968 {
5969 unsigned long int i = ulongval ();
5970 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5971 return 1;
5972 fprintf (f, "%lu\n", i);
5973 }
5974 return ferror (f) || fclose (f) != 0;
5975
5976 ;
5977 return 0;
5978}
5979_ACEOF
5980rm -f conftest$ac_exeext
5981if { (ac_try="$ac_link"
5982case "(($ac_try" in
5983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5985esac
5986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_link") 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5991 { (case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994esac
5995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_try") 2>&5
5997 ac_status=$?
5998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); }; }; then
6000 ac_cv_sizeof_int=`cat conftest.val`
6001else
6002 echo "$as_me: program exited with status $ac_status" >&5
6003echo "$as_me: failed program was:" >&5
6004sed 's/^/| /' conftest.$ac_ext >&5
6005
6006( exit $ac_status )
6007if test "$ac_cv_type_int" = yes; then
6008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6009See \`config.log' for more details." >&5
6010echo "$as_me: error: cannot compute sizeof (int)
6011See \`config.log' for more details." >&2;}
6012 { (exit 77); exit 77; }; }
6013 else
6014 ac_cv_sizeof_int=0
6015 fi
6016fi
6017rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6018fi
6019rm -f conftest.val
6020fi
6021{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6022echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6023
6024
6025
6026cat >>confdefs.h <<_ACEOF
6027#define SIZEOF_INT $ac_cv_sizeof_int
6028_ACEOF
6029
6030
6031{ echo "$as_me:$LINENO: checking for long" >&5
6032echo $ECHO_N "checking for long... $ECHO_C" >&6; }
6033if test "${ac_cv_type_long+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035else
6036 cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
6042$ac_includes_default
6043typedef long ac__type_new_;
6044int
6045main ()
6046{
6047if ((ac__type_new_ *) 0)
6048 return 0;
6049if (sizeof (ac__type_new_))
6050 return 0;
6051 ;
6052 return 0;
6053}
6054_ACEOF
6055rm -f conftest.$ac_objext
6056if { (ac_try="$ac_compile"
6057case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060esac
6061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6063 ac_status=$?
6064 grep -v '^ *+' conftest.er1 >conftest.err
6065 rm -f conftest.er1
6066 cat conftest.err >&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest.$ac_objext; then
6072 ac_cv_type_long=yes
6073else
6074 echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077 ac_cv_type_long=no
6078fi
6079
6080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6081fi
6082{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6083echo "${ECHO_T}$ac_cv_type_long" >&6; }
6084
6085# The cast to long int works around a bug in the HP C Compiler
6086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6088# This bug is HP SR number 8606223364.
6089{ echo "$as_me:$LINENO: checking size of long" >&5
6090echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
6091if test "${ac_cv_sizeof_long+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6093else
6094 if test "$cross_compiling" = yes; then
6095 # Depending upon the size, compute the lo and hi bounds.
6096cat >conftest.$ac_ext <<_ACEOF
6097/* confdefs.h. */
6098_ACEOF
6099cat confdefs.h >>conftest.$ac_ext
6100cat >>conftest.$ac_ext <<_ACEOF
6101/* end confdefs.h. */
6102$ac_includes_default
6103 typedef long ac__type_sizeof_;
6104int
6105main ()
6106{
6107static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6108test_array [0] = 0
6109
6110 ;
6111 return 0;
6112}
6113_ACEOF
6114rm -f conftest.$ac_objext
6115if { (ac_try="$ac_compile"
6116case "(($ac_try" in
6117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6119esac
6120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_compile") 2>conftest.er1
6122 ac_status=$?
6123 grep -v '^ *+' conftest.er1 >conftest.err
6124 rm -f conftest.er1
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } && {
6128 test -z "$ac_c_werror_flag" ||
6129 test ! -s conftest.err
6130 } && test -s conftest.$ac_objext; then
6131 ac_lo=0 ac_mid=0
6132 while :; do
6133 cat >conftest.$ac_ext <<_ACEOF
6134/* confdefs.h. */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h. */
6139$ac_includes_default
6140 typedef long ac__type_sizeof_;
6141int
6142main ()
6143{
6144static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6145test_array [0] = 0
6146
6147 ;
6148 return 0;
6149}
6150_ACEOF
6151rm -f conftest.$ac_objext
6152if { (ac_try="$ac_compile"
6153case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156esac
6157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6168 ac_hi=$ac_mid; break
6169else
6170 echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_lo=`expr $ac_mid + 1`
6174 if test $ac_lo -le $ac_mid; then
6175 ac_lo= ac_hi=
6176 break
6177 fi
6178 ac_mid=`expr 2 '*' $ac_mid + 1`
6179fi
6180
6181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 done
6183else
6184 echo "$as_me: failed program was:" >&5
6185sed 's/^/| /' conftest.$ac_ext >&5
6186
6187 cat >conftest.$ac_ext <<_ACEOF
6188/* confdefs.h. */
6189_ACEOF
6190cat confdefs.h >>conftest.$ac_ext
6191cat >>conftest.$ac_ext <<_ACEOF
6192/* end confdefs.h. */
6193$ac_includes_default
6194 typedef long ac__type_sizeof_;
6195int
6196main ()
6197{
6198static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6199test_array [0] = 0
6200
6201 ;
6202 return 0;
6203}
6204_ACEOF
6205rm -f conftest.$ac_objext
6206if { (ac_try="$ac_compile"
6207case "(($ac_try" in
6208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209 *) ac_try_echo=$ac_try;;
6210esac
6211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212 (eval "$ac_compile") 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && {
6219 test -z "$ac_c_werror_flag" ||
6220 test ! -s conftest.err
6221 } && test -s conftest.$ac_objext; then
6222 ac_hi=-1 ac_mid=-1
6223 while :; do
6224 cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h. */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h. */
6230$ac_includes_default
6231 typedef long ac__type_sizeof_;
6232int
6233main ()
6234{
6235static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6236test_array [0] = 0
6237
6238 ;
6239 return 0;
6240}
6241_ACEOF
6242rm -f conftest.$ac_objext
6243if { (ac_try="$ac_compile"
6244case "(($ac_try" in
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6247esac
6248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_compile") 2>conftest.er1
6250 ac_status=$?
6251 grep -v '^ *+' conftest.er1 >conftest.err
6252 rm -f conftest.er1
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } && {
6256 test -z "$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6258 } && test -s conftest.$ac_objext; then
6259 ac_lo=$ac_mid; break
6260else
6261 echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264 ac_hi=`expr '(' $ac_mid ')' - 1`
6265 if test $ac_mid -le $ac_hi; then
6266 ac_lo= ac_hi=
6267 break
6268 fi
6269 ac_mid=`expr 2 '*' $ac_mid`
6270fi
6271
6272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6273 done
6274else
6275 echo "$as_me: failed program was:" >&5
6276sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_lo= ac_hi=
6279fi
6280
6281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282fi
6283
6284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6285# Binary search between lo and hi bounds.
6286while test "x$ac_lo" != "x$ac_hi"; do
6287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6288 cat >conftest.$ac_ext <<_ACEOF
6289/* confdefs.h. */
6290_ACEOF
6291cat confdefs.h >>conftest.$ac_ext
6292cat >>conftest.$ac_ext <<_ACEOF
6293/* end confdefs.h. */
6294$ac_includes_default
6295 typedef long ac__type_sizeof_;
6296int
6297main ()
6298{
6299static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6300test_array [0] = 0
6301
6302 ;
6303 return 0;
6304}
6305_ACEOF
6306rm -f conftest.$ac_objext
6307if { (ac_try="$ac_compile"
6308case "(($ac_try" in
6309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6310 *) ac_try_echo=$ac_try;;
6311esac
6312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6313 (eval "$ac_compile") 2>conftest.er1
6314 ac_status=$?
6315 grep -v '^ *+' conftest.er1 >conftest.err
6316 rm -f conftest.er1
6317 cat conftest.err >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); } && {
6320 test -z "$ac_c_werror_flag" ||
6321 test ! -s conftest.err
6322 } && test -s conftest.$ac_objext; then
6323 ac_hi=$ac_mid
6324else
6325 echo "$as_me: failed program was:" >&5
6326sed 's/^/| /' conftest.$ac_ext >&5
6327
6328 ac_lo=`expr '(' $ac_mid ')' + 1`
6329fi
6330
6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6332done
6333case $ac_lo in
6334?*) ac_cv_sizeof_long=$ac_lo;;
6335'') if test "$ac_cv_type_long" = yes; then
6336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6337See \`config.log' for more details." >&5
6338echo "$as_me: error: cannot compute sizeof (long)
6339See \`config.log' for more details." >&2;}
6340 { (exit 77); exit 77; }; }
6341 else
6342 ac_cv_sizeof_long=0
6343 fi ;;
6344esac
6345else
6346 cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h. */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h. */
6352$ac_includes_default
6353 typedef long ac__type_sizeof_;
6354static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6355static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6356#include <stdio.h>
6357#include <stdlib.h>
6358int
6359main ()
6360{
6361
6362 FILE *f = fopen ("conftest.val", "w");
6363 if (! f)
6364 return 1;
6365 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6366 {
6367 long int i = longval ();
6368 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6369 return 1;
6370 fprintf (f, "%ld\n", i);
6371 }
6372 else
6373 {
6374 unsigned long int i = ulongval ();
6375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6376 return 1;
6377 fprintf (f, "%lu\n", i);
6378 }
6379 return ferror (f) || fclose (f) != 0;
6380
6381 ;
6382 return 0;
6383}
6384_ACEOF
6385rm -f conftest$ac_exeext
6386if { (ac_try="$ac_link"
6387case "(($ac_try" in
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6390esac
6391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6392 (eval "$ac_link") 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399esac
6400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6402 ac_status=$?
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6405 ac_cv_sizeof_long=`cat conftest.val`
6406else
6407 echo "$as_me: program exited with status $ac_status" >&5
6408echo "$as_me: failed program was:" >&5
6409sed 's/^/| /' conftest.$ac_ext >&5
6410
6411( exit $ac_status )
6412if test "$ac_cv_type_long" = yes; then
6413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6414See \`config.log' for more details." >&5
6415echo "$as_me: error: cannot compute sizeof (long)
6416See \`config.log' for more details." >&2;}
6417 { (exit 77); exit 77; }; }
6418 else
6419 ac_cv_sizeof_long=0
6420 fi
6421fi
6422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6423fi
6424rm -f conftest.val
6425fi
6426{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6427echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6428
6429
6430
6431cat >>confdefs.h <<_ACEOF
6432#define SIZEOF_LONG $ac_cv_sizeof_long
6433_ACEOF
6434
6435
6436{ echo "$as_me:$LINENO: checking for long long" >&5
6437echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
6438if test "${ac_cv_type_long_long+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441 cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h. */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h. */
6447$ac_includes_default
6448typedef long long ac__type_new_;
6449int
6450main ()
6451{
6452if ((ac__type_new_ *) 0)
6453 return 0;
6454if (sizeof (ac__type_new_))
6455 return 0;
6456 ;
6457 return 0;
6458}
6459_ACEOF
6460rm -f conftest.$ac_objext
6461if { (ac_try="$ac_compile"
6462case "(($ac_try" in
6463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464 *) ac_try_echo=$ac_try;;
6465esac
6466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6467 (eval "$ac_compile") 2>conftest.er1
6468 ac_status=$?
6469 grep -v '^ *+' conftest.er1 >conftest.err
6470 rm -f conftest.er1
6471 cat conftest.err >&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); } && {
6474 test -z "$ac_c_werror_flag" ||
6475 test ! -s conftest.err
6476 } && test -s conftest.$ac_objext; then
6477 ac_cv_type_long_long=yes
6478else
6479 echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_type_long_long=no
6483fi
6484
6485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6486fi
6487{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6488echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
6489
6490# The cast to long int works around a bug in the HP C Compiler
6491# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6492# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6493# This bug is HP SR number 8606223364.
6494{ echo "$as_me:$LINENO: checking size of long long" >&5
6495echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
6496if test "${ac_cv_sizeof_long_long+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498else
6499 if test "$cross_compiling" = yes; then
6500 # Depending upon the size, compute the lo and hi bounds.
6501cat >conftest.$ac_ext <<_ACEOF
6502/* confdefs.h. */
6503_ACEOF
6504cat confdefs.h >>conftest.$ac_ext
6505cat >>conftest.$ac_ext <<_ACEOF
6506/* end confdefs.h. */
6507$ac_includes_default
6508 typedef long long ac__type_sizeof_;
6509int
6510main ()
6511{
6512static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6513test_array [0] = 0
6514
6515 ;
6516 return 0;
6517}
6518_ACEOF
6519rm -f conftest.$ac_objext
6520if { (ac_try="$ac_compile"
6521case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
6525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 ac_lo=0 ac_mid=0
6537 while :; do
6538 cat >conftest.$ac_ext <<_ACEOF
6539/* confdefs.h. */
6540_ACEOF
6541cat confdefs.h >>conftest.$ac_ext
6542cat >>conftest.$ac_ext <<_ACEOF
6543/* end confdefs.h. */
6544$ac_includes_default
6545 typedef long long ac__type_sizeof_;
6546int
6547main ()
6548{
6549static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6550test_array [0] = 0
6551
6552 ;
6553 return 0;
6554}
6555_ACEOF
6556rm -f conftest.$ac_objext
6557if { (ac_try="$ac_compile"
6558case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561esac
6562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_hi=$ac_mid; break
6574else
6575 echo "$as_me: failed program was:" >&5
6576sed 's/^/| /' conftest.$ac_ext >&5
6577
6578 ac_lo=`expr $ac_mid + 1`
6579 if test $ac_lo -le $ac_mid; then
6580 ac_lo= ac_hi=
6581 break
6582 fi
6583 ac_mid=`expr 2 '*' $ac_mid + 1`
6584fi
6585
6586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 done
6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h. */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h. */
6598$ac_includes_default
6599 typedef long long ac__type_sizeof_;
6600int
6601main ()
6602{
6603static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6604test_array [0] = 0
6605
6606 ;
6607 return 0;
6608}
6609_ACEOF
6610rm -f conftest.$ac_objext
6611if { (ac_try="$ac_compile"
6612case "(($ac_try" in
6613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614 *) ac_try_echo=$ac_try;;
6615esac
6616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617 (eval "$ac_compile") 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } && {
6624 test -z "$ac_c_werror_flag" ||
6625 test ! -s conftest.err
6626 } && test -s conftest.$ac_objext; then
6627 ac_hi=-1 ac_mid=-1
6628 while :; do
6629 cat >conftest.$ac_ext <<_ACEOF
6630/* confdefs.h. */
6631_ACEOF
6632cat confdefs.h >>conftest.$ac_ext
6633cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h. */
6635$ac_includes_default
6636 typedef long long ac__type_sizeof_;
6637int
6638main ()
6639{
6640static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6641test_array [0] = 0
6642
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647rm -f conftest.$ac_objext
6648if { (ac_try="$ac_compile"
6649case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_compile") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_c_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest.$ac_objext; then
6664 ac_lo=$ac_mid; break
6665else
6666 echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669 ac_hi=`expr '(' $ac_mid ')' - 1`
6670 if test $ac_mid -le $ac_hi; then
6671 ac_lo= ac_hi=
6672 break
6673 fi
6674 ac_mid=`expr 2 '*' $ac_mid`
6675fi
6676
6677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 done
6679else
6680 echo "$as_me: failed program was:" >&5
6681sed 's/^/| /' conftest.$ac_ext >&5
6682
6683 ac_lo= ac_hi=
6684fi
6685
6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687fi
6688
6689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690# Binary search between lo and hi bounds.
6691while test "x$ac_lo" != "x$ac_hi"; do
6692 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6693 cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h. */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h. */
6699$ac_includes_default
6700 typedef long long ac__type_sizeof_;
6701int
6702main ()
6703{
6704static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6705test_array [0] = 0
6706
6707 ;
6708 return 0;
6709}
6710_ACEOF
6711rm -f conftest.$ac_objext
6712if { (ac_try="$ac_compile"
6713case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716esac
6717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 ac_hi=$ac_mid
6729else
6730 echo "$as_me: failed program was:" >&5
6731sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_lo=`expr '(' $ac_mid ')' + 1`
6734fi
6735
6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737done
6738case $ac_lo in
6739?*) ac_cv_sizeof_long_long=$ac_lo;;
6740'') if test "$ac_cv_type_long_long" = yes; then
6741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6742See \`config.log' for more details." >&5
6743echo "$as_me: error: cannot compute sizeof (long long)
6744See \`config.log' for more details." >&2;}
6745 { (exit 77); exit 77; }; }
6746 else
6747 ac_cv_sizeof_long_long=0
6748 fi ;;
6749esac
6750else
6751 cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h. */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h. */
6757$ac_includes_default
6758 typedef long long ac__type_sizeof_;
6759static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6760static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6761#include <stdio.h>
6762#include <stdlib.h>
6763int
6764main ()
6765{
6766
6767 FILE *f = fopen ("conftest.val", "w");
6768 if (! f)
6769 return 1;
6770 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6771 {
6772 long int i = longval ();
6773 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6774 return 1;
6775 fprintf (f, "%ld\n", i);
6776 }
6777 else
6778 {
6779 unsigned long int i = ulongval ();
6780 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6781 return 1;
6782 fprintf (f, "%lu\n", i);
6783 }
6784 return ferror (f) || fclose (f) != 0;
6785
6786 ;
6787 return 0;
6788}
6789_ACEOF
6790rm -f conftest$ac_exeext
6791if { (ac_try="$ac_link"
6792case "(($ac_try" in
6793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794 *) ac_try_echo=$ac_try;;
6795esac
6796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797 (eval "$ac_link") 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6801 { (case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804esac
6805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_try") 2>&5
6807 ac_status=$?
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_sizeof_long_long=`cat conftest.val`
6811else
6812 echo "$as_me: program exited with status $ac_status" >&5
6813echo "$as_me: failed program was:" >&5
6814sed 's/^/| /' conftest.$ac_ext >&5
6815
6816( exit $ac_status )
6817if test "$ac_cv_type_long_long" = yes; then
6818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
6819See \`config.log' for more details." >&5
6820echo "$as_me: error: cannot compute sizeof (long long)
6821See \`config.log' for more details." >&2;}
6822 { (exit 77); exit 77; }; }
6823 else
6824 ac_cv_sizeof_long_long=0
6825 fi
6826fi
6827rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6828fi
6829rm -f conftest.val
6830fi
6831{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6832echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6833
6834
6835
6836cat >>confdefs.h <<_ACEOF
6837#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6838_ACEOF
6839
6840
6841
6842
6843{ echo "$as_me:$LINENO: checking for library containing socket" >&5
6844echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6845if test "${ac_cv_search_socket+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 ac_func_search_save_LIBS=$LIBS
6849cat >conftest.$ac_ext <<_ACEOF
6850/* confdefs.h. */
6851_ACEOF
6852cat confdefs.h >>conftest.$ac_ext
6853cat >>conftest.$ac_ext <<_ACEOF
6854/* end confdefs.h. */
6855
6856/* Override any GCC internal prototype to avoid an error.
6857 Use char because int might match the return type of a GCC
6858 builtin and then its argument prototype would still apply. */
6859#ifdef __cplusplus
6860extern "C"
6861#endif
6862char socket ();
6863int
6864main ()
6865{
6866return socket ();
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871for ac_lib in '' socket; do
6872 if test -z "$ac_lib"; then
6873 ac_res="none required"
6874 else
6875 ac_res=-l$ac_lib
6876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6877 fi
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879if { (ac_try="$ac_link"
6880case "(($ac_try" in
6881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6882 *) ac_try_echo=$ac_try;;
6883esac
6884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6885 (eval "$ac_link") 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && {
6892 test -z "$ac_c_werror_flag" ||
6893 test ! -s conftest.err
6894 } && test -s conftest$ac_exeext &&
6895 $as_test_x conftest$ac_exeext; then
6896 ac_cv_search_socket=$ac_res
6897else
6898 echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901
6902fi
6903
6904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6905 conftest$ac_exeext
6906 if test "${ac_cv_search_socket+set}" = set; then
6907 break
6908fi
6909done
6910if test "${ac_cv_search_socket+set}" = set; then
6911 :
6912else
6913 ac_cv_search_socket=no
6914fi
6915rm conftest.$ac_ext
6916LIBS=$ac_func_search_save_LIBS
6917fi
6918{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6919echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6920ac_res=$ac_cv_search_socket
6921if test "$ac_res" != no; then
6922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6923
6924else
6925 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
6926echo "$as_me: error: You have no socket()! Aborting." >&2;}
6927 { (exit 1); exit 1; }; }
6928fi
6929
6930
6931if test x"$SUN" = xyes; then
6932 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
6933echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
6934if test "${ac_cv_search_inet_ntoa+set}" = set; then
6935 echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937 ac_func_search_save_LIBS=$LIBS
6938cat >conftest.$ac_ext <<_ACEOF
6939/* confdefs.h. */
6940_ACEOF
6941cat confdefs.h >>conftest.$ac_ext
6942cat >>conftest.$ac_ext <<_ACEOF
6943/* end confdefs.h. */
6944
6945/* Override any GCC internal prototype to avoid an error.
6946 Use char because int might match the return type of a GCC
6947 builtin and then its argument prototype would still apply. */
6948#ifdef __cplusplus
6949extern "C"
6950#endif
6951char inet_ntoa ();
6952int
6953main ()
6954{
6955return inet_ntoa ();
6956 ;
6957 return 0;
6958}
6959_ACEOF
6960for ac_lib in '' nsl; do
6961 if test -z "$ac_lib"; then
6962 ac_res="none required"
6963 else
6964 ac_res=-l$ac_lib
6965 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6966 fi
6967 rm -f conftest.$ac_objext conftest$ac_exeext
6968if { (ac_try="$ac_link"
6969case "(($ac_try" in
6970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6971 *) ac_try_echo=$ac_try;;
6972esac
6973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6974 (eval "$ac_link") 2>conftest.er1
6975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } && {
6981 test -z "$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest$ac_exeext &&
6984 $as_test_x conftest$ac_exeext; then
6985 ac_cv_search_inet_ntoa=$ac_res
6986else
6987 echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
6990
6991fi
6992
6993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6994 conftest$ac_exeext
6995 if test "${ac_cv_search_inet_ntoa+set}" = set; then
6996 break
6997fi
6998done
6999if test "${ac_cv_search_inet_ntoa+set}" = set; then
7000 :
7001else
7002 ac_cv_search_inet_ntoa=no
7003fi
7004rm conftest.$ac_ext
7005LIBS=$ac_func_search_save_LIBS
7006fi
7007{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7008echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7009ac_res=$ac_cv_search_inet_ntoa
7010if test "$ac_res" != no; then
7011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7012
7013else
7014 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7015echo "$as_me: error: libnsl not found! Aborting." >&2;}
7016 { (exit 1); exit 1; }; }
7017fi
7018
7019fi
7020
7021{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7022echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
7023if test "${ac_cv_type_socklen_t+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026 cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032#include <sys/types.h>
7033#include <sys/socket.h>
7034
7035typedef socklen_t ac__type_new_;
7036int
7037main ()
7038{
7039if ((ac__type_new_ *) 0)
7040 return 0;
7041if (sizeof (ac__type_new_))
7042 return 0;
7043 ;
7044 return 0;
7045}
7046_ACEOF
7047rm -f conftest.$ac_objext
7048if { (ac_try="$ac_compile"
7049case "(($ac_try" in
7050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7051 *) ac_try_echo=$ac_try;;
7052esac
7053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7054 (eval "$ac_compile") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } && {
7061 test -z "$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 } && test -s conftest.$ac_objext; then
7064 ac_cv_type_socklen_t=yes
7065else
7066 echo "$as_me: failed program was:" >&5
7067sed 's/^/| /' conftest.$ac_ext >&5
7068
7069 ac_cv_type_socklen_t=no
7070fi
7071
7072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073fi
7074{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7075echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
7076if test $ac_cv_type_socklen_t = yes; then
7077 :
7078else
7079
7080cat >>confdefs.h <<\_ACEOF
7081#define socklen_t unsigned int
7082_ACEOF
7083
7084fi
7085
7086
7087# Check whether --enable-ipv6 was given.
7088if test "${enable_ipv6+set}" = set; then
7089 enableval=$enable_ipv6; ipv6=$enableval
7090else
7091 ipv6=no
7092fi
7093
7094
7095{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
7096echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7097if test "${ac_cv_search_crypt+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100 ac_func_search_save_LIBS=$LIBS
7101cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h. */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h. */
7107
7108/* Override any GCC internal prototype to avoid an error.
7109 Use char because int might match the return type of a GCC
7110 builtin and then its argument prototype would still apply. */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
7114char crypt ();
7115int
7116main ()
7117{
7118return crypt ();
7119 ;
7120 return 0;
7121}
7122_ACEOF
7123for ac_lib in '' crypt descrypt; do
7124 if test -z "$ac_lib"; then
7125 ac_res="none required"
7126 else
7127 ac_res=-l$ac_lib
7128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7129 fi
7130 rm -f conftest.$ac_objext conftest$ac_exeext
7131if { (ac_try="$ac_link"
7132case "(($ac_try" in
7133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7134 *) ac_try_echo=$ac_try;;
7135esac
7136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7137 (eval "$ac_link") 2>conftest.er1
7138 ac_status=$?
7139 grep -v '^ *+' conftest.er1 >conftest.err
7140 rm -f conftest.er1
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } && {
7144 test -z "$ac_c_werror_flag" ||
7145 test ! -s conftest.err
7146 } && test -s conftest$ac_exeext &&
7147 $as_test_x conftest$ac_exeext; then
7148 ac_cv_search_crypt=$ac_res
7149else
7150 echo "$as_me: failed program was:" >&5
7151sed 's/^/| /' conftest.$ac_ext >&5
7152
7153
7154fi
7155
7156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7157 conftest$ac_exeext
7158 if test "${ac_cv_search_crypt+set}" = set; then
7159 break
7160fi
7161done
7162if test "${ac_cv_search_crypt+set}" = set; then
7163 :
7164else
7165 ac_cv_search_crypt=no
7166fi
7167rm conftest.$ac_ext
7168LIBS=$ac_func_search_save_LIBS
7169fi
7170{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7171echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7172ac_res=$ac_cv_search_crypt
7173if test "$ac_res" != no; then
7174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7175
7176fi
7177
7178
7179CRYPT_LIB=$ac_cv_search_crypt
7180
7181if test "$CRYPT_LIB" = "none required"; then
7182 unset CRYPT_LIB
7183elif test "$CRYPT_LIB" = no; then
7184 unset CRYPT_LIB
7185fi
7186
7187
7188
7189if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7190 VICONF=viconf
7191 else
7192 VICONF=""
7193fi
7194
7195
7196
7197{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7198echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
7199if test "${gcc_cv_header_string+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202
7203 cat >conftest.$ac_ext <<_ACEOF
7204#include <string.h>
7205 #include <strings.h>
7206_ACEOF
7207rm -f conftest.$ac_objext
7208if { (ac_try="$ac_compile"
7209case "(($ac_try" in
7210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7211 *) ac_try_echo=$ac_try;;
7212esac
7213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7215 ac_status=$?
7216 grep -v '^ *+' conftest.er1 >conftest.err
7217 rm -f conftest.er1
7218 cat conftest.err >&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.$ac_objext; then
7224 gcc_cv_header_string=yes
7225else
7226 echo "$as_me: failed program was:" >&5
7227sed 's/^/| /' conftest.$ac_ext >&5
7228
7229 gcc_cv_header_string=no
7230fi
7231
7232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233
7234fi
7235{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7236echo "${ECHO_T}$gcc_cv_header_string" >&6; }
7237
7238if test "$gcc_cv_header_string" = "yes"; then
7239
7240cat >>confdefs.h <<\_ACEOF
7241#define STRING_WITH_STRINGS 1
7242_ACEOF
7243
7244fi
7245
7246{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7247echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
7248if test "${ac_cv_c_bigendian+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251 # See if sys/param.h defines the BYTE_ORDER macro.
7252cat >conftest.$ac_ext <<_ACEOF
7253/* confdefs.h. */
7254_ACEOF
7255cat confdefs.h >>conftest.$ac_ext
7256cat >>conftest.$ac_ext <<_ACEOF
7257/* end confdefs.h. */
7258#include <sys/types.h>
7259#include <sys/param.h>
7260
7261int
7262main ()
7263{
7264#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7265 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
7266 bogus endian macros
7267#endif
7268
7269 ;
7270 return 0;
7271}
7272_ACEOF
7273rm -f conftest.$ac_objext
7274if { (ac_try="$ac_compile"
7275case "(($ac_try" in
7276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7278esac
7279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7281 ac_status=$?
7282 grep -v '^ *+' conftest.er1 >conftest.err
7283 rm -f conftest.er1
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_c_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 # It does; now see whether it defined to BIG_ENDIAN or not.
7291cat >conftest.$ac_ext <<_ACEOF
7292/* confdefs.h. */
7293_ACEOF
7294cat confdefs.h >>conftest.$ac_ext
7295cat >>conftest.$ac_ext <<_ACEOF
7296/* end confdefs.h. */
7297#include <sys/types.h>
7298#include <sys/param.h>
7299
7300int
7301main ()
7302{
7303#if BYTE_ORDER != BIG_ENDIAN
7304 not big endian
7305#endif
7306
7307 ;
7308 return 0;
7309}
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_cv_c_bigendian=yes
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 ac_cv_c_bigendian=no
7334fi
7335
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337else
7338 echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341 # It does not; compile a test program.
7342if test "$cross_compiling" = yes; then
7343 # try to guess the endianness by grepping values into an object file
7344 ac_cv_c_bigendian=unknown
7345 cat >conftest.$ac_ext <<_ACEOF
7346/* confdefs.h. */
7347_ACEOF
7348cat confdefs.h >>conftest.$ac_ext
7349cat >>conftest.$ac_ext <<_ACEOF
7350/* end confdefs.h. */
7351short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7352short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7353void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7354short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7355short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7356void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7357int
7358main ()
7359{
7360 _ascii (); _ebcdic ();
7361 ;
7362 return 0;
7363}
7364_ACEOF
7365rm -f conftest.$ac_objext
7366if { (ac_try="$ac_compile"
7367case "(($ac_try" in
7368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7370esac
7371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7373 ac_status=$?
7374 grep -v '^ *+' conftest.er1 >conftest.err
7375 rm -f conftest.er1
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7383 ac_cv_c_bigendian=yes
7384fi
7385if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7386 if test "$ac_cv_c_bigendian" = unknown; then
7387 ac_cv_c_bigendian=no
7388 else
7389 # finding both strings is unlikely to happen, but who knows?
7390 ac_cv_c_bigendian=unknown
7391 fi
7392fi
7393else
7394 echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397
7398fi
7399
7400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401else
7402 cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408$ac_includes_default
7409int
7410main ()
7411{
7412
7413 /* Are we little or big endian? From Harbison&Steele. */
7414 union
7415 {
7416 long int l;
7417 char c[sizeof (long int)];
7418 } u;
7419 u.l = 1;
7420 return u.c[sizeof (long int) - 1] == 1;
7421
7422 ;
7423 return 0;
7424}
7425_ACEOF
7426rm -f conftest$ac_exeext
7427if { (ac_try="$ac_link"
7428case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431esac
7432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_link") 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7437 { (case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440esac
7441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_try") 2>&5
7443 ac_status=$?
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7446 ac_cv_c_bigendian=no
7447else
7448 echo "$as_me: program exited with status $ac_status" >&5
7449echo "$as_me: failed program was:" >&5
7450sed 's/^/| /' conftest.$ac_ext >&5
7451
7452( exit $ac_status )
7453ac_cv_c_bigendian=yes
7454fi
7455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7456fi
7457
7458
7459fi
7460
7461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462fi
7463{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7464echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
7465case $ac_cv_c_bigendian in
7466 yes)
7467
7468cat >>confdefs.h <<\_ACEOF
7469#define WORDS_BIGENDIAN 1
7470_ACEOF
7471 ;;
7472 no)
7473 ;;
7474 *)
7475 { { echo "$as_me:$LINENO: error: unknown endianness
7476presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7477echo "$as_me: error: unknown endianness
7478presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7479 { (exit 1); exit 1; }; } ;;
7480esac
7481
7482
7483if test "${ac_cv_header_stdarg_h+set}" = set; then
7484 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7485echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7486if test "${ac_cv_header_stdarg_h+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488fi
7489{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7490echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7491else
7492 # Is the header compilable?
7493{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7494echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
7495cat >conftest.$ac_ext <<_ACEOF
7496/* confdefs.h. */
7497_ACEOF
7498cat confdefs.h >>conftest.$ac_ext
7499cat >>conftest.$ac_ext <<_ACEOF
7500/* end confdefs.h. */
7501$ac_includes_default
7502#include <stdarg.h>
7503_ACEOF
7504rm -f conftest.$ac_objext
7505if { (ac_try="$ac_compile"
7506case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_header_compiler=yes
7522else
7523 echo "$as_me: failed program was:" >&5
7524sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 ac_header_compiler=no
7527fi
7528
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7531echo "${ECHO_T}$ac_header_compiler" >&6; }
7532
7533# Is the header present?
7534{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7535echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
7536cat >conftest.$ac_ext <<_ACEOF
7537/* confdefs.h. */
7538_ACEOF
7539cat confdefs.h >>conftest.$ac_ext
7540cat >>conftest.$ac_ext <<_ACEOF
7541/* end confdefs.h. */
7542#include <stdarg.h>
7543_ACEOF
7544if { (ac_try="$ac_cpp conftest.$ac_ext"
7545case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } >/dev/null && {
7557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7558 test ! -s conftest.err
7559 }; then
7560 ac_header_preproc=yes
7561else
7562 echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ac_header_preproc=no
7566fi
7567
7568rm -f conftest.err conftest.$ac_ext
7569{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7570echo "${ECHO_T}$ac_header_preproc" >&6; }
7571
7572# So? What about this header?
7573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7574 yes:no: )
7575 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7576echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7578echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7579 ac_header_preproc=yes
7580 ;;
7581 no:yes:* )
7582 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7583echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7585echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7587echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7589echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7590 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7591echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7593echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
7594
7595 ;;
7596esac
7597{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7598echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
7599if test "${ac_cv_header_stdarg_h+set}" = set; then
7600 echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602 ac_cv_header_stdarg_h=$ac_header_preproc
7603fi
7604{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7605echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
7606
7607fi
7608if test $ac_cv_header_stdarg_h = yes; then
7609 :
7610else
7611 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&5
7612echo "$as_me: error: ** stdarg.h could not be found - charybdis will not compile without it **" >&2;}
7613 { (exit 1); exit 1; }; }
7614fi
7615
7616
7617
7618
7619if test "$ac_cv_c_compiler_gnu" = yes; then
7620
7621{ echo "$as_me:$LINENO: checking for strlcpy" >&5
7622echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
7623save_CFLAGS=$CFLAGS
7624CFLAGS="$CFLAGS -Wimplicit -Werror"
7625
7626cat >conftest.$ac_ext <<_ACEOF
7627/* confdefs.h. */
7628_ACEOF
7629cat confdefs.h >>conftest.$ac_ext
7630cat >>conftest.$ac_ext <<_ACEOF
7631/* end confdefs.h. */
7632#include <string.h>
7633 #include <stdlib.h>
7634int
7635main ()
7636{
7637char *a = malloc(6);
7638 strlcpy(a, "hello", 6);
7639
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644rm -f conftest.$ac_objext conftest$ac_exeext
7645if { (ac_try="$ac_link"
7646case "(($ac_try" in
7647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7648 *) ac_try_echo=$ac_try;;
7649esac
7650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7651 (eval "$ac_link") 2>conftest.er1
7652 ac_status=$?
7653 grep -v '^ *+' conftest.er1 >conftest.err
7654 rm -f conftest.er1
7655 cat conftest.err >&5
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && {
7658 test -z "$ac_c_werror_flag" ||
7659 test ! -s conftest.err
7660 } && test -s conftest$ac_exeext &&
7661 $as_test_x conftest$ac_exeext; then
7662 { echo "$as_me:$LINENO: result: yes" >&5
7663echo "${ECHO_T}yes" >&6; }
7664
7665cat >>confdefs.h <<\_ACEOF
7666#define HAVE_STRLCPY 1
7667_ACEOF
7668
7669else
7670 echo "$as_me: failed program was:" >&5
7671sed 's/^/| /' conftest.$ac_ext >&5
7672
7673 { echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6; }
7675
7676fi
7677
7678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7679 conftest$ac_exeext conftest.$ac_ext
7680
7681{ echo "$as_me:$LINENO: checking for strlcat" >&5
7682echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
7683cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
7689#include <string.h>
7690 #include <stdlib.h>
7691int
7692main ()
7693{
7694char *a = malloc(6);
7695 a[0] = '\0';
7696 strlcat(a, "hello", 6);
7697
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext conftest$ac_exeext
7703if { (ac_try="$ac_link"
7704case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_link") 2>conftest.er1
7710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest$ac_exeext &&
7719 $as_test_x conftest$ac_exeext; then
7720 { echo "$as_me:$LINENO: result: yes" >&5
7721echo "${ECHO_T}yes" >&6; }
7722
7723cat >>confdefs.h <<\_ACEOF
7724#define HAVE_STRLCAT 1
7725_ACEOF
7726
7727else
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731 { echo "$as_me:$LINENO: result: no" >&5
7732echo "${ECHO_T}no" >&6; }
7733
7734fi
7735
7736rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7737 conftest$ac_exeext conftest.$ac_ext
7738
7739CFLAGS=$save_CFLAGS
7740
7741else
7742
7743
7744
7745
7746for ac_func in strlcat strlcpy
7747do
7748as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7749{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7750echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7751if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753else
7754 cat >conftest.$ac_ext <<_ACEOF
7755/* confdefs.h. */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h. */
7760/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7762#define $ac_func innocuous_$ac_func
7763
7764/* System header to define __stub macros and hopefully few prototypes,
7765 which can conflict with char $ac_func (); below.
7766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7767 <limits.h> exists even on freestanding compilers. */
7768
7769#ifdef __STDC__
7770# include <limits.h>
7771#else
7772# include <assert.h>
7773#endif
7774
7775#undef $ac_func
7776
7777/* Override any GCC internal prototype to avoid an error.
7778 Use char because int might match the return type of a GCC
7779 builtin and then its argument prototype would still apply. */
7780#ifdef __cplusplus
7781extern "C"
7782#endif
7783char $ac_func ();
7784/* The GNU C library defines this for functions which it implements
7785 to always fail with ENOSYS. Some functions are actually named
7786 something starting with __ and the normal name is an alias. */
7787#if defined __stub_$ac_func || defined __stub___$ac_func
7788choke me
7789#endif
7790
7791int
7792main ()
7793{
7794return $ac_func ();
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799rm -f conftest.$ac_objext conftest$ac_exeext
7800if { (ac_try="$ac_link"
7801case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
7805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_link") 2>conftest.er1
7807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest$ac_exeext &&
7816 $as_test_x conftest$ac_exeext; then
7817 eval "$as_ac_var=yes"
7818else
7819 echo "$as_me: failed program was:" >&5
7820sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 eval "$as_ac_var=no"
7823fi
7824
7825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7826 conftest$ac_exeext conftest.$ac_ext
7827fi
7828ac_res=`eval echo '${'$as_ac_var'}'`
7829 { echo "$as_me:$LINENO: result: $ac_res" >&5
7830echo "${ECHO_T}$ac_res" >&6; }
7831if test `eval echo '${'$as_ac_var'}'` = yes; then
7832 cat >>confdefs.h <<_ACEOF
7833#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7834_ACEOF
7835
7836fi
7837done
7838
7839
7840fi
7841
7842{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
7843echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
7844if test "${ac_cv_type_u_int32_t+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847 cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853$ac_includes_default
7854typedef u_int32_t ac__type_new_;
7855int
7856main ()
7857{
7858if ((ac__type_new_ *) 0)
7859 return 0;
7860if (sizeof (ac__type_new_))
7861 return 0;
7862 ;
7863 return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext
7867if { (ac_try="$ac_compile"
7868case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 ac_cv_type_u_int32_t=yes
7884else
7885 echo "$as_me: failed program was:" >&5
7886sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 ac_cv_type_u_int32_t=no
7889fi
7890
7891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892fi
7893{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7894echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
7895if test $ac_cv_type_u_int32_t = yes; then
7896 :
7897else
7898
7899 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7900echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
7901if test "${ac_cv_type_uint32_t+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903else
7904 cat >conftest.$ac_ext <<_ACEOF
7905/* confdefs.h. */
7906_ACEOF
7907cat confdefs.h >>conftest.$ac_ext
7908cat >>conftest.$ac_ext <<_ACEOF
7909/* end confdefs.h. */
7910$ac_includes_default
7911typedef uint32_t ac__type_new_;
7912int
7913main ()
7914{
7915if ((ac__type_new_ *) 0)
7916 return 0;
7917if (sizeof (ac__type_new_))
7918 return 0;
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext
7924if { (ac_try="$ac_compile"
7925case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
7931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
7940 ac_cv_type_uint32_t=yes
7941else
7942 echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
7945 ac_cv_type_uint32_t=no
7946fi
7947
7948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949fi
7950{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7951echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
7952if test $ac_cv_type_uint32_t = yes; then
7953
7954
7955cat >>confdefs.h <<\_ACEOF
7956#define u_int32_t uint32_t
7957_ACEOF
7958
7959
7960else
7961
7962 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
7963echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
7964
7965cat >>confdefs.h <<\_ACEOF
7966#define u_int32_t unsigned long int
7967_ACEOF
7968
7969
7970fi
7971
7972
7973fi
7974
7975
7976{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
7977echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
7978if test "${ac_cv_type_u_int16_t+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980else
7981 cat >conftest.$ac_ext <<_ACEOF
7982/* confdefs.h. */
7983_ACEOF
7984cat confdefs.h >>conftest.$ac_ext
7985cat >>conftest.$ac_ext <<_ACEOF
7986/* end confdefs.h. */
7987$ac_includes_default
7988typedef u_int16_t ac__type_new_;
7989int
7990main ()
7991{
7992if ((ac__type_new_ *) 0)
7993 return 0;
7994if (sizeof (ac__type_new_))
7995 return 0;
7996 ;
7997 return 0;
7998}
7999_ACEOF
8000rm -f conftest.$ac_objext
8001if { (ac_try="$ac_compile"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_cv_type_u_int16_t=yes
8018else
8019 echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 ac_cv_type_u_int16_t=no
8023fi
8024
8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026fi
8027{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8028echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
8029if test $ac_cv_type_u_int16_t = yes; then
8030 :
8031else
8032
8033 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8034echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
8035if test "${ac_cv_type_uint16_t+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038 cat >conftest.$ac_ext <<_ACEOF
8039/* confdefs.h. */
8040_ACEOF
8041cat confdefs.h >>conftest.$ac_ext
8042cat >>conftest.$ac_ext <<_ACEOF
8043/* end confdefs.h. */
8044$ac_includes_default
8045typedef uint16_t ac__type_new_;
8046int
8047main ()
8048{
8049if ((ac__type_new_ *) 0)
8050 return 0;
8051if (sizeof (ac__type_new_))
8052 return 0;
8053 ;
8054 return 0;
8055}
8056_ACEOF
8057rm -f conftest.$ac_objext
8058if { (ac_try="$ac_compile"
8059case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8065 ac_status=$?
8066 grep -v '^ *+' conftest.er1 >conftest.err
8067 rm -f conftest.er1
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_cv_type_uint16_t=yes
8075else
8076 echo "$as_me: failed program was:" >&5
8077sed 's/^/| /' conftest.$ac_ext >&5
8078
8079 ac_cv_type_uint16_t=no
8080fi
8081
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083fi
8084{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8085echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
8086if test $ac_cv_type_uint16_t = yes; then
8087
8088
8089cat >>confdefs.h <<\_ACEOF
8090#define u_int16_t uint16_t
8091_ACEOF
8092
8093
8094else
8095
8096 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8097echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8098
8099cat >>confdefs.h <<\_ACEOF
8100#define u_int16_t unsigned short int
8101_ACEOF
8102
8103
8104fi
8105
8106
8107fi
8108
8109
8110{ echo "$as_me:$LINENO: checking for in_port_t" >&5
8111echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
8112if test "${ac_cv_type_in_port_t+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 cat >conftest.$ac_ext <<_ACEOF
8116/* confdefs.h. */
8117_ACEOF
8118cat confdefs.h >>conftest.$ac_ext
8119cat >>conftest.$ac_ext <<_ACEOF
8120/* end confdefs.h. */
8121#include <sys/types.h>
8122#include <netinet/in.h>
8123
8124typedef in_port_t ac__type_new_;
8125int
8126main ()
8127{
8128if ((ac__type_new_ *) 0)
8129 return 0;
8130if (sizeof (ac__type_new_))
8131 return 0;
8132 ;
8133 return 0;
8134}
8135_ACEOF
8136rm -f conftest.$ac_objext
8137if { (ac_try="$ac_compile"
8138case "(($ac_try" in
8139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140 *) ac_try_echo=$ac_try;;
8141esac
8142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143 (eval "$ac_compile") 2>conftest.er1
8144 ac_status=$?
8145 grep -v '^ *+' conftest.er1 >conftest.err
8146 rm -f conftest.er1
8147 cat conftest.err >&5
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } && {
8150 test -z "$ac_c_werror_flag" ||
8151 test ! -s conftest.err
8152 } && test -s conftest.$ac_objext; then
8153 ac_cv_type_in_port_t=yes
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
8158 ac_cv_type_in_port_t=no
8159fi
8160
8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162fi
8163{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8164echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
8165if test $ac_cv_type_in_port_t = yes; then
8166 :
8167else
8168
8169cat >>confdefs.h <<\_ACEOF
8170#define in_port_t u_int16_t
8171_ACEOF
8172
8173fi
8174
8175
8176{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
8177echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
8178if test "${ac_cv_type_sa_family_t+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181 cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h. */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h. */
8187#include <sys/types.h>
8188#include <sys/socket.h>
8189
8190typedef sa_family_t ac__type_new_;
8191int
8192main ()
8193{
8194if ((ac__type_new_ *) 0)
8195 return 0;
8196if (sizeof (ac__type_new_))
8197 return 0;
8198 ;
8199 return 0;
8200}
8201_ACEOF
8202rm -f conftest.$ac_objext
8203if { (ac_try="$ac_compile"
8204case "(($ac_try" in
8205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206 *) ac_try_echo=$ac_try;;
8207esac
8208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209 (eval "$ac_compile") 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } && {
8216 test -z "$ac_c_werror_flag" ||
8217 test ! -s conftest.err
8218 } && test -s conftest.$ac_objext; then
8219 ac_cv_type_sa_family_t=yes
8220else
8221 echo "$as_me: failed program was:" >&5
8222sed 's/^/| /' conftest.$ac_ext >&5
8223
8224 ac_cv_type_sa_family_t=no
8225fi
8226
8227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8228fi
8229{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8230echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
8231if test $ac_cv_type_sa_family_t = yes; then
8232 :
8233else
8234
8235cat >>confdefs.h <<\_ACEOF
8236#define sa_family_t u_int16_t
8237_ACEOF
8238
8239fi
8240
8241
8242{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
8243echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
8244if test "${ac_cv_type_uintptr_t+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246else
8247 cat >conftest.$ac_ext <<_ACEOF
8248/* confdefs.h. */
8249_ACEOF
8250cat confdefs.h >>conftest.$ac_ext
8251cat >>conftest.$ac_ext <<_ACEOF
8252/* end confdefs.h. */
8253$ac_includes_default
8254typedef uintptr_t ac__type_new_;
8255int
8256main ()
8257{
8258if ((ac__type_new_ *) 0)
8259 return 0;
8260if (sizeof (ac__type_new_))
8261 return 0;
8262 ;
8263 return 0;
8264}
8265_ACEOF
8266rm -f conftest.$ac_objext
8267if { (ac_try="$ac_compile"
8268case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271esac
8272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8273 (eval "$ac_compile") 2>conftest.er1
8274 ac_status=$?
8275 grep -v '^ *+' conftest.er1 >conftest.err
8276 rm -f conftest.er1
8277 cat conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } && {
8280 test -z "$ac_c_werror_flag" ||
8281 test ! -s conftest.err
8282 } && test -s conftest.$ac_objext; then
8283 ac_cv_type_uintptr_t=yes
8284else
8285 echo "$as_me: failed program was:" >&5
8286sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 ac_cv_type_uintptr_t=no
8289fi
8290
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8292fi
8293{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8294echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
8295if test $ac_cv_type_uintptr_t = yes; then
8296
8297cat >>confdefs.h <<_ACEOF
8298#define HAVE_UINTPTR_T 1
8299_ACEOF
8300
8301
8302fi
8303
8304
8305
8306
8307
8308
8309
8310
8311for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8312do
8313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8314{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8316if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319 cat >conftest.$ac_ext <<_ACEOF
8320/* confdefs.h. */
8321_ACEOF
8322cat confdefs.h >>conftest.$ac_ext
8323cat >>conftest.$ac_ext <<_ACEOF
8324/* end confdefs.h. */
8325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8327#define $ac_func innocuous_$ac_func
8328
8329/* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char $ac_func (); below.
8331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8332 <limits.h> exists even on freestanding compilers. */
8333
8334#ifdef __STDC__
8335# include <limits.h>
8336#else
8337# include <assert.h>
8338#endif
8339
8340#undef $ac_func
8341
8342/* Override any GCC internal prototype to avoid an error.
8343 Use char because int might match the return type of a GCC
8344 builtin and then its argument prototype would still apply. */
8345#ifdef __cplusplus
8346extern "C"
8347#endif
8348char $ac_func ();
8349/* The GNU C library defines this for functions which it implements
8350 to always fail with ENOSYS. Some functions are actually named
8351 something starting with __ and the normal name is an alias. */
8352#if defined __stub_$ac_func || defined __stub___$ac_func
8353choke me
8354#endif
8355
8356int
8357main ()
8358{
8359return $ac_func ();
8360 ;
8361 return 0;
8362}
8363_ACEOF
8364rm -f conftest.$ac_objext conftest$ac_exeext
8365if { (ac_try="$ac_link"
8366case "(($ac_try" in
8367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8368 *) ac_try_echo=$ac_try;;
8369esac
8370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8371 (eval "$ac_link") 2>conftest.er1
8372 ac_status=$?
8373 grep -v '^ *+' conftest.er1 >conftest.err
8374 rm -f conftest.er1
8375 cat conftest.err >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); } && {
8378 test -z "$ac_c_werror_flag" ||
8379 test ! -s conftest.err
8380 } && test -s conftest$ac_exeext &&
8381 $as_test_x conftest$ac_exeext; then
8382 eval "$as_ac_var=yes"
8383else
8384 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 eval "$as_ac_var=no"
8388fi
8389
8390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8391 conftest$ac_exeext conftest.$ac_ext
8392fi
8393ac_res=`eval echo '${'$as_ac_var'}'`
8394 { echo "$as_me:$LINENO: result: $ac_res" >&5
8395echo "${ECHO_T}$ac_res" >&6; }
8396if test `eval echo '${'$as_ac_var'}'` = yes; then
8397 cat >>confdefs.h <<_ACEOF
8398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8399_ACEOF
8400
8401fi
8402done
8403
8404
8405# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8406# for constant arguments. Useless!
8407{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
8408echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8409if test "${ac_cv_working_alloca_h+set}" = set; then
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411else
8412 cat >conftest.$ac_ext <<_ACEOF
8413/* confdefs.h. */
8414_ACEOF
8415cat confdefs.h >>conftest.$ac_ext
8416cat >>conftest.$ac_ext <<_ACEOF
8417/* end confdefs.h. */
8418#include <alloca.h>
8419int
8420main ()
8421{
8422char *p = (char *) alloca (2 * sizeof (int));
8423 if (p) return 0;
8424 ;
8425 return 0;
8426}
8427_ACEOF
8428rm -f conftest.$ac_objext conftest$ac_exeext
8429if { (ac_try="$ac_link"
8430case "(($ac_try" in
8431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432 *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435 (eval "$ac_link") 2>conftest.er1
8436 ac_status=$?
8437 grep -v '^ *+' conftest.er1 >conftest.err
8438 rm -f conftest.er1
8439 cat conftest.err >&5
8440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441 (exit $ac_status); } && {
8442 test -z "$ac_c_werror_flag" ||
8443 test ! -s conftest.err
8444 } && test -s conftest$ac_exeext &&
8445 $as_test_x conftest$ac_exeext; then
8446 ac_cv_working_alloca_h=yes
8447else
8448 echo "$as_me: failed program was:" >&5
8449sed 's/^/| /' conftest.$ac_ext >&5
8450
8451 ac_cv_working_alloca_h=no
8452fi
8453
8454rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8455 conftest$ac_exeext conftest.$ac_ext
8456fi
8457{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8458echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8459if test $ac_cv_working_alloca_h = yes; then
8460
8461cat >>confdefs.h <<\_ACEOF
8462#define HAVE_ALLOCA_H 1
8463_ACEOF
8464
8465fi
8466
8467{ echo "$as_me:$LINENO: checking for alloca" >&5
8468echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8469if test "${ac_cv_func_alloca_works+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472 cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478#ifdef __GNUC__
8479# define alloca __builtin_alloca
8480#else
8481# ifdef _MSC_VER
8482# include <malloc.h>
8483# define alloca _alloca
8484# else
8485# ifdef HAVE_ALLOCA_H
8486# include <alloca.h>
8487# else
8488# ifdef _AIX
8489 #pragma alloca
8490# else
8491# ifndef alloca /* predefined by HP cc +Olibcalls */
8492char *alloca ();
8493# endif
8494# endif
8495# endif
8496# endif
8497#endif
8498
8499int
8500main ()
8501{
8502char *p = (char *) alloca (1);
8503 if (p) return 0;
8504 ;
8505 return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext conftest$ac_exeext
8509if { (ac_try="$ac_link"
8510case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513esac
8514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_link") 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest$ac_exeext &&
8525 $as_test_x conftest$ac_exeext; then
8526 ac_cv_func_alloca_works=yes
8527else
8528 echo "$as_me: failed program was:" >&5
8529sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_func_alloca_works=no
8532fi
8533
8534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8535 conftest$ac_exeext conftest.$ac_ext
8536fi
8537{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8538echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
8539
8540if test $ac_cv_func_alloca_works = yes; then
8541
8542cat >>confdefs.h <<\_ACEOF
8543#define HAVE_ALLOCA 1
8544_ACEOF
8545
8546else
8547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8548# that cause trouble. Some versions do not even contain alloca or
8549# contain a buggy version. If you still want to use their alloca,
8550# use ar to extract alloca.o from them instead of compiling alloca.c.
8551
8552ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8553
8554cat >>confdefs.h <<\_ACEOF
8555#define C_ALLOCA 1
8556_ACEOF
8557
8558
8559{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8560echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
8561if test "${ac_cv_os_cray+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563else
8564 cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
8570#if defined CRAY && ! defined CRAY2
8571webecray
8572#else
8573wenotbecray
8574#endif
8575
8576_ACEOF
8577if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8578 $EGREP "webecray" >/dev/null 2>&1; then
8579 ac_cv_os_cray=yes
8580else
8581 ac_cv_os_cray=no
8582fi
8583rm -f conftest*
8584
8585fi
8586{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8587echo "${ECHO_T}$ac_cv_os_cray" >&6; }
8588if test $ac_cv_os_cray = yes; then
8589 for ac_func in _getb67 GETB67 getb67; do
8590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8591{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8593if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596 cat >conftest.$ac_ext <<_ACEOF
8597/* confdefs.h. */
8598_ACEOF
8599cat confdefs.h >>conftest.$ac_ext
8600cat >>conftest.$ac_ext <<_ACEOF
8601/* end confdefs.h. */
8602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8604#define $ac_func innocuous_$ac_func
8605
8606/* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char $ac_func (); below.
8608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609 <limits.h> exists even on freestanding compilers. */
8610
8611#ifdef __STDC__
8612# include <limits.h>
8613#else
8614# include <assert.h>
8615#endif
8616
8617#undef $ac_func
8618
8619/* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
8622#ifdef __cplusplus
8623extern "C"
8624#endif
8625char $ac_func ();
8626/* The GNU C library defines this for functions which it implements
8627 to always fail with ENOSYS. Some functions are actually named
8628 something starting with __ and the normal name is an alias. */
8629#if defined __stub_$ac_func || defined __stub___$ac_func
8630choke me
8631#endif
8632
8633int
8634main ()
8635{
8636return $ac_func ();
8637 ;
8638 return 0;
8639}
8640_ACEOF
8641rm -f conftest.$ac_objext conftest$ac_exeext
8642if { (ac_try="$ac_link"
8643case "(($ac_try" in
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8646esac
8647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
8649 ac_status=$?
8650 grep -v '^ *+' conftest.er1 >conftest.err
8651 rm -f conftest.er1
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest$ac_exeext &&
8658 $as_test_x conftest$ac_exeext; then
8659 eval "$as_ac_var=yes"
8660else
8661 echo "$as_me: failed program was:" >&5
8662sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 eval "$as_ac_var=no"
8665fi
8666
8667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668 conftest$ac_exeext conftest.$ac_ext
8669fi
8670ac_res=`eval echo '${'$as_ac_var'}'`
8671 { echo "$as_me:$LINENO: result: $ac_res" >&5
8672echo "${ECHO_T}$ac_res" >&6; }
8673if test `eval echo '${'$as_ac_var'}'` = yes; then
8674
8675cat >>confdefs.h <<_ACEOF
8676#define CRAY_STACKSEG_END $ac_func
8677_ACEOF
8678
8679 break
8680fi
8681
8682 done
8683fi
8684
8685{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8686echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
8687if test "${ac_cv_c_stack_direction+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690 if test "$cross_compiling" = yes; then
8691 ac_cv_c_stack_direction=0
8692else
8693 cat >conftest.$ac_ext <<_ACEOF
8694/* confdefs.h. */
8695_ACEOF
8696cat confdefs.h >>conftest.$ac_ext
8697cat >>conftest.$ac_ext <<_ACEOF
8698/* end confdefs.h. */
8699$ac_includes_default
8700int
8701find_stack_direction ()
8702{
8703 static char *addr = 0;
8704 auto char dummy;
8705 if (addr == 0)
8706 {
8707 addr = &dummy;
8708 return find_stack_direction ();
8709 }
8710 else
8711 return (&dummy > addr) ? 1 : -1;
8712}
8713
8714int
8715main ()
8716{
8717 return find_stack_direction () < 0;
8718}
8719_ACEOF
8720rm -f conftest$ac_exeext
8721if { (ac_try="$ac_link"
8722case "(($ac_try" in
8723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724 *) ac_try_echo=$ac_try;;
8725esac
8726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727 (eval "$ac_link") 2>&5
8728 ac_status=$?
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8731 { (case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_try") 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_cv_c_stack_direction=1
8741else
8742 echo "$as_me: program exited with status $ac_status" >&5
8743echo "$as_me: failed program was:" >&5
8744sed 's/^/| /' conftest.$ac_ext >&5
8745
8746( exit $ac_status )
8747ac_cv_c_stack_direction=-1
8748fi
8749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8750fi
8751
8752
8753fi
8754{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8755echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
8756
8757cat >>confdefs.h <<_ACEOF
8758#define STACK_DIRECTION $ac_cv_c_stack_direction
8759_ACEOF
8760
8761
8762fi
8763
8764
8765
8766{ echo "$as_me:$LINENO: checking for nanosleep" >&5
8767echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
8768if test "${ac_cv_func_nanosleep+set}" = set; then
8769 echo $ECHO_N "(cached) $ECHO_C" >&6
8770else
8771 cat >conftest.$ac_ext <<_ACEOF
8772/* confdefs.h. */
8773_ACEOF
8774cat confdefs.h >>conftest.$ac_ext
8775cat >>conftest.$ac_ext <<_ACEOF
8776/* end confdefs.h. */
8777/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
8778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8779#define nanosleep innocuous_nanosleep
8780
8781/* System header to define __stub macros and hopefully few prototypes,
8782 which can conflict with char nanosleep (); below.
8783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8784 <limits.h> exists even on freestanding compilers. */
8785
8786#ifdef __STDC__
8787# include <limits.h>
8788#else
8789# include <assert.h>
8790#endif
8791
8792#undef nanosleep
8793
8794/* Override any GCC internal prototype to avoid an error.
8795 Use char because int might match the return type of a GCC
8796 builtin and then its argument prototype would still apply. */
8797#ifdef __cplusplus
8798extern "C"
8799#endif
8800char nanosleep ();
8801/* The GNU C library defines this for functions which it implements
8802 to always fail with ENOSYS. Some functions are actually named
8803 something starting with __ and the normal name is an alias. */
8804#if defined __stub_nanosleep || defined __stub___nanosleep
8805choke me
8806#endif
8807
8808int
8809main ()
8810{
8811return nanosleep ();
8812 ;
8813 return 0;
8814}
8815_ACEOF
8816rm -f conftest.$ac_objext conftest$ac_exeext
8817if { (ac_try="$ac_link"
8818case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821esac
8822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_link") 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && {
8830 test -z "$ac_c_werror_flag" ||
8831 test ! -s conftest.err
8832 } && test -s conftest$ac_exeext &&
8833 $as_test_x conftest$ac_exeext; then
8834 ac_cv_func_nanosleep=yes
8835else
8836 echo "$as_me: failed program was:" >&5
8837sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_func_nanosleep=no
8840fi
8841
8842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8843 conftest$ac_exeext conftest.$ac_ext
8844fi
8845{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
8846echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
8847if test $ac_cv_func_nanosleep = yes; then
8848 :
8849else
8850 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
8851echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
8852if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
8853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 ac_check_lib_save_LIBS=$LIBS
8856LIBS="-lrt $LIBS"
8857cat >conftest.$ac_ext <<_ACEOF
8858/* confdefs.h. */
8859_ACEOF
8860cat confdefs.h >>conftest.$ac_ext
8861cat >>conftest.$ac_ext <<_ACEOF
8862/* end confdefs.h. */
8863
8864/* Override any GCC internal prototype to avoid an error.
8865 Use char because int might match the return type of a GCC
8866 builtin and then its argument prototype would still apply. */
8867#ifdef __cplusplus
8868extern "C"
8869#endif
8870char nanosleep ();
8871int
8872main ()
8873{
8874return nanosleep ();
8875 ;
8876 return 0;
8877}
8878_ACEOF
8879rm -f conftest.$ac_objext conftest$ac_exeext
8880if { (ac_try="$ac_link"
8881case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8884esac
8885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_link") 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest$ac_exeext &&
8896 $as_test_x conftest$ac_exeext; then
8897 ac_cv_lib_rt_nanosleep=yes
8898else
8899 echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
8901
8902 ac_cv_lib_rt_nanosleep=no
8903fi
8904
8905rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8906 conftest$ac_exeext conftest.$ac_ext
8907LIBS=$ac_check_lib_save_LIBS
8908fi
8909{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
8910echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
8911if test $ac_cv_lib_rt_nanosleep = yes; then
8912 LIBS="${LIBS} -lrt"
8913else
8914 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
8915echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
8916if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918else
8919 ac_check_lib_save_LIBS=$LIBS
8920LIBS="-lposix4 $LIBS"
8921cat >conftest.$ac_ext <<_ACEOF
8922/* confdefs.h. */
8923_ACEOF
8924cat confdefs.h >>conftest.$ac_ext
8925cat >>conftest.$ac_ext <<_ACEOF
8926/* end confdefs.h. */
8927
8928/* Override any GCC internal prototype to avoid an error.
8929 Use char because int might match the return type of a GCC
8930 builtin and then its argument prototype would still apply. */
8931#ifdef __cplusplus
8932extern "C"
8933#endif
8934char nanosleep ();
8935int
8936main ()
8937{
8938return nanosleep ();
8939 ;
8940 return 0;
8941}
8942_ACEOF
8943rm -f conftest.$ac_objext conftest$ac_exeext
8944if { (ac_try="$ac_link"
8945case "(($ac_try" in
8946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8947 *) ac_try_echo=$ac_try;;
8948esac
8949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8950 (eval "$ac_link") 2>conftest.er1
8951 ac_status=$?
8952 grep -v '^ *+' conftest.er1 >conftest.err
8953 rm -f conftest.er1
8954 cat conftest.err >&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } && {
8957 test -z "$ac_c_werror_flag" ||
8958 test ! -s conftest.err
8959 } && test -s conftest$ac_exeext &&
8960 $as_test_x conftest$ac_exeext; then
8961 ac_cv_lib_posix4_nanosleep=yes
8962else
8963 echo "$as_me: failed program was:" >&5
8964sed 's/^/| /' conftest.$ac_ext >&5
8965
8966 ac_cv_lib_posix4_nanosleep=no
8967fi
8968
8969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8970 conftest$ac_exeext conftest.$ac_ext
8971LIBS=$ac_check_lib_save_LIBS
8972fi
8973{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
8974echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
8975if test $ac_cv_lib_posix4_nanosleep = yes; then
8976 LIBS="${LIBS} -lposix4"
8977
8978fi
8979
8980fi
8981
8982fi
8983
8984if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
8985then
8986 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
8987echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
8988else
8989
8990cat >>confdefs.h <<\_ACEOF
8991#define HAVE_NANOSLEEP 1
8992_ACEOF
8993
8994fi
8995
8996{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
8997echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
8998# Check whether --enable-openssl was given.
8999if test "${enable_openssl+set}" = set; then
9000 enableval=$enable_openssl; cf_enable_openssl=$enableval
9001else
9002 cf_enable_openssl="auto"
9003fi
9004
9005
9006if test "$cf_enable_openssl" != "no" ; then
9007 cf_openssl_basedir=""
9008 if test "$cf_enable_openssl" != "auto" &&
9009 test "$cf_enable_openssl" != "yes" ; then
9010 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9011 else
9012 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9013 /usr/local/openssl ; do
9014 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9015 cf_openssl_basedir="${dirs}"
9016 break
9017 fi
9018 done
9019 unset dirs
9020 fi
9021 if test ! -z "$cf_openssl_basedir"; then
9022 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9023 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9024 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9025 else
9026 cf_openssl_basedir=""
9027 fi
9028 else
9029 if test -f "/usr/include/openssl/opensslv.h" ; then
9030 cf_openssl_basedir="/usr"
9031 fi
9032 fi
9033
9034 if test ! -z "$cf_openssl_basedir"; then
9035 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9036echo "${ECHO_T}$cf_openssl_basedir" >&6; }
9037 cf_enable_openssl="yes"
9038 else
9039 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9040echo "${ECHO_T}not found. Specify a correct path?" >&6; }
9041 cf_enable_openssl="no"
9042 fi
9043 unset cf_openssl_basedir
9044else
9045 { echo "$as_me:$LINENO: result: disabled" >&5
9046echo "${ECHO_T}disabled" >&6; }
9047fi
9048
9049save_CPPFLAGS="$CPPFLAGS"
9050CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9051save_LIBS="$LIBS"
9052LIBS="$LIBS $SSL_LIBS"
9053if test "$cf_enable_openssl" != no; then
9054 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9055echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
9056 if test "$cross_compiling" = yes; then
9057 cf_openssl_version_ok=no
9058else
9059 cat >conftest.$ac_ext <<_ACEOF
9060/* confdefs.h. */
9061_ACEOF
9062cat confdefs.h >>conftest.$ac_ext
9063cat >>conftest.$ac_ext <<_ACEOF
9064/* end confdefs.h. */
9065#include <openssl/opensslv.h>
9066 #include <stdlib.h>
9067int
9068main ()
9069{
9070if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9071 exit(0); else exit(1);
9072 ;
9073 return 0;
9074}
9075_ACEOF
9076rm -f conftest$ac_exeext
9077if { (ac_try="$ac_link"
9078case "(($ac_try" in
9079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080 *) ac_try_echo=$ac_try;;
9081esac
9082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083 (eval "$ac_link") 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9087 { (case "(($ac_try" in
9088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9089 *) ac_try_echo=$ac_try;;
9090esac
9091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9092 (eval "$ac_try") 2>&5
9093 ac_status=$?
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; }; then
9096 cf_openssl_version_ok=yes
9097else
9098 echo "$as_me: program exited with status $ac_status" >&5
9099echo "$as_me: failed program was:" >&5
9100sed 's/^/| /' conftest.$ac_ext >&5
9101
9102( exit $ac_status )
9103cf_openssl_version_ok=no
9104fi
9105rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9106fi
9107
9108
9109
9110 if test "$cf_openssl_version_ok" = yes; then
9111 { echo "$as_me:$LINENO: result: found" >&5
9112echo "${ECHO_T}found" >&6; }
9113
9114 ENCSPEED=encspeed
9115
9116
9117 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9118
9119{ echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9120echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
9121if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9123else
9124 ac_check_lib_save_LIBS=$LIBS
9125LIBS="-lcrypto $LIBS"
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h. */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h. */
9132
9133/* Override any GCC internal prototype to avoid an error.
9134 Use char because int might match the return type of a GCC
9135 builtin and then its argument prototype would still apply. */
9136#ifdef __cplusplus
9137extern "C"
9138#endif
9139char RSA_free ();
9140int
9141main ()
9142{
9143return RSA_free ();
9144 ;
9145 return 0;
9146}
9147_ACEOF
9148rm -f conftest.$ac_objext conftest$ac_exeext
9149if { (ac_try="$ac_link"
9150case "(($ac_try" in
9151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9152 *) ac_try_echo=$ac_try;;
9153esac
9154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9155 (eval "$ac_link") 2>conftest.er1
9156 ac_status=$?
9157 grep -v '^ *+' conftest.er1 >conftest.err
9158 rm -f conftest.er1
9159 cat conftest.err >&5
9160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161 (exit $ac_status); } && {
9162 test -z "$ac_c_werror_flag" ||
9163 test ! -s conftest.err
9164 } && test -s conftest$ac_exeext &&
9165 $as_test_x conftest$ac_exeext; then
9166 ac_cv_lib_crypto_RSA_free=yes
9167else
9168 echo "$as_me: failed program was:" >&5
9169sed 's/^/| /' conftest.$ac_ext >&5
9170
9171 ac_cv_lib_crypto_RSA_free=no
9172fi
9173
9174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9175 conftest$ac_exeext conftest.$ac_ext
9176LIBS=$ac_check_lib_save_LIBS
9177fi
9178{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9179echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
9180if test $ac_cv_lib_crypto_RSA_free = yes; then
9181 cat >>confdefs.h <<_ACEOF
9182#define HAVE_LIBCRYPTO 1
9183_ACEOF
9184
9185 LIBS="-lcrypto $LIBS"
9186
9187fi
9188
9189 SSL_LIBS="$SSL_LIBS -lcrypto"
9190 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9191 else
9192 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9193echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
9194 fi
9195fi
9196
9197CPPFLAGS="$save_CPPFLAGS"
9198LIBS="$save_LIBS"
9199
9200
9201
9202
9203
9204# Check whether --with-zlib-path was given.
9205if test "${with_zlib_path+set}" = set; then
9206 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9207fi
9208
9209
9210# Check whether --enable-zlib was given.
9211if test "${enable_zlib+set}" = set; then
9212 enableval=$enable_zlib; zlib=$enableval
9213else
9214 zlib=yes
9215fi
9216
9217
9218if test "$zlib" = yes; then
9219
9220if test "${ac_cv_header_zlib_h+set}" = set; then
9221 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9222echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9223if test "${ac_cv_header_zlib_h+set}" = set; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225fi
9226{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9227echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9228else
9229 # Is the header compilable?
9230{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
9231echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
9232cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */
9238$ac_includes_default
9239#include <zlib.h>
9240_ACEOF
9241rm -f conftest.$ac_objext
9242if { (ac_try="$ac_compile"
9243case "(($ac_try" in
9244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9246esac
9247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248 (eval "$ac_compile") 2>conftest.er1
9249 ac_status=$?
9250 grep -v '^ *+' conftest.er1 >conftest.err
9251 rm -f conftest.er1
9252 cat conftest.err >&5
9253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254 (exit $ac_status); } && {
9255 test -z "$ac_c_werror_flag" ||
9256 test ! -s conftest.err
9257 } && test -s conftest.$ac_objext; then
9258 ac_header_compiler=yes
9259else
9260 echo "$as_me: failed program was:" >&5
9261sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 ac_header_compiler=no
9264fi
9265
9266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9267{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9268echo "${ECHO_T}$ac_header_compiler" >&6; }
9269
9270# Is the header present?
9271{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
9272echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
9273cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h. */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h. */
9279#include <zlib.h>
9280_ACEOF
9281if { (ac_try="$ac_cpp conftest.$ac_ext"
9282case "(($ac_try" in
9283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9285esac
9286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } >/dev/null && {
9294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9295 test ! -s conftest.err
9296 }; then
9297 ac_header_preproc=yes
9298else
9299 echo "$as_me: failed program was:" >&5
9300sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 ac_header_preproc=no
9303fi
9304
9305rm -f conftest.err conftest.$ac_ext
9306{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9307echo "${ECHO_T}$ac_header_preproc" >&6; }
9308
9309# So? What about this header?
9310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9311 yes:no: )
9312 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9313echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9315echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9316 ac_header_preproc=yes
9317 ;;
9318 no:yes:* )
9319 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9320echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9322echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9324echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9326echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9328echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9330echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
9331
9332 ;;
9333esac
9334{ echo "$as_me:$LINENO: checking for zlib.h" >&5
9335echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
9336if test "${ac_cv_header_zlib_h+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338else
9339 ac_cv_header_zlib_h=$ac_header_preproc
9340fi
9341{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9342echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
9343
9344fi
9345if test $ac_cv_header_zlib_h = yes; then
9346
9347 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9348echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
9349if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9351else
9352 ac_check_lib_save_LIBS=$LIBS
9353LIBS="-lz $LIBS"
9354cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h. */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h. */
9360
9361/* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364#ifdef __cplusplus
9365extern "C"
9366#endif
9367char zlibVersion ();
9368int
9369main ()
9370{
9371return zlibVersion ();
9372 ;
9373 return 0;
9374}
9375_ACEOF
9376rm -f conftest.$ac_objext conftest$ac_exeext
9377if { (ac_try="$ac_link"
9378case "(($ac_try" in
9379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380 *) ac_try_echo=$ac_try;;
9381esac
9382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9383 (eval "$ac_link") 2>conftest.er1
9384 ac_status=$?
9385 grep -v '^ *+' conftest.er1 >conftest.err
9386 rm -f conftest.er1
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } && {
9390 test -z "$ac_c_werror_flag" ||
9391 test ! -s conftest.err
9392 } && test -s conftest$ac_exeext &&
9393 $as_test_x conftest$ac_exeext; then
9394 ac_cv_lib_z_zlibVersion=yes
9395else
9396 echo "$as_me: failed program was:" >&5
9397sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 ac_cv_lib_z_zlibVersion=no
9400fi
9401
9402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403 conftest$ac_exeext conftest.$ac_ext
9404LIBS=$ac_check_lib_save_LIBS
9405fi
9406{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9407echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
9408if test $ac_cv_lib_z_zlibVersion = yes; then
9409
9410 ZLIB_LD=-lz
9411
9412
9413cat >>confdefs.h <<\_ACEOF
9414#define HAVE_LIBZ 1
9415_ACEOF
9416
9417
9418else
9419 zlib=no
9420fi
9421
9422
9423else
9424 zlib=no
9425fi
9426
9427
9428
9429fi
9430
9431
9432# Check whether --enable-ports was given.
9433if test "${enable_ports+set}" = set; then
9434 enableval=$enable_ports; if test $enableval = yes; then
9435 SELECT_TYPE_EXPLICIT="ports"
9436 else
9437 use_ports=no
9438 fi
9439
9440fi
9441
9442
9443# Check whether --enable-poll was given.
9444if test "${enable_poll+set}" = set; then
9445 enableval=$enable_poll; if test $enableval = yes; then
9446 SELECT_TYPE_EXPLICIT="poll"
9447 else
9448 use_poll=no
9449 fi
9450
9451fi
9452
9453
9454# Check whether --enable-select was given.
9455if test "${enable_select+set}" = set; then
9456 enableval=$enable_select; if test $enableval = yes; then
9457 SELECT_TYPE_EXPLICIT="select"
9458 else
9459 use_select=no
9460 fi
9461
9462fi
9463
9464
9465# Check whether --enable-kqueue was given.
9466if test "${enable_kqueue+set}" = set; then
9467 enableval=$enable_kqueue; if test $enableval = yes; then
9468 SELECT_TYPE_EXPLICIT="kqueue"
9469 else
9470 use_kqueue=no
9471 fi
9472
9473fi
9474
9475
9476# Check whether --enable-epoll was given.
9477if test "${enable_epoll+set}" = set; then
9478 enableval=$enable_epoll; if test $enableval = yes; then
9479 SELECT_TYPE_EXPLICIT="epoll"
9480
9481for ac_func in epoll_ctl
9482do
9483as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9484{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9485echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9486if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489 cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h. */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h. */
9495/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497#define $ac_func innocuous_$ac_func
9498
9499/* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char $ac_func (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9503
9504#ifdef __STDC__
9505# include <limits.h>
9506#else
9507# include <assert.h>
9508#endif
9509
9510#undef $ac_func
9511
9512/* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
9515#ifdef __cplusplus
9516extern "C"
9517#endif
9518char $ac_func ();
9519/* The GNU C library defines this for functions which it implements
9520 to always fail with ENOSYS. Some functions are actually named
9521 something starting with __ and the normal name is an alias. */
9522#if defined __stub_$ac_func || defined __stub___$ac_func
9523choke me
9524#endif
9525
9526int
9527main ()
9528{
9529return $ac_func ();
9530 ;
9531 return 0;
9532}
9533_ACEOF
9534rm -f conftest.$ac_objext conftest$ac_exeext
9535if { (ac_try="$ac_link"
9536case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539esac
9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } && {
9548 test -z "$ac_c_werror_flag" ||
9549 test ! -s conftest.err
9550 } && test -s conftest$ac_exeext &&
9551 $as_test_x conftest$ac_exeext; then
9552 eval "$as_ac_var=yes"
9553else
9554 echo "$as_me: failed program was:" >&5
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
9557 eval "$as_ac_var=no"
9558fi
9559
9560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9561 conftest$ac_exeext conftest.$ac_ext
9562fi
9563ac_res=`eval echo '${'$as_ac_var'}'`
9564 { echo "$as_me:$LINENO: result: $ac_res" >&5
9565echo "${ECHO_T}$ac_res" >&6; }
9566if test `eval echo '${'$as_ac_var'}'` = yes; then
9567 cat >>confdefs.h <<_ACEOF
9568#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569_ACEOF
9570 haveepoll=yes
9571else
9572 haveepoll=no
9573fi
9574done
9575
9576 else
9577 use_epoll=no
9578 fi
9579
9580fi
9581
9582
9583
9584{ echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9585echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
9586
9587# Check whether --with-confdir was given.
9588if test "${with_confdir+set}" = set; then
9589 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9590 { echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6; }
9592
9593 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9594 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9595 ac_define_dir=`eval echo $confdir`
9596 ac_define_dir=`eval echo $ac_define_dir`
9597 ETC_DIR="$ac_define_dir"
9598
9599
9600cat >>confdefs.h <<_ACEOF
9601#define ETC_DIR "$ac_define_dir"
9602_ACEOF
9603
9604
9605
9606
9607 confdir=`(
9608 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9609 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9610 eval echo \""$confdir"\"
9611 )`
9612
9613
9614else
9615 confdir='${prefix}/etc'
9616 { echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6; }
9618
9619 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9621 ac_define_dir=`eval echo $confdir`
9622 ac_define_dir=`eval echo $ac_define_dir`
9623 ETC_DIR="$ac_define_dir"
9624
9625
9626cat >>confdefs.h <<_ACEOF
9627#define ETC_DIR "$ac_define_dir"
9628_ACEOF
9629
9630
9631
9632
9633 confdir=`(
9634 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9635 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9636 eval echo \""$confdir"\"
9637 )`
9638
9639
9640
9641fi
9642
9643
9644
9645{ echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9646echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
9647
9648# Check whether --with-logdir was given.
9649if test "${with_logdir+set}" = set; then
9650 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9651 { echo "$as_me:$LINENO: result: yes" >&5
9652echo "${ECHO_T}yes" >&6; }
9653
9654 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9656 ac_define_dir=`eval echo $logdir`
9657 ac_define_dir=`eval echo $ac_define_dir`
9658 LOG_DIR="$ac_define_dir"
9659
9660
9661cat >>confdefs.h <<_ACEOF
9662#define LOG_DIR "$ac_define_dir"
9663_ACEOF
9664
9665
9666
9667
9668 logdir=`(
9669 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9670 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9671 eval echo \""$logdir"\"
9672 )`
9673
9674
9675else
9676 logdir='${prefix}/logs'
9677 { echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6; }
9679
9680 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9681 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9682 ac_define_dir=`eval echo $logdir`
9683 ac_define_dir=`eval echo $ac_define_dir`
9684 LOG_DIR="$ac_define_dir"
9685
9686
9687cat >>confdefs.h <<_ACEOF
9688#define LOG_DIR "$ac_define_dir"
9689_ACEOF
9690
9691
9692
9693
9694 logdir=`(
9695 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9696 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9697 eval echo \""$logdir"\"
9698 )`
9699
9700
9701
9702fi
9703
9704
9705
9706{ echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
9707echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
9708
9709# Check whether --with-helpdir was given.
9710if test "${with_helpdir+set}" = set; then
9711 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
9712 { echo "$as_me:$LINENO: result: yes" >&5
9713echo "${ECHO_T}yes" >&6; }
9714
9715 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9717 ac_define_dir=`eval echo $helpdir`
9718 ac_define_dir=`eval echo $ac_define_dir`
9719 HELP_DIR="$ac_define_dir"
9720
9721
9722cat >>confdefs.h <<_ACEOF
9723#define HELP_DIR "$ac_define_dir"
9724_ACEOF
9725
9726
9727
9728
9729 helpdir=`(
9730 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9731 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9732 eval echo \""$helpdir"\"
9733 )`
9734
9735
9736else
9737 helpdir='${prefix}/help'
9738 { echo "$as_me:$LINENO: result: no" >&5
9739echo "${ECHO_T}no" >&6; }
9740
9741 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9743 ac_define_dir=`eval echo $helpdir`
9744 ac_define_dir=`eval echo $ac_define_dir`
9745 HELP_DIR="$ac_define_dir"
9746
9747
9748cat >>confdefs.h <<_ACEOF
9749#define HELP_DIR "$ac_define_dir"
9750_ACEOF
9751
9752
9753
9754
9755 helpdir=`(
9756 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9757 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9758 eval echo \""$helpdir"\"
9759 )`
9760
9761
9762
9763fi
9764
9765
9766
9767{ echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
9768echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
9769
9770# Check whether --with-moduledir was given.
9771if test "${with_moduledir+set}" = set; then
9772 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
9773 { echo "$as_me:$LINENO: result: yes" >&5
9774echo "${ECHO_T}yes" >&6; }
9775
9776 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9778 ac_define_dir=`eval echo $moduledir`
9779 ac_define_dir=`eval echo $ac_define_dir`
9780 MODULE_DIR="$ac_define_dir"
9781
9782
9783cat >>confdefs.h <<_ACEOF
9784#define MODULE_DIR "$ac_define_dir"
9785_ACEOF
9786
9787
9788
9789
9790 moduledir=`(
9791 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9792 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9793 eval echo \""$moduledir"\"
9794 )`
9795
9796
9797else
9798 moduledir='${prefix}/modules'
9799 { echo "$as_me:$LINENO: result: no" >&5
9800echo "${ECHO_T}no" >&6; }
9801
9802 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9803 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9804 ac_define_dir=`eval echo $moduledir`
9805 ac_define_dir=`eval echo $ac_define_dir`
9806 MODULE_DIR="$ac_define_dir"
9807
9808
9809cat >>confdefs.h <<_ACEOF
9810#define MODULE_DIR "$ac_define_dir"
9811_ACEOF
9812
9813
9814
9815
9816 moduledir=`(
9817 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9818 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9819 eval echo \""$moduledir"\"
9820 )`
9821
9822
9823
9824fi
9825
9826
9827if test ! -z "$SELECT_TYPE_EXPLICIT"; then
9828 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
9829 echo "Forcing $SELECT_TYPE to be enabled"
9830else
9831
9832if test ! "x$use_ports" = "xno"; then
9833
9834for ac_func in port_getn
9835do
9836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9841else
9842 cat >conftest.$ac_ext <<_ACEOF
9843/* confdefs.h. */
9844_ACEOF
9845cat confdefs.h >>conftest.$ac_ext
9846cat >>conftest.$ac_ext <<_ACEOF
9847/* end confdefs.h. */
9848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850#define $ac_func innocuous_$ac_func
9851
9852/* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char $ac_func (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9856
9857#ifdef __STDC__
9858# include <limits.h>
9859#else
9860# include <assert.h>
9861#endif
9862
9863#undef $ac_func
9864
9865/* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9868#ifdef __cplusplus
9869extern "C"
9870#endif
9871char $ac_func ();
9872/* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
9875#if defined __stub_$ac_func || defined __stub___$ac_func
9876choke me
9877#endif
9878
9879int
9880main ()
9881{
9882return $ac_func ();
9883 ;
9884 return 0;
9885}
9886_ACEOF
9887rm -f conftest.$ac_objext conftest$ac_exeext
9888if { (ac_try="$ac_link"
9889case "(($ac_try" in
9890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9892esac
9893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9895 ac_status=$?
9896 grep -v '^ *+' conftest.er1 >conftest.err
9897 rm -f conftest.er1
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 eval "$as_ac_var=yes"
9906else
9907 echo "$as_me: failed program was:" >&5
9908sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 eval "$as_ac_var=no"
9911fi
9912
9913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9915fi
9916ac_res=`eval echo '${'$as_ac_var'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918echo "${ECHO_T}$ac_res" >&6; }
9919if test `eval echo '${'$as_ac_var'}'` = yes; then
9920 cat >>confdefs.h <<_ACEOF
9921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9922_ACEOF
9923 haveports=yes
9924else
9925 haveports=no
9926fi
9927done
9928
9929 if test "x$haveports" = "xyes" ; then
9930 SELECT_TYPE="ports"
9931 fi
9932fi
9933
9934if test ! "x$use_select" = "xno"; then
9935
9936for ac_func in select
9937do
9938as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9940echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9943else
9944 cat >conftest.$ac_ext <<_ACEOF
9945/* confdefs.h. */
9946_ACEOF
9947cat confdefs.h >>conftest.$ac_ext
9948cat >>conftest.$ac_ext <<_ACEOF
9949/* end confdefs.h. */
9950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9952#define $ac_func innocuous_$ac_func
9953
9954/* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char $ac_func (); below.
9956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957 <limits.h> exists even on freestanding compilers. */
9958
9959#ifdef __STDC__
9960# include <limits.h>
9961#else
9962# include <assert.h>
9963#endif
9964
9965#undef $ac_func
9966
9967/* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970#ifdef __cplusplus
9971extern "C"
9972#endif
9973char $ac_func ();
9974/* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977#if defined __stub_$ac_func || defined __stub___$ac_func
9978choke me
9979#endif
9980
9981int
9982main ()
9983{
9984return $ac_func ();
9985 ;
9986 return 0;
9987}
9988_ACEOF
9989rm -f conftest.$ac_objext conftest$ac_exeext
9990if { (ac_try="$ac_link"
9991case "(($ac_try" in
9992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9994esac
9995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest$ac_exeext &&
10006 $as_test_x conftest$ac_exeext; then
10007 eval "$as_ac_var=yes"
10008else
10009 echo "$as_me: failed program was:" >&5
10010sed 's/^/| /' conftest.$ac_ext >&5
10011
10012 eval "$as_ac_var=no"
10013fi
10014
10015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10017fi
10018ac_res=`eval echo '${'$as_ac_var'}'`
10019 { echo "$as_me:$LINENO: result: $ac_res" >&5
10020echo "${ECHO_T}$ac_res" >&6; }
10021if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10024_ACEOF
10025 haveselect=yes
10026else
10027 haveselect=no
10028fi
10029done
10030
10031 if test "x$haveselect" = "xyes" ; then
10032 SELECT_TYPE="select"
10033 fi
10034fi
10035
10036if test ! "x$use_poll" = "xno"; then
10037
10038for ac_func in poll
10039do
10040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10041{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10043if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10045else
10046 cat >conftest.$ac_ext <<_ACEOF
10047/* confdefs.h. */
10048_ACEOF
10049cat confdefs.h >>conftest.$ac_ext
10050cat >>conftest.$ac_ext <<_ACEOF
10051/* end confdefs.h. */
10052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10054#define $ac_func innocuous_$ac_func
10055
10056/* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char $ac_func (); below.
10058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10059 <limits.h> exists even on freestanding compilers. */
10060
10061#ifdef __STDC__
10062# include <limits.h>
10063#else
10064# include <assert.h>
10065#endif
10066
10067#undef $ac_func
10068
10069/* Override any GCC internal prototype to avoid an error.
10070 Use char because int might match the return type of a GCC
10071 builtin and then its argument prototype would still apply. */
10072#ifdef __cplusplus
10073extern "C"
10074#endif
10075char $ac_func ();
10076/* The GNU C library defines this for functions which it implements
10077 to always fail with ENOSYS. Some functions are actually named
10078 something starting with __ and the normal name is an alias. */
10079#if defined __stub_$ac_func || defined __stub___$ac_func
10080choke me
10081#endif
10082
10083int
10084main ()
10085{
10086return $ac_func ();
10087 ;
10088 return 0;
10089}
10090_ACEOF
10091rm -f conftest.$ac_objext conftest$ac_exeext
10092if { (ac_try="$ac_link"
10093case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_link") 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest$ac_exeext &&
10108 $as_test_x conftest$ac_exeext; then
10109 eval "$as_ac_var=yes"
10110else
10111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 eval "$as_ac_var=no"
10115fi
10116
10117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10118 conftest$ac_exeext conftest.$ac_ext
10119fi
10120ac_res=`eval echo '${'$as_ac_var'}'`
10121 { echo "$as_me:$LINENO: result: $ac_res" >&5
10122echo "${ECHO_T}$ac_res" >&6; }
10123if test `eval echo '${'$as_ac_var'}'` = yes; then
10124 cat >>confdefs.h <<_ACEOF
10125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10126_ACEOF
10127 havepoll=yes
10128else
10129 havepoll=no
10130fi
10131done
10132
10133 if test "x$havepoll" = "xyes" ; then
10134 SELECT_TYPE="poll"
10135 fi
10136fi
10137
10138if test ! "x$use_kqueue" = "xno"; then
10139
10140for ac_func in kevent
10141do
10142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10143{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10145if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148 cat >conftest.$ac_ext <<_ACEOF
10149/* confdefs.h. */
10150_ACEOF
10151cat confdefs.h >>conftest.$ac_ext
10152cat >>conftest.$ac_ext <<_ACEOF
10153/* end confdefs.h. */
10154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10156#define $ac_func innocuous_$ac_func
10157
10158/* System header to define __stub macros and hopefully few prototypes,
10159 which can conflict with char $ac_func (); below.
10160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10161 <limits.h> exists even on freestanding compilers. */
10162
10163#ifdef __STDC__
10164# include <limits.h>
10165#else
10166# include <assert.h>
10167#endif
10168
10169#undef $ac_func
10170
10171/* Override any GCC internal prototype to avoid an error.
10172 Use char because int might match the return type of a GCC
10173 builtin and then its argument prototype would still apply. */
10174#ifdef __cplusplus
10175extern "C"
10176#endif
10177char $ac_func ();
10178/* The GNU C library defines this for functions which it implements
10179 to always fail with ENOSYS. Some functions are actually named
10180 something starting with __ and the normal name is an alias. */
10181#if defined __stub_$ac_func || defined __stub___$ac_func
10182choke me
10183#endif
10184
10185int
10186main ()
10187{
10188return $ac_func ();
10189 ;
10190 return 0;
10191}
10192_ACEOF
10193rm -f conftest.$ac_objext conftest$ac_exeext
10194if { (ac_try="$ac_link"
10195case "(($ac_try" in
10196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197 *) ac_try_echo=$ac_try;;
10198esac
10199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200 (eval "$ac_link") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest$ac_exeext &&
10210 $as_test_x conftest$ac_exeext; then
10211 eval "$as_ac_var=yes"
10212else
10213 echo "$as_me: failed program was:" >&5
10214sed 's/^/| /' conftest.$ac_ext >&5
10215
10216 eval "$as_ac_var=no"
10217fi
10218
10219rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10220 conftest$ac_exeext conftest.$ac_ext
10221fi
10222ac_res=`eval echo '${'$as_ac_var'}'`
10223 { echo "$as_me:$LINENO: result: $ac_res" >&5
10224echo "${ECHO_T}$ac_res" >&6; }
10225if test `eval echo '${'$as_ac_var'}'` = yes; then
10226 cat >>confdefs.h <<_ACEOF
10227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10228_ACEOF
10229 havekqueue=yes
10230else
10231 havekqueue=no
10232fi
10233done
10234
10235 if test "x$havekqueue" = "xyes" ; then
10236 SELECT_TYPE="kqueue"
10237 fi
10238fi
10239
10240if test ! "x$use_epoll" = "xno"; then
10241
10242for ac_func in epoll_ctl
10243do
10244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10245{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10247if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10249else
10250 cat >conftest.$ac_ext <<_ACEOF
10251/* confdefs.h. */
10252_ACEOF
10253cat confdefs.h >>conftest.$ac_ext
10254cat >>conftest.$ac_ext <<_ACEOF
10255/* end confdefs.h. */
10256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10258#define $ac_func innocuous_$ac_func
10259
10260/* System header to define __stub macros and hopefully few prototypes,
10261 which can conflict with char $ac_func (); below.
10262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263 <limits.h> exists even on freestanding compilers. */
10264
10265#ifdef __STDC__
10266# include <limits.h>
10267#else
10268# include <assert.h>
10269#endif
10270
10271#undef $ac_func
10272
10273/* Override any GCC internal prototype to avoid an error.
10274 Use char because int might match the return type of a GCC
10275 builtin and then its argument prototype would still apply. */
10276#ifdef __cplusplus
10277extern "C"
10278#endif
10279char $ac_func ();
10280/* The GNU C library defines this for functions which it implements
10281 to always fail with ENOSYS. Some functions are actually named
10282 something starting with __ and the normal name is an alias. */
10283#if defined __stub_$ac_func || defined __stub___$ac_func
10284choke me
10285#endif
10286
10287int
10288main ()
10289{
10290return $ac_func ();
10291 ;
10292 return 0;
10293}
10294_ACEOF
10295rm -f conftest.$ac_objext conftest$ac_exeext
10296if { (ac_try="$ac_link"
10297case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10300esac
10301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_link") 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest$ac_exeext &&
10312 $as_test_x conftest$ac_exeext; then
10313 eval "$as_ac_var=yes"
10314else
10315 echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 eval "$as_ac_var=no"
10319fi
10320
10321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10322 conftest$ac_exeext conftest.$ac_ext
10323fi
10324ac_res=`eval echo '${'$as_ac_var'}'`
10325 { echo "$as_me:$LINENO: result: $ac_res" >&5
10326echo "${ECHO_T}$ac_res" >&6; }
10327if test `eval echo '${'$as_ac_var'}'` = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10330_ACEOF
10331 haveepoll=yes
10332else
10333 haveepoll=no
10334fi
10335done
10336
10337 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10338 if test "x$haveepoll" = "xyes" ; then
10339 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10340echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
10341 if test "$cross_compiling" = yes; then
10342 { echo "$as_me:$LINENO: result: no" >&5
10343echo "${ECHO_T}no" >&6; }
10344else
10345 cat >conftest.$ac_ext <<_ACEOF
10346/* confdefs.h. */
10347_ACEOF
10348cat confdefs.h >>conftest.$ac_ext
10349cat >>conftest.$ac_ext <<_ACEOF
10350/* end confdefs.h. */
10351#include <stdint.h>
10352#include <sys/param.h>
10353#include <sys/types.h>
10354#include <sys/epoll.h>
10355#include <sys/syscall.h>
10356#include <unistd.h>
10357
10358int
10359main(int argc, char **argv)
10360{
10361 int epfd;
10362
10363 epfd = epoll_create(256);
10364 return (epfd == -1 ? 1 : 0);
10365}
10366_ACEOF
10367rm -f conftest$ac_exeext
10368if { (ac_try="$ac_link"
10369case "(($ac_try" in
10370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371 *) ac_try_echo=$ac_try;;
10372esac
10373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374 (eval "$ac_link") 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10378 { (case "(($ac_try" in
10379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10380 *) ac_try_echo=$ac_try;;
10381esac
10382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10383 (eval "$ac_try") 2>&5
10384 ac_status=$?
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 { echo "$as_me:$LINENO: result: yes" >&5
10388echo "${ECHO_T}yes" >&6; }
10389
10390cat >>confdefs.h <<\_ACEOF
10391#define HAVE_EPOLL 1
10392_ACEOF
10393
10394 SELECT_TYPE="epoll"
10395else
10396 echo "$as_me: program exited with status $ac_status" >&5
10397echo "$as_me: failed program was:" >&5
10398sed 's/^/| /' conftest.$ac_ext >&5
10399
10400( exit $ac_status )
10401{ echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6; }
10403fi
10404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10405fi
10406
10407
10408 fi
10409 fi
10410
10411haveepollsyscall=no
10412
10413if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10414 if test "x$haveepoll" = "xno" ; then
10415 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10416echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
10417 if test "$cross_compiling" = yes; then
10418 { echo "$as_me:$LINENO: result: no" >&5
10419echo "${ECHO_T}no" >&6; }
10420else
10421 cat >conftest.$ac_ext <<_ACEOF
10422/* confdefs.h. */
10423_ACEOF
10424cat confdefs.h >>conftest.$ac_ext
10425cat >>conftest.$ac_ext <<_ACEOF
10426/* end confdefs.h. */
10427#include <stdint.h>
10428#include <sys/param.h>
10429#include <sys/types.h>
10430#include <sys/epoll.h>
10431#include <sys/syscall.h>
10432#include <unistd.h>
10433
10434int
10435epoll_create(int size)
10436{
10437 return (syscall(__NR_epoll_create, size));
10438}
10439
10440int
10441main(int argc, char **argv)
10442{
10443 int epfd;
10444
10445 epfd = epoll_create(256);
10446 exit (epfd == -1 ? 1 : 0);
10447}
10448_ACEOF
10449rm -f conftest$ac_exeext
10450if { (ac_try="$ac_link"
10451case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454esac
10455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>&5
10457 ac_status=$?
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10460 { (case "(($ac_try" in
10461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462 *) ac_try_echo=$ac_try;;
10463esac
10464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10465 (eval "$ac_try") 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; }; then
10469 { echo "$as_me:$LINENO: result: yes" >&5
10470echo "${ECHO_T}yes" >&6; }
10471
10472cat >>confdefs.h <<\_ACEOF
10473#define HAVE_EPOLL 1
10474_ACEOF
10475
10476 SELECT_TYPE="epoll"
10477else
10478 echo "$as_me: program exited with status $ac_status" >&5
10479echo "$as_me: failed program was:" >&5
10480sed 's/^/| /' conftest.$ac_ext >&5
10481
10482( exit $ac_status )
10483{ echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6; }
10485fi
10486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10487fi
10488
10489
10490 fi
10491fi
10492
10493fi
10494
10495fi
10496
10497if test -z "$SELECT_TYPE"; then
10498 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10499echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10500 { (exit 1); exit 1; }; }
10501fi
10502
10503echo "Using $SELECT_TYPE for select loop."
10504
10505
10506cat >>confdefs.h <<_ACEOF
10507#define SELECT_TYPE "$SELECT_TYPE"
10508_ACEOF
10509
10510
10511
10512
10513
10514# Check whether --enable-assert was given.
10515if test "${enable_assert+set}" = set; then
10516 enableval=$enable_assert; assert=$enableval
10517else
10518 assert=no
10519fi
10520
10521
10522if test "$assert" = no; then
10523
10524cat >>confdefs.h <<\_ACEOF
10525#define NDEBUG 1
10526_ACEOF
10527
10528elif test "$assert" = soft; then
10529
10530cat >>confdefs.h <<\_ACEOF
10531#define SOFT_ASSERT 1
10532_ACEOF
10533
10534
10535cat >>confdefs.h <<\_ACEOF
10536#define NDEBUG 1
10537_ACEOF
10538
10539elif test "$assert" = yes; then
10540 assert = "hard";
10541fi
10542
10543{ echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10544echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10545# Check whether --enable-iodebug was given.
10546if test "${enable_iodebug+set}" = set; then
10547 enableval=$enable_iodebug; iodebug=$enableval
10548else
10549 iodebug=no
10550fi
10551
10552
10553if test "$iodebug" = yes; then
10554
10555cat >>confdefs.h <<\_ACEOF
10556#define USE_IODEBUG_HOOKS 1
10557_ACEOF
10558
10559 { echo "$as_me:$LINENO: result: yes" >&5
10560echo "${ECHO_T}yes" >&6; }
10561else
10562 { echo "$as_me:$LINENO: result: no" >&5
10563echo "${ECHO_T}no" >&6; }
10564fi
10565
10566
10567{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10568echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10569# Check whether --enable-profile was given.
10570if test "${enable_profile+set}" = set; then
10571 enableval=$enable_profile; profile=$enableval
10572else
10573 profile=no
10574fi
10575
10576
10577if test "$profile" = yes; then
10578 if test "$ac_cv_c_compiler_gnu" = yes; then
10579 IRC_CFLAGS="$IRC_CFLAGS -pg"
10580 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10581echo "${ECHO_T}yes, adding -pg" >&6; }
10582
10583cat >>confdefs.h <<\_ACEOF
10584#define CHARYBDIS_PROFILE 1
10585_ACEOF
10586
10587 else
10588 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10589echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
10590 fi
10591else
10592 { echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6; }
10594fi
10595
10596# Check whether --enable-balloc was given.
10597if test "${enable_balloc+set}" = set; then
10598 enableval=$enable_balloc; balloc=$enableval
10599else
10600 balloc=yes
10601fi
10602
10603
10604if test "$balloc" = no; then
10605
10606cat >>confdefs.h <<\_ACEOF
10607#define NOBALLOC 1
10608_ACEOF
10609
10610fi
10611
10612# Check whether --enable-small-net was given.
10613if test "${enable_small_net+set}" = set; then
10614 enableval=$enable_small_net; small_net=$enableval
10615else
10616 small_net=no
10617fi
10618
10619
10620if test "$small_net" = yes; then
10621
10622cat >>confdefs.h <<\_ACEOF
10623#define NICKNAMEHISTORYLENGTH 1500
10624_ACEOF
10625
10626
10627cat >>confdefs.h <<\_ACEOF
10628#define CHANNEL_HEAP_SIZE 256
10629_ACEOF
10630
10631
10632cat >>confdefs.h <<\_ACEOF
10633#define BAN_HEAP_SIZE 128
10634_ACEOF
10635
10636
10637cat >>confdefs.h <<\_ACEOF
10638#define CLIENT_HEAP_SIZE 256
10639_ACEOF
10640
10641
10642cat >>confdefs.h <<\_ACEOF
10643#define LCLIENT_HEAP_SIZE 128
10644_ACEOF
10645
10646
10647cat >>confdefs.h <<\_ACEOF
10648#define PCLIENT_HEAP_SIZE 32
10649_ACEOF
10650
10651
10652cat >>confdefs.h <<\_ACEOF
10653#define USER_HEAP_SIZE 128
10654_ACEOF
10655
10656
10657cat >>confdefs.h <<\_ACEOF
10658#define DNODE_HEAP_SIZE 256
10659_ACEOF
10660
10661
10662cat >>confdefs.h <<\_ACEOF
10663#define TOPIC_HEAP_SIZE 256
10664_ACEOF
10665
10666
10667cat >>confdefs.h <<\_ACEOF
10668#define LINEBUF_HEAP_SIZE 128
10669_ACEOF
10670
10671
10672cat >>confdefs.h <<\_ACEOF
10673#define MEMBER_HEAP_SIZE 256
10674_ACEOF
10675
10676
10677cat >>confdefs.h <<\_ACEOF
10678#define ND_HEAP_SIZE 128
10679_ACEOF
10680
10681
10682cat >>confdefs.h <<\_ACEOF
10683#define CONFITEM_HEAP_SIZE 128
10684_ACEOF
10685
10686
10687cat >>confdefs.h <<\_ACEOF
10688#define MONITOR_HEAP_SIZE 128
10689_ACEOF
10690
10691
10692cat >>confdefs.h <<\_ACEOF
10693#define FD_HEAP_SIZE 128
10694_ACEOF
10695
10696
10697cat >>confdefs.h <<\_ACEOF
10698#define AWAY_HEAP_SIZE 128
10699_ACEOF
10700
10701else
10702
10703cat >>confdefs.h <<\_ACEOF
10704#define NICKNAMEHISTORYLENGTH 15000
10705_ACEOF
10706
10707
10708cat >>confdefs.h <<\_ACEOF
10709#define CHANNEL_HEAP_SIZE 8192
10710_ACEOF
10711
10712
10713cat >>confdefs.h <<\_ACEOF
10714#define BAN_HEAP_SIZE 4096
10715_ACEOF
10716
10717
10718cat >>confdefs.h <<\_ACEOF
10719#define CLIENT_HEAP_SIZE 8192
10720_ACEOF
10721
10722
10723cat >>confdefs.h <<\_ACEOF
10724#define LCLIENT_HEAP_SIZE 1024
10725_ACEOF
10726
10727
10728cat >>confdefs.h <<\_ACEOF
10729#define PCLIENT_HEAP_SIZE 256
10730_ACEOF
10731
10732
10733cat >>confdefs.h <<\_ACEOF
10734#define USER_HEAP_SIZE 8192
10735_ACEOF
10736
10737
10738cat >>confdefs.h <<\_ACEOF
10739#define DNODE_HEAP_SIZE 8192
10740_ACEOF
10741
10742
10743cat >>confdefs.h <<\_ACEOF
10744#define TOPIC_HEAP_SIZE 4096
10745_ACEOF
10746
10747
10748cat >>confdefs.h <<\_ACEOF
10749#define LINEBUF_HEAP_SIZE 2048
10750_ACEOF
10751
10752
10753cat >>confdefs.h <<\_ACEOF
10754#define MEMBER_HEAP_SIZE 32768
10755_ACEOF
10756
10757
10758cat >>confdefs.h <<\_ACEOF
10759#define ND_HEAP_SIZE 512
10760_ACEOF
10761
10762
10763cat >>confdefs.h <<\_ACEOF
10764#define CONFITEM_HEAP_SIZE 256
10765_ACEOF
10766
10767
10768cat >>confdefs.h <<\_ACEOF
10769#define MONITOR_HEAP_SIZE 1024
10770_ACEOF
10771
10772
10773cat >>confdefs.h <<\_ACEOF
10774#define FD_HEAP_SIZE 1024
10775_ACEOF
10776
10777
10778cat >>confdefs.h <<\_ACEOF
10779#define AWAY_HEAP_SIZE 512
10780_ACEOF
10781
10782fi
10783
10784
10785# Check whether --with-nicklen was given.
10786if test "${with_nicklen+set}" = set; then
10787 withval=$with_nicklen;
10788 if ! expr "$withval" + 0 >/dev/null 2>&1; then
10789 { { echo "$as_me:$LINENO: error: NICKLEN must be a numeric value" >&5
10790echo "$as_me: error: NICKLEN must be a numeric value" >&2;}
10791 { (exit 1); exit 1; }; }
10792 fi
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
10796echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
10797 else
10798 NICKLEN="$withval"
10799 fi
10800
10801else
10802 NICKLEN=15
10803fi
10804
10805
10806
10807# Check whether --with-topiclen was given.
10808if 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
10813echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
10814 else
10815 TOPICLEN=$withval
10816 fi
10817
10818else
10819 TOPICLEN=390
10820fi
10821
10822
10823
10824cat >>confdefs.h <<_ACEOF
10825#define TOPICLEN ${TOPICLEN}
10826_ACEOF
10827
10828
10829cat >>confdefs.h <<_ACEOF
10830#define NICKLEN (${NICKLEN}+1)
10831_ACEOF
10832
10833
10834shared_modules="yes"
10835if test "$shared_modules" = yes; then
10836 if test "$CC" = tcc -a "$TenDRA" = "no"; then
10837 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
10838echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
10839 shared_modules="no"
10840 fi
10841fi
10842
10843if test "$shared_modules" = yes; then
10844 DYNLINK_C=dynlink.c
10845
10846for ac_header in dlfcn.h
10847do
10848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854fi
10855ac_res=`eval echo '${'$as_ac_Header'}'`
10856 { echo "$as_me:$LINENO: result: $ac_res" >&5
10857echo "${ECHO_T}$ac_res" >&6; }
10858else
10859 # Is the header compilable?
10860{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10862cat >conftest.$ac_ext <<_ACEOF
10863/* confdefs.h. */
10864_ACEOF
10865cat confdefs.h >>conftest.$ac_ext
10866cat >>conftest.$ac_ext <<_ACEOF
10867/* end confdefs.h. */
10868$ac_includes_default
10869#include <$ac_header>
10870_ACEOF
10871rm -f conftest.$ac_objext
10872if { (ac_try="$ac_compile"
10873case "(($ac_try" in
10874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875 *) ac_try_echo=$ac_try;;
10876esac
10877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878 (eval "$ac_compile") 2>conftest.er1
10879 ac_status=$?
10880 grep -v '^ *+' conftest.er1 >conftest.err
10881 rm -f conftest.er1
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } && {
10885 test -z "$ac_c_werror_flag" ||
10886 test ! -s conftest.err
10887 } && test -s conftest.$ac_objext; then
10888 ac_header_compiler=yes
10889else
10890 echo "$as_me: failed program was:" >&5
10891sed 's/^/| /' conftest.$ac_ext >&5
10892
10893 ac_header_compiler=no
10894fi
10895
10896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10898echo "${ECHO_T}$ac_header_compiler" >&6; }
10899
10900# Is the header present?
10901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10903cat >conftest.$ac_ext <<_ACEOF
10904/* confdefs.h. */
10905_ACEOF
10906cat confdefs.h >>conftest.$ac_ext
10907cat >>conftest.$ac_ext <<_ACEOF
10908/* end confdefs.h. */
10909#include <$ac_header>
10910_ACEOF
10911if { (ac_try="$ac_cpp conftest.$ac_ext"
10912case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } >/dev/null && {
10924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 }; then
10927 ac_header_preproc=yes
10928else
10929 echo "$as_me: failed program was:" >&5
10930sed 's/^/| /' conftest.$ac_ext >&5
10931
10932 ac_header_preproc=no
10933fi
10934
10935rm -f conftest.err conftest.$ac_ext
10936{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10937echo "${ECHO_T}$ac_header_preproc" >&6; }
10938
10939# So? What about this header?
10940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10941 yes:no: )
10942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10946 ac_header_preproc=yes
10947 ;;
10948 no:yes:* )
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10961
10962 ;;
10963esac
10964{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10965echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10966if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10968else
10969 eval "$as_ac_Header=\$ac_header_preproc"
10970fi
10971ac_res=`eval echo '${'$as_ac_Header'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973echo "${ECHO_T}$ac_res" >&6; }
10974
10975fi
10976if test `eval echo '${'$as_ac_Header'}'` = yes; then
10977 cat >>confdefs.h <<_ACEOF
10978#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10979_ACEOF
10980
10981fi
10982
10983done
10984
10985 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10986echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
10987if test "${ac_cv_search_shl_load+set}" = set; then
10988 echo $ECHO_N "(cached) $ECHO_C" >&6
10989else
10990 ac_func_search_save_LIBS=$LIBS
10991cat >conftest.$ac_ext <<_ACEOF
10992/* confdefs.h. */
10993_ACEOF
10994cat confdefs.h >>conftest.$ac_ext
10995cat >>conftest.$ac_ext <<_ACEOF
10996/* end confdefs.h. */
10997
10998/* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001#ifdef __cplusplus
11002extern "C"
11003#endif
11004char shl_load ();
11005int
11006main ()
11007{
11008return shl_load ();
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013for ac_lib in '' dld; do
11014 if test -z "$ac_lib"; then
11015 ac_res="none required"
11016 else
11017 ac_res=-l$ac_lib
11018 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11019 fi
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021if { (ac_try="$ac_link"
11022case "(($ac_try" in
11023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024 *) ac_try_echo=$ac_try;;
11025esac
11026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027 (eval "$ac_link") 2>conftest.er1
11028 ac_status=$?
11029 grep -v '^ *+' conftest.er1 >conftest.err
11030 rm -f conftest.er1
11031 cat conftest.err >&5
11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033 (exit $ac_status); } && {
11034 test -z "$ac_c_werror_flag" ||
11035 test ! -s conftest.err
11036 } && test -s conftest$ac_exeext &&
11037 $as_test_x conftest$ac_exeext; then
11038 ac_cv_search_shl_load=$ac_res
11039else
11040 echo "$as_me: failed program was:" >&5
11041sed 's/^/| /' conftest.$ac_ext >&5
11042
11043
11044fi
11045
11046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11047 conftest$ac_exeext
11048 if test "${ac_cv_search_shl_load+set}" = set; then
11049 break
11050fi
11051done
11052if test "${ac_cv_search_shl_load+set}" = set; then
11053 :
11054else
11055 ac_cv_search_shl_load=no
11056fi
11057rm conftest.$ac_ext
11058LIBS=$ac_func_search_save_LIBS
11059fi
11060{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11061echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11062ac_res=$ac_cv_search_shl_load
11063if test "$ac_res" != no; then
11064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11065
11066
11067cat >>confdefs.h <<\_ACEOF
11068#define HAVE_SHL_LOAD 1
11069_ACEOF
11070
11071 SUFFIX=".sl"
11072 MOD_TARGET=hpux_shared
11073 SEDOBJ="s/\.o/.sl/g"
11074
11075else
11076
11077 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11078echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11079if test "${ac_cv_search_dlopen+set}" = set; then
11080 echo $ECHO_N "(cached) $ECHO_C" >&6
11081else
11082 ac_func_search_save_LIBS=$LIBS
11083cat >conftest.$ac_ext <<_ACEOF
11084/* confdefs.h. */
11085_ACEOF
11086cat confdefs.h >>conftest.$ac_ext
11087cat >>conftest.$ac_ext <<_ACEOF
11088/* end confdefs.h. */
11089
11090/* Override any GCC internal prototype to avoid an error.
11091 Use char because int might match the return type of a GCC
11092 builtin and then its argument prototype would still apply. */
11093#ifdef __cplusplus
11094extern "C"
11095#endif
11096char dlopen ();
11097int
11098main ()
11099{
11100return dlopen ();
11101 ;
11102 return 0;
11103}
11104_ACEOF
11105for ac_lib in '' dl c_r; do
11106 if test -z "$ac_lib"; then
11107 ac_res="none required"
11108 else
11109 ac_res=-l$ac_lib
11110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11111 fi
11112 rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_c_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest$ac_exeext &&
11129 $as_test_x conftest$ac_exeext; then
11130 ac_cv_search_dlopen=$ac_res
11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
11135
11136fi
11137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11139 conftest$ac_exeext
11140 if test "${ac_cv_search_dlopen+set}" = set; then
11141 break
11142fi
11143done
11144if test "${ac_cv_search_dlopen+set}" = set; then
11145 :
11146else
11147 ac_cv_search_dlopen=no
11148fi
11149rm conftest.$ac_ext
11150LIBS=$ac_func_search_save_LIBS
11151fi
11152{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11153echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11154ac_res=$ac_cv_search_dlopen
11155if test "$ac_res" != no; then
11156 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11157
11158
11159cat >>confdefs.h <<\_ACEOF
11160#define HAVE_DLOPEN 1
11161_ACEOF
11162
11163 SUFFIX=".so"
11164 MOD_TARGET=shared_modules
11165 SEDOBJ="s/\.o/.so/g"
11166 if test "$AppleGCC" = yes; then
11167
11168for ac_header in mach-o/dyld.h
11169do
11170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11173echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11174if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11176fi
11177ac_res=`eval echo '${'$as_ac_Header'}'`
11178 { echo "$as_me:$LINENO: result: $ac_res" >&5
11179echo "${ECHO_T}$ac_res" >&6; }
11180else
11181 # Is the header compilable?
11182{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11184cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h. */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h. */
11190$ac_includes_default
11191#include <$ac_header>
11192_ACEOF
11193rm -f conftest.$ac_objext
11194if { (ac_try="$ac_compile"
11195case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11198esac
11199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && {
11207 test -z "$ac_c_werror_flag" ||
11208 test ! -s conftest.err
11209 } && test -s conftest.$ac_objext; then
11210 ac_header_compiler=yes
11211else
11212 echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_header_compiler=no
11216fi
11217
11218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11220echo "${ECHO_T}$ac_header_compiler" >&6; }
11221
11222# Is the header present?
11223{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11224echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11225cat >conftest.$ac_ext <<_ACEOF
11226/* confdefs.h. */
11227_ACEOF
11228cat confdefs.h >>conftest.$ac_ext
11229cat >>conftest.$ac_ext <<_ACEOF
11230/* end confdefs.h. */
11231#include <$ac_header>
11232_ACEOF
11233if { (ac_try="$ac_cpp conftest.$ac_ext"
11234case "(($ac_try" in
11235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11237esac
11238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11240 ac_status=$?
11241 grep -v '^ *+' conftest.er1 >conftest.err
11242 rm -f conftest.er1
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } >/dev/null && {
11246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 }; then
11249 ac_header_preproc=yes
11250else
11251 echo "$as_me: failed program was:" >&5
11252sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_header_preproc=no
11255fi
11256
11257rm -f conftest.err conftest.$ac_ext
11258{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11259echo "${ECHO_T}$ac_header_preproc" >&6; }
11260
11261# So? What about this header?
11262case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11263 yes:no: )
11264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11265echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11267echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11268 ac_header_preproc=yes
11269 ;;
11270 no:yes:* )
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11272echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11274echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11276echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11278echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11280echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11282echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11283
11284 ;;
11285esac
11286{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 eval "$as_ac_Header=\$ac_header_preproc"
11292fi
11293ac_res=`eval echo '${'$as_ac_Header'}'`
11294 { echo "$as_me:$LINENO: result: $ac_res" >&5
11295echo "${ECHO_T}$ac_res" >&6; }
11296
11297fi
11298if test `eval echo '${'$as_ac_Header'}'` = yes; then
11299 cat >>confdefs.h <<_ACEOF
11300#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11301_ACEOF
11302
11303fi
11304
11305done
11306
11307 fi
11308 { echo "$as_me:$LINENO: checking for dlsym" >&5
11309echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
11310if test "${ac_cv_func_dlsym+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313 cat >conftest.$ac_ext <<_ACEOF
11314/* confdefs.h. */
11315_ACEOF
11316cat confdefs.h >>conftest.$ac_ext
11317cat >>conftest.$ac_ext <<_ACEOF
11318/* end confdefs.h. */
11319/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11321#define dlsym innocuous_dlsym
11322
11323/* System header to define __stub macros and hopefully few prototypes,
11324 which can conflict with char dlsym (); below.
11325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326 <limits.h> exists even on freestanding compilers. */
11327
11328#ifdef __STDC__
11329# include <limits.h>
11330#else
11331# include <assert.h>
11332#endif
11333
11334#undef dlsym
11335
11336/* Override any GCC internal prototype to avoid an error.
11337 Use char because int might match the return type of a GCC
11338 builtin and then its argument prototype would still apply. */
11339#ifdef __cplusplus
11340extern "C"
11341#endif
11342char dlsym ();
11343/* The GNU C library defines this for functions which it implements
11344 to always fail with ENOSYS. Some functions are actually named
11345 something starting with __ and the normal name is an alias. */
11346#if defined __stub_dlsym || defined __stub___dlsym
11347choke me
11348#endif
11349
11350int
11351main ()
11352{
11353return dlsym ();
11354 ;
11355 return 0;
11356}
11357_ACEOF
11358rm -f conftest.$ac_objext conftest$ac_exeext
11359if { (ac_try="$ac_link"
11360case "(($ac_try" in
11361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11362 *) ac_try_echo=$ac_try;;
11363esac
11364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11365 (eval "$ac_link") 2>conftest.er1
11366 ac_status=$?
11367 grep -v '^ *+' conftest.er1 >conftest.err
11368 rm -f conftest.er1
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } && {
11372 test -z "$ac_c_werror_flag" ||
11373 test ! -s conftest.err
11374 } && test -s conftest$ac_exeext &&
11375 $as_test_x conftest$ac_exeext; then
11376 ac_cv_func_dlsym=yes
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
11381 ac_cv_func_dlsym=no
11382fi
11383
11384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11385 conftest$ac_exeext conftest.$ac_ext
11386fi
11387{ echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11388echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
11389if test $ac_cv_func_dlsym = yes; then
11390 :
11391else
11392
11393 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11394echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11395 shared_modules=no
11396
11397fi
11398
11399
11400for ac_func in dlfunc
11401do
11402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11403{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11405if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11406 echo $ECHO_N "(cached) $ECHO_C" >&6
11407else
11408 cat >conftest.$ac_ext <<_ACEOF
11409/* confdefs.h. */
11410_ACEOF
11411cat confdefs.h >>conftest.$ac_ext
11412cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */
11414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11416#define $ac_func innocuous_$ac_func
11417
11418/* System header to define __stub macros and hopefully few prototypes,
11419 which can conflict with char $ac_func (); below.
11420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11421 <limits.h> exists even on freestanding compilers. */
11422
11423#ifdef __STDC__
11424# include <limits.h>
11425#else
11426# include <assert.h>
11427#endif
11428
11429#undef $ac_func
11430
11431/* Override any GCC internal prototype to avoid an error.
11432 Use char because int might match the return type of a GCC
11433 builtin and then its argument prototype would still apply. */
11434#ifdef __cplusplus
11435extern "C"
11436#endif
11437char $ac_func ();
11438/* The GNU C library defines this for functions which it implements
11439 to always fail with ENOSYS. Some functions are actually named
11440 something starting with __ and the normal name is an alias. */
11441#if defined __stub_$ac_func || defined __stub___$ac_func
11442choke me
11443#endif
11444
11445int
11446main ()
11447{
11448return $ac_func ();
11449 ;
11450 return 0;
11451}
11452_ACEOF
11453rm -f conftest.$ac_objext conftest$ac_exeext
11454if { (ac_try="$ac_link"
11455case "(($ac_try" in
11456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457 *) ac_try_echo=$ac_try;;
11458esac
11459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460 (eval "$ac_link") 2>conftest.er1
11461 ac_status=$?
11462 grep -v '^ *+' conftest.er1 >conftest.err
11463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } && {
11467 test -z "$ac_c_werror_flag" ||
11468 test ! -s conftest.err
11469 } && test -s conftest$ac_exeext &&
11470 $as_test_x conftest$ac_exeext; then
11471 eval "$as_ac_var=yes"
11472else
11473 echo "$as_me: failed program was:" >&5
11474sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 eval "$as_ac_var=no"
11477fi
11478
11479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11480 conftest$ac_exeext conftest.$ac_ext
11481fi
11482ac_res=`eval echo '${'$as_ac_var'}'`
11483 { echo "$as_me:$LINENO: result: $ac_res" >&5
11484echo "${ECHO_T}$ac_res" >&6; }
11485if test `eval echo '${'$as_ac_var'}'` = yes; then
11486 cat >>confdefs.h <<_ACEOF
11487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11488_ACEOF
11489
11490fi
11491done
11492
11493
11494else
11495
11496 shared_modules=no
11497
11498fi
11499
11500
11501fi
11502
11503fi
11504
11505
11506cat >>confdefs.h <<_ACEOF
11507#define SHARED_SUFFIX "$SUFFIX"
11508_ACEOF
11509
11510
11511if test "$shared_modules" = yes; then
11512 # The GNU linker requires the -export-dynamic option to make
11513 # all symbols visible in the dynamic symbol table.
11514 hold_ldflags=$LDFLAGS
11515 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11516echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
11517 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11518 cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h. */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h. */
11524
11525int
11526main ()
11527{
11528int i;
11529 ;
11530 return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext conftest$ac_exeext
11534if { (ac_try="$ac_link"
11535case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538esac
11539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_link") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest$ac_exeext &&
11550 $as_test_x conftest$ac_exeext; then
11551 found=yes
11552else
11553 echo "$as_me: failed program was:" >&5
11554sed 's/^/| /' conftest.$ac_ext >&5
11555
11556 found=no
11557fi
11558
11559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11560 conftest$ac_exeext conftest.$ac_ext
11561 LDFLAGS=$hold_ldflags
11562
11563 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11564 found="no, IRIX ld uses -B,dynamic"
11565 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11566 fi
11567
11568 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11569 found="no, AIX ld uses -G -brtl"
11570 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11571 fi
11572
11573 { echo "$as_me:$LINENO: result: $found" >&5
11574echo "${ECHO_T}$found" >&6; }
11575
11576 if test "$found" = yes; then
11577 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11578 fi
11579
11580 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11581echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
11582 if test "$SGS" = "yes"; then
11583 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11584echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
11585 PICFLAGS="-KPIC -DPIC -G"
11586 fi
11587
11588 if test "$AppleGCC" = "yes"; then
11589 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11590echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
11591 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11592 fi
11593 if test "$HPUX" = "yes" -a "$CC" != gcc; then
11594 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11595echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
11596 PICFLAGS="+z -r -q -n -c"
11597 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11598echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
11599
11600 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
11601 { echo "$as_me:$LINENO: result: no" >&5
11602echo "${ECHO_T}no" >&6; }
11603 else
11604 { echo "$as_me:$LINENO: result: yes" >&5
11605echo "${ECHO_T}yes" >&6; }
11606 PICFLAGS="$PICFLAGS +ESfic"
11607 fi
11608
11609 LDFLAGS="${LDFLAGS} -Wl,-E"
11610 fi
11611 if test "$Tru" = yes -a "$CC" != gcc; then
11612 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11613echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
11614 PICFLAGS="-shared -expect_unresolved '*' "
11615 LDFLAGS="-call_shared"
11616 fi
11617 if test -z "$PICFLAGS"; then
11618 if test "$ac_cv_c_compiler_gnu" = "yes"; then
11619 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11620echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
11621 PICFLAGS="-fPIC -DPIC -shared"
11622 else
11623 { echo "$as_me:$LINENO: result: no" >&5
11624echo "${ECHO_T}no" >&6; }
11625 shared_modules=no
11626 fi
11627 fi
11628fi
11629
11630# rpath, for finding libratbox.so at run time
11631hold_ldflags=$LDFLAGS
11632{ echo "$as_me:$LINENO: checking for the ld -rpath flag" >&5
11633echo $ECHO_N "checking for the ld -rpath flag... $ECHO_C" >&6; }
11634LDFLAGS="${LDFLAGS} -Wl,-rpath=${libdir}"
11635cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
11641
11642int
11643main ()
11644{
11645int i;
11646 ;
11647 return 0;
11648}
11649_ACEOF
11650rm -f conftest.$ac_objext conftest$ac_exeext
11651if { (ac_try="$ac_link"
11652case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11655esac
11656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest$ac_exeext &&
11667 $as_test_x conftest$ac_exeext; then
11668 found=yes
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673 found=no
11674fi
11675
11676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11677 conftest$ac_exeext conftest.$ac_ext
11678LDFLAGS=$hold_ldflags
11679{ echo "$as_me:$LINENO: result: $found" >&5
11680echo "${ECHO_T}$found" >&6; }
11681if test "$found" = yes; then
11682 LDFLAGS="${LDFLAGS} -Wl,-rpath=\${libdir}"
11683fi
11684
11685# This must be down here, or it will mess up checks like the ones
11686# for -Wl,-export-dynamic
11687# -- jilles
11688CWARNS=""
11689# Check whether --enable-warnings was given.
11690if test "${enable_warnings+set}" = set; then
11691 enableval=$enable_warnings;
11692IRC_CFLAGS="$IRC_CFLAGS -O0"
11693CFLAGS="$IRC_CFLAGS"
11694
11695
11696 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11697echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
11698 if test "${GCC-no}" = yes
11699 then
11700 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703
11704 oldcflags="${CFLAGS-}"
11705 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11706 cat >conftest.$ac_ext <<_ACEOF
11707/* confdefs.h. */
11708_ACEOF
11709cat confdefs.h >>conftest.$ac_ext
11710cat >>conftest.$ac_ext <<_ACEOF
11711/* end confdefs.h. */
11712
11713#include <string.h>
11714#include <stdio.h>
11715int main(void);
11716
11717int
11718main ()
11719{
11720
11721 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11722
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727rm -f conftest.$ac_objext
11728if { (ac_try="$ac_compile"
11729case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732esac
11733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_compile") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest.$ac_objext; then
11744 charybdis_cv_c_gcc_w_all=yes
11745else
11746 echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749 charybdis_cv_c_gcc_w_all=no
11750fi
11751
11752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753 CFLAGS="${oldcflags}"
11754fi
11755
11756 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
11757 CWARNS="${CWARNS}-Wall "
11758 { echo "$as_me:$LINENO: result: ok" >&5
11759echo "${ECHO_T}ok" >&6; }
11760 else
11761 charybdis_cv_c_gcc_w_all=''
11762 { echo "$as_me:$LINENO: result: no" >&5
11763echo "${ECHO_T}no" >&6; }
11764 fi
11765 else
11766 { echo "$as_me:$LINENO: result: no" >&5
11767echo "${ECHO_T}no" >&6; }
11768 fi
11769
11770
11771 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
11772echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
11773 if test "${GCC-no}" = yes
11774 then
11775 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777else
11778
11779 oldcflags="${CFLAGS-}"
11780 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
11781 cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787
11788#include <string.h>
11789#include <stdio.h>
11790int main(void);
11791
11792int
11793main ()
11794{
11795
11796 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11797
11798 ;
11799 return 0;
11800}
11801_ACEOF
11802rm -f conftest.$ac_objext
11803if { (ac_try="$ac_compile"
11804case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807esac
11808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_compile") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest.$ac_objext; then
11819 charybdis_cv_c_gcc_w_pointer_arith=yes
11820else
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
11824 charybdis_cv_c_gcc_w_pointer_arith=no
11825fi
11826
11827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11828 CFLAGS="${oldcflags}"
11829fi
11830
11831 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
11832 CWARNS="${CWARNS}-Wpointer-arith "
11833 { echo "$as_me:$LINENO: result: ok" >&5
11834echo "${ECHO_T}ok" >&6; }
11835 else
11836 charybdis_cv_c_gcc_w_pointer_arith=''
11837 { echo "$as_me:$LINENO: result: no" >&5
11838echo "${ECHO_T}no" >&6; }
11839 fi
11840 else
11841 { echo "$as_me:$LINENO: result: no" >&5
11842echo "${ECHO_T}no" >&6; }
11843 fi
11844
11845
11846 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
11847echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
11848 if test "${GCC-no}" = yes
11849 then
11850 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else
11853
11854 oldcflags="${CFLAGS-}"
11855 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
11856 cat >conftest.$ac_ext <<_ACEOF
11857/* confdefs.h. */
11858_ACEOF
11859cat confdefs.h >>conftest.$ac_ext
11860cat >>conftest.$ac_ext <<_ACEOF
11861/* end confdefs.h. */
11862
11863#include <string.h>
11864#include <stdio.h>
11865int main(void);
11866
11867int
11868main ()
11869{
11870
11871 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11872
11873 ;
11874 return 0;
11875}
11876_ACEOF
11877rm -f conftest.$ac_objext
11878if { (ac_try="$ac_compile"
11879case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882esac
11883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_compile") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest.$ac_objext; then
11894 charybdis_cv_c_gcc_w_implicit=yes
11895else
11896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899 charybdis_cv_c_gcc_w_implicit=no
11900fi
11901
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 CFLAGS="${oldcflags}"
11904fi
11905
11906 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
11907 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
11908 { echo "$as_me:$LINENO: result: ok" >&5
11909echo "${ECHO_T}ok" >&6; }
11910 else
11911 charybdis_cv_c_gcc_w_implicit=''
11912 { echo "$as_me:$LINENO: result: no" >&5
11913echo "${ECHO_T}no" >&6; }
11914 fi
11915 else
11916 { echo "$as_me:$LINENO: result: no" >&5
11917echo "${ECHO_T}no" >&6; }
11918 fi
11919
11920
11921 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
11922echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
11923 if test "${GCC-no}" = yes
11924 then
11925 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927else
11928
11929 oldcflags="${CFLAGS-}"
11930 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
11931 cat >conftest.$ac_ext <<_ACEOF
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
11937
11938#include <string.h>
11939#include <stdio.h>
11940int main(void);
11941
11942int
11943main ()
11944{
11945
11946 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
11947
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952rm -f conftest.$ac_objext
11953if { (ac_try="$ac_compile"
11954case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957esac
11958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_compile") 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } && {
11966 test -z "$ac_c_werror_flag" ||
11967 test ! -s conftest.err
11968 } && test -s conftest.$ac_objext; then
11969 charybdis_cv_c_gcc_w_cast_align=yes
11970else
11971 echo "$as_me: failed program was:" >&5
11972sed 's/^/| /' conftest.$ac_ext >&5
11973
11974 charybdis_cv_c_gcc_w_cast_align=no
11975fi
11976
11977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11978 CFLAGS="${oldcflags}"
11979fi
11980
11981 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
11982 CWARNS="${CWARNS}-Wcast-align "
11983 { echo "$as_me:$LINENO: result: ok" >&5
11984echo "${ECHO_T}ok" >&6; }
11985 else
11986 charybdis_cv_c_gcc_w_cast_align=''
11987 { echo "$as_me:$LINENO: result: no" >&5
11988echo "${ECHO_T}no" >&6; }
11989 fi
11990 else
11991 { echo "$as_me:$LINENO: result: no" >&5
11992echo "${ECHO_T}no" >&6; }
11993 fi
11994
11995
11996 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
11997echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
11998 if test "${GCC-no}" = yes
11999 then
12000 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003
12004 oldcflags="${CFLAGS-}"
12005 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12006 cat >conftest.$ac_ext <<_ACEOF
12007/* confdefs.h. */
12008_ACEOF
12009cat confdefs.h >>conftest.$ac_ext
12010cat >>conftest.$ac_ext <<_ACEOF
12011/* end confdefs.h. */
12012
12013#include <string.h>
12014#include <stdio.h>
12015int main(void);
12016
12017int
12018main ()
12019{
12020
12021 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12022
12023 ;
12024 return 0;
12025}
12026_ACEOF
12027rm -f conftest.$ac_objext
12028if { (ac_try="$ac_compile"
12029case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032esac
12033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_compile") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest.$ac_objext; then
12044 charybdis_cv_c_gcc_w_cast_qual=yes
12045else
12046 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049 charybdis_cv_c_gcc_w_cast_qual=no
12050fi
12051
12052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053 CFLAGS="${oldcflags}"
12054fi
12055
12056 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12057 CWARNS="${CWARNS}-Wcast-qual "
12058 { echo "$as_me:$LINENO: result: ok" >&5
12059echo "${ECHO_T}ok" >&6; }
12060 else
12061 charybdis_cv_c_gcc_w_cast_qual=''
12062 { echo "$as_me:$LINENO: result: no" >&5
12063echo "${ECHO_T}no" >&6; }
12064 fi
12065 else
12066 { echo "$as_me:$LINENO: result: no" >&5
12067echo "${ECHO_T}no" >&6; }
12068 fi
12069
12070
12071 { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5
12072echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; }
12073 if test "${GCC-no}" = yes
12074 then
12075 if test "${charybdis_cv_c_gcc_w_write_strings+set}" = set; then
12076 echo $ECHO_N "(cached) $ECHO_C" >&6
12077else
12078
12079 oldcflags="${CFLAGS-}"
12080 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
12081 cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
12087
12088#include <string.h>
12089#include <stdio.h>
12090int main(void);
12091
12092int
12093main ()
12094{
12095
12096 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12097
12098 ;
12099 return 0;
12100}
12101_ACEOF
12102rm -f conftest.$ac_objext
12103if { (ac_try="$ac_compile"
12104case "(($ac_try" in
12105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106 *) ac_try_echo=$ac_try;;
12107esac
12108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12109 (eval "$ac_compile") 2>conftest.er1
12110 ac_status=$?
12111 grep -v '^ *+' conftest.er1 >conftest.err
12112 rm -f conftest.er1
12113 cat conftest.err >&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && {
12116 test -z "$ac_c_werror_flag" ||
12117 test ! -s conftest.err
12118 } && test -s conftest.$ac_objext; then
12119 charybdis_cv_c_gcc_w_write_strings=yes
12120else
12121 echo "$as_me: failed program was:" >&5
12122sed 's/^/| /' conftest.$ac_ext >&5
12123
12124 charybdis_cv_c_gcc_w_write_strings=no
12125fi
12126
12127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128 CFLAGS="${oldcflags}"
12129fi
12130
12131 if test "x$charybdis_cv_c_gcc_w_write_strings" = xyes; then
12132 CWARNS="${CWARNS}-Wwrite-strings "
12133 { echo "$as_me:$LINENO: result: ok" >&5
12134echo "${ECHO_T}ok" >&6; }
12135 else
12136 charybdis_cv_c_gcc_w_write_strings=''
12137 { echo "$as_me:$LINENO: result: no" >&5
12138echo "${ECHO_T}no" >&6; }
12139 fi
12140 else
12141 { echo "$as_me:$LINENO: result: no" >&5
12142echo "${ECHO_T}no" >&6; }
12143 fi
12144
12145
12146 { echo "$as_me:$LINENO: checking GCC flag(s) -Werror-implicit-function-declaration" >&5
12147echo $ECHO_N "checking GCC flag(s) -Werror-implicit-function-declaration... $ECHO_C" >&6; }
12148 if test "${GCC-no}" = yes
12149 then
12150 if test "${charybdis_cv_c_gcc_w_error_implicit_function_declaration+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152else
12153
12154 oldcflags="${CFLAGS-}"
12155 CFLAGS="${CFLAGS-} ${CWARNS} -Werror-implicit-function-declaration -Werror"
12156 cat >conftest.$ac_ext <<_ACEOF
12157/* confdefs.h. */
12158_ACEOF
12159cat confdefs.h >>conftest.$ac_ext
12160cat >>conftest.$ac_ext <<_ACEOF
12161/* end confdefs.h. */
12162
12163#include <string.h>
12164#include <stdio.h>
12165int main(void);
12166
12167int
12168main ()
12169{
12170
12171 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12172
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177rm -f conftest.$ac_objext
12178if { (ac_try="$ac_compile"
12179case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182esac
12183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_compile") 2>conftest.er1
12185 ac_status=$?
12186 grep -v '^ *+' conftest.er1 >conftest.err
12187 rm -f conftest.er1
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } && {
12191 test -z "$ac_c_werror_flag" ||
12192 test ! -s conftest.err
12193 } && test -s conftest.$ac_objext; then
12194 charybdis_cv_c_gcc_w_error_implicit_function_declaration=yes
12195else
12196 echo "$as_me: failed program was:" >&5
12197sed 's/^/| /' conftest.$ac_ext >&5
12198
12199 charybdis_cv_c_gcc_w_error_implicit_function_declaration=no
12200fi
12201
12202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12203 CFLAGS="${oldcflags}"
12204fi
12205
12206 if test "x$charybdis_cv_c_gcc_w_error_implicit_function_declaration" = xyes; then
12207 CWARNS="${CWARNS}-Werror-implicit-function-declaration "
12208 { echo "$as_me:$LINENO: result: ok" >&5
12209echo "${ECHO_T}ok" >&6; }
12210 else
12211 charybdis_cv_c_gcc_w_error_implicit_function_declaration=''
12212 { echo "$as_me:$LINENO: result: no" >&5
12213echo "${ECHO_T}no" >&6; }
12214 fi
12215 else
12216 { echo "$as_me:$LINENO: result: no" >&5
12217echo "${ECHO_T}no" >&6; }
12218 fi
12219
12220
12221 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12222echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
12223 if test "${GCC-no}" = yes
12224 then
12225 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227else
12228
12229 oldcflags="${CFLAGS-}"
12230 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12231 cat >conftest.$ac_ext <<_ACEOF
12232/* confdefs.h. */
12233_ACEOF
12234cat confdefs.h >>conftest.$ac_ext
12235cat >>conftest.$ac_ext <<_ACEOF
12236/* end confdefs.h. */
12237
12238#include <string.h>
12239#include <stdio.h>
12240int main(void);
12241
12242int
12243main ()
12244{
12245
12246 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12247
12248 ;
12249 return 0;
12250}
12251_ACEOF
12252rm -f conftest.$ac_objext
12253if { (ac_try="$ac_compile"
12254case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257esac
12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.$ac_objext; then
12269 charybdis_cv_c_gcc_prototypes=yes
12270else
12271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 charybdis_cv_c_gcc_prototypes=no
12275fi
12276
12277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 CFLAGS="${oldcflags}"
12279fi
12280
12281 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12282 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
12283 { echo "$as_me:$LINENO: result: ok" >&5
12284echo "${ECHO_T}ok" >&6; }
12285 else
12286 charybdis_cv_c_gcc_prototypes=''
12287 { echo "$as_me:$LINENO: result: no" >&5
12288echo "${ECHO_T}no" >&6; }
12289 fi
12290 else
12291 { echo "$as_me:$LINENO: result: no" >&5
12292echo "${ECHO_T}no" >&6; }
12293 fi
12294
12295
12296 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12297echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
12298 if test "${GCC-no}" = yes
12299 then
12300 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302else
12303
12304 oldcflags="${CFLAGS-}"
12305 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12306 cat >conftest.$ac_ext <<_ACEOF
12307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
12312
12313#include <string.h>
12314#include <stdio.h>
12315int main(void);
12316
12317int
12318main ()
12319{
12320
12321 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12322
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327rm -f conftest.$ac_objext
12328if { (ac_try="$ac_compile"
12329case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332esac
12333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_compile") 2>conftest.er1
12335 ac_status=$?
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && {
12341 test -z "$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12343 } && test -s conftest.$ac_objext; then
12344 charybdis_cv_c_gcc_parenthesis=yes
12345else
12346 echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
12349 charybdis_cv_c_gcc_parenthesis=no
12350fi
12351
12352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 CFLAGS="${oldcflags}"
12354fi
12355
12356 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12357 CWARNS="${CWARNS}-Wparenthesis "
12358 { echo "$as_me:$LINENO: result: ok" >&5
12359echo "${ECHO_T}ok" >&6; }
12360 else
12361 charybdis_cv_c_gcc_parenthesis=''
12362 { echo "$as_me:$LINENO: result: no" >&5
12363echo "${ECHO_T}no" >&6; }
12364 fi
12365 else
12366 { echo "$as_me:$LINENO: result: no" >&5
12367echo "${ECHO_T}no" >&6; }
12368 fi
12369
12370
12371 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12372echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
12373 if test "${GCC-no}" = yes
12374 then
12375 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378
12379 oldcflags="${CFLAGS-}"
12380 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12381 cat >conftest.$ac_ext <<_ACEOF
12382/* confdefs.h. */
12383_ACEOF
12384cat confdefs.h >>conftest.$ac_ext
12385cat >>conftest.$ac_ext <<_ACEOF
12386/* end confdefs.h. */
12387
12388#include <string.h>
12389#include <stdio.h>
12390int main(void);
12391
12392int
12393main ()
12394{
12395
12396 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12397
12398 ;
12399 return 0;
12400}
12401_ACEOF
12402rm -f conftest.$ac_objext
12403if { (ac_try="$ac_compile"
12404case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407esac
12408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_compile") 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.$ac_objext; then
12419 charybdis_cv_c_gcc_w=yes
12420else
12421 echo "$as_me: failed program was:" >&5
12422sed 's/^/| /' conftest.$ac_ext >&5
12423
12424 charybdis_cv_c_gcc_w=no
12425fi
12426
12427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 CFLAGS="${oldcflags}"
12429fi
12430
12431 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12432 CWARNS="${CWARNS}-W -Wno-unused "
12433 { echo "$as_me:$LINENO: result: ok" >&5
12434echo "${ECHO_T}ok" >&6; }
12435 else
12436 charybdis_cv_c_gcc_w=''
12437 { echo "$as_me:$LINENO: result: no" >&5
12438echo "${ECHO_T}no" >&6; }
12439 fi
12440 else
12441 { echo "$as_me:$LINENO: result: no" >&5
12442echo "${ECHO_T}no" >&6; }
12443 fi
12444
12445
12446 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12447echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
12448 if test "${GCC-no}" = yes
12449 then
12450 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12451 echo $ECHO_N "(cached) $ECHO_C" >&6
12452else
12453
12454 oldcflags="${CFLAGS-}"
12455 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12456 cat >conftest.$ac_ext <<_ACEOF
12457/* confdefs.h. */
12458_ACEOF
12459cat confdefs.h >>conftest.$ac_ext
12460cat >>conftest.$ac_ext <<_ACEOF
12461/* end confdefs.h. */
12462
12463#include <string.h>
12464#include <stdio.h>
12465int main(void);
12466
12467int
12468main ()
12469{
12470
12471 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12472
12473 ;
12474 return 0;
12475}
12476_ACEOF
12477rm -f conftest.$ac_objext
12478if { (ac_try="$ac_compile"
12479case "(($ac_try" in
12480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12482esac
12483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_compile") 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } && {
12491 test -z "$ac_c_werror_flag" ||
12492 test ! -s conftest.err
12493 } && test -s conftest.$ac_objext; then
12494 charybdis_cv_c_gcc_w_extra=yes
12495else
12496 echo "$as_me: failed program was:" >&5
12497sed 's/^/| /' conftest.$ac_ext >&5
12498
12499 charybdis_cv_c_gcc_w_extra=no
12500fi
12501
12502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12503 CFLAGS="${oldcflags}"
12504fi
12505
12506 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12507 CWARNS="${CWARNS}-Wextra "
12508 { echo "$as_me:$LINENO: result: ok" >&5
12509echo "${ECHO_T}ok" >&6; }
12510 else
12511 charybdis_cv_c_gcc_w_extra=''
12512 { echo "$as_me:$LINENO: result: no" >&5
12513echo "${ECHO_T}no" >&6; }
12514 fi
12515 else
12516 { echo "$as_me:$LINENO: result: no" >&5
12517echo "${ECHO_T}no" >&6; }
12518 fi
12519
12520
12521 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12522echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
12523 if test "${GCC-no}" = yes
12524 then
12525 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12527else
12528
12529 oldcflags="${CFLAGS-}"
12530 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12531 cat >conftest.$ac_ext <<_ACEOF
12532/* confdefs.h. */
12533_ACEOF
12534cat confdefs.h >>conftest.$ac_ext
12535cat >>conftest.$ac_ext <<_ACEOF
12536/* end confdefs.h. */
12537
12538#include <string.h>
12539#include <stdio.h>
12540int main(void);
12541
12542int
12543main ()
12544{
12545
12546 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12547
12548 ;
12549 return 0;
12550}
12551_ACEOF
12552rm -f conftest.$ac_objext
12553if { (ac_try="$ac_compile"
12554case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557esac
12558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_compile") 2>conftest.er1
12560 ac_status=$?
12561 grep -v '^ *+' conftest.er1 >conftest.err
12562 rm -f conftest.er1
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } && {
12566 test -z "$ac_c_werror_flag" ||
12567 test ! -s conftest.err
12568 } && test -s conftest.$ac_objext; then
12569 charybdis_cv_c_gcc_w_shadow=yes
12570else
12571 echo "$as_me: failed program was:" >&5
12572sed 's/^/| /' conftest.$ac_ext >&5
12573
12574 charybdis_cv_c_gcc_w_shadow=no
12575fi
12576
12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578 CFLAGS="${oldcflags}"
12579fi
12580
12581 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12582 CWARNS="${CWARNS}-Wshadow "
12583 { echo "$as_me:$LINENO: result: ok" >&5
12584echo "${ECHO_T}ok" >&6; }
12585 else
12586 charybdis_cv_c_gcc_w_shadow=''
12587 { echo "$as_me:$LINENO: result: no" >&5
12588echo "${ECHO_T}no" >&6; }
12589 fi
12590 else
12591 { echo "$as_me:$LINENO: result: no" >&5
12592echo "${ECHO_T}no" >&6; }
12593 fi
12594
12595
12596 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12597echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
12598 if test "${GCC-no}" = yes
12599 then
12600 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12602else
12603
12604 oldcflags="${CFLAGS-}"
12605 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12606 cat >conftest.$ac_ext <<_ACEOF
12607/* confdefs.h. */
12608_ACEOF
12609cat confdefs.h >>conftest.$ac_ext
12610cat >>conftest.$ac_ext <<_ACEOF
12611/* end confdefs.h. */
12612
12613#include <string.h>
12614#include <stdio.h>
12615int main(void);
12616
12617int
12618main ()
12619{
12620
12621 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12622
12623 ;
12624 return 0;
12625}
12626_ACEOF
12627rm -f conftest.$ac_objext
12628if { (ac_try="$ac_compile"
12629case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12632esac
12633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_compile") 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } && {
12641 test -z "$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12643 } && test -s conftest.$ac_objext; then
12644 charybdis_cv_c_gcc_w_missing_noreturn=yes
12645else
12646 echo "$as_me: failed program was:" >&5
12647sed 's/^/| /' conftest.$ac_ext >&5
12648
12649 charybdis_cv_c_gcc_w_missing_noreturn=no
12650fi
12651
12652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12653 CFLAGS="${oldcflags}"
12654fi
12655
12656 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12657 CWARNS="${CWARNS}-Wmissing-noreturn "
12658 { echo "$as_me:$LINENO: result: ok" >&5
12659echo "${ECHO_T}ok" >&6; }
12660 else
12661 charybdis_cv_c_gcc_w_missing_noreturn=''
12662 { echo "$as_me:$LINENO: result: no" >&5
12663echo "${ECHO_T}no" >&6; }
12664 fi
12665 else
12666 { echo "$as_me:$LINENO: result: no" >&5
12667echo "${ECHO_T}no" >&6; }
12668 fi
12669
12670
12671 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12672echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
12673 if test "${GCC-no}" = yes
12674 then
12675 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12677else
12678
12679 oldcflags="${CFLAGS-}"
12680 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12681 cat >conftest.$ac_ext <<_ACEOF
12682/* confdefs.h. */
12683_ACEOF
12684cat confdefs.h >>conftest.$ac_ext
12685cat >>conftest.$ac_ext <<_ACEOF
12686/* end confdefs.h. */
12687
12688#include <string.h>
12689#include <stdio.h>
12690int main(void);
12691
12692int
12693main ()
12694{
12695
12696 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12697
12698 ;
12699 return 0;
12700}
12701_ACEOF
12702rm -f conftest.$ac_objext
12703if { (ac_try="$ac_compile"
12704case "(($ac_try" in
12705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706 *) ac_try_echo=$ac_try;;
12707esac
12708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709 (eval "$ac_compile") 2>conftest.er1
12710 ac_status=$?
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } && {
12716 test -z "$ac_c_werror_flag" ||
12717 test ! -s conftest.err
12718 } && test -s conftest.$ac_objext; then
12719 charybdis_cv_c_gcc_w_undef=yes
12720else
12721 echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724 charybdis_cv_c_gcc_w_undef=no
12725fi
12726
12727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 CFLAGS="${oldcflags}"
12729fi
12730
12731 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12732 CWARNS="${CWARNS}-Wundef "
12733 { echo "$as_me:$LINENO: result: ok" >&5
12734echo "${ECHO_T}ok" >&6; }
12735 else
12736 charybdis_cv_c_gcc_w_undef=''
12737 { echo "$as_me:$LINENO: result: no" >&5
12738echo "${ECHO_T}no" >&6; }
12739 fi
12740 else
12741 { echo "$as_me:$LINENO: result: no" >&5
12742echo "${ECHO_T}no" >&6; }
12743 fi
12744
12745
12746 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12747echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
12748 if test "${GCC-no}" = yes
12749 then
12750 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752else
12753
12754 oldcflags="${CFLAGS-}"
12755 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12756 cat >conftest.$ac_ext <<_ACEOF
12757/* confdefs.h. */
12758_ACEOF
12759cat confdefs.h >>conftest.$ac_ext
12760cat >>conftest.$ac_ext <<_ACEOF
12761/* end confdefs.h. */
12762
12763#include <string.h>
12764#include <stdio.h>
12765int main(void);
12766
12767int
12768main ()
12769{
12770
12771 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12772
12773 ;
12774 return 0;
12775}
12776_ACEOF
12777rm -f conftest.$ac_objext
12778if { (ac_try="$ac_compile"
12779case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782esac
12783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_compile") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest.$ac_objext; then
12794 charybdis_cv_c_gcc_w_packed=yes
12795else
12796 echo "$as_me: failed program was:" >&5
12797sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 charybdis_cv_c_gcc_w_packed=no
12800fi
12801
12802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 CFLAGS="${oldcflags}"
12804fi
12805
12806 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12807 CWARNS="${CWARNS}-Wpacked "
12808 { echo "$as_me:$LINENO: result: ok" >&5
12809echo "${ECHO_T}ok" >&6; }
12810 else
12811 charybdis_cv_c_gcc_w_packed=''
12812 { echo "$as_me:$LINENO: result: no" >&5
12813echo "${ECHO_T}no" >&6; }
12814 fi
12815 else
12816 { echo "$as_me:$LINENO: result: no" >&5
12817echo "${ECHO_T}no" >&6; }
12818 fi
12819
12820
12821 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12822echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
12823 if test "${GCC-no}" = yes
12824 then
12825 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827else
12828
12829 oldcflags="${CFLAGS-}"
12830 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12831 cat >conftest.$ac_ext <<_ACEOF
12832/* confdefs.h. */
12833_ACEOF
12834cat confdefs.h >>conftest.$ac_ext
12835cat >>conftest.$ac_ext <<_ACEOF
12836/* end confdefs.h. */
12837
12838#include <string.h>
12839#include <stdio.h>
12840int main(void);
12841
12842int
12843main ()
12844{
12845
12846 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12847
12848 ;
12849 return 0;
12850}
12851_ACEOF
12852rm -f conftest.$ac_objext
12853if { (ac_try="$ac_compile"
12854case "(($ac_try" in
12855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12856 *) ac_try_echo=$ac_try;;
12857esac
12858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12859 (eval "$ac_compile") 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } && {
12866 test -z "$ac_c_werror_flag" ||
12867 test ! -s conftest.err
12868 } && test -s conftest.$ac_objext; then
12869 charybdis_cv_c_gcc_w_nested_externs=yes
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
12874 charybdis_cv_c_gcc_w_nested_externs=no
12875fi
12876
12877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 CFLAGS="${oldcflags}"
12879fi
12880
12881 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
12882 CWARNS="${CWARNS}-Wnested-externs "
12883 { echo "$as_me:$LINENO: result: ok" >&5
12884echo "${ECHO_T}ok" >&6; }
12885 else
12886 charybdis_cv_c_gcc_w_nested_externs=''
12887 { echo "$as_me:$LINENO: result: no" >&5
12888echo "${ECHO_T}no" >&6; }
12889 fi
12890 else
12891 { echo "$as_me:$LINENO: result: no" >&5
12892echo "${ECHO_T}no" >&6; }
12893 fi
12894
12895
12896 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
12897echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
12898 if test "${GCC-no}" = yes
12899 then
12900 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12902else
12903
12904 oldcflags="${CFLAGS-}"
12905 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
12906 cat >conftest.$ac_ext <<_ACEOF
12907/* confdefs.h. */
12908_ACEOF
12909cat confdefs.h >>conftest.$ac_ext
12910cat >>conftest.$ac_ext <<_ACEOF
12911/* end confdefs.h. */
12912
12913#include <string.h>
12914#include <stdio.h>
12915int main(void);
12916
12917int
12918main ()
12919{
12920
12921 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12922
12923 ;
12924 return 0;
12925}
12926_ACEOF
12927rm -f conftest.$ac_objext
12928if { (ac_try="$ac_compile"
12929case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12932esac
12933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_compile") 2>conftest.er1
12935 ac_status=$?
12936 grep -v '^ *+' conftest.er1 >conftest.err
12937 rm -f conftest.er1
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest.$ac_objext; then
12944 charybdis_cv_c_gcc_w_bad_function_cast=yes
12945else
12946 echo "$as_me: failed program was:" >&5
12947sed 's/^/| /' conftest.$ac_ext >&5
12948
12949 charybdis_cv_c_gcc_w_bad_function_cast=no
12950fi
12951
12952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 CFLAGS="${oldcflags}"
12954fi
12955
12956 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
12957 CWARNS="${CWARNS}-Wbad-function-cast "
12958 { echo "$as_me:$LINENO: result: ok" >&5
12959echo "${ECHO_T}ok" >&6; }
12960 else
12961 charybdis_cv_c_gcc_w_bad_function_cast=''
12962 { echo "$as_me:$LINENO: result: no" >&5
12963echo "${ECHO_T}no" >&6; }
12964 fi
12965 else
12966 { echo "$as_me:$LINENO: result: no" >&5
12967echo "${ECHO_T}no" >&6; }
12968 fi
12969
12970
12971 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
12972echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
12973 if test "${GCC-no}" = yes
12974 then
12975 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977else
12978
12979 oldcflags="${CFLAGS-}"
12980 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
12981 cat >conftest.$ac_ext <<_ACEOF
12982/* confdefs.h. */
12983_ACEOF
12984cat confdefs.h >>conftest.$ac_ext
12985cat >>conftest.$ac_ext <<_ACEOF
12986/* end confdefs.h. */
12987
12988#include <string.h>
12989#include <stdio.h>
12990int main(void);
12991
12992int
12993main ()
12994{
12995
12996 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12997
12998 ;
12999 return 0;
13000}
13001_ACEOF
13002rm -f conftest.$ac_objext
13003if { (ac_try="$ac_compile"
13004case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13007esac
13008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_compile") 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } && {
13016 test -z "$ac_c_werror_flag" ||
13017 test ! -s conftest.err
13018 } && test -s conftest.$ac_objext; then
13019 charybdis_cv_c_gcc_w_unused=yes
13020else
13021 echo "$as_me: failed program was:" >&5
13022sed 's/^/| /' conftest.$ac_ext >&5
13023
13024 charybdis_cv_c_gcc_w_unused=no
13025fi
13026
13027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028 CFLAGS="${oldcflags}"
13029fi
13030
13031 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
13032 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
13033 { echo "$as_me:$LINENO: result: ok" >&5
13034echo "${ECHO_T}ok" >&6; }
13035 else
13036 charybdis_cv_c_gcc_w_unused=''
13037 { echo "$as_me:$LINENO: result: no" >&5
13038echo "${ECHO_T}no" >&6; }
13039 fi
13040 else
13041 { echo "$as_me:$LINENO: result: no" >&5
13042echo "${ECHO_T}no" >&6; }
13043 fi
13044
13045
13046 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13047echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
13048 if test "${GCC-no}" = yes
13049 then
13050 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13052else
13053
13054 oldcflags="${CFLAGS-}"
13055 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13056 cat >conftest.$ac_ext <<_ACEOF
13057/* confdefs.h. */
13058_ACEOF
13059cat confdefs.h >>conftest.$ac_ext
13060cat >>conftest.$ac_ext <<_ACEOF
13061/* end confdefs.h. */
13062
13063#include <string.h>
13064#include <stdio.h>
13065int main(void);
13066
13067int
13068main ()
13069{
13070
13071 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13072
13073 ;
13074 return 0;
13075}
13076_ACEOF
13077rm -f conftest.$ac_objext
13078if { (ac_try="$ac_compile"
13079case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_compile") 2>conftest.er1
13085 ac_status=$?
13086 grep -v '^ *+' conftest.er1 >conftest.err
13087 rm -f conftest.er1
13088 cat conftest.err >&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } && {
13091 test -z "$ac_c_werror_flag" ||
13092 test ! -s conftest.err
13093 } && test -s conftest.$ac_objext; then
13094 charybdis_cv_c_gcc_w_redundant_decls=yes
13095else
13096 echo "$as_me: failed program was:" >&5
13097sed 's/^/| /' conftest.$ac_ext >&5
13098
13099 charybdis_cv_c_gcc_w_redundant_decls=no
13100fi
13101
13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103 CFLAGS="${oldcflags}"
13104fi
13105
13106 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13107 CWARNS="${CWARNS}-Wredundant-decls "
13108 { echo "$as_me:$LINENO: result: ok" >&5
13109echo "${ECHO_T}ok" >&6; }
13110 else
13111 charybdis_cv_c_gcc_w_redundant_decls=''
13112 { echo "$as_me:$LINENO: result: no" >&5
13113echo "${ECHO_T}no" >&6; }
13114 fi
13115 else
13116 { echo "$as_me:$LINENO: result: no" >&5
13117echo "${ECHO_T}no" >&6; }
13118 fi
13119
13120
13121 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13122echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
13123 if test "${GCC-no}" = yes
13124 then
13125 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127else
13128
13129 oldcflags="${CFLAGS-}"
13130 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13131 cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
13137
13138#include <string.h>
13139#include <stdio.h>
13140int main(void);
13141
13142int
13143main ()
13144{
13145
13146 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13147
13148 ;
13149 return 0;
13150}
13151_ACEOF
13152rm -f conftest.$ac_objext
13153if { (ac_try="$ac_compile"
13154case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157esac
13158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_compile") 2>conftest.er1
13160 ac_status=$?
13161 grep -v '^ *+' conftest.er1 >conftest.err
13162 rm -f conftest.er1
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest.$ac_objext; then
13169 charybdis_cv_c_gcc_w_float_equal=yes
13170else
13171 echo "$as_me: failed program was:" >&5
13172sed 's/^/| /' conftest.$ac_ext >&5
13173
13174 charybdis_cv_c_gcc_w_float_equal=no
13175fi
13176
13177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13178 CFLAGS="${oldcflags}"
13179fi
13180
13181 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13182 CWARNS="${CWARNS}-Wfloat-equal "
13183 { echo "$as_me:$LINENO: result: ok" >&5
13184echo "${ECHO_T}ok" >&6; }
13185 else
13186 charybdis_cv_c_gcc_w_float_equal=''
13187 { echo "$as_me:$LINENO: result: no" >&5
13188echo "${ECHO_T}no" >&6; }
13189 fi
13190 else
13191 { echo "$as_me:$LINENO: result: no" >&5
13192echo "${ECHO_T}no" >&6; }
13193 fi
13194
13195
13196 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security" >&5
13197echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security... $ECHO_C" >&6; }
13198 if test "${GCC-no}" = yes
13199 then
13200 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202else
13203
13204 oldcflags="${CFLAGS-}"
13205 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wformat-security -Werror"
13206 cat >conftest.$ac_ext <<_ACEOF
13207/* confdefs.h. */
13208_ACEOF
13209cat confdefs.h >>conftest.$ac_ext
13210cat >>conftest.$ac_ext <<_ACEOF
13211/* end confdefs.h. */
13212
13213#include <string.h>
13214#include <stdio.h>
13215int main(void);
13216
13217int
13218main ()
13219{
13220
13221 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13222
13223 ;
13224 return 0;
13225}
13226_ACEOF
13227rm -f conftest.$ac_objext
13228if { (ac_try="$ac_compile"
13229case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232esac
13233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_compile") 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest.$ac_objext; then
13244 charybdis_cv_c_gcc_w_format=yes
13245else
13246 echo "$as_me: failed program was:" >&5
13247sed 's/^/| /' conftest.$ac_ext >&5
13248
13249 charybdis_cv_c_gcc_w_format=no
13250fi
13251
13252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253 CFLAGS="${oldcflags}"
13254fi
13255
13256 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13257 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wformat-security "
13258 { echo "$as_me:$LINENO: result: ok" >&5
13259echo "${ECHO_T}ok" >&6; }
13260 else
13261 charybdis_cv_c_gcc_w_format=''
13262 { echo "$as_me:$LINENO: result: no" >&5
13263echo "${ECHO_T}no" >&6; }
13264 fi
13265 else
13266 { echo "$as_me:$LINENO: result: no" >&5
13267echo "${ECHO_T}no" >&6; }
13268 fi
13269
13270
13271 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13272echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
13273 if test "${GCC-no}" = yes
13274 then
13275 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13276 echo $ECHO_N "(cached) $ECHO_C" >&6
13277else
13278
13279 oldcflags="${CFLAGS-}"
13280 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13281 cat >conftest.$ac_ext <<_ACEOF
13282/* confdefs.h. */
13283_ACEOF
13284cat confdefs.h >>conftest.$ac_ext
13285cat >>conftest.$ac_ext <<_ACEOF
13286/* end confdefs.h. */
13287
13288#include <string.h>
13289#include <stdio.h>
13290int main(void);
13291
13292int
13293main ()
13294{
13295
13296 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
13297
13298 ;
13299 return 0;
13300}
13301_ACEOF
13302rm -f conftest.$ac_objext
13303if { (ac_try="$ac_compile"
13304case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307esac
13308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_compile") 2>conftest.er1
13310 ac_status=$?
13311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
13314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } && {
13316 test -z "$ac_c_werror_flag" ||
13317 test ! -s conftest.err
13318 } && test -s conftest.$ac_objext; then
13319 charybdis_cv_c_gcc_pedantic=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 charybdis_cv_c_gcc_pedantic=no
13325fi
13326
13327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328 CFLAGS="${oldcflags}"
13329fi
13330
13331 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13332 CWARNS="${CWARNS}-pedantic "
13333 { echo "$as_me:$LINENO: result: ok" >&5
13334echo "${ECHO_T}ok" >&6; }
13335 else
13336 charybdis_cv_c_gcc_pedantic=''
13337 { echo "$as_me:$LINENO: result: no" >&5
13338echo "${ECHO_T}no" >&6; }
13339 fi
13340 else
13341 { echo "$as_me:$LINENO: result: no" >&5
13342echo "${ECHO_T}no" >&6; }
13343 fi
13344
13345
13346IRC_CFLAGS="$CFLAGS"
13347
13348fi
13349
13350
13351if test "$shared_modules" = no; then
13352 DYNLINK_C=""
13353 MOD_TARGET="libmodules.a"
13354 MODULES_LIBS="../modules/libmodules.a"
13355 SEDOBJ=""
13356
13357cat >>confdefs.h <<\_ACEOF
13358#define STATIC_MODULES 1
13359_ACEOF
13360
13361 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13362echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13363fi
13364
13365if test "$shared_modules" = yes; then
13366
13367 { echo "$as_me:$LINENO: checking for nlist" >&5
13368echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
13369if test "${ac_cv_func_nlist+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372 cat >conftest.$ac_ext <<_ACEOF
13373/* confdefs.h. */
13374_ACEOF
13375cat confdefs.h >>conftest.$ac_ext
13376cat >>conftest.$ac_ext <<_ACEOF
13377/* end confdefs.h. */
13378/* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13380#define nlist innocuous_nlist
13381
13382/* System header to define __stub macros and hopefully few prototypes,
13383 which can conflict with char nlist (); below.
13384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13385 <limits.h> exists even on freestanding compilers. */
13386
13387#ifdef __STDC__
13388# include <limits.h>
13389#else
13390# include <assert.h>
13391#endif
13392
13393#undef nlist
13394
13395/* Override any GCC internal prototype to avoid an error.
13396 Use char because int might match the return type of a GCC
13397 builtin and then its argument prototype would still apply. */
13398#ifdef __cplusplus
13399extern "C"
13400#endif
13401char nlist ();
13402/* The GNU C library defines this for functions which it implements
13403 to always fail with ENOSYS. Some functions are actually named
13404 something starting with __ and the normal name is an alias. */
13405#if defined __stub_nlist || defined __stub___nlist
13406choke me
13407#endif
13408
13409int
13410main ()
13411{
13412return nlist ();
13413 ;
13414 return 0;
13415}
13416_ACEOF
13417rm -f conftest.$ac_objext conftest$ac_exeext
13418if { (ac_try="$ac_link"
13419case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_link") 2>conftest.er1
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } && {
13431 test -z "$ac_c_werror_flag" ||
13432 test ! -s conftest.err
13433 } && test -s conftest$ac_exeext &&
13434 $as_test_x conftest$ac_exeext; then
13435 ac_cv_func_nlist=yes
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
13440 ac_cv_func_nlist=no
13441fi
13442
13443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13444 conftest$ac_exeext conftest.$ac_ext
13445fi
13446{ echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13447echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
13448if test $ac_cv_func_nlist = yes; then
13449 :
13450else
13451 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13452echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
13453if test "${ac_cv_lib_dl_nlist+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 ac_check_lib_save_LIBS=$LIBS
13457LIBS="-ldl $LIBS"
13458cat >conftest.$ac_ext <<_ACEOF
13459/* confdefs.h. */
13460_ACEOF
13461cat confdefs.h >>conftest.$ac_ext
13462cat >>conftest.$ac_ext <<_ACEOF
13463/* end confdefs.h. */
13464
13465/* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13468#ifdef __cplusplus
13469extern "C"
13470#endif
13471char nlist ();
13472int
13473main ()
13474{
13475return nlist ();
13476 ;
13477 return 0;
13478}
13479_ACEOF
13480rm -f conftest.$ac_objext conftest$ac_exeext
13481if { (ac_try="$ac_link"
13482case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485esac
13486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_link") 2>conftest.er1
13488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && {
13494 test -z "$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13496 } && test -s conftest$ac_exeext &&
13497 $as_test_x conftest$ac_exeext; then
13498 ac_cv_lib_dl_nlist=yes
13499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_cv_lib_dl_nlist=no
13504fi
13505
13506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13507 conftest$ac_exeext conftest.$ac_ext
13508LIBS=$ac_check_lib_save_LIBS
13509fi
13510{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13511echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
13512if test $ac_cv_lib_dl_nlist = yes; then
13513 nlist_lib="-ldl"
13514else
13515 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13516echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
13517if test "${ac_cv_lib_elf_nlist+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13519else
13520 ac_check_lib_save_LIBS=$LIBS
13521LIBS="-lelf $LIBS"
13522cat >conftest.$ac_ext <<_ACEOF
13523/* confdefs.h. */
13524_ACEOF
13525cat confdefs.h >>conftest.$ac_ext
13526cat >>conftest.$ac_ext <<_ACEOF
13527/* end confdefs.h. */
13528
13529/* Override any GCC internal prototype to avoid an error.
13530 Use char because int might match the return type of a GCC
13531 builtin and then its argument prototype would still apply. */
13532#ifdef __cplusplus
13533extern "C"
13534#endif
13535char nlist ();
13536int
13537main ()
13538{
13539return nlist ();
13540 ;
13541 return 0;
13542}
13543_ACEOF
13544rm -f conftest.$ac_objext conftest$ac_exeext
13545if { (ac_try="$ac_link"
13546case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549esac
13550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_link") 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest$ac_exeext &&
13561 $as_test_x conftest$ac_exeext; then
13562 ac_cv_lib_elf_nlist=yes
13563else
13564 echo "$as_me: failed program was:" >&5
13565sed 's/^/| /' conftest.$ac_ext >&5
13566
13567 ac_cv_lib_elf_nlist=no
13568fi
13569
13570rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13571 conftest$ac_exeext conftest.$ac_ext
13572LIBS=$ac_check_lib_save_LIBS
13573fi
13574{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13575echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
13576if test $ac_cv_lib_elf_nlist = yes; then
13577 nlist_lib="-lelf"
13578fi
13579
13580
13581fi
13582
13583
13584fi
13585
13586
13587 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13588 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13589echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13590if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13591 echo $ECHO_N "(cached) $ECHO_C" >&6
13592fi
13593{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13594echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13595else
13596 # Is the header compilable?
13597{ echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13598echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
13599cat >conftest.$ac_ext <<_ACEOF
13600/* confdefs.h. */
13601_ACEOF
13602cat confdefs.h >>conftest.$ac_ext
13603cat >>conftest.$ac_ext <<_ACEOF
13604/* end confdefs.h. */
13605$ac_includes_default
13606#include <libelf/nlist.h>
13607_ACEOF
13608rm -f conftest.$ac_objext
13609if { (ac_try="$ac_compile"
13610case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13613esac
13614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_compile") 2>conftest.er1
13616 ac_status=$?
13617 grep -v '^ *+' conftest.er1 >conftest.err
13618 rm -f conftest.er1
13619 cat conftest.err >&5
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); } && {
13622 test -z "$ac_c_werror_flag" ||
13623 test ! -s conftest.err
13624 } && test -s conftest.$ac_objext; then
13625 ac_header_compiler=yes
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630 ac_header_compiler=no
13631fi
13632
13633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13635echo "${ECHO_T}$ac_header_compiler" >&6; }
13636
13637# Is the header present?
13638{ echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13639echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
13640cat >conftest.$ac_ext <<_ACEOF
13641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
13646#include <libelf/nlist.h>
13647_ACEOF
13648if { (ac_try="$ac_cpp conftest.$ac_ext"
13649case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652esac
13653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } >/dev/null && {
13661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 }; then
13664 ac_header_preproc=yes
13665else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 ac_header_preproc=no
13670fi
13671
13672rm -f conftest.err conftest.$ac_ext
13673{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13674echo "${ECHO_T}$ac_header_preproc" >&6; }
13675
13676# So? What about this header?
13677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13678 yes:no: )
13679 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13680echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13682echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13683 ac_header_preproc=yes
13684 ;;
13685 no:yes:* )
13686 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13687echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13689echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13691echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13693echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13695echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13696 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13697echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
13698
13699 ;;
13700esac
13701{ echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13702echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
13703if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13704 echo $ECHO_N "(cached) $ECHO_C" >&6
13705else
13706 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13707fi
13708{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13709echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
13710
13711fi
13712if test $ac_cv_header_libelf_nlist_h = yes; then
13713 nlist_h="libelf/nlist.h"
13714fi
13715
13716
13717 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13718 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13719echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13720if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13722fi
13723{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13724echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13725else
13726 # Is the header compilable?
13727{ echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13728echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
13729cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735$ac_includes_default
13736#include <elf/nlist.h>
13737_ACEOF
13738rm -f conftest.$ac_objext
13739if { (ac_try="$ac_compile"
13740case "(($ac_try" in
13741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742 *) ac_try_echo=$ac_try;;
13743esac
13744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745 (eval "$ac_compile") 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } && {
13752 test -z "$ac_c_werror_flag" ||
13753 test ! -s conftest.err
13754 } && test -s conftest.$ac_objext; then
13755 ac_header_compiler=yes
13756else
13757 echo "$as_me: failed program was:" >&5
13758sed 's/^/| /' conftest.$ac_ext >&5
13759
13760 ac_header_compiler=no
13761fi
13762
13763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13765echo "${ECHO_T}$ac_header_compiler" >&6; }
13766
13767# Is the header present?
13768{ echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13769echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
13770cat >conftest.$ac_ext <<_ACEOF
13771/* confdefs.h. */
13772_ACEOF
13773cat confdefs.h >>conftest.$ac_ext
13774cat >>conftest.$ac_ext <<_ACEOF
13775/* end confdefs.h. */
13776#include <elf/nlist.h>
13777_ACEOF
13778if { (ac_try="$ac_cpp conftest.$ac_ext"
13779case "(($ac_try" in
13780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13781 *) ac_try_echo=$ac_try;;
13782esac
13783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } >/dev/null && {
13791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13792 test ! -s conftest.err
13793 }; then
13794 ac_header_preproc=yes
13795else
13796 echo "$as_me: failed program was:" >&5
13797sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 ac_header_preproc=no
13800fi
13801
13802rm -f conftest.err conftest.$ac_ext
13803{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13804echo "${ECHO_T}$ac_header_preproc" >&6; }
13805
13806# So? What about this header?
13807case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13808 yes:no: )
13809 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13810echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13812echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13813 ac_header_preproc=yes
13814 ;;
13815 no:yes:* )
13816 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13817echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13819echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13821echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13823echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13824 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13825echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13827echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
13828
13829 ;;
13830esac
13831{ echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13832echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
13833if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13835else
13836 ac_cv_header_elf_nlist_h=$ac_header_preproc
13837fi
13838{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13839echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
13840
13841fi
13842if test $ac_cv_header_elf_nlist_h = yes; then
13843 nlist_h="elf/nlist.h"
13844fi
13845
13846
13847 if test "${ac_cv_header_nlist_h+set}" = set; then
13848 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13849echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13850if test "${ac_cv_header_nlist_h+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13852fi
13853{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13854echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13855else
13856 # Is the header compilable?
13857{ echo "$as_me:$LINENO: checking nlist.h usability" >&5
13858echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
13859cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h. */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h. */
13865$ac_includes_default
13866#include <nlist.h>
13867_ACEOF
13868rm -f conftest.$ac_objext
13869if { (ac_try="$ac_compile"
13870case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13873esac
13874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13876 ac_status=$?
13877 grep -v '^ *+' conftest.er1 >conftest.err
13878 rm -f conftest.er1
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest.$ac_objext; then
13885 ac_header_compiler=yes
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
13890 ac_header_compiler=no
13891fi
13892
13893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13894{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13895echo "${ECHO_T}$ac_header_compiler" >&6; }
13896
13897# Is the header present?
13898{ echo "$as_me:$LINENO: checking nlist.h presence" >&5
13899echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
13900cat >conftest.$ac_ext <<_ACEOF
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906#include <nlist.h>
13907_ACEOF
13908if { (ac_try="$ac_cpp conftest.$ac_ext"
13909case "(($ac_try" in
13910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13912esac
13913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13915 ac_status=$?
13916 grep -v '^ *+' conftest.er1 >conftest.err
13917 rm -f conftest.er1
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } >/dev/null && {
13921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13922 test ! -s conftest.err
13923 }; then
13924 ac_header_preproc=yes
13925else
13926 echo "$as_me: failed program was:" >&5
13927sed 's/^/| /' conftest.$ac_ext >&5
13928
13929 ac_header_preproc=no
13930fi
13931
13932rm -f conftest.err conftest.$ac_ext
13933{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13934echo "${ECHO_T}$ac_header_preproc" >&6; }
13935
13936# So? What about this header?
13937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13938 yes:no: )
13939 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13940echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
13942echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
13943 ac_header_preproc=yes
13944 ;;
13945 no:yes:* )
13946 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
13947echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
13948 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
13949echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
13950 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
13951echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13953echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
13955echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
13957echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
13958
13959 ;;
13960esac
13961{ echo "$as_me:$LINENO: checking for nlist.h" >&5
13962echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
13963if test "${ac_cv_header_nlist_h+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13965else
13966 ac_cv_header_nlist_h=$ac_header_preproc
13967fi
13968{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13969echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
13970
13971fi
13972if test $ac_cv_header_nlist_h = yes; then
13973 nlist_h="nlist.h"
13974fi
13975
13976
13977 if test x"$nlist_h" = "x"; then
13978
13979cat >>confdefs.h <<_ACEOF
13980#define SYMBOL_PREFIX ""
13981_ACEOF
13982
13983 else
13984 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
13985echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
13986 if test "${symbol_underscores+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988else
13989
13990cat << EOF > conftest.c
13991#include <$nlist_h>
13992#include <stdio.h>
13993#include <stdlib.h>
13994void _modinit(void);
13995int main(int argc, char *argv[]) {
13996 int i;
13997 struct nlist nl[5];
13998
13999 /* fill the names in this way, so it'll work almost everywhere */
14000 nl[0].n_name = "_modinit";
14001 nl[1].n_name = "__modinit";
14002 nl[2].n_name = "___modinit";
14003 nl[3].n_name = "____modinit";
14004 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14005
14006 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14007 for(i = 0; i < 4; i++) {
14008 if(nl[i].n_value != NULL)
14009 {
14010 int j;
14011 for(j = 0; j < i; j++)
14012 printf("_");
14013 exit(i);
14014 }
14015 }
14016 exit(-1);
14017}
14018void _modinit(void) { return; }
14019EOF
14020 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14021 symbol_underscores=`./conftest conftest`
14022 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14023echo "${ECHO_T}$symbol_underscores" >&6; }
14024 $RM -f conftest conftest.c
14025
14026fi
14027
14028
14029cat >>confdefs.h <<_ACEOF
14030#define SYMBOL_PREFIX "${symbol_underscores}"
14031_ACEOF
14032
14033 fi
14034fi
14035
14036IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051if test "$prefix" = "NONE"; then
14052
14053cat >>confdefs.h <<_ACEOF
14054#define IRCD_PREFIX "$ac_default_prefix"
14055_ACEOF
14056
14057
14058else
14059
14060
14061 prefix=`echo $prefix | sed 's/\/$//'`
14062
14063cat >>confdefs.h <<_ACEOF
14064#define IRCD_PREFIX "$prefix"
14065_ACEOF
14066
14067
14068fi
14069
14070ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
14071
14072
14073cat >confcache <<\_ACEOF
14074# This file is a shell script that caches the results of configure
14075# tests run on this system so they can be shared between configure
14076# scripts and configure runs, see configure's option --config-cache.
14077# It is not useful on other systems. If it contains results you don't
14078# want to keep, you may remove or edit it.
14079#
14080# config.status only pays attention to the cache file if you give it
14081# the --recheck option to rerun configure.
14082#
14083# `ac_cv_env_foo' variables (set or unset) will be overridden when
14084# loading this file, other *unset* `ac_cv_foo' will be assigned the
14085# following values.
14086
14087_ACEOF
14088
14089# The following way of writing the cache mishandles newlines in values,
14090# but we know of no workaround that is simple, portable, and efficient.
14091# So, we kill variables containing newlines.
14092# Ultrix sh set writes to stderr and can't be redirected directly,
14093# and sets the high bit in the cache file unless we assign to the vars.
14094(
14095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14096 eval ac_val=\$$ac_var
14097 case $ac_val in #(
14098 *${as_nl}*)
14099 case $ac_var in #(
14100 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14101echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14102 esac
14103 case $ac_var in #(
14104 _ | IFS | as_nl) ;; #(
14105 *) $as_unset $ac_var ;;
14106 esac ;;
14107 esac
14108 done
14109
14110 (set) 2>&1 |
14111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14112 *${as_nl}ac_space=\ *)
14113 # `set' does not quote correctly, so add quotes (double-quote
14114 # substitution turns \\\\ into \\, and sed turns \\ into \).
14115 sed -n \
14116 "s/'/'\\\\''/g;
14117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14118 ;; #(
14119 *)
14120 # `set' quotes correctly as required by POSIX, so do not add quotes.
14121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14122 ;;
14123 esac |
14124 sort
14125) |
14126 sed '
14127 /^ac_cv_env_/b end
14128 t clear
14129 :clear
14130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14131 t end
14132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14133 :end' >>confcache
14134if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14135 if test -w "$cache_file"; then
14136 test "x$cache_file" != "x/dev/null" &&
14137 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14138echo "$as_me: updating cache $cache_file" >&6;}
14139 cat confcache >$cache_file
14140 else
14141 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14142echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14143 fi
14144fi
14145rm -f confcache
14146
14147test "x$prefix" = xNONE && prefix=$ac_default_prefix
14148# Let make expand exec_prefix.
14149test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14150
14151DEFS=-DHAVE_CONFIG_H
14152
14153ac_libobjs=
14154ac_ltlibobjs=
14155for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14156 # 1. Remove the extension, and $U if already installed.
14157 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14158 ac_i=`echo "$ac_i" | sed "$ac_script"`
14159 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14160 # will be set to the directory where LIBOBJS objects are built.
14161 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14162 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
14163done
14164LIBOBJS=$ac_libobjs
14165
14166LTLIBOBJS=$ac_ltlibobjs
14167
14168
14169
14170: ${CONFIG_STATUS=./config.status}
14171ac_clean_files_save=$ac_clean_files
14172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14173{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14174echo "$as_me: creating $CONFIG_STATUS" >&6;}
14175cat >$CONFIG_STATUS <<_ACEOF
14176#! $SHELL
14177# Generated by $as_me.
14178# Run this file to recreate the current configuration.
14179# Compiler output produced by configure, useful for debugging
14180# configure, is in config.log if it exists.
14181
14182debug=false
14183ac_cs_recheck=false
14184ac_cs_silent=false
14185SHELL=\${CONFIG_SHELL-$SHELL}
14186_ACEOF
14187
14188cat >>$CONFIG_STATUS <<\_ACEOF
14189## --------------------- ##
14190## M4sh Initialization. ##
14191## --------------------- ##
14192
14193# Be more Bourne compatible
14194DUALCASE=1; export DUALCASE # for MKS sh
14195if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14196 emulate sh
14197 NULLCMD=:
14198 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14199 # is contrary to our usage. Disable this feature.
14200 alias -g '${1+"$@"}'='"$@"'
14201 setopt NO_GLOB_SUBST
14202else
14203 case `(set -o) 2>/dev/null` in
14204 *posix*) set -o posix ;;
14205esac
14206
14207fi
14208
14209
14210
14211
14212# PATH needs CR
14213# Avoid depending upon Character Ranges.
14214as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14215as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14216as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14217as_cr_digits='0123456789'
14218as_cr_alnum=$as_cr_Letters$as_cr_digits
14219
14220# The user is always right.
14221if test "${PATH_SEPARATOR+set}" != set; then
14222 echo "#! /bin/sh" >conf$$.sh
14223 echo "exit 0" >>conf$$.sh
14224 chmod +x conf$$.sh
14225 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14226 PATH_SEPARATOR=';'
14227 else
14228 PATH_SEPARATOR=:
14229 fi
14230 rm -f conf$$.sh
14231fi
14232
14233# Support unset when possible.
14234if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14235 as_unset=unset
14236else
14237 as_unset=false
14238fi
14239
14240
14241# IFS
14242# We need space, tab and new line, in precisely that order. Quoting is
14243# there to prevent editors from complaining about space-tab.
14244# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14245# splitting by setting IFS to empty value.)
14246as_nl='
14247'
14248IFS=" "" $as_nl"
14249
14250# Find who we are. Look in the path if we contain no directory separator.
14251case $0 in
14252 *[\\/]* ) as_myself=$0 ;;
14253 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254for as_dir in $PATH
14255do
14256 IFS=$as_save_IFS
14257 test -z "$as_dir" && as_dir=.
14258 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14259done
14260IFS=$as_save_IFS
14261
14262 ;;
14263esac
14264# We did not find ourselves, most probably we were run as `sh COMMAND'
14265# in which case we are not to be found in the path.
14266if test "x$as_myself" = x; then
14267 as_myself=$0
14268fi
14269if test ! -f "$as_myself"; then
14270 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14271 { (exit 1); exit 1; }
14272fi
14273
14274# Work around bugs in pre-3.0 UWIN ksh.
14275for as_var in ENV MAIL MAILPATH
14276do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14277done
14278PS1='$ '
14279PS2='> '
14280PS4='+ '
14281
14282# NLS nuisances.
14283for as_var in \
14284 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14285 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14286 LC_TELEPHONE LC_TIME
14287do
14288 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14289 eval $as_var=C; export $as_var
14290 else
14291 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14292 fi
14293done
14294
14295# Required to use basename.
14296if expr a : '\(a\)' >/dev/null 2>&1 &&
14297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14298 as_expr=expr
14299else
14300 as_expr=false
14301fi
14302
14303if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14304 as_basename=basename
14305else
14306 as_basename=false
14307fi
14308
14309
14310# Name of the executable.
14311as_me=`$as_basename -- "$0" ||
14312$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14313 X"$0" : 'X\(//\)$' \| \
14314 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14315echo X/"$0" |
14316 sed '/^.*\/\([^/][^/]*\)\/*$/{
14317 s//\1/
14318 q
14319 }
14320 /^X\/\(\/\/\)$/{
14321 s//\1/
14322 q
14323 }
14324 /^X\/\(\/\).*/{
14325 s//\1/
14326 q
14327 }
14328 s/.*/./; q'`
14329
14330# CDPATH.
14331$as_unset CDPATH
14332
14333
14334
14335 as_lineno_1=$LINENO
14336 as_lineno_2=$LINENO
14337 test "x$as_lineno_1" != "x$as_lineno_2" &&
14338 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14339
14340 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14341 # uniformly replaced by the line number. The first 'sed' inserts a
14342 # line-number line after each line using $LINENO; the second 'sed'
14343 # does the real work. The second script uses 'N' to pair each
14344 # line-number line with the line containing $LINENO, and appends
14345 # trailing '-' during substitution so that $LINENO is not a special
14346 # case at line end.
14347 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14348 # scripts with optimization help from Paolo Bonzini. Blame Lee
14349 # E. McMahon (1931-1989) for sed's syntax. :-)
14350 sed -n '
14351 p
14352 /[$]LINENO/=
14353 ' <$as_myself |
14354 sed '
14355 s/[$]LINENO.*/&-/
14356 t lineno
14357 b
14358 :lineno
14359 N
14360 :loop
14361 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14362 t loop
14363 s/-\n.*//
14364 ' >$as_me.lineno &&
14365 chmod +x "$as_me.lineno" ||
14366 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14367 { (exit 1); exit 1; }; }
14368
14369 # Don't try to exec as it changes $[0], causing all sort of problems
14370 # (the dirname of $[0] is not the place where we might find the
14371 # original and so on. Autoconf is especially sensitive to this).
14372 . "./$as_me.lineno"
14373 # Exit status is that of the last command.
14374 exit
14375}
14376
14377
14378if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14379 as_dirname=dirname
14380else
14381 as_dirname=false
14382fi
14383
14384ECHO_C= ECHO_N= ECHO_T=
14385case `echo -n x` in
14386-n*)
14387 case `echo 'x\c'` in
14388 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14389 *) ECHO_C='\c';;
14390 esac;;
14391*)
14392 ECHO_N='-n';;
14393esac
14394
14395if expr a : '\(a\)' >/dev/null 2>&1 &&
14396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14397 as_expr=expr
14398else
14399 as_expr=false
14400fi
14401
14402rm -f conf$$ conf$$.exe conf$$.file
14403if test -d conf$$.dir; then
14404 rm -f conf$$.dir/conf$$.file
14405else
14406 rm -f conf$$.dir
14407 mkdir conf$$.dir
14408fi
14409echo >conf$$.file
14410if ln -s conf$$.file conf$$ 2>/dev/null; then
14411 as_ln_s='ln -s'
14412 # ... but there are two gotchas:
14413 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14414 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14415 # In both cases, we have to default to `cp -p'.
14416 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14417 as_ln_s='cp -p'
14418elif ln conf$$.file conf$$ 2>/dev/null; then
14419 as_ln_s=ln
14420else
14421 as_ln_s='cp -p'
14422fi
14423rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14424rmdir conf$$.dir 2>/dev/null
14425
14426if mkdir -p . 2>/dev/null; then
14427 as_mkdir_p=:
14428else
14429 test -d ./-p && rmdir ./-p
14430 as_mkdir_p=false
14431fi
14432
14433if test -x / >/dev/null 2>&1; then
14434 as_test_x='test -x'
14435else
14436 if ls -dL / >/dev/null 2>&1; then
14437 as_ls_L_option=L
14438 else
14439 as_ls_L_option=
14440 fi
14441 as_test_x='
14442 eval sh -c '\''
14443 if test -d "$1"; then
14444 test -d "$1/.";
14445 else
14446 case $1 in
14447 -*)set "./$1";;
14448 esac;
14449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14450 ???[sx]*):;;*)false;;esac;fi
14451 '\'' sh
14452 '
14453fi
14454as_executable_p=$as_test_x
14455
14456# Sed expression to map a string onto a valid CPP name.
14457as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14458
14459# Sed expression to map a string onto a valid variable name.
14460as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14461
14462
14463exec 6>&1
14464
14465# Save the log message, to keep $[0] and so on meaningful, and to
14466# report actual input values of CONFIG_FILES etc. instead of their
14467# values after options handling.
14468ac_log="
14469This file was extended by charybdis $as_me 3.1, which was
14470generated by GNU Autoconf 2.61. Invocation command line was
14471
14472 CONFIG_FILES = $CONFIG_FILES
14473 CONFIG_HEADERS = $CONFIG_HEADERS
14474 CONFIG_LINKS = $CONFIG_LINKS
14475 CONFIG_COMMANDS = $CONFIG_COMMANDS
14476 $ $0 $@
14477
14478on `(hostname || uname -n) 2>/dev/null | sed 1q`
14479"
14480
14481_ACEOF
14482
14483cat >>$CONFIG_STATUS <<_ACEOF
14484# Files that config.status was made for.
14485config_files="$ac_config_files"
14486config_headers="$ac_config_headers"
14487
14488_ACEOF
14489
14490cat >>$CONFIG_STATUS <<\_ACEOF
14491ac_cs_usage="\
14492\`$as_me' instantiates files from templates according to the
14493current configuration.
14494
14495Usage: $0 [OPTIONS] [FILE]...
14496
14497 -h, --help print this help, then exit
14498 -V, --version print version number and configuration settings, then exit
14499 -q, --quiet do not print progress messages
14500 -d, --debug don't remove temporary files
14501 --recheck update $as_me by reconfiguring in the same conditions
14502 --file=FILE[:TEMPLATE]
14503 instantiate the configuration file FILE
14504 --header=FILE[:TEMPLATE]
14505 instantiate the configuration header FILE
14506
14507Configuration files:
14508$config_files
14509
14510Configuration headers:
14511$config_headers
14512
14513Report bugs to <bug-autoconf@gnu.org>."
14514
14515_ACEOF
14516cat >>$CONFIG_STATUS <<_ACEOF
14517ac_cs_version="\\
14518charybdis config.status 3.1
14519configured by $0, generated by GNU Autoconf 2.61,
14520 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14521
14522Copyright (C) 2006 Free Software Foundation, Inc.
14523This config.status script is free software; the Free Software Foundation
14524gives unlimited permission to copy, distribute and modify it."
14525
14526ac_pwd='$ac_pwd'
14527srcdir='$srcdir'
14528INSTALL='$INSTALL'
14529_ACEOF
14530
14531cat >>$CONFIG_STATUS <<\_ACEOF
14532# If no file are specified by the user, then we need to provide default
14533# value. By we need to know if files were specified by the user.
14534ac_need_defaults=:
14535while test $# != 0
14536do
14537 case $1 in
14538 --*=*)
14539 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14540 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14541 ac_shift=:
14542 ;;
14543 *)
14544 ac_option=$1
14545 ac_optarg=$2
14546 ac_shift=shift
14547 ;;
14548 esac
14549
14550 case $ac_option in
14551 # Handling of the options.
14552 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14553 ac_cs_recheck=: ;;
14554 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14555 echo "$ac_cs_version"; exit ;;
14556 --debug | --debu | --deb | --de | --d | -d )
14557 debug=: ;;
14558 --file | --fil | --fi | --f )
14559 $ac_shift
14560 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14561 ac_need_defaults=false;;
14562 --header | --heade | --head | --hea )
14563 $ac_shift
14564 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14565 ac_need_defaults=false;;
14566 --he | --h)
14567 # Conflict between --help and --header
14568 { echo "$as_me: error: ambiguous option: $1
14569Try \`$0 --help' for more information." >&2
14570 { (exit 1); exit 1; }; };;
14571 --help | --hel | -h )
14572 echo "$ac_cs_usage"; exit ;;
14573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14575 ac_cs_silent=: ;;
14576
14577 # This is an error.
14578 -*) { echo "$as_me: error: unrecognized option: $1
14579Try \`$0 --help' for more information." >&2
14580 { (exit 1); exit 1; }; } ;;
14581
14582 *) ac_config_targets="$ac_config_targets $1"
14583 ac_need_defaults=false ;;
14584
14585 esac
14586 shift
14587done
14588
14589ac_configure_extra_args=
14590
14591if $ac_cs_silent; then
14592 exec 6>/dev/null
14593 ac_configure_extra_args="$ac_configure_extra_args --silent"
14594fi
14595
14596_ACEOF
14597cat >>$CONFIG_STATUS <<_ACEOF
14598if \$ac_cs_recheck; then
14599 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14600 CONFIG_SHELL=$SHELL
14601 export CONFIG_SHELL
14602 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14603fi
14604
14605_ACEOF
14606cat >>$CONFIG_STATUS <<\_ACEOF
14607exec 5>>config.log
14608{
14609 echo
14610 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14611## Running $as_me. ##
14612_ASBOX
14613 echo "$ac_log"
14614} >&5
14615
14616_ACEOF
14617cat >>$CONFIG_STATUS <<_ACEOF
14618_ACEOF
14619
14620cat >>$CONFIG_STATUS <<\_ACEOF
14621
14622# Handling of arguments.
14623for ac_config_target in $ac_config_targets
14624do
14625 case $ac_config_target in
14626 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14627 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14628 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
14629 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
14630 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
14631 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14632 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14633 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14634 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14635 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14636
14637 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14638echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14639 { (exit 1); exit 1; }; };;
14640 esac
14641done
14642
14643
14644# If the user did not use the arguments to specify the items to instantiate,
14645# then the envvar interface is used. Set only those that are not.
14646# We use the long form for the default assignment because of an extremely
14647# bizarre bug on SunOS 4.1.3.
14648if $ac_need_defaults; then
14649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14651fi
14652
14653# Have a temporary directory for convenience. Make it in the build tree
14654# simply because there is no reason against having it here, and in addition,
14655# creating and moving files from /tmp can sometimes cause problems.
14656# Hook for its removal unless debugging.
14657# Note that there is a small window in which the directory will not be cleaned:
14658# after its creation but before its name has been assigned to `$tmp'.
14659$debug ||
14660{
14661 tmp=
14662 trap 'exit_status=$?
14663 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14664' 0
14665 trap '{ (exit 1); exit 1; }' 1 2 13 15
14666}
14667# Create a (secure) tmp directory for tmp files.
14668
14669{
14670 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14671 test -n "$tmp" && test -d "$tmp"
14672} ||
14673{
14674 tmp=./conf$$-$RANDOM
14675 (umask 077 && mkdir "$tmp")
14676} ||
14677{
14678 echo "$me: cannot create a temporary directory in ." >&2
14679 { (exit 1); exit 1; }
14680}
14681
14682#
14683# Set up the sed scripts for CONFIG_FILES section.
14684#
14685
14686# No need to generate the scripts if there are no CONFIG_FILES.
14687# This happens for instance when ./config.status config.h
14688if test -n "$CONFIG_FILES"; then
14689
14690_ACEOF
14691
14692
14693
14694ac_delim='%!_!# '
14695for ac_last_try in false false false false false :; do
14696 cat >conf$$subs.sed <<_ACEOF
14697SHELL!$SHELL$ac_delim
14698PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14699PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14700PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14701PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14702PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14703PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14704exec_prefix!$exec_prefix$ac_delim
14705prefix!$prefix$ac_delim
14706program_transform_name!$program_transform_name$ac_delim
14707bindir!$bindir$ac_delim
14708sbindir!$sbindir$ac_delim
14709libexecdir!$libexecdir$ac_delim
14710datarootdir!$datarootdir$ac_delim
14711datadir!$datadir$ac_delim
14712sysconfdir!$sysconfdir$ac_delim
14713sharedstatedir!$sharedstatedir$ac_delim
14714localstatedir!$localstatedir$ac_delim
14715includedir!$includedir$ac_delim
14716oldincludedir!$oldincludedir$ac_delim
14717docdir!$docdir$ac_delim
14718infodir!$infodir$ac_delim
14719htmldir!$htmldir$ac_delim
14720dvidir!$dvidir$ac_delim
14721pdfdir!$pdfdir$ac_delim
14722psdir!$psdir$ac_delim
14723libdir!$libdir$ac_delim
14724localedir!$localedir$ac_delim
14725mandir!$mandir$ac_delim
14726DEFS!$DEFS$ac_delim
14727ECHO_C!$ECHO_C$ac_delim
14728ECHO_N!$ECHO_N$ac_delim
14729ECHO_T!$ECHO_T$ac_delim
14730LIBS!$LIBS$ac_delim
14731build_alias!$build_alias$ac_delim
14732host_alias!$host_alias$ac_delim
14733target_alias!$target_alias$ac_delim
14734CC!$CC$ac_delim
14735CFLAGS!$CFLAGS$ac_delim
14736LDFLAGS!$LDFLAGS$ac_delim
14737CPPFLAGS!$CPPFLAGS$ac_delim
14738ac_ct_CC!$ac_ct_CC$ac_delim
14739EXEEXT!$EXEEXT$ac_delim
14740OBJEXT!$OBJEXT$ac_delim
14741subdirs!$subdirs$ac_delim
14742MKDEP!$MKDEP$ac_delim
14743MAKEDEPEND!$MAKEDEPEND$ac_delim
14744STDOUT!$STDOUT$ac_delim
14745CPP!$CPP$ac_delim
14746GREP!$GREP$ac_delim
14747EGREP!$EGREP$ac_delim
14748SET_MAKE!$SET_MAKE$ac_delim
14749INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14750INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14751INSTALL_DATA!$INSTALL_DATA$ac_delim
14752RM!$RM$ac_delim
14753CP!$CP$ac_delim
14754MV!$MV$ac_delim
14755LN!$LN$ac_delim
14756SED!$SED$ac_delim
14757AR!$AR$ac_delim
14758LD!$LD$ac_delim
14759RANLIB!$RANLIB$ac_delim
14760TOUCH!$TOUCH$ac_delim
14761YACC!$YACC$ac_delim
14762YFLAGS!$YFLAGS$ac_delim
14763LEX!$LEX$ac_delim
14764LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14765LEXLIB!$LEXLIB$ac_delim
14766CRYPT_LIB!$CRYPT_LIB$ac_delim
14767VICONF!$VICONF$ac_delim
14768ALLOCA!$ALLOCA$ac_delim
14769ENCSPEED!$ENCSPEED$ac_delim
14770ZLIB_LD!$ZLIB_LD$ac_delim
14771ETC_DIR!$ETC_DIR$ac_delim
14772confdir!$confdir$ac_delim
14773LOG_DIR!$LOG_DIR$ac_delim
14774logdir!$logdir$ac_delim
14775HELP_DIR!$HELP_DIR$ac_delim
14776helpdir!$helpdir$ac_delim
14777MODULE_DIR!$MODULE_DIR$ac_delim
14778moduledir!$moduledir$ac_delim
14779SELECT_TYPE!$SELECT_TYPE$ac_delim
14780MODULES_LIBS!$MODULES_LIBS$ac_delim
14781MOD_TARGET!$MOD_TARGET$ac_delim
14782SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14783SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14784SSL_LIBS!$SSL_LIBS$ac_delim
14785PICFLAGS!$PICFLAGS$ac_delim
14786IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14787SEDOBJ!$SEDOBJ$ac_delim
14788LIBOBJS!$LIBOBJS$ac_delim
14789LTLIBOBJS!$LTLIBOBJS$ac_delim
14790_ACEOF
14791
14792 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
14793 break
14794 elif $ac_last_try; then
14795 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14796echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14797 { (exit 1); exit 1; }; }
14798 else
14799 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14800 fi
14801done
14802
14803ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14804if test -n "$ac_eof"; then
14805 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14806 ac_eof=`expr $ac_eof + 1`
14807fi
14808
14809cat >>$CONFIG_STATUS <<_ACEOF
14810cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14811/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14812_ACEOF
14813sed '
14814s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14815s/^/s,@/; s/!/@,|#_!!_#|/
14816:n
14817t n
14818s/'"$ac_delim"'$/,g/; t
14819s/$/\\/; p
14820N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14821' >>$CONFIG_STATUS <conf$$subs.sed
14822rm -f conf$$subs.sed
14823cat >>$CONFIG_STATUS <<_ACEOF
14824:end
14825s/|#_!!_#|//g
14826CEOF$ac_eof
14827_ACEOF
14828
14829
14830# VPATH may cause trouble with some makes, so we remove $(srcdir),
14831# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14832# trailing colons and then remove the whole line if VPATH becomes empty
14833# (actually we leave an empty line to preserve line numbers).
14834if test "x$srcdir" = x.; then
14835 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14836s/:*\$(srcdir):*/:/
14837s/:*\${srcdir}:*/:/
14838s/:*@srcdir@:*/:/
14839s/^\([^=]*=[ ]*\):*/\1/
14840s/:*$//
14841s/^[^=]*=[ ]*$//
14842}'
14843fi
14844
14845cat >>$CONFIG_STATUS <<\_ACEOF
14846fi # test -n "$CONFIG_FILES"
14847
14848
14849for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14850do
14851 case $ac_tag in
14852 :[FHLC]) ac_mode=$ac_tag; continue;;
14853 esac
14854 case $ac_mode$ac_tag in
14855 :[FHL]*:*);;
14856 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14857echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14858 { (exit 1); exit 1; }; };;
14859 :[FH]-) ac_tag=-:-;;
14860 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14861 esac
14862 ac_save_IFS=$IFS
14863 IFS=:
14864 set x $ac_tag
14865 IFS=$ac_save_IFS
14866 shift
14867 ac_file=$1
14868 shift
14869
14870 case $ac_mode in
14871 :L) ac_source=$1;;
14872 :[FH])
14873 ac_file_inputs=
14874 for ac_f
14875 do
14876 case $ac_f in
14877 -) ac_f="$tmp/stdin";;
14878 *) # Look for the file first in the build tree, then in the source tree
14879 # (if the path is not absolute). The absolute path cannot be DOS-style,
14880 # because $ac_f cannot contain `:'.
14881 test -f "$ac_f" ||
14882 case $ac_f in
14883 [\\/$]*) false;;
14884 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14885 esac ||
14886 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14887echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14888 { (exit 1); exit 1; }; };;
14889 esac
14890 ac_file_inputs="$ac_file_inputs $ac_f"
14891 done
14892
14893 # Let's still pretend it is `configure' which instantiates (i.e., don't
14894 # use $as_me), people would be surprised to read:
14895 # /* config.h. Generated by config.status. */
14896 configure_input="Generated from "`IFS=:
14897 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14898 if test x"$ac_file" != x-; then
14899 configure_input="$ac_file. $configure_input"
14900 { echo "$as_me:$LINENO: creating $ac_file" >&5
14901echo "$as_me: creating $ac_file" >&6;}
14902 fi
14903
14904 case $ac_tag in
14905 *:-:* | *:-) cat >"$tmp/stdin";;
14906 esac
14907 ;;
14908 esac
14909
14910 ac_dir=`$as_dirname -- "$ac_file" ||
14911$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14912 X"$ac_file" : 'X\(//\)[^/]' \| \
14913 X"$ac_file" : 'X\(//\)$' \| \
14914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14915echo X"$ac_file" |
14916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14917 s//\1/
14918 q
14919 }
14920 /^X\(\/\/\)[^/].*/{
14921 s//\1/
14922 q
14923 }
14924 /^X\(\/\/\)$/{
14925 s//\1/
14926 q
14927 }
14928 /^X\(\/\).*/{
14929 s//\1/
14930 q
14931 }
14932 s/.*/./; q'`
14933 { as_dir="$ac_dir"
14934 case $as_dir in #(
14935 -*) as_dir=./$as_dir;;
14936 esac
14937 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14938 as_dirs=
14939 while :; do
14940 case $as_dir in #(
14941 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14942 *) as_qdir=$as_dir;;
14943 esac
14944 as_dirs="'$as_qdir' $as_dirs"
14945 as_dir=`$as_dirname -- "$as_dir" ||
14946$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14947 X"$as_dir" : 'X\(//\)[^/]' \| \
14948 X"$as_dir" : 'X\(//\)$' \| \
14949 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14950echo X"$as_dir" |
14951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14952 s//\1/
14953 q
14954 }
14955 /^X\(\/\/\)[^/].*/{
14956 s//\1/
14957 q
14958 }
14959 /^X\(\/\/\)$/{
14960 s//\1/
14961 q
14962 }
14963 /^X\(\/\).*/{
14964 s//\1/
14965 q
14966 }
14967 s/.*/./; q'`
14968 test -d "$as_dir" && break
14969 done
14970 test -z "$as_dirs" || eval "mkdir $as_dirs"
14971 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14972echo "$as_me: error: cannot create directory $as_dir" >&2;}
14973 { (exit 1); exit 1; }; }; }
14974 ac_builddir=.
14975
14976case "$ac_dir" in
14977.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14978*)
14979 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14980 # A ".." for each directory in $ac_dir_suffix.
14981 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14982 case $ac_top_builddir_sub in
14983 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14984 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14985 esac ;;
14986esac
14987ac_abs_top_builddir=$ac_pwd
14988ac_abs_builddir=$ac_pwd$ac_dir_suffix
14989# for backward compatibility:
14990ac_top_builddir=$ac_top_build_prefix
14991
14992case $srcdir in
14993 .) # We are building in place.
14994 ac_srcdir=.
14995 ac_top_srcdir=$ac_top_builddir_sub
14996 ac_abs_top_srcdir=$ac_pwd ;;
14997 [\\/]* | ?:[\\/]* ) # Absolute name.
14998 ac_srcdir=$srcdir$ac_dir_suffix;
14999 ac_top_srcdir=$srcdir
15000 ac_abs_top_srcdir=$srcdir ;;
15001 *) # Relative name.
15002 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15003 ac_top_srcdir=$ac_top_build_prefix$srcdir
15004 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15005esac
15006ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15007
15008
15009 case $ac_mode in
15010 :F)
15011 #
15012 # CONFIG_FILE
15013 #
15014
15015 case $INSTALL in
15016 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15017 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15018 esac
15019_ACEOF
15020
15021cat >>$CONFIG_STATUS <<\_ACEOF
15022# If the template does not know about datarootdir, expand it.
15023# FIXME: This hack should be removed a few years after 2.60.
15024ac_datarootdir_hack=; ac_datarootdir_seen=
15025
15026case `sed -n '/datarootdir/ {
15027 p
15028 q
15029}
15030/@datadir@/p
15031/@docdir@/p
15032/@infodir@/p
15033/@localedir@/p
15034/@mandir@/p
15035' $ac_file_inputs` in
15036*datarootdir*) ac_datarootdir_seen=yes;;
15037*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15038 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15039echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15040_ACEOF
15041cat >>$CONFIG_STATUS <<_ACEOF
15042 ac_datarootdir_hack='
15043 s&@datadir@&$datadir&g
15044 s&@docdir@&$docdir&g
15045 s&@infodir@&$infodir&g
15046 s&@localedir@&$localedir&g
15047 s&@mandir@&$mandir&g
15048 s&\\\${datarootdir}&$datarootdir&g' ;;
15049esac
15050_ACEOF
15051
15052# Neutralize VPATH when `$srcdir' = `.'.
15053# Shell code in configure.ac might set extrasub.
15054# FIXME: do we really want to maintain this feature?
15055cat >>$CONFIG_STATUS <<_ACEOF
15056 sed "$ac_vpsub
15057$extrasub
15058_ACEOF
15059cat >>$CONFIG_STATUS <<\_ACEOF
15060:t
15061/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15062s&@configure_input@&$configure_input&;t t
15063s&@top_builddir@&$ac_top_builddir_sub&;t t
15064s&@srcdir@&$ac_srcdir&;t t
15065s&@abs_srcdir@&$ac_abs_srcdir&;t t
15066s&@top_srcdir@&$ac_top_srcdir&;t t
15067s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15068s&@builddir@&$ac_builddir&;t t
15069s&@abs_builddir@&$ac_abs_builddir&;t t
15070s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15071s&@INSTALL@&$ac_INSTALL&;t t
15072$ac_datarootdir_hack
15073" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15074
15075test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15076 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15077 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15078 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15079which seems to be undefined. Please make sure it is defined." >&5
15080echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15081which seems to be undefined. Please make sure it is defined." >&2;}
15082
15083 rm -f "$tmp/stdin"
15084 case $ac_file in
15085 -) cat "$tmp/out"; rm -f "$tmp/out";;
15086 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
15087 esac
15088 ;;
15089 :H)
15090 #
15091 # CONFIG_HEADER
15092 #
15093_ACEOF
15094
15095# Transform confdefs.h into a sed script `conftest.defines', that
15096# substitutes the proper values into config.h.in to produce config.h.
15097rm -f conftest.defines conftest.tail
15098# First, append a space to every undef/define line, to ease matching.
15099echo 's/$/ /' >conftest.defines
15100# Then, protect against being on the right side of a sed subst, or in
15101# an unquoted here document, in config.status. If some macros were
15102# called several times there might be several #defines for the same
15103# symbol, which is useless. But do not sort them, since the last
15104# AC_DEFINE must be honored.
15105ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15106# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15107# NAME is the cpp macro being defined, VALUE is the value it is being given.
15108# PARAMS is the parameter list in the macro definition--in most cases, it's
15109# just an empty string.
15110ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15111ac_dB='\\)[ (].*,\\1define\\2'
15112ac_dC=' '
15113ac_dD=' ,'
15114
15115uniq confdefs.h |
15116 sed -n '
15117 t rset
15118 :rset
15119 s/^[ ]*#[ ]*define[ ][ ]*//
15120 t ok
15121 d
15122 :ok
15123 s/[\\&,]/\\&/g
15124 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15125 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15126 ' >>conftest.defines
15127
15128# Remove the space that was appended to ease matching.
15129# Then replace #undef with comments. This is necessary, for
15130# example, in the case of _POSIX_SOURCE, which is predefined and required
15131# on some systems where configure will not decide to define it.
15132# (The regexp can be short, since the line contains either #define or #undef.)
15133echo 's/ $//
15134s,^[ #]*u.*,/* & */,' >>conftest.defines
15135
15136# Break up conftest.defines:
15137ac_max_sed_lines=50
15138
15139# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15140# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15141# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15142# et cetera.
15143ac_in='$ac_file_inputs'
15144ac_out='"$tmp/out1"'
15145ac_nxt='"$tmp/out2"'
15146
15147while :
15148do
15149 # Write a here document:
15150 cat >>$CONFIG_STATUS <<_ACEOF
15151 # First, check the format of the line:
15152 cat >"\$tmp/defines.sed" <<\\CEOF
15153/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15154/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15155b
15156:def
15157_ACEOF
15158 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
15159 echo 'CEOF
15160 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15161 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15162 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15163 grep . conftest.tail >/dev/null || break
15164 rm -f conftest.defines
15165 mv conftest.tail conftest.defines
15166done
15167rm -f conftest.defines conftest.tail
15168
15169echo "ac_result=$ac_in" >>$CONFIG_STATUS
15170cat >>$CONFIG_STATUS <<\_ACEOF
15171 if test x"$ac_file" != x-; then
15172 echo "/* $configure_input */" >"$tmp/config.h"
15173 cat "$ac_result" >>"$tmp/config.h"
15174 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
15175 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15176echo "$as_me: $ac_file is unchanged" >&6;}
15177 else
15178 rm -f $ac_file
15179 mv "$tmp/config.h" $ac_file
15180 fi
15181 else
15182 echo "/* $configure_input */"
15183 cat "$ac_result"
15184 fi
15185 rm -f "$tmp/out12"
15186 ;;
15187
15188
15189 esac
15190
15191done # for ac_tag
15192
15193
15194{ (exit 0); exit 0; }
15195_ACEOF
15196chmod +x $CONFIG_STATUS
15197ac_clean_files=$ac_clean_files_save
15198
15199
15200# configure is writing to config.log, and then calls config.status.
15201# config.status does its own redirection, appending to config.log.
15202# Unfortunately, on DOS this fails, as config.log is still kept open
15203# by configure, so config.status won't be able to write to it; its
15204# output is simply discarded. So we exec the FD to /dev/null,
15205# effectively closing config.log, so it can be properly (re)opened and
15206# appended to by config.status. When coming back to configure, we
15207# need to make the FD available again.
15208if test "$no_create" != yes; then
15209 ac_cs_success=:
15210 ac_config_status_args=
15211 test "$silent" = yes &&
15212 ac_config_status_args="$ac_config_status_args --quiet"
15213 exec 5>/dev/null
15214 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15215 exec 5>>config.log
15216 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15217 # would make configure fail if this is the last instruction.
15218 $ac_cs_success || { (exit 1); exit 1; }
15219fi
15220
15221#
15222# CONFIG_SUBDIRS section.
15223#
15224if test "$no_recursion" != yes; then
15225
15226 # Remove --cache-file and --srcdir arguments so they do not pile up.
15227 ac_sub_configure_args=
15228 ac_prev=
15229 eval "set x $ac_configure_args"
15230 shift
15231 for ac_arg
15232 do
15233 if test -n "$ac_prev"; then
15234 ac_prev=
15235 continue
15236 fi
15237 case $ac_arg in
15238 -cache-file | --cache-file | --cache-fil | --cache-fi \
15239 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15240 ac_prev=cache_file ;;
15241 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15242 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15243 | --c=*)
15244 ;;
15245 --config-cache | -C)
15246 ;;
15247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15248 ac_prev=srcdir ;;
15249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15250 ;;
15251 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15252 ac_prev=prefix ;;
15253 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15254 ;;
15255 *)
15256 case $ac_arg in
15257 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15258 esac
15259 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15260 esac
15261 done
15262
15263 # Always prepend --prefix to ensure using the same prefix
15264 # in subdir configurations.
15265 ac_arg="--prefix=$prefix"
15266 case $ac_arg in
15267 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15268 esac
15269 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15270
15271 # Pass --silent
15272 if test "$silent" = yes; then
15273 ac_sub_configure_args="--silent $ac_sub_configure_args"
15274 fi
15275
15276 ac_popdir=`pwd`
15277 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15278
15279 # Do not complain, so a configure script can configure whichever
15280 # parts of a large source tree are present.
15281 test -d "$srcdir/$ac_dir" || continue
15282
15283 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15284 echo "$as_me:$LINENO: $ac_msg" >&5
15285 echo "$ac_msg" >&6
15286 { as_dir="$ac_dir"
15287 case $as_dir in #(
15288 -*) as_dir=./$as_dir;;
15289 esac
15290 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15291 as_dirs=
15292 while :; do
15293 case $as_dir in #(
15294 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15295 *) as_qdir=$as_dir;;
15296 esac
15297 as_dirs="'$as_qdir' $as_dirs"
15298 as_dir=`$as_dirname -- "$as_dir" ||
15299$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15300 X"$as_dir" : 'X\(//\)[^/]' \| \
15301 X"$as_dir" : 'X\(//\)$' \| \
15302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15303echo X"$as_dir" |
15304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15305 s//\1/
15306 q
15307 }
15308 /^X\(\/\/\)[^/].*/{
15309 s//\1/
15310 q
15311 }
15312 /^X\(\/\/\)$/{
15313 s//\1/
15314 q
15315 }
15316 /^X\(\/\).*/{
15317 s//\1/
15318 q
15319 }
15320 s/.*/./; q'`
15321 test -d "$as_dir" && break
15322 done
15323 test -z "$as_dirs" || eval "mkdir $as_dirs"
15324 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15325echo "$as_me: error: cannot create directory $as_dir" >&2;}
15326 { (exit 1); exit 1; }; }; }
15327 ac_builddir=.
15328
15329case "$ac_dir" in
15330.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15331*)
15332 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15333 # A ".." for each directory in $ac_dir_suffix.
15334 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15335 case $ac_top_builddir_sub in
15336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15338 esac ;;
15339esac
15340ac_abs_top_builddir=$ac_pwd
15341ac_abs_builddir=$ac_pwd$ac_dir_suffix
15342# for backward compatibility:
15343ac_top_builddir=$ac_top_build_prefix
15344
15345case $srcdir in
15346 .) # We are building in place.
15347 ac_srcdir=.
15348 ac_top_srcdir=$ac_top_builddir_sub
15349 ac_abs_top_srcdir=$ac_pwd ;;
15350 [\\/]* | ?:[\\/]* ) # Absolute name.
15351 ac_srcdir=$srcdir$ac_dir_suffix;
15352 ac_top_srcdir=$srcdir
15353 ac_abs_top_srcdir=$srcdir ;;
15354 *) # Relative name.
15355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15356 ac_top_srcdir=$ac_top_build_prefix$srcdir
15357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15358esac
15359ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15360
15361
15362 cd "$ac_dir"
15363
15364 # Check for guested configure; otherwise get Cygnus style configure.
15365 if test -f "$ac_srcdir/configure.gnu"; then
15366 ac_sub_configure=$ac_srcdir/configure.gnu
15367 elif test -f "$ac_srcdir/configure"; then
15368 ac_sub_configure=$ac_srcdir/configure
15369 elif test -f "$ac_srcdir/configure.in"; then
15370 # This should be Cygnus configure.
15371 ac_sub_configure=$ac_aux_dir/configure
15372 else
15373 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15374echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15375 ac_sub_configure=
15376 fi
15377
15378 # The recursion is here.
15379 if test -n "$ac_sub_configure"; then
15380 # Make the cache file name correct relative to the subdirectory.
15381 case $cache_file in
15382 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15383 *) # Relative name.
15384 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15385 esac
15386
15387 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15388echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15389 # The eval makes quoting arguments work.
15390 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15391 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15392 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15393echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15394 { (exit 1); exit 1; }; }
15395 fi
15396
15397 cd "$ac_popdir"
15398 done
15399fi
15400
15401
15402if test "$cf_openssl_version_ok" = yes; then
15403 openssl="yes"
15404else
15405 openssl="no"
15406fi
15407
15408if test "$shared_modules" = yes; then
15409 modules=shared
15410else
15411 modules=static
15412fi
15413
15414echo "
15415Configuration:
15416 Install directory : $prefix
15417
15418 Ziplinks : $zlib
15419 OpenSSL : $openssl
15420 Socket Engine : $SELECT_TYPE
15421 Small network : $small_net
15422 Block allocator : $balloc
15423
15424 Nickname length : $NICKLEN
15425 Topic length : $TOPICLEN
15426
15427Use (g)make to compile Charybdis, then (g)make install to install it.
15428"