]> jfr.im git - irc/rqf/shadowircd.git/blame - configure
Rerun autoconf and autoheader.
[irc/rqf/shadowircd.git] / configure
CommitLineData
212380e3 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
40bee184 3# Generated by GNU Autoconf 2.61 for charybdis 3.0.0-alpha1.
212380e3 4#
56efe974 5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 6#
631ef239 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
212380e3 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
631ef239 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
212380e3 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+"$@"}'='"$@"'
631ef239 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
212380e3 53fi
212380e3 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
631ef239 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
212380e3 96# Work around bugs in pre-3.0 UWIN ksh.
631ef239 97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
212380e3 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
631ef239 113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
212380e3 114 fi
115done
116
117# Required to use basename.
631ef239 118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 120 as_expr=expr
121else
122 as_expr=false
123fi
124
631ef239 125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3 126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
631ef239 133as_me=`$as_basename -- "$0" ||
212380e3 134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
631ef239 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 137echo X/"$0" |
631ef239 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'`
212380e3 151
631ef239 152# CDPATH.
153$as_unset CDPATH
212380e3 154
212380e3 155
631ef239 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
212380e3 161fi
162
631ef239 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}
212380e3 179
631ef239 180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
212380e3 187
631ef239 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=
212380e3 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=.
631ef239 228 case $as_dir in
212380e3 229 /*)
631ef239 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(
212380e3 330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
212380e3 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
631ef239 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" || {
212380e3 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
631ef239 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.
212380e3 437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
631ef239 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 |
212380e3 444 sed '
631ef239 445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
212380e3 449 N
631ef239 450 :loop
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
212380e3 452 t loop
631ef239 453 s/-\n.*//
212380e3 454 ' >$as_me.lineno &&
631ef239 455 chmod +x "$as_me.lineno" ||
212380e3 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
631ef239 461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
212380e3 463 # Exit status is that of the last command.
464 exit
465}
466
467
631ef239 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';;
212380e3 483esac
484
631ef239 485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
631ef239 493if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
495else
496 rm -f conf$$.dir
497 mkdir conf$$.dir
498fi
212380e3 499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
631ef239 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 ||
212380e3 507 as_ln_s='cp -p'
212380e3 508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
631ef239 513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
212380e3 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
631ef239 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
212380e3 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
212380e3 553
631ef239 554exec 7<&0 </dev/null 6>&1
212380e3 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
212380e3 561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
631ef239 565ac_clean_files=
212380e3 566ac_config_libobj_dir=.
631ef239 567LIBOBJS=
212380e3 568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
212380e3 574# Identity of this package.
575PACKAGE_NAME='charybdis'
576PACKAGE_TARNAME='charybdis'
40bee184
WP
577PACKAGE_VERSION='3.0.0-alpha1'
578PACKAGE_STRING='charybdis 3.0.0-alpha1'
212380e3 579PACKAGE_BUGREPORT=''
580
581ac_default_prefix=$HOME/ircd
582# Factoring default headers for most tests.
583ac_includes_default="\
584#include <stdio.h>
631ef239 585#ifdef HAVE_SYS_TYPES_H
212380e3 586# include <sys/types.h>
587#endif
631ef239 588#ifdef HAVE_SYS_STAT_H
212380e3 589# include <sys/stat.h>
590#endif
631ef239 591#ifdef STDC_HEADERS
212380e3 592# include <stdlib.h>
593# include <stddef.h>
594#else
631ef239 595# ifdef HAVE_STDLIB_H
212380e3 596# include <stdlib.h>
597# endif
598#endif
631ef239 599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3 601# include <memory.h>
602# endif
603# include <string.h>
604#endif
631ef239 605#ifdef HAVE_STRINGS_H
212380e3 606# include <strings.h>
607#endif
631ef239 608#ifdef HAVE_INTTYPES_H
212380e3 609# include <inttypes.h>
212380e3 610#endif
631ef239 611#ifdef HAVE_STDINT_H
612# include <stdint.h>
613#endif
614#ifdef HAVE_UNISTD_H
212380e3 615# include <unistd.h>
616#endif"
617
631ef239 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
56efe974 662subdirs
631ef239 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
631ef239 701MODULES_LIBS
702MOD_TARGET
703SSL_SRCS_ENABLE
704SSL_INCLUDES
705SSL_LIBS
706PICFLAGS
707IRC_CFLAGS
708SEDOBJ
709LIBOBJS
710LTLIBOBJS'
212380e3 711ac_subst_files=''
631ef239 712 ac_precious_vars='build_alias
713host_alias
714target_alias
715CC
716CFLAGS
717LDFLAGS
718LIBS
719CPPFLAGS
720CPP
721YACC
722YFLAGS'
56efe974 723ac_subdirs_all='libratbox'
212380e3 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.
631ef239 750# (The list follows the same order as the GNU Coding Standards.)
212380e3 751bindir='${exec_prefix}/bin'
752sbindir='${exec_prefix}/sbin'
753libexecdir='${exec_prefix}/libexec'
631ef239 754datarootdir='${prefix}/share'
755datadir='${datarootdir}'
212380e3 756sysconfdir='${prefix}/etc'
757sharedstatedir='${prefix}/com'
758localstatedir='${prefix}/var'
212380e3 759includedir='${prefix}/include'
760oldincludedir='/usr/include'
631ef239 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'
212380e3 770
771ac_prev=
631ef239 772ac_dashdash=
212380e3 773for ac_option
774do
775 # If the previous option needs an argument, assign it.
776 if test -n "$ac_prev"; then
631ef239 777 eval $ac_prev=\$ac_option
212380e3 778 ac_prev=
779 continue
780 fi
781
631ef239 782 case $ac_option in
783 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 *) ac_optarg=yes ;;
785 esac
212380e3 786
787 # Accept the important Cygnus configure options, so we can diagnose typos.
788
631ef239 789 case $ac_dashdash$ac_option in
790 --)
791 ac_dashdash=yes ;;
212380e3 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
631ef239 813 -datadir | --datadir | --datadi | --datad)
212380e3 814 ac_prev=datadir ;;
631ef239 815 -datadir=* | --datadir=* | --datadi=* | --datad=*)
212380e3 816 datadir=$ac_optarg ;;
817
631ef239 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
212380e3 825 -disable-* | --disable-*)
826 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
827 # Reject names that are not valid shell variable names.
631ef239 828 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 829 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
830 { (exit 1); exit 1; }; }
631ef239 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 ;;
212380e3 843
844 -enable-* | --enable-*)
845 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
846 # Reject names that are not valid shell variable names.
631ef239 847 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
631ef239 850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=\$ac_optarg ;;
212380e3 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
631ef239 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
212380e3 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
631ef239 908 -localedir | --localedir | --localedi | --localed | --locale)
909 ac_prev=localedir ;;
910 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
911 localedir=$ac_optarg ;;
912
212380e3 913 -localstatedir | --localstatedir | --localstatedi | --localstated \
631ef239 914 | --localstate | --localstat | --localsta | --localst | --locals)
212380e3 915 ac_prev=localstatedir ;;
916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3 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
631ef239 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
212380e3 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.
631ef239 1044 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
631ef239 1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=\$ac_optarg ;;
212380e3 1049
1050 -without-* | --without-*)
1051 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
631ef239 1053 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
212380e3 1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
631ef239 1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057 eval with_$ac_package=no ;;
212380e3 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; }; }
631ef239 1088 eval $ac_envvar=\$ac_optarg
212380e3 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
631ef239 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
212380e3 1113do
631ef239 1114 eval ac_val=\$$ac_var
212380e3 1115 case $ac_val in
631ef239 1116 [\\/$]* | ?:[\\/]* ) continue;;
1117 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1118 esac
631ef239 1119 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1120 { (exit 1); exit 1; }; }
212380e3 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
631ef239 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
212380e3 1159 ac_srcdir_defaulted=yes
631ef239 1160 # Try the directory containing this script, then the parent directory.
1161 ac_confdir=`$as_dirname -- "$0" ||
212380e3 1162$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1163 X"$0" : 'X\(//\)[^/]' \| \
1164 X"$0" : 'X\(//\)$' \| \
631ef239 1165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 1166echo X"$0" |
631ef239 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'`
212380e3 1184 srcdir=$ac_confdir
631ef239 1185 if test ! -r "$srcdir/$ac_unique_file"; then
212380e3 1186 srcdir=..
1187 fi
1188else
1189 ac_srcdir_defaulted=no
1190fi
631ef239 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
212380e3 1194 { (exit 1); exit 1; }; }
212380e3 1195fi
631ef239 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
212380e3 1199 { (exit 1); exit 1; }; }
631ef239 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
212380e3 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
40bee184 1225\`configure' configures charybdis 3.0.0-alpha1 to adapt to many kinds of systems.
212380e3 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
212380e3 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]
212380e3 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]
631ef239 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]
212380e3 1278_ACEOF
1279
1280 cat <<\_ACEOF
1281_ACEOF
1282fi
1283
1284if test -n "$ac_init_help"; then
1285 case $ac_init_help in
40bee184 1286 short | recursive ) echo "Configuration of charybdis 3.0.0-alpha1:";;
212380e3 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
631ef239 1294 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
212380e3 1295 --disable-openssl Disable OpenSSL support.
1296 --disable-zlib Disable ziplinks support
c1c5fdc4 1297 --enable-ports Force solaris I/O ports subsystem usage.
212380e3 1298 --enable-poll Force poll() usage.
1299 --enable-select Force select() usage.
1300 --enable-kqueue Force kqueue() usage.
212380e3 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.
212380e3 1307 --enable-small-net Enable small network support.
212380e3 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)
212380e3 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>
631ef239 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>
212380e3 1330 CPP C preprocessor
631ef239 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.
212380e3 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
631ef239 1341ac_status=$?
212380e3 1342fi
1343
1344if test "$ac_init_help" = "recursive"; then
1345 # If there are subdirs, report their specific --help.
212380e3 1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
631ef239 1347 test -d "$ac_dir" || continue
212380e3 1348 ac_builddir=.
1349
631ef239 1350case "$ac_dir" in
1351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352*)
212380e3 1353 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
631ef239 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
212380e3 1365
1366case $srcdir in
631ef239 1367 .) # We are building in place.
212380e3 1368 ac_srcdir=.
631ef239 1369 ac_top_srcdir=$ac_top_builddir_sub
1370 ac_abs_top_srcdir=$ac_pwd ;;
1371 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 1372 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239 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 ;;
212380e3 1379esac
631ef239 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
212380e3 1390 else
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239 1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3 1394 done
1395fi
1396
631ef239 1397test -n "$ac_init_help" && exit $ac_status
212380e3 1398if $ac_init_version; then
1399 cat <<\_ACEOF
40bee184 1400charybdis configure 3.0.0-alpha1
631ef239 1401generated by GNU Autoconf 2.61
212380e3 1402
631ef239 1403Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
212380e3 1405This configure script is free software; the Free Software Foundation
1406gives unlimited permission to copy, distribute and modify it.
1407
56efe974 1408$Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 1409_ACEOF
631ef239 1410 exit
212380e3 1411fi
631ef239 1412cat >config.log <<_ACEOF
212380e3 1413This file contains any messages produced by compilers while
1414running configure, to aid debugging if configure makes a mistake.
1415
40bee184 1416It was created by charybdis $as_me 3.0.0-alpha1, which was
631ef239 1417generated by GNU Autoconf 2.61. Invocation command line was
212380e3 1418
1419 $ $0 $@
1420
1421_ACEOF
631ef239 1422exec 5>>config.log
212380e3 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`
631ef239 1441/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
212380e3 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
631ef239 1455IFS=$as_save_IFS
212380e3 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=
212380e3 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 ;;
631ef239 1487 *\'*)
212380e3 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
631ef239 1509 ac_configure_args="$ac_configure_args '$ac_arg'"
212380e3 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.
631ef239 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.
212380e3 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,
631ef239 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
212380e3 1549 (set) 2>&1 |
631ef239 1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
212380e3 1552 sed -n \
631ef239 1553 "s/'\''/'\''\\\\'\'''\''/g;
1554 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1555 ;; #(
212380e3 1556 *)
631ef239 1557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 1558 ;;
631ef239 1559 esac |
1560 sort
1561)
212380e3 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
631ef239 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'\''"
212380e3 1577 done | sort
1578 echo
1579
1580 if test -n "$ac_subst_files"; then
1581 cat <<\_ASBOX
631ef239 1582## ------------------- ##
1583## File substitutions. ##
1584## ------------------- ##
212380e3 1585_ASBOX
1586 echo
1587 for ac_var in $ac_subst_files
1588 do
631ef239 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'\''"
212380e3 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
631ef239 1605 cat confdefs.h
212380e3 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
631ef239 1612 rm -f core *.core core.conftest.* &&
1613 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
212380e3 1614 exit $exit_status
631ef239 1615' 0
212380e3 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.
631ef239 1622rm -f -r conftest* confdefs.h
212380e3 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.
631ef239 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"
212380e3 1660fi
631ef239 1661shift
1662for ac_site_file
1663do
212380e3 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
631ef239 1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
212380e3 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
631ef239 1692for ac_var in $ac_precious_vars; do
212380e3 1693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1694 eval ac_new_set=\$ac_env_${ac_var}_set
631ef239 1695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1696 eval ac_new_val=\$ac_env_${ac_var}_value
212380e3 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
631ef239 1721 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
212380e3 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
212380e3 1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
631ef239 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
212380e3 1767
1768
1769
631ef239 1770ac_config_headers="$ac_config_headers include/setup.h"
212380e3 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
631ef239 1791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 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
631ef239 1805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 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
631ef239 1812IFS=$as_save_IFS
212380e3 1813
1814fi
1815fi
1816CC=$ac_cv_prog_CC
1817if test -n "$CC"; then
631ef239 1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819echo "${ECHO_T}$CC" >&6; }
212380e3 1820else
631ef239 1821 { echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6; }
212380e3 1823fi
1824
631ef239 1825
212380e3 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
631ef239 1831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 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
631ef239 1845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 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
631ef239 1852IFS=$as_save_IFS
212380e3 1853
1854fi
1855fi
1856ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857if test -n "$ac_ct_CC"; then
631ef239 1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859echo "${ECHO_T}$ac_ct_CC" >&6; }
212380e3 1860else
631ef239 1861 { echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6; }
212380e3 1863fi
1864
631ef239 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
212380e3 1880else
1881 CC="$ac_cv_prog_CC"
1882fi
1883
1884if test -z "$CC"; then
631ef239 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.
212380e3 1887set dummy ${ac_tool_prefix}cc; ac_word=$2
631ef239 1888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 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
631ef239 1902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 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
631ef239 1909IFS=$as_save_IFS
212380e3 1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
631ef239 1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6; }
212380e3 1917else
631ef239 1918 { echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6; }
212380e3 1920fi
1921
212380e3 1922
631ef239 1923 fi
212380e3 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
631ef239 1928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 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
631ef239 1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 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
631ef239 1954IFS=$as_save_IFS
212380e3 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
631ef239 1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973echo "${ECHO_T}$CC" >&6; }
212380e3 1974else
631ef239 1975 { echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6; }
212380e3 1977fi
1978
631ef239 1979
212380e3 1980fi
1981if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
631ef239 1983 for ac_prog in cl.exe
212380e3 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
631ef239 1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 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
631ef239 2001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 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
631ef239 2008IFS=$as_save_IFS
212380e3 2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
631ef239 2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6; }
212380e3 2016else
631ef239 2017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
212380e3 2019fi
2020
631ef239 2021
212380e3 2022 test -n "$CC" && break
2023 done
2024fi
2025if test -z "$CC"; then
2026 ac_ct_CC=$CC
631ef239 2027 for ac_prog in cl.exe
212380e3 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
631ef239 2031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 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
631ef239 2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 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
631ef239 2052IFS=$as_save_IFS
212380e3 2053
2054fi
2055fi
2056ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057if test -n "$ac_ct_CC"; then
631ef239 2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059echo "${ECHO_T}$ac_ct_CC" >&6; }
212380e3 2060else
631ef239 2061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
212380e3 2063fi
2064
631ef239 2065
212380e3 2066 test -n "$ac_ct_CC" && break
2067done
2068
631ef239 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
212380e3 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.
631ef239 2096echo "$as_me:$LINENO: checking for C compiler version" >&5
212380e3 2097ac_compiler=`set X $ac_compile; echo $2`
631ef239 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
212380e3 2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
631ef239 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
212380e3 2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
631ef239 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
212380e3 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.
631ef239 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; }
212380e3 2151ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
631ef239 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
212380e3 2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
631ef239 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 ''
212380e3 2187do
2188 test -f "$ac_file" || continue
2189 case $ac_file in
631ef239 2190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
212380e3 2191 ;;
2192 [ab].out )
2193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
2196 *.* )
631ef239 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.
212380e3 2206 break;;
2207 * )
2208 break;;
2209 esac
2210done
631ef239 2211test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
212380e3 2213else
631ef239 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
212380e3 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
212380e3 2231
631ef239 2232# Check that the compiler produces executables we can run. If not, either
212380e3 2233# the compiler is broken, or we cross compile.
631ef239 2234{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2235echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
212380e3 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'
631ef239 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
212380e3 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
631ef239 2264{ echo "$as_me:$LINENO: result: yes" >&5
2265echo "${ECHO_T}yes" >&6; }
212380e3 2266
2267rm -f a.out a.exe conftest$ac_cv_exeext b.out
2268ac_clean_files=$ac_clean_files_save
631ef239 2269# Check that the compiler produces executables we can run. If not, either
212380e3 2270# the compiler is broken, or we cross compile.
631ef239 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
212380e3 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
631ef239 2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
212380e3 2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
212380e3 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
631ef239 2310{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6; }
212380e3 2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
631ef239 2316{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2317echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
212380e3 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
631ef239 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
212380e3 2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
631ef239 2347 for ac_file in conftest.o conftest.obj conftest.*; do
2348 test -f "$ac_file" || continue;
212380e3 2349 case $ac_file in
631ef239 2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
212380e3 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
631ef239 2368{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369echo "${ECHO_T}$ac_cv_objext" >&6; }
212380e3 2370OBJEXT=$ac_cv_objext
2371ac_objext=$OBJEXT
631ef239 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; }
212380e3 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
631ef239 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
212380e3 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
631ef239 2408 (exit $ac_status); } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then
212380e3 2412 ac_compiler_gnu=yes
2413else
2414 echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
631ef239 2417 ac_compiler_gnu=no
212380e3 2418fi
631ef239 2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
631ef239 2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
212380e3 2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
631ef239 2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
212380e3 2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
631ef239 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
212380e3 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
631ef239 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
212380e3 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
631ef239 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
212380e3 2499 ac_status=$?
631ef239 2500 grep -v '^ *+' conftest.er1 >conftest.err
2501 rm -f conftest.er1
2502 cat conftest.err >&5
212380e3 2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 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
212380e3 2538 ac_status=$?
631ef239 2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
212380e3 2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
212380e3 2547 ac_cv_prog_cc_g=yes
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
631ef239 2552
2553fi
2554
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2556fi
631ef239 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
212380e3 2563fi
631ef239 2564{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
212380e3 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
631ef239 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
212380e3 2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
631ef239 2586 ac_cv_prog_cc_c89=no
212380e3 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
631ef239 2620 as 'x'. The following induces an error, until -std is added to get
212380e3 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
631ef239 2623 that's true only with -std. */
212380e3 2624int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2625
631ef239 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
212380e3 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
631ef239 2645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
212380e3 2647do
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
631ef239 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
212380e3 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
631ef239 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
212380e3 2667else
2668 echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
631ef239 2671
212380e3 2672fi
631ef239 2673
2674rm -f core conftest.err conftest.$ac_objext
2675 test "x$ac_cv_prog_cc_c89" != "xno" && break
212380e3 2676done
631ef239 2677rm -f conftest.$ac_ext
212380e3 2678CC=$ac_save_CC
2679
2680fi
631ef239 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; } ;;
212380e3 2689 *)
631ef239 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; } ;;
212380e3 2693esac
2694
212380e3 2695
212380e3 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
56efe974
WP
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
212380e3 2745
2746if test "$ac_cv_c_compiler_gnu" != yes; then
2747
2748SGS=no
631ef239 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; }
212380e3 2751case `$CC -version 2>&1` in
2752*TenDRA*)
631ef239 2753 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2754echo "${ECHO_T}yes, TenDRA" >&6; }
212380e3 2755 IRC_CFLAGS=""
2756 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
2757 SGS=yes
2758 TenDRA=yes
2759;;
2760*MIPSpro*)
631ef239 2761 { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2762echo "${ECHO_T}yes, MIPSpro" >&6; }
212380e3 2763 MIPSpro=yes
2764 SGS=yes
2765;;
2766*)
631ef239 2767 { echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6; }
212380e3 2769 TenDRA=no
2770 MIPSpro=no
2771;;
2772esac
2773
631ef239 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; }
212380e3 2776case `$CC -V 2>&1` in
2777*Sun*WorkShop* | *Forte*Developer*)
631ef239 2778 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2779echo "${ECHO_T}Sun Workshop/Forte" >&6; }
212380e3 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*)
631ef239 2785 { echo "$as_me:$LINENO: result: Tru64 cc" >&5
2786echo "${ECHO_T}Tru64 cc" >&6; }
212380e3 2787 IRC_CFLAGS="-O2"
2788 CPPFLAGS="-I/usr/local/include"
2789 Tru=yes
2790;;
2791*HP*ANSI*)
631ef239 2792 { echo "$as_me:$LINENO: result: HPUX cc" >&5
2793echo "${ECHO_T}HPUX cc" >&6; }
212380e3 2794 HPUX=yes
2795 IRC_CFLAGS="+e"
2796;;
2797*)
631ef239 2798 { echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6; }
212380e3 2800;;
2801esac
2802
2803fi
2804
631ef239 2805{ echo "$as_me:$LINENO: checking uname -s for Cygwin, Solaris, AIX or HPUX" >&5
2806echo $ECHO_N "checking uname -s for Cygwin, Solaris, AIX or HPUX... $ECHO_C" >&6; }
212380e3 2807OSNAME=`uname -s`
2808case "$OSNAME" in
2809 HP-UX*)
2810
2811 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
631ef239 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; }
212380e3 2814 IRC_CFLAGS="$IRC_CFLAGS +e"
2815 HPUX=yes
2816 else
631ef239 2817 { echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2818echo "${ECHO_T}already using newer HPUX" >&6; }
212380e3 2819 fi
2820 ;;
2821 CYGWIN*)
631ef239 2822 { echo "$as_me:$LINENO: result: Cygwin" >&5
2823echo "${ECHO_T}Cygwin" >&6; }
212380e3 2824 CYGWIN=yes
2825 ;;
2826 SunOS*)
631ef239 2827 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2828echo "${ECHO_T}SunOS or Solaris" >&6; }
212380e3 2829
2830cat >>confdefs.h <<\_ACEOF
2831#define __EXTENSIONS__ 1
2832_ACEOF
2833
2834 SUN=yes
2835 ;;
2836 AIX*)
631ef239 2837 { echo "$as_me:$LINENO: result: AIX - Sorry you poor bastard..really we are" >&5
2838echo "${ECHO_T}AIX - Sorry you poor bastard..really we are" >&6; }
212380e3 2839 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2840 ;;
2841 *)
631ef239 2842 { echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6; }
212380e3 2844 ;;
2845esac
2846
2847if test "$ac_cv_c_compiler_gnu" = yes; then
631ef239 2848 { echo "$as_me:$LINENO: checking if $CC is Apple GCC" >&5
2849echo $ECHO_N "checking if $CC is Apple GCC... $ECHO_C" >&6; }
212380e3 2850
2851 case `$CC -v 2>&1 | tail -n 1` in
2852 *Apple*)
631ef239 2853 { echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6; }
212380e3 2855 AppleGCC=yes
2856 ;;
2857 *)
631ef239 2858 { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
212380e3 2860 AppleGCC=no
2861 ;;
2862 esac
2863
a8001fa5 2864 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall -std=gnu99"
212380e3 2865fi
2866
2867if test "$ac_cv_prog_cc_g" = yes; then
2868 if test "$Tru" = yes; then
2869 IRC_CFLAGS="$IRC_CFLAGS -g3"
2870 else
2871 IRC_CFLAGS="$IRC_CFLAGS -g"
2872 fi
2873fi
2874
631ef239 2875{ echo "$as_me:$LINENO: checking if $CC supports the SVR4 SGS interfaces" >&5
2876echo $ECHO_N "checking if $CC supports the SVR4 SGS interfaces... $ECHO_C" >&6; }
212380e3 2877if test "$SGS" = "yes"; then
631ef239 2878 { echo "$as_me:$LINENO: result: yes" >&5
2879echo "${ECHO_T}yes" >&6; }
212380e3 2880else
631ef239 2881 { echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6; }
212380e3 2883fi
2884
2885# Extract the first word of "mkdep", so it can be a program name with args.
2886set dummy mkdep; ac_word=$2
631ef239 2887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 2889if test "${ac_cv_path_MKDEP+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891else
2892 case $MKDEP in
2893 [\\/]* | ?:[\\/]*)
2894 ac_cv_path_MKDEP="$MKDEP" # Let the user override the test with a path.
2895 ;;
2896 *)
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 2904 ac_cv_path_MKDEP="$as_dir/$ac_word$ac_exec_ext"
2905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 break 2
2907 fi
2908done
2909done
631ef239 2910IFS=$as_save_IFS
212380e3 2911
2912 ;;
2913esac
2914fi
2915MKDEP=$ac_cv_path_MKDEP
212380e3 2916if test -n "$MKDEP"; then
631ef239 2917 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2918echo "${ECHO_T}$MKDEP" >&6; }
212380e3 2919else
631ef239 2920 { echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6; }
212380e3 2922fi
2923
631ef239 2924
212380e3 2925# Extract the first word of "makedepend", so it can be a program name with args.
2926set dummy makedepend; ac_word=$2
631ef239 2927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 2929if test "${ac_cv_path_MAKEDEPEND+set}" = set; then
2930 echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932 case $MAKEDEPEND in
2933 [\\/]* | ?:[\\/]*)
2934 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
2935 ;;
2936 *)
2937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
2942 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 2943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 2944 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
2945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 break 2
2947 fi
2948done
2949done
631ef239 2950IFS=$as_save_IFS
212380e3 2951
2952 ;;
2953esac
2954fi
2955MAKEDEPEND=$ac_cv_path_MAKEDEPEND
212380e3 2956if test -n "$MAKEDEPEND"; then
631ef239 2957 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2958echo "${ECHO_T}$MAKEDEPEND" >&6; }
212380e3 2959else
631ef239 2960 { echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6; }
212380e3 2962fi
2963
2964
631ef239 2965
2966{ echo "$as_me:$LINENO: checking how to generate dependency info" >&5
2967echo $ECHO_N "checking how to generate dependency info... $ECHO_C" >&6; }
212380e3 2968
2969STDOUT="> .depend"
2970
2971if test "$ac_cv_c_compiler_gnu" = yes; then
631ef239 2972 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2973echo "${ECHO_T}gcc -MM" >&6; }
212380e3 2974 MKDEP="$CC -MM"
2975elif test ! -z "$MKDEP"; then
631ef239 2976 { echo "$as_me:$LINENO: result: mkdep" >&5
2977echo "${ECHO_T}mkdep" >&6; }
212380e3 2978
2979 if test -z "$Tru"; then
2980 STDOUT=""
2981 else
2982 STDOUT=" 2> /dev/null"
2983 fi
2984elif test "$SunWorkShop" = yes; then
631ef239 2985 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2986echo "${ECHO_T}$CC -xM" >&6; }
212380e3 2987 MKDEP="$CC -xM"
2988 STDOUT="> .depend 2> /dev/null"
2989elif test ! -z "$MAKEDEPEND"; then
631ef239 2990 { echo "$as_me:$LINENO: result: makedepend" >&5
2991echo "${ECHO_T}makedepend" >&6; }
212380e3 2992 MKDEP="$MAKEDEPEND -f-"
2993else
631ef239 2994 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2995echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
212380e3 2996 MKDEP=":"
2997fi
2998
2999
3000
3001
631ef239 3002{ echo "$as_me:$LINENO: checking for /dev/null" >&5
3003echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
212380e3 3004if test -c /dev/null ; then
3005
3006cat >>confdefs.h <<\_ACEOF
3007#define PATH_DEVNULL "/dev/null"
3008_ACEOF
3009
631ef239 3010 { echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6; }
212380e3 3012else
3013
3014cat >>confdefs.h <<\_ACEOF
3015#define PATH_DEVNULL "devnull.log"
3016_ACEOF
3017
631ef239 3018 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
3019echo "${ECHO_T}no - using devnull.log" >&6; }
212380e3 3020fi
3021
3022if test ! -z "$CFLAGS"; then
3023 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
3024fi
3025
3026
631ef239 3027{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3028echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
212380e3 3029if test "${ac_cv_search_strerror+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 ac_func_search_save_LIBS=$LIBS
212380e3 3033cat >conftest.$ac_ext <<_ACEOF
3034/* confdefs.h. */
3035_ACEOF
3036cat confdefs.h >>conftest.$ac_ext
3037cat >>conftest.$ac_ext <<_ACEOF
3038/* end confdefs.h. */
3039
631ef239 3040/* Override any GCC internal prototype to avoid an error.
3041 Use char because int might match the return type of a GCC
3042 builtin and then its argument prototype would still apply. */
212380e3 3043#ifdef __cplusplus
3044extern "C"
3045#endif
212380e3 3046char strerror ();
3047int
3048main ()
3049{
631ef239 3050return strerror ();
212380e3 3051 ;
3052 return 0;
3053}
3054_ACEOF
631ef239 3055for ac_lib in '' cposix; do
3056 if test -z "$ac_lib"; then
3057 ac_res="none required"
3058 else
3059 ac_res=-l$ac_lib
3060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3061 fi
3062 rm -f conftest.$ac_objext conftest$ac_exeext
3063if { (ac_try="$ac_link"
3064case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_link") 2>conftest.er1
212380e3 3070 ac_status=$?
3071 grep -v '^ *+' conftest.er1 >conftest.err
3072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest$ac_exeext &&
3079 $as_test_x conftest$ac_exeext; then
3080 ac_cv_search_strerror=$ac_res
212380e3 3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
212380e3 3085
631ef239 3086fi
212380e3 3087
631ef239 3088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3089 conftest$ac_exeext
3090 if test "${ac_cv_search_strerror+set}" = set; then
3091 break
212380e3 3092fi
631ef239 3093done
3094if test "${ac_cv_search_strerror+set}" = set; then
3095 :
3096else
3097 ac_cv_search_strerror=no
212380e3 3098fi
631ef239 3099rm conftest.$ac_ext
212380e3 3100LIBS=$ac_func_search_save_LIBS
3101fi
631ef239 3102{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3103echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3104ac_res=$ac_cv_search_strerror
3105if test "$ac_res" != no; then
3106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 3107
3108fi
3109
631ef239 3110{ echo "$as_me:$LINENO: checking for inline" >&5
3111echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
212380e3 3112if test "${ac_cv_c_inline+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 ac_cv_c_inline=no
3116for ac_kw in inline __inline__ __inline; do
3117 cat >conftest.$ac_ext <<_ACEOF
3118/* confdefs.h. */
3119_ACEOF
3120cat confdefs.h >>conftest.$ac_ext
3121cat >>conftest.$ac_ext <<_ACEOF
3122/* end confdefs.h. */
3123#ifndef __cplusplus
3124typedef int foo_t;
3125static $ac_kw foo_t static_foo () {return 0; }
3126$ac_kw foo_t foo () {return 0; }
3127#endif
3128
3129_ACEOF
3130rm -f conftest.$ac_objext
631ef239 3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
212380e3 3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3143 (exit $ac_status); } && {
3144 test -z "$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 ac_cv_c_inline=$ac_kw
212380e3 3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
631ef239 3152
212380e3 3153fi
631ef239 3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 test "$ac_cv_c_inline" != no && break
212380e3 3157done
3158
3159fi
631ef239 3160{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3161echo "${ECHO_T}$ac_cv_c_inline" >&6; }
212380e3 3162
3163
3164case $ac_cv_c_inline in
3165 inline | yes) ;;
3166 *)
3167 case $ac_cv_c_inline in
3168 no) ac_val=;;
3169 *) ac_val=$ac_cv_c_inline;;
3170 esac
3171 cat >>confdefs.h <<_ACEOF
3172#ifndef __cplusplus
3173#define inline $ac_val
3174#endif
3175_ACEOF
3176 ;;
3177esac
3178
3179ac_ext=c
3180ac_cpp='$CPP $CPPFLAGS'
3181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3183ac_compiler_gnu=$ac_cv_c_compiler_gnu
631ef239 3184{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3185echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
212380e3 3186# On Suns, sometimes $CPP names a directory.
3187if test -n "$CPP" && test -d "$CPP"; then
3188 CPP=
3189fi
3190if test -z "$CPP"; then
3191 if test "${ac_cv_prog_CPP+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194 # Double quotes because CPP needs to be expanded
3195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3196 do
3197 ac_preproc_ok=false
3198for ac_c_preproc_warn_flag in '' yes
3199do
3200 # Use a header file that comes with gcc, so configuring glibc
3201 # with a fresh cross-compiler works.
3202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3203 # <limits.h> exists even on freestanding compilers.
3204 # On the NeXT, cc -E runs the code through the compiler's parser,
3205 # not just through cpp. "Syntax error" is here to catch this case.
3206 cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212#ifdef __STDC__
3213# include <limits.h>
3214#else
3215# include <assert.h>
3216#endif
3217 Syntax error
3218_ACEOF
631ef239 3219if { (ac_try="$ac_cpp conftest.$ac_ext"
3220case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3226 ac_status=$?
3227 grep -v '^ *+' conftest.er1 >conftest.err
3228 rm -f conftest.er1
3229 cat conftest.err >&5
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3231 (exit $ac_status); } >/dev/null && {
3232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3233 test ! -s conftest.err
3234 }; then
212380e3 3235 :
3236else
3237 echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
3240 # Broken: fails on valid input.
3241continue
3242fi
631ef239 3243
212380e3 3244rm -f conftest.err conftest.$ac_ext
3245
631ef239 3246 # OK, works on sane cases. Now check whether nonexistent headers
212380e3 3247 # can be detected and how.
3248 cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h. */
3254#include <ac_nonexistent.h>
3255_ACEOF
631ef239 3256if { (ac_try="$ac_cpp conftest.$ac_ext"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
3261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3263 ac_status=$?
3264 grep -v '^ *+' conftest.er1 >conftest.err
3265 rm -f conftest.er1
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3268 (exit $ac_status); } >/dev/null && {
3269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 }; then
212380e3 3272 # Broken: success on invalid input.
3273continue
3274else
3275 echo "$as_me: failed program was:" >&5
3276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Passes both tests.
3279ac_preproc_ok=:
3280break
3281fi
631ef239 3282
212380e3 3283rm -f conftest.err conftest.$ac_ext
3284
3285done
3286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287rm -f conftest.err conftest.$ac_ext
3288if $ac_preproc_ok; then
3289 break
3290fi
3291
3292 done
3293 ac_cv_prog_CPP=$CPP
3294
3295fi
3296 CPP=$ac_cv_prog_CPP
3297else
3298 ac_cv_prog_CPP=$CPP
3299fi
631ef239 3300{ echo "$as_me:$LINENO: result: $CPP" >&5
3301echo "${ECHO_T}$CPP" >&6; }
212380e3 3302ac_preproc_ok=false
3303for ac_c_preproc_warn_flag in '' yes
3304do
3305 # Use a header file that comes with gcc, so configuring glibc
3306 # with a fresh cross-compiler works.
3307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3308 # <limits.h> exists even on freestanding compilers.
3309 # On the NeXT, cc -E runs the code through the compiler's parser,
3310 # not just through cpp. "Syntax error" is here to catch this case.
3311 cat >conftest.$ac_ext <<_ACEOF
3312/* confdefs.h. */
3313_ACEOF
3314cat confdefs.h >>conftest.$ac_ext
3315cat >>conftest.$ac_ext <<_ACEOF
3316/* end confdefs.h. */
3317#ifdef __STDC__
3318# include <limits.h>
3319#else
3320# include <assert.h>
3321#endif
3322 Syntax error
3323_ACEOF
631ef239 3324if { (ac_try="$ac_cpp conftest.$ac_ext"
3325case "(($ac_try" in
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3331 ac_status=$?
3332 grep -v '^ *+' conftest.er1 >conftest.err
3333 rm -f conftest.er1
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3336 (exit $ac_status); } >/dev/null && {
3337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 }; then
212380e3 3340 :
3341else
3342 echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345 # Broken: fails on valid input.
3346continue
3347fi
631ef239 3348
212380e3 3349rm -f conftest.err conftest.$ac_ext
3350
631ef239 3351 # OK, works on sane cases. Now check whether nonexistent headers
212380e3 3352 # can be detected and how.
3353 cat >conftest.$ac_ext <<_ACEOF
3354/* confdefs.h. */
3355_ACEOF
3356cat confdefs.h >>conftest.$ac_ext
3357cat >>conftest.$ac_ext <<_ACEOF
3358/* end confdefs.h. */
3359#include <ac_nonexistent.h>
3360_ACEOF
631ef239 3361if { (ac_try="$ac_cpp conftest.$ac_ext"
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 }; then
212380e3 3377 # Broken: success on invalid input.
3378continue
3379else
3380 echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 # Passes both tests.
3384ac_preproc_ok=:
3385break
3386fi
631ef239 3387
212380e3 3388rm -f conftest.err conftest.$ac_ext
3389
3390done
3391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3392rm -f conftest.err conftest.$ac_ext
3393if $ac_preproc_ok; then
3394 :
3395else
3396 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3397See \`config.log' for more details." >&5
3398echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3399See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3401fi
3402
3403ac_ext=c
3404ac_cpp='$CPP $CPPFLAGS'
3405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3407ac_compiler_gnu=$ac_cv_c_compiler_gnu
3408
3409
631ef239 3410{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3411echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3412if test "${ac_cv_path_GREP+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414else
3415 # Extract the first word of "grep ggrep" to use in msg output
3416if test -z "$GREP"; then
3417set dummy grep ggrep; ac_prog_name=$2
3418if test "${ac_cv_path_GREP+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421 ac_path_GREP_found=false
3422# Loop through the user's path and test for each of PROGNAME-LIST
3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3425do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_prog in grep ggrep; do
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3431 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3432 # Check for GNU ac_path_GREP and select it if it is found.
3433 # Check for GNU $ac_path_GREP
3434case `"$ac_path_GREP" --version 2>&1` in
3435*GNU*)
3436 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3437*)
3438 ac_count=0
3439 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3440 while :
3441 do
3442 cat "conftest.in" "conftest.in" >"conftest.tmp"
3443 mv "conftest.tmp" "conftest.in"
3444 cp "conftest.in" "conftest.nl"
3445 echo 'GREP' >> "conftest.nl"
3446 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3447 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3448 ac_count=`expr $ac_count + 1`
3449 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3450 # Best one so far, save it but keep looking for a better one
3451 ac_cv_path_GREP="$ac_path_GREP"
3452 ac_path_GREP_max=$ac_count
3453 fi
3454 # 10*(2^10) chars as input seems more than enough
3455 test $ac_count -gt 10 && break
3456 done
3457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3458esac
3459
3460
3461 $ac_path_GREP_found && break 3
3462 done
3463done
3464
3465done
3466IFS=$as_save_IFS
3467
3468
3469fi
3470
3471GREP="$ac_cv_path_GREP"
3472if test -z "$GREP"; then
3473 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3474echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3475 { (exit 1); exit 1; }; }
3476fi
3477
3478else
3479 ac_cv_path_GREP=$GREP
3480fi
3481
3482
3483fi
3484{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3485echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3486 GREP="$ac_cv_path_GREP"
3487
3488
3489{ echo "$as_me:$LINENO: checking for egrep" >&5
3490echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3491if test "${ac_cv_path_EGREP+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493else
3494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3495 then ac_cv_path_EGREP="$GREP -E"
3496 else
3497 # Extract the first word of "egrep" to use in msg output
3498if test -z "$EGREP"; then
3499set dummy egrep; ac_prog_name=$2
3500if test "${ac_cv_path_EGREP+set}" = set; then
212380e3 3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
631ef239 3503 ac_path_EGREP_found=false
3504# Loop through the user's path and test for each of PROGNAME-LIST
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_prog in egrep; do
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3513 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3514 # Check for GNU ac_path_EGREP and select it if it is found.
3515 # Check for GNU $ac_path_EGREP
3516case `"$ac_path_EGREP" --version 2>&1` in
3517*GNU*)
3518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3519*)
3520 ac_count=0
3521 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3522 while :
3523 do
3524 cat "conftest.in" "conftest.in" >"conftest.tmp"
3525 mv "conftest.tmp" "conftest.in"
3526 cp "conftest.in" "conftest.nl"
3527 echo 'EGREP' >> "conftest.nl"
3528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3530 ac_count=`expr $ac_count + 1`
3531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3532 # Best one so far, save it but keep looking for a better one
3533 ac_cv_path_EGREP="$ac_path_EGREP"
3534 ac_path_EGREP_max=$ac_count
212380e3 3535 fi
631ef239 3536 # 10*(2^10) chars as input seems more than enough
3537 test $ac_count -gt 10 && break
3538 done
3539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3540esac
3541
3542
3543 $ac_path_EGREP_found && break 3
3544 done
3545done
3546
3547done
3548IFS=$as_save_IFS
3549
3550
3551fi
3552
3553EGREP="$ac_cv_path_EGREP"
3554if test -z "$EGREP"; then
3555 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3556echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3557 { (exit 1); exit 1; }; }
3558fi
3559
3560else
3561 ac_cv_path_EGREP=$EGREP
212380e3 3562fi
631ef239 3563
3564
3565 fi
3566fi
3567{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3568echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3569 EGREP="$ac_cv_path_EGREP"
212380e3 3570
3571
3572if test $ac_cv_c_compiler_gnu = yes; then
631ef239 3573 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3574echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
212380e3 3575if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578 ac_pattern="Autoconf.*'x'"
3579 cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h. */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h. */
3585#include <sgtty.h>
3586Autoconf TIOCGETP
3587_ACEOF
3588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3590 ac_cv_prog_gcc_traditional=yes
3591else
3592 ac_cv_prog_gcc_traditional=no
3593fi
3594rm -f conftest*
3595
3596
3597 if test $ac_cv_prog_gcc_traditional = no; then
3598 cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h. */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h. */
3604#include <termio.h>
3605Autoconf TCGETA
3606_ACEOF
3607if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3608 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3609 ac_cv_prog_gcc_traditional=yes
3610fi
3611rm -f conftest*
3612
3613 fi
3614fi
631ef239 3615{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3616echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
212380e3 3617 if test $ac_cv_prog_gcc_traditional = yes; then
3618 CC="$CC -traditional"
3619 fi
3620fi
3621
631ef239 3622{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3623echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3624set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3625if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627else
3628 cat >conftest.make <<\_ACEOF
631ef239 3629SHELL = /bin/sh
212380e3 3630all:
631ef239 3631 @echo '@@@%%%=$(MAKE)=@@@%%%'
212380e3 3632_ACEOF
3633# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
631ef239 3634case `${MAKE-make} -f conftest.make 2>/dev/null` in
3635 *@@@%%%=?*=@@@%%%*)
3636 eval ac_cv_prog_make_${ac_make}_set=yes;;
3637 *)
3638 eval ac_cv_prog_make_${ac_make}_set=no;;
3639esac
212380e3 3640rm -f conftest.make
3641fi
631ef239 3642if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3643 { echo "$as_me:$LINENO: result: yes" >&5
3644echo "${ECHO_T}yes" >&6; }
212380e3 3645 SET_MAKE=
3646else
631ef239 3647 { echo "$as_me:$LINENO: result: no" >&5
3648echo "${ECHO_T}no" >&6; }
212380e3 3649 SET_MAKE="MAKE=${MAKE-make}"
3650fi
3651
212380e3 3652# Find a good install program. We prefer a C program (faster),
3653# so one script is as good as another. But avoid the broken or
3654# incompatible versions:
3655# SysV /etc/install, /usr/sbin/install
3656# SunOS /usr/etc/install
3657# IRIX /sbin/install
3658# AIX /bin/install
3659# AmigaOS /C/install, which installs bootblocks on floppy discs
3660# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3661# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3662# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3663# OS/2's system install, which has a completely different semantic
3664# ./install, which can be erroneously created by make from ./install.sh.
631ef239 3665{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3666echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
212380e3 3667if test -z "$INSTALL"; then
3668if test "${ac_cv_path_install+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
3676 # Account for people who put trailing slashes in PATH elements.
3677case $as_dir/ in
3678 ./ | .// | /cC/* | \
3679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3680 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3681 /usr/ucb/* ) ;;
3682 *)
3683 # OSF1 and SCO ODT 3.0 have their own names for install.
3684 # Don't use installbsd from OSF since it installs stuff as root
3685 # by default.
3686 for ac_prog in ginstall scoinst install; do
3687 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3688 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
212380e3 3689 if test $ac_prog = install &&
3690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # AIX install. It has an incompatible calling convention.
3692 :
3693 elif test $ac_prog = install &&
3694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3695 # program-specific install script used by HP pwplus--don't use.
3696 :
3697 else
3698 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3699 break 3
3700 fi
3701 fi
3702 done
3703 done
3704 ;;
3705esac
3706done
631ef239 3707IFS=$as_save_IFS
212380e3 3708
3709
3710fi
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
3713 else
631ef239 3714 # As a last resort, use the slow shell script. Don't cache a
3715 # value for INSTALL within a source directory, because that will
212380e3 3716 # break other packages using the cache if that directory is
631ef239 3717 # removed, or if the value is a relative name.
212380e3 3718 INSTALL=$ac_install_sh
3719 fi
3720fi
631ef239 3721{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3722echo "${ECHO_T}$INSTALL" >&6; }
212380e3 3723
3724# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3725# It thinks the first close brace ends the variable substitution.
3726test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3727
3728test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3729
3730test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3731
3732# Extract the first word of "rm", so it can be a program name with args.
3733set dummy rm; ac_word=$2
631ef239 3734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3736if test "${ac_cv_path_RM+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739 case $RM in
3740 [\\/]* | ?:[\\/]*)
3741 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3742 ;;
3743 *)
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3751 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3754 fi
3755done
3756done
631ef239 3757IFS=$as_save_IFS
212380e3 3758
3759 ;;
3760esac
3761fi
3762RM=$ac_cv_path_RM
212380e3 3763if test -n "$RM"; then
631ef239 3764 { echo "$as_me:$LINENO: result: $RM" >&5
3765echo "${ECHO_T}$RM" >&6; }
212380e3 3766else
631ef239 3767 { echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6; }
212380e3 3769fi
3770
631ef239 3771
212380e3 3772# Extract the first word of "cp", so it can be a program name with args.
3773set dummy cp; ac_word=$2
631ef239 3774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3776if test "${ac_cv_path_CP+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3778else
3779 case $CP in
3780 [\\/]* | ?:[\\/]*)
3781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3782 ;;
3783 *)
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785for as_dir in $PATH
3786do
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3794 fi
3795done
3796done
631ef239 3797IFS=$as_save_IFS
212380e3 3798
3799 ;;
3800esac
3801fi
3802CP=$ac_cv_path_CP
212380e3 3803if test -n "$CP"; then
631ef239 3804 { echo "$as_me:$LINENO: result: $CP" >&5
3805echo "${ECHO_T}$CP" >&6; }
212380e3 3806else
631ef239 3807 { echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6; }
212380e3 3809fi
3810
631ef239 3811
212380e3 3812# Extract the first word of "mv", so it can be a program name with args.
3813set dummy mv; ac_word=$2
631ef239 3814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3816if test "${ac_cv_path_MV+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
3818else
3819 case $MV in
3820 [\\/]* | ?:[\\/]*)
3821 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3822 ;;
3823 *)
3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3831 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835done
3836done
631ef239 3837IFS=$as_save_IFS
212380e3 3838
3839 ;;
3840esac
3841fi
3842MV=$ac_cv_path_MV
212380e3 3843if test -n "$MV"; then
631ef239 3844 { echo "$as_me:$LINENO: result: $MV" >&5
3845echo "${ECHO_T}$MV" >&6; }
212380e3 3846else
631ef239 3847 { echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6; }
212380e3 3849fi
3850
631ef239 3851
212380e3 3852# Extract the first word of "ln", so it can be a program name with args.
3853set dummy ln; ac_word=$2
631ef239 3854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3856if test "${ac_cv_path_LN+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858else
3859 case $LN in
3860 [\\/]* | ?:[\\/]*)
3861 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3862 ;;
3863 *)
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3871 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 break 2
3874 fi
3875done
3876done
631ef239 3877IFS=$as_save_IFS
212380e3 3878
3879 ;;
3880esac
3881fi
3882LN=$ac_cv_path_LN
212380e3 3883if test -n "$LN"; then
631ef239 3884 { echo "$as_me:$LINENO: result: $LN" >&5
3885echo "${ECHO_T}$LN" >&6; }
212380e3 3886else
631ef239 3887 { echo "$as_me:$LINENO: result: no" >&5
3888echo "${ECHO_T}no" >&6; }
212380e3 3889fi
3890
631ef239 3891
212380e3 3892# Extract the first word of "sed", so it can be a program name with args.
3893set dummy sed; ac_word=$2
631ef239 3894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3896if test "${ac_cv_path_SED+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 case $SED in
3900 [\\/]* | ?:[\\/]*)
3901 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3902 ;;
3903 *)
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3911 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915done
3916done
631ef239 3917IFS=$as_save_IFS
212380e3 3918
3919 ;;
3920esac
3921fi
3922SED=$ac_cv_path_SED
212380e3 3923if test -n "$SED"; then
631ef239 3924 { echo "$as_me:$LINENO: result: $SED" >&5
3925echo "${ECHO_T}$SED" >&6; }
212380e3 3926else
631ef239 3927 { echo "$as_me:$LINENO: result: no" >&5
3928echo "${ECHO_T}no" >&6; }
212380e3 3929fi
3930
631ef239 3931
212380e3 3932# Extract the first word of "ar", so it can be a program name with args.
3933set dummy ar; ac_word=$2
631ef239 3934{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3936if test "${ac_cv_path_AR+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3938else
3939 case $AR in
3940 [\\/]* | ?:[\\/]*)
3941 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3942 ;;
3943 *)
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945for as_dir in $PATH
3946do
3947 IFS=$as_save_IFS
3948 test -z "$as_dir" && as_dir=.
3949 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3951 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955done
3956done
631ef239 3957IFS=$as_save_IFS
212380e3 3958
3959 ;;
3960esac
3961fi
3962AR=$ac_cv_path_AR
212380e3 3963if test -n "$AR"; then
631ef239 3964 { echo "$as_me:$LINENO: result: $AR" >&5
3965echo "${ECHO_T}$AR" >&6; }
212380e3 3966else
631ef239 3967 { echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6; }
212380e3 3969fi
3970
631ef239 3971
212380e3 3972# Extract the first word of "ld", so it can be a program name with args.
3973set dummy ld; ac_word=$2
631ef239 3974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 3976if test "${ac_cv_path_LD+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978else
3979 case $LD in
3980 [\\/]* | ?:[\\/]*)
3981 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3982 ;;
3983 *)
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985for as_dir in $PATH
3986do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 3990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 3991 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3993 break 2
3994 fi
3995done
3996done
631ef239 3997IFS=$as_save_IFS
212380e3 3998
3999 ;;
4000esac
4001fi
4002LD=$ac_cv_path_LD
212380e3 4003if test -n "$LD"; then
631ef239 4004 { echo "$as_me:$LINENO: result: $LD" >&5
4005echo "${ECHO_T}$LD" >&6; }
212380e3 4006else
631ef239 4007 { echo "$as_me:$LINENO: result: no" >&5
4008echo "${ECHO_T}no" >&6; }
212380e3 4009fi
4010
631ef239 4011
212380e3 4012# Extract the first word of "ranlib", so it can be a program name with args.
4013set dummy ranlib; ac_word=$2
631ef239 4014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4016if test "${ac_cv_path_RANLIB+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 case $RANLIB in
4020 [\\/]* | ?:[\\/]*)
4021 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
4022 ;;
4023 *)
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4031 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 break 2
4034 fi
4035done
4036done
631ef239 4037IFS=$as_save_IFS
212380e3 4038
4039 ;;
4040esac
4041fi
4042RANLIB=$ac_cv_path_RANLIB
212380e3 4043if test -n "$RANLIB"; then
631ef239 4044 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4045echo "${ECHO_T}$RANLIB" >&6; }
212380e3 4046else
631ef239 4047 { echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6; }
212380e3 4049fi
4050
631ef239 4051
212380e3 4052# Extract the first word of "touch", so it can be a program name with args.
4053set dummy touch; ac_word=$2
631ef239 4054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4056if test "${ac_cv_path_TOUCH+set}" = set; then
4057 echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059 case $TOUCH in
4060 [\\/]* | ?:[\\/]*)
4061 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4062 ;;
4063 *)
4064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4065for as_dir in $PATH
4066do
4067 IFS=$as_save_IFS
4068 test -z "$as_dir" && as_dir=.
4069 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4071 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 break 2
4074 fi
4075done
4076done
631ef239 4077IFS=$as_save_IFS
212380e3 4078
4079 ;;
4080esac
4081fi
4082TOUCH=$ac_cv_path_TOUCH
212380e3 4083if test -n "$TOUCH"; then
631ef239 4084 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4085echo "${ECHO_T}$TOUCH" >&6; }
212380e3 4086else
631ef239 4087 { echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6; }
212380e3 4089fi
4090
4091
631ef239 4092
212380e3 4093for ac_prog in 'bison -y' byacc
4094do
4095 # Extract the first word of "$ac_prog", so it can be a program name with args.
4096set dummy $ac_prog; ac_word=$2
631ef239 4097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4099if test "${ac_cv_prog_YACC+set}" = set; then
4100 echo $ECHO_N "(cached) $ECHO_C" >&6
4101else
4102 if test -n "$YACC"; then
4103 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4104else
4105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106for as_dir in $PATH
4107do
4108 IFS=$as_save_IFS
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4112 ac_cv_prog_YACC="$ac_prog"
4113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 break 2
4115 fi
4116done
4117done
631ef239 4118IFS=$as_save_IFS
212380e3 4119
4120fi
4121fi
4122YACC=$ac_cv_prog_YACC
4123if test -n "$YACC"; then
631ef239 4124 { echo "$as_me:$LINENO: result: $YACC" >&5
4125echo "${ECHO_T}$YACC" >&6; }
212380e3 4126else
631ef239 4127 { echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6; }
212380e3 4129fi
4130
631ef239 4131
212380e3 4132 test -n "$YACC" && break
4133done
4134test -n "$YACC" || YACC="yacc"
4135
4136
4137if test "$YACC" = "yacc" -a -z "`which $YACC 2>/dev/null`"; then
4138 { { echo "$as_me:$LINENO: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&5
4139echo "$as_me: error: could not locate a suitable parser generator; install bison, yacc, or byacc" >&2;}
4140 { (exit 1); exit 1; }; }
4141fi
4142
4143for ac_prog in flex lex
4144do
4145 # Extract the first word of "$ac_prog", so it can be a program name with args.
4146set dummy $ac_prog; ac_word=$2
631ef239 4147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3 4149if test "${ac_cv_prog_LEX+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152 if test -n "$LEX"; then
4153 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4154else
4155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156for as_dir in $PATH
4157do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
631ef239 4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
212380e3 4162 ac_cv_prog_LEX="$ac_prog"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166done
4167done
631ef239 4168IFS=$as_save_IFS
212380e3 4169
4170fi
4171fi
4172LEX=$ac_cv_prog_LEX
4173if test -n "$LEX"; then
631ef239 4174 { echo "$as_me:$LINENO: result: $LEX" >&5
4175echo "${ECHO_T}$LEX" >&6; }
212380e3 4176else
631ef239 4177 { echo "$as_me:$LINENO: result: no" >&5
4178echo "${ECHO_T}no" >&6; }
212380e3 4179fi
4180
631ef239 4181
212380e3 4182 test -n "$LEX" && break
4183done
4184test -n "$LEX" || LEX=":"
4185
631ef239 4186if test "x$LEX" != "x:"; then
4187 cat >conftest.l <<_ACEOF
4188%%
4189a { ECHO; }
4190b { REJECT; }
4191c { yymore (); }
4192d { yyless (1); }
4193e { yyless (input () != 0); }
4194f { unput (yytext[0]); }
4195. { BEGIN INITIAL; }
4196%%
4197#ifdef YYTEXT_POINTER
4198extern char *yytext;
212380e3 4199#endif
212380e3 4200int
631ef239 4201main (void)
212380e3 4202{
631ef239 4203 return ! yylex () + ! yywrap ();
212380e3 4204}
4205_ACEOF
631ef239 4206{ (ac_try="$LEX conftest.l"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$LEX conftest.l") 2>&5
212380e3 4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4215 (exit $ac_status); }
4216{ echo "$as_me:$LINENO: checking lex output file root" >&5
4217echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
4218if test "${ac_cv_prog_lex_root+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
212380e3 4220else
212380e3 4221
631ef239 4222if test -f lex.yy.c; then
4223 ac_cv_prog_lex_root=lex.yy
4224elif test -f lexyy.c; then
4225 ac_cv_prog_lex_root=lexyy
212380e3 4226else
631ef239 4227 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4228echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4229 { (exit 1); exit 1; }; }
4230fi
4231fi
4232{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4233echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
4234LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4235
4236if test -z "${LEXLIB+set}"; then
4237 { echo "$as_me:$LINENO: checking lex library" >&5
4238echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
4239if test "${ac_cv_lib_lex+set}" = set; then
212380e3 4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
212380e3 4242
631ef239 4243 ac_save_LIBS=$LIBS
4244 ac_cv_lib_lex='none needed'
4245 for ac_lib in '' -lfl -ll; do
4246 LIBS="$ac_lib $ac_save_LIBS"
4247 cat >conftest.$ac_ext <<_ACEOF
4248`cat $LEX_OUTPUT_ROOT.c`
212380e3 4249_ACEOF
4250rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 4251if { (ac_try="$ac_link"
4252case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_link") 2>conftest.er1
212380e3 4258 ac_status=$?
4259 grep -v '^ *+' conftest.er1 >conftest.err
4260 rm -f conftest.er1
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4263 (exit $ac_status); } && {
4264 test -z "$ac_c_werror_flag" ||
4265 test ! -s conftest.err
4266 } && test -s conftest$ac_exeext &&
4267 $as_test_x conftest$ac_exeext; then
4268 ac_cv_lib_lex=$ac_lib
212380e3 4269else
4270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
212380e3 4273
4274fi
4275
631ef239 4276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4277 conftest$ac_exeext conftest.$ac_ext
4278 test "$ac_cv_lib_lex" != 'none needed' && break
4279 done
4280 LIBS=$ac_save_LIBS
212380e3 4281
212380e3 4282fi
631ef239 4283{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
4284echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
4285 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
212380e3 4286fi
212380e3 4287
631ef239 4288
4289{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4290echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
212380e3 4291if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4293else
4294 # POSIX says lex can declare yytext either as a pointer or an array; the
631ef239 4295# default is implementation-dependent. Figure out which it is, since
212380e3 4296# not all implementations provide the %pointer and %array declarations.
4297ac_cv_prog_lex_yytext_pointer=no
212380e3 4298ac_save_LIBS=$LIBS
631ef239 4299LIBS="$LEXLIB $ac_save_LIBS"
212380e3 4300cat >conftest.$ac_ext <<_ACEOF
631ef239 4301#define YYTEXT_POINTER 1
212380e3 4302`cat $LEX_OUTPUT_ROOT.c`
4303_ACEOF
4304rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 4305if { (ac_try="$ac_link"
4306case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309esac
4310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_link") 2>conftest.er1
212380e3 4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4317 (exit $ac_status); } && {
4318 test -z "$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 } && test -s conftest$ac_exeext &&
4321 $as_test_x conftest$ac_exeext; then
212380e3 4322 ac_cv_prog_lex_yytext_pointer=yes
4323else
4324 echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
4326
631ef239 4327
212380e3 4328fi
631ef239 4329
4330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 4331 conftest$ac_exeext conftest.$ac_ext
4332LIBS=$ac_save_LIBS
212380e3 4333
4334fi
631ef239 4335{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4336echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
212380e3 4337if test $ac_cv_prog_lex_yytext_pointer = yes; then
4338
4339cat >>confdefs.h <<\_ACEOF
4340#define YYTEXT_POINTER 1
4341_ACEOF
4342
4343fi
631ef239 4344rm -f conftest.l $LEX_OUTPUT_ROOT.c
212380e3 4345
4346fi
4347
4348if test "$LEX" = ":"; then
4349 { { echo "$as_me:$LINENO: error: could not locate a suitable lexical generator, install flex or lex." >&5
4350echo "$as_me: error: could not locate a suitable lexical generator, install flex or lex." >&2;}
4351 { (exit 1); exit 1; }; }
4352fi
4353
4354if test "$libexecdir" = '${exec_prefix}/libexec' &&
4355 test "$localstatedir" = '${prefix}/var'; then
4356 libexecdir='${bindir}'
4357 localstatedir='${prefix}'
4358fi
4359
631ef239 4360{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4361echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
212380e3 4362if test "${ac_cv_header_stdc+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 cat >conftest.$ac_ext <<_ACEOF
4366/* confdefs.h. */
4367_ACEOF
4368cat confdefs.h >>conftest.$ac_ext
4369cat >>conftest.$ac_ext <<_ACEOF
4370/* end confdefs.h. */
4371#include <stdlib.h>
4372#include <stdarg.h>
4373#include <string.h>
4374#include <float.h>
4375
4376int
4377main ()
4378{
4379
4380 ;
4381 return 0;
4382}
4383_ACEOF
4384rm -f conftest.$ac_objext
631ef239 4385if { (ac_try="$ac_compile"
4386case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
4390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4391 (eval "$ac_compile") 2>conftest.er1
212380e3 4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest.$ac_objext; then
212380e3 4401 ac_cv_header_stdc=yes
4402else
4403 echo "$as_me: failed program was:" >&5
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
631ef239 4406 ac_cv_header_stdc=no
212380e3 4407fi
631ef239 4408
4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4410
4411if test $ac_cv_header_stdc = yes; then
4412 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4413 cat >conftest.$ac_ext <<_ACEOF
4414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
4419#include <string.h>
4420
4421_ACEOF
4422if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4423 $EGREP "memchr" >/dev/null 2>&1; then
4424 :
4425else
4426 ac_cv_header_stdc=no
4427fi
4428rm -f conftest*
4429
4430fi
4431
4432if test $ac_cv_header_stdc = yes; then
4433 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4434 cat >conftest.$ac_ext <<_ACEOF
4435/* confdefs.h. */
4436_ACEOF
4437cat confdefs.h >>conftest.$ac_ext
4438cat >>conftest.$ac_ext <<_ACEOF
4439/* end confdefs.h. */
4440#include <stdlib.h>
4441
4442_ACEOF
4443if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4444 $EGREP "free" >/dev/null 2>&1; then
4445 :
4446else
4447 ac_cv_header_stdc=no
4448fi
4449rm -f conftest*
4450
4451fi
4452
4453if test $ac_cv_header_stdc = yes; then
4454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4455 if test "$cross_compiling" = yes; then
4456 :
4457else
4458 cat >conftest.$ac_ext <<_ACEOF
4459/* confdefs.h. */
4460_ACEOF
4461cat confdefs.h >>conftest.$ac_ext
4462cat >>conftest.$ac_ext <<_ACEOF
4463/* end confdefs.h. */
4464#include <ctype.h>
631ef239 4465#include <stdlib.h>
212380e3 4466#if ((' ' & 0x0FF) == 0x020)
4467# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4468# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4469#else
4470# define ISLOWER(c) \
4471 (('a' <= (c) && (c) <= 'i') \
4472 || ('j' <= (c) && (c) <= 'r') \
4473 || ('s' <= (c) && (c) <= 'z'))
4474# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4475#endif
4476
4477#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4478int
4479main ()
4480{
4481 int i;
4482 for (i = 0; i < 256; i++)
4483 if (XOR (islower (i), ISLOWER (i))
4484 || toupper (i) != TOUPPER (i))
631ef239 4485 return 2;
4486 return 0;
212380e3 4487}
4488_ACEOF
4489rm -f conftest$ac_exeext
631ef239 4490if { (ac_try="$ac_link"
4491case "(($ac_try" in
4492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4494esac
4495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4496 (eval "$ac_link") 2>&5
212380e3 4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 4500 { (case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503esac
4504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4505 (eval "$ac_try") 2>&5
212380e3 4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 :
4510else
4511 echo "$as_me: program exited with status $ac_status" >&5
4512echo "$as_me: failed program was:" >&5
4513sed 's/^/| /' conftest.$ac_ext >&5
4514
4515( exit $ac_status )
4516ac_cv_header_stdc=no
4517fi
631ef239 4518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 4519fi
631ef239 4520
4521
212380e3 4522fi
4523fi
631ef239 4524{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4525echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
212380e3 4526if test $ac_cv_header_stdc = yes; then
4527
4528cat >>confdefs.h <<\_ACEOF
4529#define STDC_HEADERS 1
4530_ACEOF
4531
4532fi
4533
4534
4535# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4546 inttypes.h stdint.h unistd.h
4547do
4548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 4549{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554 cat >conftest.$ac_ext <<_ACEOF
4555/* confdefs.h. */
4556_ACEOF
4557cat confdefs.h >>conftest.$ac_ext
4558cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h. */
4560$ac_includes_default
4561
4562#include <$ac_header>
4563_ACEOF
4564rm -f conftest.$ac_objext
631ef239 4565if { (ac_try="$ac_compile"
4566case "(($ac_try" in
4567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568 *) ac_try_echo=$ac_try;;
4569esac
4570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571 (eval "$ac_compile") 2>conftest.er1
212380e3 4572 ac_status=$?
4573 grep -v '^ *+' conftest.er1 >conftest.err
4574 rm -f conftest.er1
4575 cat conftest.err >&5
4576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
212380e3 4581 eval "$as_ac_Header=yes"
4582else
4583 echo "$as_me: failed program was:" >&5
4584sed 's/^/| /' conftest.$ac_ext >&5
4585
631ef239 4586 eval "$as_ac_Header=no"
212380e3 4587fi
631ef239 4588
4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4590fi
631ef239 4591ac_res=`eval echo '${'$as_ac_Header'}'`
4592 { echo "$as_me:$LINENO: result: $ac_res" >&5
4593echo "${ECHO_T}$ac_res" >&6; }
212380e3 4594if test `eval echo '${'$as_ac_Header'}'` = yes; then
4595 cat >>confdefs.h <<_ACEOF
4596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4597_ACEOF
4598
4599fi
4600
4601done
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615for 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
4616do
4617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 4618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623fi
631ef239 4624ac_res=`eval echo '${'$as_ac_Header'}'`
4625 { echo "$as_me:$LINENO: result: $ac_res" >&5
4626echo "${ECHO_T}$ac_res" >&6; }
212380e3 4627else
4628 # Is the header compilable?
631ef239 4629{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3 4631cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h. */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h. */
4637$ac_includes_default
4638#include <$ac_header>
4639_ACEOF
4640rm -f conftest.$ac_objext
631ef239 4641if { (ac_try="$ac_compile"
4642case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645esac
4646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
212380e3 4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
212380e3 4657 ac_header_compiler=yes
4658else
4659 echo "$as_me: failed program was:" >&5
4660sed 's/^/| /' conftest.$ac_ext >&5
4661
631ef239 4662 ac_header_compiler=no
212380e3 4663fi
631ef239 4664
4665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4667echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 4668
4669# Is the header present?
631ef239 4670{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3 4672cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h. */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h. */
4678#include <$ac_header>
4679_ACEOF
631ef239 4680if { (ac_try="$ac_cpp conftest.$ac_ext"
4681case "(($ac_try" in
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4684esac
4685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 4687 ac_status=$?
4688 grep -v '^ *+' conftest.er1 >conftest.err
4689 rm -f conftest.er1
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4692 (exit $ac_status); } >/dev/null && {
4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4695 }; then
212380e3 4696 ac_header_preproc=yes
4697else
4698 echo "$as_me: failed program was:" >&5
4699sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ac_header_preproc=no
4702fi
631ef239 4703
212380e3 4704rm -f conftest.err conftest.$ac_ext
631ef239 4705{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 4707
4708# So? What about this header?
4709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4710 yes:no: )
4711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4714echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4715 ac_header_preproc=yes
4716 ;;
4717 no:yes:* )
4718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4723echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4725echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4729echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 4730
212380e3 4731 ;;
4732esac
631ef239 4733{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738 eval "$as_ac_Header=\$ac_header_preproc"
4739fi
631ef239 4740ac_res=`eval echo '${'$as_ac_Header'}'`
4741 { echo "$as_me:$LINENO: result: $ac_res" >&5
4742echo "${ECHO_T}$ac_res" >&6; }
212380e3 4743
4744fi
4745if test `eval echo '${'$as_ac_Header'}'` = yes; then
4746 cat >>confdefs.h <<_ACEOF
4747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4748_ACEOF
4749
4750fi
4751
4752done
4753
4754
4755
631ef239 4756{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4757echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
212380e3 4758if test "${ac_cv_c_const+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760else
4761 cat >conftest.$ac_ext <<_ACEOF
4762/* confdefs.h. */
4763_ACEOF
4764cat confdefs.h >>conftest.$ac_ext
4765cat >>conftest.$ac_ext <<_ACEOF
4766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771/* FIXME: Include the comments suggested by Paul. */
4772#ifndef __cplusplus
4773 /* Ultrix mips cc rejects this. */
4774 typedef int charset[2];
631ef239 4775 const charset cs;
212380e3 4776 /* SunOS 4.1.1 cc rejects this. */
631ef239 4777 char const *const *pcpcc;
4778 char **ppc;
212380e3 4779 /* NEC SVR4.0.2 mips cc rejects this. */
4780 struct point {int x, y;};
4781 static struct point const zero = {0,0};
4782 /* AIX XL C 1.02.0.0 rejects this.
4783 It does not let you subtract one const X* pointer from another in
4784 an arm of an if-expression whose if-part is not a constant
4785 expression */
4786 const char *g = "string";
631ef239 4787 pcpcc = &g + (g ? g-g : 0);
212380e3 4788 /* HPUX 7.0 cc rejects these. */
631ef239 4789 ++pcpcc;
4790 ppc = (char**) pcpcc;
4791 pcpcc = (char const *const *) ppc;
212380e3 4792 { /* SCO 3.2v4 cc rejects this. */
4793 char *t;
4794 char const *s = 0 ? (char *) 0 : (char const *) 0;
4795
4796 *t++ = 0;
631ef239 4797 if (s) return 0;
212380e3 4798 }
4799 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4800 int x[] = {25, 17};
4801 const int *foo = &x[0];
4802 ++foo;
4803 }
4804 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4805 typedef const int *iptr;
4806 iptr p = 0;
4807 ++p;
4808 }
4809 { /* AIX XL C 1.02.0.0 rejects this saying
4810 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4811 struct s { int j; const int *ap[3]; };
4812 struct s *b; b->j = 5;
4813 }
4814 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4815 const int foo = 10;
631ef239 4816 if (!foo) return 0;
212380e3 4817 }
631ef239 4818 return !cs[0] && !zero.x;
212380e3 4819#endif
4820
4821 ;
4822 return 0;
4823}
4824_ACEOF
4825rm -f conftest.$ac_objext
631ef239 4826if { (ac_try="$ac_compile"
4827case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4830esac
4831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_compile") 2>conftest.er1
212380e3 4833 ac_status=$?
4834 grep -v '^ *+' conftest.er1 >conftest.err
4835 rm -f conftest.er1
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.$ac_objext; then
212380e3 4842 ac_cv_c_const=yes
4843else
4844 echo "$as_me: failed program was:" >&5
4845sed 's/^/| /' conftest.$ac_ext >&5
4846
631ef239 4847 ac_cv_c_const=no
212380e3 4848fi
631ef239 4849
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4851fi
631ef239 4852{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4853echo "${ECHO_T}$ac_cv_c_const" >&6; }
212380e3 4854if test $ac_cv_c_const = no; then
4855
4856cat >>confdefs.h <<\_ACEOF
4857#define const
4858_ACEOF
4859
4860fi
4861
4862if test "$ac_cv_header_machine_endian_h" = "no" ; then
631ef239 4863 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4864echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
212380e3 4865if test "${ac_cv_c_bigendian+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867else
4868 # See if sys/param.h defines the BYTE_ORDER macro.
4869cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include <sys/types.h>
4876#include <sys/param.h>
4877
4878int
4879main ()
4880{
631ef239 4881#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4882 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
212380e3 4883 bogus endian macros
4884#endif
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890rm -f conftest.$ac_objext
631ef239 4891if { (ac_try="$ac_compile"
4892case "(($ac_try" in
4893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894 *) ac_try_echo=$ac_try;;
4895esac
4896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897 (eval "$ac_compile") 2>conftest.er1
212380e3 4898 ac_status=$?
4899 grep -v '^ *+' conftest.er1 >conftest.err
4900 rm -f conftest.er1
4901 cat conftest.err >&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
212380e3 4907 # It does; now see whether it defined to BIG_ENDIAN or not.
4908cat >conftest.$ac_ext <<_ACEOF
4909/* confdefs.h. */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h. */
4914#include <sys/types.h>
4915#include <sys/param.h>
4916
4917int
4918main ()
4919{
4920#if BYTE_ORDER != BIG_ENDIAN
4921 not big endian
4922#endif
4923
4924 ;
4925 return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
631ef239 4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_compile") 2>conftest.er1
212380e3 4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
212380e3 4945 ac_cv_c_bigendian=yes
4946else
4947 echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
631ef239 4950 ac_cv_c_bigendian=no
212380e3 4951fi
631ef239 4952
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4954else
4955 echo "$as_me: failed program was:" >&5
4956sed 's/^/| /' conftest.$ac_ext >&5
4957
631ef239 4958 # It does not; compile a test program.
212380e3 4959if test "$cross_compiling" = yes; then
4960 # try to guess the endianness by grepping values into an object file
4961 ac_cv_c_bigendian=unknown
4962 cat >conftest.$ac_ext <<_ACEOF
4963/* confdefs.h. */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h. */
631ef239 4968short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4969short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
212380e3 4970void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
631ef239 4971short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4972short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
212380e3 4973void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4974int
4975main ()
4976{
4977 _ascii (); _ebcdic ();
4978 ;
4979 return 0;
4980}
4981_ACEOF
4982rm -f conftest.$ac_objext
631ef239 4983if { (ac_try="$ac_compile"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_compile") 2>conftest.er1
212380e3 4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest.$ac_objext; then
212380e3 4999 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5000 ac_cv_c_bigendian=yes
5001fi
5002if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5003 if test "$ac_cv_c_bigendian" = unknown; then
5004 ac_cv_c_bigendian=no
5005 else
5006 # finding both strings is unlikely to happen, but who knows?
5007 ac_cv_c_bigendian=unknown
5008 fi
5009fi
5010else
5011 echo "$as_me: failed program was:" >&5
5012sed 's/^/| /' conftest.$ac_ext >&5
5013
631ef239 5014
212380e3 5015fi
631ef239 5016
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5018else
5019 cat >conftest.$ac_ext <<_ACEOF
5020/* confdefs.h. */
5021_ACEOF
5022cat confdefs.h >>conftest.$ac_ext
5023cat >>conftest.$ac_ext <<_ACEOF
5024/* end confdefs.h. */
631ef239 5025$ac_includes_default
212380e3 5026int
5027main ()
5028{
631ef239 5029
212380e3 5030 /* Are we little or big endian? From Harbison&Steele. */
5031 union
5032 {
631ef239 5033 long int l;
5034 char c[sizeof (long int)];
212380e3 5035 } u;
5036 u.l = 1;
631ef239 5037 return u.c[sizeof (long int) - 1] == 1;
5038
5039 ;
5040 return 0;
212380e3 5041}
5042_ACEOF
5043rm -f conftest$ac_exeext
631ef239 5044if { (ac_try="$ac_link"
5045case "(($ac_try" in
5046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5047 *) ac_try_echo=$ac_try;;
5048esac
5049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5050 (eval "$ac_link") 2>&5
212380e3 5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 5054 { (case "(($ac_try" in
5055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5056 *) ac_try_echo=$ac_try;;
5057esac
5058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5059 (eval "$ac_try") 2>&5
212380e3 5060 ac_status=$?
5061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062 (exit $ac_status); }; }; then
5063 ac_cv_c_bigendian=no
5064else
5065 echo "$as_me: program exited with status $ac_status" >&5
5066echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069( exit $ac_status )
5070ac_cv_c_bigendian=yes
5071fi
631ef239 5072rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 5073fi
631ef239 5074
5075
212380e3 5076fi
631ef239 5077
5078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5079fi
631ef239 5080{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5081echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
212380e3 5082case $ac_cv_c_bigendian in
5083 yes)
5084
5085cat >>confdefs.h <<\_ACEOF
5086#define WORDS_BIGENDIAN 1
5087_ACEOF
5088 ;;
5089 no)
5090 ;;
5091 *)
5092 { { echo "$as_me:$LINENO: error: unknown endianness
5093presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5094echo "$as_me: error: unknown endianness
5095presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5097esac
5098
5099fi
631ef239 5100{ echo "$as_me:$LINENO: checking for pid_t" >&5
5101echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
212380e3 5102if test "${ac_cv_type_pid_t+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h. */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h. */
5111$ac_includes_default
631ef239 5112typedef pid_t ac__type_new_;
212380e3 5113int
5114main ()
5115{
631ef239 5116if ((ac__type_new_ *) 0)
212380e3 5117 return 0;
631ef239 5118if (sizeof (ac__type_new_))
212380e3 5119 return 0;
5120 ;
5121 return 0;
5122}
5123_ACEOF
5124rm -f conftest.$ac_objext
631ef239 5125if { (ac_try="$ac_compile"
5126case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129esac
5130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
212380e3 5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
212380e3 5141 ac_cv_type_pid_t=yes
5142else
5143 echo "$as_me: failed program was:" >&5
5144sed 's/^/| /' conftest.$ac_ext >&5
5145
631ef239 5146 ac_cv_type_pid_t=no
212380e3 5147fi
631ef239 5148
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5150fi
631ef239 5151{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5152echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
212380e3 5153if test $ac_cv_type_pid_t = yes; then
5154 :
5155else
5156
5157cat >>confdefs.h <<_ACEOF
5158#define pid_t int
5159_ACEOF
5160
5161fi
5162
631ef239 5163{ echo "$as_me:$LINENO: checking for size_t" >&5
5164echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
212380e3 5165if test "${ac_cv_type_size_t+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168 cat >conftest.$ac_ext <<_ACEOF
5169/* confdefs.h. */
5170_ACEOF
5171cat confdefs.h >>conftest.$ac_ext
5172cat >>conftest.$ac_ext <<_ACEOF
5173/* end confdefs.h. */
5174$ac_includes_default
631ef239 5175typedef size_t ac__type_new_;
212380e3 5176int
5177main ()
5178{
631ef239 5179if ((ac__type_new_ *) 0)
212380e3 5180 return 0;
631ef239 5181if (sizeof (ac__type_new_))
212380e3 5182 return 0;
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext
631ef239 5188if { (ac_try="$ac_compile"
5189case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192esac
5193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_compile") 2>conftest.er1
212380e3 5195 ac_status=$?
5196 grep -v '^ *+' conftest.er1 >conftest.err
5197 rm -f conftest.er1
5198 cat conftest.err >&5
5199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
212380e3 5204 ac_cv_type_size_t=yes
5205else
5206 echo "$as_me: failed program was:" >&5
5207sed 's/^/| /' conftest.$ac_ext >&5
5208
631ef239 5209 ac_cv_type_size_t=no
212380e3 5210fi
631ef239 5211
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5213fi
631ef239 5214{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5215echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
212380e3 5216if test $ac_cv_type_size_t = yes; then
5217 :
5218else
5219
5220cat >>confdefs.h <<_ACEOF
631ef239 5221#define size_t unsigned int
212380e3 5222_ACEOF
5223
5224fi
5225
631ef239 5226{ echo "$as_me:$LINENO: checking for short" >&5
5227echo $ECHO_N "checking for short... $ECHO_C" >&6; }
212380e3 5228if test "${ac_cv_type_short+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230else
5231 cat >conftest.$ac_ext <<_ACEOF
5232/* confdefs.h. */
5233_ACEOF
5234cat confdefs.h >>conftest.$ac_ext
5235cat >>conftest.$ac_ext <<_ACEOF
5236/* end confdefs.h. */
5237$ac_includes_default
631ef239 5238typedef short ac__type_new_;
212380e3 5239int
5240main ()
5241{
631ef239 5242if ((ac__type_new_ *) 0)
212380e3 5243 return 0;
631ef239 5244if (sizeof (ac__type_new_))
212380e3 5245 return 0;
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext
631ef239 5251if { (ac_try="$ac_compile"
5252case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255esac
5256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
212380e3 5258 ac_status=$?
5259 grep -v '^ *+' conftest.er1 >conftest.err
5260 rm -f conftest.er1
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
212380e3 5267 ac_cv_type_short=yes
5268else
5269 echo "$as_me: failed program was:" >&5
5270sed 's/^/| /' conftest.$ac_ext >&5
5271
631ef239 5272 ac_cv_type_short=no
212380e3 5273fi
631ef239 5274
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5276fi
631ef239 5277{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5278echo "${ECHO_T}$ac_cv_type_short" >&6; }
212380e3 5279
631ef239 5280# The cast to long int works around a bug in the HP C Compiler
5281# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283# This bug is HP SR number 8606223364.
5284{ echo "$as_me:$LINENO: checking size of short" >&5
5285echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
212380e3 5286if test "${ac_cv_sizeof_short+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
212380e3 5289 if test "$cross_compiling" = yes; then
5290 # Depending upon the size, compute the lo and hi bounds.
5291cat >conftest.$ac_ext <<_ACEOF
5292/* confdefs.h. */
5293_ACEOF
5294cat confdefs.h >>conftest.$ac_ext
5295cat >>conftest.$ac_ext <<_ACEOF
5296/* end confdefs.h. */
5297$ac_includes_default
631ef239 5298 typedef short ac__type_sizeof_;
212380e3 5299int
5300main ()
5301{
631ef239 5302static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 5303test_array [0] = 0
5304
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext
631ef239 5310if { (ac_try="$ac_compile"
5311case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
212380e3 5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
212380e3 5326 ac_lo=0 ac_mid=0
5327 while :; do
5328 cat >conftest.$ac_ext <<_ACEOF
5329/* confdefs.h. */
5330_ACEOF
5331cat confdefs.h >>conftest.$ac_ext
5332cat >>conftest.$ac_ext <<_ACEOF
5333/* end confdefs.h. */
5334$ac_includes_default
631ef239 5335 typedef short ac__type_sizeof_;
212380e3 5336int
5337main ()
5338{
631ef239 5339static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5340test_array [0] = 0
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346rm -f conftest.$ac_objext
631ef239 5347if { (ac_try="$ac_compile"
5348case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
212380e3 5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
212380e3 5363 ac_hi=$ac_mid; break
5364else
5365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
631ef239 5368 ac_lo=`expr $ac_mid + 1`
5369 if test $ac_lo -le $ac_mid; then
5370 ac_lo= ac_hi=
5371 break
5372 fi
5373 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 5374fi
631ef239 5375
5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5377 done
5378else
5379 echo "$as_me: failed program was:" >&5
5380sed 's/^/| /' conftest.$ac_ext >&5
5381
631ef239 5382 cat >conftest.$ac_ext <<_ACEOF
212380e3 5383/* confdefs.h. */
5384_ACEOF
5385cat confdefs.h >>conftest.$ac_ext
5386cat >>conftest.$ac_ext <<_ACEOF
5387/* end confdefs.h. */
5388$ac_includes_default
631ef239 5389 typedef short ac__type_sizeof_;
212380e3 5390int
5391main ()
5392{
631ef239 5393static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 5394test_array [0] = 0
5395
5396 ;
5397 return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext
631ef239 5401if { (ac_try="$ac_compile"
5402case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
212380e3 5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
212380e3 5417 ac_hi=-1 ac_mid=-1
5418 while :; do
5419 cat >conftest.$ac_ext <<_ACEOF
5420/* confdefs.h. */
5421_ACEOF
5422cat confdefs.h >>conftest.$ac_ext
5423cat >>conftest.$ac_ext <<_ACEOF
5424/* end confdefs.h. */
5425$ac_includes_default
631ef239 5426 typedef short ac__type_sizeof_;
212380e3 5427int
5428main ()
5429{
631ef239 5430static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 5431test_array [0] = 0
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
5437rm -f conftest.$ac_objext
631ef239 5438if { (ac_try="$ac_compile"
5439case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442esac
5443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
212380e3 5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
212380e3 5454 ac_lo=$ac_mid; break
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
631ef239 5459 ac_hi=`expr '(' $ac_mid ')' - 1`
5460 if test $ac_mid -le $ac_hi; then
5461 ac_lo= ac_hi=
5462 break
5463 fi
5464 ac_mid=`expr 2 '*' $ac_mid`
212380e3 5465fi
631ef239 5466
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5468 done
5469else
5470 echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
631ef239 5473 ac_lo= ac_hi=
212380e3 5474fi
631ef239 5475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5477fi
631ef239 5478
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5480# Binary search between lo and hi bounds.
5481while test "x$ac_lo" != "x$ac_hi"; do
5482 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5483 cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h. */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h. */
5489$ac_includes_default
631ef239 5490 typedef short ac__type_sizeof_;
212380e3 5491int
5492main ()
5493{
631ef239 5494static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5495test_array [0] = 0
5496
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501rm -f conftest.$ac_objext
631ef239 5502if { (ac_try="$ac_compile"
5503case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_compile") 2>conftest.er1
212380e3 5509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
212380e3 5518 ac_hi=$ac_mid
5519else
5520 echo "$as_me: failed program was:" >&5
5521sed 's/^/| /' conftest.$ac_ext >&5
5522
631ef239 5523 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 5524fi
631ef239 5525
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5527done
5528case $ac_lo in
5529?*) ac_cv_sizeof_short=$ac_lo;;
631ef239 5530'') if test "$ac_cv_type_short" = yes; then
5531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
212380e3 5532See \`config.log' for more details." >&5
631ef239 5533echo "$as_me: error: cannot compute sizeof (short)
212380e3 5534See \`config.log' for more details." >&2;}
631ef239 5535 { (exit 77); exit 77; }; }
5536 else
5537 ac_cv_sizeof_short=0
5538 fi ;;
212380e3 5539esac
212380e3 5540else
5541 cat >conftest.$ac_ext <<_ACEOF
5542/* confdefs.h. */
5543_ACEOF
5544cat confdefs.h >>conftest.$ac_ext
5545cat >>conftest.$ac_ext <<_ACEOF
5546/* end confdefs.h. */
5547$ac_includes_default
631ef239 5548 typedef short ac__type_sizeof_;
5549static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5550static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 5551#include <stdio.h>
5552#include <stdlib.h>
5553int
5554main ()
5555{
5556
5557 FILE *f = fopen ("conftest.val", "w");
5558 if (! f)
631ef239 5559 return 1;
5560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 5561 {
631ef239 5562 long int i = longval ();
5563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5564 return 1;
212380e3 5565 fprintf (f, "%ld\n", i);
5566 }
5567 else
5568 {
631ef239 5569 unsigned long int i = ulongval ();
5570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5571 return 1;
212380e3 5572 fprintf (f, "%lu\n", i);
5573 }
631ef239 5574 return ferror (f) || fclose (f) != 0;
212380e3 5575
5576 ;
5577 return 0;
5578}
5579_ACEOF
5580rm -f conftest$ac_exeext
631ef239 5581if { (ac_try="$ac_link"
5582case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585esac
5586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_link") 2>&5
212380e3 5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 5591 { (case "(($ac_try" in
5592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5593 *) ac_try_echo=$ac_try;;
5594esac
5595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_try") 2>&5
212380e3 5597 ac_status=$?
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); }; }; then
5600 ac_cv_sizeof_short=`cat conftest.val`
5601else
5602 echo "$as_me: program exited with status $ac_status" >&5
5603echo "$as_me: failed program was:" >&5
5604sed 's/^/| /' conftest.$ac_ext >&5
5605
5606( exit $ac_status )
631ef239 5607if test "$ac_cv_type_short" = yes; then
5608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
212380e3 5609See \`config.log' for more details." >&5
631ef239 5610echo "$as_me: error: cannot compute sizeof (short)
212380e3 5611See \`config.log' for more details." >&2;}
631ef239 5612 { (exit 77); exit 77; }; }
5613 else
5614 ac_cv_sizeof_short=0
5615 fi
212380e3 5616fi
631ef239 5617rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 5618fi
5619rm -f conftest.val
212380e3 5620fi
631ef239 5621{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5622echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5623
5624
5625
212380e3 5626cat >>confdefs.h <<_ACEOF
5627#define SIZEOF_SHORT $ac_cv_sizeof_short
5628_ACEOF
5629
5630
631ef239 5631{ echo "$as_me:$LINENO: checking for int" >&5
5632echo $ECHO_N "checking for int... $ECHO_C" >&6; }
212380e3 5633if test "${ac_cv_type_int+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635else
5636 cat >conftest.$ac_ext <<_ACEOF
5637/* confdefs.h. */
5638_ACEOF
5639cat confdefs.h >>conftest.$ac_ext
5640cat >>conftest.$ac_ext <<_ACEOF
5641/* end confdefs.h. */
5642$ac_includes_default
631ef239 5643typedef int ac__type_new_;
212380e3 5644int
5645main ()
5646{
631ef239 5647if ((ac__type_new_ *) 0)
212380e3 5648 return 0;
631ef239 5649if (sizeof (ac__type_new_))
212380e3 5650 return 0;
5651 ;
5652 return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext
631ef239 5656if { (ac_try="$ac_compile"
5657case "(($ac_try" in
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5660esac
5661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5662 (eval "$ac_compile") 2>conftest.er1
212380e3 5663 ac_status=$?
5664 grep -v '^ *+' conftest.er1 >conftest.err
5665 rm -f conftest.er1
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
212380e3 5672 ac_cv_type_int=yes
5673else
5674 echo "$as_me: failed program was:" >&5
5675sed 's/^/| /' conftest.$ac_ext >&5
5676
631ef239 5677 ac_cv_type_int=no
212380e3 5678fi
631ef239 5679
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5681fi
631ef239 5682{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5683echo "${ECHO_T}$ac_cv_type_int" >&6; }
212380e3 5684
631ef239 5685# The cast to long int works around a bug in the HP C Compiler
5686# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5687# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5688# This bug is HP SR number 8606223364.
5689{ echo "$as_me:$LINENO: checking size of int" >&5
5690echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
212380e3 5691if test "${ac_cv_sizeof_int+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
212380e3 5694 if test "$cross_compiling" = yes; then
5695 # Depending upon the size, compute the lo and hi bounds.
5696cat >conftest.$ac_ext <<_ACEOF
5697/* confdefs.h. */
5698_ACEOF
5699cat confdefs.h >>conftest.$ac_ext
5700cat >>conftest.$ac_ext <<_ACEOF
5701/* end confdefs.h. */
5702$ac_includes_default
631ef239 5703 typedef int ac__type_sizeof_;
212380e3 5704int
5705main ()
5706{
631ef239 5707static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 5708test_array [0] = 0
5709
5710 ;
5711 return 0;
5712}
5713_ACEOF
5714rm -f conftest.$ac_objext
631ef239 5715if { (ac_try="$ac_compile"
5716case "(($ac_try" in
5717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5718 *) ac_try_echo=$ac_try;;
5719esac
5720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5721 (eval "$ac_compile") 2>conftest.er1
212380e3 5722 ac_status=$?
5723 grep -v '^ *+' conftest.er1 >conftest.err
5724 rm -f conftest.er1
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
212380e3 5731 ac_lo=0 ac_mid=0
5732 while :; do
5733 cat >conftest.$ac_ext <<_ACEOF
5734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h. */
5739$ac_includes_default
631ef239 5740 typedef int ac__type_sizeof_;
212380e3 5741int
5742main ()
5743{
631ef239 5744static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5745test_array [0] = 0
5746
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext
631ef239 5752if { (ac_try="$ac_compile"
5753case "(($ac_try" in
5754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5756esac
5757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5758 (eval "$ac_compile") 2>conftest.er1
212380e3 5759 ac_status=$?
5760 grep -v '^ *+' conftest.er1 >conftest.err
5761 rm -f conftest.er1
5762 cat conftest.err >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
212380e3 5768 ac_hi=$ac_mid; break
5769else
5770 echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
631ef239 5773 ac_lo=`expr $ac_mid + 1`
5774 if test $ac_lo -le $ac_mid; then
5775 ac_lo= ac_hi=
5776 break
5777 fi
5778 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 5779fi
631ef239 5780
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5782 done
5783else
5784 echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
631ef239 5787 cat >conftest.$ac_ext <<_ACEOF
212380e3 5788/* confdefs.h. */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h. */
5793$ac_includes_default
631ef239 5794 typedef int ac__type_sizeof_;
212380e3 5795int
5796main ()
5797{
631ef239 5798static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 5799test_array [0] = 0
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext
631ef239 5806if { (ac_try="$ac_compile"
5807case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810esac
5811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compile") 2>conftest.er1
212380e3 5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5818 (exit $ac_status); } && {
5819 test -z "$ac_c_werror_flag" ||
5820 test ! -s conftest.err
5821 } && test -s conftest.$ac_objext; then
212380e3 5822 ac_hi=-1 ac_mid=-1
5823 while :; do
5824 cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830$ac_includes_default
631ef239 5831 typedef int ac__type_sizeof_;
212380e3 5832int
5833main ()
5834{
631ef239 5835static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 5836test_array [0] = 0
5837
5838 ;
5839 return 0;
5840}
5841_ACEOF
5842rm -f conftest.$ac_objext
631ef239 5843if { (ac_try="$ac_compile"
5844case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
212380e3 5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
212380e3 5859 ac_lo=$ac_mid; break
5860else
5861 echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
631ef239 5864 ac_hi=`expr '(' $ac_mid ')' - 1`
5865 if test $ac_mid -le $ac_hi; then
5866 ac_lo= ac_hi=
5867 break
5868 fi
5869 ac_mid=`expr 2 '*' $ac_mid`
212380e3 5870fi
631ef239 5871
5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5873 done
5874else
5875 echo "$as_me: failed program was:" >&5
5876sed 's/^/| /' conftest.$ac_ext >&5
5877
631ef239 5878 ac_lo= ac_hi=
212380e3 5879fi
631ef239 5880
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5882fi
631ef239 5883
5884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5885# Binary search between lo and hi bounds.
5886while test "x$ac_lo" != "x$ac_hi"; do
5887 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5888 cat >conftest.$ac_ext <<_ACEOF
5889/* confdefs.h. */
5890_ACEOF
5891cat confdefs.h >>conftest.$ac_ext
5892cat >>conftest.$ac_ext <<_ACEOF
5893/* end confdefs.h. */
5894$ac_includes_default
631ef239 5895 typedef int ac__type_sizeof_;
212380e3 5896int
5897main ()
5898{
631ef239 5899static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 5900test_array [0] = 0
5901
5902 ;
5903 return 0;
5904}
5905_ACEOF
5906rm -f conftest.$ac_objext
631ef239 5907if { (ac_try="$ac_compile"
5908case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
212380e3 5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
212380e3 5923 ac_hi=$ac_mid
5924else
5925 echo "$as_me: failed program was:" >&5
5926sed 's/^/| /' conftest.$ac_ext >&5
5927
631ef239 5928 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 5929fi
631ef239 5930
5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5932done
5933case $ac_lo in
5934?*) ac_cv_sizeof_int=$ac_lo;;
631ef239 5935'') if test "$ac_cv_type_int" = yes; then
5936 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
212380e3 5937See \`config.log' for more details." >&5
631ef239 5938echo "$as_me: error: cannot compute sizeof (int)
212380e3 5939See \`config.log' for more details." >&2;}
631ef239 5940 { (exit 77); exit 77; }; }
5941 else
5942 ac_cv_sizeof_int=0
5943 fi ;;
212380e3 5944esac
212380e3 5945else
5946 cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h. */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h. */
5952$ac_includes_default
631ef239 5953 typedef int ac__type_sizeof_;
5954static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5955static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 5956#include <stdio.h>
5957#include <stdlib.h>
5958int
5959main ()
5960{
5961
5962 FILE *f = fopen ("conftest.val", "w");
5963 if (! f)
631ef239 5964 return 1;
5965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 5966 {
631ef239 5967 long int i = longval ();
5968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5969 return 1;
212380e3 5970 fprintf (f, "%ld\n", i);
5971 }
5972 else
5973 {
631ef239 5974 unsigned long int i = ulongval ();
5975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5976 return 1;
212380e3 5977 fprintf (f, "%lu\n", i);
5978 }
631ef239 5979 return ferror (f) || fclose (f) != 0;
212380e3 5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest$ac_exeext
631ef239 5986if { (ac_try="$ac_link"
5987case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_link") 2>&5
212380e3 5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 5996 { (case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999esac
6000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_try") 2>&5
212380e3 6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_sizeof_int=`cat conftest.val`
6006else
6007 echo "$as_me: program exited with status $ac_status" >&5
6008echo "$as_me: failed program was:" >&5
6009sed 's/^/| /' conftest.$ac_ext >&5
6010
6011( exit $ac_status )
631ef239 6012if test "$ac_cv_type_int" = yes; then
6013 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
212380e3 6014See \`config.log' for more details." >&5
631ef239 6015echo "$as_me: error: cannot compute sizeof (int)
212380e3 6016See \`config.log' for more details." >&2;}
631ef239 6017 { (exit 77); exit 77; }; }
6018 else
6019 ac_cv_sizeof_int=0
6020 fi
212380e3 6021fi
631ef239 6022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6023fi
6024rm -f conftest.val
212380e3 6025fi
631ef239 6026{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6027echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6028
6029
6030
212380e3 6031cat >>confdefs.h <<_ACEOF
6032#define SIZEOF_INT $ac_cv_sizeof_int
6033_ACEOF
6034
6035
631ef239 6036{ echo "$as_me:$LINENO: checking for long" >&5
6037echo $ECHO_N "checking for long... $ECHO_C" >&6; }
212380e3 6038if test "${ac_cv_type_long+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 cat >conftest.$ac_ext <<_ACEOF
6042/* confdefs.h. */
6043_ACEOF
6044cat confdefs.h >>conftest.$ac_ext
6045cat >>conftest.$ac_ext <<_ACEOF
6046/* end confdefs.h. */
6047$ac_includes_default
631ef239 6048typedef long ac__type_new_;
212380e3 6049int
6050main ()
6051{
631ef239 6052if ((ac__type_new_ *) 0)
212380e3 6053 return 0;
631ef239 6054if (sizeof (ac__type_new_))
212380e3 6055 return 0;
6056 ;
6057 return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
631ef239 6061if { (ac_try="$ac_compile"
6062case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065esac
6066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_compile") 2>conftest.er1
212380e3 6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
212380e3 6077 ac_cv_type_long=yes
6078else
6079 echo "$as_me: failed program was:" >&5
6080sed 's/^/| /' conftest.$ac_ext >&5
6081
631ef239 6082 ac_cv_type_long=no
212380e3 6083fi
631ef239 6084
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6086fi
631ef239 6087{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6088echo "${ECHO_T}$ac_cv_type_long" >&6; }
212380e3 6089
631ef239 6090# The cast to long int works around a bug in the HP C Compiler
6091# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6092# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6093# This bug is HP SR number 8606223364.
6094{ echo "$as_me:$LINENO: checking size of long" >&5
6095echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
212380e3 6096if test "${ac_cv_sizeof_long+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
212380e3 6099 if test "$cross_compiling" = yes; then
6100 # Depending upon the size, compute the lo and hi bounds.
6101cat >conftest.$ac_ext <<_ACEOF
6102/* confdefs.h. */
6103_ACEOF
6104cat confdefs.h >>conftest.$ac_ext
6105cat >>conftest.$ac_ext <<_ACEOF
6106/* end confdefs.h. */
6107$ac_includes_default
631ef239 6108 typedef long ac__type_sizeof_;
212380e3 6109int
6110main ()
6111{
631ef239 6112static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 6113test_array [0] = 0
6114
6115 ;
6116 return 0;
6117}
6118_ACEOF
6119rm -f conftest.$ac_objext
631ef239 6120if { (ac_try="$ac_compile"
6121case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124esac
6125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_compile") 2>conftest.er1
212380e3 6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
212380e3 6136 ac_lo=0 ac_mid=0
6137 while :; do
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
6144$ac_includes_default
631ef239 6145 typedef long ac__type_sizeof_;
212380e3 6146int
6147main ()
6148{
631ef239 6149static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6150test_array [0] = 0
6151
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156rm -f conftest.$ac_objext
631ef239 6157if { (ac_try="$ac_compile"
6158case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161esac
6162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6163 (eval "$ac_compile") 2>conftest.er1
212380e3 6164 ac_status=$?
6165 grep -v '^ *+' conftest.er1 >conftest.err
6166 rm -f conftest.er1
6167 cat conftest.err >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
212380e3 6173 ac_hi=$ac_mid; break
6174else
6175 echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
631ef239 6178 ac_lo=`expr $ac_mid + 1`
6179 if test $ac_lo -le $ac_mid; then
6180 ac_lo= ac_hi=
6181 break
6182 fi
6183 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 6184fi
631ef239 6185
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6187 done
6188else
6189 echo "$as_me: failed program was:" >&5
6190sed 's/^/| /' conftest.$ac_ext >&5
6191
631ef239 6192 cat >conftest.$ac_ext <<_ACEOF
212380e3 6193/* confdefs.h. */
6194_ACEOF
6195cat confdefs.h >>conftest.$ac_ext
6196cat >>conftest.$ac_ext <<_ACEOF
6197/* end confdefs.h. */
6198$ac_includes_default
631ef239 6199 typedef long ac__type_sizeof_;
212380e3 6200int
6201main ()
6202{
631ef239 6203static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 6204test_array [0] = 0
6205
6206 ;
6207 return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext
631ef239 6211if { (ac_try="$ac_compile"
6212case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215esac
6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_compile") 2>conftest.er1
212380e3 6218 ac_status=$?
6219 grep -v '^ *+' conftest.er1 >conftest.err
6220 rm -f conftest.er1
6221 cat conftest.err >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
212380e3 6227 ac_hi=-1 ac_mid=-1
6228 while :; do
6229 cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h. */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h. */
6235$ac_includes_default
631ef239 6236 typedef long ac__type_sizeof_;
212380e3 6237int
6238main ()
6239{
631ef239 6240static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 6241test_array [0] = 0
6242
6243 ;
6244 return 0;
6245}
6246_ACEOF
6247rm -f conftest.$ac_objext
631ef239 6248if { (ac_try="$ac_compile"
6249case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
212380e3 6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest.$ac_objext; then
212380e3 6264 ac_lo=$ac_mid; break
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
631ef239 6269 ac_hi=`expr '(' $ac_mid ')' - 1`
6270 if test $ac_mid -le $ac_hi; then
6271 ac_lo= ac_hi=
6272 break
6273 fi
6274 ac_mid=`expr 2 '*' $ac_mid`
212380e3 6275fi
631ef239 6276
6277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6278 done
6279else
6280 echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
631ef239 6283 ac_lo= ac_hi=
212380e3 6284fi
631ef239 6285
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6287fi
631ef239 6288
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6290# Binary search between lo and hi bounds.
6291while test "x$ac_lo" != "x$ac_hi"; do
6292 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6293 cat >conftest.$ac_ext <<_ACEOF
6294/* confdefs.h. */
6295_ACEOF
6296cat confdefs.h >>conftest.$ac_ext
6297cat >>conftest.$ac_ext <<_ACEOF
6298/* end confdefs.h. */
6299$ac_includes_default
631ef239 6300 typedef long ac__type_sizeof_;
212380e3 6301int
6302main ()
6303{
631ef239 6304static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6305test_array [0] = 0
6306
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext
631ef239 6312if { (ac_try="$ac_compile"
6313case "(($ac_try" in
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6316esac
6317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compile") 2>conftest.er1
212380e3 6319 ac_status=$?
6320 grep -v '^ *+' conftest.er1 >conftest.err
6321 rm -f conftest.er1
6322 cat conftest.err >&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
212380e3 6328 ac_hi=$ac_mid
6329else
6330 echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
631ef239 6333 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 6334fi
631ef239 6335
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6337done
6338case $ac_lo in
6339?*) ac_cv_sizeof_long=$ac_lo;;
631ef239 6340'') if test "$ac_cv_type_long" = yes; then
6341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
212380e3 6342See \`config.log' for more details." >&5
631ef239 6343echo "$as_me: error: cannot compute sizeof (long)
212380e3 6344See \`config.log' for more details." >&2;}
631ef239 6345 { (exit 77); exit 77; }; }
6346 else
6347 ac_cv_sizeof_long=0
6348 fi ;;
212380e3 6349esac
212380e3 6350else
6351 cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h. */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h. */
6357$ac_includes_default
631ef239 6358 typedef long ac__type_sizeof_;
6359static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6360static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 6361#include <stdio.h>
6362#include <stdlib.h>
6363int
6364main ()
6365{
6366
6367 FILE *f = fopen ("conftest.val", "w");
6368 if (! f)
631ef239 6369 return 1;
6370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 6371 {
631ef239 6372 long int i = longval ();
6373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6374 return 1;
212380e3 6375 fprintf (f, "%ld\n", i);
6376 }
6377 else
6378 {
631ef239 6379 unsigned long int i = ulongval ();
6380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6381 return 1;
212380e3 6382 fprintf (f, "%lu\n", i);
6383 }
631ef239 6384 return ferror (f) || fclose (f) != 0;
212380e3 6385
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390rm -f conftest$ac_exeext
631ef239 6391if { (ac_try="$ac_link"
6392case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395esac
6396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_link") 2>&5
212380e3 6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 6401 { (case "(($ac_try" in
6402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6403 *) ac_try_echo=$ac_try;;
6404esac
6405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6406 (eval "$ac_try") 2>&5
212380e3 6407 ac_status=$?
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; }; then
6410 ac_cv_sizeof_long=`cat conftest.val`
6411else
6412 echo "$as_me: program exited with status $ac_status" >&5
6413echo "$as_me: failed program was:" >&5
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416( exit $ac_status )
631ef239 6417if test "$ac_cv_type_long" = yes; then
6418 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
212380e3 6419See \`config.log' for more details." >&5
631ef239 6420echo "$as_me: error: cannot compute sizeof (long)
212380e3 6421See \`config.log' for more details." >&2;}
631ef239 6422 { (exit 77); exit 77; }; }
6423 else
6424 ac_cv_sizeof_long=0
6425 fi
212380e3 6426fi
631ef239 6427rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6428fi
6429rm -f conftest.val
212380e3 6430fi
631ef239 6431{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6432echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6433
6434
6435
212380e3 6436cat >>confdefs.h <<_ACEOF
6437#define SIZEOF_LONG $ac_cv_sizeof_long
6438_ACEOF
6439
6440
631ef239 6441{ echo "$as_me:$LINENO: checking for long long" >&5
6442echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
212380e3 6443if test "${ac_cv_type_long_long+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6445else
6446 cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h. */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h. */
6452$ac_includes_default
631ef239 6453typedef long long ac__type_new_;
212380e3 6454int
6455main ()
6456{
631ef239 6457if ((ac__type_new_ *) 0)
212380e3 6458 return 0;
631ef239 6459if (sizeof (ac__type_new_))
212380e3 6460 return 0;
6461 ;
6462 return 0;
6463}
6464_ACEOF
6465rm -f conftest.$ac_objext
631ef239 6466if { (ac_try="$ac_compile"
6467case "(($ac_try" in
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6470esac
6471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_compile") 2>conftest.er1
212380e3 6473 ac_status=$?
6474 grep -v '^ *+' conftest.er1 >conftest.err
6475 rm -f conftest.er1
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
212380e3 6482 ac_cv_type_long_long=yes
6483else
6484 echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
631ef239 6487 ac_cv_type_long_long=no
212380e3 6488fi
631ef239 6489
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6491fi
631ef239 6492{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6493echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
212380e3 6494
631ef239 6495# The cast to long int works around a bug in the HP C Compiler
6496# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6497# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6498# This bug is HP SR number 8606223364.
6499{ echo "$as_me:$LINENO: checking size of long long" >&5
6500echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
212380e3 6501if test "${ac_cv_sizeof_long_long+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
212380e3 6504 if test "$cross_compiling" = yes; then
6505 # Depending upon the size, compute the lo and hi bounds.
6506cat >conftest.$ac_ext <<_ACEOF
6507/* confdefs.h. */
6508_ACEOF
6509cat confdefs.h >>conftest.$ac_ext
6510cat >>conftest.$ac_ext <<_ACEOF
6511/* end confdefs.h. */
6512$ac_includes_default
631ef239 6513 typedef long long ac__type_sizeof_;
212380e3 6514int
6515main ()
6516{
631ef239 6517static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3 6518test_array [0] = 0
6519
6520 ;
6521 return 0;
6522}
6523_ACEOF
6524rm -f conftest.$ac_objext
631ef239 6525if { (ac_try="$ac_compile"
6526case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6529esac
6530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
212380e3 6532 ac_status=$?
6533 grep -v '^ *+' conftest.er1 >conftest.err
6534 rm -f conftest.er1
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
212380e3 6541 ac_lo=0 ac_mid=0
6542 while :; do
6543 cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h. */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h. */
6549$ac_includes_default
631ef239 6550 typedef long long ac__type_sizeof_;
212380e3 6551int
6552main ()
6553{
631ef239 6554static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6555test_array [0] = 0
6556
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext
631ef239 6562if { (ac_try="$ac_compile"
6563case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566esac
6567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
212380e3 6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
212380e3 6578 ac_hi=$ac_mid; break
6579else
6580 echo "$as_me: failed program was:" >&5
6581sed 's/^/| /' conftest.$ac_ext >&5
6582
631ef239 6583 ac_lo=`expr $ac_mid + 1`
6584 if test $ac_lo -le $ac_mid; then
6585 ac_lo= ac_hi=
6586 break
6587 fi
6588 ac_mid=`expr 2 '*' $ac_mid + 1`
212380e3 6589fi
631ef239 6590
6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6592 done
6593else
6594 echo "$as_me: failed program was:" >&5
6595sed 's/^/| /' conftest.$ac_ext >&5
6596
631ef239 6597 cat >conftest.$ac_ext <<_ACEOF
212380e3 6598/* confdefs.h. */
6599_ACEOF
6600cat confdefs.h >>conftest.$ac_ext
6601cat >>conftest.$ac_ext <<_ACEOF
6602/* end confdefs.h. */
6603$ac_includes_default
631ef239 6604 typedef long long ac__type_sizeof_;
212380e3 6605int
6606main ()
6607{
631ef239 6608static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3 6609test_array [0] = 0
6610
6611 ;
6612 return 0;
6613}
6614_ACEOF
6615rm -f conftest.$ac_objext
631ef239 6616if { (ac_try="$ac_compile"
6617case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620esac
6621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_compile") 2>conftest.er1
212380e3 6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.$ac_objext; then
212380e3 6632 ac_hi=-1 ac_mid=-1
6633 while :; do
6634 cat >conftest.$ac_ext <<_ACEOF
6635/* confdefs.h. */
6636_ACEOF
6637cat confdefs.h >>conftest.$ac_ext
6638cat >>conftest.$ac_ext <<_ACEOF
6639/* end confdefs.h. */
6640$ac_includes_default
631ef239 6641 typedef long long ac__type_sizeof_;
212380e3 6642int
6643main ()
6644{
631ef239 6645static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3 6646test_array [0] = 0
6647
6648 ;
6649 return 0;
6650}
6651_ACEOF
6652rm -f conftest.$ac_objext
631ef239 6653if { (ac_try="$ac_compile"
6654case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657esac
6658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_compile") 2>conftest.er1
212380e3 6660 ac_status=$?
6661 grep -v '^ *+' conftest.er1 >conftest.err
6662 rm -f conftest.er1
6663 cat conftest.err >&5
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest.$ac_objext; then
212380e3 6669 ac_lo=$ac_mid; break
6670else
6671 echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
631ef239 6674 ac_hi=`expr '(' $ac_mid ')' - 1`
6675 if test $ac_mid -le $ac_hi; then
6676 ac_lo= ac_hi=
6677 break
6678 fi
6679 ac_mid=`expr 2 '*' $ac_mid`
212380e3 6680fi
631ef239 6681
6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6683 done
6684else
6685 echo "$as_me: failed program was:" >&5
6686sed 's/^/| /' conftest.$ac_ext >&5
6687
631ef239 6688 ac_lo= ac_hi=
212380e3 6689fi
631ef239 6690
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6692fi
631ef239 6693
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6695# Binary search between lo and hi bounds.
6696while test "x$ac_lo" != "x$ac_hi"; do
6697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6698 cat >conftest.$ac_ext <<_ACEOF
6699/* confdefs.h. */
6700_ACEOF
6701cat confdefs.h >>conftest.$ac_ext
6702cat >>conftest.$ac_ext <<_ACEOF
6703/* end confdefs.h. */
6704$ac_includes_default
631ef239 6705 typedef long long ac__type_sizeof_;
212380e3 6706int
6707main ()
6708{
631ef239 6709static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3 6710test_array [0] = 0
6711
6712 ;
6713 return 0;
6714}
6715_ACEOF
6716rm -f conftest.$ac_objext
631ef239 6717if { (ac_try="$ac_compile"
6718case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721esac
6722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
212380e3 6724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
212380e3 6733 ac_hi=$ac_mid
6734else
6735 echo "$as_me: failed program was:" >&5
6736sed 's/^/| /' conftest.$ac_ext >&5
6737
631ef239 6738 ac_lo=`expr '(' $ac_mid ')' + 1`
212380e3 6739fi
631ef239 6740
6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6742done
6743case $ac_lo in
6744?*) ac_cv_sizeof_long_long=$ac_lo;;
631ef239 6745'') if test "$ac_cv_type_long_long" = yes; then
6746 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
212380e3 6747See \`config.log' for more details." >&5
631ef239 6748echo "$as_me: error: cannot compute sizeof (long long)
212380e3 6749See \`config.log' for more details." >&2;}
631ef239 6750 { (exit 77); exit 77; }; }
6751 else
6752 ac_cv_sizeof_long_long=0
6753 fi ;;
212380e3 6754esac
212380e3 6755else
6756 cat >conftest.$ac_ext <<_ACEOF
6757/* confdefs.h. */
6758_ACEOF
6759cat confdefs.h >>conftest.$ac_ext
6760cat >>conftest.$ac_ext <<_ACEOF
6761/* end confdefs.h. */
6762$ac_includes_default
631ef239 6763 typedef long long ac__type_sizeof_;
6764static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6765static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
212380e3 6766#include <stdio.h>
6767#include <stdlib.h>
6768int
6769main ()
6770{
6771
6772 FILE *f = fopen ("conftest.val", "w");
6773 if (! f)
631ef239 6774 return 1;
6775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 6776 {
631ef239 6777 long int i = longval ();
6778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6779 return 1;
212380e3 6780 fprintf (f, "%ld\n", i);
6781 }
6782 else
6783 {
631ef239 6784 unsigned long int i = ulongval ();
6785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6786 return 1;
212380e3 6787 fprintf (f, "%lu\n", i);
6788 }
631ef239 6789 return ferror (f) || fclose (f) != 0;
212380e3 6790
6791 ;
6792 return 0;
6793}
6794_ACEOF
6795rm -f conftest$ac_exeext
631ef239 6796if { (ac_try="$ac_link"
6797case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800esac
6801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_link") 2>&5
212380e3 6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 6806 { (case "(($ac_try" in
6807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6809esac
6810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_try") 2>&5
212380e3 6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; }; then
6815 ac_cv_sizeof_long_long=`cat conftest.val`
6816else
6817 echo "$as_me: program exited with status $ac_status" >&5
6818echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
6820
6821( exit $ac_status )
631ef239 6822if test "$ac_cv_type_long_long" = yes; then
6823 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
212380e3 6824See \`config.log' for more details." >&5
631ef239 6825echo "$as_me: error: cannot compute sizeof (long long)
212380e3 6826See \`config.log' for more details." >&2;}
631ef239 6827 { (exit 77); exit 77; }; }
6828 else
6829 ac_cv_sizeof_long_long=0
6830 fi
212380e3 6831fi
631ef239 6832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6833fi
6834rm -f conftest.val
212380e3 6835fi
631ef239 6836{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6837echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
6838
6839
6840
212380e3 6841cat >>confdefs.h <<_ACEOF
6842#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6843_ACEOF
6844
6845
6846
6847
631ef239 6848{ echo "$as_me:$LINENO: checking for library containing socket" >&5
6849echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
212380e3 6850if test "${ac_cv_search_socket+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853 ac_func_search_save_LIBS=$LIBS
212380e3 6854cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h. */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h. */
6860
631ef239 6861/* Override any GCC internal prototype to avoid an error.
6862 Use char because int might match the return type of a GCC
6863 builtin and then its argument prototype would still apply. */
212380e3 6864#ifdef __cplusplus
6865extern "C"
6866#endif
212380e3 6867char socket ();
6868int
6869main ()
6870{
631ef239 6871return socket ();
212380e3 6872 ;
6873 return 0;
6874}
6875_ACEOF
631ef239 6876for ac_lib in '' socket; do
6877 if test -z "$ac_lib"; then
6878 ac_res="none required"
6879 else
6880 ac_res=-l$ac_lib
6881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6882 fi
6883 rm -f conftest.$ac_objext conftest$ac_exeext
6884if { (ac_try="$ac_link"
6885case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888esac
6889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_link") 2>conftest.er1
212380e3 6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest$ac_exeext &&
6900 $as_test_x conftest$ac_exeext; then
6901 ac_cv_search_socket=$ac_res
212380e3 6902else
6903 echo "$as_me: failed program was:" >&5
6904sed 's/^/| /' conftest.$ac_ext >&5
6905
631ef239 6906
212380e3 6907fi
631ef239 6908
6909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6910 conftest$ac_exeext
6911 if test "${ac_cv_search_socket+set}" = set; then
6912 break
6913fi
6914done
6915if test "${ac_cv_search_socket+set}" = set; then
6916 :
6917else
6918 ac_cv_search_socket=no
6919fi
6920rm conftest.$ac_ext
6921LIBS=$ac_func_search_save_LIBS
6922fi
6923{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6924echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6925ac_res=$ac_cv_search_socket
6926if test "$ac_res" != no; then
6927 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6928
6929else
6930 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
6931echo "$as_me: error: You have no socket()! Aborting." >&2;}
6932 { (exit 1); exit 1; }; }
6933fi
6934
6935
6936if test x"$SUN" = xyes; then
6937 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
6938echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
6939if test "${ac_cv_search_inet_ntoa+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942 ac_func_search_save_LIBS=$LIBS
6943cat >conftest.$ac_ext <<_ACEOF
212380e3 6944/* confdefs.h. */
6945_ACEOF
6946cat confdefs.h >>conftest.$ac_ext
6947cat >>conftest.$ac_ext <<_ACEOF
6948/* end confdefs.h. */
6949
631ef239 6950/* Override any GCC internal prototype to avoid an error.
6951 Use char because int might match the return type of a GCC
6952 builtin and then its argument prototype would still apply. */
212380e3 6953#ifdef __cplusplus
6954extern "C"
6955#endif
631ef239 6956char inet_ntoa ();
212380e3 6957int
6958main ()
6959{
631ef239 6960return inet_ntoa ();
212380e3 6961 ;
6962 return 0;
6963}
6964_ACEOF
631ef239 6965for ac_lib in '' nsl; do
6966 if test -z "$ac_lib"; then
6967 ac_res="none required"
6968 else
6969 ac_res=-l$ac_lib
6970 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6971 fi
6972 rm -f conftest.$ac_objext conftest$ac_exeext
6973if { (ac_try="$ac_link"
6974case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977esac
6978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6979 (eval "$ac_link") 2>conftest.er1
212380e3 6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest$ac_exeext &&
6989 $as_test_x conftest$ac_exeext; then
6990 ac_cv_search_inet_ntoa=$ac_res
212380e3 6991else
6992 echo "$as_me: failed program was:" >&5
6993sed 's/^/| /' conftest.$ac_ext >&5
6994
631ef239 6995
212380e3 6996fi
631ef239 6997
6998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6999 conftest$ac_exeext
7000 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7001 break
7002fi
7003done
7004if test "${ac_cv_search_inet_ntoa+set}" = set; then
7005 :
7006else
7007 ac_cv_search_inet_ntoa=no
212380e3 7008fi
631ef239 7009rm conftest.$ac_ext
212380e3 7010LIBS=$ac_func_search_save_LIBS
7011fi
631ef239 7012{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7013echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7014ac_res=$ac_cv_search_inet_ntoa
7015if test "$ac_res" != no; then
7016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 7017
7018else
631ef239 7019 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7020echo "$as_me: error: libnsl not found! Aborting." >&2;}
212380e3 7021 { (exit 1); exit 1; }; }
7022fi
7023
631ef239 7024fi
212380e3 7025
631ef239 7026{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7027echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
212380e3 7028if test "${ac_cv_type_socklen_t+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030else
7031 cat >conftest.$ac_ext <<_ACEOF
7032/* confdefs.h. */
7033_ACEOF
7034cat confdefs.h >>conftest.$ac_ext
7035cat >>conftest.$ac_ext <<_ACEOF
7036/* end confdefs.h. */
7037#include <sys/types.h>
7038#include <sys/socket.h>
7039
631ef239 7040typedef socklen_t ac__type_new_;
212380e3 7041int
7042main ()
7043{
631ef239 7044if ((ac__type_new_ *) 0)
212380e3 7045 return 0;
631ef239 7046if (sizeof (ac__type_new_))
212380e3 7047 return 0;
7048 ;
7049 return 0;
7050}
7051_ACEOF
7052rm -f conftest.$ac_objext
631ef239 7053if { (ac_try="$ac_compile"
7054case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057esac
7058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_compile") 2>conftest.er1
212380e3 7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
212380e3 7069 ac_cv_type_socklen_t=yes
7070else
7071 echo "$as_me: failed program was:" >&5
7072sed 's/^/| /' conftest.$ac_ext >&5
7073
631ef239 7074 ac_cv_type_socklen_t=no
212380e3 7075fi
631ef239 7076
7077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7078fi
631ef239 7079{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7080echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
212380e3 7081if test $ac_cv_type_socklen_t = yes; then
7082 :
7083else
7084
7085cat >>confdefs.h <<\_ACEOF
7086#define socklen_t unsigned int
7087_ACEOF
7088
7089fi
7090
7091
631ef239 7092# Check whether --enable-ipv6 was given.
212380e3 7093if test "${enable_ipv6+set}" = set; then
631ef239 7094 enableval=$enable_ipv6; ipv6=$enableval
212380e3 7095else
7096 ipv6=no
631ef239 7097fi
7098
212380e3 7099
631ef239 7100{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
7101echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
212380e3 7102if test "${ac_cv_search_crypt+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7104else
7105 ac_func_search_save_LIBS=$LIBS
212380e3 7106cat >conftest.$ac_ext <<_ACEOF
7107/* confdefs.h. */
7108_ACEOF
7109cat confdefs.h >>conftest.$ac_ext
7110cat >>conftest.$ac_ext <<_ACEOF
7111/* end confdefs.h. */
7112
631ef239 7113/* Override any GCC internal prototype to avoid an error.
7114 Use char because int might match the return type of a GCC
7115 builtin and then its argument prototype would still apply. */
212380e3 7116#ifdef __cplusplus
7117extern "C"
7118#endif
212380e3 7119char crypt ();
7120int
7121main ()
7122{
631ef239 7123return crypt ();
212380e3 7124 ;
7125 return 0;
7126}
7127_ACEOF
631ef239 7128for ac_lib in '' crypt descrypt; do
7129 if test -z "$ac_lib"; then
7130 ac_res="none required"
7131 else
7132 ac_res=-l$ac_lib
7133 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7134 fi
7135 rm -f conftest.$ac_objext conftest$ac_exeext
7136if { (ac_try="$ac_link"
7137case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140esac
7141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_link") 2>conftest.er1
212380e3 7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest$ac_exeext &&
7152 $as_test_x conftest$ac_exeext; then
7153 ac_cv_search_crypt=$ac_res
212380e3 7154else
7155 echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
212380e3 7158
631ef239 7159fi
212380e3 7160
631ef239 7161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7162 conftest$ac_exeext
7163 if test "${ac_cv_search_crypt+set}" = set; then
7164 break
212380e3 7165fi
631ef239 7166done
7167if test "${ac_cv_search_crypt+set}" = set; then
7168 :
7169else
7170 ac_cv_search_crypt=no
212380e3 7171fi
631ef239 7172rm conftest.$ac_ext
212380e3 7173LIBS=$ac_func_search_save_LIBS
7174fi
631ef239 7175{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7176echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7177ac_res=$ac_cv_search_crypt
7178if test "$ac_res" != no; then
7179 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 7180
7181fi
7182
7183
7184CRYPT_LIB=$ac_cv_search_crypt
7185
7186if test "$CRYPT_LIB" = "none required"; then
7187 unset CRYPT_LIB
7188elif test "$CRYPT_LIB" = no; then
7189 unset CRYPT_LIB
7190fi
7191
7192
7193
7194if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7195 VICONF=viconf
7196 else
7197 VICONF=""
7198fi
7199
7200
7201
631ef239 7202{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7203echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
212380e3 7204if test "${gcc_cv_header_string+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207
7208 cat >conftest.$ac_ext <<_ACEOF
7209#include <string.h>
7210 #include <strings.h>
7211_ACEOF
7212rm -f conftest.$ac_objext
631ef239 7213if { (ac_try="$ac_compile"
7214case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217esac
7218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
212380e3 7220 ac_status=$?
7221 grep -v '^ *+' conftest.er1 >conftest.err
7222 rm -f conftest.er1
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
212380e3 7229 gcc_cv_header_string=yes
7230else
7231 echo "$as_me: failed program was:" >&5
7232sed 's/^/| /' conftest.$ac_ext >&5
7233
631ef239 7234 gcc_cv_header_string=no
212380e3 7235fi
631ef239 7236
7237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7238
7239fi
631ef239 7240{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7241echo "${ECHO_T}$gcc_cv_header_string" >&6; }
212380e3 7242
7243if test "$gcc_cv_header_string" = "yes"; then
7244
7245cat >>confdefs.h <<\_ACEOF
7246#define STRING_WITH_STRINGS 1
7247_ACEOF
7248
7249fi
7250
631ef239 7251{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7252echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
212380e3 7253if test "${ac_cv_c_bigendian+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256 # See if sys/param.h defines the BYTE_ORDER macro.
7257cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h. */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h. */
7263#include <sys/types.h>
7264#include <sys/param.h>
7265
7266int
7267main ()
7268{
631ef239 7269#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7270 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
212380e3 7271 bogus endian macros
7272#endif
7273
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext
631ef239 7279if { (ac_try="$ac_compile"
7280case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283esac
7284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
212380e3 7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
212380e3 7295 # It does; now see whether it defined to BIG_ENDIAN or not.
7296cat >conftest.$ac_ext <<_ACEOF
7297/* confdefs.h. */
7298_ACEOF
7299cat confdefs.h >>conftest.$ac_ext
7300cat >>conftest.$ac_ext <<_ACEOF
7301/* end confdefs.h. */
7302#include <sys/types.h>
7303#include <sys/param.h>
7304
7305int
7306main ()
7307{
7308#if BYTE_ORDER != BIG_ENDIAN
7309 not big endian
7310#endif
7311
7312 ;
7313 return 0;
7314}
7315_ACEOF
7316rm -f conftest.$ac_objext
631ef239 7317if { (ac_try="$ac_compile"
7318case "(($ac_try" in
7319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7321esac
7322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
212380e3 7324 ac_status=$?
7325 grep -v '^ *+' conftest.er1 >conftest.err
7326 rm -f conftest.er1
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
212380e3 7333 ac_cv_c_bigendian=yes
7334else
7335 echo "$as_me: failed program was:" >&5
7336sed 's/^/| /' conftest.$ac_ext >&5
7337
631ef239 7338 ac_cv_c_bigendian=no
212380e3 7339fi
631ef239 7340
7341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7342else
7343 echo "$as_me: failed program was:" >&5
7344sed 's/^/| /' conftest.$ac_ext >&5
7345
631ef239 7346 # It does not; compile a test program.
212380e3 7347if test "$cross_compiling" = yes; then
7348 # try to guess the endianness by grepping values into an object file
7349 ac_cv_c_bigendian=unknown
7350 cat >conftest.$ac_ext <<_ACEOF
7351/* confdefs.h. */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h. */
631ef239 7356short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7357short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
212380e3 7358void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
631ef239 7359short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7360short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
212380e3 7361void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7362int
7363main ()
7364{
7365 _ascii (); _ebcdic ();
7366 ;
7367 return 0;
7368}
7369_ACEOF
7370rm -f conftest.$ac_objext
631ef239 7371if { (ac_try="$ac_compile"
7372case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375esac
7376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_compile") 2>conftest.er1
212380e3 7378 ac_status=$?
7379 grep -v '^ *+' conftest.er1 >conftest.err
7380 rm -f conftest.er1
7381 cat conftest.err >&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7383 (exit $ac_status); } && {
7384 test -z "$ac_c_werror_flag" ||
7385 test ! -s conftest.err
7386 } && test -s conftest.$ac_objext; then
212380e3 7387 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7388 ac_cv_c_bigendian=yes
7389fi
7390if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7391 if test "$ac_cv_c_bigendian" = unknown; then
7392 ac_cv_c_bigendian=no
7393 else
7394 # finding both strings is unlikely to happen, but who knows?
7395 ac_cv_c_bigendian=unknown
7396 fi
7397fi
7398else
7399 echo "$as_me: failed program was:" >&5
7400sed 's/^/| /' conftest.$ac_ext >&5
7401
631ef239 7402
212380e3 7403fi
631ef239 7404
7405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7406else
7407 cat >conftest.$ac_ext <<_ACEOF
7408/* confdefs.h. */
7409_ACEOF
7410cat confdefs.h >>conftest.$ac_ext
7411cat >>conftest.$ac_ext <<_ACEOF
7412/* end confdefs.h. */
631ef239 7413$ac_includes_default
212380e3 7414int
7415main ()
7416{
631ef239 7417
212380e3 7418 /* Are we little or big endian? From Harbison&Steele. */
7419 union
7420 {
631ef239 7421 long int l;
7422 char c[sizeof (long int)];
212380e3 7423 } u;
7424 u.l = 1;
631ef239 7425 return u.c[sizeof (long int) - 1] == 1;
7426
7427 ;
7428 return 0;
212380e3 7429}
7430_ACEOF
7431rm -f conftest$ac_exeext
631ef239 7432if { (ac_try="$ac_link"
7433case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436esac
7437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_link") 2>&5
212380e3 7439 ac_status=$?
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 7442 { (case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445esac
7446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_try") 2>&5
212380e3 7448 ac_status=$?
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_cv_c_bigendian=no
7452else
7453 echo "$as_me: program exited with status $ac_status" >&5
7454echo "$as_me: failed program was:" >&5
7455sed 's/^/| /' conftest.$ac_ext >&5
7456
7457( exit $ac_status )
7458ac_cv_c_bigendian=yes
7459fi
631ef239 7460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 7461fi
631ef239 7462
7463
212380e3 7464fi
631ef239 7465
7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7467fi
631ef239 7468{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7469echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
212380e3 7470case $ac_cv_c_bigendian in
7471 yes)
7472
7473cat >>confdefs.h <<\_ACEOF
7474#define WORDS_BIGENDIAN 1
7475_ACEOF
7476 ;;
7477 no)
7478 ;;
7479 *)
7480 { { echo "$as_me:$LINENO: error: unknown endianness
7481presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7482echo "$as_me: error: unknown endianness
7483presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7484 { (exit 1); exit 1; }; } ;;
7485esac
7486
7487
7488if test "${ac_cv_header_stdarg_h+set}" = set; then
631ef239 7489 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7490echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
212380e3 7491if test "${ac_cv_header_stdarg_h+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7493fi
631ef239 7494{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7495echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
212380e3 7496else
7497 # Is the header compilable?
631ef239 7498{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7499echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
212380e3 7500cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
7506$ac_includes_default
7507#include <stdarg.h>
7508_ACEOF
7509rm -f conftest.$ac_objext
631ef239 7510if { (ac_try="$ac_compile"
7511case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514esac
7515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_compile") 2>conftest.er1
212380e3 7517 ac_status=$?
7518 grep -v '^ *+' conftest.er1 >conftest.err
7519 rm -f conftest.er1
7520 cat conftest.err >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7522 (exit $ac_status); } && {
7523 test -z "$ac_c_werror_flag" ||
7524 test ! -s conftest.err
7525 } && test -s conftest.$ac_objext; then
212380e3 7526 ac_header_compiler=yes
7527else
7528 echo "$as_me: failed program was:" >&5
7529sed 's/^/| /' conftest.$ac_ext >&5
7530
631ef239 7531 ac_header_compiler=no
212380e3 7532fi
631ef239 7533
7534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7536echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 7537
7538# Is the header present?
631ef239 7539{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7540echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
212380e3 7541cat >conftest.$ac_ext <<_ACEOF
7542/* confdefs.h. */
7543_ACEOF
7544cat confdefs.h >>conftest.$ac_ext
7545cat >>conftest.$ac_ext <<_ACEOF
7546/* end confdefs.h. */
7547#include <stdarg.h>
7548_ACEOF
631ef239 7549if { (ac_try="$ac_cpp conftest.$ac_ext"
7550case "(($ac_try" in
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7553esac
7554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 7556 ac_status=$?
7557 grep -v '^ *+' conftest.er1 >conftest.err
7558 rm -f conftest.er1
7559 cat conftest.err >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7561 (exit $ac_status); } >/dev/null && {
7562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7563 test ! -s conftest.err
7564 }; then
212380e3 7565 ac_header_preproc=yes
7566else
7567 echo "$as_me: failed program was:" >&5
7568sed 's/^/| /' conftest.$ac_ext >&5
7569
7570 ac_header_preproc=no
7571fi
631ef239 7572
212380e3 7573rm -f conftest.err conftest.$ac_ext
631ef239 7574{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7575echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 7576
7577# So? What about this header?
7578case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7579 yes:no: )
7580 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7581echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7583echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7584 ac_header_preproc=yes
7585 ;;
7586 no:yes:* )
7587 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7588echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7590echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7591 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7592echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7593 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7594echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7595 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7596echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7597 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7598echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
631ef239 7599
212380e3 7600 ;;
7601esac
631ef239 7602{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7603echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
212380e3 7604if test "${ac_cv_header_stdarg_h+set}" = set; then
7605 echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607 ac_cv_header_stdarg_h=$ac_header_preproc
7608fi
631ef239 7609{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7610echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
212380e3 7611
7612fi
7613if test $ac_cv_header_stdarg_h = yes; then
7614 :
7615else
7616 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7617echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7618 { (exit 1); exit 1; }; }
7619fi
7620
7621
7622
7623
7624if test "$ac_cv_c_compiler_gnu" = yes; then
7625
631ef239 7626{ echo "$as_me:$LINENO: checking for strlcpy" >&5
7627echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
212380e3 7628save_CFLAGS=$CFLAGS
7629CFLAGS="$CFLAGS -Wimplicit -Werror"
7630
7631cat >conftest.$ac_ext <<_ACEOF
7632/* confdefs.h. */
7633_ACEOF
7634cat confdefs.h >>conftest.$ac_ext
7635cat >>conftest.$ac_ext <<_ACEOF
7636/* end confdefs.h. */
7637#include <string.h>
7638 #include <stdlib.h>
7639int
7640main ()
7641{
7642char *a = malloc(6);
7643 strlcpy(a, "hello", 6);
7644
7645 ;
7646 return 0;
7647}
7648_ACEOF
7649rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 7650if { (ac_try="$ac_link"
7651case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
7655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_link") 2>conftest.er1
212380e3 7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest$ac_exeext &&
7666 $as_test_x conftest$ac_exeext; then
7667 { echo "$as_me:$LINENO: result: yes" >&5
7668echo "${ECHO_T}yes" >&6; }
212380e3 7669
7670cat >>confdefs.h <<\_ACEOF
7671#define HAVE_STRLCPY 1
7672_ACEOF
7673
7674else
7675 echo "$as_me: failed program was:" >&5
7676sed 's/^/| /' conftest.$ac_ext >&5
7677
631ef239 7678 { echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6; }
212380e3 7680
7681fi
631ef239 7682
7683rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 7684 conftest$ac_exeext conftest.$ac_ext
7685
631ef239 7686{ echo "$as_me:$LINENO: checking for strlcat" >&5
7687echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
212380e3 7688cat >conftest.$ac_ext <<_ACEOF
7689/* confdefs.h. */
7690_ACEOF
7691cat confdefs.h >>conftest.$ac_ext
7692cat >>conftest.$ac_ext <<_ACEOF
7693/* end confdefs.h. */
7694#include <string.h>
7695 #include <stdlib.h>
7696int
7697main ()
7698{
7699char *a = malloc(6);
7700 a[0] = '\0';
7701 strlcat(a, "hello", 6);
7702
7703 ;
7704 return 0;
7705}
7706_ACEOF
7707rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 7708if { (ac_try="$ac_link"
7709case "(($ac_try" in
7710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7711 *) ac_try_echo=$ac_try;;
7712esac
7713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7714 (eval "$ac_link") 2>conftest.er1
212380e3 7715 ac_status=$?
7716 grep -v '^ *+' conftest.er1 >conftest.err
7717 rm -f conftest.er1
7718 cat conftest.err >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7720 (exit $ac_status); } && {
7721 test -z "$ac_c_werror_flag" ||
7722 test ! -s conftest.err
7723 } && test -s conftest$ac_exeext &&
7724 $as_test_x conftest$ac_exeext; then
7725 { echo "$as_me:$LINENO: result: yes" >&5
7726echo "${ECHO_T}yes" >&6; }
212380e3 7727
7728cat >>confdefs.h <<\_ACEOF
7729#define HAVE_STRLCAT 1
7730_ACEOF
7731
7732else
7733 echo "$as_me: failed program was:" >&5
7734sed 's/^/| /' conftest.$ac_ext >&5
7735
631ef239 7736 { echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6; }
212380e3 7738
7739fi
631ef239 7740
7741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 7742 conftest$ac_exeext conftest.$ac_ext
7743
7744CFLAGS=$save_CFLAGS
7745
7746else
7747
7748
7749
7750
7751for ac_func in strlcat strlcpy
7752do
7753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 7754{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7756if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759 cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h. */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h. */
7765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7767#define $ac_func innocuous_$ac_func
7768
7769/* System header to define __stub macros and hopefully few prototypes,
7770 which can conflict with char $ac_func (); below.
7771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7772 <limits.h> exists even on freestanding compilers. */
7773
7774#ifdef __STDC__
7775# include <limits.h>
7776#else
7777# include <assert.h>
7778#endif
7779
7780#undef $ac_func
7781
631ef239 7782/* Override any GCC internal prototype to avoid an error.
7783 Use char because int might match the return type of a GCC
7784 builtin and then its argument prototype would still apply. */
212380e3 7785#ifdef __cplusplus
7786extern "C"
212380e3 7787#endif
212380e3 7788char $ac_func ();
7789/* The GNU C library defines this for functions which it implements
7790 to always fail with ENOSYS. Some functions are actually named
7791 something starting with __ and the normal name is an alias. */
631ef239 7792#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 7793choke me
212380e3 7794#endif
7795
7796int
7797main ()
7798{
631ef239 7799return $ac_func ();
212380e3 7800 ;
7801 return 0;
7802}
7803_ACEOF
7804rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 7805if { (ac_try="$ac_link"
7806case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7809esac
7810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_link") 2>conftest.er1
212380e3 7812 ac_status=$?
7813 grep -v '^ *+' conftest.er1 >conftest.err
7814 rm -f conftest.er1
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7817 (exit $ac_status); } && {
7818 test -z "$ac_c_werror_flag" ||
7819 test ! -s conftest.err
7820 } && test -s conftest$ac_exeext &&
7821 $as_test_x conftest$ac_exeext; then
212380e3 7822 eval "$as_ac_var=yes"
7823else
7824 echo "$as_me: failed program was:" >&5
7825sed 's/^/| /' conftest.$ac_ext >&5
7826
631ef239 7827 eval "$as_ac_var=no"
212380e3 7828fi
631ef239 7829
7830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 7831 conftest$ac_exeext conftest.$ac_ext
7832fi
631ef239 7833ac_res=`eval echo '${'$as_ac_var'}'`
7834 { echo "$as_me:$LINENO: result: $ac_res" >&5
7835echo "${ECHO_T}$ac_res" >&6; }
212380e3 7836if test `eval echo '${'$as_ac_var'}'` = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7839_ACEOF
7840
7841fi
7842done
7843
7844
7845fi
7846
631ef239 7847{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
7848echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
212380e3 7849if test "${ac_cv_type_u_int32_t+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7851else
7852 cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
7857/* end confdefs.h. */
7858$ac_includes_default
631ef239 7859typedef u_int32_t ac__type_new_;
212380e3 7860int
7861main ()
7862{
631ef239 7863if ((ac__type_new_ *) 0)
212380e3 7864 return 0;
631ef239 7865if (sizeof (ac__type_new_))
212380e3 7866 return 0;
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest.$ac_objext
631ef239 7872if { (ac_try="$ac_compile"
7873case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_compile") 2>conftest.er1
212380e3 7879 ac_status=$?
7880 grep -v '^ *+' conftest.er1 >conftest.err
7881 rm -f conftest.er1
7882 cat conftest.err >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7884 (exit $ac_status); } && {
7885 test -z "$ac_c_werror_flag" ||
7886 test ! -s conftest.err
7887 } && test -s conftest.$ac_objext; then
212380e3 7888 ac_cv_type_u_int32_t=yes
7889else
7890 echo "$as_me: failed program was:" >&5
7891sed 's/^/| /' conftest.$ac_ext >&5
7892
631ef239 7893 ac_cv_type_u_int32_t=no
212380e3 7894fi
631ef239 7895
7896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7897fi
631ef239 7898{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
7899echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
212380e3 7900if test $ac_cv_type_u_int32_t = yes; then
7901 :
7902else
7903
631ef239 7904 { echo "$as_me:$LINENO: checking for uint32_t" >&5
7905echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
212380e3 7906if test "${ac_cv_type_uint32_t+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908else
7909 cat >conftest.$ac_ext <<_ACEOF
7910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
7915$ac_includes_default
631ef239 7916typedef uint32_t ac__type_new_;
212380e3 7917int
7918main ()
7919{
631ef239 7920if ((ac__type_new_ *) 0)
212380e3 7921 return 0;
631ef239 7922if (sizeof (ac__type_new_))
212380e3 7923 return 0;
7924 ;
7925 return 0;
7926}
7927_ACEOF
7928rm -f conftest.$ac_objext
631ef239 7929if { (ac_try="$ac_compile"
7930case "(($ac_try" in
7931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7933esac
7934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
212380e3 7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
212380e3 7945 ac_cv_type_uint32_t=yes
7946else
7947 echo "$as_me: failed program was:" >&5
7948sed 's/^/| /' conftest.$ac_ext >&5
7949
631ef239 7950 ac_cv_type_uint32_t=no
212380e3 7951fi
631ef239 7952
7953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7954fi
631ef239 7955{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7956echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
212380e3 7957if test $ac_cv_type_uint32_t = yes; then
7958
7959
7960cat >>confdefs.h <<\_ACEOF
7961#define u_int32_t uint32_t
7962_ACEOF
7963
7964
7965else
7966
7967 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
7968echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
7969
7970cat >>confdefs.h <<\_ACEOF
7971#define u_int32_t unsigned long int
7972_ACEOF
7973
7974
7975fi
7976
7977
7978fi
7979
7980
631ef239 7981{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
7982echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
212380e3 7983if test "${ac_cv_type_u_int16_t+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985else
7986 cat >conftest.$ac_ext <<_ACEOF
7987/* confdefs.h. */
7988_ACEOF
7989cat confdefs.h >>conftest.$ac_ext
7990cat >>conftest.$ac_ext <<_ACEOF
7991/* end confdefs.h. */
7992$ac_includes_default
631ef239 7993typedef u_int16_t ac__type_new_;
212380e3 7994int
7995main ()
7996{
631ef239 7997if ((ac__type_new_ *) 0)
212380e3 7998 return 0;
631ef239 7999if (sizeof (ac__type_new_))
212380e3 8000 return 0;
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext
631ef239 8006if { (ac_try="$ac_compile"
8007case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010esac
8011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_compile") 2>conftest.er1
212380e3 8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest.$ac_objext; then
212380e3 8022 ac_cv_type_u_int16_t=yes
8023else
8024 echo "$as_me: failed program was:" >&5
8025sed 's/^/| /' conftest.$ac_ext >&5
8026
631ef239 8027 ac_cv_type_u_int16_t=no
212380e3 8028fi
631ef239 8029
8030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8031fi
631ef239 8032{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8033echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
212380e3 8034if test $ac_cv_type_u_int16_t = yes; then
8035 :
8036else
8037
631ef239 8038 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8039echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
212380e3 8040if test "${ac_cv_type_uint16_t+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043 cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h. */
8049$ac_includes_default
631ef239 8050typedef uint16_t ac__type_new_;
212380e3 8051int
8052main ()
8053{
631ef239 8054if ((ac__type_new_ *) 0)
212380e3 8055 return 0;
631ef239 8056if (sizeof (ac__type_new_))
212380e3 8057 return 0;
8058 ;
8059 return 0;
8060}
8061_ACEOF
8062rm -f conftest.$ac_objext
631ef239 8063if { (ac_try="$ac_compile"
8064case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
8068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
212380e3 8070 ac_status=$?
8071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
212380e3 8079 ac_cv_type_uint16_t=yes
8080else
8081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
631ef239 8084 ac_cv_type_uint16_t=no
212380e3 8085fi
631ef239 8086
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8088fi
631ef239 8089{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8090echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
212380e3 8091if test $ac_cv_type_uint16_t = yes; then
8092
8093
8094cat >>confdefs.h <<\_ACEOF
8095#define u_int16_t uint16_t
8096_ACEOF
8097
8098
8099else
8100
8101 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8102echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8103
8104cat >>confdefs.h <<\_ACEOF
8105#define u_int16_t unsigned short int
8106_ACEOF
8107
8108
8109fi
8110
8111
8112fi
8113
8114
631ef239 8115{ echo "$as_me:$LINENO: checking for in_port_t" >&5
8116echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
212380e3 8117if test "${ac_cv_type_in_port_t+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119else
8120 cat >conftest.$ac_ext <<_ACEOF
8121/* confdefs.h. */
8122_ACEOF
8123cat confdefs.h >>conftest.$ac_ext
8124cat >>conftest.$ac_ext <<_ACEOF
8125/* end confdefs.h. */
8126#include <sys/types.h>
8127#include <netinet/in.h>
8128
631ef239 8129typedef in_port_t ac__type_new_;
212380e3 8130int
8131main ()
8132{
631ef239 8133if ((ac__type_new_ *) 0)
212380e3 8134 return 0;
631ef239 8135if (sizeof (ac__type_new_))
212380e3 8136 return 0;
8137 ;
8138 return 0;
8139}
8140_ACEOF
8141rm -f conftest.$ac_objext
631ef239 8142if { (ac_try="$ac_compile"
8143case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146esac
8147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8148 (eval "$ac_compile") 2>conftest.er1
212380e3 8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8154 (exit $ac_status); } && {
8155 test -z "$ac_c_werror_flag" ||
8156 test ! -s conftest.err
8157 } && test -s conftest.$ac_objext; then
212380e3 8158 ac_cv_type_in_port_t=yes
8159else
8160 echo "$as_me: failed program was:" >&5
8161sed 's/^/| /' conftest.$ac_ext >&5
8162
631ef239 8163 ac_cv_type_in_port_t=no
212380e3 8164fi
631ef239 8165
8166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8167fi
631ef239 8168{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8169echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
212380e3 8170if test $ac_cv_type_in_port_t = yes; then
8171 :
8172else
8173
8174cat >>confdefs.h <<\_ACEOF
8175#define in_port_t u_int16_t
8176_ACEOF
8177
8178fi
8179
8180
631ef239 8181{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
8182echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
212380e3 8183if test "${ac_cv_type_sa_family_t+set}" = set; then
8184 echo $ECHO_N "(cached) $ECHO_C" >&6
8185else
8186 cat >conftest.$ac_ext <<_ACEOF
8187/* confdefs.h. */
8188_ACEOF
8189cat confdefs.h >>conftest.$ac_ext
8190cat >>conftest.$ac_ext <<_ACEOF
8191/* end confdefs.h. */
8192#include <sys/types.h>
8193#include <sys/socket.h>
8194
631ef239 8195typedef sa_family_t ac__type_new_;
212380e3 8196int
8197main ()
8198{
631ef239 8199if ((ac__type_new_ *) 0)
212380e3 8200 return 0;
631ef239 8201if (sizeof (ac__type_new_))
212380e3 8202 return 0;
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext
631ef239 8208if { (ac_try="$ac_compile"
8209case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212esac
8213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
212380e3 8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest.$ac_objext; then
212380e3 8224 ac_cv_type_sa_family_t=yes
8225else
8226 echo "$as_me: failed program was:" >&5
8227sed 's/^/| /' conftest.$ac_ext >&5
8228
631ef239 8229 ac_cv_type_sa_family_t=no
212380e3 8230fi
631ef239 8231
8232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8233fi
631ef239 8234{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8235echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
212380e3 8236if test $ac_cv_type_sa_family_t = yes; then
8237 :
8238else
8239
8240cat >>confdefs.h <<\_ACEOF
8241#define sa_family_t u_int16_t
8242_ACEOF
8243
8244fi
8245
8246
631ef239 8247{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
8248echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
212380e3 8249if test "${ac_cv_type_uintptr_t+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251else
8252 cat >conftest.$ac_ext <<_ACEOF
8253/* confdefs.h. */
8254_ACEOF
8255cat confdefs.h >>conftest.$ac_ext
8256cat >>conftest.$ac_ext <<_ACEOF
8257/* end confdefs.h. */
8258$ac_includes_default
631ef239 8259typedef uintptr_t ac__type_new_;
212380e3 8260int
8261main ()
8262{
631ef239 8263if ((ac__type_new_ *) 0)
212380e3 8264 return 0;
631ef239 8265if (sizeof (ac__type_new_))
212380e3 8266 return 0;
8267 ;
8268 return 0;
8269}
8270_ACEOF
8271rm -f conftest.$ac_objext
631ef239 8272if { (ac_try="$ac_compile"
8273case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276esac
8277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8278 (eval "$ac_compile") 2>conftest.er1
212380e3 8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8284 (exit $ac_status); } && {
8285 test -z "$ac_c_werror_flag" ||
8286 test ! -s conftest.err
8287 } && test -s conftest.$ac_objext; then
212380e3 8288 ac_cv_type_uintptr_t=yes
8289else
8290 echo "$as_me: failed program was:" >&5
8291sed 's/^/| /' conftest.$ac_ext >&5
8292
631ef239 8293 ac_cv_type_uintptr_t=no
212380e3 8294fi
631ef239 8295
8296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8297fi
631ef239 8298{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8299echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
212380e3 8300if test $ac_cv_type_uintptr_t = yes; then
8301
8302cat >>confdefs.h <<_ACEOF
8303#define HAVE_UINTPTR_T 1
8304_ACEOF
8305
8306
8307fi
8308
8309
8310
8311
8312
8313
8314
8315
8316for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8317do
8318as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 8319{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8320echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8321if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323else
8324 cat >conftest.$ac_ext <<_ACEOF
8325/* confdefs.h. */
8326_ACEOF
8327cat confdefs.h >>conftest.$ac_ext
8328cat >>conftest.$ac_ext <<_ACEOF
8329/* end confdefs.h. */
8330/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8331 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8332#define $ac_func innocuous_$ac_func
8333
8334/* System header to define __stub macros and hopefully few prototypes,
8335 which can conflict with char $ac_func (); below.
8336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8337 <limits.h> exists even on freestanding compilers. */
8338
8339#ifdef __STDC__
8340# include <limits.h>
8341#else
8342# include <assert.h>
8343#endif
8344
8345#undef $ac_func
8346
631ef239 8347/* Override any GCC internal prototype to avoid an error.
8348 Use char because int might match the return type of a GCC
8349 builtin and then its argument prototype would still apply. */
212380e3 8350#ifdef __cplusplus
8351extern "C"
212380e3 8352#endif
212380e3 8353char $ac_func ();
8354/* The GNU C library defines this for functions which it implements
8355 to always fail with ENOSYS. Some functions are actually named
8356 something starting with __ and the normal name is an alias. */
631ef239 8357#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8358choke me
212380e3 8359#endif
8360
8361int
8362main ()
8363{
631ef239 8364return $ac_func ();
212380e3 8365 ;
8366 return 0;
8367}
8368_ACEOF
8369rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8370if { (ac_try="$ac_link"
8371case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374esac
8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>conftest.er1
212380e3 8377 ac_status=$?
8378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8382 (exit $ac_status); } && {
8383 test -z "$ac_c_werror_flag" ||
8384 test ! -s conftest.err
8385 } && test -s conftest$ac_exeext &&
8386 $as_test_x conftest$ac_exeext; then
212380e3 8387 eval "$as_ac_var=yes"
8388else
8389 echo "$as_me: failed program was:" >&5
8390sed 's/^/| /' conftest.$ac_ext >&5
8391
631ef239 8392 eval "$as_ac_var=no"
212380e3 8393fi
631ef239 8394
8395rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8396 conftest$ac_exeext conftest.$ac_ext
8397fi
631ef239 8398ac_res=`eval echo '${'$as_ac_var'}'`
8399 { echo "$as_me:$LINENO: result: $ac_res" >&5
8400echo "${ECHO_T}$ac_res" >&6; }
212380e3 8401if test `eval echo '${'$as_ac_var'}'` = yes; then
8402 cat >>confdefs.h <<_ACEOF
8403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8404_ACEOF
8405
8406fi
8407done
8408
8409
8410# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8411# for constant arguments. Useless!
631ef239 8412{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
8413echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
212380e3 8414if test "${ac_cv_working_alloca_h+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417 cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423#include <alloca.h>
8424int
8425main ()
8426{
8427char *p = (char *) alloca (2 * sizeof (int));
631ef239 8428 if (p) return 0;
212380e3 8429 ;
8430 return 0;
8431}
8432_ACEOF
8433rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8434if { (ac_try="$ac_link"
8435case "(($ac_try" in
8436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437 *) ac_try_echo=$ac_try;;
8438esac
8439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440 (eval "$ac_link") 2>conftest.er1
212380e3 8441 ac_status=$?
8442 grep -v '^ *+' conftest.er1 >conftest.err
8443 rm -f conftest.er1
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8446 (exit $ac_status); } && {
8447 test -z "$ac_c_werror_flag" ||
8448 test ! -s conftest.err
8449 } && test -s conftest$ac_exeext &&
8450 $as_test_x conftest$ac_exeext; then
212380e3 8451 ac_cv_working_alloca_h=yes
8452else
8453 echo "$as_me: failed program was:" >&5
8454sed 's/^/| /' conftest.$ac_ext >&5
8455
631ef239 8456 ac_cv_working_alloca_h=no
212380e3 8457fi
631ef239 8458
8459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8460 conftest$ac_exeext conftest.$ac_ext
8461fi
631ef239 8462{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8463echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
212380e3 8464if test $ac_cv_working_alloca_h = yes; then
8465
8466cat >>confdefs.h <<\_ACEOF
8467#define HAVE_ALLOCA_H 1
8468_ACEOF
8469
8470fi
8471
631ef239 8472{ echo "$as_me:$LINENO: checking for alloca" >&5
8473echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
212380e3 8474if test "${ac_cv_func_alloca_works+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476else
8477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483#ifdef __GNUC__
8484# define alloca __builtin_alloca
8485#else
8486# ifdef _MSC_VER
8487# include <malloc.h>
8488# define alloca _alloca
8489# else
631ef239 8490# ifdef HAVE_ALLOCA_H
212380e3 8491# include <alloca.h>
8492# else
8493# ifdef _AIX
8494 #pragma alloca
8495# else
8496# ifndef alloca /* predefined by HP cc +Olibcalls */
8497char *alloca ();
8498# endif
8499# endif
8500# endif
8501# endif
8502#endif
8503
8504int
8505main ()
8506{
8507char *p = (char *) alloca (1);
631ef239 8508 if (p) return 0;
212380e3 8509 ;
8510 return 0;
8511}
8512_ACEOF
8513rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8514if { (ac_try="$ac_link"
8515case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518esac
8519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_link") 2>conftest.er1
212380e3 8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest$ac_exeext &&
8530 $as_test_x conftest$ac_exeext; then
212380e3 8531 ac_cv_func_alloca_works=yes
8532else
8533 echo "$as_me: failed program was:" >&5
8534sed 's/^/| /' conftest.$ac_ext >&5
8535
631ef239 8536 ac_cv_func_alloca_works=no
212380e3 8537fi
631ef239 8538
8539rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8540 conftest$ac_exeext conftest.$ac_ext
8541fi
631ef239 8542{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8543echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
212380e3 8544
8545if test $ac_cv_func_alloca_works = yes; then
8546
8547cat >>confdefs.h <<\_ACEOF
8548#define HAVE_ALLOCA 1
8549_ACEOF
8550
8551else
8552 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8553# that cause trouble. Some versions do not even contain alloca or
8554# contain a buggy version. If you still want to use their alloca,
8555# use ar to extract alloca.o from them instead of compiling alloca.c.
8556
631ef239 8557ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3 8558
8559cat >>confdefs.h <<\_ACEOF
8560#define C_ALLOCA 1
8561_ACEOF
8562
8563
631ef239 8564{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8565echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
212380e3 8566if test "${ac_cv_os_cray+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8568else
8569 cat >conftest.$ac_ext <<_ACEOF
8570/* confdefs.h. */
8571_ACEOF
8572cat confdefs.h >>conftest.$ac_ext
8573cat >>conftest.$ac_ext <<_ACEOF
8574/* end confdefs.h. */
631ef239 8575#if defined CRAY && ! defined CRAY2
212380e3 8576webecray
8577#else
8578wenotbecray
8579#endif
8580
8581_ACEOF
8582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8583 $EGREP "webecray" >/dev/null 2>&1; then
8584 ac_cv_os_cray=yes
8585else
8586 ac_cv_os_cray=no
8587fi
8588rm -f conftest*
8589
8590fi
631ef239 8591{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8592echo "${ECHO_T}$ac_cv_os_cray" >&6; }
212380e3 8593if test $ac_cv_os_cray = yes; then
8594 for ac_func in _getb67 GETB67 getb67; do
8595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 8596{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8597echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8600else
8601 cat >conftest.$ac_ext <<_ACEOF
8602/* confdefs.h. */
8603_ACEOF
8604cat confdefs.h >>conftest.$ac_ext
8605cat >>conftest.$ac_ext <<_ACEOF
8606/* end confdefs.h. */
8607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8609#define $ac_func innocuous_$ac_func
8610
8611/* System header to define __stub macros and hopefully few prototypes,
8612 which can conflict with char $ac_func (); below.
8613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8614 <limits.h> exists even on freestanding compilers. */
8615
8616#ifdef __STDC__
8617# include <limits.h>
8618#else
8619# include <assert.h>
8620#endif
8621
8622#undef $ac_func
8623
631ef239 8624/* Override any GCC internal prototype to avoid an error.
8625 Use char because int might match the return type of a GCC
8626 builtin and then its argument prototype would still apply. */
212380e3 8627#ifdef __cplusplus
8628extern "C"
212380e3 8629#endif
212380e3 8630char $ac_func ();
8631/* The GNU C library defines this for functions which it implements
8632 to always fail with ENOSYS. Some functions are actually named
8633 something starting with __ and the normal name is an alias. */
631ef239 8634#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8635choke me
212380e3 8636#endif
8637
8638int
8639main ()
8640{
631ef239 8641return $ac_func ();
212380e3 8642 ;
8643 return 0;
8644}
8645_ACEOF
8646rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8647if { (ac_try="$ac_link"
8648case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8651esac
8652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_link") 2>conftest.er1
212380e3 8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest$ac_exeext &&
8663 $as_test_x conftest$ac_exeext; then
212380e3 8664 eval "$as_ac_var=yes"
8665else
8666 echo "$as_me: failed program was:" >&5
8667sed 's/^/| /' conftest.$ac_ext >&5
8668
631ef239 8669 eval "$as_ac_var=no"
212380e3 8670fi
631ef239 8671
8672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8673 conftest$ac_exeext conftest.$ac_ext
8674fi
631ef239 8675ac_res=`eval echo '${'$as_ac_var'}'`
8676 { echo "$as_me:$LINENO: result: $ac_res" >&5
8677echo "${ECHO_T}$ac_res" >&6; }
212380e3 8678if test `eval echo '${'$as_ac_var'}'` = yes; then
8679
8680cat >>confdefs.h <<_ACEOF
8681#define CRAY_STACKSEG_END $ac_func
8682_ACEOF
8683
8684 break
8685fi
8686
8687 done
8688fi
8689
631ef239 8690{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8691echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
212380e3 8692if test "${ac_cv_c_stack_direction+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8694else
8695 if test "$cross_compiling" = yes; then
8696 ac_cv_c_stack_direction=0
8697else
8698 cat >conftest.$ac_ext <<_ACEOF
8699/* confdefs.h. */
8700_ACEOF
8701cat confdefs.h >>conftest.$ac_ext
8702cat >>conftest.$ac_ext <<_ACEOF
8703/* end confdefs.h. */
631ef239 8704$ac_includes_default
212380e3 8705int
8706find_stack_direction ()
8707{
8708 static char *addr = 0;
8709 auto char dummy;
8710 if (addr == 0)
8711 {
8712 addr = &dummy;
8713 return find_stack_direction ();
8714 }
8715 else
8716 return (&dummy > addr) ? 1 : -1;
8717}
8718
8719int
8720main ()
8721{
631ef239 8722 return find_stack_direction () < 0;
212380e3 8723}
8724_ACEOF
8725rm -f conftest$ac_exeext
631ef239 8726if { (ac_try="$ac_link"
8727case "(($ac_try" in
8728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8730esac
8731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_link") 2>&5
212380e3 8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 8736 { (case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8739esac
8740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_try") 2>&5
212380e3 8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_cv_c_stack_direction=1
8746else
8747 echo "$as_me: program exited with status $ac_status" >&5
8748echo "$as_me: failed program was:" >&5
8749sed 's/^/| /' conftest.$ac_ext >&5
8750
8751( exit $ac_status )
8752ac_cv_c_stack_direction=-1
8753fi
631ef239 8754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 8755fi
631ef239 8756
8757
212380e3 8758fi
631ef239 8759{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8760echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
212380e3 8761
8762cat >>confdefs.h <<_ACEOF
8763#define STACK_DIRECTION $ac_cv_c_stack_direction
8764_ACEOF
8765
8766
8767fi
8768
8769
8770
631ef239 8771{ echo "$as_me:$LINENO: checking for nanosleep" >&5
8772echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
212380e3 8773if test "${ac_cv_func_nanosleep+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776 cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
8782/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
8783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8784#define nanosleep innocuous_nanosleep
8785
8786/* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char nanosleep (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8790
8791#ifdef __STDC__
8792# include <limits.h>
8793#else
8794# include <assert.h>
8795#endif
8796
8797#undef nanosleep
8798
631ef239 8799/* Override any GCC internal prototype to avoid an error.
8800 Use char because int might match the return type of a GCC
8801 builtin and then its argument prototype would still apply. */
212380e3 8802#ifdef __cplusplus
8803extern "C"
212380e3 8804#endif
212380e3 8805char nanosleep ();
8806/* The GNU C library defines this for functions which it implements
8807 to always fail with ENOSYS. Some functions are actually named
8808 something starting with __ and the normal name is an alias. */
631ef239 8809#if defined __stub_nanosleep || defined __stub___nanosleep
212380e3 8810choke me
212380e3 8811#endif
8812
8813int
8814main ()
8815{
631ef239 8816return nanosleep ();
212380e3 8817 ;
8818 return 0;
8819}
8820_ACEOF
8821rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8822if { (ac_try="$ac_link"
8823case "(($ac_try" in
8824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8826esac
8827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_link") 2>conftest.er1
212380e3 8829 ac_status=$?
8830 grep -v '^ *+' conftest.er1 >conftest.err
8831 rm -f conftest.er1
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8834 (exit $ac_status); } && {
8835 test -z "$ac_c_werror_flag" ||
8836 test ! -s conftest.err
8837 } && test -s conftest$ac_exeext &&
8838 $as_test_x conftest$ac_exeext; then
212380e3 8839 ac_cv_func_nanosleep=yes
8840else
8841 echo "$as_me: failed program was:" >&5
8842sed 's/^/| /' conftest.$ac_ext >&5
8843
631ef239 8844 ac_cv_func_nanosleep=no
212380e3 8845fi
631ef239 8846
8847rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8848 conftest$ac_exeext conftest.$ac_ext
8849fi
631ef239 8850{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
8851echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
212380e3 8852if test $ac_cv_func_nanosleep = yes; then
8853 :
8854else
631ef239 8855 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
8856echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
212380e3 8857if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859else
8860 ac_check_lib_save_LIBS=$LIBS
8861LIBS="-lrt $LIBS"
8862cat >conftest.$ac_ext <<_ACEOF
8863/* confdefs.h. */
8864_ACEOF
8865cat confdefs.h >>conftest.$ac_ext
8866cat >>conftest.$ac_ext <<_ACEOF
8867/* end confdefs.h. */
8868
631ef239 8869/* Override any GCC internal prototype to avoid an error.
8870 Use char because int might match the return type of a GCC
8871 builtin and then its argument prototype would still apply. */
212380e3 8872#ifdef __cplusplus
8873extern "C"
8874#endif
212380e3 8875char nanosleep ();
8876int
8877main ()
8878{
631ef239 8879return nanosleep ();
212380e3 8880 ;
8881 return 0;
8882}
8883_ACEOF
8884rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8885if { (ac_try="$ac_link"
8886case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889esac
8890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_link") 2>conftest.er1
212380e3 8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest$ac_exeext &&
8901 $as_test_x conftest$ac_exeext; then
212380e3 8902 ac_cv_lib_rt_nanosleep=yes
8903else
8904 echo "$as_me: failed program was:" >&5
8905sed 's/^/| /' conftest.$ac_ext >&5
8906
631ef239 8907 ac_cv_lib_rt_nanosleep=no
212380e3 8908fi
631ef239 8909
8910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8911 conftest$ac_exeext conftest.$ac_ext
8912LIBS=$ac_check_lib_save_LIBS
8913fi
631ef239 8914{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
8915echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
212380e3 8916if test $ac_cv_lib_rt_nanosleep = yes; then
8917 LIBS="${LIBS} -lrt"
8918else
631ef239 8919 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
8920echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
212380e3 8921if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923else
8924 ac_check_lib_save_LIBS=$LIBS
8925LIBS="-lposix4 $LIBS"
8926cat >conftest.$ac_ext <<_ACEOF
8927/* confdefs.h. */
8928_ACEOF
8929cat confdefs.h >>conftest.$ac_ext
8930cat >>conftest.$ac_ext <<_ACEOF
8931/* end confdefs.h. */
8932
631ef239 8933/* Override any GCC internal prototype to avoid an error.
8934 Use char because int might match the return type of a GCC
8935 builtin and then its argument prototype would still apply. */
212380e3 8936#ifdef __cplusplus
8937extern "C"
8938#endif
212380e3 8939char nanosleep ();
8940int
8941main ()
8942{
631ef239 8943return nanosleep ();
212380e3 8944 ;
8945 return 0;
8946}
8947_ACEOF
8948rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 8949if { (ac_try="$ac_link"
8950case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953esac
8954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_link") 2>conftest.er1
212380e3 8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest$ac_exeext &&
8965 $as_test_x conftest$ac_exeext; then
212380e3 8966 ac_cv_lib_posix4_nanosleep=yes
8967else
8968 echo "$as_me: failed program was:" >&5
8969sed 's/^/| /' conftest.$ac_ext >&5
8970
631ef239 8971 ac_cv_lib_posix4_nanosleep=no
212380e3 8972fi
631ef239 8973
8974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 8975 conftest$ac_exeext conftest.$ac_ext
8976LIBS=$ac_check_lib_save_LIBS
8977fi
631ef239 8978{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
8979echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
212380e3 8980if test $ac_cv_lib_posix4_nanosleep = yes; then
8981 LIBS="${LIBS} -lposix4"
8982
8983fi
8984
8985fi
8986
8987fi
8988
8989if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
8990then
631ef239 8991 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
8992echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
212380e3 8993else
8994
8995cat >>confdefs.h <<\_ACEOF
8996#define HAVE_NANOSLEEP 1
8997_ACEOF
8998
8999fi
9000
631ef239 9001{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
9002echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9003# Check whether --enable-openssl was given.
212380e3 9004if test "${enable_openssl+set}" = set; then
631ef239 9005 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3 9006else
9007 cf_enable_openssl="auto"
631ef239 9008fi
9009
212380e3 9010
9011if test "$cf_enable_openssl" != "no" ; then
9012 cf_openssl_basedir=""
9013 if test "$cf_enable_openssl" != "auto" &&
9014 test "$cf_enable_openssl" != "yes" ; then
9015 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9016 else
9017 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9018 /usr/local/openssl ; do
9019 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9020 cf_openssl_basedir="${dirs}"
9021 break
9022 fi
9023 done
9024 unset dirs
9025 fi
9026 if test ! -z "$cf_openssl_basedir"; then
9027 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9028 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9029 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9030 else
9031 cf_openssl_basedir=""
9032 fi
9033 else
9034 if test -f "/usr/include/openssl/opensslv.h" ; then
9035 cf_openssl_basedir="/usr"
9036 fi
9037 fi
9038
9039 if test ! -z "$cf_openssl_basedir"; then
631ef239 9040 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9041echo "${ECHO_T}$cf_openssl_basedir" >&6; }
212380e3 9042 cf_enable_openssl="yes"
9043 else
631ef239 9044 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9045echo "${ECHO_T}not found. Specify a correct path?" >&6; }
212380e3 9046 cf_enable_openssl="no"
9047 fi
9048 unset cf_openssl_basedir
9049else
631ef239 9050 { echo "$as_me:$LINENO: result: disabled" >&5
9051echo "${ECHO_T}disabled" >&6; }
212380e3 9052fi
9053
9054save_CPPFLAGS="$CPPFLAGS"
9055CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9056save_LIBS="$LIBS"
9057LIBS="$LIBS $SSL_LIBS"
9058if test "$cf_enable_openssl" != no; then
631ef239 9059 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9060echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
212380e3 9061 if test "$cross_compiling" = yes; then
9062 cf_openssl_version_ok=no
9063else
9064 cat >conftest.$ac_ext <<_ACEOF
9065/* confdefs.h. */
9066_ACEOF
9067cat confdefs.h >>conftest.$ac_ext
9068cat >>conftest.$ac_ext <<_ACEOF
9069/* end confdefs.h. */
9070#include <openssl/opensslv.h>
9071 #include <stdlib.h>
9072int
9073main ()
9074{
9075if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9076 exit(0); else exit(1);
9077 ;
9078 return 0;
9079}
9080_ACEOF
9081rm -f conftest$ac_exeext
631ef239 9082if { (ac_try="$ac_link"
9083case "(($ac_try" in
9084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9085 *) ac_try_echo=$ac_try;;
9086esac
9087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9088 (eval "$ac_link") 2>&5
212380e3 9089 ac_status=$?
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 9092 { (case "(($ac_try" in
9093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094 *) ac_try_echo=$ac_try;;
9095esac
9096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097 (eval "$ac_try") 2>&5
212380e3 9098 ac_status=$?
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); }; }; then
9101 cf_openssl_version_ok=yes
9102else
9103 echo "$as_me: program exited with status $ac_status" >&5
9104echo "$as_me: failed program was:" >&5
9105sed 's/^/| /' conftest.$ac_ext >&5
9106
9107( exit $ac_status )
9108cf_openssl_version_ok=no
9109fi
631ef239 9110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 9111fi
9112
631ef239 9113
9114
212380e3 9115 if test "$cf_openssl_version_ok" = yes; then
631ef239 9116 { echo "$as_me:$LINENO: result: found" >&5
9117echo "${ECHO_T}found" >&6; }
212380e3 9118
9119 ENCSPEED=encspeed
9120
9121
9122 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9123
631ef239 9124{ echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9125echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
212380e3 9126if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128else
9129 ac_check_lib_save_LIBS=$LIBS
9130LIBS="-lcrypto $LIBS"
9131cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h. */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
9136/* end confdefs.h. */
9137
631ef239 9138/* Override any GCC internal prototype to avoid an error.
9139 Use char because int might match the return type of a GCC
9140 builtin and then its argument prototype would still apply. */
212380e3 9141#ifdef __cplusplus
9142extern "C"
9143#endif
212380e3 9144char RSA_free ();
9145int
9146main ()
9147{
631ef239 9148return RSA_free ();
212380e3 9149 ;
9150 return 0;
9151}
9152_ACEOF
9153rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9154if { (ac_try="$ac_link"
9155case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158esac
9159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
212380e3 9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
212380e3 9171 ac_cv_lib_crypto_RSA_free=yes
9172else
9173 echo "$as_me: failed program was:" >&5
9174sed 's/^/| /' conftest.$ac_ext >&5
9175
631ef239 9176 ac_cv_lib_crypto_RSA_free=no
212380e3 9177fi
631ef239 9178
9179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 9180 conftest$ac_exeext conftest.$ac_ext
9181LIBS=$ac_check_lib_save_LIBS
9182fi
631ef239 9183{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9184echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
212380e3 9185if test $ac_cv_lib_crypto_RSA_free = yes; then
9186 cat >>confdefs.h <<_ACEOF
9187#define HAVE_LIBCRYPTO 1
9188_ACEOF
9189
9190 LIBS="-lcrypto $LIBS"
9191
9192fi
9193
9194 SSL_LIBS="$SSL_LIBS -lcrypto"
9195 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9196 else
631ef239 9197 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9198echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
212380e3 9199 fi
9200fi
9201
9202CPPFLAGS="$save_CPPFLAGS"
9203LIBS="$save_LIBS"
9204
9205
9206
9207
9208
631ef239 9209# Check whether --with-zlib-path was given.
212380e3 9210if test "${with_zlib_path+set}" = set; then
631ef239 9211 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9212fi
212380e3 9213
631ef239 9214
9215# Check whether --enable-zlib was given.
212380e3 9216if test "${enable_zlib+set}" = set; then
631ef239 9217 enableval=$enable_zlib; zlib=$enableval
212380e3 9218else
9219 zlib=yes
631ef239 9220fi
9221
212380e3 9222
9223if test "$zlib" = yes; then
9224
9225if test "${ac_cv_header_zlib_h+set}" = set; then
631ef239 9226 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9227echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
212380e3 9228if test "${ac_cv_header_zlib_h+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9230fi
631ef239 9231{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9232echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
212380e3 9233else
9234 # Is the header compilable?
631ef239 9235{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
9236echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
212380e3 9237cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h. */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h. */
9243$ac_includes_default
9244#include <zlib.h>
9245_ACEOF
9246rm -f conftest.$ac_objext
631ef239 9247if { (ac_try="$ac_compile"
9248case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251esac
9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
212380e3 9254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
212380e3 9263 ac_header_compiler=yes
9264else
9265 echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
631ef239 9268 ac_header_compiler=no
212380e3 9269fi
631ef239 9270
9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9272{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9273echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 9274
9275# Is the header present?
631ef239 9276{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
9277echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
212380e3 9278cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
9284#include <zlib.h>
9285_ACEOF
631ef239 9286if { (ac_try="$ac_cpp conftest.$ac_ext"
9287case "(($ac_try" in
9288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9290esac
9291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 9293 ac_status=$?
9294 grep -v '^ *+' conftest.er1 >conftest.err
9295 rm -f conftest.er1
9296 cat conftest.err >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9298 (exit $ac_status); } >/dev/null && {
9299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9300 test ! -s conftest.err
9301 }; then
212380e3 9302 ac_header_preproc=yes
9303else
9304 echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ac_header_preproc=no
9308fi
631ef239 9309
212380e3 9310rm -f conftest.err conftest.$ac_ext
631ef239 9311{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9312echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 9313
9314# So? What about this header?
9315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9316 yes:no: )
9317 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9318echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9320echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9321 ac_header_preproc=yes
9322 ;;
9323 no:yes:* )
9324 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9325echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9326 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9327echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9328 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9329echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9331echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9333echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9335echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
631ef239 9336
212380e3 9337 ;;
9338esac
631ef239 9339{ echo "$as_me:$LINENO: checking for zlib.h" >&5
9340echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
212380e3 9341if test "${ac_cv_header_zlib_h+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343else
9344 ac_cv_header_zlib_h=$ac_header_preproc
9345fi
631ef239 9346{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9347echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
212380e3 9348
9349fi
9350if test $ac_cv_header_zlib_h = yes; then
9351
631ef239 9352 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9353echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
212380e3 9354if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356else
9357 ac_check_lib_save_LIBS=$LIBS
9358LIBS="-lz $LIBS"
9359cat >conftest.$ac_ext <<_ACEOF
9360/* confdefs.h. */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h. */
9365
631ef239 9366/* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
212380e3 9369#ifdef __cplusplus
9370extern "C"
9371#endif
212380e3 9372char zlibVersion ();
9373int
9374main ()
9375{
631ef239 9376return zlibVersion ();
212380e3 9377 ;
9378 return 0;
9379}
9380_ACEOF
9381rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9382if { (ac_try="$ac_link"
9383case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386esac
9387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_link") 2>conftest.er1
212380e3 9389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest$ac_exeext &&
9398 $as_test_x conftest$ac_exeext; then
212380e3 9399 ac_cv_lib_z_zlibVersion=yes
9400else
9401 echo "$as_me: failed program was:" >&5
9402sed 's/^/| /' conftest.$ac_ext >&5
9403
631ef239 9404 ac_cv_lib_z_zlibVersion=no
212380e3 9405fi
631ef239 9406
9407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 9408 conftest$ac_exeext conftest.$ac_ext
9409LIBS=$ac_check_lib_save_LIBS
9410fi
631ef239 9411{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9412echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
212380e3 9413if test $ac_cv_lib_z_zlibVersion = yes; then
9414
9415 ZLIB_LD=-lz
9416
9417
9418cat >>confdefs.h <<\_ACEOF
9419#define HAVE_LIBZ 1
9420_ACEOF
9421
9422
9423else
9424 zlib=no
9425fi
9426
9427
9428else
9429 zlib=no
9430fi
9431
9432
9433
9434fi
9435
9436
c1c5fdc4 9437# Check whether --enable-ports was given.
9438if test "${enable_ports+set}" = set; then
9439 enableval=$enable_ports; if test $enableval = yes; then
9440 SELECT_TYPE_EXPLICIT="ports"
9441 else
9442 use_ports=no
9443 fi
9444
9445fi
9446
9447
631ef239 9448# Check whether --enable-poll was given.
212380e3 9449if test "${enable_poll+set}" = set; then
631ef239 9450 enableval=$enable_poll; if test $enableval = yes; then
212380e3 9451 SELECT_TYPE_EXPLICIT="poll"
9452 else
9453 use_poll=no
9454 fi
9455
631ef239 9456fi
9457
212380e3 9458
631ef239 9459# Check whether --enable-select was given.
212380e3 9460if test "${enable_select+set}" = set; then
631ef239 9461 enableval=$enable_select; if test $enableval = yes; then
212380e3 9462 SELECT_TYPE_EXPLICIT="select"
9463 else
9464 use_select=no
9465 fi
9466
631ef239 9467fi
9468
212380e3 9469
631ef239 9470# Check whether --enable-kqueue was given.
212380e3 9471if test "${enable_kqueue+set}" = set; then
631ef239 9472 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3 9473 SELECT_TYPE_EXPLICIT="kqueue"
9474 else
9475 use_kqueue=no
9476 fi
9477
631ef239 9478fi
9479
212380e3 9480
631ef239 9481# Check whether --enable-epoll was given.
212380e3 9482if test "${enable_epoll+set}" = set; then
631ef239 9483 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 9484 SELECT_TYPE_EXPLICIT="epoll"
3ad1a781 9485
9486for ac_func in epoll_ctl
9487do
9488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 9489{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9491if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3ad1a781 9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9493else
9494 cat >conftest.$ac_ext <<_ACEOF
9495/* confdefs.h. */
9496_ACEOF
9497cat confdefs.h >>conftest.$ac_ext
9498cat >>conftest.$ac_ext <<_ACEOF
9499/* end confdefs.h. */
9500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9502#define $ac_func innocuous_$ac_func
9503
9504/* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char $ac_func (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9508
9509#ifdef __STDC__
9510# include <limits.h>
9511#else
9512# include <assert.h>
9513#endif
9514
9515#undef $ac_func
9516
631ef239 9517/* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
3ad1a781 9520#ifdef __cplusplus
9521extern "C"
3ad1a781 9522#endif
3ad1a781 9523char $ac_func ();
9524/* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
631ef239 9527#if defined __stub_$ac_func || defined __stub___$ac_func
3ad1a781 9528choke me
3ad1a781 9529#endif
9530
9531int
9532main ()
9533{
631ef239 9534return $ac_func ();
3ad1a781 9535 ;
9536 return 0;
9537}
9538_ACEOF
9539rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9540if { (ac_try="$ac_link"
9541case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544esac
9545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_link") 2>conftest.er1
3ad1a781 9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest$ac_exeext &&
9556 $as_test_x conftest$ac_exeext; then
3ad1a781 9557 eval "$as_ac_var=yes"
9558else
9559 echo "$as_me: failed program was:" >&5
9560sed 's/^/| /' conftest.$ac_ext >&5
9561
631ef239 9562 eval "$as_ac_var=no"
3ad1a781 9563fi
631ef239 9564
9565rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3ad1a781 9566 conftest$ac_exeext conftest.$ac_ext
9567fi
631ef239 9568ac_res=`eval echo '${'$as_ac_var'}'`
9569 { echo "$as_me:$LINENO: result: $ac_res" >&5
9570echo "${ECHO_T}$ac_res" >&6; }
3ad1a781 9571if test `eval echo '${'$as_ac_var'}'` = yes; then
9572 cat >>confdefs.h <<_ACEOF
9573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574_ACEOF
9575 haveepoll=yes
9576else
9577 haveepoll=no
9578fi
9579done
9580
212380e3 9581 else
9582 use_epoll=no
9583 fi
9584
631ef239 9585fi
9586
212380e3 9587
9588
631ef239 9589{ echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9590echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
212380e3 9591
631ef239 9592# Check whether --with-confdir was given.
212380e3 9593if test "${with_confdir+set}" = set; then
631ef239 9594 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9595 { echo "$as_me:$LINENO: result: yes" >&5
9596echo "${ECHO_T}yes" >&6; }
212380e3 9597
9598 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9599 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9600 ac_define_dir=`eval echo $confdir`
9601 ac_define_dir=`eval echo $ac_define_dir`
9602 ETC_DIR="$ac_define_dir"
9603
9604
9605cat >>confdefs.h <<_ACEOF
9606#define ETC_DIR "$ac_define_dir"
9607_ACEOF
9608
9609
9610
9611
9612 confdir=`(
9613 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9614 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9615 eval echo \""$confdir"\"
9616 )`
9617
9618
9619else
9620 confdir='${prefix}/etc'
631ef239 9621 { echo "$as_me:$LINENO: result: no" >&5
9622echo "${ECHO_T}no" >&6; }
212380e3 9623
9624 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9626 ac_define_dir=`eval echo $confdir`
9627 ac_define_dir=`eval echo $ac_define_dir`
9628 ETC_DIR="$ac_define_dir"
9629
9630
9631cat >>confdefs.h <<_ACEOF
9632#define ETC_DIR "$ac_define_dir"
9633_ACEOF
9634
9635
9636
9637
9638 confdir=`(
9639 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9640 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9641 eval echo \""$confdir"\"
9642 )`
9643
9644
9645
631ef239 9646fi
9647
212380e3 9648
9649
631ef239 9650{ echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9651echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
212380e3 9652
631ef239 9653# Check whether --with-logdir was given.
212380e3 9654if test "${with_logdir+set}" = set; then
631ef239 9655 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9656 { echo "$as_me:$LINENO: result: yes" >&5
9657echo "${ECHO_T}yes" >&6; }
212380e3 9658
9659 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9661 ac_define_dir=`eval echo $logdir`
9662 ac_define_dir=`eval echo $ac_define_dir`
9663 LOG_DIR="$ac_define_dir"
9664
9665
9666cat >>confdefs.h <<_ACEOF
9667#define LOG_DIR "$ac_define_dir"
9668_ACEOF
9669
9670
9671
9672
9673 logdir=`(
9674 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9675 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9676 eval echo \""$logdir"\"
9677 )`
9678
9679
9680else
9681 logdir='${prefix}/logs'
631ef239 9682 { echo "$as_me:$LINENO: result: no" >&5
9683echo "${ECHO_T}no" >&6; }
212380e3 9684
9685 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9686 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9687 ac_define_dir=`eval echo $logdir`
9688 ac_define_dir=`eval echo $ac_define_dir`
9689 LOG_DIR="$ac_define_dir"
9690
9691
9692cat >>confdefs.h <<_ACEOF
9693#define LOG_DIR "$ac_define_dir"
9694_ACEOF
9695
9696
9697
9698
9699 logdir=`(
9700 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9701 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9702 eval echo \""$logdir"\"
9703 )`
9704
9705
9706
631ef239 9707fi
9708
212380e3 9709
9710
631ef239 9711{ echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
9712echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
212380e3 9713
631ef239 9714# Check whether --with-helpdir was given.
212380e3 9715if test "${with_helpdir+set}" = set; then
631ef239 9716 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
9717 { echo "$as_me:$LINENO: result: yes" >&5
9718echo "${ECHO_T}yes" >&6; }
212380e3 9719
9720 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9721 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9722 ac_define_dir=`eval echo $helpdir`
9723 ac_define_dir=`eval echo $ac_define_dir`
9724 HELP_DIR="$ac_define_dir"
9725
9726
9727cat >>confdefs.h <<_ACEOF
9728#define HELP_DIR "$ac_define_dir"
9729_ACEOF
9730
9731
9732
9733
9734 helpdir=`(
9735 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9736 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9737 eval echo \""$helpdir"\"
9738 )`
9739
9740
9741else
9742 helpdir='${prefix}/help'
631ef239 9743 { echo "$as_me:$LINENO: result: no" >&5
9744echo "${ECHO_T}no" >&6; }
212380e3 9745
9746 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9748 ac_define_dir=`eval echo $helpdir`
9749 ac_define_dir=`eval echo $ac_define_dir`
9750 HELP_DIR="$ac_define_dir"
9751
9752
9753cat >>confdefs.h <<_ACEOF
9754#define HELP_DIR "$ac_define_dir"
9755_ACEOF
9756
9757
9758
9759
9760 helpdir=`(
9761 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9762 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9763 eval echo \""$helpdir"\"
9764 )`
9765
9766
9767
631ef239 9768fi
9769
212380e3 9770
9771
631ef239 9772{ echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
9773echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
212380e3 9774
631ef239 9775# Check whether --with-moduledir was given.
212380e3 9776if test "${with_moduledir+set}" = set; then
631ef239 9777 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
9778 { echo "$as_me:$LINENO: result: yes" >&5
9779echo "${ECHO_T}yes" >&6; }
212380e3 9780
9781 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9782 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9783 ac_define_dir=`eval echo $moduledir`
9784 ac_define_dir=`eval echo $ac_define_dir`
9785 MODULE_DIR="$ac_define_dir"
9786
9787
9788cat >>confdefs.h <<_ACEOF
9789#define MODULE_DIR "$ac_define_dir"
9790_ACEOF
9791
9792
9793
9794
9795 moduledir=`(
9796 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9797 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9798 eval echo \""$moduledir"\"
9799 )`
9800
9801
9802else
9803 moduledir='${prefix}/modules'
631ef239 9804 { echo "$as_me:$LINENO: result: no" >&5
9805echo "${ECHO_T}no" >&6; }
212380e3 9806
9807 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9808 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9809 ac_define_dir=`eval echo $moduledir`
9810 ac_define_dir=`eval echo $ac_define_dir`
9811 MODULE_DIR="$ac_define_dir"
9812
9813
9814cat >>confdefs.h <<_ACEOF
9815#define MODULE_DIR "$ac_define_dir"
9816_ACEOF
9817
9818
9819
9820
9821 moduledir=`(
9822 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9823 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9824 eval echo \""$moduledir"\"
9825 )`
9826
9827
9828
631ef239 9829fi
9830
212380e3 9831
9832if test ! -z "$SELECT_TYPE_EXPLICIT"; then
9833 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
9834 echo "Forcing $SELECT_TYPE to be enabled"
9835else
9836
c1c5fdc4 9837if test ! "x$use_ports" = "xno"; then
9838
9839for ac_func in port_getn
9840do
9841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9842{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9844if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846else
9847 cat >conftest.$ac_ext <<_ACEOF
9848/* confdefs.h. */
9849_ACEOF
9850cat confdefs.h >>conftest.$ac_ext
9851cat >>conftest.$ac_ext <<_ACEOF
9852/* end confdefs.h. */
9853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9855#define $ac_func innocuous_$ac_func
9856
9857/* System header to define __stub macros and hopefully few prototypes,
9858 which can conflict with char $ac_func (); below.
9859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9860 <limits.h> exists even on freestanding compilers. */
9861
9862#ifdef __STDC__
9863# include <limits.h>
9864#else
9865# include <assert.h>
9866#endif
9867
9868#undef $ac_func
9869
9870/* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9873#ifdef __cplusplus
9874extern "C"
9875#endif
9876char $ac_func ();
9877/* The GNU C library defines this for functions which it implements
9878 to always fail with ENOSYS. Some functions are actually named
9879 something starting with __ and the normal name is an alias. */
9880#if defined __stub_$ac_func || defined __stub___$ac_func
9881choke me
9882#endif
9883
9884int
9885main ()
9886{
9887return $ac_func ();
9888 ;
9889 return 0;
9890}
9891_ACEOF
9892rm -f conftest.$ac_objext conftest$ac_exeext
9893if { (ac_try="$ac_link"
9894case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9897esac
9898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_link") 2>conftest.er1
9900 ac_status=$?
9901 grep -v '^ *+' conftest.er1 >conftest.err
9902 rm -f conftest.er1
9903 cat conftest.err >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } && {
9906 test -z "$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9908 } && test -s conftest$ac_exeext &&
9909 $as_test_x conftest$ac_exeext; then
9910 eval "$as_ac_var=yes"
9911else
9912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
9915 eval "$as_ac_var=no"
9916fi
9917
9918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9919 conftest$ac_exeext conftest.$ac_ext
9920fi
9921ac_res=`eval echo '${'$as_ac_var'}'`
9922 { echo "$as_me:$LINENO: result: $ac_res" >&5
9923echo "${ECHO_T}$ac_res" >&6; }
9924if test `eval echo '${'$as_ac_var'}'` = yes; then
9925 cat >>confdefs.h <<_ACEOF
9926#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9927_ACEOF
9928 haveports=yes
9929else
9930 haveports=no
9931fi
9932done
9933
9934 if test "x$haveports" = "xyes" ; then
9935 SELECT_TYPE="ports"
9936 fi
9937fi
9938
212380e3 9939if test ! "x$use_select" = "xno"; then
9940
9941for ac_func in select
9942do
9943as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 9944{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9945echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9946if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9957#define $ac_func innocuous_$ac_func
9958
9959/* System header to define __stub macros and hopefully few prototypes,
9960 which can conflict with char $ac_func (); below.
9961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9962 <limits.h> exists even on freestanding compilers. */
9963
9964#ifdef __STDC__
9965# include <limits.h>
9966#else
9967# include <assert.h>
9968#endif
9969
9970#undef $ac_func
9971
631ef239 9972/* Override any GCC internal prototype to avoid an error.
9973 Use char because int might match the return type of a GCC
9974 builtin and then its argument prototype would still apply. */
212380e3 9975#ifdef __cplusplus
9976extern "C"
212380e3 9977#endif
212380e3 9978char $ac_func ();
9979/* The GNU C library defines this for functions which it implements
9980 to always fail with ENOSYS. Some functions are actually named
9981 something starting with __ and the normal name is an alias. */
631ef239 9982#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 9983choke me
212380e3 9984#endif
9985
9986int
9987main ()
9988{
631ef239 9989return $ac_func ();
212380e3 9990 ;
9991 return 0;
9992}
9993_ACEOF
9994rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 9995if { (ac_try="$ac_link"
9996case "(($ac_try" in
9997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9998 *) ac_try_echo=$ac_try;;
9999esac
10000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10001 (eval "$ac_link") 2>conftest.er1
212380e3 10002 ac_status=$?
10003 grep -v '^ *+' conftest.er1 >conftest.err
10004 rm -f conftest.er1
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10007 (exit $ac_status); } && {
10008 test -z "$ac_c_werror_flag" ||
10009 test ! -s conftest.err
10010 } && test -s conftest$ac_exeext &&
10011 $as_test_x conftest$ac_exeext; then
212380e3 10012 eval "$as_ac_var=yes"
10013else
10014 echo "$as_me: failed program was:" >&5
10015sed 's/^/| /' conftest.$ac_ext >&5
10016
631ef239 10017 eval "$as_ac_var=no"
212380e3 10018fi
631ef239 10019
10020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10021 conftest$ac_exeext conftest.$ac_ext
10022fi
631ef239 10023ac_res=`eval echo '${'$as_ac_var'}'`
10024 { echo "$as_me:$LINENO: result: $ac_res" >&5
10025echo "${ECHO_T}$ac_res" >&6; }
212380e3 10026if test `eval echo '${'$as_ac_var'}'` = yes; then
10027 cat >>confdefs.h <<_ACEOF
10028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10029_ACEOF
10030 haveselect=yes
10031else
10032 haveselect=no
10033fi
10034done
10035
10036 if test "x$haveselect" = "xyes" ; then
10037 SELECT_TYPE="select"
10038 fi
10039fi
10040
10041if test ! "x$use_poll" = "xno"; then
10042
10043for ac_func in poll
10044do
10045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 10046{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10048if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10050else
10051 cat >conftest.$ac_ext <<_ACEOF
10052/* confdefs.h. */
10053_ACEOF
10054cat confdefs.h >>conftest.$ac_ext
10055cat >>conftest.$ac_ext <<_ACEOF
10056/* end confdefs.h. */
10057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10059#define $ac_func innocuous_$ac_func
10060
10061/* System header to define __stub macros and hopefully few prototypes,
10062 which can conflict with char $ac_func (); below.
10063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10064 <limits.h> exists even on freestanding compilers. */
10065
10066#ifdef __STDC__
10067# include <limits.h>
10068#else
10069# include <assert.h>
10070#endif
10071
10072#undef $ac_func
10073
631ef239 10074/* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
212380e3 10077#ifdef __cplusplus
10078extern "C"
212380e3 10079#endif
212380e3 10080char $ac_func ();
10081/* The GNU C library defines this for functions which it implements
10082 to always fail with ENOSYS. Some functions are actually named
10083 something starting with __ and the normal name is an alias. */
631ef239 10084#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10085choke me
212380e3 10086#endif
10087
10088int
10089main ()
10090{
631ef239 10091return $ac_func ();
212380e3 10092 ;
10093 return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 10097if { (ac_try="$ac_link"
10098case "(($ac_try" in
10099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10100 *) ac_try_echo=$ac_try;;
10101esac
10102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10103 (eval "$ac_link") 2>conftest.er1
212380e3 10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest$ac_exeext &&
10113 $as_test_x conftest$ac_exeext; then
212380e3 10114 eval "$as_ac_var=yes"
10115else
10116 echo "$as_me: failed program was:" >&5
10117sed 's/^/| /' conftest.$ac_ext >&5
10118
631ef239 10119 eval "$as_ac_var=no"
212380e3 10120fi
631ef239 10121
10122rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10123 conftest$ac_exeext conftest.$ac_ext
10124fi
631ef239 10125ac_res=`eval echo '${'$as_ac_var'}'`
10126 { echo "$as_me:$LINENO: result: $ac_res" >&5
10127echo "${ECHO_T}$ac_res" >&6; }
212380e3 10128if test `eval echo '${'$as_ac_var'}'` = yes; then
10129 cat >>confdefs.h <<_ACEOF
10130#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10131_ACEOF
10132 havepoll=yes
10133else
10134 havepoll=no
10135fi
10136done
10137
10138 if test "x$havepoll" = "xyes" ; then
10139 SELECT_TYPE="poll"
10140 fi
10141fi
10142
212380e3 10143if test ! "x$use_kqueue" = "xno"; then
10144
10145for ac_func in kevent
10146do
10147as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 10148{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10149echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10152else
10153 cat >conftest.$ac_ext <<_ACEOF
10154/* confdefs.h. */
10155_ACEOF
10156cat confdefs.h >>conftest.$ac_ext
10157cat >>conftest.$ac_ext <<_ACEOF
10158/* end confdefs.h. */
10159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10161#define $ac_func innocuous_$ac_func
10162
10163/* System header to define __stub macros and hopefully few prototypes,
10164 which can conflict with char $ac_func (); below.
10165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166 <limits.h> exists even on freestanding compilers. */
10167
10168#ifdef __STDC__
10169# include <limits.h>
10170#else
10171# include <assert.h>
10172#endif
10173
10174#undef $ac_func
10175
631ef239 10176/* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
212380e3 10179#ifdef __cplusplus
10180extern "C"
212380e3 10181#endif
212380e3 10182char $ac_func ();
10183/* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
631ef239 10186#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10187choke me
212380e3 10188#endif
10189
10190int
10191main ()
10192{
631ef239 10193return $ac_func ();
212380e3 10194 ;
10195 return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 10199if { (ac_try="$ac_link"
10200case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10203esac
10204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
212380e3 10206 ac_status=$?
10207 grep -v '^ *+' conftest.er1 >conftest.err
10208 rm -f conftest.er1
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext &&
10215 $as_test_x conftest$ac_exeext; then
212380e3 10216 eval "$as_ac_var=yes"
10217else
10218 echo "$as_me: failed program was:" >&5
10219sed 's/^/| /' conftest.$ac_ext >&5
10220
631ef239 10221 eval "$as_ac_var=no"
212380e3 10222fi
631ef239 10223
10224rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10225 conftest$ac_exeext conftest.$ac_ext
10226fi
631ef239 10227ac_res=`eval echo '${'$as_ac_var'}'`
10228 { echo "$as_me:$LINENO: result: $ac_res" >&5
10229echo "${ECHO_T}$ac_res" >&6; }
212380e3 10230if test `eval echo '${'$as_ac_var'}'` = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10233_ACEOF
10234 havekqueue=yes
10235else
10236 havekqueue=no
10237fi
10238done
10239
10240 if test "x$havekqueue" = "xyes" ; then
10241 SELECT_TYPE="kqueue"
10242 fi
10243fi
10244
10245if test ! "x$use_epoll" = "xno"; then
10246
10247for ac_func in epoll_ctl
10248do
10249as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 10250{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10251echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10252if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255 cat >conftest.$ac_ext <<_ACEOF
10256/* confdefs.h. */
10257_ACEOF
10258cat confdefs.h >>conftest.$ac_ext
10259cat >>conftest.$ac_ext <<_ACEOF
10260/* end confdefs.h. */
10261/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10263#define $ac_func innocuous_$ac_func
10264
10265/* System header to define __stub macros and hopefully few prototypes,
10266 which can conflict with char $ac_func (); below.
10267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10268 <limits.h> exists even on freestanding compilers. */
10269
10270#ifdef __STDC__
10271# include <limits.h>
10272#else
10273# include <assert.h>
10274#endif
10275
10276#undef $ac_func
10277
631ef239 10278/* Override any GCC internal prototype to avoid an error.
10279 Use char because int might match the return type of a GCC
10280 builtin and then its argument prototype would still apply. */
212380e3 10281#ifdef __cplusplus
10282extern "C"
212380e3 10283#endif
212380e3 10284char $ac_func ();
10285/* The GNU C library defines this for functions which it implements
10286 to always fail with ENOSYS. Some functions are actually named
10287 something starting with __ and the normal name is an alias. */
631ef239 10288#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10289choke me
212380e3 10290#endif
10291
10292int
10293main ()
10294{
631ef239 10295return $ac_func ();
212380e3 10296 ;
10297 return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 10301if { (ac_try="$ac_link"
10302case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
10306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_link") 2>conftest.er1
212380e3 10308 ac_status=$?
10309 grep -v '^ *+' conftest.er1 >conftest.err
10310 rm -f conftest.er1
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10313 (exit $ac_status); } && {
10314 test -z "$ac_c_werror_flag" ||
10315 test ! -s conftest.err
10316 } && test -s conftest$ac_exeext &&
10317 $as_test_x conftest$ac_exeext; then
212380e3 10318 eval "$as_ac_var=yes"
10319else
10320 echo "$as_me: failed program was:" >&5
10321sed 's/^/| /' conftest.$ac_ext >&5
10322
631ef239 10323 eval "$as_ac_var=no"
212380e3 10324fi
631ef239 10325
10326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 10327 conftest$ac_exeext conftest.$ac_ext
10328fi
631ef239 10329ac_res=`eval echo '${'$as_ac_var'}'`
10330 { echo "$as_me:$LINENO: result: $ac_res" >&5
10331echo "${ECHO_T}$ac_res" >&6; }
212380e3 10332if test `eval echo '${'$as_ac_var'}'` = yes; then
10333 cat >>confdefs.h <<_ACEOF
10334#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335_ACEOF
10336 haveepoll=yes
10337else
10338 haveepoll=no
10339fi
10340done
10341
10342 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10343 if test "x$haveepoll" = "xyes" ; then
631ef239 10344 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10345echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
212380e3 10346 if test "$cross_compiling" = yes; then
631ef239 10347 { echo "$as_me:$LINENO: result: no" >&5
10348echo "${ECHO_T}no" >&6; }
212380e3 10349else
10350 cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h. */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h. */
10356#include <stdint.h>
10357#include <sys/param.h>
10358#include <sys/types.h>
10359#include <sys/epoll.h>
10360#include <sys/syscall.h>
10361#include <unistd.h>
10362
10363int
10364main(int argc, char **argv)
10365{
10366 int epfd;
10367
10368 epfd = epoll_create(256);
56efe974 10369 return (epfd == -1 ? 1 : 0);
212380e3 10370}
10371_ACEOF
10372rm -f conftest$ac_exeext
631ef239 10373if { (ac_try="$ac_link"
10374case "(($ac_try" in
10375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10376 *) ac_try_echo=$ac_try;;
10377esac
10378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10379 (eval "$ac_link") 2>&5
212380e3 10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 10383 { (case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386esac
10387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_try") 2>&5
212380e3 10389 ac_status=$?
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
631ef239 10392 { echo "$as_me:$LINENO: result: yes" >&5
10393echo "${ECHO_T}yes" >&6; }
212380e3 10394
10395cat >>confdefs.h <<\_ACEOF
10396#define HAVE_EPOLL 1
10397_ACEOF
10398
10399 SELECT_TYPE="epoll"
10400else
10401 echo "$as_me: program exited with status $ac_status" >&5
10402echo "$as_me: failed program was:" >&5
10403sed 's/^/| /' conftest.$ac_ext >&5
10404
10405( exit $ac_status )
631ef239 10406{ echo "$as_me:$LINENO: result: no" >&5
10407echo "${ECHO_T}no" >&6; }
212380e3 10408fi
631ef239 10409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 10410fi
631ef239 10411
10412
212380e3 10413 fi
10414 fi
10415
10416haveepollsyscall=no
10417
10418if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10419 if test "x$haveepoll" = "xno" ; then
631ef239 10420 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10421echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
212380e3 10422 if test "$cross_compiling" = yes; then
631ef239 10423 { echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6; }
212380e3 10425else
10426 cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h. */
10432#include <stdint.h>
10433#include <sys/param.h>
10434#include <sys/types.h>
10435#include <sys/epoll.h>
10436#include <sys/syscall.h>
10437#include <unistd.h>
10438
10439int
10440epoll_create(int size)
10441{
10442 return (syscall(__NR_epoll_create, size));
10443}
10444
10445int
10446main(int argc, char **argv)
10447{
10448 int epfd;
10449
10450 epfd = epoll_create(256);
10451 exit (epfd == -1 ? 1 : 0);
10452}
10453_ACEOF
10454rm -f conftest$ac_exeext
631ef239 10455if { (ac_try="$ac_link"
10456case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459esac
10460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_link") 2>&5
212380e3 10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239 10465 { (case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468esac
10469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_try") 2>&5
212380e3 10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; }; then
631ef239 10474 { echo "$as_me:$LINENO: result: yes" >&5
10475echo "${ECHO_T}yes" >&6; }
212380e3 10476
10477cat >>confdefs.h <<\_ACEOF
10478#define HAVE_EPOLL 1
10479_ACEOF
10480
10481 SELECT_TYPE="epoll"
10482else
10483 echo "$as_me: program exited with status $ac_status" >&5
10484echo "$as_me: failed program was:" >&5
10485sed 's/^/| /' conftest.$ac_ext >&5
10486
10487( exit $ac_status )
631ef239 10488{ echo "$as_me:$LINENO: result: no" >&5
10489echo "${ECHO_T}no" >&6; }
212380e3 10490fi
631ef239 10491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 10492fi
631ef239 10493
10494
212380e3 10495 fi
10496fi
10497
10498fi
10499
10500fi
10501
10502if test -z "$SELECT_TYPE"; then
10503 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10504echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10505 { (exit 1); exit 1; }; }
10506fi
10507
10508echo "Using $SELECT_TYPE for select loop."
10509
10510
10511cat >>confdefs.h <<_ACEOF
10512#define SELECT_TYPE "$SELECT_TYPE"
10513_ACEOF
10514
10515
10516
10517
10518
631ef239 10519# Check whether --enable-assert was given.
212380e3 10520if test "${enable_assert+set}" = set; then
631ef239 10521 enableval=$enable_assert; assert=$enableval
212380e3 10522else
10523 assert=no
631ef239 10524fi
10525
212380e3 10526
10527if test "$assert" = no; then
10528
10529cat >>confdefs.h <<\_ACEOF
10530#define NDEBUG 1
10531_ACEOF
10532
10533elif test "$assert" = soft; then
10534
10535cat >>confdefs.h <<\_ACEOF
10536#define SOFT_ASSERT 1
10537_ACEOF
10538
10539
10540cat >>confdefs.h <<\_ACEOF
10541#define NDEBUG 1
10542_ACEOF
10543
10544elif test "$assert" = yes; then
10545 assert = "hard";
10546fi
10547
631ef239 10548{ echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10549echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10550# Check whether --enable-iodebug was given.
212380e3 10551if test "${enable_iodebug+set}" = set; then
631ef239 10552 enableval=$enable_iodebug; iodebug=$enableval
212380e3 10553else
10554 iodebug=no
631ef239 10555fi
10556
212380e3 10557
10558if test "$iodebug" = yes; then
10559
10560cat >>confdefs.h <<\_ACEOF
10561#define USE_IODEBUG_HOOKS 1
10562_ACEOF
10563
631ef239 10564 { echo "$as_me:$LINENO: result: yes" >&5
10565echo "${ECHO_T}yes" >&6; }
212380e3 10566else
631ef239 10567 { echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6; }
212380e3 10569fi
10570
10571
631ef239 10572{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10573echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10574# Check whether --enable-profile was given.
212380e3 10575if test "${enable_profile+set}" = set; then
631ef239 10576 enableval=$enable_profile; profile=$enableval
212380e3 10577else
10578 profile=no
631ef239 10579fi
10580
212380e3 10581
10582if test "$profile" = yes; then
10583 if test "$ac_cv_c_compiler_gnu" = yes; then
10584 IRC_CFLAGS="$IRC_CFLAGS -pg"
631ef239 10585 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10586echo "${ECHO_T}yes, adding -pg" >&6; }
212380e3 10587
10588cat >>confdefs.h <<\_ACEOF
10589#define CHARYBDIS_PROFILE 1
10590_ACEOF
10591
10592 else
631ef239 10593 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10594echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
212380e3 10595 fi
10596else
631ef239 10597 { echo "$as_me:$LINENO: result: no" >&5
10598echo "${ECHO_T}no" >&6; }
212380e3 10599fi
10600
631ef239 10601# Check whether --enable-balloc was given.
212380e3 10602if test "${enable_balloc+set}" = set; then
631ef239 10603 enableval=$enable_balloc; balloc=$enableval
212380e3 10604else
10605 balloc=yes
631ef239 10606fi
10607
212380e3 10608
10609if test "$balloc" = no; then
10610
10611cat >>confdefs.h <<\_ACEOF
10612#define NOBALLOC 1
10613_ACEOF
10614
10615fi
10616
631ef239 10617# Check whether --enable-small-net was given.
212380e3 10618if test "${enable_small_net+set}" = set; then
631ef239 10619 enableval=$enable_small_net; small_net=$enableval
212380e3 10620else
10621 small_net=no
631ef239 10622fi
10623
212380e3 10624
10625if test "$small_net" = yes; then
10626
10627cat >>confdefs.h <<\_ACEOF
10628#define NICKNAMEHISTORYLENGTH 1500
10629_ACEOF
10630
10631
10632cat >>confdefs.h <<\_ACEOF
10633#define CHANNEL_HEAP_SIZE 256
10634_ACEOF
10635
10636
10637cat >>confdefs.h <<\_ACEOF
10638#define BAN_HEAP_SIZE 128
10639_ACEOF
10640
10641
10642cat >>confdefs.h <<\_ACEOF
10643#define CLIENT_HEAP_SIZE 256
10644_ACEOF
10645
10646
10647cat >>confdefs.h <<\_ACEOF
10648#define LCLIENT_HEAP_SIZE 128
10649_ACEOF
10650
10651
10652cat >>confdefs.h <<\_ACEOF
10653#define PCLIENT_HEAP_SIZE 32
10654_ACEOF
10655
10656
10657cat >>confdefs.h <<\_ACEOF
10658#define USER_HEAP_SIZE 128
10659_ACEOF
10660
10661
10662cat >>confdefs.h <<\_ACEOF
10663#define DNODE_HEAP_SIZE 256
10664_ACEOF
10665
10666
10667cat >>confdefs.h <<\_ACEOF
10668#define TOPIC_HEAP_SIZE 256
10669_ACEOF
10670
10671
10672cat >>confdefs.h <<\_ACEOF
10673#define LINEBUF_HEAP_SIZE 128
10674_ACEOF
10675
10676
10677cat >>confdefs.h <<\_ACEOF
10678#define MEMBER_HEAP_SIZE 256
10679_ACEOF
10680
10681
10682cat >>confdefs.h <<\_ACEOF
10683#define ND_HEAP_SIZE 128
10684_ACEOF
10685
10686
10687cat >>confdefs.h <<\_ACEOF
10688#define CONFITEM_HEAP_SIZE 128
10689_ACEOF
10690
10691
10692cat >>confdefs.h <<\_ACEOF
10693#define MONITOR_HEAP_SIZE 128
10694_ACEOF
10695
f99c7b64 10696
304ded95
WP
10697cat >>confdefs.h <<\_ACEOF
10698#define FD_HEAP_SIZE 128
10699_ACEOF
10700
10701
f99c7b64
WP
10702cat >>confdefs.h <<\_ACEOF
10703#define AWAY_HEAP_SIZE 128
10704_ACEOF
10705
212380e3 10706else
10707
10708cat >>confdefs.h <<\_ACEOF
10709#define NICKNAMEHISTORYLENGTH 15000
10710_ACEOF
10711
10712
10713cat >>confdefs.h <<\_ACEOF
10714#define CHANNEL_HEAP_SIZE 8192
10715_ACEOF
10716
10717
10718cat >>confdefs.h <<\_ACEOF
10719#define BAN_HEAP_SIZE 4096
10720_ACEOF
10721
10722
10723cat >>confdefs.h <<\_ACEOF
10724#define CLIENT_HEAP_SIZE 8192
10725_ACEOF
10726
10727
10728cat >>confdefs.h <<\_ACEOF
10729#define LCLIENT_HEAP_SIZE 1024
10730_ACEOF
10731
10732
10733cat >>confdefs.h <<\_ACEOF
10734#define PCLIENT_HEAP_SIZE 256
10735_ACEOF
10736
10737
10738cat >>confdefs.h <<\_ACEOF
10739#define USER_HEAP_SIZE 8192
10740_ACEOF
10741
10742
10743cat >>confdefs.h <<\_ACEOF
10744#define DNODE_HEAP_SIZE 8192
10745_ACEOF
10746
10747
10748cat >>confdefs.h <<\_ACEOF
10749#define TOPIC_HEAP_SIZE 4096
10750_ACEOF
10751
10752
10753cat >>confdefs.h <<\_ACEOF
10754#define LINEBUF_HEAP_SIZE 2048
10755_ACEOF
10756
10757
10758cat >>confdefs.h <<\_ACEOF
10759#define MEMBER_HEAP_SIZE 32768
10760_ACEOF
10761
10762
10763cat >>confdefs.h <<\_ACEOF
10764#define ND_HEAP_SIZE 512
10765_ACEOF
10766
10767
10768cat >>confdefs.h <<\_ACEOF
10769#define CONFITEM_HEAP_SIZE 256
10770_ACEOF
10771
10772
10773cat >>confdefs.h <<\_ACEOF
10774#define MONITOR_HEAP_SIZE 1024
10775_ACEOF
10776
f99c7b64 10777
304ded95
WP
10778cat >>confdefs.h <<\_ACEOF
10779#define FD_HEAP_SIZE 1024
10780_ACEOF
10781
10782
f99c7b64
WP
10783cat >>confdefs.h <<\_ACEOF
10784#define AWAY_HEAP_SIZE 512
10785_ACEOF
10786
212380e3 10787fi
10788
10789
631ef239 10790# Check whether --with-nicklen was given.
212380e3 10791if test "${with_nicklen+set}" = set; then
631ef239 10792 withval=$with_nicklen;
212380e3 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
631ef239 10803fi
212380e3 10804
10805
212380e3 10806
631ef239 10807# Check whether --with-topiclen was given.
10808if test "${with_topiclen+set}" = set; then
10809 withval=$with_topiclen;
212380e3 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
212380e3 10820fi
10821
212380e3 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
56efe974 10834shared_modules="yes"
212380e3 10835if test "$shared_modules" = yes; then
10836
10837 if test "$CYGWIN" = yes; then
10838 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
10839echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
10840 shared_modules="no"
10841 fi
10842
10843 if test "$CC" = tcc -a "$TenDRA" = "no"; then
10844 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
10845echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
10846 shared_modules="no"
10847 fi
10848fi
10849
10850if test "$shared_modules" = yes; then
10851 DYNLINK_C=dynlink.c
10852
10853for ac_header in dlfcn.h
10854do
10855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 10856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861fi
631ef239 10862ac_res=`eval echo '${'$as_ac_Header'}'`
10863 { echo "$as_me:$LINENO: result: $ac_res" >&5
10864echo "${ECHO_T}$ac_res" >&6; }
212380e3 10865else
10866 # Is the header compilable?
631ef239 10867{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10868echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3 10869cat >conftest.$ac_ext <<_ACEOF
10870/* confdefs.h. */
10871_ACEOF
10872cat confdefs.h >>conftest.$ac_ext
10873cat >>conftest.$ac_ext <<_ACEOF
10874/* end confdefs.h. */
10875$ac_includes_default
10876#include <$ac_header>
10877_ACEOF
10878rm -f conftest.$ac_objext
631ef239 10879if { (ac_try="$ac_compile"
10880case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10883esac
10884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_compile") 2>conftest.er1
212380e3 10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10891 (exit $ac_status); } && {
10892 test -z "$ac_c_werror_flag" ||
10893 test ! -s conftest.err
10894 } && test -s conftest.$ac_objext; then
212380e3 10895 ac_header_compiler=yes
10896else
10897 echo "$as_me: failed program was:" >&5
10898sed 's/^/| /' conftest.$ac_ext >&5
10899
631ef239 10900 ac_header_compiler=no
212380e3 10901fi
631ef239 10902
10903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10904{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10905echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 10906
10907# Is the header present?
631ef239 10908{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3 10910cat >conftest.$ac_ext <<_ACEOF
10911/* confdefs.h. */
10912_ACEOF
10913cat confdefs.h >>conftest.$ac_ext
10914cat >>conftest.$ac_ext <<_ACEOF
10915/* end confdefs.h. */
10916#include <$ac_header>
10917_ACEOF
631ef239 10918if { (ac_try="$ac_cpp conftest.$ac_ext"
10919case "(($ac_try" in
10920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921 *) ac_try_echo=$ac_try;;
10922esac
10923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 10925 ac_status=$?
10926 grep -v '^ *+' conftest.er1 >conftest.err
10927 rm -f conftest.er1
10928 cat conftest.err >&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 10930 (exit $ac_status); } >/dev/null && {
10931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10932 test ! -s conftest.err
10933 }; then
212380e3 10934 ac_header_preproc=yes
10935else
10936 echo "$as_me: failed program was:" >&5
10937sed 's/^/| /' conftest.$ac_ext >&5
10938
10939 ac_header_preproc=no
10940fi
631ef239 10941
212380e3 10942rm -f conftest.err conftest.$ac_ext
631ef239 10943{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10944echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 10945
10946# So? What about this header?
10947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10948 yes:no: )
10949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10953 ac_header_preproc=yes
10954 ;;
10955 no:yes:* )
10956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 10968
212380e3 10969 ;;
10970esac
631ef239 10971{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10973if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976 eval "$as_ac_Header=\$ac_header_preproc"
10977fi
631ef239 10978ac_res=`eval echo '${'$as_ac_Header'}'`
10979 { echo "$as_me:$LINENO: result: $ac_res" >&5
10980echo "${ECHO_T}$ac_res" >&6; }
212380e3 10981
10982fi
10983if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986_ACEOF
10987
10988fi
10989
10990done
10991
631ef239 10992 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
10993echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
212380e3 10994if test "${ac_cv_search_shl_load+set}" = set; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10996else
10997 ac_func_search_save_LIBS=$LIBS
212380e3 10998cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
11004
631ef239 11005/* Override any GCC internal prototype to avoid an error.
11006 Use char because int might match the return type of a GCC
11007 builtin and then its argument prototype would still apply. */
212380e3 11008#ifdef __cplusplus
11009extern "C"
11010#endif
212380e3 11011char shl_load ();
11012int
11013main ()
11014{
631ef239 11015return shl_load ();
212380e3 11016 ;
11017 return 0;
11018}
11019_ACEOF
631ef239 11020for ac_lib in '' dld; do
11021 if test -z "$ac_lib"; then
11022 ac_res="none required"
11023 else
11024 ac_res=-l$ac_lib
11025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11026 fi
11027 rm -f conftest.$ac_objext conftest$ac_exeext
11028if { (ac_try="$ac_link"
11029case "(($ac_try" in
11030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031 *) ac_try_echo=$ac_try;;
11032esac
11033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034 (eval "$ac_link") 2>conftest.er1
212380e3 11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11040 (exit $ac_status); } && {
11041 test -z "$ac_c_werror_flag" ||
11042 test ! -s conftest.err
11043 } && test -s conftest$ac_exeext &&
11044 $as_test_x conftest$ac_exeext; then
11045 ac_cv_search_shl_load=$ac_res
212380e3 11046else
11047 echo "$as_me: failed program was:" >&5
11048sed 's/^/| /' conftest.$ac_ext >&5
11049
212380e3 11050
631ef239 11051fi
212380e3 11052
631ef239 11053rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11054 conftest$ac_exeext
11055 if test "${ac_cv_search_shl_load+set}" = set; then
11056 break
212380e3 11057fi
631ef239 11058done
11059if test "${ac_cv_search_shl_load+set}" = set; then
11060 :
11061else
11062 ac_cv_search_shl_load=no
212380e3 11063fi
631ef239 11064rm conftest.$ac_ext
212380e3 11065LIBS=$ac_func_search_save_LIBS
11066fi
631ef239 11067{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11068echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11069ac_res=$ac_cv_search_shl_load
11070if test "$ac_res" != no; then
11071 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 11072
11073
11074cat >>confdefs.h <<\_ACEOF
11075#define HAVE_SHL_LOAD 1
11076_ACEOF
11077
11078 SUFFIX=".sl"
11079 MOD_TARGET=hpux_shared
11080 SEDOBJ="s/\.o/.sl/g"
11081
11082else
11083
631ef239 11084 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11085echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
212380e3 11086if test "${ac_cv_search_dlopen+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088else
11089 ac_func_search_save_LIBS=$LIBS
212380e3 11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
11095/* end confdefs.h. */
11096
631ef239 11097/* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
212380e3 11100#ifdef __cplusplus
11101extern "C"
11102#endif
212380e3 11103char dlopen ();
11104int
11105main ()
11106{
631ef239 11107return dlopen ();
212380e3 11108 ;
11109 return 0;
11110}
11111_ACEOF
631ef239 11112for ac_lib in '' dl c_r; do
11113 if test -z "$ac_lib"; then
11114 ac_res="none required"
11115 else
11116 ac_res=-l$ac_lib
11117 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11118 fi
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120if { (ac_try="$ac_link"
11121case "(($ac_try" in
11122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11123 *) ac_try_echo=$ac_try;;
11124esac
11125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
212380e3 11127 ac_status=$?
11128 grep -v '^ *+' conftest.er1 >conftest.err
11129 rm -f conftest.er1
11130 cat conftest.err >&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest$ac_exeext &&
11136 $as_test_x conftest$ac_exeext; then
11137 ac_cv_search_dlopen=$ac_res
212380e3 11138else
11139 echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
212380e3 11142
631ef239 11143fi
212380e3 11144
631ef239 11145rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11146 conftest$ac_exeext
11147 if test "${ac_cv_search_dlopen+set}" = set; then
11148 break
212380e3 11149fi
631ef239 11150done
11151if test "${ac_cv_search_dlopen+set}" = set; then
11152 :
11153else
11154 ac_cv_search_dlopen=no
212380e3 11155fi
631ef239 11156rm conftest.$ac_ext
212380e3 11157LIBS=$ac_func_search_save_LIBS
11158fi
631ef239 11159{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11160echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11161ac_res=$ac_cv_search_dlopen
11162if test "$ac_res" != no; then
11163 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3 11164
11165
11166cat >>confdefs.h <<\_ACEOF
11167#define HAVE_DLOPEN 1
11168_ACEOF
11169
11170 SUFFIX=".so"
11171 MOD_TARGET=shared_modules
11172 SEDOBJ="s/\.o/.so/g"
11173 if test "$AppleGCC" = yes; then
11174
11175for ac_header in mach-o/dyld.h
11176do
11177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239 11178if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11181if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11183fi
631ef239 11184ac_res=`eval echo '${'$as_ac_Header'}'`
11185 { echo "$as_me:$LINENO: result: $ac_res" >&5
11186echo "${ECHO_T}$ac_res" >&6; }
212380e3 11187else
11188 # Is the header compilable?
631ef239 11189{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3 11191cat >conftest.$ac_ext <<_ACEOF
11192/* confdefs.h. */
11193_ACEOF
11194cat confdefs.h >>conftest.$ac_ext
11195cat >>conftest.$ac_ext <<_ACEOF
11196/* end confdefs.h. */
11197$ac_includes_default
11198#include <$ac_header>
11199_ACEOF
11200rm -f conftest.$ac_objext
631ef239 11201if { (ac_try="$ac_compile"
11202case "(($ac_try" in
11203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11205esac
11206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_compile") 2>conftest.er1
212380e3 11208 ac_status=$?
11209 grep -v '^ *+' conftest.er1 >conftest.err
11210 rm -f conftest.er1
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest.$ac_objext; then
212380e3 11217 ac_header_compiler=yes
11218else
11219 echo "$as_me: failed program was:" >&5
11220sed 's/^/| /' conftest.$ac_ext >&5
11221
631ef239 11222 ac_header_compiler=no
212380e3 11223fi
631ef239 11224
11225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11226{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11227echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 11228
11229# Is the header present?
631ef239 11230{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11231echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3 11232cat >conftest.$ac_ext <<_ACEOF
11233/* confdefs.h. */
11234_ACEOF
11235cat confdefs.h >>conftest.$ac_ext
11236cat >>conftest.$ac_ext <<_ACEOF
11237/* end confdefs.h. */
11238#include <$ac_header>
11239_ACEOF
631ef239 11240if { (ac_try="$ac_cpp conftest.$ac_ext"
11241case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244esac
11245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 11247 ac_status=$?
11248 grep -v '^ *+' conftest.er1 >conftest.err
11249 rm -f conftest.er1
11250 cat conftest.err >&5
11251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11252 (exit $ac_status); } >/dev/null && {
11253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11254 test ! -s conftest.err
11255 }; then
212380e3 11256 ac_header_preproc=yes
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
11261 ac_header_preproc=no
11262fi
631ef239 11263
212380e3 11264rm -f conftest.err conftest.$ac_ext
631ef239 11265{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11266echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 11267
11268# So? What about this header?
11269case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11270 yes:no: )
11271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11272echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11274echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11275 ac_header_preproc=yes
11276 ;;
11277 no:yes:* )
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11279echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11281echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11283echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11285echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11287echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11289echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 11290
212380e3 11291 ;;
11292esac
631ef239 11293{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11294echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11295if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297else
11298 eval "$as_ac_Header=\$ac_header_preproc"
11299fi
631ef239 11300ac_res=`eval echo '${'$as_ac_Header'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302echo "${ECHO_T}$ac_res" >&6; }
212380e3 11303
11304fi
11305if test `eval echo '${'$as_ac_Header'}'` = yes; then
11306 cat >>confdefs.h <<_ACEOF
11307#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11308_ACEOF
11309
11310fi
11311
11312done
11313
11314 fi
631ef239 11315 { echo "$as_me:$LINENO: checking for dlsym" >&5
11316echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
212380e3 11317if test "${ac_cv_func_dlsym+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319else
11320 cat >conftest.$ac_ext <<_ACEOF
11321/* confdefs.h. */
11322_ACEOF
11323cat confdefs.h >>conftest.$ac_ext
11324cat >>conftest.$ac_ext <<_ACEOF
11325/* end confdefs.h. */
11326/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11328#define dlsym innocuous_dlsym
11329
11330/* System header to define __stub macros and hopefully few prototypes,
11331 which can conflict with char dlsym (); below.
11332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11333 <limits.h> exists even on freestanding compilers. */
11334
11335#ifdef __STDC__
11336# include <limits.h>
11337#else
11338# include <assert.h>
11339#endif
11340
11341#undef dlsym
11342
631ef239 11343/* Override any GCC internal prototype to avoid an error.
11344 Use char because int might match the return type of a GCC
11345 builtin and then its argument prototype would still apply. */
212380e3 11346#ifdef __cplusplus
11347extern "C"
212380e3 11348#endif
212380e3 11349char dlsym ();
11350/* The GNU C library defines this for functions which it implements
11351 to always fail with ENOSYS. Some functions are actually named
11352 something starting with __ and the normal name is an alias. */
631ef239 11353#if defined __stub_dlsym || defined __stub___dlsym
212380e3 11354choke me
212380e3 11355#endif
11356
11357int
11358main ()
11359{
631ef239 11360return dlsym ();
212380e3 11361 ;
11362 return 0;
11363}
11364_ACEOF
11365rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 11366if { (ac_try="$ac_link"
11367case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370esac
11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_link") 2>conftest.er1
212380e3 11373 ac_status=$?
11374 grep -v '^ *+' conftest.er1 >conftest.err
11375 rm -f conftest.er1
11376 cat conftest.err >&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11378 (exit $ac_status); } && {
11379 test -z "$ac_c_werror_flag" ||
11380 test ! -s conftest.err
11381 } && test -s conftest$ac_exeext &&
11382 $as_test_x conftest$ac_exeext; then
212380e3 11383 ac_cv_func_dlsym=yes
11384else
11385 echo "$as_me: failed program was:" >&5
11386sed 's/^/| /' conftest.$ac_ext >&5
11387
631ef239 11388 ac_cv_func_dlsym=no
212380e3 11389fi
631ef239 11390
11391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 11392 conftest$ac_exeext conftest.$ac_ext
11393fi
631ef239 11394{ echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11395echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
212380e3 11396if test $ac_cv_func_dlsym = yes; then
11397 :
11398else
11399
11400 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11401echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11402 shared_modules=no
11403
11404fi
11405
11406
11407for ac_func in dlfunc
11408do
11409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239 11410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3 11413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415 cat >conftest.$ac_ext <<_ACEOF
11416/* confdefs.h. */
11417_ACEOF
11418cat confdefs.h >>conftest.$ac_ext
11419cat >>conftest.$ac_ext <<_ACEOF
11420/* end confdefs.h. */
11421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11423#define $ac_func innocuous_$ac_func
11424
11425/* System header to define __stub macros and hopefully few prototypes,
11426 which can conflict with char $ac_func (); below.
11427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11428 <limits.h> exists even on freestanding compilers. */
11429
11430#ifdef __STDC__
11431# include <limits.h>
11432#else
11433# include <assert.h>
11434#endif
11435
11436#undef $ac_func
11437
631ef239 11438/* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
212380e3 11441#ifdef __cplusplus
11442extern "C"
212380e3 11443#endif
212380e3 11444char $ac_func ();
11445/* The GNU C library defines this for functions which it implements
11446 to always fail with ENOSYS. Some functions are actually named
11447 something starting with __ and the normal name is an alias. */
631ef239 11448#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 11449choke me
212380e3 11450#endif
11451
11452int
11453main ()
11454{
631ef239 11455return $ac_func ();
212380e3 11456 ;
11457 return 0;
11458}
11459_ACEOF
11460rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 11461if { (ac_try="$ac_link"
11462case "(($ac_try" in
11463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11464 *) ac_try_echo=$ac_try;;
11465esac
11466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_link") 2>conftest.er1
212380e3 11468 ac_status=$?
11469 grep -v '^ *+' conftest.er1 >conftest.err
11470 rm -f conftest.er1
11471 cat conftest.err >&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest$ac_exeext &&
11477 $as_test_x conftest$ac_exeext; then
212380e3 11478 eval "$as_ac_var=yes"
11479else
11480 echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
631ef239 11483 eval "$as_ac_var=no"
212380e3 11484fi
631ef239 11485
11486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 11487 conftest$ac_exeext conftest.$ac_ext
11488fi
631ef239 11489ac_res=`eval echo '${'$as_ac_var'}'`
11490 { echo "$as_me:$LINENO: result: $ac_res" >&5
11491echo "${ECHO_T}$ac_res" >&6; }
212380e3 11492if test `eval echo '${'$as_ac_var'}'` = yes; then
11493 cat >>confdefs.h <<_ACEOF
11494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11495_ACEOF
11496
11497fi
11498done
11499
11500
11501else
11502
11503 shared_modules=no
11504
11505fi
11506
11507
11508fi
11509
11510fi
11511
11512
11513cat >>confdefs.h <<_ACEOF
11514#define SHARED_SUFFIX "$SUFFIX"
11515_ACEOF
11516
11517
11518if test "$shared_modules" = yes; then
11519 # The GNU linker requires the -export-dynamic option to make
11520 # all symbols visible in the dynamic symbol table.
11521 hold_ldflags=$LDFLAGS
631ef239 11522 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11523echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
212380e3 11524 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11525 cat >conftest.$ac_ext <<_ACEOF
11526/* confdefs.h. */
11527_ACEOF
11528cat confdefs.h >>conftest.$ac_ext
11529cat >>conftest.$ac_ext <<_ACEOF
11530/* end confdefs.h. */
11531
11532int
11533main ()
11534{
11535int i;
11536 ;
11537 return 0;
11538}
11539_ACEOF
11540rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 11541if { (ac_try="$ac_link"
11542case "(($ac_try" in
11543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11544 *) ac_try_echo=$ac_try;;
11545esac
11546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_link") 2>conftest.er1
212380e3 11548 ac_status=$?
11549 grep -v '^ *+' conftest.er1 >conftest.err
11550 rm -f conftest.er1
11551 cat conftest.err >&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11553 (exit $ac_status); } && {
11554 test -z "$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11556 } && test -s conftest$ac_exeext &&
11557 $as_test_x conftest$ac_exeext; then
212380e3 11558 found=yes
11559else
11560 echo "$as_me: failed program was:" >&5
11561sed 's/^/| /' conftest.$ac_ext >&5
11562
631ef239 11563 found=no
212380e3 11564fi
631ef239 11565
11566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 11567 conftest$ac_exeext conftest.$ac_ext
11568 LDFLAGS=$hold_ldflags
11569
11570 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11571 found="no, IRIX ld uses -B,dynamic"
11572 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11573 fi
11574
11575 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11576 found="no, AIX ld uses -G -brtl"
11577 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11578 fi
11579
631ef239 11580 { echo "$as_me:$LINENO: result: $found" >&5
11581echo "${ECHO_T}$found" >&6; }
212380e3 11582
11583 if test "$found" = yes; then
11584 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11585 fi
11586
631ef239 11587 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11588echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
212380e3 11589 if test "$SGS" = "yes"; then
631ef239 11590 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11591echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3 11592 PICFLAGS="-KPIC -DPIC -G"
11593 fi
11594
11595 if test "$AppleGCC" = "yes"; then
631ef239 11596 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11597echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3 11598 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11599 fi
11600 if test "$HPUX" = "yes" -a "$CC" != gcc; then
631ef239 11601 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11602echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
212380e3 11603 PICFLAGS="+z -r -q -n -c"
631ef239 11604 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11605echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
212380e3 11606
11607 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
631ef239 11608 { echo "$as_me:$LINENO: result: no" >&5
11609echo "${ECHO_T}no" >&6; }
212380e3 11610 else
631ef239 11611 { echo "$as_me:$LINENO: result: yes" >&5
11612echo "${ECHO_T}yes" >&6; }
212380e3 11613 PICFLAGS="$PICFLAGS +ESfic"
11614 fi
11615
11616 LDFLAGS="${LDFLAGS} -Wl,-E"
11617 fi
11618 if test "$Tru" = yes -a "$CC" != gcc; then
631ef239 11619 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11620echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3 11621 PICFLAGS="-shared -expect_unresolved '*' "
11622 LDFLAGS="-call_shared"
11623 fi
11624 if test -z "$PICFLAGS"; then
11625 if test "$ac_cv_c_compiler_gnu" = "yes"; then
631ef239 11626 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11627echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
212380e3 11628 PICFLAGS="-fPIC -DPIC -shared"
11629 else
631ef239 11630 { echo "$as_me:$LINENO: result: no" >&5
11631echo "${ECHO_T}no" >&6; }
212380e3 11632 shared_modules=no
11633 fi
11634 fi
11635fi
11636
11637# This must be down here, or it will mess up checks like the ones
11638# for -Wl,-export-dynamic
11639# -- jilles
a8001fa5 11640CWARNS=""
631ef239 11641# Check whether --enable-warnings was given.
212380e3 11642if test "${enable_warnings+set}" = set; then
631ef239 11643 enableval=$enable_warnings;
212380e3 11644IRC_CFLAGS="$IRC_CFLAGS -O0"
11645CFLAGS="$IRC_CFLAGS"
11646
11647
631ef239 11648 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11649echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
212380e3 11650 if test "${GCC-no}" = yes
11651 then
11652 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655
11656 oldcflags="${CFLAGS-}"
11657 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11658 cat >conftest.$ac_ext <<_ACEOF
11659/* confdefs.h. */
11660_ACEOF
11661cat confdefs.h >>conftest.$ac_ext
11662cat >>conftest.$ac_ext <<_ACEOF
11663/* end confdefs.h. */
11664
11665#include <string.h>
11666#include <stdio.h>
11667int main(void);
11668
11669int
11670main ()
11671{
11672
b1fc1658 11673 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 11674
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679rm -f conftest.$ac_objext
631ef239 11680if { (ac_try="$ac_compile"
11681case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684esac
11685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_compile") 2>conftest.er1
212380e3 11687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest.$ac_objext; then
212380e3 11696 charybdis_cv_c_gcc_w_all=yes
11697else
11698 echo "$as_me: failed program was:" >&5
11699sed 's/^/| /' conftest.$ac_ext >&5
11700
631ef239 11701 charybdis_cv_c_gcc_w_all=no
212380e3 11702fi
631ef239 11703
11704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 11705 CFLAGS="${oldcflags}"
11706fi
11707
11708 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
11709 CWARNS="${CWARNS}-Wall "
631ef239 11710 { echo "$as_me:$LINENO: result: ok" >&5
11711echo "${ECHO_T}ok" >&6; }
212380e3 11712 else
11713 charybdis_cv_c_gcc_w_all=''
631ef239 11714 { echo "$as_me:$LINENO: result: no" >&5
11715echo "${ECHO_T}no" >&6; }
212380e3 11716 fi
11717 else
631ef239 11718 { echo "$as_me:$LINENO: result: no" >&5
11719echo "${ECHO_T}no" >&6; }
212380e3 11720 fi
11721
11722
631ef239 11723 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
11724echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
212380e3 11725 if test "${GCC-no}" = yes
11726 then
11727 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729else
11730
11731 oldcflags="${CFLAGS-}"
11732 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
11733 cat >conftest.$ac_ext <<_ACEOF
11734/* confdefs.h. */
11735_ACEOF
11736cat confdefs.h >>conftest.$ac_ext
11737cat >>conftest.$ac_ext <<_ACEOF
11738/* end confdefs.h. */
11739
11740#include <string.h>
11741#include <stdio.h>
11742int main(void);
11743
11744int
11745main ()
11746{
11747
b1fc1658 11748 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 11749
11750 ;
11751 return 0;
11752}
11753_ACEOF
11754rm -f conftest.$ac_objext
631ef239 11755if { (ac_try="$ac_compile"
11756case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759esac
11760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_compile") 2>conftest.er1
212380e3 11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest.$ac_objext; then
212380e3 11771 charybdis_cv_c_gcc_w_pointer_arith=yes
11772else
11773 echo "$as_me: failed program was:" >&5
11774sed 's/^/| /' conftest.$ac_ext >&5
11775
631ef239 11776 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 11777fi
631ef239 11778
11779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 11780 CFLAGS="${oldcflags}"
11781fi
11782
11783 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
11784 CWARNS="${CWARNS}-Wpointer-arith "
631ef239 11785 { echo "$as_me:$LINENO: result: ok" >&5
11786echo "${ECHO_T}ok" >&6; }
212380e3 11787 else
11788 charybdis_cv_c_gcc_w_pointer_arith=''
631ef239 11789 { echo "$as_me:$LINENO: result: no" >&5
11790echo "${ECHO_T}no" >&6; }
212380e3 11791 fi
11792 else
631ef239 11793 { echo "$as_me:$LINENO: result: no" >&5
11794echo "${ECHO_T}no" >&6; }
212380e3 11795 fi
11796
11797
631ef239 11798 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
11799echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
212380e3 11800 if test "${GCC-no}" = yes
11801 then
11802 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804else
11805
11806 oldcflags="${CFLAGS-}"
11807 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
11808 cat >conftest.$ac_ext <<_ACEOF
11809/* confdefs.h. */
11810_ACEOF
11811cat confdefs.h >>conftest.$ac_ext
11812cat >>conftest.$ac_ext <<_ACEOF
11813/* end confdefs.h. */
11814
11815#include <string.h>
11816#include <stdio.h>
11817int main(void);
11818
11819int
11820main ()
11821{
11822
b1fc1658 11823 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 11824
11825 ;
11826 return 0;
11827}
11828_ACEOF
11829rm -f conftest.$ac_objext
631ef239 11830if { (ac_try="$ac_compile"
11831case "(($ac_try" in
11832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11834esac
11835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_compile") 2>conftest.er1
212380e3 11837 ac_status=$?
11838 grep -v '^ *+' conftest.er1 >conftest.err
11839 rm -f conftest.er1
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11842 (exit $ac_status); } && {
11843 test -z "$ac_c_werror_flag" ||
11844 test ! -s conftest.err
11845 } && test -s conftest.$ac_objext; then
212380e3 11846 charybdis_cv_c_gcc_w_implicit=yes
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
631ef239 11851 charybdis_cv_c_gcc_w_implicit=no
212380e3 11852fi
631ef239 11853
11854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 11855 CFLAGS="${oldcflags}"
11856fi
11857
11858 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
11859 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
631ef239 11860 { echo "$as_me:$LINENO: result: ok" >&5
11861echo "${ECHO_T}ok" >&6; }
212380e3 11862 else
11863 charybdis_cv_c_gcc_w_implicit=''
631ef239 11864 { echo "$as_me:$LINENO: result: no" >&5
11865echo "${ECHO_T}no" >&6; }
212380e3 11866 fi
11867 else
631ef239 11868 { echo "$as_me:$LINENO: result: no" >&5
11869echo "${ECHO_T}no" >&6; }
212380e3 11870 fi
11871
11872
631ef239 11873 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
11874echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
212380e3 11875 if test "${GCC-no}" = yes
11876 then
11877 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11879else
11880
11881 oldcflags="${CFLAGS-}"
11882 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
11883 cat >conftest.$ac_ext <<_ACEOF
11884/* confdefs.h. */
11885_ACEOF
11886cat confdefs.h >>conftest.$ac_ext
11887cat >>conftest.$ac_ext <<_ACEOF
11888/* end confdefs.h. */
11889
11890#include <string.h>
11891#include <stdio.h>
11892int main(void);
11893
11894int
11895main ()
11896{
11897
b1fc1658 11898 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 11899
11900 ;
11901 return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext
631ef239 11905if { (ac_try="$ac_compile"
11906case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_compile") 2>conftest.er1
212380e3 11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11917 (exit $ac_status); } && {
11918 test -z "$ac_c_werror_flag" ||
11919 test ! -s conftest.err
11920 } && test -s conftest.$ac_objext; then
212380e3 11921 charybdis_cv_c_gcc_w_cast_align=yes
11922else
11923 echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
631ef239 11926 charybdis_cv_c_gcc_w_cast_align=no
212380e3 11927fi
631ef239 11928
11929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 11930 CFLAGS="${oldcflags}"
11931fi
11932
11933 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
11934 CWARNS="${CWARNS}-Wcast-align "
631ef239 11935 { echo "$as_me:$LINENO: result: ok" >&5
11936echo "${ECHO_T}ok" >&6; }
212380e3 11937 else
11938 charybdis_cv_c_gcc_w_cast_align=''
631ef239 11939 { echo "$as_me:$LINENO: result: no" >&5
11940echo "${ECHO_T}no" >&6; }
212380e3 11941 fi
11942 else
631ef239 11943 { echo "$as_me:$LINENO: result: no" >&5
11944echo "${ECHO_T}no" >&6; }
212380e3 11945 fi
11946
11947
631ef239 11948 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
11949echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
212380e3 11950 if test "${GCC-no}" = yes
11951 then
11952 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11954else
11955
11956 oldcflags="${CFLAGS-}"
11957 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
11958 cat >conftest.$ac_ext <<_ACEOF
11959/* confdefs.h. */
11960_ACEOF
11961cat confdefs.h >>conftest.$ac_ext
11962cat >>conftest.$ac_ext <<_ACEOF
11963/* end confdefs.h. */
11964
11965#include <string.h>
11966#include <stdio.h>
11967int main(void);
11968
11969int
11970main ()
11971{
11972
b1fc1658 11973 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 11974
11975 ;
11976 return 0;
11977}
11978_ACEOF
11979rm -f conftest.$ac_objext
631ef239 11980if { (ac_try="$ac_compile"
11981case "(($ac_try" in
11982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11984esac
11985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_compile") 2>conftest.er1
212380e3 11987 ac_status=$?
11988 grep -v '^ *+' conftest.er1 >conftest.err
11989 rm -f conftest.er1
11990 cat conftest.err >&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 11992 (exit $ac_status); } && {
11993 test -z "$ac_c_werror_flag" ||
11994 test ! -s conftest.err
11995 } && test -s conftest.$ac_objext; then
212380e3 11996 charybdis_cv_c_gcc_w_cast_qual=yes
11997else
11998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
631ef239 12001 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 12002fi
631ef239 12003
12004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12005 CFLAGS="${oldcflags}"
12006fi
12007
12008 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12009 CWARNS="${CWARNS}-Wcast-qual "
631ef239 12010 { echo "$as_me:$LINENO: result: ok" >&5
12011echo "${ECHO_T}ok" >&6; }
212380e3 12012 else
12013 charybdis_cv_c_gcc_w_cast_qual=''
631ef239 12014 { echo "$as_me:$LINENO: result: no" >&5
12015echo "${ECHO_T}no" >&6; }
212380e3 12016 fi
12017 else
631ef239 12018 { echo "$as_me:$LINENO: result: no" >&5
12019echo "${ECHO_T}no" >&6; }
212380e3 12020 fi
12021
12022
a8001fa5
JT
12023 { echo "$as_me:$LINENO: checking GCC flag(s) -Wwrite-strings" >&5
12024echo $ECHO_N "checking GCC flag(s) -Wwrite-strings... $ECHO_C" >&6; }
12025 if test "${GCC-no}" = yes
12026 then
12027 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12029else
12030
12031 oldcflags="${CFLAGS-}"
12032 CFLAGS="${CFLAGS-} ${CWARNS} -Wwrite-strings -Werror"
12033 cat >conftest.$ac_ext <<_ACEOF
12034/* confdefs.h. */
12035_ACEOF
12036cat confdefs.h >>conftest.$ac_ext
12037cat >>conftest.$ac_ext <<_ACEOF
12038/* end confdefs.h. */
12039
12040#include <string.h>
12041#include <stdio.h>
12042int main(void);
12043
12044int
12045main ()
12046{
12047
12048 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
12049
12050 ;
12051 return 0;
12052}
12053_ACEOF
12054rm -f conftest.$ac_objext
12055if { (ac_try="$ac_compile"
12056case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059esac
12060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_compile") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest.$ac_objext; then
12071 charybdis_cv_c_gcc_w_float_equal=yes
12072else
12073 echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 charybdis_cv_c_gcc_w_float_equal=no
12077fi
12078
12079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080 CFLAGS="${oldcflags}"
12081fi
12082
12083 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
12084 CWARNS="${CWARNS}-Wwrite-strings "
12085 { echo "$as_me:$LINENO: result: ok" >&5
12086echo "${ECHO_T}ok" >&6; }
12087 else
12088 charybdis_cv_c_gcc_w_float_equal=''
12089 { echo "$as_me:$LINENO: result: no" >&5
12090echo "${ECHO_T}no" >&6; }
12091 fi
12092 else
12093 { echo "$as_me:$LINENO: result: no" >&5
12094echo "${ECHO_T}no" >&6; }
12095 fi
12096
12097
631ef239 12098 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12099echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
212380e3 12100 if test "${GCC-no}" = yes
12101 then
12102 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
12105
12106 oldcflags="${CFLAGS-}"
12107 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12108 cat >conftest.$ac_ext <<_ACEOF
12109/* confdefs.h. */
12110_ACEOF
12111cat confdefs.h >>conftest.$ac_ext
12112cat >>conftest.$ac_ext <<_ACEOF
12113/* end confdefs.h. */
12114
12115#include <string.h>
12116#include <stdio.h>
12117int main(void);
12118
12119int
12120main ()
12121{
12122
b1fc1658 12123 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12124
12125 ;
12126 return 0;
12127}
12128_ACEOF
12129rm -f conftest.$ac_objext
631ef239 12130if { (ac_try="$ac_compile"
12131case "(($ac_try" in
12132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12133 *) ac_try_echo=$ac_try;;
12134esac
12135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_compile") 2>conftest.er1
212380e3 12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest.$ac_objext; then
212380e3 12146 charybdis_cv_c_gcc_prototypes=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
631ef239 12151 charybdis_cv_c_gcc_prototypes=no
212380e3 12152fi
631ef239 12153
12154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12155 CFLAGS="${oldcflags}"
12156fi
12157
12158 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12159 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
631ef239 12160 { echo "$as_me:$LINENO: result: ok" >&5
12161echo "${ECHO_T}ok" >&6; }
212380e3 12162 else
12163 charybdis_cv_c_gcc_prototypes=''
631ef239 12164 { echo "$as_me:$LINENO: result: no" >&5
12165echo "${ECHO_T}no" >&6; }
212380e3 12166 fi
12167 else
631ef239 12168 { echo "$as_me:$LINENO: result: no" >&5
12169echo "${ECHO_T}no" >&6; }
212380e3 12170 fi
12171
12172
631ef239 12173 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12174echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
212380e3 12175 if test "${GCC-no}" = yes
12176 then
12177 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12179else
12180
12181 oldcflags="${CFLAGS-}"
12182 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12183 cat >conftest.$ac_ext <<_ACEOF
12184/* confdefs.h. */
12185_ACEOF
12186cat confdefs.h >>conftest.$ac_ext
12187cat >>conftest.$ac_ext <<_ACEOF
12188/* end confdefs.h. */
12189
12190#include <string.h>
12191#include <stdio.h>
12192int main(void);
12193
12194int
12195main ()
12196{
12197
b1fc1658 12198 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12199
12200 ;
12201 return 0;
12202}
12203_ACEOF
12204rm -f conftest.$ac_objext
631ef239 12205if { (ac_try="$ac_compile"
12206case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12209esac
12210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_compile") 2>conftest.er1
212380e3 12212 ac_status=$?
12213 grep -v '^ *+' conftest.er1 >conftest.err
12214 rm -f conftest.er1
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest.$ac_objext; then
212380e3 12221 charybdis_cv_c_gcc_parenthesis=yes
12222else
12223 echo "$as_me: failed program was:" >&5
12224sed 's/^/| /' conftest.$ac_ext >&5
12225
631ef239 12226 charybdis_cv_c_gcc_parenthesis=no
212380e3 12227fi
631ef239 12228
12229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12230 CFLAGS="${oldcflags}"
12231fi
12232
12233 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12234 CWARNS="${CWARNS}-Wparenthesis "
631ef239 12235 { echo "$as_me:$LINENO: result: ok" >&5
12236echo "${ECHO_T}ok" >&6; }
212380e3 12237 else
12238 charybdis_cv_c_gcc_parenthesis=''
631ef239 12239 { echo "$as_me:$LINENO: result: no" >&5
12240echo "${ECHO_T}no" >&6; }
212380e3 12241 fi
12242 else
631ef239 12243 { echo "$as_me:$LINENO: result: no" >&5
12244echo "${ECHO_T}no" >&6; }
212380e3 12245 fi
12246
12247
631ef239 12248 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12249echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
212380e3 12250 if test "${GCC-no}" = yes
12251 then
12252 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254else
12255
12256 oldcflags="${CFLAGS-}"
12257 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12258 cat >conftest.$ac_ext <<_ACEOF
12259/* confdefs.h. */
12260_ACEOF
12261cat confdefs.h >>conftest.$ac_ext
12262cat >>conftest.$ac_ext <<_ACEOF
12263/* end confdefs.h. */
12264
12265#include <string.h>
12266#include <stdio.h>
12267int main(void);
12268
12269int
12270main ()
12271{
12272
b1fc1658 12273 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12274
12275 ;
12276 return 0;
12277}
12278_ACEOF
12279rm -f conftest.$ac_objext
631ef239 12280if { (ac_try="$ac_compile"
12281case "(($ac_try" in
12282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283 *) ac_try_echo=$ac_try;;
12284esac
12285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286 (eval "$ac_compile") 2>conftest.er1
212380e3 12287 ac_status=$?
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12292 (exit $ac_status); } && {
12293 test -z "$ac_c_werror_flag" ||
12294 test ! -s conftest.err
12295 } && test -s conftest.$ac_objext; then
212380e3 12296 charybdis_cv_c_gcc_w=yes
12297else
12298 echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
631ef239 12301 charybdis_cv_c_gcc_w=no
212380e3 12302fi
631ef239 12303
12304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12305 CFLAGS="${oldcflags}"
12306fi
12307
12308 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12309 CWARNS="${CWARNS}-W -Wno-unused "
631ef239 12310 { echo "$as_me:$LINENO: result: ok" >&5
12311echo "${ECHO_T}ok" >&6; }
212380e3 12312 else
12313 charybdis_cv_c_gcc_w=''
631ef239 12314 { echo "$as_me:$LINENO: result: no" >&5
12315echo "${ECHO_T}no" >&6; }
212380e3 12316 fi
12317 else
631ef239 12318 { echo "$as_me:$LINENO: result: no" >&5
12319echo "${ECHO_T}no" >&6; }
212380e3 12320 fi
12321
12322
631ef239 12323 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12324echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
212380e3 12325 if test "${GCC-no}" = yes
12326 then
12327 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12328 echo $ECHO_N "(cached) $ECHO_C" >&6
12329else
12330
12331 oldcflags="${CFLAGS-}"
12332 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12333 cat >conftest.$ac_ext <<_ACEOF
12334/* confdefs.h. */
12335_ACEOF
12336cat confdefs.h >>conftest.$ac_ext
12337cat >>conftest.$ac_ext <<_ACEOF
12338/* end confdefs.h. */
12339
12340#include <string.h>
12341#include <stdio.h>
12342int main(void);
12343
12344int
12345main ()
12346{
12347
b1fc1658 12348 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12349
12350 ;
12351 return 0;
12352}
12353_ACEOF
12354rm -f conftest.$ac_objext
631ef239 12355if { (ac_try="$ac_compile"
12356case "(($ac_try" in
12357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358 *) ac_try_echo=$ac_try;;
12359esac
12360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361 (eval "$ac_compile") 2>conftest.er1
212380e3 12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12367 (exit $ac_status); } && {
12368 test -z "$ac_c_werror_flag" ||
12369 test ! -s conftest.err
12370 } && test -s conftest.$ac_objext; then
212380e3 12371 charybdis_cv_c_gcc_w_extra=yes
12372else
12373 echo "$as_me: failed program was:" >&5
12374sed 's/^/| /' conftest.$ac_ext >&5
12375
631ef239 12376 charybdis_cv_c_gcc_w_extra=no
212380e3 12377fi
631ef239 12378
12379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12380 CFLAGS="${oldcflags}"
12381fi
12382
12383 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12384 CWARNS="${CWARNS}-Wextra "
631ef239 12385 { echo "$as_me:$LINENO: result: ok" >&5
12386echo "${ECHO_T}ok" >&6; }
212380e3 12387 else
12388 charybdis_cv_c_gcc_w_extra=''
631ef239 12389 { echo "$as_me:$LINENO: result: no" >&5
12390echo "${ECHO_T}no" >&6; }
212380e3 12391 fi
12392 else
631ef239 12393 { echo "$as_me:$LINENO: result: no" >&5
12394echo "${ECHO_T}no" >&6; }
212380e3 12395 fi
12396
12397
631ef239 12398 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12399echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
212380e3 12400 if test "${GCC-no}" = yes
12401 then
12402 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404else
12405
12406 oldcflags="${CFLAGS-}"
12407 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12408 cat >conftest.$ac_ext <<_ACEOF
12409/* confdefs.h. */
12410_ACEOF
12411cat confdefs.h >>conftest.$ac_ext
12412cat >>conftest.$ac_ext <<_ACEOF
12413/* end confdefs.h. */
12414
12415#include <string.h>
12416#include <stdio.h>
12417int main(void);
12418
12419int
12420main ()
12421{
12422
b1fc1658 12423 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12424
12425 ;
12426 return 0;
12427}
12428_ACEOF
12429rm -f conftest.$ac_objext
631ef239 12430if { (ac_try="$ac_compile"
12431case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434esac
12435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_compile") 2>conftest.er1
212380e3 12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12442 (exit $ac_status); } && {
12443 test -z "$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest.$ac_objext; then
212380e3 12446 charybdis_cv_c_gcc_w_shadow=yes
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
631ef239 12451 charybdis_cv_c_gcc_w_shadow=no
212380e3 12452fi
631ef239 12453
12454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12455 CFLAGS="${oldcflags}"
12456fi
12457
12458 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12459 CWARNS="${CWARNS}-Wshadow "
631ef239 12460 { echo "$as_me:$LINENO: result: ok" >&5
12461echo "${ECHO_T}ok" >&6; }
212380e3 12462 else
12463 charybdis_cv_c_gcc_w_shadow=''
631ef239 12464 { echo "$as_me:$LINENO: result: no" >&5
12465echo "${ECHO_T}no" >&6; }
212380e3 12466 fi
12467 else
631ef239 12468 { echo "$as_me:$LINENO: result: no" >&5
12469echo "${ECHO_T}no" >&6; }
212380e3 12470 fi
12471
12472
631ef239 12473 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12474echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
212380e3 12475 if test "${GCC-no}" = yes
12476 then
12477 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12478 echo $ECHO_N "(cached) $ECHO_C" >&6
12479else
12480
12481 oldcflags="${CFLAGS-}"
12482 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12483 cat >conftest.$ac_ext <<_ACEOF
12484/* confdefs.h. */
12485_ACEOF
12486cat confdefs.h >>conftest.$ac_ext
12487cat >>conftest.$ac_ext <<_ACEOF
12488/* end confdefs.h. */
12489
12490#include <string.h>
12491#include <stdio.h>
12492int main(void);
12493
12494int
12495main ()
12496{
12497
b1fc1658 12498 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12499
12500 ;
12501 return 0;
12502}
12503_ACEOF
12504rm -f conftest.$ac_objext
631ef239 12505if { (ac_try="$ac_compile"
12506case "(($ac_try" in
12507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508 *) ac_try_echo=$ac_try;;
12509esac
12510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12511 (eval "$ac_compile") 2>conftest.er1
212380e3 12512 ac_status=$?
12513 grep -v '^ *+' conftest.er1 >conftest.err
12514 rm -f conftest.er1
12515 cat conftest.err >&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12517 (exit $ac_status); } && {
12518 test -z "$ac_c_werror_flag" ||
12519 test ! -s conftest.err
12520 } && test -s conftest.$ac_objext; then
212380e3 12521 charybdis_cv_c_gcc_w_missing_noreturn=yes
12522else
12523 echo "$as_me: failed program was:" >&5
12524sed 's/^/| /' conftest.$ac_ext >&5
12525
631ef239 12526 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 12527fi
631ef239 12528
12529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12530 CFLAGS="${oldcflags}"
12531fi
12532
12533 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12534 CWARNS="${CWARNS}-Wmissing-noreturn "
631ef239 12535 { echo "$as_me:$LINENO: result: ok" >&5
12536echo "${ECHO_T}ok" >&6; }
212380e3 12537 else
12538 charybdis_cv_c_gcc_w_missing_noreturn=''
631ef239 12539 { echo "$as_me:$LINENO: result: no" >&5
12540echo "${ECHO_T}no" >&6; }
212380e3 12541 fi
12542 else
631ef239 12543 { echo "$as_me:$LINENO: result: no" >&5
12544echo "${ECHO_T}no" >&6; }
212380e3 12545 fi
12546
12547
631ef239 12548 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12549echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
212380e3 12550 if test "${GCC-no}" = yes
12551 then
12552 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12554else
12555
12556 oldcflags="${CFLAGS-}"
12557 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12558 cat >conftest.$ac_ext <<_ACEOF
12559/* confdefs.h. */
12560_ACEOF
12561cat confdefs.h >>conftest.$ac_ext
12562cat >>conftest.$ac_ext <<_ACEOF
12563/* end confdefs.h. */
12564
12565#include <string.h>
12566#include <stdio.h>
12567int main(void);
12568
12569int
12570main ()
12571{
12572
b1fc1658 12573 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12574
12575 ;
12576 return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext
631ef239 12580if { (ac_try="$ac_compile"
12581case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_compile") 2>conftest.er1
212380e3 12587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12592 (exit $ac_status); } && {
12593 test -z "$ac_c_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest.$ac_objext; then
212380e3 12596 charybdis_cv_c_gcc_w_undef=yes
12597else
12598 echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
631ef239 12601 charybdis_cv_c_gcc_w_undef=no
212380e3 12602fi
631ef239 12603
12604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12605 CFLAGS="${oldcflags}"
12606fi
12607
12608 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12609 CWARNS="${CWARNS}-Wundef "
631ef239 12610 { echo "$as_me:$LINENO: result: ok" >&5
12611echo "${ECHO_T}ok" >&6; }
212380e3 12612 else
12613 charybdis_cv_c_gcc_w_undef=''
631ef239 12614 { echo "$as_me:$LINENO: result: no" >&5
12615echo "${ECHO_T}no" >&6; }
212380e3 12616 fi
12617 else
631ef239 12618 { echo "$as_me:$LINENO: result: no" >&5
12619echo "${ECHO_T}no" >&6; }
212380e3 12620 fi
12621
12622
631ef239 12623 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12624echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
212380e3 12625 if test "${GCC-no}" = yes
12626 then
12627 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12629else
12630
12631 oldcflags="${CFLAGS-}"
12632 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12633 cat >conftest.$ac_ext <<_ACEOF
12634/* confdefs.h. */
12635_ACEOF
12636cat confdefs.h >>conftest.$ac_ext
12637cat >>conftest.$ac_ext <<_ACEOF
12638/* end confdefs.h. */
12639
12640#include <string.h>
12641#include <stdio.h>
12642int main(void);
12643
12644int
12645main ()
12646{
12647
b1fc1658 12648 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12649
12650 ;
12651 return 0;
12652}
12653_ACEOF
12654rm -f conftest.$ac_objext
631ef239 12655if { (ac_try="$ac_compile"
12656case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659esac
12660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12661 (eval "$ac_compile") 2>conftest.er1
212380e3 12662 ac_status=$?
12663 grep -v '^ *+' conftest.er1 >conftest.err
12664 rm -f conftest.er1
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12667 (exit $ac_status); } && {
12668 test -z "$ac_c_werror_flag" ||
12669 test ! -s conftest.err
12670 } && test -s conftest.$ac_objext; then
212380e3 12671 charybdis_cv_c_gcc_w_packed=yes
12672else
12673 echo "$as_me: failed program was:" >&5
12674sed 's/^/| /' conftest.$ac_ext >&5
12675
631ef239 12676 charybdis_cv_c_gcc_w_packed=no
212380e3 12677fi
631ef239 12678
12679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12680 CFLAGS="${oldcflags}"
12681fi
12682
12683 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12684 CWARNS="${CWARNS}-Wpacked "
631ef239 12685 { echo "$as_me:$LINENO: result: ok" >&5
12686echo "${ECHO_T}ok" >&6; }
212380e3 12687 else
12688 charybdis_cv_c_gcc_w_packed=''
631ef239 12689 { echo "$as_me:$LINENO: result: no" >&5
12690echo "${ECHO_T}no" >&6; }
212380e3 12691 fi
12692 else
631ef239 12693 { echo "$as_me:$LINENO: result: no" >&5
12694echo "${ECHO_T}no" >&6; }
212380e3 12695 fi
12696
12697
631ef239 12698 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12699echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
212380e3 12700 if test "${GCC-no}" = yes
12701 then
12702 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
12704else
12705
12706 oldcflags="${CFLAGS-}"
12707 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12708 cat >conftest.$ac_ext <<_ACEOF
12709/* confdefs.h. */
12710_ACEOF
12711cat confdefs.h >>conftest.$ac_ext
12712cat >>conftest.$ac_ext <<_ACEOF
12713/* end confdefs.h. */
12714
12715#include <string.h>
12716#include <stdio.h>
12717int main(void);
12718
12719int
12720main ()
12721{
12722
b1fc1658 12723 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12724
12725 ;
12726 return 0;
12727}
12728_ACEOF
12729rm -f conftest.$ac_objext
631ef239 12730if { (ac_try="$ac_compile"
12731case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734esac
12735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_compile") 2>conftest.er1
212380e3 12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
212380e3 12746 charybdis_cv_c_gcc_w_nested_externs=yes
12747else
12748 echo "$as_me: failed program was:" >&5
12749sed 's/^/| /' conftest.$ac_ext >&5
12750
631ef239 12751 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 12752fi
631ef239 12753
12754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12755 CFLAGS="${oldcflags}"
12756fi
12757
12758 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
12759 CWARNS="${CWARNS}-Wnested-externs "
631ef239 12760 { echo "$as_me:$LINENO: result: ok" >&5
12761echo "${ECHO_T}ok" >&6; }
212380e3 12762 else
12763 charybdis_cv_c_gcc_w_nested_externs=''
631ef239 12764 { echo "$as_me:$LINENO: result: no" >&5
12765echo "${ECHO_T}no" >&6; }
212380e3 12766 fi
12767 else
631ef239 12768 { echo "$as_me:$LINENO: result: no" >&5
12769echo "${ECHO_T}no" >&6; }
212380e3 12770 fi
12771
12772
631ef239 12773 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
12774echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
212380e3 12775 if test "${GCC-no}" = yes
12776 then
12777 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12779else
12780
12781 oldcflags="${CFLAGS-}"
12782 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789
12790#include <string.h>
12791#include <stdio.h>
12792int main(void);
12793
12794int
12795main ()
12796{
12797
b1fc1658 12798 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12799
12800 ;
12801 return 0;
12802}
12803_ACEOF
12804rm -f conftest.$ac_objext
631ef239 12805if { (ac_try="$ac_compile"
12806case "(($ac_try" in
12807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12808 *) ac_try_echo=$ac_try;;
12809esac
12810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12811 (eval "$ac_compile") 2>conftest.er1
212380e3 12812 ac_status=$?
12813 grep -v '^ *+' conftest.er1 >conftest.err
12814 rm -f conftest.er1
12815 cat conftest.err >&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12817 (exit $ac_status); } && {
12818 test -z "$ac_c_werror_flag" ||
12819 test ! -s conftest.err
12820 } && test -s conftest.$ac_objext; then
212380e3 12821 charybdis_cv_c_gcc_w_bad_function_cast=yes
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
631ef239 12826 charybdis_cv_c_gcc_w_bad_function_cast=no
212380e3 12827fi
631ef239 12828
12829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12830 CFLAGS="${oldcflags}"
12831fi
12832
12833 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
12834 CWARNS="${CWARNS}-Wbad-function-cast "
631ef239 12835 { echo "$as_me:$LINENO: result: ok" >&5
12836echo "${ECHO_T}ok" >&6; }
212380e3 12837 else
12838 charybdis_cv_c_gcc_w_bad_function_cast=''
631ef239 12839 { echo "$as_me:$LINENO: result: no" >&5
12840echo "${ECHO_T}no" >&6; }
212380e3 12841 fi
12842 else
631ef239 12843 { echo "$as_me:$LINENO: result: no" >&5
12844echo "${ECHO_T}no" >&6; }
212380e3 12845 fi
12846
12847
631ef239 12848 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
12849echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
212380e3 12850 if test "${GCC-no}" = yes
12851 then
12852 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
12855
12856 oldcflags="${CFLAGS-}"
12857 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
12858 cat >conftest.$ac_ext <<_ACEOF
12859/* confdefs.h. */
12860_ACEOF
12861cat confdefs.h >>conftest.$ac_ext
12862cat >>conftest.$ac_ext <<_ACEOF
12863/* end confdefs.h. */
12864
12865#include <string.h>
12866#include <stdio.h>
12867int main(void);
12868
12869int
12870main ()
12871{
12872
b1fc1658 12873 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12874
12875 ;
12876 return 0;
12877}
12878_ACEOF
12879rm -f conftest.$ac_objext
631ef239 12880if { (ac_try="$ac_compile"
12881case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884esac
12885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_compile") 2>conftest.er1
212380e3 12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12892 (exit $ac_status); } && {
12893 test -z "$ac_c_werror_flag" ||
12894 test ! -s conftest.err
12895 } && test -s conftest.$ac_objext; then
212380e3 12896 charybdis_cv_c_gcc_w_unused=yes
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
631ef239 12901 charybdis_cv_c_gcc_w_unused=no
212380e3 12902fi
631ef239 12903
12904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12905 CFLAGS="${oldcflags}"
12906fi
12907
12908 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
12909 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
631ef239 12910 { echo "$as_me:$LINENO: result: ok" >&5
12911echo "${ECHO_T}ok" >&6; }
212380e3 12912 else
12913 charybdis_cv_c_gcc_w_unused=''
631ef239 12914 { echo "$as_me:$LINENO: result: no" >&5
12915echo "${ECHO_T}no" >&6; }
212380e3 12916 fi
12917 else
631ef239 12918 { echo "$as_me:$LINENO: result: no" >&5
12919echo "${ECHO_T}no" >&6; }
212380e3 12920 fi
12921
12922
631ef239 12923 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
12924echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
212380e3 12925 if test "${GCC-no}" = yes
12926 then
12927 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12929else
12930
12931 oldcflags="${CFLAGS-}"
12932 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
12933 cat >conftest.$ac_ext <<_ACEOF
12934/* confdefs.h. */
12935_ACEOF
12936cat confdefs.h >>conftest.$ac_ext
12937cat >>conftest.$ac_ext <<_ACEOF
12938/* end confdefs.h. */
12939
12940#include <string.h>
12941#include <stdio.h>
12942int main(void);
12943
12944int
12945main ()
12946{
12947
b1fc1658 12948 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 12949
12950 ;
12951 return 0;
12952}
12953_ACEOF
12954rm -f conftest.$ac_objext
631ef239 12955if { (ac_try="$ac_compile"
12956case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959esac
12960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961 (eval "$ac_compile") 2>conftest.er1
212380e3 12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 12967 (exit $ac_status); } && {
12968 test -z "$ac_c_werror_flag" ||
12969 test ! -s conftest.err
12970 } && test -s conftest.$ac_objext; then
212380e3 12971 charybdis_cv_c_gcc_w_redundant_decls=yes
12972else
12973 echo "$as_me: failed program was:" >&5
12974sed 's/^/| /' conftest.$ac_ext >&5
12975
631ef239 12976 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 12977fi
631ef239 12978
12979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 12980 CFLAGS="${oldcflags}"
12981fi
12982
12983 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
12984 CWARNS="${CWARNS}-Wredundant-decls "
631ef239 12985 { echo "$as_me:$LINENO: result: ok" >&5
12986echo "${ECHO_T}ok" >&6; }
212380e3 12987 else
12988 charybdis_cv_c_gcc_w_redundant_decls=''
631ef239 12989 { echo "$as_me:$LINENO: result: no" >&5
12990echo "${ECHO_T}no" >&6; }
212380e3 12991 fi
12992 else
631ef239 12993 { echo "$as_me:$LINENO: result: no" >&5
12994echo "${ECHO_T}no" >&6; }
212380e3 12995 fi
12996
12997
631ef239 12998 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
12999echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
212380e3 13000 if test "${GCC-no}" = yes
13001 then
13002 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
13005
13006 oldcflags="${CFLAGS-}"
13007 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13008 cat >conftest.$ac_ext <<_ACEOF
13009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
13014
13015#include <string.h>
13016#include <stdio.h>
13017int main(void);
13018
13019int
13020main ()
13021{
13022
b1fc1658 13023 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13024
13025 ;
13026 return 0;
13027}
13028_ACEOF
13029rm -f conftest.$ac_objext
631ef239 13030if { (ac_try="$ac_compile"
13031case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13034esac
13035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_compile") 2>conftest.er1
212380e3 13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
13045 } && test -s conftest.$ac_objext; then
212380e3 13046 charybdis_cv_c_gcc_w_float_equal=yes
13047else
13048 echo "$as_me: failed program was:" >&5
13049sed 's/^/| /' conftest.$ac_ext >&5
13050
631ef239 13051 charybdis_cv_c_gcc_w_float_equal=no
212380e3 13052fi
631ef239 13053
13054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13055 CFLAGS="${oldcflags}"
13056fi
13057
13058 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13059 CWARNS="${CWARNS}-Wfloat-equal "
631ef239 13060 { echo "$as_me:$LINENO: result: ok" >&5
13061echo "${ECHO_T}ok" >&6; }
212380e3 13062 else
13063 charybdis_cv_c_gcc_w_float_equal=''
631ef239 13064 { echo "$as_me:$LINENO: result: no" >&5
13065echo "${ECHO_T}no" >&6; }
212380e3 13066 fi
13067 else
631ef239 13068 { echo "$as_me:$LINENO: result: no" >&5
13069echo "${ECHO_T}no" >&6; }
212380e3 13070 fi
13071
13072
a8001fa5
JT
13073 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security" >&5
13074echo $ECHO_N "checking GCC flag(s) -Wformat -Wformat-y2k -Wformat-security... $ECHO_C" >&6; }
212380e3 13075 if test "${GCC-no}" = yes
13076 then
13077 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13079else
13080
13081 oldcflags="${CFLAGS-}"
a8001fa5 13082 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat -Wformat-y2k -Wformat-security -Werror"
212380e3 13083 cat >conftest.$ac_ext <<_ACEOF
13084/* confdefs.h. */
13085_ACEOF
13086cat confdefs.h >>conftest.$ac_ext
13087cat >>conftest.$ac_ext <<_ACEOF
13088/* end confdefs.h. */
13089
13090#include <string.h>
13091#include <stdio.h>
13092int main(void);
13093
13094int
13095main ()
13096{
13097
b1fc1658 13098 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13099
13100 ;
13101 return 0;
13102}
13103_ACEOF
13104rm -f conftest.$ac_objext
631ef239 13105if { (ac_try="$ac_compile"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_compile") 2>conftest.er1
212380e3 13112 ac_status=$?
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13117 (exit $ac_status); } && {
13118 test -z "$ac_c_werror_flag" ||
13119 test ! -s conftest.err
13120 } && test -s conftest.$ac_objext; then
212380e3 13121 charybdis_cv_c_gcc_w_format=yes
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
631ef239 13126 charybdis_cv_c_gcc_w_format=no
212380e3 13127fi
631ef239 13128
13129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13130 CFLAGS="${oldcflags}"
13131fi
13132
13133 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
a8001fa5 13134 CWARNS="${CWARNS}-Wformat -Wformat-y2k -Wformat-security "
631ef239 13135 { echo "$as_me:$LINENO: result: ok" >&5
13136echo "${ECHO_T}ok" >&6; }
212380e3 13137 else
13138 charybdis_cv_c_gcc_w_format=''
631ef239 13139 { echo "$as_me:$LINENO: result: no" >&5
13140echo "${ECHO_T}no" >&6; }
212380e3 13141 fi
13142 else
631ef239 13143 { echo "$as_me:$LINENO: result: no" >&5
13144echo "${ECHO_T}no" >&6; }
212380e3 13145 fi
13146
13147
631ef239 13148 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13149echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
212380e3 13150 if test "${GCC-no}" = yes
13151 then
13152 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
13155
13156 oldcflags="${CFLAGS-}"
13157 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13158 cat >conftest.$ac_ext <<_ACEOF
13159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
13163/* end confdefs.h. */
13164
13165#include <string.h>
13166#include <stdio.h>
13167int main(void);
13168
13169int
13170main ()
13171{
13172
b1fc1658 13173 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3 13174
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179rm -f conftest.$ac_objext
631ef239 13180if { (ac_try="$ac_compile"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_compile") 2>conftest.er1
212380e3 13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13192 (exit $ac_status); } && {
13193 test -z "$ac_c_werror_flag" ||
13194 test ! -s conftest.err
13195 } && test -s conftest.$ac_objext; then
212380e3 13196 charybdis_cv_c_gcc_pedantic=yes
13197else
13198 echo "$as_me: failed program was:" >&5
13199sed 's/^/| /' conftest.$ac_ext >&5
13200
631ef239 13201 charybdis_cv_c_gcc_pedantic=no
212380e3 13202fi
631ef239 13203
13204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 13205 CFLAGS="${oldcflags}"
13206fi
13207
13208 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13209 CWARNS="${CWARNS}-pedantic "
631ef239 13210 { echo "$as_me:$LINENO: result: ok" >&5
13211echo "${ECHO_T}ok" >&6; }
212380e3 13212 else
13213 charybdis_cv_c_gcc_pedantic=''
631ef239 13214 { echo "$as_me:$LINENO: result: no" >&5
13215echo "${ECHO_T}no" >&6; }
212380e3 13216 fi
13217 else
631ef239 13218 { echo "$as_me:$LINENO: result: no" >&5
13219echo "${ECHO_T}no" >&6; }
212380e3 13220 fi
13221
13222
13223IRC_CFLAGS="$CFLAGS"
13224
631ef239 13225fi
13226
212380e3 13227
13228if test "$shared_modules" = no; then
13229 DYNLINK_C=""
13230 MOD_TARGET="libmodules.a"
13231 MODULES_LIBS="../modules/libmodules.a"
13232 SEDOBJ=""
13233
13234cat >>confdefs.h <<\_ACEOF
13235#define STATIC_MODULES 1
13236_ACEOF
13237
13238 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13239echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13240fi
13241
13242if test "$shared_modules" = yes; then
13243
631ef239 13244 { echo "$as_me:$LINENO: checking for nlist" >&5
13245echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
212380e3 13246if test "${ac_cv_func_nlist+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248else
13249 cat >conftest.$ac_ext <<_ACEOF
13250/* confdefs.h. */
13251_ACEOF
13252cat confdefs.h >>conftest.$ac_ext
13253cat >>conftest.$ac_ext <<_ACEOF
13254/* end confdefs.h. */
13255/* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13257#define nlist innocuous_nlist
13258
13259/* System header to define __stub macros and hopefully few prototypes,
13260 which can conflict with char nlist (); below.
13261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13262 <limits.h> exists even on freestanding compilers. */
13263
13264#ifdef __STDC__
13265# include <limits.h>
13266#else
13267# include <assert.h>
13268#endif
13269
13270#undef nlist
13271
631ef239 13272/* Override any GCC internal prototype to avoid an error.
13273 Use char because int might match the return type of a GCC
13274 builtin and then its argument prototype would still apply. */
212380e3 13275#ifdef __cplusplus
13276extern "C"
212380e3 13277#endif
212380e3 13278char nlist ();
13279/* The GNU C library defines this for functions which it implements
13280 to always fail with ENOSYS. Some functions are actually named
13281 something starting with __ and the normal name is an alias. */
631ef239 13282#if defined __stub_nlist || defined __stub___nlist
212380e3 13283choke me
212380e3 13284#endif
13285
13286int
13287main ()
13288{
631ef239 13289return nlist ();
212380e3 13290 ;
13291 return 0;
13292}
13293_ACEOF
13294rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 13295if { (ac_try="$ac_link"
13296case "(($ac_try" in
13297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298 *) ac_try_echo=$ac_try;;
13299esac
13300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301 (eval "$ac_link") 2>conftest.er1
212380e3 13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13307 (exit $ac_status); } && {
13308 test -z "$ac_c_werror_flag" ||
13309 test ! -s conftest.err
13310 } && test -s conftest$ac_exeext &&
13311 $as_test_x conftest$ac_exeext; then
212380e3 13312 ac_cv_func_nlist=yes
13313else
13314 echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
631ef239 13317 ac_cv_func_nlist=no
212380e3 13318fi
631ef239 13319
13320rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 13321 conftest$ac_exeext conftest.$ac_ext
13322fi
631ef239 13323{ echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13324echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
212380e3 13325if test $ac_cv_func_nlist = yes; then
13326 :
13327else
631ef239 13328 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13329echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
212380e3 13330if test "${ac_cv_lib_dl_nlist+set}" = set; then
13331 echo $ECHO_N "(cached) $ECHO_C" >&6
13332else
13333 ac_check_lib_save_LIBS=$LIBS
13334LIBS="-ldl $LIBS"
13335cat >conftest.$ac_ext <<_ACEOF
13336/* confdefs.h. */
13337_ACEOF
13338cat confdefs.h >>conftest.$ac_ext
13339cat >>conftest.$ac_ext <<_ACEOF
13340/* end confdefs.h. */
13341
631ef239 13342/* Override any GCC internal prototype to avoid an error.
13343 Use char because int might match the return type of a GCC
13344 builtin and then its argument prototype would still apply. */
212380e3 13345#ifdef __cplusplus
13346extern "C"
13347#endif
212380e3 13348char nlist ();
13349int
13350main ()
13351{
631ef239 13352return nlist ();
212380e3 13353 ;
13354 return 0;
13355}
13356_ACEOF
13357rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 13358if { (ac_try="$ac_link"
13359case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362esac
13363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_link") 2>conftest.er1
212380e3 13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13370 (exit $ac_status); } && {
13371 test -z "$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 } && test -s conftest$ac_exeext &&
13374 $as_test_x conftest$ac_exeext; then
212380e3 13375 ac_cv_lib_dl_nlist=yes
13376else
13377 echo "$as_me: failed program was:" >&5
13378sed 's/^/| /' conftest.$ac_ext >&5
13379
631ef239 13380 ac_cv_lib_dl_nlist=no
212380e3 13381fi
631ef239 13382
13383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 13384 conftest$ac_exeext conftest.$ac_ext
13385LIBS=$ac_check_lib_save_LIBS
13386fi
631ef239 13387{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13388echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
212380e3 13389if test $ac_cv_lib_dl_nlist = yes; then
13390 nlist_lib="-ldl"
13391else
631ef239 13392 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13393echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
212380e3 13394if test "${ac_cv_lib_elf_nlist+set}" = set; then
13395 echo $ECHO_N "(cached) $ECHO_C" >&6
13396else
13397 ac_check_lib_save_LIBS=$LIBS
13398LIBS="-lelf $LIBS"
13399cat >conftest.$ac_ext <<_ACEOF
13400/* confdefs.h. */
13401_ACEOF
13402cat confdefs.h >>conftest.$ac_ext
13403cat >>conftest.$ac_ext <<_ACEOF
13404/* end confdefs.h. */
13405
631ef239 13406/* Override any GCC internal prototype to avoid an error.
13407 Use char because int might match the return type of a GCC
13408 builtin and then its argument prototype would still apply. */
212380e3 13409#ifdef __cplusplus
13410extern "C"
13411#endif
212380e3 13412char nlist ();
13413int
13414main ()
13415{
631ef239 13416return nlist ();
212380e3 13417 ;
13418 return 0;
13419}
13420_ACEOF
13421rm -f conftest.$ac_objext conftest$ac_exeext
631ef239 13422if { (ac_try="$ac_link"
13423case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13426esac
13427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_link") 2>conftest.er1
212380e3 13429 ac_status=$?
13430 grep -v '^ *+' conftest.er1 >conftest.err
13431 rm -f conftest.er1
13432 cat conftest.err >&5
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13434 (exit $ac_status); } && {
13435 test -z "$ac_c_werror_flag" ||
13436 test ! -s conftest.err
13437 } && test -s conftest$ac_exeext &&
13438 $as_test_x conftest$ac_exeext; then
212380e3 13439 ac_cv_lib_elf_nlist=yes
13440else
13441 echo "$as_me: failed program was:" >&5
13442sed 's/^/| /' conftest.$ac_ext >&5
13443
631ef239 13444 ac_cv_lib_elf_nlist=no
212380e3 13445fi
631ef239 13446
13447rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3 13448 conftest$ac_exeext conftest.$ac_ext
13449LIBS=$ac_check_lib_save_LIBS
13450fi
631ef239 13451{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13452echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
212380e3 13453if test $ac_cv_lib_elf_nlist = yes; then
13454 nlist_lib="-lelf"
13455fi
13456
13457
13458fi
13459
13460
13461fi
13462
13463
13464 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
631ef239 13465 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13466echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
212380e3 13467if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13469fi
631ef239 13470{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13471echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
212380e3 13472else
13473 # Is the header compilable?
631ef239 13474{ echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13475echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
212380e3 13476cat >conftest.$ac_ext <<_ACEOF
13477/* confdefs.h. */
13478_ACEOF
13479cat confdefs.h >>conftest.$ac_ext
13480cat >>conftest.$ac_ext <<_ACEOF
13481/* end confdefs.h. */
13482$ac_includes_default
13483#include <libelf/nlist.h>
13484_ACEOF
13485rm -f conftest.$ac_objext
631ef239 13486if { (ac_try="$ac_compile"
13487case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490esac
13491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_compile") 2>conftest.er1
212380e3 13493 ac_status=$?
13494 grep -v '^ *+' conftest.er1 >conftest.err
13495 rm -f conftest.er1
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13498 (exit $ac_status); } && {
13499 test -z "$ac_c_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest.$ac_objext; then
212380e3 13502 ac_header_compiler=yes
13503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
631ef239 13507 ac_header_compiler=no
212380e3 13508fi
631ef239 13509
13510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13512echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 13513
13514# Is the header present?
631ef239 13515{ echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13516echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
212380e3 13517cat >conftest.$ac_ext <<_ACEOF
13518/* confdefs.h. */
13519_ACEOF
13520cat confdefs.h >>conftest.$ac_ext
13521cat >>conftest.$ac_ext <<_ACEOF
13522/* end confdefs.h. */
13523#include <libelf/nlist.h>
13524_ACEOF
631ef239 13525if { (ac_try="$ac_cpp conftest.$ac_ext"
13526case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13529esac
13530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 13532 ac_status=$?
13533 grep -v '^ *+' conftest.er1 >conftest.err
13534 rm -f conftest.er1
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13537 (exit $ac_status); } >/dev/null && {
13538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13539 test ! -s conftest.err
13540 }; then
212380e3 13541 ac_header_preproc=yes
13542else
13543 echo "$as_me: failed program was:" >&5
13544sed 's/^/| /' conftest.$ac_ext >&5
13545
13546 ac_header_preproc=no
13547fi
631ef239 13548
212380e3 13549rm -f conftest.err conftest.$ac_ext
631ef239 13550{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13551echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 13552
13553# So? What about this header?
13554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13555 yes:no: )
13556 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13557echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13559echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13560 ac_header_preproc=yes
13561 ;;
13562 no:yes:* )
13563 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13564echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13566echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13568echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13570echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13572echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13574echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13575
212380e3 13576 ;;
13577esac
631ef239 13578{ echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13579echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
212380e3 13580if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13584fi
631ef239 13585{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13586echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
212380e3 13587
13588fi
13589if test $ac_cv_header_libelf_nlist_h = yes; then
13590 nlist_h="libelf/nlist.h"
13591fi
13592
13593
13594 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
631ef239 13595 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13596echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
212380e3 13597if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13598 echo $ECHO_N "(cached) $ECHO_C" >&6
13599fi
631ef239 13600{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13601echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
212380e3 13602else
13603 # Is the header compilable?
631ef239 13604{ echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13605echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
212380e3 13606cat >conftest.$ac_ext <<_ACEOF
13607/* confdefs.h. */
13608_ACEOF
13609cat confdefs.h >>conftest.$ac_ext
13610cat >>conftest.$ac_ext <<_ACEOF
13611/* end confdefs.h. */
13612$ac_includes_default
13613#include <elf/nlist.h>
13614_ACEOF
13615rm -f conftest.$ac_objext
631ef239 13616if { (ac_try="$ac_compile"
13617case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
13621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_compile") 2>conftest.er1
212380e3 13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13628 (exit $ac_status); } && {
13629 test -z "$ac_c_werror_flag" ||
13630 test ! -s conftest.err
13631 } && test -s conftest.$ac_objext; then
212380e3 13632 ac_header_compiler=yes
13633else
13634 echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
631ef239 13637 ac_header_compiler=no
212380e3 13638fi
631ef239 13639
13640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13641{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13642echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 13643
13644# Is the header present?
631ef239 13645{ echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13646echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
212380e3 13647cat >conftest.$ac_ext <<_ACEOF
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
13653#include <elf/nlist.h>
13654_ACEOF
631ef239 13655if { (ac_try="$ac_cpp conftest.$ac_ext"
13656case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13659esac
13660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 13662 ac_status=$?
13663 grep -v '^ *+' conftest.er1 >conftest.err
13664 rm -f conftest.er1
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13667 (exit $ac_status); } >/dev/null && {
13668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13669 test ! -s conftest.err
13670 }; then
212380e3 13671 ac_header_preproc=yes
13672else
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676 ac_header_preproc=no
13677fi
631ef239 13678
212380e3 13679rm -f conftest.err conftest.$ac_ext
631ef239 13680{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13681echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 13682
13683# So? What about this header?
13684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13685 yes:no: )
13686 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13687echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13689echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13690 ac_header_preproc=yes
13691 ;;
13692 no:yes:* )
13693 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13694echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13696echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13698echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13700echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13701 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13702echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13703 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13704echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13705
212380e3 13706 ;;
13707esac
631ef239 13708{ echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13709echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
212380e3 13710if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13712else
13713 ac_cv_header_elf_nlist_h=$ac_header_preproc
13714fi
631ef239 13715{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13716echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
212380e3 13717
13718fi
13719if test $ac_cv_header_elf_nlist_h = yes; then
13720 nlist_h="elf/nlist.h"
13721fi
13722
13723
13724 if test "${ac_cv_header_nlist_h+set}" = set; then
631ef239 13725 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13726echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
212380e3 13727if test "${ac_cv_header_nlist_h+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729fi
631ef239 13730{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13731echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
212380e3 13732else
13733 # Is the header compilable?
631ef239 13734{ echo "$as_me:$LINENO: checking nlist.h usability" >&5
13735echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
212380e3 13736cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h. */
13742$ac_includes_default
13743#include <nlist.h>
13744_ACEOF
13745rm -f conftest.$ac_objext
631ef239 13746if { (ac_try="$ac_compile"
13747case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13750esac
13751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compile") 2>conftest.er1
212380e3 13753 ac_status=$?
13754 grep -v '^ *+' conftest.er1 >conftest.err
13755 rm -f conftest.er1
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13758 (exit $ac_status); } && {
13759 test -z "$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13761 } && test -s conftest.$ac_objext; then
212380e3 13762 ac_header_compiler=yes
13763else
13764 echo "$as_me: failed program was:" >&5
13765sed 's/^/| /' conftest.$ac_ext >&5
13766
631ef239 13767 ac_header_compiler=no
212380e3 13768fi
631ef239 13769
13770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3 13773
13774# Is the header present?
631ef239 13775{ echo "$as_me:$LINENO: checking nlist.h presence" >&5
13776echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
212380e3 13777cat >conftest.$ac_ext <<_ACEOF
13778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
13783#include <nlist.h>
13784_ACEOF
631ef239 13785if { (ac_try="$ac_cpp conftest.$ac_ext"
13786case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13789esac
13790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3 13792 ac_status=$?
13793 grep -v '^ *+' conftest.er1 >conftest.err
13794 rm -f conftest.er1
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239 13797 (exit $ac_status); } >/dev/null && {
13798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13800 }; then
212380e3 13801 ac_header_preproc=yes
13802else
13803 echo "$as_me: failed program was:" >&5
13804sed 's/^/| /' conftest.$ac_ext >&5
13805
13806 ac_header_preproc=no
13807fi
631ef239 13808
212380e3 13809rm -f conftest.err conftest.$ac_ext
631ef239 13810{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13811echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3 13812
13813# So? What about this header?
13814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13815 yes:no: )
13816 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13817echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
13819echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
13820 ac_header_preproc=yes
13821 ;;
13822 no:yes:* )
13823 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
13824echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
13826echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
13828echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13830echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
13832echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
13834echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13835
212380e3 13836 ;;
13837esac
631ef239 13838{ echo "$as_me:$LINENO: checking for nlist.h" >&5
13839echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
212380e3 13840if test "${ac_cv_header_nlist_h+set}" = set; then
13841 echo $ECHO_N "(cached) $ECHO_C" >&6
13842else
13843 ac_cv_header_nlist_h=$ac_header_preproc
13844fi
631ef239 13845{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13846echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
212380e3 13847
13848fi
13849if test $ac_cv_header_nlist_h = yes; then
13850 nlist_h="nlist.h"
13851fi
13852
13853
13854 if test x"$nlist_h" = "x"; then
13855
13856cat >>confdefs.h <<_ACEOF
13857#define SYMBOL_PREFIX ""
13858_ACEOF
13859
13860 else
631ef239 13861 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
13862echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
212380e3 13863 if test "${symbol_underscores+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866
13867cat << EOF > conftest.c
13868#include <$nlist_h>
13869#include <stdio.h>
13870#include <stdlib.h>
13871void _modinit(void);
13872int main(int argc, char *argv[]) {
13873 int i;
13874 struct nlist nl[5];
13875
13876 /* fill the names in this way, so it'll work almost everywhere */
13877 nl[0].n_name = "_modinit";
13878 nl[1].n_name = "__modinit";
13879 nl[2].n_name = "___modinit";
13880 nl[3].n_name = "____modinit";
13881 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
13882
13883 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
13884 for(i = 0; i < 4; i++) {
13885 if(nl[i].n_value != NULL)
13886 {
13887 int j;
13888 for(j = 0; j < i; j++)
13889 printf("_");
13890 exit(i);
13891 }
13892 }
13893 exit(-1);
13894}
13895void _modinit(void) { return; }
13896EOF
13897 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
13898 symbol_underscores=`./conftest conftest`
631ef239 13899 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
13900echo "${ECHO_T}$symbol_underscores" >&6; }
212380e3 13901 $RM -f conftest conftest.c
13902
13903fi
13904
13905
13906cat >>confdefs.h <<_ACEOF
13907#define SYMBOL_PREFIX "${symbol_underscores}"
13908_ACEOF
13909
13910 fi
13911fi
13912
a8001fa5
JT
13913IRC_CFLAGS="$IRC_CFLAGS $CWARNS"
13914
212380e3 13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928if test "$prefix" = "NONE"; then
13929
13930cat >>confdefs.h <<_ACEOF
13931#define IRCD_PREFIX "$ac_default_prefix"
13932_ACEOF
13933
13934
13935else
13936
13937
13938 prefix=`echo $prefix | sed 's/\/$//'`
13939
13940cat >>confdefs.h <<_ACEOF
13941#define IRCD_PREFIX "$prefix"
13942_ACEOF
13943
13944
13945fi
13946
fa8f5ecc 13947ac_config_files="$ac_config_files Makefile ssld/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
212380e3 13948
13949
13950cat >confcache <<\_ACEOF
13951# This file is a shell script that caches the results of configure
13952# tests run on this system so they can be shared between configure
13953# scripts and configure runs, see configure's option --config-cache.
13954# It is not useful on other systems. If it contains results you don't
13955# want to keep, you may remove or edit it.
13956#
13957# config.status only pays attention to the cache file if you give it
13958# the --recheck option to rerun configure.
13959#
13960# `ac_cv_env_foo' variables (set or unset) will be overridden when
13961# loading this file, other *unset* `ac_cv_foo' will be assigned the
13962# following values.
13963
13964_ACEOF
13965
13966# The following way of writing the cache mishandles newlines in values,
13967# but we know of no workaround that is simple, portable, and efficient.
631ef239 13968# So, we kill variables containing newlines.
212380e3 13969# Ultrix sh set writes to stderr and can't be redirected directly,
13970# and sets the high bit in the cache file unless we assign to the vars.
631ef239 13971(
13972 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13973 eval ac_val=\$$ac_var
13974 case $ac_val in #(
13975 *${as_nl}*)
13976 case $ac_var in #(
13977 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13978echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13979 esac
13980 case $ac_var in #(
13981 _ | IFS | as_nl) ;; #(
13982 *) $as_unset $ac_var ;;
13983 esac ;;
13984 esac
13985 done
13986
212380e3 13987 (set) 2>&1 |
631ef239 13988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13989 *${as_nl}ac_space=\ *)
212380e3 13990 # `set' does not quote correctly, so add quotes (double-quote
13991 # substitution turns \\\\ into \\, and sed turns \\ into \).
13992 sed -n \
13993 "s/'/'\\\\''/g;
13994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 13995 ;; #(
212380e3 13996 *)
13997 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 13998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 13999 ;;
631ef239 14000 esac |
14001 sort
14002) |
212380e3 14003 sed '
631ef239 14004 /^ac_cv_env_/b end
212380e3 14005 t clear
631ef239 14006 :clear
212380e3 14007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14008 t end
631ef239 14009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14010 :end' >>confcache
14011if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14012 if test -w "$cache_file"; then
14013 test "x$cache_file" != "x/dev/null" &&
14014 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14015echo "$as_me: updating cache $cache_file" >&6;}
212380e3 14016 cat confcache >$cache_file
14017 else
631ef239 14018 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14019echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3 14020 fi
14021fi
14022rm -f confcache
14023
14024test "x$prefix" = xNONE && prefix=$ac_default_prefix
14025# Let make expand exec_prefix.
14026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14027
212380e3 14028DEFS=-DHAVE_CONFIG_H
14029
14030ac_libobjs=
14031ac_ltlibobjs=
14032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14033 # 1. Remove the extension, and $U if already installed.
631ef239 14034 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14035 ac_i=`echo "$ac_i" | sed "$ac_script"`
14036 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14037 # will be set to the directory where LIBOBJS objects are built.
14038 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14039 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3 14040done
14041LIBOBJS=$ac_libobjs
14042
14043LTLIBOBJS=$ac_ltlibobjs
14044
14045
14046
14047: ${CONFIG_STATUS=./config.status}
14048ac_clean_files_save=$ac_clean_files
14049ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14050{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14051echo "$as_me: creating $CONFIG_STATUS" >&6;}
14052cat >$CONFIG_STATUS <<_ACEOF
14053#! $SHELL
14054# Generated by $as_me.
14055# Run this file to recreate the current configuration.
14056# Compiler output produced by configure, useful for debugging
14057# configure, is in config.log if it exists.
14058
14059debug=false
14060ac_cs_recheck=false
14061ac_cs_silent=false
14062SHELL=\${CONFIG_SHELL-$SHELL}
14063_ACEOF
14064
14065cat >>$CONFIG_STATUS <<\_ACEOF
14066## --------------------- ##
14067## M4sh Initialization. ##
14068## --------------------- ##
14069
631ef239 14070# Be more Bourne compatible
14071DUALCASE=1; export DUALCASE # for MKS sh
212380e3 14072if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14073 emulate sh
14074 NULLCMD=:
14075 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14076 # is contrary to our usage. Disable this feature.
14077 alias -g '${1+"$@"}'='"$@"'
631ef239 14078 setopt NO_GLOB_SUBST
212380e3 14079else
631ef239 14080 case `(set -o) 2>/dev/null` in
14081 *posix*) set -o posix ;;
14082esac
14083
212380e3 14084fi
14085
14086
631ef239 14087
14088
14089# PATH needs CR
14090# Avoid depending upon Character Ranges.
14091as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14092as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14093as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14094as_cr_digits='0123456789'
14095as_cr_alnum=$as_cr_Letters$as_cr_digits
14096
14097# The user is always right.
14098if test "${PATH_SEPARATOR+set}" != set; then
14099 echo "#! /bin/sh" >conf$$.sh
14100 echo "exit 0" >>conf$$.sh
14101 chmod +x conf$$.sh
14102 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14103 PATH_SEPARATOR=';'
14104 else
14105 PATH_SEPARATOR=:
14106 fi
14107 rm -f conf$$.sh
14108fi
14109
14110# Support unset when possible.
14111if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14112 as_unset=unset
14113else
14114 as_unset=false
14115fi
14116
14117
14118# IFS
14119# We need space, tab and new line, in precisely that order. Quoting is
14120# there to prevent editors from complaining about space-tab.
14121# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14122# splitting by setting IFS to empty value.)
14123as_nl='
14124'
14125IFS=" "" $as_nl"
14126
14127# Find who we are. Look in the path if we contain no directory separator.
14128case $0 in
14129 *[\\/]* ) as_myself=$0 ;;
14130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14131for as_dir in $PATH
14132do
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
14135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14136done
14137IFS=$as_save_IFS
14138
14139 ;;
14140esac
14141# We did not find ourselves, most probably we were run as `sh COMMAND'
14142# in which case we are not to be found in the path.
14143if test "x$as_myself" = x; then
14144 as_myself=$0
14145fi
14146if test ! -f "$as_myself"; then
14147 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14148 { (exit 1); exit 1; }
14149fi
14150
212380e3 14151# Work around bugs in pre-3.0 UWIN ksh.
631ef239 14152for as_var in ENV MAIL MAILPATH
14153do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14154done
212380e3 14155PS1='$ '
14156PS2='> '
14157PS4='+ '
14158
14159# NLS nuisances.
14160for as_var in \
14161 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14162 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14163 LC_TELEPHONE LC_TIME
14164do
14165 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14166 eval $as_var=C; export $as_var
14167 else
631ef239 14168 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
212380e3 14169 fi
14170done
14171
14172# Required to use basename.
631ef239 14173if expr a : '\(a\)' >/dev/null 2>&1 &&
14174 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 14175 as_expr=expr
14176else
14177 as_expr=false
14178fi
14179
631ef239 14180if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3 14181 as_basename=basename
14182else
14183 as_basename=false
14184fi
14185
14186
14187# Name of the executable.
631ef239 14188as_me=`$as_basename -- "$0" ||
212380e3 14189$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14190 X"$0" : 'X\(//\)$' \| \
631ef239 14191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 14192echo X/"$0" |
631ef239 14193 sed '/^.*\/\([^/][^/]*\)\/*$/{
14194 s//\1/
14195 q
14196 }
14197 /^X\/\(\/\/\)$/{
14198 s//\1/
14199 q
14200 }
14201 /^X\/\(\/\).*/{
14202 s//\1/
14203 q
14204 }
14205 s/.*/./; q'`
212380e3 14206
631ef239 14207# CDPATH.
14208$as_unset CDPATH
212380e3 14209
212380e3 14210
14211
14212 as_lineno_1=$LINENO
14213 as_lineno_2=$LINENO
212380e3 14214 test "x$as_lineno_1" != "x$as_lineno_2" &&
631ef239 14215 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
212380e3 14216
14217 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14218 # uniformly replaced by the line number. The first 'sed' inserts a
631ef239 14219 # line-number line after each line using $LINENO; the second 'sed'
14220 # does the real work. The second script uses 'N' to pair each
14221 # line-number line with the line containing $LINENO, and appends
14222 # trailing '-' during substitution so that $LINENO is not a special
14223 # case at line end.
212380e3 14224 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
631ef239 14225 # scripts with optimization help from Paolo Bonzini. Blame Lee
14226 # E. McMahon (1931-1989) for sed's syntax. :-)
14227 sed -n '
14228 p
14229 /[$]LINENO/=
14230 ' <$as_myself |
212380e3 14231 sed '
631ef239 14232 s/[$]LINENO.*/&-/
14233 t lineno
14234 b
14235 :lineno
212380e3 14236 N
631ef239 14237 :loop
14238 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
212380e3 14239 t loop
631ef239 14240 s/-\n.*//
212380e3 14241 ' >$as_me.lineno &&
631ef239 14242 chmod +x "$as_me.lineno" ||
14243 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
212380e3 14244 { (exit 1); exit 1; }; }
14245
14246 # Don't try to exec as it changes $[0], causing all sort of problems
14247 # (the dirname of $[0] is not the place where we might find the
631ef239 14248 # original and so on. Autoconf is especially sensitive to this).
14249 . "./$as_me.lineno"
212380e3 14250 # Exit status is that of the last command.
14251 exit
14252}
14253
14254
631ef239 14255if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14256 as_dirname=dirname
14257else
14258 as_dirname=false
14259fi
14260
14261ECHO_C= ECHO_N= ECHO_T=
14262case `echo -n x` in
14263-n*)
14264 case `echo 'x\c'` in
14265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14266 *) ECHO_C='\c';;
14267 esac;;
14268*)
14269 ECHO_N='-n';;
212380e3 14270esac
14271
631ef239 14272if expr a : '\(a\)' >/dev/null 2>&1 &&
14273 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3 14274 as_expr=expr
14275else
14276 as_expr=false
14277fi
14278
14279rm -f conf$$ conf$$.exe conf$$.file
631ef239 14280if test -d conf$$.dir; then
14281 rm -f conf$$.dir/conf$$.file
14282else
14283 rm -f conf$$.dir
14284 mkdir conf$$.dir
14285fi
212380e3 14286echo >conf$$.file
14287if ln -s conf$$.file conf$$ 2>/dev/null; then
631ef239 14288 as_ln_s='ln -s'
14289 # ... but there are two gotchas:
14290 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14291 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14292 # In both cases, we have to default to `cp -p'.
14293 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
212380e3 14294 as_ln_s='cp -p'
212380e3 14295elif ln conf$$.file conf$$ 2>/dev/null; then
14296 as_ln_s=ln
14297else
14298 as_ln_s='cp -p'
14299fi
631ef239 14300rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14301rmdir conf$$.dir 2>/dev/null
212380e3 14302
14303if mkdir -p . 2>/dev/null; then
14304 as_mkdir_p=:
14305else
14306 test -d ./-p && rmdir ./-p
14307 as_mkdir_p=false
14308fi
14309
631ef239 14310if test -x / >/dev/null 2>&1; then
14311 as_test_x='test -x'
14312else
14313 if ls -dL / >/dev/null 2>&1; then
14314 as_ls_L_option=L
14315 else
14316 as_ls_L_option=
14317 fi
14318 as_test_x='
14319 eval sh -c '\''
14320 if test -d "$1"; then
14321 test -d "$1/.";
14322 else
14323 case $1 in
14324 -*)set "./$1";;
14325 esac;
14326 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14327 ???[sx]*):;;*)false;;esac;fi
14328 '\'' sh
14329 '
14330fi
14331as_executable_p=$as_test_x
212380e3 14332
14333# Sed expression to map a string onto a valid CPP name.
14334as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14335
14336# Sed expression to map a string onto a valid variable name.
14337as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14338
14339
212380e3 14340exec 6>&1
14341
631ef239 14342# Save the log message, to keep $[0] and so on meaningful, and to
212380e3 14343# report actual input values of CONFIG_FILES etc. instead of their
631ef239 14344# values after options handling.
14345ac_log="
40bee184 14346This file was extended by charybdis $as_me 3.0.0-alpha1, which was
631ef239 14347generated by GNU Autoconf 2.61. Invocation command line was
212380e3 14348
14349 CONFIG_FILES = $CONFIG_FILES
14350 CONFIG_HEADERS = $CONFIG_HEADERS
14351 CONFIG_LINKS = $CONFIG_LINKS
14352 CONFIG_COMMANDS = $CONFIG_COMMANDS
14353 $ $0 $@
14354
631ef239 14355on `(hostname || uname -n) 2>/dev/null | sed 1q`
14356"
14357
212380e3 14358_ACEOF
14359
631ef239 14360cat >>$CONFIG_STATUS <<_ACEOF
212380e3 14361# Files that config.status was made for.
631ef239 14362config_files="$ac_config_files"
14363config_headers="$ac_config_headers"
212380e3 14364
631ef239 14365_ACEOF
212380e3 14366
14367cat >>$CONFIG_STATUS <<\_ACEOF
212380e3 14368ac_cs_usage="\
14369\`$as_me' instantiates files from templates according to the
14370current configuration.
14371
14372Usage: $0 [OPTIONS] [FILE]...
14373
14374 -h, --help print this help, then exit
631ef239 14375 -V, --version print version number and configuration settings, then exit
212380e3 14376 -q, --quiet do not print progress messages
14377 -d, --debug don't remove temporary files
14378 --recheck update $as_me by reconfiguring in the same conditions
14379 --file=FILE[:TEMPLATE]
14380 instantiate the configuration file FILE
14381 --header=FILE[:TEMPLATE]
14382 instantiate the configuration header FILE
14383
14384Configuration files:
14385$config_files
14386
14387Configuration headers:
14388$config_headers
14389
14390Report bugs to <bug-autoconf@gnu.org>."
212380e3 14391
631ef239 14392_ACEOF
212380e3 14393cat >>$CONFIG_STATUS <<_ACEOF
14394ac_cs_version="\\
40bee184 14395charybdis config.status 3.0.0-alpha1
631ef239 14396configured by $0, generated by GNU Autoconf 2.61,
14397 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
212380e3 14398
631ef239 14399Copyright (C) 2006 Free Software Foundation, Inc.
212380e3 14400This config.status script is free software; the Free Software Foundation
14401gives unlimited permission to copy, distribute and modify it."
631ef239 14402
14403ac_pwd='$ac_pwd'
14404srcdir='$srcdir'
14405INSTALL='$INSTALL'
212380e3 14406_ACEOF
14407
14408cat >>$CONFIG_STATUS <<\_ACEOF
14409# If no file are specified by the user, then we need to provide default
14410# value. By we need to know if files were specified by the user.
14411ac_need_defaults=:
14412while test $# != 0
14413do
14414 case $1 in
14415 --*=*)
631ef239 14416 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14417 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3 14418 ac_shift=:
14419 ;;
631ef239 14420 *)
212380e3 14421 ac_option=$1
14422 ac_optarg=$2
14423 ac_shift=shift
14424 ;;
212380e3 14425 esac
14426
14427 case $ac_option in
14428 # Handling of the options.
212380e3 14429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14430 ac_cs_recheck=: ;;
631ef239 14431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14432 echo "$ac_cs_version"; exit ;;
14433 --debug | --debu | --deb | --de | --d | -d )
212380e3 14434 debug=: ;;
14435 --file | --fil | --fi | --f )
14436 $ac_shift
14437 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14438 ac_need_defaults=false;;
14439 --header | --heade | --head | --hea )
14440 $ac_shift
14441 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14442 ac_need_defaults=false;;
631ef239 14443 --he | --h)
14444 # Conflict between --help and --header
14445 { echo "$as_me: error: ambiguous option: $1
14446Try \`$0 --help' for more information." >&2
14447 { (exit 1); exit 1; }; };;
14448 --help | --hel | -h )
14449 echo "$ac_cs_usage"; exit ;;
212380e3 14450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14452 ac_cs_silent=: ;;
14453
14454 # This is an error.
631ef239 14455 -*) { echo "$as_me: error: unrecognized option: $1
14456Try \`$0 --help' for more information." >&2
212380e3 14457 { (exit 1); exit 1; }; } ;;
14458
631ef239 14459 *) ac_config_targets="$ac_config_targets $1"
14460 ac_need_defaults=false ;;
212380e3 14461
14462 esac
14463 shift
14464done
14465
14466ac_configure_extra_args=
14467
14468if $ac_cs_silent; then
14469 exec 6>/dev/null
14470 ac_configure_extra_args="$ac_configure_extra_args --silent"
14471fi
14472
14473_ACEOF
14474cat >>$CONFIG_STATUS <<_ACEOF
14475if \$ac_cs_recheck; then
631ef239 14476 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14477 CONFIG_SHELL=$SHELL
14478 export CONFIG_SHELL
14479 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
212380e3 14480fi
14481
14482_ACEOF
631ef239 14483cat >>$CONFIG_STATUS <<\_ACEOF
14484exec 5>>config.log
14485{
14486 echo
14487 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14488## Running $as_me. ##
14489_ASBOX
14490 echo "$ac_log"
14491} >&5
212380e3 14492
631ef239 14493_ACEOF
14494cat >>$CONFIG_STATUS <<_ACEOF
14495_ACEOF
212380e3 14496
14497cat >>$CONFIG_STATUS <<\_ACEOF
631ef239 14498
14499# Handling of arguments.
212380e3 14500for ac_config_target in $ac_config_targets
14501do
631ef239 14502 case $ac_config_target in
14503 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
0454dd83 14505 "ssld/Makefile") CONFIG_FILES="$CONFIG_FILES ssld/Makefile" ;;
631ef239 14506 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
14507 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
14508 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14509 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14510 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14511 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14512 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14513
212380e3 14514 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14515echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14516 { (exit 1); exit 1; }; };;
14517 esac
14518done
14519
631ef239 14520
212380e3 14521# If the user did not use the arguments to specify the items to instantiate,
14522# then the envvar interface is used. Set only those that are not.
14523# We use the long form for the default assignment because of an extremely
14524# bizarre bug on SunOS 4.1.3.
14525if $ac_need_defaults; then
14526 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14527 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14528fi
14529
14530# Have a temporary directory for convenience. Make it in the build tree
631ef239 14531# simply because there is no reason against having it here, and in addition,
212380e3 14532# creating and moving files from /tmp can sometimes cause problems.
631ef239 14533# Hook for its removal unless debugging.
14534# Note that there is a small window in which the directory will not be cleaned:
14535# after its creation but before its name has been assigned to `$tmp'.
212380e3 14536$debug ||
14537{
631ef239 14538 tmp=
14539 trap 'exit_status=$?
14540 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14541' 0
212380e3 14542 trap '{ (exit 1); exit 1; }' 1 2 13 15
14543}
212380e3 14544# Create a (secure) tmp directory for tmp files.
14545
14546{
631ef239 14547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
212380e3 14548 test -n "$tmp" && test -d "$tmp"
14549} ||
14550{
631ef239 14551 tmp=./conf$$-$RANDOM
14552 (umask 077 && mkdir "$tmp")
212380e3 14553} ||
14554{
14555 echo "$me: cannot create a temporary directory in ." >&2
14556 { (exit 1); exit 1; }
14557}
14558
212380e3 14559#
631ef239 14560# Set up the sed scripts for CONFIG_FILES section.
212380e3 14561#
14562
14563# No need to generate the scripts if there are no CONFIG_FILES.
14564# This happens for instance when ./config.status config.h
631ef239 14565if test -n "$CONFIG_FILES"; then
14566
14567_ACEOF
14568
14569
14570
14571ac_delim='%!_!# '
14572for ac_last_try in false false false false false :; do
14573 cat >conf$$subs.sed <<_ACEOF
14574SHELL!$SHELL$ac_delim
14575PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14576PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14577PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14578PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14579PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14580PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14581exec_prefix!$exec_prefix$ac_delim
14582prefix!$prefix$ac_delim
14583program_transform_name!$program_transform_name$ac_delim
14584bindir!$bindir$ac_delim
14585sbindir!$sbindir$ac_delim
14586libexecdir!$libexecdir$ac_delim
14587datarootdir!$datarootdir$ac_delim
14588datadir!$datadir$ac_delim
14589sysconfdir!$sysconfdir$ac_delim
14590sharedstatedir!$sharedstatedir$ac_delim
14591localstatedir!$localstatedir$ac_delim
14592includedir!$includedir$ac_delim
14593oldincludedir!$oldincludedir$ac_delim
14594docdir!$docdir$ac_delim
14595infodir!$infodir$ac_delim
14596htmldir!$htmldir$ac_delim
14597dvidir!$dvidir$ac_delim
14598pdfdir!$pdfdir$ac_delim
14599psdir!$psdir$ac_delim
14600libdir!$libdir$ac_delim
14601localedir!$localedir$ac_delim
14602mandir!$mandir$ac_delim
14603DEFS!$DEFS$ac_delim
14604ECHO_C!$ECHO_C$ac_delim
14605ECHO_N!$ECHO_N$ac_delim
14606ECHO_T!$ECHO_T$ac_delim
14607LIBS!$LIBS$ac_delim
14608build_alias!$build_alias$ac_delim
14609host_alias!$host_alias$ac_delim
14610target_alias!$target_alias$ac_delim
14611CC!$CC$ac_delim
14612CFLAGS!$CFLAGS$ac_delim
14613LDFLAGS!$LDFLAGS$ac_delim
14614CPPFLAGS!$CPPFLAGS$ac_delim
14615ac_ct_CC!$ac_ct_CC$ac_delim
14616EXEEXT!$EXEEXT$ac_delim
14617OBJEXT!$OBJEXT$ac_delim
56efe974 14618subdirs!$subdirs$ac_delim
631ef239 14619MKDEP!$MKDEP$ac_delim
14620MAKEDEPEND!$MAKEDEPEND$ac_delim
14621STDOUT!$STDOUT$ac_delim
14622CPP!$CPP$ac_delim
14623GREP!$GREP$ac_delim
14624EGREP!$EGREP$ac_delim
14625SET_MAKE!$SET_MAKE$ac_delim
14626INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14627INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14628INSTALL_DATA!$INSTALL_DATA$ac_delim
14629RM!$RM$ac_delim
14630CP!$CP$ac_delim
14631MV!$MV$ac_delim
14632LN!$LN$ac_delim
14633SED!$SED$ac_delim
14634AR!$AR$ac_delim
14635LD!$LD$ac_delim
14636RANLIB!$RANLIB$ac_delim
14637TOUCH!$TOUCH$ac_delim
14638YACC!$YACC$ac_delim
14639YFLAGS!$YFLAGS$ac_delim
14640LEX!$LEX$ac_delim
14641LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14642LEXLIB!$LEXLIB$ac_delim
14643CRYPT_LIB!$CRYPT_LIB$ac_delim
14644VICONF!$VICONF$ac_delim
14645ALLOCA!$ALLOCA$ac_delim
14646ENCSPEED!$ENCSPEED$ac_delim
14647ZLIB_LD!$ZLIB_LD$ac_delim
14648ETC_DIR!$ETC_DIR$ac_delim
14649confdir!$confdir$ac_delim
14650LOG_DIR!$LOG_DIR$ac_delim
14651logdir!$logdir$ac_delim
14652HELP_DIR!$HELP_DIR$ac_delim
14653helpdir!$helpdir$ac_delim
14654MODULE_DIR!$MODULE_DIR$ac_delim
14655moduledir!$moduledir$ac_delim
14656SELECT_TYPE!$SELECT_TYPE$ac_delim
631ef239 14657MODULES_LIBS!$MODULES_LIBS$ac_delim
14658MOD_TARGET!$MOD_TARGET$ac_delim
14659SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14660SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14661SSL_LIBS!$SSL_LIBS$ac_delim
14662PICFLAGS!$PICFLAGS$ac_delim
14663IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14664SEDOBJ!$SEDOBJ$ac_delim
14665LIBOBJS!$LIBOBJS$ac_delim
14666LTLIBOBJS!$LTLIBOBJS$ac_delim
14667_ACEOF
14668
56efe974 14669 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
631ef239 14670 break
14671 elif $ac_last_try; then
14672 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14673echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14674 { (exit 1); exit 1; }; }
14675 else
14676 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 14677 fi
631ef239 14678done
212380e3 14679
631ef239 14680ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14681if test -n "$ac_eof"; then
14682 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14683 ac_eof=`expr $ac_eof + 1`
14684fi
14685
14686cat >>$CONFIG_STATUS <<_ACEOF
14687cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14688/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14689_ACEOF
14690sed '
14691s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14692s/^/s,@/; s/!/@,|#_!!_#|/
14693:n
14694t n
14695s/'"$ac_delim"'$/,g/; t
14696s/$/\\/; p
14697N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14698' >>$CONFIG_STATUS <conf$$subs.sed
14699rm -f conf$$subs.sed
14700cat >>$CONFIG_STATUS <<_ACEOF
14701:end
14702s/|#_!!_#|//g
14703CEOF$ac_eof
212380e3 14704_ACEOF
631ef239 14705
14706
14707# VPATH may cause trouble with some makes, so we remove $(srcdir),
14708# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14709# trailing colons and then remove the whole line if VPATH becomes empty
14710# (actually we leave an empty line to preserve line numbers).
14711if test "x$srcdir" = x.; then
14712 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14713s/:*\$(srcdir):*/:/
14714s/:*\${srcdir}:*/:/
14715s/:*@srcdir@:*/:/
14716s/^\([^=]*=[ ]*\):*/\1/
14717s/:*$//
14718s/^[^=]*=[ ]*$//
14719}'
14720fi
14721
212380e3 14722cat >>$CONFIG_STATUS <<\_ACEOF
631ef239 14723fi # test -n "$CONFIG_FILES"
14724
14725
14726for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14727do
14728 case $ac_tag in
14729 :[FHLC]) ac_mode=$ac_tag; continue;;
14730 esac
14731 case $ac_mode$ac_tag in
14732 :[FHL]*:*);;
14733 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14734echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14735 { (exit 1); exit 1; }; };;
14736 :[FH]-) ac_tag=-:-;;
14737 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 14738 esac
631ef239 14739 ac_save_IFS=$IFS
14740 IFS=:
14741 set x $ac_tag
14742 IFS=$ac_save_IFS
14743 shift
14744 ac_file=$1
14745 shift
212380e3 14746
631ef239 14747 case $ac_mode in
14748 :L) ac_source=$1;;
14749 :[FH])
14750 ac_file_inputs=
14751 for ac_f
14752 do
14753 case $ac_f in
14754 -) ac_f="$tmp/stdin";;
14755 *) # Look for the file first in the build tree, then in the source tree
14756 # (if the path is not absolute). The absolute path cannot be DOS-style,
14757 # because $ac_f cannot contain `:'.
14758 test -f "$ac_f" ||
14759 case $ac_f in
14760 [\\/$]*) false;;
14761 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14762 esac ||
14763 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14764echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14765 { (exit 1); exit 1; }; };;
14766 esac
14767 ac_file_inputs="$ac_file_inputs $ac_f"
14768 done
14769
14770 # Let's still pretend it is `configure' which instantiates (i.e., don't
14771 # use $as_me), people would be surprised to read:
14772 # /* config.h. Generated by config.status. */
14773 configure_input="Generated from "`IFS=:
14774 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14775 if test x"$ac_file" != x-; then
14776 configure_input="$ac_file. $configure_input"
14777 { echo "$as_me:$LINENO: creating $ac_file" >&5
14778echo "$as_me: creating $ac_file" >&6;}
14779 fi
14780
14781 case $ac_tag in
14782 *:-:* | *:-) cat >"$tmp/stdin";;
14783 esac
14784 ;;
14785 esac
14786
14787 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3 14788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14789 X"$ac_file" : 'X\(//\)[^/]' \| \
14790 X"$ac_file" : 'X\(//\)$' \| \
631ef239 14791 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 14792echo X"$ac_file" |
631ef239 14793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14794 s//\1/
14795 q
14796 }
14797 /^X\(\/\/\)[^/].*/{
14798 s//\1/
14799 q
14800 }
14801 /^X\(\/\/\)$/{
14802 s//\1/
14803 q
14804 }
14805 /^X\(\/\).*/{
14806 s//\1/
14807 q
14808 }
14809 s/.*/./; q'`
14810 { as_dir="$ac_dir"
14811 case $as_dir in #(
14812 -*) as_dir=./$as_dir;;
14813 esac
14814 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
212380e3 14815 as_dirs=
631ef239 14816 while :; do
14817 case $as_dir in #(
14818 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14819 *) as_qdir=$as_dir;;
14820 esac
14821 as_dirs="'$as_qdir' $as_dirs"
14822 as_dir=`$as_dirname -- "$as_dir" ||
212380e3 14823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14824 X"$as_dir" : 'X\(//\)[^/]' \| \
14825 X"$as_dir" : 'X\(//\)$' \| \
631ef239 14826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 14827echo X"$as_dir" |
631ef239 14828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14829 s//\1/
14830 q
14831 }
14832 /^X\(\/\/\)[^/].*/{
14833 s//\1/
14834 q
14835 }
14836 /^X\(\/\/\)$/{
14837 s//\1/
14838 q
14839 }
14840 /^X\(\/\).*/{
14841 s//\1/
14842 q
14843 }
14844 s/.*/./; q'`
14845 test -d "$as_dir" && break
212380e3 14846 done
631ef239 14847 test -z "$as_dirs" || eval "mkdir $as_dirs"
14848 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14849echo "$as_me: error: cannot create directory $as_dir" >&2;}
212380e3 14850 { (exit 1); exit 1; }; }; }
212380e3 14851 ac_builddir=.
14852
631ef239 14853case "$ac_dir" in
14854.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14855*)
212380e3 14856 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
631ef239 14857 # A ".." for each directory in $ac_dir_suffix.
14858 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14859 case $ac_top_builddir_sub in
14860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14862 esac ;;
14863esac
14864ac_abs_top_builddir=$ac_pwd
14865ac_abs_builddir=$ac_pwd$ac_dir_suffix
14866# for backward compatibility:
14867ac_top_builddir=$ac_top_build_prefix
212380e3 14868
14869case $srcdir in
631ef239 14870 .) # We are building in place.
212380e3 14871 ac_srcdir=.
631ef239 14872 ac_top_srcdir=$ac_top_builddir_sub
14873 ac_abs_top_srcdir=$ac_pwd ;;
14874 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 14875 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239 14876 ac_top_srcdir=$srcdir
14877 ac_abs_top_srcdir=$srcdir ;;
14878 *) # Relative name.
14879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14880 ac_top_srcdir=$ac_top_build_prefix$srcdir
14881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 14882esac
631ef239 14883ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 14884
212380e3 14885
631ef239 14886 case $ac_mode in
14887 :F)
14888 #
14889 # CONFIG_FILE
14890 #
212380e3 14891
14892 case $INSTALL in
14893 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 14894 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 14895 esac
631ef239 14896_ACEOF
212380e3 14897
631ef239 14898cat >>$CONFIG_STATUS <<\_ACEOF
14899# If the template does not know about datarootdir, expand it.
14900# FIXME: This hack should be removed a few years after 2.60.
14901ac_datarootdir_hack=; ac_datarootdir_seen=
14902
14903case `sed -n '/datarootdir/ {
14904 p
14905 q
14906}
14907/@datadir@/p
14908/@docdir@/p
14909/@infodir@/p
14910/@localedir@/p
14911/@mandir@/p
14912' $ac_file_inputs` in
14913*datarootdir*) ac_datarootdir_seen=yes;;
14914*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14915 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14916echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14917_ACEOF
14918cat >>$CONFIG_STATUS <<_ACEOF
14919 ac_datarootdir_hack='
14920 s&@datadir@&$datadir&g
14921 s&@docdir@&$docdir&g
14922 s&@infodir@&$infodir&g
14923 s&@localedir@&$localedir&g
14924 s&@mandir@&$mandir&g
14925 s&\\\${datarootdir}&$datarootdir&g' ;;
14926esac
212380e3 14927_ACEOF
631ef239 14928
14929# Neutralize VPATH when `$srcdir' = `.'.
14930# Shell code in configure.ac might set extrasub.
14931# FIXME: do we really want to maintain this feature?
212380e3 14932cat >>$CONFIG_STATUS <<_ACEOF
14933 sed "$ac_vpsub
14934$extrasub
14935_ACEOF
14936cat >>$CONFIG_STATUS <<\_ACEOF
14937:t
14938/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
631ef239 14939s&@configure_input@&$configure_input&;t t
14940s&@top_builddir@&$ac_top_builddir_sub&;t t
14941s&@srcdir@&$ac_srcdir&;t t
14942s&@abs_srcdir@&$ac_abs_srcdir&;t t
14943s&@top_srcdir@&$ac_top_srcdir&;t t
14944s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14945s&@builddir@&$ac_builddir&;t t
14946s&@abs_builddir@&$ac_abs_builddir&;t t
14947s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14948s&@INSTALL@&$ac_INSTALL&;t t
14949$ac_datarootdir_hack
14950" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
14951
14952test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14953 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14954 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14955 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14956which seems to be undefined. Please make sure it is defined." >&5
14957echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14958which seems to be undefined. Please make sure it is defined." >&2;}
14959
14960 rm -f "$tmp/stdin"
212380e3 14961 case $ac_file in
631ef239 14962 -) cat "$tmp/out"; rm -f "$tmp/out";;
14963 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
212380e3 14964 esac
631ef239 14965 ;;
14966 :H)
14967 #
14968 # CONFIG_HEADER
14969 #
14970_ACEOF
14971
14972# Transform confdefs.h into a sed script `conftest.defines', that
14973# substitutes the proper values into config.h.in to produce config.h.
14974rm -f conftest.defines conftest.tail
14975# First, append a space to every undef/define line, to ease matching.
14976echo 's/$/ /' >conftest.defines
14977# Then, protect against being on the right side of a sed subst, or in
14978# an unquoted here document, in config.status. If some macros were
14979# called several times there might be several #defines for the same
14980# symbol, which is useless. But do not sort them, since the last
14981# AC_DEFINE must be honored.
14982ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14983# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14984# NAME is the cpp macro being defined, VALUE is the value it is being given.
14985# PARAMS is the parameter list in the macro definition--in most cases, it's
14986# just an empty string.
14987ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14988ac_dB='\\)[ (].*,\\1define\\2'
14989ac_dC=' '
14990ac_dD=' ,'
14991
14992uniq confdefs.h |
14993 sed -n '
14994 t rset
14995 :rset
14996 s/^[ ]*#[ ]*define[ ][ ]*//
14997 t ok
14998 d
14999 :ok
15000 s/[\\&,]/\\&/g
15001 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15002 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15003 ' >>conftest.defines
15004
15005# Remove the space that was appended to ease matching.
15006# Then replace #undef with comments. This is necessary, for
212380e3 15007# example, in the case of _POSIX_SOURCE, which is predefined and required
15008# on some systems where configure will not decide to define it.
631ef239 15009# (The regexp can be short, since the line contains either #define or #undef.)
15010echo 's/ $//
15011s,^[ #]*u.*,/* & */,' >>conftest.defines
15012
15013# Break up conftest.defines:
15014ac_max_sed_lines=50
15015
15016# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15017# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15018# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15019# et cetera.
15020ac_in='$ac_file_inputs'
15021ac_out='"$tmp/out1"'
15022ac_nxt='"$tmp/out2"'
15023
15024while :
212380e3 15025do
631ef239 15026 # Write a here document:
15027 cat >>$CONFIG_STATUS <<_ACEOF
15028 # First, check the format of the line:
15029 cat >"\$tmp/defines.sed" <<\\CEOF
15030/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15031/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15032b
15033:def
15034_ACEOF
15035 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
212380e3 15036 echo 'CEOF
631ef239 15037 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15038 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15039 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15040 grep . conftest.tail >/dev/null || break
212380e3 15041 rm -f conftest.defines
15042 mv conftest.tail conftest.defines
15043done
631ef239 15044rm -f conftest.defines conftest.tail
212380e3 15045
631ef239 15046echo "ac_result=$ac_in" >>$CONFIG_STATUS
212380e3 15047cat >>$CONFIG_STATUS <<\_ACEOF
212380e3 15048 if test x"$ac_file" != x-; then
631ef239 15049 echo "/* $configure_input */" >"$tmp/config.h"
15050 cat "$ac_result" >>"$tmp/config.h"
15051 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
212380e3 15052 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15053echo "$as_me: $ac_file is unchanged" >&6;}
15054 else
212380e3 15055 rm -f $ac_file
631ef239 15056 mv "$tmp/config.h" $ac_file
212380e3 15057 fi
15058 else
631ef239 15059 echo "/* $configure_input */"
15060 cat "$ac_result"
212380e3 15061 fi
631ef239 15062 rm -f "$tmp/out12"
15063 ;;
15064
15065
15066 esac
15067
15068done # for ac_tag
212380e3 15069
212380e3 15070
15071{ (exit 0); exit 0; }
15072_ACEOF
15073chmod +x $CONFIG_STATUS
15074ac_clean_files=$ac_clean_files_save
15075
15076
15077# configure is writing to config.log, and then calls config.status.
15078# config.status does its own redirection, appending to config.log.
15079# Unfortunately, on DOS this fails, as config.log is still kept open
15080# by configure, so config.status won't be able to write to it; its
15081# output is simply discarded. So we exec the FD to /dev/null,
15082# effectively closing config.log, so it can be properly (re)opened and
15083# appended to by config.status. When coming back to configure, we
15084# need to make the FD available again.
15085if test "$no_create" != yes; then
15086 ac_cs_success=:
15087 ac_config_status_args=
15088 test "$silent" = yes &&
15089 ac_config_status_args="$ac_config_status_args --quiet"
15090 exec 5>/dev/null
15091 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15092 exec 5>>config.log
15093 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15094 # would make configure fail if this is the last instruction.
15095 $ac_cs_success || { (exit 1); exit 1; }
15096fi
15097
56efe974
WP
15098#
15099# CONFIG_SUBDIRS section.
15100#
15101if test "$no_recursion" != yes; then
15102
15103 # Remove --cache-file and --srcdir arguments so they do not pile up.
15104 ac_sub_configure_args=
15105 ac_prev=
15106 eval "set x $ac_configure_args"
15107 shift
15108 for ac_arg
15109 do
15110 if test -n "$ac_prev"; then
15111 ac_prev=
15112 continue
15113 fi
15114 case $ac_arg in
15115 -cache-file | --cache-file | --cache-fil | --cache-fi \
15116 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15117 ac_prev=cache_file ;;
15118 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15119 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15120 | --c=*)
15121 ;;
15122 --config-cache | -C)
15123 ;;
15124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15125 ac_prev=srcdir ;;
15126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15127 ;;
15128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15129 ac_prev=prefix ;;
15130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15131 ;;
15132 *)
15133 case $ac_arg in
15134 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15135 esac
15136 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15137 esac
15138 done
15139
15140 # Always prepend --prefix to ensure using the same prefix
15141 # in subdir configurations.
15142 ac_arg="--prefix=$prefix"
15143 case $ac_arg in
15144 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15145 esac
15146 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15147
15148 # Pass --silent
15149 if test "$silent" = yes; then
15150 ac_sub_configure_args="--silent $ac_sub_configure_args"
15151 fi
15152
15153 ac_popdir=`pwd`
15154 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15155
15156 # Do not complain, so a configure script can configure whichever
15157 # parts of a large source tree are present.
15158 test -d "$srcdir/$ac_dir" || continue
15159
15160 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15161 echo "$as_me:$LINENO: $ac_msg" >&5
15162 echo "$ac_msg" >&6
15163 { as_dir="$ac_dir"
15164 case $as_dir in #(
15165 -*) as_dir=./$as_dir;;
15166 esac
15167 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15168 as_dirs=
15169 while :; do
15170 case $as_dir in #(
15171 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15172 *) as_qdir=$as_dir;;
15173 esac
15174 as_dirs="'$as_qdir' $as_dirs"
15175 as_dir=`$as_dirname -- "$as_dir" ||
15176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15177 X"$as_dir" : 'X\(//\)[^/]' \| \
15178 X"$as_dir" : 'X\(//\)$' \| \
15179 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15180echo X"$as_dir" |
15181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15182 s//\1/
15183 q
15184 }
15185 /^X\(\/\/\)[^/].*/{
15186 s//\1/
15187 q
15188 }
15189 /^X\(\/\/\)$/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\).*/{
15194 s//\1/
15195 q
15196 }
15197 s/.*/./; q'`
15198 test -d "$as_dir" && break
15199 done
15200 test -z "$as_dirs" || eval "mkdir $as_dirs"
15201 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15202echo "$as_me: error: cannot create directory $as_dir" >&2;}
15203 { (exit 1); exit 1; }; }; }
15204 ac_builddir=.
15205
15206case "$ac_dir" in
15207.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15208*)
15209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15210 # A ".." for each directory in $ac_dir_suffix.
15211 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15212 case $ac_top_builddir_sub in
15213 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15214 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15215 esac ;;
15216esac
15217ac_abs_top_builddir=$ac_pwd
15218ac_abs_builddir=$ac_pwd$ac_dir_suffix
15219# for backward compatibility:
15220ac_top_builddir=$ac_top_build_prefix
15221
15222case $srcdir in
15223 .) # We are building in place.
15224 ac_srcdir=.
15225 ac_top_srcdir=$ac_top_builddir_sub
15226 ac_abs_top_srcdir=$ac_pwd ;;
15227 [\\/]* | ?:[\\/]* ) # Absolute name.
15228 ac_srcdir=$srcdir$ac_dir_suffix;
15229 ac_top_srcdir=$srcdir
15230 ac_abs_top_srcdir=$srcdir ;;
15231 *) # Relative name.
15232 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15233 ac_top_srcdir=$ac_top_build_prefix$srcdir
15234 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15235esac
15236ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15237
15238
15239 cd "$ac_dir"
15240
15241 # Check for guested configure; otherwise get Cygnus style configure.
15242 if test -f "$ac_srcdir/configure.gnu"; then
15243 ac_sub_configure=$ac_srcdir/configure.gnu
15244 elif test -f "$ac_srcdir/configure"; then
15245 ac_sub_configure=$ac_srcdir/configure
15246 elif test -f "$ac_srcdir/configure.in"; then
15247 # This should be Cygnus configure.
15248 ac_sub_configure=$ac_aux_dir/configure
15249 else
15250 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15251echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15252 ac_sub_configure=
15253 fi
15254
15255 # The recursion is here.
15256 if test -n "$ac_sub_configure"; then
15257 # Make the cache file name correct relative to the subdirectory.
15258 case $cache_file in
15259 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15260 *) # Relative name.
15261 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15262 esac
15263
15264 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15265echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15266 # The eval makes quoting arguments work.
15267 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15268 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15269 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15270echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15271 { (exit 1); exit 1; }; }
15272 fi
15273
15274 cd "$ac_popdir"
15275 done
15276fi
15277
212380e3 15278
15279if test "$cf_openssl_version_ok" = yes; then
15280 openssl="yes"
15281else
15282 openssl="no"
15283fi
15284
15285if test "$shared_modules" = yes; then
15286 modules=shared
15287else
15288 modules=static
15289fi
15290
15291echo "
15292Configuration:
15293 Install directory : $prefix
15294
15295 Ziplinks : $zlib
15296 OpenSSL : $openssl
212380e3 15297 Socket Engine : $SELECT_TYPE
15298 Small network : $small_net
15299 Block allocator : $balloc
212380e3 15300
15301 Nickname length : $NICKLEN
15302 Topic length : $TOPICLEN
15303
b67253e1 15304Use (g)make to compile Charybdis, then (g)make install to install it.
212380e3 15305"