]> jfr.im git - solanum.git/blame - configure
oops have to have a space
[solanum.git] / configure
CommitLineData
212380e3
AC
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
b676ea3b 3# Generated by GNU Autoconf 2.61 for charybdis 2.3.0.
212380e3 4#
b676ea3b 5# $Id: configure.ac 3516 2007-06-10 16:14:03Z jilles $
212380e3 6#
631ef239
AC
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
212380e3
AC
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
AC
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
212380e3
AC
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
AC
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
AC
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
AC
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
AC
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
212380e3
AC
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
AC
114 fi
115done
116
117# Required to use basename.
631ef239
AC
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
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
AC
126 as_basename=basename
127else
128 as_basename=false
129fi
130
131
132# Name of the executable.
631ef239 133as_me=`$as_basename -- "$0" ||
212380e3
AC
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
631ef239 136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 137echo X/"$0" |
631ef239
AC
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
AC
152# CDPATH.
153$as_unset CDPATH
212380e3 154
212380e3 155
631ef239
AC
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
AC
161fi
162
631ef239
AC
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
AC
180exitcode=0
181if as_func_success; then
182 :
183else
184 exitcode=1
185 echo as_func_success failed.
186fi
212380e3 187
631ef239
AC
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
AC
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
AC
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
AC
330 as_lineno_1=$LINENO
331 as_lineno_2=$LINENO
212380e3 332 test "x$as_lineno_1" != "x$as_lineno_2" &&
631ef239
AC
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
AC
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
AC
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
AC
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
AC
445 s/[$]LINENO.*/&-/
446 t lineno
447 b
448 :lineno
212380e3 449 N
631ef239
AC
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
AC
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
AC
461 # original and so on. Autoconf is especially sensitive to this).
462 . "./$as_me.lineno"
212380e3
AC
463 # Exit status is that of the last command.
464 exit
465}
466
467
631ef239
AC
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
AC
483esac
484
631ef239
AC
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
487 as_expr=expr
488else
489 as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
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
AC
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
631ef239
AC
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
AC
508elif ln conf$$.file conf$$ 2>/dev/null; then
509 as_ln_s=ln
510else
511 as_ln_s='cp -p'
512fi
631ef239
AC
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
212380e3
AC
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
AC
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
AC
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
AC
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
AC
561#
562# Initializations.
563#
564ac_default_prefix=/usr/local
631ef239 565ac_clean_files=
212380e3 566ac_config_libobj_dir=.
631ef239 567LIBOBJS=
212380e3
AC
568cross_compiling=no
569subdirs=
570MFLAGS=
571MAKEFLAGS=
572SHELL=${CONFIG_SHELL-/bin/sh}
573
212380e3
AC
574# Identity of this package.
575PACKAGE_NAME='charybdis'
576PACKAGE_TARNAME='charybdis'
b676ea3b
AC
577PACKAGE_VERSION='2.3.0'
578PACKAGE_STRING='charybdis 2.3.0'
212380e3
AC
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
AC
586# include <sys/types.h>
587#endif
631ef239 588#ifdef HAVE_SYS_STAT_H
212380e3
AC
589# include <sys/stat.h>
590#endif
631ef239 591#ifdef STDC_HEADERS
212380e3
AC
592# include <stdlib.h>
593# include <stddef.h>
594#else
631ef239 595# ifdef HAVE_STDLIB_H
212380e3
AC
596# include <stdlib.h>
597# endif
598#endif
631ef239
AC
599#ifdef HAVE_STRING_H
600# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
212380e3
AC
601# include <memory.h>
602# endif
603# include <string.h>
604#endif
631ef239 605#ifdef HAVE_STRINGS_H
212380e3
AC
606# include <strings.h>
607#endif
631ef239 608#ifdef HAVE_INTTYPES_H
212380e3 609# include <inttypes.h>
212380e3 610#endif
631ef239
AC
611#ifdef HAVE_STDINT_H
612# include <stdint.h>
613#endif
614#ifdef HAVE_UNISTD_H
212380e3
AC
615# include <unistd.h>
616#endif"
617
631ef239
AC
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
b676ea3b 662subdirs
631ef239
AC
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
AC
701MODULES_LIBS
702MOD_TARGET
703SSL_SRCS_ENABLE
704SSL_INCLUDES
705SSL_LIBS
706PICFLAGS
707IRC_CFLAGS
708SEDOBJ
709LIBOBJS
710LTLIBOBJS'
212380e3 711ac_subst_files=''
631ef239
AC
712 ac_precious_vars='build_alias
713host_alias
714target_alias
715CC
716CFLAGS
717LDFLAGS
718LIBS
719CPPFLAGS
720CPP
721YACC
722YFLAGS'
b676ea3b 723ac_subdirs_all='libratbox'
212380e3
AC
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
AC
751bindir='${exec_prefix}/bin'
752sbindir='${exec_prefix}/sbin'
753libexecdir='${exec_prefix}/libexec'
631ef239
AC
754datarootdir='${prefix}/share'
755datadir='${datarootdir}'
212380e3
AC
756sysconfdir='${prefix}/etc'
757sharedstatedir='${prefix}/com'
758localstatedir='${prefix}/var'
212380e3
AC
759includedir='${prefix}/include'
760oldincludedir='/usr/include'
631ef239
AC
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
AC
770
771ac_prev=
631ef239 772ac_dashdash=
212380e3
AC
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
AC
778 ac_prev=
779 continue
780 fi
781
631ef239
AC
782 case $ac_option in
783 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
784 *) ac_optarg=yes ;;
785 esac
212380e3
AC
786
787 # Accept the important Cygnus configure options, so we can diagnose typos.
788
631ef239
AC
789 case $ac_dashdash$ac_option in
790 --)
791 ac_dashdash=yes ;;
212380e3
AC
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
AC
816 datadir=$ac_optarg ;;
817
631ef239
AC
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
AC
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
AC
829 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
830 { (exit 1); exit 1; }; }
631ef239
AC
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
AC
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
AC
848 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
849 { (exit 1); exit 1; }; }
631ef239
AC
850 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
851 eval enable_$ac_feature=\$ac_optarg ;;
212380e3
AC
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
AC
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
AC
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
AC
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
AC
915 ac_prev=localstatedir ;;
916 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
631ef239 917 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
212380e3
AC
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
AC
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
AC
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
AC
1045 { echo "$as_me: error: invalid package name: $ac_package" >&2
1046 { (exit 1); exit 1; }; }
631ef239
AC
1047 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1048 eval with_$ac_package=\$ac_optarg ;;
212380e3
AC
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
AC
1054 { echo "$as_me: error: invalid package name: $ac_package" >&2
1055 { (exit 1); exit 1; }; }
631ef239
AC
1056 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1057 eval with_$ac_package=no ;;
212380e3
AC
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
AC
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
AC
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
AC
1116 [\\/$]* | ?:[\\/]* ) continue;;
1117 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
212380e3 1118 esac
631ef239
AC
1119 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1120 { (exit 1); exit 1; }; }
212380e3
AC
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
AC
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
AC
1160 # Try the directory containing this script, then the parent directory.
1161 ac_confdir=`$as_dirname -- "$0" ||
212380e3
AC
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
AC
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
AC
1186 srcdir=..
1187 fi
1188else
1189 ac_srcdir_defaulted=no
1190fi
631ef239
AC
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
AC
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
AC
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
AC
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
b676ea3b 1225\`configure' configures charybdis 2.3.0 to adapt to many kinds of systems.
212380e3
AC
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
AC
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
AC
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
AC
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
AC
1278_ACEOF
1279
1280 cat <<\_ACEOF
1281_ACEOF
1282fi
1283
1284if test -n "$ac_init_help"; then
1285 case $ac_init_help in
b676ea3b 1286 short | recursive ) echo "Configuration of charybdis 2.3.0:";;
212380e3
AC
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
AC
1295 --disable-openssl Disable OpenSSL support.
1296 --disable-zlib Disable ziplinks support
c1c5fdc4 1297 --enable-ports Force solaris I/O ports subsystem usage.
212380e3
AC
1298 --enable-poll Force poll() usage.
1299 --enable-select Force select() usage.
1300 --enable-kqueue Force kqueue() usage.
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
1348 ac_builddir=.
1349
631ef239
AC
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
AC
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
AC
1365
1366case $srcdir in
631ef239 1367 .) # We are building in place.
212380e3 1368 ac_srcdir=.
631ef239
AC
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
AC
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
AC
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
AC
1390 else
1391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
631ef239
AC
1392 fi || ac_status=$?
1393 cd "$ac_pwd" || { ac_status=$?; break; }
212380e3
AC
1394 done
1395fi
1396
631ef239 1397test -n "$ac_init_help" && exit $ac_status
212380e3
AC
1398if $ac_init_version; then
1399 cat <<\_ACEOF
b676ea3b 1400charybdis configure 2.3.0
631ef239 1401generated by GNU Autoconf 2.61
212380e3 1402
631ef239
AC
1403Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14042002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
212380e3
AC
1405This configure script is free software; the Free Software Foundation
1406gives unlimited permission to copy, distribute and modify it.
1407
b676ea3b 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
AC
1413This file contains any messages produced by compilers while
1414running configure, to aid debugging if configure makes a mistake.
1415
b676ea3b 1416It was created by charybdis $as_me 2.3.0, which was
631ef239 1417generated by GNU Autoconf 2.61. Invocation command line was
212380e3
AC
1418
1419 $ $0 $@
1420
1421_ACEOF
631ef239 1422exec 5>>config.log
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
1550 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1551 *${as_nl}ac_space=\ *)
212380e3 1552 sed -n \
631ef239
AC
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
AC
1559 esac |
1560 sort
1561)
212380e3
AC
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
AC
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
AC
1577 done | sort
1578 echo
1579
1580 if test -n "$ac_subst_files"; then
1581 cat <<\_ASBOX
631ef239
AC
1582## ------------------- ##
1583## File substitutions. ##
1584## ------------------- ##
212380e3
AC
1585_ASBOX
1586 echo
1587 for ac_var in $ac_subst_files
1588 do
631ef239
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
1661shift
1662for ac_site_file
1663do
212380e3
AC
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
AC
1679 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1680 *) . "./$cache_file";;
212380e3
AC
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
AC
1693 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1694 eval ac_new_set=\$ac_env_${ac_var}_set
631ef239
AC
1695 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1696 eval ac_new_val=\$ac_env_${ac_var}_value
212380e3
AC
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
AC
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
AC
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
AC
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
AC
1767
1768
1769
631ef239 1770ac_config_headers="$ac_config_headers include/setup.h"
212380e3
AC
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
AC
1791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
1813
1814fi
1815fi
1816CC=$ac_cv_prog_CC
1817if test -n "$CC"; then
631ef239
AC
1818 { echo "$as_me:$LINENO: result: $CC" >&5
1819echo "${ECHO_T}$CC" >&6; }
212380e3 1820else
631ef239
AC
1821 { echo "$as_me:$LINENO: result: no" >&5
1822echo "${ECHO_T}no" >&6; }
212380e3
AC
1823fi
1824
631ef239 1825
212380e3
AC
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
AC
1831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
1853
1854fi
1855fi
1856ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857if test -n "$ac_ct_CC"; then
631ef239
AC
1858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859echo "${ECHO_T}$ac_ct_CC" >&6; }
212380e3 1860else
631ef239
AC
1861 { echo "$as_me:$LINENO: result: no" >&5
1862echo "${ECHO_T}no" >&6; }
212380e3
AC
1863fi
1864
631ef239
AC
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
AC
1880else
1881 CC="$ac_cv_prog_CC"
1882fi
1883
1884if test -z "$CC"; then
631ef239
AC
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
AC
1888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
1910
1911fi
1912fi
1913CC=$ac_cv_prog_CC
1914if test -n "$CC"; then
631ef239
AC
1915 { echo "$as_me:$LINENO: result: $CC" >&5
1916echo "${ECHO_T}$CC" >&6; }
212380e3 1917else
631ef239
AC
1918 { echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6; }
212380e3
AC
1920fi
1921
212380e3 1922
631ef239 1923 fi
212380e3
AC
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
AC
1928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
1972 { echo "$as_me:$LINENO: result: $CC" >&5
1973echo "${ECHO_T}$CC" >&6; }
212380e3 1974else
631ef239
AC
1975 { echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6; }
212380e3
AC
1977fi
1978
631ef239 1979
212380e3
AC
1980fi
1981if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
631ef239 1983 for ac_prog in cl.exe
212380e3
AC
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
AC
1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
631ef239
AC
2014 { echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6; }
212380e3 2016else
631ef239
AC
2017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
212380e3
AC
2019fi
2020
631ef239 2021
212380e3
AC
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
AC
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
AC
2031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
2053
2054fi
2055fi
2056ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057if test -n "$ac_ct_CC"; then
631ef239
AC
2058 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059echo "${ECHO_T}$ac_ct_CC" >&6; }
212380e3 2060else
631ef239
AC
2061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
212380e3
AC
2063fi
2064
631ef239 2065
212380e3
AC
2066 test -n "$ac_ct_CC" && break
2067done
2068
631ef239
AC
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
AC
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
AC
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
AC
2105 ac_status=$?
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
631ef239
AC
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
AC
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
631ef239
AC
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
AC
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
AC
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
AC
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
AC
2178 ac_status=$?
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
631ef239
AC
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
AC
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
AC
2191 ;;
2192 [ab].out )
2193 # We found the default executable, but exeext='' is most
2194 # certainly right.
2195 break;;
2196 *.* )
631ef239
AC
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
AC
2206 break;;
2207 * )
2208 break;;
2209 esac
2210done
631ef239
AC
2211test "$ac_cv_exeext" = no && ac_cv_exeext=
2212
212380e3 2213else
631ef239
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
2264{ echo "$as_me:$LINENO: result: yes" >&5
2265echo "${ECHO_T}yes" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
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
AC
2310{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2311echo "${ECHO_T}$ac_cv_exeext" >&6; }
212380e3
AC
2312
2313rm -f conftest.$ac_ext
2314EXEEXT=$ac_cv_exeext
2315ac_exeext=$EXEEXT
631ef239
AC
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
AC
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
AC
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
AC
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; then
631ef239
AC
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
AC
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
AC
2368{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2369echo "${ECHO_T}$ac_cv_objext" >&6; }
212380e3
AC
2370OBJEXT=$ac_cv_objext
2371ac_objext=$OBJEXT
631ef239
AC
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
AC
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
AC
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
AC
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
AC
2408 (exit $ac_status); } && {
2409 test -z "$ac_c_werror_flag" ||
2410 test ! -s conftest.err
2411 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
2419
2420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
2421ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422
2423fi
631ef239
AC
2424{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
212380e3
AC
2426GCC=`test $ac_compiler_gnu = yes && echo yes`
2427ac_test_CFLAGS=${CFLAGS+set}
2428ac_save_CFLAGS=$CFLAGS
631ef239
AC
2429{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
212380e3
AC
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
631ef239
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
2543 (exit $ac_status); } && {
2544 test -z "$ac_c_werror_flag" ||
2545 test ! -s conftest.err
2546 } && test -s conftest.$ac_objext; then
212380e3
AC
2547 ac_cv_prog_cc_g=yes
2548else
2549 echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
631ef239
AC
2552
2553fi
2554
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 2556fi
631ef239
AC
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
AC
2564{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2565echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
212380e3
AC
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
AC
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
AC
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585else
631ef239 2586 ac_cv_prog_cc_c89=no
212380e3
AC
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
AC
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
AC
2624int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2625
631ef239
AC
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
AC
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
AC
2645for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2646 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
212380e3
AC
2647do
2648 CC="$ac_save_CC $ac_arg"
2649 rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
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
AC
2667else
2668 echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
631ef239 2671
212380e3 2672fi
631ef239
AC
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
AC
2678CC=$ac_save_CC
2679
2680fi
631ef239
AC
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
AC
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
AC
2693esac
2694
212380e3 2695
212380e3
AC
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
b676ea3b
AC
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
AC
2745
2746if test "$ac_cv_c_compiler_gnu" != yes; then
2747
2748SGS=no
631ef239
AC
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
AC
2751case `$CC -version 2>&1` in
2752*TenDRA*)
631ef239
AC
2753 { echo "$as_me:$LINENO: result: yes, TenDRA" >&5
2754echo "${ECHO_T}yes, TenDRA" >&6; }
212380e3
AC
2755 IRC_CFLAGS=""
2756 CPPFLAGS="$CPPFLAGS -Ylonglong -Yansi -I/usr/include"
2757 SGS=yes
2758 TenDRA=yes
2759;;
2760*MIPSpro*)
631ef239
AC
2761 { echo "$as_me:$LINENO: result: yes, MIPSpro" >&5
2762echo "${ECHO_T}yes, MIPSpro" >&6; }
212380e3
AC
2763 MIPSpro=yes
2764 SGS=yes
2765;;
2766*)
631ef239
AC
2767 { echo "$as_me:$LINENO: result: no" >&5
2768echo "${ECHO_T}no" >&6; }
212380e3
AC
2769 TenDRA=no
2770 MIPSpro=no
2771;;
2772esac
2773
631ef239
AC
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
AC
2776case `$CC -V 2>&1` in
2777*Sun*WorkShop* | *Forte*Developer*)
631ef239
AC
2778 { echo "$as_me:$LINENO: result: Sun Workshop/Forte" >&5
2779echo "${ECHO_T}Sun Workshop/Forte" >&6; }
212380e3
AC
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
AC
2785 { echo "$as_me:$LINENO: result: Tru64 cc" >&5
2786echo "${ECHO_T}Tru64 cc" >&6; }
212380e3
AC
2787 IRC_CFLAGS="-O2"
2788 CPPFLAGS="-I/usr/local/include"
2789 Tru=yes
2790;;
2791*HP*ANSI*)
631ef239
AC
2792 { echo "$as_me:$LINENO: result: HPUX cc" >&5
2793echo "${ECHO_T}HPUX cc" >&6; }
212380e3
AC
2794 HPUX=yes
2795 IRC_CFLAGS="+e"
2796;;
2797*)
631ef239
AC
2798 { echo "$as_me:$LINENO: result: no" >&5
2799echo "${ECHO_T}no" >&6; }
212380e3
AC
2800;;
2801esac
2802
2803fi
2804
631ef239
AC
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
AC
2807OSNAME=`uname -s`
2808case "$OSNAME" in
2809 HP-UX*)
2810
2811 if test "$HPUX" != yes -a "$ac_cv_c_compiler_gnu" = no; then
631ef239
AC
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
AC
2814 IRC_CFLAGS="$IRC_CFLAGS +e"
2815 HPUX=yes
2816 else
631ef239
AC
2817 { echo "$as_me:$LINENO: result: already using newer HPUX" >&5
2818echo "${ECHO_T}already using newer HPUX" >&6; }
212380e3
AC
2819 fi
2820 ;;
2821 CYGWIN*)
631ef239
AC
2822 { echo "$as_me:$LINENO: result: Cygwin" >&5
2823echo "${ECHO_T}Cygwin" >&6; }
212380e3
AC
2824 CYGWIN=yes
2825 ;;
2826 SunOS*)
631ef239
AC
2827 { echo "$as_me:$LINENO: result: SunOS or Solaris" >&5
2828echo "${ECHO_T}SunOS or Solaris" >&6; }
212380e3
AC
2829
2830cat >>confdefs.h <<\_ACEOF
2831#define __EXTENSIONS__ 1
2832_ACEOF
2833
2834 SUN=yes
2835 ;;
2836 AIX*)
631ef239
AC
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
AC
2839 IRC_CFLAGS="$IRC_CFLAGS -Wl,-brtl -Wl,-G"
2840 ;;
2841 *)
631ef239
AC
2842 { echo "$as_me:$LINENO: result: no" >&5
2843echo "${ECHO_T}no" >&6; }
212380e3
AC
2844 ;;
2845esac
2846
2847if test "$ac_cv_c_compiler_gnu" = yes; then
631ef239
AC
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
AC
2850
2851 case `$CC -v 2>&1 | tail -n 1` in
2852 *Apple*)
631ef239
AC
2853 { echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6; }
212380e3
AC
2855 AppleGCC=yes
2856 ;;
2857 *)
631ef239
AC
2858 { echo "$as_me:$LINENO: result: no" >&5
2859echo "${ECHO_T}no" >&6; }
212380e3
AC
2860 AppleGCC=no
2861 ;;
2862 esac
2863
2864 IRC_CFLAGS="$IRC_CFLAGS -O0 -Wall"
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
AC
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
AC
2878 { echo "$as_me:$LINENO: result: yes" >&5
2879echo "${ECHO_T}yes" >&6; }
212380e3 2880else
631ef239
AC
2881 { echo "$as_me:$LINENO: result: no" >&5
2882echo "${ECHO_T}no" >&6; }
212380e3
AC
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
AC
2887{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
2911
2912 ;;
2913esac
2914fi
2915MKDEP=$ac_cv_path_MKDEP
212380e3 2916if test -n "$MKDEP"; then
631ef239
AC
2917 { echo "$as_me:$LINENO: result: $MKDEP" >&5
2918echo "${ECHO_T}$MKDEP" >&6; }
212380e3 2919else
631ef239
AC
2920 { echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6; }
212380e3
AC
2922fi
2923
631ef239 2924
212380e3
AC
2925# Extract the first word of "makedepend", so it can be a program name with args.
2926set dummy makedepend; ac_word=$2
631ef239
AC
2927{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
2951
2952 ;;
2953esac
2954fi
2955MAKEDEPEND=$ac_cv_path_MAKEDEPEND
212380e3 2956if test -n "$MAKEDEPEND"; then
631ef239
AC
2957 { echo "$as_me:$LINENO: result: $MAKEDEPEND" >&5
2958echo "${ECHO_T}$MAKEDEPEND" >&6; }
212380e3 2959else
631ef239
AC
2960 { echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6; }
212380e3
AC
2962fi
2963
2964
631ef239
AC
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
AC
2968
2969STDOUT="> .depend"
2970
2971if test "$ac_cv_c_compiler_gnu" = yes; then
631ef239
AC
2972 { echo "$as_me:$LINENO: result: gcc -MM" >&5
2973echo "${ECHO_T}gcc -MM" >&6; }
212380e3
AC
2974 MKDEP="$CC -MM"
2975elif test ! -z "$MKDEP"; then
631ef239
AC
2976 { echo "$as_me:$LINENO: result: mkdep" >&5
2977echo "${ECHO_T}mkdep" >&6; }
212380e3
AC
2978
2979 if test -z "$Tru"; then
2980 STDOUT=""
2981 else
2982 STDOUT=" 2> /dev/null"
2983 fi
2984elif test "$SunWorkShop" = yes; then
631ef239
AC
2985 { echo "$as_me:$LINENO: result: $CC -xM" >&5
2986echo "${ECHO_T}$CC -xM" >&6; }
212380e3
AC
2987 MKDEP="$CC -xM"
2988 STDOUT="> .depend 2> /dev/null"
2989elif test ! -z "$MAKEDEPEND"; then
631ef239
AC
2990 { echo "$as_me:$LINENO: result: makedepend" >&5
2991echo "${ECHO_T}makedepend" >&6; }
212380e3
AC
2992 MKDEP="$MAKEDEPEND -f-"
2993else
631ef239
AC
2994 { echo "$as_me:$LINENO: result: nothing suitable.. forget it!" >&5
2995echo "${ECHO_T}nothing suitable.. forget it!" >&6; }
212380e3
AC
2996 MKDEP=":"
2997fi
2998
2999
3000
3001
631ef239
AC
3002{ echo "$as_me:$LINENO: checking for /dev/null" >&5
3003echo $ECHO_N "checking for /dev/null... $ECHO_C" >&6; }
212380e3
AC
3004if test -c /dev/null ; then
3005
3006cat >>confdefs.h <<\_ACEOF
3007#define PATH_DEVNULL "/dev/null"
3008_ACEOF
3009
631ef239
AC
3010 { echo "$as_me:$LINENO: result: yes" >&5
3011echo "${ECHO_T}yes" >&6; }
212380e3
AC
3012else
3013
3014cat >>confdefs.h <<\_ACEOF
3015#define PATH_DEVNULL "devnull.log"
3016_ACEOF
3017
631ef239
AC
3018 { echo "$as_me:$LINENO: result: no - using devnull.log" >&5
3019echo "${ECHO_T}no - using devnull.log" >&6; }
212380e3
AC
3020fi
3021
3022if test ! -z "$CFLAGS"; then
3023 IRC_CFLAGS="$IRC_CFLAGS $CFLAGS"
3024fi
3025
3026
631ef239
AC
3027{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
3028echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
3043#ifdef __cplusplus
3044extern "C"
3045#endif
212380e3
AC
3046char strerror ();
3047int
3048main ()
3049{
631ef239 3050return strerror ();
212380e3
AC
3051 ;
3052 return 0;
3053}
3054_ACEOF
631ef239
AC
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
AC
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
AC
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
AC
3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
212380e3 3085
631ef239 3086fi
212380e3 3087
631ef239
AC
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
AC
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
AC
3100LIBS=$ac_func_search_save_LIBS
3101fi
631ef239
AC
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
AC
3107
3108fi
3109
631ef239
AC
3110{ echo "$as_me:$LINENO: checking for inline" >&5
3111echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
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
AC
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
631ef239 3152
212380e3 3153fi
631ef239
AC
3154
3155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3156 test "$ac_cv_c_inline" != no && break
212380e3
AC
3157done
3158
3159fi
631ef239
AC
3160{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3161echo "${ECHO_T}$ac_cv_c_inline" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
3244rm -f conftest.err conftest.$ac_ext
3245
631ef239 3246 # OK, works on sane cases. Now check whether nonexistent headers
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
3300{ echo "$as_me:$LINENO: result: $CPP" >&5
3301echo "${ECHO_T}$CPP" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
3349rm -f conftest.err conftest.$ac_ext
3350
631ef239 3351 # OK, works on sane cases. Now check whether nonexistent headers
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
631ef239
AC
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
AC
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
AC
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
AC
3570
3571
3572if test $ac_cv_c_compiler_gnu = yes; then
631ef239
AC
3573 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3574echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
212380e3
AC
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
AC
3615{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3616echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
212380e3
AC
3617 if test $ac_cv_prog_gcc_traditional = yes; then
3618 CC="$CC -traditional"
3619 fi
3620fi
3621
631ef239
AC
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
AC
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
AC
3632_ACEOF
3633# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
631ef239
AC
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
AC
3640rm -f conftest.make
3641fi
631ef239
AC
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
AC
3645 SET_MAKE=
3646else
631ef239
AC
3647 { echo "$as_me:$LINENO: result: no" >&5
3648echo "${ECHO_T}no" >&6; }
212380e3
AC
3649 SET_MAKE="MAKE=${MAKE-make}"
3650fi
3651
212380e3
AC
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
AC
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
AC
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
AC
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
AC
3708
3709
3710fi
3711 if test "${ac_cv_path_install+set}" = set; then
3712 INSTALL=$ac_cv_path_install
3713 else
631ef239
AC
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
AC
3718 INSTALL=$ac_install_sh
3719 fi
3720fi
631ef239
AC
3721{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3722echo "${ECHO_T}$INSTALL" >&6; }
212380e3
AC
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
AC
3734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
3758
3759 ;;
3760esac
3761fi
3762RM=$ac_cv_path_RM
212380e3 3763if test -n "$RM"; then
631ef239
AC
3764 { echo "$as_me:$LINENO: result: $RM" >&5
3765echo "${ECHO_T}$RM" >&6; }
212380e3 3766else
631ef239
AC
3767 { echo "$as_me:$LINENO: result: no" >&5
3768echo "${ECHO_T}no" >&6; }
212380e3
AC
3769fi
3770
631ef239 3771
212380e3
AC
3772# Extract the first word of "cp", so it can be a program name with args.
3773set dummy cp; ac_word=$2
631ef239
AC
3774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
3798
3799 ;;
3800esac
3801fi
3802CP=$ac_cv_path_CP
212380e3 3803if test -n "$CP"; then
631ef239
AC
3804 { echo "$as_me:$LINENO: result: $CP" >&5
3805echo "${ECHO_T}$CP" >&6; }
212380e3 3806else
631ef239
AC
3807 { echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6; }
212380e3
AC
3809fi
3810
631ef239 3811
212380e3
AC
3812# Extract the first word of "mv", so it can be a program name with args.
3813set dummy mv; ac_word=$2
631ef239
AC
3814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
3838
3839 ;;
3840esac
3841fi
3842MV=$ac_cv_path_MV
212380e3 3843if test -n "$MV"; then
631ef239
AC
3844 { echo "$as_me:$LINENO: result: $MV" >&5
3845echo "${ECHO_T}$MV" >&6; }
212380e3 3846else
631ef239
AC
3847 { echo "$as_me:$LINENO: result: no" >&5
3848echo "${ECHO_T}no" >&6; }
212380e3
AC
3849fi
3850
631ef239 3851
212380e3
AC
3852# Extract the first word of "ln", so it can be a program name with args.
3853set dummy ln; ac_word=$2
631ef239
AC
3854{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
3878
3879 ;;
3880esac
3881fi
3882LN=$ac_cv_path_LN
212380e3 3883if test -n "$LN"; then
631ef239
AC
3884 { echo "$as_me:$LINENO: result: $LN" >&5
3885echo "${ECHO_T}$LN" >&6; }
212380e3 3886else
631ef239
AC
3887 { echo "$as_me:$LINENO: result: no" >&5
3888echo "${ECHO_T}no" >&6; }
212380e3
AC
3889fi
3890
631ef239 3891
212380e3
AC
3892# Extract the first word of "sed", so it can be a program name with args.
3893set dummy sed; ac_word=$2
631ef239
AC
3894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
3918
3919 ;;
3920esac
3921fi
3922SED=$ac_cv_path_SED
212380e3 3923if test -n "$SED"; then
631ef239
AC
3924 { echo "$as_me:$LINENO: result: $SED" >&5
3925echo "${ECHO_T}$SED" >&6; }
212380e3 3926else
631ef239
AC
3927 { echo "$as_me:$LINENO: result: no" >&5
3928echo "${ECHO_T}no" >&6; }
212380e3
AC
3929fi
3930
631ef239 3931
212380e3
AC
3932# Extract the first word of "ar", so it can be a program name with args.
3933set dummy ar; ac_word=$2
631ef239
AC
3934{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
3958
3959 ;;
3960esac
3961fi
3962AR=$ac_cv_path_AR
212380e3 3963if test -n "$AR"; then
631ef239
AC
3964 { echo "$as_me:$LINENO: result: $AR" >&5
3965echo "${ECHO_T}$AR" >&6; }
212380e3 3966else
631ef239
AC
3967 { echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6; }
212380e3
AC
3969fi
3970
631ef239 3971
212380e3
AC
3972# Extract the first word of "ld", so it can be a program name with args.
3973set dummy ld; ac_word=$2
631ef239
AC
3974{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
3998
3999 ;;
4000esac
4001fi
4002LD=$ac_cv_path_LD
212380e3 4003if test -n "$LD"; then
631ef239
AC
4004 { echo "$as_me:$LINENO: result: $LD" >&5
4005echo "${ECHO_T}$LD" >&6; }
212380e3 4006else
631ef239
AC
4007 { echo "$as_me:$LINENO: result: no" >&5
4008echo "${ECHO_T}no" >&6; }
212380e3
AC
4009fi
4010
631ef239 4011
212380e3
AC
4012# Extract the first word of "ranlib", so it can be a program name with args.
4013set dummy ranlib; ac_word=$2
631ef239
AC
4014{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
4038
4039 ;;
4040esac
4041fi
4042RANLIB=$ac_cv_path_RANLIB
212380e3 4043if test -n "$RANLIB"; then
631ef239
AC
4044 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4045echo "${ECHO_T}$RANLIB" >&6; }
212380e3 4046else
631ef239
AC
4047 { echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6; }
212380e3
AC
4049fi
4050
631ef239 4051
212380e3
AC
4052# Extract the first word of "touch", so it can be a program name with args.
4053set dummy touch; ac_word=$2
631ef239
AC
4054{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
4078
4079 ;;
4080esac
4081fi
4082TOUCH=$ac_cv_path_TOUCH
212380e3 4083if test -n "$TOUCH"; then
631ef239
AC
4084 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4085echo "${ECHO_T}$TOUCH" >&6; }
212380e3 4086else
631ef239
AC
4087 { echo "$as_me:$LINENO: result: no" >&5
4088echo "${ECHO_T}no" >&6; }
212380e3
AC
4089fi
4090
4091
631ef239 4092
212380e3
AC
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
AC
4097{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
4119
4120fi
4121fi
4122YACC=$ac_cv_prog_YACC
4123if test -n "$YACC"; then
631ef239
AC
4124 { echo "$as_me:$LINENO: result: $YACC" >&5
4125echo "${ECHO_T}$YACC" >&6; }
212380e3 4126else
631ef239
AC
4127 { echo "$as_me:$LINENO: result: no" >&5
4128echo "${ECHO_T}no" >&6; }
212380e3
AC
4129fi
4130
631ef239 4131
212380e3
AC
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
AC
4147{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
4169
4170fi
4171fi
4172LEX=$ac_cv_prog_LEX
4173if test -n "$LEX"; then
631ef239
AC
4174 { echo "$as_me:$LINENO: result: $LEX" >&5
4175echo "${ECHO_T}$LEX" >&6; }
212380e3 4176else
631ef239
AC
4177 { echo "$as_me:$LINENO: result: no" >&5
4178echo "${ECHO_T}no" >&6; }
212380e3
AC
4179fi
4180
631ef239 4181
212380e3
AC
4182 test -n "$LEX" && break
4183done
4184test -n "$LEX" || LEX=":"
4185
631ef239
AC
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
AC
4204}
4205_ACEOF
631ef239
AC
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
AC
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
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
AC
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
AC
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
AC
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
212380e3 4242
631ef239
AC
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
AC
4249_ACEOF
4250rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
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
AC
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
AC
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
AC
4269else
4270 echo "$as_me: failed program was:" >&5
4271sed 's/^/| /' conftest.$ac_ext >&5
4272
212380e3
AC
4273
4274fi
4275
631ef239
AC
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
AC
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
AC
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
AC
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
AC
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
AC
4302`cat $LEX_OUTPUT_ROOT.c`
4303_ACEOF
4304rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
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
AC
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
AC
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
AC
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
AC
4329
4330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
4331 conftest$ac_exeext conftest.$ac_ext
4332LIBS=$ac_save_LIBS
212380e3
AC
4333
4334fi
631ef239
AC
4335{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4336echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
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
AC
4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
4408
4409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
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
AC
4485 return 2;
4486 return 0;
212380e3
AC
4487}
4488_ACEOF
4489rm -f conftest$ac_exeext
631ef239
AC
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
AC
4497 ac_status=$?
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
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
AC
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
AC
4520
4521
212380e3
AC
4522fi
4523fi
631ef239
AC
4524{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4525echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
4577 (exit $ac_status); } && {
4578 test -z "$ac_c_werror_flag" ||
4579 test ! -s conftest.err
4580 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
4588
4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4590fi
631ef239
AC
4591ac_res=`eval echo '${'$as_ac_Header'}'`
4592 { echo "$as_me:$LINENO: result: $ac_res" >&5
4593echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
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
AC
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
AC
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623fi
631ef239
AC
4624ac_res=`eval echo '${'$as_ac_Header'}'`
4625 { echo "$as_me:$LINENO: result: $ac_res" >&5
4626echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
4627else
4628 # Is the header compilable?
631ef239
AC
4629{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4630echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
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
AC
4668
4669# Is the header present?
631ef239
AC
4670{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
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
AC
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
AC
4705{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4706echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
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
AC
4731 ;;
4732esac
631ef239
AC
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
AC
4736 echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738 eval "$as_ac_Header=\$ac_header_preproc"
4739fi
631ef239
AC
4740ac_res=`eval echo '${'$as_ac_Header'}'`
4741 { echo "$as_me:$LINENO: result: $ac_res" >&5
4742echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
4777 char const *const *pcpcc;
4778 char **ppc;
212380e3
AC
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
AC
4789 ++pcpcc;
4790 ppc = (char**) pcpcc;
4791 pcpcc = (char const *const *) ppc;
212380e3
AC
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
AC
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
AC
4819#endif
4820
4821 ;
4822 return 0;
4823}
4824_ACEOF
4825rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
4838 (exit $ac_status); } && {
4839 test -z "$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4841 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
4849
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 4851fi
631ef239
AC
4852{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4853echo "${ECHO_T}$ac_cv_c_const" >&6; }
212380e3
AC
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
AC
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
AC
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
AC
4881#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
4882 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
212380e3
AC
4883 bogus endian macros
4884#endif
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
4890rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
4903 (exit $ac_status); } && {
4904 test -z "$ac_c_werror_flag" ||
4905 test ! -s conftest.err
4906 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
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
AC
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
AC
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
4952
4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
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
AC
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
AC
4971short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4972short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
212380e3
AC
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
AC
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
AC
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
AC
4995 (exit $ac_status); } && {
4996 test -z "$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5016
5017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
5026int
5027main ()
5028{
631ef239 5029
212380e3
AC
5030 /* Are we little or big endian? From Harbison&Steele. */
5031 union
5032 {
631ef239
AC
5033 long int l;
5034 char c[sizeof (long int)];
212380e3
AC
5035 } u;
5036 u.l = 1;
631ef239
AC
5037 return u.c[sizeof (long int) - 1] == 1;
5038
5039 ;
5040 return 0;
212380e3
AC
5041}
5042_ACEOF
5043rm -f conftest$ac_exeext
631ef239
AC
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
AC
5051 ac_status=$?
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
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
AC
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
AC
5074
5075
212380e3 5076fi
631ef239
AC
5077
5078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5079fi
631ef239
AC
5080{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5081echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
212380e3
AC
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
AC
5100{ echo "$as_me:$LINENO: checking for pid_t" >&5
5101echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
212380e3
AC
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
AC
5113int
5114main ()
5115{
631ef239 5116if ((ac__type_new_ *) 0)
212380e3 5117 return 0;
631ef239 5118if (sizeof (ac__type_new_))
212380e3
AC
5119 return 0;
5120 ;
5121 return 0;
5122}
5123_ACEOF
5124rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5148
5149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5150fi
631ef239
AC
5151{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5152echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
212380e3
AC
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
AC
5163{ echo "$as_me:$LINENO: checking for size_t" >&5
5164echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
212380e3
AC
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
AC
5176int
5177main ()
5178{
631ef239 5179if ((ac__type_new_ *) 0)
212380e3 5180 return 0;
631ef239 5181if (sizeof (ac__type_new_))
212380e3
AC
5182 return 0;
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5200 (exit $ac_status); } && {
5201 test -z "$ac_c_werror_flag" ||
5202 test ! -s conftest.err
5203 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5211
5212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5213fi
631ef239
AC
5214{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5215echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
212380e3
AC
5216if test $ac_cv_type_size_t = yes; then
5217 :
5218else
5219
5220cat >>confdefs.h <<_ACEOF
631ef239 5221#define size_t unsigned int
212380e3
AC
5222_ACEOF
5223
5224fi
5225
631ef239
AC
5226{ echo "$as_me:$LINENO: checking for short" >&5
5227echo $ECHO_N "checking for short... $ECHO_C" >&6; }
212380e3
AC
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
AC
5239int
5240main ()
5241{
631ef239 5242if ((ac__type_new_ *) 0)
212380e3 5243 return 0;
631ef239 5244if (sizeof (ac__type_new_))
212380e3
AC
5245 return 0;
5246 ;
5247 return 0;
5248}
5249_ACEOF
5250rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5274
5275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5276fi
631ef239
AC
5277{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5278echo "${ECHO_T}$ac_cv_type_short" >&6; }
212380e3 5279
631ef239
AC
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
AC
5286if test "${ac_cv_sizeof_short+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
212380e3
AC
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
AC
5299int
5300main ()
5301{
631ef239 5302static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3
AC
5303test_array [0] = 0
5304
5305 ;
5306 return 0;
5307}
5308_ACEOF
5309rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5336int
5337main ()
5338{
631ef239 5339static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
5340test_array [0] = 0
5341
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
212380e3
AC
5363 ac_hi=$ac_mid; break
5364else
5365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
5367
631ef239
AC
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
AC
5375
5376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
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
AC
5390int
5391main ()
5392{
631ef239 5393static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3
AC
5394test_array [0] = 0
5395
5396 ;
5397 return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5427int
5428main ()
5429{
631ef239 5430static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3
AC
5431test_array [0] = 0
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
5437rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
212380e3
AC
5454 ac_lo=$ac_mid; break
5455else
5456 echo "$as_me: failed program was:" >&5
5457sed 's/^/| /' conftest.$ac_ext >&5
5458
631ef239
AC
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
AC
5466
5467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
5475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5477fi
631ef239
AC
5478
5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
5491int
5492main ()
5493{
631ef239 5494static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
5495test_array [0] = 0
5496
5497 ;
5498 return 0;
5499}
5500_ACEOF
5501rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5525
5526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
5527done
5528case $ac_lo in
5529?*) ac_cv_sizeof_short=$ac_lo;;
631ef239
AC
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
AC
5535 { (exit 77); exit 77; }; }
5536 else
5537 ac_cv_sizeof_short=0
5538 fi ;;
212380e3 5539esac
212380e3
AC
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
AC
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
AC
5551#include <stdio.h>
5552#include <stdlib.h>
5553int
5554main ()
5555{
5556
5557 FILE *f = fopen ("conftest.val", "w");
5558 if (! f)
631ef239
AC
5559 return 1;
5560 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 5561 {
631ef239
AC
5562 long int i = longval ();
5563 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5564 return 1;
212380e3
AC
5565 fprintf (f, "%ld\n", i);
5566 }
5567 else
5568 {
631ef239
AC
5569 unsigned long int i = ulongval ();
5570 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5571 return 1;
212380e3
AC
5572 fprintf (f, "%lu\n", i);
5573 }
631ef239 5574 return ferror (f) || fclose (f) != 0;
212380e3
AC
5575
5576 ;
5577 return 0;
5578}
5579_ACEOF
5580rm -f conftest$ac_exeext
631ef239
AC
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
AC
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
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
AC
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
AC
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
AC
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
AC
5618fi
5619rm -f conftest.val
212380e3 5620fi
631ef239
AC
5621{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5622echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
5623
5624
5625
212380e3
AC
5626cat >>confdefs.h <<_ACEOF
5627#define SIZEOF_SHORT $ac_cv_sizeof_short
5628_ACEOF
5629
5630
631ef239
AC
5631{ echo "$as_me:$LINENO: checking for int" >&5
5632echo $ECHO_N "checking for int... $ECHO_C" >&6; }
212380e3
AC
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
AC
5644int
5645main ()
5646{
631ef239 5647if ((ac__type_new_ *) 0)
212380e3 5648 return 0;
631ef239 5649if (sizeof (ac__type_new_))
212380e3
AC
5650 return 0;
5651 ;
5652 return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5668 (exit $ac_status); } && {
5669 test -z "$ac_c_werror_flag" ||
5670 test ! -s conftest.err
5671 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5679
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5681fi
631ef239
AC
5682{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5683echo "${ECHO_T}$ac_cv_type_int" >&6; }
212380e3 5684
631ef239
AC
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
AC
5691if test "${ac_cv_sizeof_int+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
212380e3
AC
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
AC
5704int
5705main ()
5706{
631ef239 5707static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3
AC
5708test_array [0] = 0
5709
5710 ;
5711 return 0;
5712}
5713_ACEOF
5714rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5727 (exit $ac_status); } && {
5728 test -z "$ac_c_werror_flag" ||
5729 test ! -s conftest.err
5730 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5741int
5742main ()
5743{
631ef239 5744static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
5745test_array [0] = 0
5746
5747 ;
5748 return 0;
5749}
5750_ACEOF
5751rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5764 (exit $ac_status); } && {
5765 test -z "$ac_c_werror_flag" ||
5766 test ! -s conftest.err
5767 } && test -s conftest.$ac_objext; then
212380e3
AC
5768 ac_hi=$ac_mid; break
5769else
5770 echo "$as_me: failed program was:" >&5
5771sed 's/^/| /' conftest.$ac_ext >&5
5772
631ef239
AC
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
AC
5780
5781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
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
AC
5795int
5796main ()
5797{
631ef239 5798static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3
AC
5799test_array [0] = 0
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5818 (exit $ac_status); } && {
5819 test -z "$ac_c_werror_flag" ||
5820 test ! -s conftest.err
5821 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5832int
5833main ()
5834{
631ef239 5835static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3
AC
5836test_array [0] = 0
5837
5838 ;
5839 return 0;
5840}
5841_ACEOF
5842rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
212380e3
AC
5859 ac_lo=$ac_mid; break
5860else
5861 echo "$as_me: failed program was:" >&5
5862sed 's/^/| /' conftest.$ac_ext >&5
5863
631ef239
AC
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
AC
5871
5872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
5880
5881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 5882fi
631ef239
AC
5883
5884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
5896int
5897main ()
5898{
631ef239 5899static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
5900test_array [0] = 0
5901
5902 ;
5903 return 0;
5904}
5905_ACEOF
5906rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
5919 (exit $ac_status); } && {
5920 test -z "$ac_c_werror_flag" ||
5921 test ! -s conftest.err
5922 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
5930
5931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
5932done
5933case $ac_lo in
5934?*) ac_cv_sizeof_int=$ac_lo;;
631ef239
AC
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
AC
5940 { (exit 77); exit 77; }; }
5941 else
5942 ac_cv_sizeof_int=0
5943 fi ;;
212380e3 5944esac
212380e3
AC
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
AC
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
AC
5956#include <stdio.h>
5957#include <stdlib.h>
5958int
5959main ()
5960{
5961
5962 FILE *f = fopen ("conftest.val", "w");
5963 if (! f)
631ef239
AC
5964 return 1;
5965 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 5966 {
631ef239
AC
5967 long int i = longval ();
5968 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5969 return 1;
212380e3
AC
5970 fprintf (f, "%ld\n", i);
5971 }
5972 else
5973 {
631ef239
AC
5974 unsigned long int i = ulongval ();
5975 if (i != ((long int) (sizeof (ac__type_sizeof_))))
5976 return 1;
212380e3
AC
5977 fprintf (f, "%lu\n", i);
5978 }
631ef239 5979 return ferror (f) || fclose (f) != 0;
212380e3
AC
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest$ac_exeext
631ef239
AC
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
AC
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
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
AC
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
AC
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
AC
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
AC
6023fi
6024rm -f conftest.val
212380e3 6025fi
631ef239
AC
6026{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6027echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
6028
6029
6030
212380e3
AC
6031cat >>confdefs.h <<_ACEOF
6032#define SIZEOF_INT $ac_cv_sizeof_int
6033_ACEOF
6034
6035
631ef239
AC
6036{ echo "$as_me:$LINENO: checking for long" >&5
6037echo $ECHO_N "checking for long... $ECHO_C" >&6; }
212380e3
AC
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
AC
6049int
6050main ()
6051{
631ef239 6052if ((ac__type_new_ *) 0)
212380e3 6053 return 0;
631ef239 6054if (sizeof (ac__type_new_))
212380e3
AC
6055 return 0;
6056 ;
6057 return 0;
6058}
6059_ACEOF
6060rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6084
6085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6086fi
631ef239
AC
6087{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6088echo "${ECHO_T}$ac_cv_type_long" >&6; }
212380e3 6089
631ef239
AC
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
AC
6096if test "${ac_cv_sizeof_long+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098else
212380e3
AC
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
AC
6109int
6110main ()
6111{
631ef239 6112static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3
AC
6113test_array [0] = 0
6114
6115 ;
6116 return 0;
6117}
6118_ACEOF
6119rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6146int
6147main ()
6148{
631ef239 6149static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
6150test_array [0] = 0
6151
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6169 (exit $ac_status); } && {
6170 test -z "$ac_c_werror_flag" ||
6171 test ! -s conftest.err
6172 } && test -s conftest.$ac_objext; then
212380e3
AC
6173 ac_hi=$ac_mid; break
6174else
6175 echo "$as_me: failed program was:" >&5
6176sed 's/^/| /' conftest.$ac_ext >&5
6177
631ef239
AC
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
AC
6185
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
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
AC
6200int
6201main ()
6202{
631ef239 6203static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3
AC
6204test_array [0] = 0
6205
6206 ;
6207 return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6223 (exit $ac_status); } && {
6224 test -z "$ac_c_werror_flag" ||
6225 test ! -s conftest.err
6226 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6237int
6238main ()
6239{
631ef239 6240static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3
AC
6241test_array [0] = 0
6242
6243 ;
6244 return 0;
6245}
6246_ACEOF
6247rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest.$ac_objext; then
212380e3
AC
6264 ac_lo=$ac_mid; break
6265else
6266 echo "$as_me: failed program was:" >&5
6267sed 's/^/| /' conftest.$ac_ext >&5
6268
631ef239
AC
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
AC
6276
6277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
6285
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6287fi
631ef239
AC
6288
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
6301int
6302main ()
6303{
631ef239 6304static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
6305test_array [0] = 0
6306
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6324 (exit $ac_status); } && {
6325 test -z "$ac_c_werror_flag" ||
6326 test ! -s conftest.err
6327 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6335
6336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6337done
6338case $ac_lo in
6339?*) ac_cv_sizeof_long=$ac_lo;;
631ef239
AC
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
AC
6345 { (exit 77); exit 77; }; }
6346 else
6347 ac_cv_sizeof_long=0
6348 fi ;;
212380e3 6349esac
212380e3
AC
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
AC
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
AC
6361#include <stdio.h>
6362#include <stdlib.h>
6363int
6364main ()
6365{
6366
6367 FILE *f = fopen ("conftest.val", "w");
6368 if (! f)
631ef239
AC
6369 return 1;
6370 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 6371 {
631ef239
AC
6372 long int i = longval ();
6373 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6374 return 1;
212380e3
AC
6375 fprintf (f, "%ld\n", i);
6376 }
6377 else
6378 {
631ef239
AC
6379 unsigned long int i = ulongval ();
6380 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6381 return 1;
212380e3
AC
6382 fprintf (f, "%lu\n", i);
6383 }
631ef239 6384 return ferror (f) || fclose (f) != 0;
212380e3
AC
6385
6386 ;
6387 return 0;
6388}
6389_ACEOF
6390rm -f conftest$ac_exeext
631ef239
AC
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
AC
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
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
AC
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
AC
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
AC
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
AC
6428fi
6429rm -f conftest.val
212380e3 6430fi
631ef239
AC
6431{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6432echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
6433
6434
6435
212380e3
AC
6436cat >>confdefs.h <<_ACEOF
6437#define SIZEOF_LONG $ac_cv_sizeof_long
6438_ACEOF
6439
6440
631ef239
AC
6441{ echo "$as_me:$LINENO: checking for long long" >&5
6442echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
212380e3
AC
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
AC
6454int
6455main ()
6456{
631ef239 6457if ((ac__type_new_ *) 0)
212380e3 6458 return 0;
631ef239 6459if (sizeof (ac__type_new_))
212380e3
AC
6460 return 0;
6461 ;
6462 return 0;
6463}
6464_ACEOF
6465rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6489
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6491fi
631ef239
AC
6492{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6493echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
212380e3 6494
631ef239
AC
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
AC
6501if test "${ac_cv_sizeof_long_long+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6503else
212380e3
AC
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
AC
6514int
6515main ()
6516{
631ef239 6517static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
212380e3
AC
6518test_array [0] = 0
6519
6520 ;
6521 return 0;
6522}
6523_ACEOF
6524rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6551int
6552main ()
6553{
631ef239 6554static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
6555test_array [0] = 0
6556
6557 ;
6558 return 0;
6559}
6560_ACEOF
6561rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
212380e3
AC
6578 ac_hi=$ac_mid; break
6579else
6580 echo "$as_me: failed program was:" >&5
6581sed 's/^/| /' conftest.$ac_ext >&5
6582
631ef239
AC
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
AC
6590
6591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
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
AC
6605int
6606main ()
6607{
631ef239 6608static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
212380e3
AC
6609test_array [0] = 0
6610
6611 ;
6612 return 0;
6613}
6614_ACEOF
6615rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6642int
6643main ()
6644{
631ef239 6645static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
212380e3
AC
6646test_array [0] = 0
6647
6648 ;
6649 return 0;
6650}
6651_ACEOF
6652rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6665 (exit $ac_status); } && {
6666 test -z "$ac_c_werror_flag" ||
6667 test ! -s conftest.err
6668 } && test -s conftest.$ac_objext; then
212380e3
AC
6669 ac_lo=$ac_mid; break
6670else
6671 echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
631ef239
AC
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
AC
6681
6682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
6690
6691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 6692fi
631ef239
AC
6693
6694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
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
AC
6706int
6707main ()
6708{
631ef239 6709static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
212380e3
AC
6710test_array [0] = 0
6711
6712 ;
6713 return 0;
6714}
6715_ACEOF
6716rm -f conftest.$ac_objext
631ef239
AC
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
AC
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
AC
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
212380e3
AC
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
AC
6740
6741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
6742done
6743case $ac_lo in
6744?*) ac_cv_sizeof_long_long=$ac_lo;;
631ef239
AC
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
AC
6750 { (exit 77); exit 77; }; }
6751 else
6752 ac_cv_sizeof_long_long=0
6753 fi ;;
212380e3 6754esac
212380e3
AC
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
AC
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
AC
6766#include <stdio.h>
6767#include <stdlib.h>
6768int
6769main ()
6770{
6771
6772 FILE *f = fopen ("conftest.val", "w");
6773 if (! f)
631ef239
AC
6774 return 1;
6775 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
212380e3 6776 {
631ef239
AC
6777 long int i = longval ();
6778 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6779 return 1;
212380e3
AC
6780 fprintf (f, "%ld\n", i);
6781 }
6782 else
6783 {
631ef239
AC
6784 unsigned long int i = ulongval ();
6785 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6786 return 1;
212380e3
AC
6787 fprintf (f, "%lu\n", i);
6788 }
631ef239 6789 return ferror (f) || fclose (f) != 0;
212380e3
AC
6790
6791 ;
6792 return 0;
6793}
6794_ACEOF
6795rm -f conftest$ac_exeext
631ef239
AC
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
AC
6803 ac_status=$?
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
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
AC
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
AC
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
AC
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
AC
6833fi
6834rm -f conftest.val
212380e3 6835fi
631ef239
AC
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
AC
6841cat >>confdefs.h <<_ACEOF
6842#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6843_ACEOF
6844
6845
6846
6847
631ef239
AC
6848{ echo "$as_me:$LINENO: checking the system's memory page size" >&5
6849echo $ECHO_N "checking the system's memory page size... $ECHO_C" >&6; }
212380e3
AC
6850pagesize="no"
6851if test "$cross_compiling" = yes; then
6852 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6853See \`config.log' for more details." >&5
6854echo "$as_me: error: cannot run test program while cross compiling
6855See \`config.log' for more details." >&2;}
6856 { (exit 1); exit 1; }; }
6857else
6858 cat >conftest.$ac_ext <<_ACEOF
6859/* confdefs.h. */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h. */
6864
6865#include <stdio.h>
6866#if HAVE_UNISTD_H
6867# include <unistd.h>
6868#endif
6869
6870int main(void) {
6871 FILE *fp = fopen("conftest.malloc", "w");
6872
6873 if (fp != NULL) {
6874 fprintf(fp, "%d\n", getpagesize());
6875 fclose(fp);
6876 } else
6877 exit(1);
6878 exit(0);
6879}
6880_ACEOF
6881rm -f conftest$ac_exeext
631ef239
AC
6882if { (ac_try="$ac_link"
6883case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886esac
6887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_link") 2>&5
212380e3
AC
6889 ac_status=$?
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
6892 { (case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895esac
6896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6897 (eval "$ac_try") 2>&5
212380e3
AC
6898 ac_status=$?
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; }; then
6901
6902if test -f "conftest.malloc" ; then
6903 pagesize=`cat conftest.malloc`
6904fi
6905
6906else
6907 echo "$as_me: program exited with status $ac_status" >&5
6908echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911fi
631ef239 6912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 6913fi
631ef239
AC
6914
6915
212380e3 6916if test "$pagesize" != "no" ; then
631ef239
AC
6917 { echo "$as_me:$LINENO: result: $pagesize" >&5
6918echo "${ECHO_T}$pagesize" >&6; }
212380e3
AC
6919else
6920 if test "$ac_cv_sizeof_int" = "4" ; then
6921 pagesize=4096
6922 else
6923 pagesize=8192
6924 fi
631ef239
AC
6925 { echo "$as_me:$LINENO: result: $pagesize (guessing)" >&5
6926echo "${ECHO_T}$pagesize (guessing)" >&6; }
212380e3
AC
6927fi
6928
6929cat >>confdefs.h <<_ACEOF
6930#define MALLOC_PAGESIZE $pagesize
6931_ACEOF
6932
6933
6934
631ef239
AC
6935{ echo "$as_me:$LINENO: checking for library containing socket" >&5
6936echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
212380e3
AC
6937if test "${ac_cv_search_socket+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6939else
6940 ac_func_search_save_LIBS=$LIBS
212380e3
AC
6941cat >conftest.$ac_ext <<_ACEOF
6942/* confdefs.h. */
6943_ACEOF
6944cat confdefs.h >>conftest.$ac_ext
6945cat >>conftest.$ac_ext <<_ACEOF
6946/* end confdefs.h. */
6947
631ef239
AC
6948/* Override any GCC internal prototype to avoid an error.
6949 Use char because int might match the return type of a GCC
6950 builtin and then its argument prototype would still apply. */
212380e3
AC
6951#ifdef __cplusplus
6952extern "C"
6953#endif
212380e3
AC
6954char socket ();
6955int
6956main ()
6957{
631ef239 6958return socket ();
212380e3
AC
6959 ;
6960 return 0;
6961}
6962_ACEOF
631ef239
AC
6963for ac_lib in '' socket; do
6964 if test -z "$ac_lib"; then
6965 ac_res="none required"
6966 else
6967 ac_res=-l$ac_lib
6968 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6969 fi
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971if { (ac_try="$ac_link"
6972case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975esac
6976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_link") 2>conftest.er1
212380e3
AC
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest$ac_exeext &&
6987 $as_test_x conftest$ac_exeext; then
6988 ac_cv_search_socket=$ac_res
212380e3
AC
6989else
6990 echo "$as_me: failed program was:" >&5
6991sed 's/^/| /' conftest.$ac_ext >&5
6992
631ef239 6993
212380e3 6994fi
631ef239
AC
6995
6996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6997 conftest$ac_exeext
6998 if test "${ac_cv_search_socket+set}" = set; then
6999 break
7000fi
7001done
7002if test "${ac_cv_search_socket+set}" = set; then
7003 :
7004else
7005 ac_cv_search_socket=no
7006fi
7007rm conftest.$ac_ext
7008LIBS=$ac_func_search_save_LIBS
7009fi
7010{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7011echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7012ac_res=$ac_cv_search_socket
7013if test "$ac_res" != no; then
7014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7015
7016else
7017 { { echo "$as_me:$LINENO: error: You have no socket()! Aborting." >&5
7018echo "$as_me: error: You have no socket()! Aborting." >&2;}
7019 { (exit 1); exit 1; }; }
7020fi
7021
7022
7023if test x"$SUN" = xyes; then
7024 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
7025echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
7026if test "${ac_cv_search_inet_ntoa+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 ac_func_search_save_LIBS=$LIBS
7030cat >conftest.$ac_ext <<_ACEOF
212380e3
AC
7031/* confdefs.h. */
7032_ACEOF
7033cat confdefs.h >>conftest.$ac_ext
7034cat >>conftest.$ac_ext <<_ACEOF
7035/* end confdefs.h. */
7036
631ef239
AC
7037/* Override any GCC internal prototype to avoid an error.
7038 Use char because int might match the return type of a GCC
7039 builtin and then its argument prototype would still apply. */
212380e3
AC
7040#ifdef __cplusplus
7041extern "C"
7042#endif
631ef239 7043char inet_ntoa ();
212380e3
AC
7044int
7045main ()
7046{
631ef239 7047return inet_ntoa ();
212380e3
AC
7048 ;
7049 return 0;
7050}
7051_ACEOF
631ef239
AC
7052for ac_lib in '' nsl; do
7053 if test -z "$ac_lib"; then
7054 ac_res="none required"
7055 else
7056 ac_res=-l$ac_lib
7057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7058 fi
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060if { (ac_try="$ac_link"
7061case "(($ac_try" in
7062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7063 *) ac_try_echo=$ac_try;;
7064esac
7065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7066 (eval "$ac_link") 2>conftest.er1
212380e3
AC
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7072 (exit $ac_status); } && {
7073 test -z "$ac_c_werror_flag" ||
7074 test ! -s conftest.err
7075 } && test -s conftest$ac_exeext &&
7076 $as_test_x conftest$ac_exeext; then
7077 ac_cv_search_inet_ntoa=$ac_res
212380e3
AC
7078else
7079 echo "$as_me: failed program was:" >&5
7080sed 's/^/| /' conftest.$ac_ext >&5
7081
631ef239 7082
212380e3 7083fi
631ef239
AC
7084
7085rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7086 conftest$ac_exeext
7087 if test "${ac_cv_search_inet_ntoa+set}" = set; then
7088 break
7089fi
7090done
7091if test "${ac_cv_search_inet_ntoa+set}" = set; then
7092 :
7093else
7094 ac_cv_search_inet_ntoa=no
212380e3 7095fi
631ef239 7096rm conftest.$ac_ext
212380e3
AC
7097LIBS=$ac_func_search_save_LIBS
7098fi
631ef239
AC
7099{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
7100echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
7101ac_res=$ac_cv_search_inet_ntoa
7102if test "$ac_res" != no; then
7103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
7104
7105else
631ef239
AC
7106 { { echo "$as_me:$LINENO: error: libnsl not found! Aborting." >&5
7107echo "$as_me: error: libnsl not found! Aborting." >&2;}
212380e3
AC
7108 { (exit 1); exit 1; }; }
7109fi
7110
631ef239 7111fi
212380e3 7112
631ef239
AC
7113{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
7114echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
7115if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
212380e3
AC
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
631ef239 7118 cat >conftest.$ac_ext <<_ACEOF
212380e3
AC
7119/* confdefs.h. */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h. */
631ef239
AC
7124#include <sys/types.h>
7125#include <sys/socket.h>
7126
212380e3 7127
212380e3
AC
7128int
7129main ()
7130{
631ef239
AC
7131static struct sockaddr ac_aggr;
7132if (ac_aggr.sa_len)
7133return 0;
212380e3
AC
7134 ;
7135 return 0;
7136}
7137_ACEOF
7138rm -f conftest.$ac_objext
631ef239
AC
7139if { (ac_try="$ac_compile"
7140case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143esac
7144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
212380e3
AC
7155 ac_cv_member_struct_sockaddr_sa_len=yes
7156else
7157 echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
631ef239 7160 cat >conftest.$ac_ext <<_ACEOF
212380e3
AC
7161/* confdefs.h. */
7162_ACEOF
7163cat confdefs.h >>conftest.$ac_ext
7164cat >>conftest.$ac_ext <<_ACEOF
7165/* end confdefs.h. */
7166#include <sys/types.h>
7167#include <sys/socket.h>
7168
7169
7170int
7171main ()
7172{
7173static struct sockaddr ac_aggr;
7174if (sizeof ac_aggr.sa_len)
7175return 0;
7176 ;
7177 return 0;
7178}
7179_ACEOF
7180rm -f conftest.$ac_objext
631ef239
AC
7181if { (ac_try="$ac_compile"
7182case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185esac
7186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
212380e3
AC
7197 ac_cv_member_struct_sockaddr_sa_len=yes
7198else
7199 echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
631ef239 7202 ac_cv_member_struct_sockaddr_sa_len=no
212380e3 7203fi
631ef239
AC
7204
7205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7206fi
631ef239
AC
7207
7208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7209fi
631ef239
AC
7210{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
7211echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
212380e3
AC
7212if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
7213
7214cat >>confdefs.h <<\_ACEOF
7215#define SOCKADDR_IN_HAS_LEN 1
7216_ACEOF
7217
7218fi
7219
7220
631ef239
AC
7221{ echo "$as_me:$LINENO: checking for socklen_t" >&5
7222echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
212380e3
AC
7223if test "${ac_cv_type_socklen_t+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7225else
7226 cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h. */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h. */
7232#include <sys/types.h>
7233#include <sys/socket.h>
7234
631ef239 7235typedef socklen_t ac__type_new_;
212380e3
AC
7236int
7237main ()
7238{
631ef239 7239if ((ac__type_new_ *) 0)
212380e3 7240 return 0;
631ef239 7241if (sizeof (ac__type_new_))
212380e3
AC
7242 return 0;
7243 ;
7244 return 0;
7245}
7246_ACEOF
7247rm -f conftest.$ac_objext
631ef239
AC
7248if { (ac_try="$ac_compile"
7249case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252esac
7253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.$ac_objext; then
212380e3
AC
7264 ac_cv_type_socklen_t=yes
7265else
7266 echo "$as_me: failed program was:" >&5
7267sed 's/^/| /' conftest.$ac_ext >&5
7268
631ef239 7269 ac_cv_type_socklen_t=no
212380e3 7270fi
631ef239
AC
7271
7272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7273fi
631ef239
AC
7274{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7275echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
212380e3
AC
7276if test $ac_cv_type_socklen_t = yes; then
7277 :
7278else
7279
7280cat >>confdefs.h <<\_ACEOF
7281#define socklen_t unsigned int
7282_ACEOF
7283
7284fi
7285
7286
631ef239 7287# Check whether --enable-ipv6 was given.
212380e3 7288if test "${enable_ipv6+set}" = set; then
631ef239 7289 enableval=$enable_ipv6; ipv6=$enableval
212380e3
AC
7290else
7291 ipv6=no
631ef239
AC
7292fi
7293
212380e3
AC
7294
7295if test $ipv6 != yes; then
7296 have_v6="no"
7297else
631ef239
AC
7298{ echo "$as_me:$LINENO: checking for core IPv6 support" >&5
7299echo $ECHO_N "checking for core IPv6 support... $ECHO_C" >&6; }
212380e3
AC
7300
7301cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h. */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h. */
7307#define IN_AUTOCONF
7308 #include <sys/types.h>
7309 #include <sys/socket.h>
7310 #include <netinet/in.h>
7311int
7312main ()
7313{
7314struct sockaddr_in6 s;
7315 s.sin6_family = 0;
7316
7317 ;
7318 return 0;
7319}
7320_ACEOF
7321rm -f conftest.$ac_objext
631ef239
AC
7322if { (ac_try="$ac_compile"
7323case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326esac
7327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
212380e3
AC
7338
7339 if test "$CYGWIN" = "yes"; then
631ef239
AC
7340 { echo "$as_me:$LINENO: result: no, Cygwin's IPv6 is incomplete" >&5
7341echo "${ECHO_T}no, Cygwin's IPv6 is incomplete" >&6; }
212380e3
AC
7342 have_v6=no
7343 else
7344 have_v6=yes
7345
7346cat >>confdefs.h <<\_ACEOF
7347#define IPV6 1
7348_ACEOF
7349
631ef239
AC
7350 { echo "$as_me:$LINENO: result: yes" >&5
7351echo "${ECHO_T}yes" >&6; }
7352 { echo "$as_me:$LINENO: checking for struct in6addr_any" >&5
7353echo $ECHO_N "checking for struct in6addr_any... $ECHO_C" >&6; }
212380e3
AC
7354 cat >conftest.$ac_ext <<_ACEOF
7355/* confdefs.h. */
7356_ACEOF
7357cat confdefs.h >>conftest.$ac_ext
7358cat >>conftest.$ac_ext <<_ACEOF
7359/* end confdefs.h. */
7360#define IN_AUTOCONF
7361 #include <sys/types.h>
7362 #include <sys/socket.h>
7363 #include <netinet/in.h>
7364int
7365main ()
7366{
7367struct in6_addr a = in6addr_any;
7368
7369 ;
7370 return 0;
7371}
7372_ACEOF
7373rm -f conftest.$ac_objext
631ef239
AC
7374if { (ac_try="$ac_compile"
7375case "(($ac_try" in
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7378esac
7379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7381 ac_status=$?
7382 grep -v '^ *+' conftest.er1 >conftest.err
7383 rm -f conftest.er1
7384 cat conftest.err >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7386 (exit $ac_status); } && {
7387 test -z "$ac_c_werror_flag" ||
7388 test ! -s conftest.err
7389 } && test -s conftest.$ac_objext; then
7390 { echo "$as_me:$LINENO: result: yes" >&5
7391echo "${ECHO_T}yes" >&6; }
212380e3
AC
7392else
7393 echo "$as_me: failed program was:" >&5
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396
631ef239
AC
7397 { echo "$as_me:$LINENO: result: no" >&5
7398echo "${ECHO_T}no" >&6; }
212380e3
AC
7399
7400cat >>confdefs.h <<\_ACEOF
7401#define NO_IN6ADDR_ANY 1
7402_ACEOF
7403
7404 inet_misc=1
7405
7406
7407fi
631ef239
AC
7408
7409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
7410 fi
7411
7412else
7413 echo "$as_me: failed program was:" >&5
7414sed 's/^/| /' conftest.$ac_ext >&5
7415
631ef239
AC
7416 { echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6; }
212380e3
AC
7418have_v6="no"
7419fi
631ef239
AC
7420
7421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
7422fi
7423
631ef239
AC
7424{ echo "$as_me:$LINENO: checking for library containing crypt" >&5
7425echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
212380e3
AC
7426if test "${ac_cv_search_crypt+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429 ac_func_search_save_LIBS=$LIBS
212380e3
AC
7430cat >conftest.$ac_ext <<_ACEOF
7431/* confdefs.h. */
7432_ACEOF
7433cat confdefs.h >>conftest.$ac_ext
7434cat >>conftest.$ac_ext <<_ACEOF
7435/* end confdefs.h. */
7436
631ef239
AC
7437/* Override any GCC internal prototype to avoid an error.
7438 Use char because int might match the return type of a GCC
7439 builtin and then its argument prototype would still apply. */
212380e3
AC
7440#ifdef __cplusplus
7441extern "C"
7442#endif
212380e3
AC
7443char crypt ();
7444int
7445main ()
7446{
631ef239 7447return crypt ();
212380e3
AC
7448 ;
7449 return 0;
7450}
7451_ACEOF
631ef239
AC
7452for ac_lib in '' crypt descrypt; do
7453 if test -z "$ac_lib"; then
7454 ac_res="none required"
7455 else
7456 ac_res=-l$ac_lib
7457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7458 fi
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460if { (ac_try="$ac_link"
7461case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7464esac
7465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_link") 2>conftest.er1
212380e3
AC
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest$ac_exeext &&
7476 $as_test_x conftest$ac_exeext; then
7477 ac_cv_search_crypt=$ac_res
212380e3
AC
7478else
7479 echo "$as_me: failed program was:" >&5
7480sed 's/^/| /' conftest.$ac_ext >&5
7481
212380e3 7482
631ef239 7483fi
212380e3 7484
631ef239
AC
7485rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7486 conftest$ac_exeext
7487 if test "${ac_cv_search_crypt+set}" = set; then
7488 break
212380e3 7489fi
631ef239
AC
7490done
7491if test "${ac_cv_search_crypt+set}" = set; then
7492 :
7493else
7494 ac_cv_search_crypt=no
212380e3 7495fi
631ef239 7496rm conftest.$ac_ext
212380e3
AC
7497LIBS=$ac_func_search_save_LIBS
7498fi
631ef239
AC
7499{ echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7500echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7501ac_res=$ac_cv_search_crypt
7502if test "$ac_res" != no; then
7503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
7504
7505fi
7506
7507
7508CRYPT_LIB=$ac_cv_search_crypt
7509
7510if test "$CRYPT_LIB" = "none required"; then
7511 unset CRYPT_LIB
7512elif test "$CRYPT_LIB" = no; then
7513 unset CRYPT_LIB
7514fi
7515
7516
7517
7518if test "$ac_cv_header_sys_wait_h" = yes -o "$ac_cv_header_wait_h" = yes; then
7519 VICONF=viconf
7520 else
7521 VICONF=""
7522fi
7523
7524
7525
631ef239
AC
7526{ echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5
7527echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6; }
212380e3
AC
7528if test "${gcc_cv_header_string+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531
7532 cat >conftest.$ac_ext <<_ACEOF
7533#include <string.h>
7534 #include <strings.h>
7535_ACEOF
7536rm -f conftest.$ac_objext
631ef239
AC
7537if { (ac_try="$ac_compile"
7538case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541esac
7542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7543 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7544 ac_status=$?
7545 grep -v '^ *+' conftest.er1 >conftest.err
7546 rm -f conftest.er1
7547 cat conftest.err >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7549 (exit $ac_status); } && {
7550 test -z "$ac_c_werror_flag" ||
7551 test ! -s conftest.err
7552 } && test -s conftest.$ac_objext; then
212380e3
AC
7553 gcc_cv_header_string=yes
7554else
7555 echo "$as_me: failed program was:" >&5
7556sed 's/^/| /' conftest.$ac_ext >&5
7557
631ef239 7558 gcc_cv_header_string=no
212380e3 7559fi
631ef239
AC
7560
7561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
7562
7563fi
631ef239
AC
7564{ echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5
7565echo "${ECHO_T}$gcc_cv_header_string" >&6; }
212380e3
AC
7566
7567if test "$gcc_cv_header_string" = "yes"; then
7568
7569cat >>confdefs.h <<\_ACEOF
7570#define STRING_WITH_STRINGS 1
7571_ACEOF
7572
7573fi
7574
631ef239
AC
7575{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7576echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
212380e3
AC
7577if test "${ac_cv_c_bigendian+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580 # See if sys/param.h defines the BYTE_ORDER macro.
7581cat >conftest.$ac_ext <<_ACEOF
7582/* confdefs.h. */
7583_ACEOF
7584cat confdefs.h >>conftest.$ac_ext
7585cat >>conftest.$ac_ext <<_ACEOF
7586/* end confdefs.h. */
7587#include <sys/types.h>
7588#include <sys/param.h>
7589
7590int
7591main ()
7592{
631ef239
AC
7593#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
7594 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
212380e3
AC
7595 bogus endian macros
7596#endif
7597
7598 ;
7599 return 0;
7600}
7601_ACEOF
7602rm -f conftest.$ac_objext
631ef239
AC
7603if { (ac_try="$ac_compile"
7604case "(($ac_try" in
7605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606 *) ac_try_echo=$ac_try;;
7607esac
7608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7609 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7610 ac_status=$?
7611 grep -v '^ *+' conftest.er1 >conftest.err
7612 rm -f conftest.er1
7613 cat conftest.err >&5
7614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7615 (exit $ac_status); } && {
7616 test -z "$ac_c_werror_flag" ||
7617 test ! -s conftest.err
7618 } && test -s conftest.$ac_objext; then
212380e3
AC
7619 # It does; now see whether it defined to BIG_ENDIAN or not.
7620cat >conftest.$ac_ext <<_ACEOF
7621/* confdefs.h. */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h. */
7626#include <sys/types.h>
7627#include <sys/param.h>
7628
7629int
7630main ()
7631{
7632#if BYTE_ORDER != BIG_ENDIAN
7633 not big endian
7634#endif
7635
7636 ;
7637 return 0;
7638}
7639_ACEOF
7640rm -f conftest.$ac_objext
631ef239
AC
7641if { (ac_try="$ac_compile"
7642case "(($ac_try" in
7643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644 *) ac_try_echo=$ac_try;;
7645esac
7646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7648 ac_status=$?
7649 grep -v '^ *+' conftest.er1 >conftest.err
7650 rm -f conftest.er1
7651 cat conftest.err >&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7653 (exit $ac_status); } && {
7654 test -z "$ac_c_werror_flag" ||
7655 test ! -s conftest.err
7656 } && test -s conftest.$ac_objext; then
212380e3
AC
7657 ac_cv_c_bigendian=yes
7658else
7659 echo "$as_me: failed program was:" >&5
7660sed 's/^/| /' conftest.$ac_ext >&5
7661
631ef239 7662 ac_cv_c_bigendian=no
212380e3 7663fi
631ef239
AC
7664
7665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
7666else
7667 echo "$as_me: failed program was:" >&5
7668sed 's/^/| /' conftest.$ac_ext >&5
7669
631ef239 7670 # It does not; compile a test program.
212380e3
AC
7671if test "$cross_compiling" = yes; then
7672 # try to guess the endianness by grepping values into an object file
7673 ac_cv_c_bigendian=unknown
7674 cat >conftest.$ac_ext <<_ACEOF
7675/* confdefs.h. */
7676_ACEOF
7677cat confdefs.h >>conftest.$ac_ext
7678cat >>conftest.$ac_ext <<_ACEOF
7679/* end confdefs.h. */
631ef239
AC
7680short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7681short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
212380e3 7682void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
631ef239
AC
7683short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7684short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
212380e3
AC
7685void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7686int
7687main ()
7688{
7689 _ascii (); _ebcdic ();
7690 ;
7691 return 0;
7692}
7693_ACEOF
7694rm -f conftest.$ac_objext
631ef239
AC
7695if { (ac_try="$ac_compile"
7696case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699esac
7700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7701 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7702 ac_status=$?
7703 grep -v '^ *+' conftest.er1 >conftest.err
7704 rm -f conftest.er1
7705 cat conftest.err >&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7707 (exit $ac_status); } && {
7708 test -z "$ac_c_werror_flag" ||
7709 test ! -s conftest.err
7710 } && test -s conftest.$ac_objext; then
212380e3
AC
7711 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7712 ac_cv_c_bigendian=yes
7713fi
7714if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7715 if test "$ac_cv_c_bigendian" = unknown; then
7716 ac_cv_c_bigendian=no
7717 else
7718 # finding both strings is unlikely to happen, but who knows?
7719 ac_cv_c_bigendian=unknown
7720 fi
7721fi
7722else
7723 echo "$as_me: failed program was:" >&5
7724sed 's/^/| /' conftest.$ac_ext >&5
7725
631ef239 7726
212380e3 7727fi
631ef239
AC
7728
7729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
7730else
7731 cat >conftest.$ac_ext <<_ACEOF
7732/* confdefs.h. */
7733_ACEOF
7734cat confdefs.h >>conftest.$ac_ext
7735cat >>conftest.$ac_ext <<_ACEOF
7736/* end confdefs.h. */
631ef239 7737$ac_includes_default
212380e3
AC
7738int
7739main ()
7740{
631ef239 7741
212380e3
AC
7742 /* Are we little or big endian? From Harbison&Steele. */
7743 union
7744 {
631ef239
AC
7745 long int l;
7746 char c[sizeof (long int)];
212380e3
AC
7747 } u;
7748 u.l = 1;
631ef239
AC
7749 return u.c[sizeof (long int) - 1] == 1;
7750
7751 ;
7752 return 0;
212380e3
AC
7753}
7754_ACEOF
7755rm -f conftest$ac_exeext
631ef239
AC
7756if { (ac_try="$ac_link"
7757case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760esac
7761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_link") 2>&5
212380e3
AC
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
7766 { (case "(($ac_try" in
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7769esac
7770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_try") 2>&5
212380e3
AC
7772 ac_status=$?
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); }; }; then
7775 ac_cv_c_bigendian=no
7776else
7777 echo "$as_me: program exited with status $ac_status" >&5
7778echo "$as_me: failed program was:" >&5
7779sed 's/^/| /' conftest.$ac_ext >&5
7780
7781( exit $ac_status )
7782ac_cv_c_bigendian=yes
7783fi
631ef239 7784rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 7785fi
631ef239
AC
7786
7787
212380e3 7788fi
631ef239
AC
7789
7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 7791fi
631ef239
AC
7792{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7793echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
212380e3
AC
7794case $ac_cv_c_bigendian in
7795 yes)
7796
7797cat >>confdefs.h <<\_ACEOF
7798#define WORDS_BIGENDIAN 1
7799_ACEOF
7800 ;;
7801 no)
7802 ;;
7803 *)
7804 { { echo "$as_me:$LINENO: error: unknown endianness
7805presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7806echo "$as_me: error: unknown endianness
7807presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7808 { (exit 1); exit 1; }; } ;;
7809esac
7810
7811
7812if test "${ac_cv_header_stdarg_h+set}" = set; then
631ef239
AC
7813 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
7814echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
212380e3
AC
7815if test "${ac_cv_header_stdarg_h+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817fi
631ef239
AC
7818{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7819echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
212380e3
AC
7820else
7821 # Is the header compilable?
631ef239
AC
7822{ echo "$as_me:$LINENO: checking stdarg.h usability" >&5
7823echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
212380e3
AC
7824cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h. */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
7829/* end confdefs.h. */
7830$ac_includes_default
7831#include <stdarg.h>
7832_ACEOF
7833rm -f conftest.$ac_objext
631ef239
AC
7834if { (ac_try="$ac_compile"
7835case "(($ac_try" in
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7838esac
7839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7846 (exit $ac_status); } && {
7847 test -z "$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 } && test -s conftest.$ac_objext; then
212380e3
AC
7850 ac_header_compiler=yes
7851else
7852 echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
631ef239 7855 ac_header_compiler=no
212380e3 7856fi
631ef239
AC
7857
7858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7859{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7860echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3
AC
7861
7862# Is the header present?
631ef239
AC
7863{ echo "$as_me:$LINENO: checking stdarg.h presence" >&5
7864echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
212380e3
AC
7865cat >conftest.$ac_ext <<_ACEOF
7866/* confdefs.h. */
7867_ACEOF
7868cat confdefs.h >>conftest.$ac_ext
7869cat >>conftest.$ac_ext <<_ACEOF
7870/* end confdefs.h. */
7871#include <stdarg.h>
7872_ACEOF
631ef239
AC
7873if { (ac_try="$ac_cpp conftest.$ac_ext"
7874case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
7878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3
AC
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7885 (exit $ac_status); } >/dev/null && {
7886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 }; then
212380e3
AC
7889 ac_header_preproc=yes
7890else
7891 echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_header_preproc=no
7895fi
631ef239 7896
212380e3 7897rm -f conftest.err conftest.$ac_ext
631ef239
AC
7898{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7899echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
7900
7901# So? What about this header?
7902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7903 yes:no: )
7904 { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
7905echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
7907echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
7908 ac_header_preproc=yes
7909 ;;
7910 no:yes:* )
7911 { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
7912echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: stdarg.h: check for missing prerequisite headers?" >&5
7914echo "$as_me: WARNING: stdarg.h: check for missing prerequisite headers?" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
7916echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&5
7918echo "$as_me: WARNING: stdarg.h: section \"Present But Cannot Be Compiled\"" >&2;}
7919 { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
7920echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
7921 { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
7922echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
631ef239 7923
212380e3
AC
7924 ;;
7925esac
631ef239
AC
7926{ echo "$as_me:$LINENO: checking for stdarg.h" >&5
7927echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
212380e3
AC
7928if test "${ac_cv_header_stdarg_h+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 ac_cv_header_stdarg_h=$ac_header_preproc
7932fi
631ef239
AC
7933{ echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
7934echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
212380e3
AC
7935
7936fi
7937if test $ac_cv_header_stdarg_h = yes; then
7938 :
7939else
7940 { { echo "$as_me:$LINENO: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&5
7941echo "$as_me: error: ** stdarg.h could not be found - ircd-ratbox will not compile without it **" >&2;}
7942 { (exit 1); exit 1; }; }
7943fi
7944
7945
7946
7947
7948if test "$ac_cv_c_compiler_gnu" = yes; then
7949
631ef239
AC
7950{ echo "$as_me:$LINENO: checking for strlcpy" >&5
7951echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
212380e3
AC
7952save_CFLAGS=$CFLAGS
7953CFLAGS="$CFLAGS -Wimplicit -Werror"
7954
7955cat >conftest.$ac_ext <<_ACEOF
7956/* confdefs.h. */
7957_ACEOF
7958cat confdefs.h >>conftest.$ac_ext
7959cat >>conftest.$ac_ext <<_ACEOF
7960/* end confdefs.h. */
7961#include <string.h>
7962 #include <stdlib.h>
7963int
7964main ()
7965{
7966char *a = malloc(6);
7967 strlcpy(a, "hello", 6);
7968
7969 ;
7970 return 0;
7971}
7972_ACEOF
7973rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
7974if { (ac_try="$ac_link"
7975case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978esac
7979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_link") 2>conftest.er1
212380e3
AC
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest$ac_exeext &&
7990 $as_test_x conftest$ac_exeext; then
7991 { echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6; }
212380e3
AC
7993
7994cat >>confdefs.h <<\_ACEOF
7995#define HAVE_STRLCPY 1
7996_ACEOF
7997
7998else
7999 echo "$as_me: failed program was:" >&5
8000sed 's/^/| /' conftest.$ac_ext >&5
8001
631ef239
AC
8002 { echo "$as_me:$LINENO: result: no" >&5
8003echo "${ECHO_T}no" >&6; }
212380e3
AC
8004
8005fi
631ef239
AC
8006
8007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
8008 conftest$ac_exeext conftest.$ac_ext
8009
631ef239
AC
8010{ echo "$as_me:$LINENO: checking for strlcat" >&5
8011echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
212380e3
AC
8012cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */
8018#include <string.h>
8019 #include <stdlib.h>
8020int
8021main ()
8022{
8023char *a = malloc(6);
8024 a[0] = '\0';
8025 strlcat(a, "hello", 6);
8026
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
8032if { (ac_try="$ac_link"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
8037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_link") 2>conftest.er1
212380e3
AC
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest$ac_exeext &&
8048 $as_test_x conftest$ac_exeext; then
8049 { echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6; }
212380e3
AC
8051
8052cat >>confdefs.h <<\_ACEOF
8053#define HAVE_STRLCAT 1
8054_ACEOF
8055
8056else
8057 echo "$as_me: failed program was:" >&5
8058sed 's/^/| /' conftest.$ac_ext >&5
8059
631ef239
AC
8060 { echo "$as_me:$LINENO: result: no" >&5
8061echo "${ECHO_T}no" >&6; }
212380e3
AC
8062
8063fi
631ef239
AC
8064
8065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
8066 conftest$ac_exeext conftest.$ac_ext
8067
8068CFLAGS=$save_CFLAGS
8069
8070else
8071
8072
8073
8074
8075for ac_func in strlcat strlcpy
8076do
8077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
8078{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8080if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082else
8083 cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h. */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h. */
8089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8091#define $ac_func innocuous_$ac_func
8092
8093/* System header to define __stub macros and hopefully few prototypes,
8094 which can conflict with char $ac_func (); below.
8095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8096 <limits.h> exists even on freestanding compilers. */
8097
8098#ifdef __STDC__
8099# include <limits.h>
8100#else
8101# include <assert.h>
8102#endif
8103
8104#undef $ac_func
8105
631ef239
AC
8106/* Override any GCC internal prototype to avoid an error.
8107 Use char because int might match the return type of a GCC
8108 builtin and then its argument prototype would still apply. */
212380e3
AC
8109#ifdef __cplusplus
8110extern "C"
212380e3 8111#endif
212380e3
AC
8112char $ac_func ();
8113/* The GNU C library defines this for functions which it implements
8114 to always fail with ENOSYS. Some functions are actually named
8115 something starting with __ and the normal name is an alias. */
631ef239 8116#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8117choke me
212380e3
AC
8118#endif
8119
8120int
8121main ()
8122{
631ef239 8123return $ac_func ();
212380e3
AC
8124 ;
8125 return 0;
8126}
8127_ACEOF
8128rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
8129if { (ac_try="$ac_link"
8130case "(($ac_try" in
8131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8132 *) ac_try_echo=$ac_try;;
8133esac
8134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8135 (eval "$ac_link") 2>conftest.er1
212380e3
AC
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8141 (exit $ac_status); } && {
8142 test -z "$ac_c_werror_flag" ||
8143 test ! -s conftest.err
8144 } && test -s conftest$ac_exeext &&
8145 $as_test_x conftest$ac_exeext; then
212380e3
AC
8146 eval "$as_ac_var=yes"
8147else
8148 echo "$as_me: failed program was:" >&5
8149sed 's/^/| /' conftest.$ac_ext >&5
8150
631ef239 8151 eval "$as_ac_var=no"
212380e3 8152fi
631ef239
AC
8153
8154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
8155 conftest$ac_exeext conftest.$ac_ext
8156fi
631ef239
AC
8157ac_res=`eval echo '${'$as_ac_var'}'`
8158 { echo "$as_me:$LINENO: result: $ac_res" >&5
8159echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
8160if test `eval echo '${'$as_ac_var'}'` = yes; then
8161 cat >>confdefs.h <<_ACEOF
8162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8163_ACEOF
8164
8165fi
8166done
8167
8168
8169fi
8170
631ef239
AC
8171{ echo "$as_me:$LINENO: checking for u_int32_t" >&5
8172echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6; }
212380e3
AC
8173if test "${ac_cv_type_u_int32_t+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h. */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h. */
8182$ac_includes_default
631ef239 8183typedef u_int32_t ac__type_new_;
212380e3
AC
8184int
8185main ()
8186{
631ef239 8187if ((ac__type_new_ *) 0)
212380e3 8188 return 0;
631ef239 8189if (sizeof (ac__type_new_))
212380e3
AC
8190 return 0;
8191 ;
8192 return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext
631ef239
AC
8196if { (ac_try="$ac_compile"
8197case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
8203 ac_status=$?
8204 grep -v '^ *+' conftest.er1 >conftest.err
8205 rm -f conftest.er1
8206 cat conftest.err >&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest.$ac_objext; then
212380e3
AC
8212 ac_cv_type_u_int32_t=yes
8213else
8214 echo "$as_me: failed program was:" >&5
8215sed 's/^/| /' conftest.$ac_ext >&5
8216
631ef239 8217 ac_cv_type_u_int32_t=no
212380e3 8218fi
631ef239
AC
8219
8220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8221fi
631ef239
AC
8222{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
8223echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6; }
212380e3
AC
8224if test $ac_cv_type_u_int32_t = yes; then
8225 :
8226else
8227
631ef239
AC
8228 { echo "$as_me:$LINENO: checking for uint32_t" >&5
8229echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
212380e3
AC
8230if test "${ac_cv_type_uint32_t+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232else
8233 cat >conftest.$ac_ext <<_ACEOF
8234/* confdefs.h. */
8235_ACEOF
8236cat confdefs.h >>conftest.$ac_ext
8237cat >>conftest.$ac_ext <<_ACEOF
8238/* end confdefs.h. */
8239$ac_includes_default
631ef239 8240typedef uint32_t ac__type_new_;
212380e3
AC
8241int
8242main ()
8243{
631ef239 8244if ((ac__type_new_ *) 0)
212380e3 8245 return 0;
631ef239 8246if (sizeof (ac__type_new_))
212380e3
AC
8247 return 0;
8248 ;
8249 return 0;
8250}
8251_ACEOF
8252rm -f conftest.$ac_objext
631ef239
AC
8253if { (ac_try="$ac_compile"
8254case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257esac
8258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
212380e3
AC
8269 ac_cv_type_uint32_t=yes
8270else
8271 echo "$as_me: failed program was:" >&5
8272sed 's/^/| /' conftest.$ac_ext >&5
8273
631ef239 8274 ac_cv_type_uint32_t=no
212380e3 8275fi
631ef239
AC
8276
8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8278fi
631ef239
AC
8279{ echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8280echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
212380e3
AC
8281if test $ac_cv_type_uint32_t = yes; then
8282
8283
8284cat >>confdefs.h <<\_ACEOF
8285#define u_int32_t uint32_t
8286_ACEOF
8287
8288
8289else
8290
8291 { echo "$as_me:$LINENO: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&5
8292echo "$as_me: WARNING: system has no u_int32_t or uint32_t, default to unsigned long int" >&2;}
8293
8294cat >>confdefs.h <<\_ACEOF
8295#define u_int32_t unsigned long int
8296_ACEOF
8297
8298
8299fi
8300
8301
8302fi
8303
8304
631ef239
AC
8305{ echo "$as_me:$LINENO: checking for u_int16_t" >&5
8306echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6; }
212380e3
AC
8307if test "${ac_cv_type_u_int16_t+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310 cat >conftest.$ac_ext <<_ACEOF
8311/* confdefs.h. */
8312_ACEOF
8313cat confdefs.h >>conftest.$ac_ext
8314cat >>conftest.$ac_ext <<_ACEOF
8315/* end confdefs.h. */
8316$ac_includes_default
631ef239 8317typedef u_int16_t ac__type_new_;
212380e3
AC
8318int
8319main ()
8320{
631ef239 8321if ((ac__type_new_ *) 0)
212380e3 8322 return 0;
631ef239 8323if (sizeof (ac__type_new_))
212380e3
AC
8324 return 0;
8325 ;
8326 return 0;
8327}
8328_ACEOF
8329rm -f conftest.$ac_objext
631ef239
AC
8330if { (ac_try="$ac_compile"
8331case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334esac
8335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
212380e3
AC
8346 ac_cv_type_u_int16_t=yes
8347else
8348 echo "$as_me: failed program was:" >&5
8349sed 's/^/| /' conftest.$ac_ext >&5
8350
631ef239 8351 ac_cv_type_u_int16_t=no
212380e3 8352fi
631ef239
AC
8353
8354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8355fi
631ef239
AC
8356{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
8357echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6; }
212380e3
AC
8358if test $ac_cv_type_u_int16_t = yes; then
8359 :
8360else
8361
631ef239
AC
8362 { echo "$as_me:$LINENO: checking for uint16_t" >&5
8363echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
212380e3
AC
8364if test "${ac_cv_type_uint16_t+set}" = set; then
8365 echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367 cat >conftest.$ac_ext <<_ACEOF
8368/* confdefs.h. */
8369_ACEOF
8370cat confdefs.h >>conftest.$ac_ext
8371cat >>conftest.$ac_ext <<_ACEOF
8372/* end confdefs.h. */
8373$ac_includes_default
631ef239 8374typedef uint16_t ac__type_new_;
212380e3
AC
8375int
8376main ()
8377{
631ef239 8378if ((ac__type_new_ *) 0)
212380e3 8379 return 0;
631ef239 8380if (sizeof (ac__type_new_))
212380e3
AC
8381 return 0;
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext
631ef239
AC
8387if { (ac_try="$ac_compile"
8388case "(($ac_try" in
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8391esac
8392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
8394 ac_status=$?
8395 grep -v '^ *+' conftest.er1 >conftest.err
8396 rm -f conftest.er1
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8399 (exit $ac_status); } && {
8400 test -z "$ac_c_werror_flag" ||
8401 test ! -s conftest.err
8402 } && test -s conftest.$ac_objext; then
212380e3
AC
8403 ac_cv_type_uint16_t=yes
8404else
8405 echo "$as_me: failed program was:" >&5
8406sed 's/^/| /' conftest.$ac_ext >&5
8407
631ef239 8408 ac_cv_type_uint16_t=no
212380e3 8409fi
631ef239
AC
8410
8411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8412fi
631ef239
AC
8413{ echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8414echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
212380e3
AC
8415if test $ac_cv_type_uint16_t = yes; then
8416
8417
8418cat >>confdefs.h <<\_ACEOF
8419#define u_int16_t uint16_t
8420_ACEOF
8421
8422
8423else
8424
8425 { echo "$as_me:$LINENO: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&5
8426echo "$as_me: WARNING: system has no u_int16_t or uint16_t, default to unsigned short int" >&2;}
8427
8428cat >>confdefs.h <<\_ACEOF
8429#define u_int16_t unsigned short int
8430_ACEOF
8431
8432
8433fi
8434
8435
8436fi
8437
8438
631ef239
AC
8439{ echo "$as_me:$LINENO: checking for in_port_t" >&5
8440echo $ECHO_N "checking for in_port_t... $ECHO_C" >&6; }
212380e3
AC
8441if test "${ac_cv_type_in_port_t+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8443else
8444 cat >conftest.$ac_ext <<_ACEOF
8445/* confdefs.h. */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h. */
8450#include <sys/types.h>
8451#include <netinet/in.h>
8452
631ef239 8453typedef in_port_t ac__type_new_;
212380e3
AC
8454int
8455main ()
8456{
631ef239 8457if ((ac__type_new_ *) 0)
212380e3 8458 return 0;
631ef239 8459if (sizeof (ac__type_new_))
212380e3
AC
8460 return 0;
8461 ;
8462 return 0;
8463}
8464_ACEOF
8465rm -f conftest.$ac_objext
631ef239
AC
8466if { (ac_try="$ac_compile"
8467case "(($ac_try" in
8468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469 *) ac_try_echo=$ac_try;;
8470esac
8471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8478 (exit $ac_status); } && {
8479 test -z "$ac_c_werror_flag" ||
8480 test ! -s conftest.err
8481 } && test -s conftest.$ac_objext; then
212380e3
AC
8482 ac_cv_type_in_port_t=yes
8483else
8484 echo "$as_me: failed program was:" >&5
8485sed 's/^/| /' conftest.$ac_ext >&5
8486
631ef239 8487 ac_cv_type_in_port_t=no
212380e3 8488fi
631ef239
AC
8489
8490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8491fi
631ef239
AC
8492{ echo "$as_me:$LINENO: result: $ac_cv_type_in_port_t" >&5
8493echo "${ECHO_T}$ac_cv_type_in_port_t" >&6; }
212380e3
AC
8494if test $ac_cv_type_in_port_t = yes; then
8495 :
8496else
8497
8498cat >>confdefs.h <<\_ACEOF
8499#define in_port_t u_int16_t
8500_ACEOF
8501
8502fi
8503
8504
631ef239
AC
8505{ echo "$as_me:$LINENO: checking for sa_family_t" >&5
8506echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6; }
212380e3
AC
8507if test "${ac_cv_type_sa_family_t+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510 cat >conftest.$ac_ext <<_ACEOF
8511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516#include <sys/types.h>
8517#include <sys/socket.h>
8518
631ef239 8519typedef sa_family_t ac__type_new_;
212380e3
AC
8520int
8521main ()
8522{
631ef239 8523if ((ac__type_new_ *) 0)
212380e3 8524 return 0;
631ef239 8525if (sizeof (ac__type_new_))
212380e3
AC
8526 return 0;
8527 ;
8528 return 0;
8529}
8530_ACEOF
8531rm -f conftest.$ac_objext
631ef239
AC
8532if { (ac_try="$ac_compile"
8533case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536esac
8537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
212380e3
AC
8548 ac_cv_type_sa_family_t=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
631ef239 8553 ac_cv_type_sa_family_t=no
212380e3 8554fi
631ef239
AC
8555
8556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8557fi
631ef239
AC
8558{ echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
8559echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6; }
212380e3
AC
8560if test $ac_cv_type_sa_family_t = yes; then
8561 :
8562else
8563
8564cat >>confdefs.h <<\_ACEOF
8565#define sa_family_t u_int16_t
8566_ACEOF
8567
8568fi
8569
8570
631ef239
AC
8571{ echo "$as_me:$LINENO: checking for uintptr_t" >&5
8572echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
212380e3
AC
8573if test "${ac_cv_type_uintptr_t+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8575else
8576 cat >conftest.$ac_ext <<_ACEOF
8577/* confdefs.h. */
8578_ACEOF
8579cat confdefs.h >>conftest.$ac_ext
8580cat >>conftest.$ac_ext <<_ACEOF
8581/* end confdefs.h. */
8582$ac_includes_default
631ef239 8583typedef uintptr_t ac__type_new_;
212380e3
AC
8584int
8585main ()
8586{
631ef239 8587if ((ac__type_new_ *) 0)
212380e3 8588 return 0;
631ef239 8589if (sizeof (ac__type_new_))
212380e3
AC
8590 return 0;
8591 ;
8592 return 0;
8593}
8594_ACEOF
8595rm -f conftest.$ac_objext
631ef239
AC
8596if { (ac_try="$ac_compile"
8597case "(($ac_try" in
8598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599 *) ac_try_echo=$ac_try;;
8600esac
8601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8608 (exit $ac_status); } && {
8609 test -z "$ac_c_werror_flag" ||
8610 test ! -s conftest.err
8611 } && test -s conftest.$ac_objext; then
212380e3
AC
8612 ac_cv_type_uintptr_t=yes
8613else
8614 echo "$as_me: failed program was:" >&5
8615sed 's/^/| /' conftest.$ac_ext >&5
8616
631ef239 8617 ac_cv_type_uintptr_t=no
212380e3 8618fi
631ef239
AC
8619
8620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3 8621fi
631ef239
AC
8622{ echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
8623echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
212380e3
AC
8624if test $ac_cv_type_uintptr_t = yes; then
8625
8626cat >>confdefs.h <<_ACEOF
8627#define HAVE_UINTPTR_T 1
8628_ACEOF
8629
8630
8631fi
8632
8633
8634
8635
8636
8637
8638
8639
8640for ac_func in socketpair vsnprintf mmap gettimeofday strdup strndup
8641do
8642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
8643{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8645if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
8646 echo $ECHO_N "(cached) $ECHO_C" >&6
8647else
8648 cat >conftest.$ac_ext <<_ACEOF
8649/* confdefs.h. */
8650_ACEOF
8651cat confdefs.h >>conftest.$ac_ext
8652cat >>conftest.$ac_ext <<_ACEOF
8653/* end confdefs.h. */
8654/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8656#define $ac_func innocuous_$ac_func
8657
8658/* System header to define __stub macros and hopefully few prototypes,
8659 which can conflict with char $ac_func (); below.
8660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8661 <limits.h> exists even on freestanding compilers. */
8662
8663#ifdef __STDC__
8664# include <limits.h>
8665#else
8666# include <assert.h>
8667#endif
8668
8669#undef $ac_func
8670
631ef239
AC
8671/* Override any GCC internal prototype to avoid an error.
8672 Use char because int might match the return type of a GCC
8673 builtin and then its argument prototype would still apply. */
212380e3
AC
8674#ifdef __cplusplus
8675extern "C"
212380e3 8676#endif
212380e3
AC
8677char $ac_func ();
8678/* The GNU C library defines this for functions which it implements
8679 to always fail with ENOSYS. Some functions are actually named
8680 something starting with __ and the normal name is an alias. */
631ef239 8681#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8682choke me
212380e3
AC
8683#endif
8684
8685int
8686main ()
8687{
631ef239 8688return $ac_func ();
212380e3
AC
8689 ;
8690 return 0;
8691}
8692_ACEOF
8693rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
8694if { (ac_try="$ac_link"
8695case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_link") 2>conftest.er1
212380e3
AC
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest$ac_exeext &&
8710 $as_test_x conftest$ac_exeext; then
212380e3
AC
8711 eval "$as_ac_var=yes"
8712else
8713 echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
631ef239 8716 eval "$as_ac_var=no"
212380e3 8717fi
631ef239
AC
8718
8719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
8720 conftest$ac_exeext conftest.$ac_ext
8721fi
631ef239
AC
8722ac_res=`eval echo '${'$as_ac_var'}'`
8723 { echo "$as_me:$LINENO: result: $ac_res" >&5
8724echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
8725if test `eval echo '${'$as_ac_var'}'` = yes; then
8726 cat >>confdefs.h <<_ACEOF
8727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8728_ACEOF
8729
8730fi
8731done
8732
8733
8734# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8735# for constant arguments. Useless!
631ef239
AC
8736{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
8737echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
212380e3
AC
8738if test "${ac_cv_working_alloca_h+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8740else
8741 cat >conftest.$ac_ext <<_ACEOF
8742/* confdefs.h. */
8743_ACEOF
8744cat confdefs.h >>conftest.$ac_ext
8745cat >>conftest.$ac_ext <<_ACEOF
8746/* end confdefs.h. */
8747#include <alloca.h>
8748int
8749main ()
8750{
8751char *p = (char *) alloca (2 * sizeof (int));
631ef239 8752 if (p) return 0;
212380e3
AC
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
8758if { (ac_try="$ac_link"
8759case "(($ac_try" in
8760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8762esac
8763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_link") 2>conftest.er1
212380e3
AC
8765 ac_status=$?
8766 grep -v '^ *+' conftest.er1 >conftest.err
8767 rm -f conftest.er1
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
8773 } && test -s conftest$ac_exeext &&
8774 $as_test_x conftest$ac_exeext; then
212380e3
AC
8775 ac_cv_working_alloca_h=yes
8776else
8777 echo "$as_me: failed program was:" >&5
8778sed 's/^/| /' conftest.$ac_ext >&5
8779
631ef239 8780 ac_cv_working_alloca_h=no
212380e3 8781fi
631ef239
AC
8782
8783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
8784 conftest$ac_exeext conftest.$ac_ext
8785fi
631ef239
AC
8786{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8787echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
212380e3
AC
8788if test $ac_cv_working_alloca_h = yes; then
8789
8790cat >>confdefs.h <<\_ACEOF
8791#define HAVE_ALLOCA_H 1
8792_ACEOF
8793
8794fi
8795
631ef239
AC
8796{ echo "$as_me:$LINENO: checking for alloca" >&5
8797echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
212380e3
AC
8798if test "${ac_cv_func_alloca_works+set}" = set; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801 cat >conftest.$ac_ext <<_ACEOF
8802/* confdefs.h. */
8803_ACEOF
8804cat confdefs.h >>conftest.$ac_ext
8805cat >>conftest.$ac_ext <<_ACEOF
8806/* end confdefs.h. */
8807#ifdef __GNUC__
8808# define alloca __builtin_alloca
8809#else
8810# ifdef _MSC_VER
8811# include <malloc.h>
8812# define alloca _alloca
8813# else
631ef239 8814# ifdef HAVE_ALLOCA_H
212380e3
AC
8815# include <alloca.h>
8816# else
8817# ifdef _AIX
8818 #pragma alloca
8819# else
8820# ifndef alloca /* predefined by HP cc +Olibcalls */
8821char *alloca ();
8822# endif
8823# endif
8824# endif
8825# endif
8826#endif
8827
8828int
8829main ()
8830{
8831char *p = (char *) alloca (1);
631ef239 8832 if (p) return 0;
212380e3
AC
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
8838if { (ac_try="$ac_link"
8839case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842esac
8843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_link") 2>conftest.er1
212380e3
AC
8845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8850 (exit $ac_status); } && {
8851 test -z "$ac_c_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest$ac_exeext &&
8854 $as_test_x conftest$ac_exeext; then
212380e3
AC
8855 ac_cv_func_alloca_works=yes
8856else
8857 echo "$as_me: failed program was:" >&5
8858sed 's/^/| /' conftest.$ac_ext >&5
8859
631ef239 8860 ac_cv_func_alloca_works=no
212380e3 8861fi
631ef239
AC
8862
8863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
8864 conftest$ac_exeext conftest.$ac_ext
8865fi
631ef239
AC
8866{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8867echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
212380e3
AC
8868
8869if test $ac_cv_func_alloca_works = yes; then
8870
8871cat >>confdefs.h <<\_ACEOF
8872#define HAVE_ALLOCA 1
8873_ACEOF
8874
8875else
8876 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8877# that cause trouble. Some versions do not even contain alloca or
8878# contain a buggy version. If you still want to use their alloca,
8879# use ar to extract alloca.o from them instead of compiling alloca.c.
8880
631ef239 8881ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
212380e3
AC
8882
8883cat >>confdefs.h <<\_ACEOF
8884#define C_ALLOCA 1
8885_ACEOF
8886
8887
631ef239
AC
8888{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8889echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
212380e3
AC
8890if test "${ac_cv_os_cray+set}" = set; then
8891 echo $ECHO_N "(cached) $ECHO_C" >&6
8892else
8893 cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h. */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h. */
631ef239 8899#if defined CRAY && ! defined CRAY2
212380e3
AC
8900webecray
8901#else
8902wenotbecray
8903#endif
8904
8905_ACEOF
8906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8907 $EGREP "webecray" >/dev/null 2>&1; then
8908 ac_cv_os_cray=yes
8909else
8910 ac_cv_os_cray=no
8911fi
8912rm -f conftest*
8913
8914fi
631ef239
AC
8915{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8916echo "${ECHO_T}$ac_cv_os_cray" >&6; }
212380e3
AC
8917if test $ac_cv_os_cray = yes; then
8918 for ac_func in _getb67 GETB67 getb67; do
8919 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
8920{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8922if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925 cat >conftest.$ac_ext <<_ACEOF
8926/* confdefs.h. */
8927_ACEOF
8928cat confdefs.h >>conftest.$ac_ext
8929cat >>conftest.$ac_ext <<_ACEOF
8930/* end confdefs.h. */
8931/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8933#define $ac_func innocuous_$ac_func
8934
8935/* System header to define __stub macros and hopefully few prototypes,
8936 which can conflict with char $ac_func (); below.
8937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938 <limits.h> exists even on freestanding compilers. */
8939
8940#ifdef __STDC__
8941# include <limits.h>
8942#else
8943# include <assert.h>
8944#endif
8945
8946#undef $ac_func
8947
631ef239
AC
8948/* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
212380e3
AC
8951#ifdef __cplusplus
8952extern "C"
212380e3 8953#endif
212380e3
AC
8954char $ac_func ();
8955/* The GNU C library defines this for functions which it implements
8956 to always fail with ENOSYS. Some functions are actually named
8957 something starting with __ and the normal name is an alias. */
631ef239 8958#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 8959choke me
212380e3
AC
8960#endif
8961
8962int
8963main ()
8964{
631ef239 8965return $ac_func ();
212380e3
AC
8966 ;
8967 return 0;
8968}
8969_ACEOF
8970rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
8971if { (ac_try="$ac_link"
8972case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975esac
8976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_link") 2>conftest.er1
212380e3
AC
8978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
8983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest$ac_exeext &&
8987 $as_test_x conftest$ac_exeext; then
212380e3
AC
8988 eval "$as_ac_var=yes"
8989else
8990 echo "$as_me: failed program was:" >&5
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
631ef239 8993 eval "$as_ac_var=no"
212380e3 8994fi
631ef239
AC
8995
8996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
8997 conftest$ac_exeext conftest.$ac_ext
8998fi
631ef239
AC
8999ac_res=`eval echo '${'$as_ac_var'}'`
9000 { echo "$as_me:$LINENO: result: $ac_res" >&5
9001echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
9002if test `eval echo '${'$as_ac_var'}'` = yes; then
9003
9004cat >>confdefs.h <<_ACEOF
9005#define CRAY_STACKSEG_END $ac_func
9006_ACEOF
9007
9008 break
9009fi
9010
9011 done
9012fi
9013
631ef239
AC
9014{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9015echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
212380e3
AC
9016if test "${ac_cv_c_stack_direction+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9018else
9019 if test "$cross_compiling" = yes; then
9020 ac_cv_c_stack_direction=0
9021else
9022 cat >conftest.$ac_ext <<_ACEOF
9023/* confdefs.h. */
9024_ACEOF
9025cat confdefs.h >>conftest.$ac_ext
9026cat >>conftest.$ac_ext <<_ACEOF
9027/* end confdefs.h. */
631ef239 9028$ac_includes_default
212380e3
AC
9029int
9030find_stack_direction ()
9031{
9032 static char *addr = 0;
9033 auto char dummy;
9034 if (addr == 0)
9035 {
9036 addr = &dummy;
9037 return find_stack_direction ();
9038 }
9039 else
9040 return (&dummy > addr) ? 1 : -1;
9041}
9042
9043int
9044main ()
9045{
631ef239 9046 return find_stack_direction () < 0;
212380e3
AC
9047}
9048_ACEOF
9049rm -f conftest$ac_exeext
631ef239
AC
9050if { (ac_try="$ac_link"
9051case "(($ac_try" in
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9054esac
9055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_link") 2>&5
212380e3
AC
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
9060 { (case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063esac
9064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_try") 2>&5
212380e3
AC
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_c_stack_direction=1
9070else
9071 echo "$as_me: program exited with status $ac_status" >&5
9072echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075( exit $ac_status )
9076ac_cv_c_stack_direction=-1
9077fi
631ef239 9078rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 9079fi
631ef239
AC
9080
9081
212380e3 9082fi
631ef239
AC
9083{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9084echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
212380e3
AC
9085
9086cat >>confdefs.h <<_ACEOF
9087#define STACK_DIRECTION $ac_cv_c_stack_direction
9088_ACEOF
9089
9090
9091fi
9092
9093
9094
631ef239
AC
9095{ echo "$as_me:$LINENO: checking for nanosleep" >&5
9096echo $ECHO_N "checking for nanosleep... $ECHO_C" >&6; }
212380e3
AC
9097if test "${ac_cv_func_nanosleep+set}" = set; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100 cat >conftest.$ac_ext <<_ACEOF
9101/* confdefs.h. */
9102_ACEOF
9103cat confdefs.h >>conftest.$ac_ext
9104cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h. */
9106/* Define nanosleep to an innocuous variant, in case <limits.h> declares nanosleep.
9107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9108#define nanosleep innocuous_nanosleep
9109
9110/* System header to define __stub macros and hopefully few prototypes,
9111 which can conflict with char nanosleep (); below.
9112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9113 <limits.h> exists even on freestanding compilers. */
9114
9115#ifdef __STDC__
9116# include <limits.h>
9117#else
9118# include <assert.h>
9119#endif
9120
9121#undef nanosleep
9122
631ef239
AC
9123/* Override any GCC internal prototype to avoid an error.
9124 Use char because int might match the return type of a GCC
9125 builtin and then its argument prototype would still apply. */
212380e3
AC
9126#ifdef __cplusplus
9127extern "C"
212380e3 9128#endif
212380e3
AC
9129char nanosleep ();
9130/* The GNU C library defines this for functions which it implements
9131 to always fail with ENOSYS. Some functions are actually named
9132 something starting with __ and the normal name is an alias. */
631ef239 9133#if defined __stub_nanosleep || defined __stub___nanosleep
212380e3 9134choke me
212380e3
AC
9135#endif
9136
9137int
9138main ()
9139{
631ef239 9140return nanosleep ();
212380e3
AC
9141 ;
9142 return 0;
9143}
9144_ACEOF
9145rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
9146if { (ac_try="$ac_link"
9147case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150esac
9151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_link") 2>conftest.er1
212380e3
AC
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9158 (exit $ac_status); } && {
9159 test -z "$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 } && test -s conftest$ac_exeext &&
9162 $as_test_x conftest$ac_exeext; then
212380e3
AC
9163 ac_cv_func_nanosleep=yes
9164else
9165 echo "$as_me: failed program was:" >&5
9166sed 's/^/| /' conftest.$ac_ext >&5
9167
631ef239 9168 ac_cv_func_nanosleep=no
212380e3 9169fi
631ef239
AC
9170
9171rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
9172 conftest$ac_exeext conftest.$ac_ext
9173fi
631ef239
AC
9174{ echo "$as_me:$LINENO: result: $ac_cv_func_nanosleep" >&5
9175echo "${ECHO_T}$ac_cv_func_nanosleep" >&6; }
212380e3
AC
9176if test $ac_cv_func_nanosleep = yes; then
9177 :
9178else
631ef239
AC
9179 { echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
9180echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6; }
212380e3
AC
9181if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
9182 echo $ECHO_N "(cached) $ECHO_C" >&6
9183else
9184 ac_check_lib_save_LIBS=$LIBS
9185LIBS="-lrt $LIBS"
9186cat >conftest.$ac_ext <<_ACEOF
9187/* confdefs.h. */
9188_ACEOF
9189cat confdefs.h >>conftest.$ac_ext
9190cat >>conftest.$ac_ext <<_ACEOF
9191/* end confdefs.h. */
9192
631ef239
AC
9193/* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
212380e3
AC
9196#ifdef __cplusplus
9197extern "C"
9198#endif
212380e3
AC
9199char nanosleep ();
9200int
9201main ()
9202{
631ef239 9203return nanosleep ();
212380e3
AC
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
9209if { (ac_try="$ac_link"
9210case "(($ac_try" in
9211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212 *) ac_try_echo=$ac_try;;
9213esac
9214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215 (eval "$ac_link") 2>conftest.er1
212380e3
AC
9216 ac_status=$?
9217 grep -v '^ *+' conftest.er1 >conftest.err
9218 rm -f conftest.er1
9219 cat conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9221 (exit $ac_status); } && {
9222 test -z "$ac_c_werror_flag" ||
9223 test ! -s conftest.err
9224 } && test -s conftest$ac_exeext &&
9225 $as_test_x conftest$ac_exeext; then
212380e3
AC
9226 ac_cv_lib_rt_nanosleep=yes
9227else
9228 echo "$as_me: failed program was:" >&5
9229sed 's/^/| /' conftest.$ac_ext >&5
9230
631ef239 9231 ac_cv_lib_rt_nanosleep=no
212380e3 9232fi
631ef239
AC
9233
9234rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
9235 conftest$ac_exeext conftest.$ac_ext
9236LIBS=$ac_check_lib_save_LIBS
9237fi
631ef239
AC
9238{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
9239echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6; }
212380e3
AC
9240if test $ac_cv_lib_rt_nanosleep = yes; then
9241 LIBS="${LIBS} -lrt"
9242else
631ef239
AC
9243 { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
9244echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
212380e3
AC
9245if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247else
9248 ac_check_lib_save_LIBS=$LIBS
9249LIBS="-lposix4 $LIBS"
9250cat >conftest.$ac_ext <<_ACEOF
9251/* confdefs.h. */
9252_ACEOF
9253cat confdefs.h >>conftest.$ac_ext
9254cat >>conftest.$ac_ext <<_ACEOF
9255/* end confdefs.h. */
9256
631ef239
AC
9257/* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
212380e3
AC
9260#ifdef __cplusplus
9261extern "C"
9262#endif
212380e3
AC
9263char nanosleep ();
9264int
9265main ()
9266{
631ef239 9267return nanosleep ();
212380e3
AC
9268 ;
9269 return 0;
9270}
9271_ACEOF
9272rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
9273if { (ac_try="$ac_link"
9274case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9277esac
9278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_link") 2>conftest.er1
212380e3
AC
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest$ac_exeext &&
9289 $as_test_x conftest$ac_exeext; then
212380e3
AC
9290 ac_cv_lib_posix4_nanosleep=yes
9291else
9292 echo "$as_me: failed program was:" >&5
9293sed 's/^/| /' conftest.$ac_ext >&5
9294
631ef239 9295 ac_cv_lib_posix4_nanosleep=no
212380e3 9296fi
631ef239
AC
9297
9298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
9299 conftest$ac_exeext conftest.$ac_ext
9300LIBS=$ac_check_lib_save_LIBS
9301fi
631ef239
AC
9302{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
9303echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
212380e3
AC
9304if test $ac_cv_lib_posix4_nanosleep = yes; then
9305 LIBS="${LIBS} -lposix4"
9306
9307fi
9308
9309fi
9310
9311fi
9312
9313if test x$ac_cv_func_nanosleep = xno && test x$ac_cv_lib_posix4_nanosleep = xno && test x$ac_cv_lib_rt_nanosleep = xno
9314then
631ef239
AC
9315 { echo "$as_me:$LINENO: result: \"nanosleep not found..using select for delay\"" >&5
9316echo "${ECHO_T}\"nanosleep not found..using select for delay\"" >&6; }
212380e3
AC
9317else
9318
9319cat >>confdefs.h <<\_ACEOF
9320#define HAVE_NANOSLEEP 1
9321_ACEOF
9322
9323fi
9324
631ef239
AC
9325{ echo "$as_me:$LINENO: checking for OpenSSL" >&5
9326echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
9327# Check whether --enable-openssl was given.
212380e3 9328if test "${enable_openssl+set}" = set; then
631ef239 9329 enableval=$enable_openssl; cf_enable_openssl=$enableval
212380e3
AC
9330else
9331 cf_enable_openssl="auto"
631ef239
AC
9332fi
9333
212380e3
AC
9334
9335if test "$cf_enable_openssl" != "no" ; then
9336 cf_openssl_basedir=""
9337 if test "$cf_enable_openssl" != "auto" &&
9338 test "$cf_enable_openssl" != "yes" ; then
9339 cf_openssl_basedir="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
9340 else
9341 for dirs in /usr/local/ssl /usr/pkg /usr/local \
9342 /usr/local/openssl ; do
9343 if test -f "${dirs}/include/openssl/opensslv.h" ; then
9344 cf_openssl_basedir="${dirs}"
9345 break
9346 fi
9347 done
9348 unset dirs
9349 fi
9350 if test ! -z "$cf_openssl_basedir"; then
9351 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
9352 SSL_INCLUDES="-I${cf_openssl_basedir}/include"
9353 SSL_LIBS="-L${cf_openssl_basedir}/lib"
9354 else
9355 cf_openssl_basedir=""
9356 fi
9357 else
9358 if test -f "/usr/include/openssl/opensslv.h" ; then
9359 cf_openssl_basedir="/usr"
9360 fi
9361 fi
9362
9363 if test ! -z "$cf_openssl_basedir"; then
631ef239
AC
9364 { echo "$as_me:$LINENO: result: $cf_openssl_basedir" >&5
9365echo "${ECHO_T}$cf_openssl_basedir" >&6; }
212380e3
AC
9366 cf_enable_openssl="yes"
9367 else
631ef239
AC
9368 { echo "$as_me:$LINENO: result: not found. Specify a correct path?" >&5
9369echo "${ECHO_T}not found. Specify a correct path?" >&6; }
212380e3
AC
9370 cf_enable_openssl="no"
9371 fi
9372 unset cf_openssl_basedir
9373else
631ef239
AC
9374 { echo "$as_me:$LINENO: result: disabled" >&5
9375echo "${ECHO_T}disabled" >&6; }
212380e3
AC
9376fi
9377
9378save_CPPFLAGS="$CPPFLAGS"
9379CPPFLAGS="$CPPFLAGS $SSL_INCLUDES"
9380save_LIBS="$LIBS"
9381LIBS="$LIBS $SSL_LIBS"
9382if test "$cf_enable_openssl" != no; then
631ef239
AC
9383 { echo "$as_me:$LINENO: checking for OpenSSL 0.9.6 or above" >&5
9384echo $ECHO_N "checking for OpenSSL 0.9.6 or above... $ECHO_C" >&6; }
212380e3
AC
9385 if test "$cross_compiling" = yes; then
9386 cf_openssl_version_ok=no
9387else
9388 cat >conftest.$ac_ext <<_ACEOF
9389/* confdefs.h. */
9390_ACEOF
9391cat confdefs.h >>conftest.$ac_ext
9392cat >>conftest.$ac_ext <<_ACEOF
9393/* end confdefs.h. */
9394#include <openssl/opensslv.h>
9395 #include <stdlib.h>
9396int
9397main ()
9398{
9399if ( OPENSSL_VERSION_NUMBER >= 0x00906000)
9400 exit(0); else exit(1);
9401 ;
9402 return 0;
9403}
9404_ACEOF
9405rm -f conftest$ac_exeext
631ef239
AC
9406if { (ac_try="$ac_link"
9407case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410esac
9411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>&5
212380e3
AC
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
9416 { (case "(($ac_try" in
9417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418 *) ac_try_echo=$ac_try;;
9419esac
9420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421 (eval "$ac_try") 2>&5
212380e3
AC
9422 ac_status=$?
9423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424 (exit $ac_status); }; }; then
9425 cf_openssl_version_ok=yes
9426else
9427 echo "$as_me: program exited with status $ac_status" >&5
9428echo "$as_me: failed program was:" >&5
9429sed 's/^/| /' conftest.$ac_ext >&5
9430
9431( exit $ac_status )
9432cf_openssl_version_ok=no
9433fi
631ef239 9434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3
AC
9435fi
9436
631ef239
AC
9437
9438
212380e3 9439 if test "$cf_openssl_version_ok" = yes; then
631ef239
AC
9440 { echo "$as_me:$LINENO: result: found" >&5
9441echo "${ECHO_T}found" >&6; }
212380e3
AC
9442
9443 ENCSPEED=encspeed
9444
9445
9446 CPPFLAGS="$CPPFLAGS $SSL_LIBS"
9447
631ef239
AC
9448{ echo "$as_me:$LINENO: checking for RSA_free in -lcrypto" >&5
9449echo $ECHO_N "checking for RSA_free in -lcrypto... $ECHO_C" >&6; }
212380e3
AC
9450if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then
9451 echo $ECHO_N "(cached) $ECHO_C" >&6
9452else
9453 ac_check_lib_save_LIBS=$LIBS
9454LIBS="-lcrypto $LIBS"
9455cat >conftest.$ac_ext <<_ACEOF
9456/* confdefs.h. */
9457_ACEOF
9458cat confdefs.h >>conftest.$ac_ext
9459cat >>conftest.$ac_ext <<_ACEOF
9460/* end confdefs.h. */
9461
631ef239
AC
9462/* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
212380e3
AC
9465#ifdef __cplusplus
9466extern "C"
9467#endif
212380e3
AC
9468char RSA_free ();
9469int
9470main ()
9471{
631ef239 9472return RSA_free ();
212380e3
AC
9473 ;
9474 return 0;
9475}
9476_ACEOF
9477rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
9478if { (ac_try="$ac_link"
9479case "(($ac_try" in
9480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9482esac
9483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_link") 2>conftest.er1
212380e3
AC
9485 ac_status=$?
9486 grep -v '^ *+' conftest.er1 >conftest.err
9487 rm -f conftest.er1
9488 cat conftest.err >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9490 (exit $ac_status); } && {
9491 test -z "$ac_c_werror_flag" ||
9492 test ! -s conftest.err
9493 } && test -s conftest$ac_exeext &&
9494 $as_test_x conftest$ac_exeext; then
212380e3
AC
9495 ac_cv_lib_crypto_RSA_free=yes
9496else
9497 echo "$as_me: failed program was:" >&5
9498sed 's/^/| /' conftest.$ac_ext >&5
9499
631ef239 9500 ac_cv_lib_crypto_RSA_free=no
212380e3 9501fi
631ef239
AC
9502
9503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
9504 conftest$ac_exeext conftest.$ac_ext
9505LIBS=$ac_check_lib_save_LIBS
9506fi
631ef239
AC
9507{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_RSA_free" >&5
9508echo "${ECHO_T}$ac_cv_lib_crypto_RSA_free" >&6; }
212380e3
AC
9509if test $ac_cv_lib_crypto_RSA_free = yes; then
9510 cat >>confdefs.h <<_ACEOF
9511#define HAVE_LIBCRYPTO 1
9512_ACEOF
9513
9514 LIBS="-lcrypto $LIBS"
9515
9516fi
9517
9518 SSL_LIBS="$SSL_LIBS -lcrypto"
9519 SSL_SRCS_ENABLE='$(SSL_SRCS)'
9520 else
631ef239
AC
9521 { echo "$as_me:$LINENO: result: no - OpenSSL support disabled" >&5
9522echo "${ECHO_T}no - OpenSSL support disabled" >&6; }
212380e3
AC
9523 fi
9524fi
9525
9526CPPFLAGS="$save_CPPFLAGS"
9527LIBS="$save_LIBS"
9528
9529
9530
9531
9532
631ef239 9533# Check whether --with-zlib-path was given.
212380e3 9534if test "${with_zlib_path+set}" = set; then
631ef239
AC
9535 withval=$with_zlib_path; LIBS="$LIBS -L$withval"
9536fi
212380e3 9537
631ef239
AC
9538
9539# Check whether --enable-zlib was given.
212380e3 9540if test "${enable_zlib+set}" = set; then
631ef239 9541 enableval=$enable_zlib; zlib=$enableval
212380e3
AC
9542else
9543 zlib=yes
631ef239
AC
9544fi
9545
212380e3
AC
9546
9547if test "$zlib" = yes; then
9548
9549if test "${ac_cv_header_zlib_h+set}" = set; then
631ef239
AC
9550 { echo "$as_me:$LINENO: checking for zlib.h" >&5
9551echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
212380e3
AC
9552if test "${ac_cv_header_zlib_h+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554fi
631ef239
AC
9555{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9556echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
212380e3
AC
9557else
9558 # Is the header compilable?
631ef239
AC
9559{ echo "$as_me:$LINENO: checking zlib.h usability" >&5
9560echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
212380e3
AC
9561cat >conftest.$ac_ext <<_ACEOF
9562/* confdefs.h. */
9563_ACEOF
9564cat confdefs.h >>conftest.$ac_ext
9565cat >>conftest.$ac_ext <<_ACEOF
9566/* end confdefs.h. */
9567$ac_includes_default
9568#include <zlib.h>
9569_ACEOF
9570rm -f conftest.$ac_objext
631ef239
AC
9571if { (ac_try="$ac_compile"
9572case "(($ac_try" in
9573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574 *) ac_try_echo=$ac_try;;
9575esac
9576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
9578 ac_status=$?
9579 grep -v '^ *+' conftest.er1 >conftest.err
9580 rm -f conftest.er1
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9583 (exit $ac_status); } && {
9584 test -z "$ac_c_werror_flag" ||
9585 test ! -s conftest.err
9586 } && test -s conftest.$ac_objext; then
212380e3
AC
9587 ac_header_compiler=yes
9588else
9589 echo "$as_me: failed program was:" >&5
9590sed 's/^/| /' conftest.$ac_ext >&5
9591
631ef239 9592 ac_header_compiler=no
212380e3 9593fi
631ef239
AC
9594
9595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9597echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3
AC
9598
9599# Is the header present?
631ef239
AC
9600{ echo "$as_me:$LINENO: checking zlib.h presence" >&5
9601echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
212380e3
AC
9602cat >conftest.$ac_ext <<_ACEOF
9603/* confdefs.h. */
9604_ACEOF
9605cat confdefs.h >>conftest.$ac_ext
9606cat >>conftest.$ac_ext <<_ACEOF
9607/* end confdefs.h. */
9608#include <zlib.h>
9609_ACEOF
631ef239
AC
9610if { (ac_try="$ac_cpp conftest.$ac_ext"
9611case "(($ac_try" in
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9614esac
9615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3
AC
9617 ac_status=$?
9618 grep -v '^ *+' conftest.er1 >conftest.err
9619 rm -f conftest.er1
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9622 (exit $ac_status); } >/dev/null && {
9623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 }; then
212380e3
AC
9626 ac_header_preproc=yes
9627else
9628 echo "$as_me: failed program was:" >&5
9629sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 ac_header_preproc=no
9632fi
631ef239 9633
212380e3 9634rm -f conftest.err conftest.$ac_ext
631ef239
AC
9635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9636echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
9637
9638# So? What about this header?
9639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9640 yes:no: )
9641 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9642echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
9644echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
9645 ac_header_preproc=yes
9646 ;;
9647 no:yes:* )
9648 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
9649echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
9651echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
9653echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
9655echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
9656 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
9657echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
9659echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
631ef239 9660
212380e3
AC
9661 ;;
9662esac
631ef239
AC
9663{ echo "$as_me:$LINENO: checking for zlib.h" >&5
9664echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
212380e3
AC
9665if test "${ac_cv_header_zlib_h+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668 ac_cv_header_zlib_h=$ac_header_preproc
9669fi
631ef239
AC
9670{ echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
9671echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
212380e3
AC
9672
9673fi
9674if test $ac_cv_header_zlib_h = yes; then
9675
631ef239
AC
9676 { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
9677echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
212380e3
AC
9678if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
9679 echo $ECHO_N "(cached) $ECHO_C" >&6
9680else
9681 ac_check_lib_save_LIBS=$LIBS
9682LIBS="-lz $LIBS"
9683cat >conftest.$ac_ext <<_ACEOF
9684/* confdefs.h. */
9685_ACEOF
9686cat confdefs.h >>conftest.$ac_ext
9687cat >>conftest.$ac_ext <<_ACEOF
9688/* end confdefs.h. */
9689
631ef239
AC
9690/* Override any GCC internal prototype to avoid an error.
9691 Use char because int might match the return type of a GCC
9692 builtin and then its argument prototype would still apply. */
212380e3
AC
9693#ifdef __cplusplus
9694extern "C"
9695#endif
212380e3
AC
9696char zlibVersion ();
9697int
9698main ()
9699{
631ef239 9700return zlibVersion ();
212380e3
AC
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
9706if { (ac_try="$ac_link"
9707case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710esac
9711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_link") 2>conftest.er1
212380e3
AC
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest$ac_exeext &&
9722 $as_test_x conftest$ac_exeext; then
212380e3
AC
9723 ac_cv_lib_z_zlibVersion=yes
9724else
9725 echo "$as_me: failed program was:" >&5
9726sed 's/^/| /' conftest.$ac_ext >&5
9727
631ef239 9728 ac_cv_lib_z_zlibVersion=no
212380e3 9729fi
631ef239
AC
9730
9731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
9732 conftest$ac_exeext conftest.$ac_ext
9733LIBS=$ac_check_lib_save_LIBS
9734fi
631ef239
AC
9735{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
9736echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
212380e3
AC
9737if test $ac_cv_lib_z_zlibVersion = yes; then
9738
9739 ZLIB_LD=-lz
9740
9741
9742cat >>confdefs.h <<\_ACEOF
9743#define HAVE_LIBZ 1
9744_ACEOF
9745
9746
9747else
9748 zlib=no
9749fi
9750
9751
9752else
9753 zlib=no
9754fi
9755
9756
9757
9758fi
9759
9760
c1c5fdc4
AC
9761# Check whether --enable-ports was given.
9762if test "${enable_ports+set}" = set; then
9763 enableval=$enable_ports; if test $enableval = yes; then
9764 SELECT_TYPE_EXPLICIT="ports"
9765 else
9766 use_ports=no
9767 fi
9768
9769fi
9770
9771
631ef239 9772# Check whether --enable-poll was given.
212380e3 9773if test "${enable_poll+set}" = set; then
631ef239 9774 enableval=$enable_poll; if test $enableval = yes; then
212380e3
AC
9775 SELECT_TYPE_EXPLICIT="poll"
9776 else
9777 use_poll=no
9778 fi
9779
631ef239
AC
9780fi
9781
212380e3 9782
631ef239 9783# Check whether --enable-select was given.
212380e3 9784if test "${enable_select+set}" = set; then
631ef239 9785 enableval=$enable_select; if test $enableval = yes; then
212380e3
AC
9786 SELECT_TYPE_EXPLICIT="select"
9787 else
9788 use_select=no
9789 fi
9790
631ef239
AC
9791fi
9792
212380e3 9793
631ef239 9794# Check whether --enable-kqueue was given.
212380e3 9795if test "${enable_kqueue+set}" = set; then
631ef239 9796 enableval=$enable_kqueue; if test $enableval = yes; then
212380e3
AC
9797 SELECT_TYPE_EXPLICIT="kqueue"
9798 else
9799 use_kqueue=no
9800 fi
9801
631ef239
AC
9802fi
9803
212380e3 9804
631ef239 9805# Check whether --enable-epoll was given.
212380e3 9806if test "${enable_epoll+set}" = set; then
631ef239 9807 enableval=$enable_epoll; if test $enableval = yes; then
212380e3 9808 SELECT_TYPE_EXPLICIT="epoll"
3ad1a781
JT
9809
9810for ac_func in epoll_ctl
9811do
9812as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
9813{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9814echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9815if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
3ad1a781
JT
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817else
9818 cat >conftest.$ac_ext <<_ACEOF
9819/* confdefs.h. */
9820_ACEOF
9821cat confdefs.h >>conftest.$ac_ext
9822cat >>conftest.$ac_ext <<_ACEOF
9823/* end confdefs.h. */
9824/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9826#define $ac_func innocuous_$ac_func
9827
9828/* System header to define __stub macros and hopefully few prototypes,
9829 which can conflict with char $ac_func (); below.
9830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9831 <limits.h> exists even on freestanding compilers. */
9832
9833#ifdef __STDC__
9834# include <limits.h>
9835#else
9836# include <assert.h>
9837#endif
9838
9839#undef $ac_func
9840
631ef239
AC
9841/* Override any GCC internal prototype to avoid an error.
9842 Use char because int might match the return type of a GCC
9843 builtin and then its argument prototype would still apply. */
3ad1a781
JT
9844#ifdef __cplusplus
9845extern "C"
3ad1a781 9846#endif
3ad1a781
JT
9847char $ac_func ();
9848/* The GNU C library defines this for functions which it implements
9849 to always fail with ENOSYS. Some functions are actually named
9850 something starting with __ and the normal name is an alias. */
631ef239 9851#if defined __stub_$ac_func || defined __stub___$ac_func
3ad1a781 9852choke me
3ad1a781
JT
9853#endif
9854
9855int
9856main ()
9857{
631ef239 9858return $ac_func ();
3ad1a781
JT
9859 ;
9860 return 0;
9861}
9862_ACEOF
9863rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
9864if { (ac_try="$ac_link"
9865case "(($ac_try" in
9866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867 *) ac_try_echo=$ac_try;;
9868esac
9869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870 (eval "$ac_link") 2>conftest.er1
3ad1a781
JT
9871 ac_status=$?
9872 grep -v '^ *+' conftest.er1 >conftest.err
9873 rm -f conftest.er1
9874 cat conftest.err >&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
9876 (exit $ac_status); } && {
9877 test -z "$ac_c_werror_flag" ||
9878 test ! -s conftest.err
9879 } && test -s conftest$ac_exeext &&
9880 $as_test_x conftest$ac_exeext; then
3ad1a781
JT
9881 eval "$as_ac_var=yes"
9882else
9883 echo "$as_me: failed program was:" >&5
9884sed 's/^/| /' conftest.$ac_ext >&5
9885
631ef239 9886 eval "$as_ac_var=no"
3ad1a781 9887fi
631ef239
AC
9888
9889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3ad1a781
JT
9890 conftest$ac_exeext conftest.$ac_ext
9891fi
631ef239
AC
9892ac_res=`eval echo '${'$as_ac_var'}'`
9893 { echo "$as_me:$LINENO: result: $ac_res" >&5
9894echo "${ECHO_T}$ac_res" >&6; }
3ad1a781
JT
9895if test `eval echo '${'$as_ac_var'}'` = yes; then
9896 cat >>confdefs.h <<_ACEOF
9897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9898_ACEOF
9899 haveepoll=yes
9900else
9901 haveepoll=no
9902fi
9903done
9904
212380e3
AC
9905 else
9906 use_epoll=no
9907 fi
9908
631ef239
AC
9909fi
9910
212380e3
AC
9911
9912
631ef239
AC
9913{ echo "$as_me:$LINENO: checking whether to modify confdir" >&5
9914echo $ECHO_N "checking whether to modify confdir... $ECHO_C" >&6; }
212380e3 9915
631ef239 9916# Check whether --with-confdir was given.
212380e3 9917if test "${with_confdir+set}" = set; then
631ef239
AC
9918 withval=$with_confdir; confdir=`echo $withval | sed 's/\/$//'`
9919 { echo "$as_me:$LINENO: result: yes" >&5
9920echo "${ECHO_T}yes" >&6; }
212380e3
AC
9921
9922 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9923 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9924 ac_define_dir=`eval echo $confdir`
9925 ac_define_dir=`eval echo $ac_define_dir`
9926 ETC_DIR="$ac_define_dir"
9927
9928
9929cat >>confdefs.h <<_ACEOF
9930#define ETC_DIR "$ac_define_dir"
9931_ACEOF
9932
9933
9934
9935
9936 confdir=`(
9937 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9938 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9939 eval echo \""$confdir"\"
9940 )`
9941
9942
9943else
9944 confdir='${prefix}/etc'
631ef239
AC
9945 { echo "$as_me:$LINENO: result: no" >&5
9946echo "${ECHO_T}no" >&6; }
212380e3
AC
9947
9948 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9950 ac_define_dir=`eval echo $confdir`
9951 ac_define_dir=`eval echo $ac_define_dir`
9952 ETC_DIR="$ac_define_dir"
9953
9954
9955cat >>confdefs.h <<_ACEOF
9956#define ETC_DIR "$ac_define_dir"
9957_ACEOF
9958
9959
9960
9961
9962 confdir=`(
9963 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9964 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
9965 eval echo \""$confdir"\"
9966 )`
9967
9968
9969
631ef239
AC
9970fi
9971
212380e3
AC
9972
9973
631ef239
AC
9974{ echo "$as_me:$LINENO: checking whether to modify logdir" >&5
9975echo $ECHO_N "checking whether to modify logdir... $ECHO_C" >&6; }
212380e3 9976
631ef239 9977# Check whether --with-logdir was given.
212380e3 9978if test "${with_logdir+set}" = set; then
631ef239
AC
9979 withval=$with_logdir; logdir=`echo $withval | sed 's/\/$//'`
9980 { echo "$as_me:$LINENO: result: yes" >&5
9981echo "${ECHO_T}yes" >&6; }
212380e3
AC
9982
9983 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9985 ac_define_dir=`eval echo $logdir`
9986 ac_define_dir=`eval echo $ac_define_dir`
9987 LOG_DIR="$ac_define_dir"
9988
9989
9990cat >>confdefs.h <<_ACEOF
9991#define LOG_DIR "$ac_define_dir"
9992_ACEOF
9993
9994
9995
9996
9997 logdir=`(
9998 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9999 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10000 eval echo \""$logdir"\"
10001 )`
10002
10003
10004else
10005 logdir='${prefix}/logs'
631ef239
AC
10006 { echo "$as_me:$LINENO: result: no" >&5
10007echo "${ECHO_T}no" >&6; }
212380e3
AC
10008
10009 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10010 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10011 ac_define_dir=`eval echo $logdir`
10012 ac_define_dir=`eval echo $ac_define_dir`
10013 LOG_DIR="$ac_define_dir"
10014
10015
10016cat >>confdefs.h <<_ACEOF
10017#define LOG_DIR "$ac_define_dir"
10018_ACEOF
10019
10020
10021
10022
10023 logdir=`(
10024 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10025 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10026 eval echo \""$logdir"\"
10027 )`
10028
10029
10030
631ef239
AC
10031fi
10032
212380e3
AC
10033
10034
631ef239
AC
10035{ echo "$as_me:$LINENO: checking whether to modify helpdir" >&5
10036echo $ECHO_N "checking whether to modify helpdir... $ECHO_C" >&6; }
212380e3 10037
631ef239 10038# Check whether --with-helpdir was given.
212380e3 10039if test "${with_helpdir+set}" = set; then
631ef239
AC
10040 withval=$with_helpdir; helpdir=`echo $withval | sed 's/\/$//'`
10041 { echo "$as_me:$LINENO: result: yes" >&5
10042echo "${ECHO_T}yes" >&6; }
212380e3
AC
10043
10044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10046 ac_define_dir=`eval echo $helpdir`
10047 ac_define_dir=`eval echo $ac_define_dir`
10048 HELP_DIR="$ac_define_dir"
10049
10050
10051cat >>confdefs.h <<_ACEOF
10052#define HELP_DIR "$ac_define_dir"
10053_ACEOF
10054
10055
10056
10057
10058 helpdir=`(
10059 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10060 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10061 eval echo \""$helpdir"\"
10062 )`
10063
10064
10065else
10066 helpdir='${prefix}/help'
631ef239
AC
10067 { echo "$as_me:$LINENO: result: no" >&5
10068echo "${ECHO_T}no" >&6; }
212380e3
AC
10069
10070 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10071 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10072 ac_define_dir=`eval echo $helpdir`
10073 ac_define_dir=`eval echo $ac_define_dir`
10074 HELP_DIR="$ac_define_dir"
10075
10076
10077cat >>confdefs.h <<_ACEOF
10078#define HELP_DIR "$ac_define_dir"
10079_ACEOF
10080
10081
10082
10083
10084 helpdir=`(
10085 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10086 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10087 eval echo \""$helpdir"\"
10088 )`
10089
10090
10091
631ef239
AC
10092fi
10093
212380e3
AC
10094
10095
631ef239
AC
10096{ echo "$as_me:$LINENO: checking whether to modify moduledir" >&5
10097echo $ECHO_N "checking whether to modify moduledir... $ECHO_C" >&6; }
212380e3 10098
631ef239 10099# Check whether --with-moduledir was given.
212380e3 10100if test "${with_moduledir+set}" = set; then
631ef239
AC
10101 withval=$with_moduledir; moduledir=`echo $withval | sed 's/\/$//'`
10102 { echo "$as_me:$LINENO: result: yes" >&5
10103echo "${ECHO_T}yes" >&6; }
212380e3
AC
10104
10105 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10107 ac_define_dir=`eval echo $moduledir`
10108 ac_define_dir=`eval echo $ac_define_dir`
10109 MODULE_DIR="$ac_define_dir"
10110
10111
10112cat >>confdefs.h <<_ACEOF
10113#define MODULE_DIR "$ac_define_dir"
10114_ACEOF
10115
10116
10117
10118
10119 moduledir=`(
10120 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10121 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10122 eval echo \""$moduledir"\"
10123 )`
10124
10125
10126else
10127 moduledir='${prefix}/modules'
631ef239
AC
10128 { echo "$as_me:$LINENO: result: no" >&5
10129echo "${ECHO_T}no" >&6; }
212380e3
AC
10130
10131 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10132 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10133 ac_define_dir=`eval echo $moduledir`
10134 ac_define_dir=`eval echo $ac_define_dir`
10135 MODULE_DIR="$ac_define_dir"
10136
10137
10138cat >>confdefs.h <<_ACEOF
10139#define MODULE_DIR "$ac_define_dir"
10140_ACEOF
10141
10142
10143
10144
10145 moduledir=`(
10146 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10147 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
10148 eval echo \""$moduledir"\"
10149 )`
10150
10151
10152
631ef239
AC
10153fi
10154
212380e3
AC
10155
10156if test ! -z "$SELECT_TYPE_EXPLICIT"; then
10157 SELECT_TYPE="$SELECT_TYPE_EXPLICIT";
10158 echo "Forcing $SELECT_TYPE to be enabled"
10159else
10160
c1c5fdc4
AC
10161if test ! "x$use_ports" = "xno"; then
10162
10163for ac_func in port_getn
10164do
10165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10166{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10168if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10169 echo $ECHO_N "(cached) $ECHO_C" >&6
10170else
10171 cat >conftest.$ac_ext <<_ACEOF
10172/* confdefs.h. */
10173_ACEOF
10174cat confdefs.h >>conftest.$ac_ext
10175cat >>conftest.$ac_ext <<_ACEOF
10176/* end confdefs.h. */
10177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10179#define $ac_func innocuous_$ac_func
10180
10181/* System header to define __stub macros and hopefully few prototypes,
10182 which can conflict with char $ac_func (); below.
10183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10184 <limits.h> exists even on freestanding compilers. */
10185
10186#ifdef __STDC__
10187# include <limits.h>
10188#else
10189# include <assert.h>
10190#endif
10191
10192#undef $ac_func
10193
10194/* Override any GCC internal prototype to avoid an error.
10195 Use char because int might match the return type of a GCC
10196 builtin and then its argument prototype would still apply. */
10197#ifdef __cplusplus
10198extern "C"
10199#endif
10200char $ac_func ();
10201/* The GNU C library defines this for functions which it implements
10202 to always fail with ENOSYS. Some functions are actually named
10203 something starting with __ and the normal name is an alias. */
10204#if defined __stub_$ac_func || defined __stub___$ac_func
10205choke me
10206#endif
10207
10208int
10209main ()
10210{
10211return $ac_func ();
10212 ;
10213 return 0;
10214}
10215_ACEOF
10216rm -f conftest.$ac_objext conftest$ac_exeext
10217if { (ac_try="$ac_link"
10218case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221esac
10222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_link") 2>conftest.er1
10224 ac_status=$?
10225 grep -v '^ *+' conftest.er1 >conftest.err
10226 rm -f conftest.er1
10227 cat conftest.err >&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); } && {
10230 test -z "$ac_c_werror_flag" ||
10231 test ! -s conftest.err
10232 } && test -s conftest$ac_exeext &&
10233 $as_test_x conftest$ac_exeext; then
10234 eval "$as_ac_var=yes"
10235else
10236 echo "$as_me: failed program was:" >&5
10237sed 's/^/| /' conftest.$ac_ext >&5
10238
10239 eval "$as_ac_var=no"
10240fi
10241
10242rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10243 conftest$ac_exeext conftest.$ac_ext
10244fi
10245ac_res=`eval echo '${'$as_ac_var'}'`
10246 { echo "$as_me:$LINENO: result: $ac_res" >&5
10247echo "${ECHO_T}$ac_res" >&6; }
10248if test `eval echo '${'$as_ac_var'}'` = yes; then
10249 cat >>confdefs.h <<_ACEOF
10250#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10251_ACEOF
10252 haveports=yes
10253else
10254 haveports=no
10255fi
10256done
10257
10258 if test "x$haveports" = "xyes" ; then
10259 SELECT_TYPE="ports"
10260 fi
10261fi
10262
212380e3
AC
10263if test ! "x$use_select" = "xno"; then
10264
10265for ac_func in select
10266do
10267as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
10268{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10269echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10270if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273 cat >conftest.$ac_ext <<_ACEOF
10274/* confdefs.h. */
10275_ACEOF
10276cat confdefs.h >>conftest.$ac_ext
10277cat >>conftest.$ac_ext <<_ACEOF
10278/* end confdefs.h. */
10279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10281#define $ac_func innocuous_$ac_func
10282
10283/* System header to define __stub macros and hopefully few prototypes,
10284 which can conflict with char $ac_func (); below.
10285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10286 <limits.h> exists even on freestanding compilers. */
10287
10288#ifdef __STDC__
10289# include <limits.h>
10290#else
10291# include <assert.h>
10292#endif
10293
10294#undef $ac_func
10295
631ef239
AC
10296/* Override any GCC internal prototype to avoid an error.
10297 Use char because int might match the return type of a GCC
10298 builtin and then its argument prototype would still apply. */
212380e3
AC
10299#ifdef __cplusplus
10300extern "C"
212380e3 10301#endif
212380e3
AC
10302char $ac_func ();
10303/* The GNU C library defines this for functions which it implements
10304 to always fail with ENOSYS. Some functions are actually named
10305 something starting with __ and the normal name is an alias. */
631ef239 10306#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10307choke me
212380e3
AC
10308#endif
10309
10310int
10311main ()
10312{
631ef239 10313return $ac_func ();
212380e3
AC
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
10319if { (ac_try="$ac_link"
10320case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323esac
10324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_link") 2>conftest.er1
212380e3
AC
10326 ac_status=$?
10327 grep -v '^ *+' conftest.er1 >conftest.err
10328 rm -f conftest.er1
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext &&
10335 $as_test_x conftest$ac_exeext; then
212380e3
AC
10336 eval "$as_ac_var=yes"
10337else
10338 echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
631ef239 10341 eval "$as_ac_var=no"
212380e3 10342fi
631ef239
AC
10343
10344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
10345 conftest$ac_exeext conftest.$ac_ext
10346fi
631ef239
AC
10347ac_res=`eval echo '${'$as_ac_var'}'`
10348 { echo "$as_me:$LINENO: result: $ac_res" >&5
10349echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
10350if test `eval echo '${'$as_ac_var'}'` = yes; then
10351 cat >>confdefs.h <<_ACEOF
10352#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10353_ACEOF
10354 haveselect=yes
10355else
10356 haveselect=no
10357fi
10358done
10359
10360 if test "x$haveselect" = "xyes" ; then
10361 SELECT_TYPE="select"
10362 fi
10363fi
10364
10365if test ! "x$use_poll" = "xno"; then
10366
10367for ac_func in poll
10368do
10369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
10370{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10372if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375 cat >conftest.$ac_ext <<_ACEOF
10376/* confdefs.h. */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h. */
10381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10383#define $ac_func innocuous_$ac_func
10384
10385/* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char $ac_func (); below.
10387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388 <limits.h> exists even on freestanding compilers. */
10389
10390#ifdef __STDC__
10391# include <limits.h>
10392#else
10393# include <assert.h>
10394#endif
10395
10396#undef $ac_func
10397
631ef239
AC
10398/* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
212380e3
AC
10401#ifdef __cplusplus
10402extern "C"
212380e3 10403#endif
212380e3
AC
10404char $ac_func ();
10405/* The GNU C library defines this for functions which it implements
10406 to always fail with ENOSYS. Some functions are actually named
10407 something starting with __ and the normal name is an alias. */
631ef239 10408#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10409choke me
212380e3
AC
10410#endif
10411
10412int
10413main ()
10414{
631ef239 10415return $ac_func ();
212380e3
AC
10416 ;
10417 return 0;
10418}
10419_ACEOF
10420rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
10421if { (ac_try="$ac_link"
10422case "(($ac_try" in
10423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10424 *) ac_try_echo=$ac_try;;
10425esac
10426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10427 (eval "$ac_link") 2>conftest.er1
212380e3
AC
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext &&
10437 $as_test_x conftest$ac_exeext; then
212380e3
AC
10438 eval "$as_ac_var=yes"
10439else
10440 echo "$as_me: failed program was:" >&5
10441sed 's/^/| /' conftest.$ac_ext >&5
10442
631ef239 10443 eval "$as_ac_var=no"
212380e3 10444fi
631ef239
AC
10445
10446rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
10447 conftest$ac_exeext conftest.$ac_ext
10448fi
631ef239
AC
10449ac_res=`eval echo '${'$as_ac_var'}'`
10450 { echo "$as_me:$LINENO: result: $ac_res" >&5
10451echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
10452if test `eval echo '${'$as_ac_var'}'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10455_ACEOF
10456 havepoll=yes
10457else
10458 havepoll=no
10459fi
10460done
10461
10462 if test "x$havepoll" = "xyes" ; then
10463 SELECT_TYPE="poll"
10464 fi
10465fi
10466
212380e3
AC
10467if test ! "x$use_kqueue" = "xno"; then
10468
10469for ac_func in kevent
10470do
10471as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
10472{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10473echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10474if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
10475 echo $ECHO_N "(cached) $ECHO_C" >&6
10476else
10477 cat >conftest.$ac_ext <<_ACEOF
10478/* confdefs.h. */
10479_ACEOF
10480cat confdefs.h >>conftest.$ac_ext
10481cat >>conftest.$ac_ext <<_ACEOF
10482/* end confdefs.h. */
10483/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10485#define $ac_func innocuous_$ac_func
10486
10487/* System header to define __stub macros and hopefully few prototypes,
10488 which can conflict with char $ac_func (); below.
10489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10490 <limits.h> exists even on freestanding compilers. */
10491
10492#ifdef __STDC__
10493# include <limits.h>
10494#else
10495# include <assert.h>
10496#endif
10497
10498#undef $ac_func
10499
631ef239
AC
10500/* Override any GCC internal prototype to avoid an error.
10501 Use char because int might match the return type of a GCC
10502 builtin and then its argument prototype would still apply. */
212380e3
AC
10503#ifdef __cplusplus
10504extern "C"
212380e3 10505#endif
212380e3
AC
10506char $ac_func ();
10507/* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
631ef239 10510#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10511choke me
212380e3
AC
10512#endif
10513
10514int
10515main ()
10516{
631ef239 10517return $ac_func ();
212380e3
AC
10518 ;
10519 return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
10523if { (ac_try="$ac_link"
10524case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_link") 2>conftest.er1
212380e3
AC
10530 ac_status=$?
10531 grep -v '^ *+' conftest.er1 >conftest.err
10532 rm -f conftest.er1
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext &&
10539 $as_test_x conftest$ac_exeext; then
212380e3
AC
10540 eval "$as_ac_var=yes"
10541else
10542 echo "$as_me: failed program was:" >&5
10543sed 's/^/| /' conftest.$ac_ext >&5
10544
631ef239 10545 eval "$as_ac_var=no"
212380e3 10546fi
631ef239
AC
10547
10548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
10549 conftest$ac_exeext conftest.$ac_ext
10550fi
631ef239
AC
10551ac_res=`eval echo '${'$as_ac_var'}'`
10552 { echo "$as_me:$LINENO: result: $ac_res" >&5
10553echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
10554if test `eval echo '${'$as_ac_var'}'` = yes; then
10555 cat >>confdefs.h <<_ACEOF
10556#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10557_ACEOF
10558 havekqueue=yes
10559else
10560 havekqueue=no
10561fi
10562done
10563
10564 if test "x$havekqueue" = "xyes" ; then
10565 SELECT_TYPE="kqueue"
10566 fi
10567fi
10568
10569if test ! "x$use_epoll" = "xno"; then
10570
10571for ac_func in epoll_ctl
10572do
10573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
10574{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10576if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578else
10579 cat >conftest.$ac_ext <<_ACEOF
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
10585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10587#define $ac_func innocuous_$ac_func
10588
10589/* System header to define __stub macros and hopefully few prototypes,
10590 which can conflict with char $ac_func (); below.
10591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10592 <limits.h> exists even on freestanding compilers. */
10593
10594#ifdef __STDC__
10595# include <limits.h>
10596#else
10597# include <assert.h>
10598#endif
10599
10600#undef $ac_func
10601
631ef239
AC
10602/* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
212380e3
AC
10605#ifdef __cplusplus
10606extern "C"
212380e3 10607#endif
212380e3
AC
10608char $ac_func ();
10609/* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
631ef239 10612#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 10613choke me
212380e3
AC
10614#endif
10615
10616int
10617main ()
10618{
631ef239 10619return $ac_func ();
212380e3
AC
10620 ;
10621 return 0;
10622}
10623_ACEOF
10624rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
10625if { (ac_try="$ac_link"
10626case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10629esac
10630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
212380e3
AC
10632 ac_status=$?
10633 grep -v '^ *+' conftest.er1 >conftest.err
10634 rm -f conftest.er1
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
10637 (exit $ac_status); } && {
10638 test -z "$ac_c_werror_flag" ||
10639 test ! -s conftest.err
10640 } && test -s conftest$ac_exeext &&
10641 $as_test_x conftest$ac_exeext; then
212380e3
AC
10642 eval "$as_ac_var=yes"
10643else
10644 echo "$as_me: failed program was:" >&5
10645sed 's/^/| /' conftest.$ac_ext >&5
10646
631ef239 10647 eval "$as_ac_var=no"
212380e3 10648fi
631ef239
AC
10649
10650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
10651 conftest$ac_exeext conftest.$ac_ext
10652fi
631ef239
AC
10653ac_res=`eval echo '${'$as_ac_var'}'`
10654 { echo "$as_me:$LINENO: result: $ac_res" >&5
10655echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
10656if test `eval echo '${'$as_ac_var'}'` = yes; then
10657 cat >>confdefs.h <<_ACEOF
10658#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10659_ACEOF
10660 haveepoll=yes
10661else
10662 haveepoll=no
10663fi
10664done
10665
10666 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10667 if test "x$haveepoll" = "xyes" ; then
631ef239
AC
10668 { echo "$as_me:$LINENO: checking for epoll support in kernel" >&5
10669echo $ECHO_N "checking for epoll support in kernel... $ECHO_C" >&6; }
212380e3 10670 if test "$cross_compiling" = yes; then
631ef239
AC
10671 { echo "$as_me:$LINENO: result: no" >&5
10672echo "${ECHO_T}no" >&6; }
212380e3
AC
10673else
10674 cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680#include <stdint.h>
10681#include <sys/param.h>
10682#include <sys/types.h>
10683#include <sys/epoll.h>
10684#include <sys/syscall.h>
10685#include <unistd.h>
10686
10687int
10688main(int argc, char **argv)
10689{
10690 int epfd;
10691
10692 epfd = epoll_create(256);
b676ea3b 10693 return (epfd == -1 ? 1 : 0);
212380e3
AC
10694}
10695_ACEOF
10696rm -f conftest$ac_exeext
631ef239
AC
10697if { (ac_try="$ac_link"
10698case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_link") 2>&5
212380e3
AC
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
10707 { (case "(($ac_try" in
10708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709 *) ac_try_echo=$ac_try;;
10710esac
10711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712 (eval "$ac_try") 2>&5
212380e3
AC
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
631ef239
AC
10716 { echo "$as_me:$LINENO: result: yes" >&5
10717echo "${ECHO_T}yes" >&6; }
212380e3
AC
10718
10719cat >>confdefs.h <<\_ACEOF
10720#define HAVE_EPOLL 1
10721_ACEOF
10722
10723 SELECT_TYPE="epoll"
10724else
10725 echo "$as_me: program exited with status $ac_status" >&5
10726echo "$as_me: failed program was:" >&5
10727sed 's/^/| /' conftest.$ac_ext >&5
10728
10729( exit $ac_status )
631ef239
AC
10730{ echo "$as_me:$LINENO: result: no" >&5
10731echo "${ECHO_T}no" >&6; }
212380e3 10732fi
631ef239 10733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 10734fi
631ef239
AC
10735
10736
212380e3
AC
10737 fi
10738 fi
10739
10740haveepollsyscall=no
10741
10742if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
10743 if test "x$haveepoll" = "xno" ; then
631ef239
AC
10744 { echo "$as_me:$LINENO: checking for epoll system call" >&5
10745echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
212380e3 10746 if test "$cross_compiling" = yes; then
631ef239
AC
10747 { echo "$as_me:$LINENO: result: no" >&5
10748echo "${ECHO_T}no" >&6; }
212380e3
AC
10749else
10750 cat >conftest.$ac_ext <<_ACEOF
10751/* confdefs.h. */
10752_ACEOF
10753cat confdefs.h >>conftest.$ac_ext
10754cat >>conftest.$ac_ext <<_ACEOF
10755/* end confdefs.h. */
10756#include <stdint.h>
10757#include <sys/param.h>
10758#include <sys/types.h>
10759#include <sys/epoll.h>
10760#include <sys/syscall.h>
10761#include <unistd.h>
10762
10763int
10764epoll_create(int size)
10765{
10766 return (syscall(__NR_epoll_create, size));
10767}
10768
10769int
10770main(int argc, char **argv)
10771{
10772 int epfd;
10773
10774 epfd = epoll_create(256);
10775 exit (epfd == -1 ? 1 : 0);
10776}
10777_ACEOF
10778rm -f conftest$ac_exeext
631ef239
AC
10779if { (ac_try="$ac_link"
10780case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10783esac
10784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_link") 2>&5
212380e3
AC
10786 ac_status=$?
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
631ef239
AC
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
212380e3
AC
10795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; }; then
631ef239
AC
10798 { echo "$as_me:$LINENO: result: yes" >&5
10799echo "${ECHO_T}yes" >&6; }
212380e3
AC
10800
10801cat >>confdefs.h <<\_ACEOF
10802#define HAVE_EPOLL 1
10803_ACEOF
10804
10805 SELECT_TYPE="epoll"
10806else
10807 echo "$as_me: program exited with status $ac_status" >&5
10808echo "$as_me: failed program was:" >&5
10809sed 's/^/| /' conftest.$ac_ext >&5
10810
10811( exit $ac_status )
631ef239
AC
10812{ echo "$as_me:$LINENO: result: no" >&5
10813echo "${ECHO_T}no" >&6; }
212380e3 10814fi
631ef239 10815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
212380e3 10816fi
631ef239
AC
10817
10818
212380e3
AC
10819 fi
10820fi
10821
10822fi
10823
10824fi
10825
10826if test -z "$SELECT_TYPE"; then
10827 { { echo "$as_me:$LINENO: error: Unable to find a usable IO interface" >&5
10828echo "$as_me: error: Unable to find a usable IO interface" >&2;}
10829 { (exit 1); exit 1; }; }
10830fi
10831
10832echo "Using $SELECT_TYPE for select loop."
10833
10834
10835cat >>confdefs.h <<_ACEOF
10836#define SELECT_TYPE "$SELECT_TYPE"
10837_ACEOF
10838
10839
10840
10841
10842
631ef239 10843# Check whether --enable-assert was given.
212380e3 10844if test "${enable_assert+set}" = set; then
631ef239 10845 enableval=$enable_assert; assert=$enableval
212380e3
AC
10846else
10847 assert=no
631ef239
AC
10848fi
10849
212380e3
AC
10850
10851if test "$assert" = no; then
10852
10853cat >>confdefs.h <<\_ACEOF
10854#define NDEBUG 1
10855_ACEOF
10856
10857elif test "$assert" = soft; then
10858
10859cat >>confdefs.h <<\_ACEOF
10860#define SOFT_ASSERT 1
10861_ACEOF
10862
10863
10864cat >>confdefs.h <<\_ACEOF
10865#define NDEBUG 1
10866_ACEOF
10867
10868elif test "$assert" = yes; then
10869 assert = "hard";
10870fi
10871
631ef239
AC
10872{ echo "$as_me:$LINENO: checking if you want IO Debugging hooks" >&5
10873echo $ECHO_N "checking if you want IO Debugging hooks... $ECHO_C" >&6; }
10874# Check whether --enable-iodebug was given.
212380e3 10875if test "${enable_iodebug+set}" = set; then
631ef239 10876 enableval=$enable_iodebug; iodebug=$enableval
212380e3
AC
10877else
10878 iodebug=no
631ef239
AC
10879fi
10880
212380e3
AC
10881
10882if test "$iodebug" = yes; then
10883
10884cat >>confdefs.h <<\_ACEOF
10885#define USE_IODEBUG_HOOKS 1
10886_ACEOF
10887
631ef239
AC
10888 { echo "$as_me:$LINENO: result: yes" >&5
10889echo "${ECHO_T}yes" >&6; }
212380e3 10890else
631ef239
AC
10891 { echo "$as_me:$LINENO: result: no" >&5
10892echo "${ECHO_T}no" >&6; }
212380e3
AC
10893fi
10894
10895
631ef239
AC
10896{ echo "$as_me:$LINENO: checking if you want to do a profile build" >&5
10897echo $ECHO_N "checking if you want to do a profile build... $ECHO_C" >&6; }
10898# Check whether --enable-profile was given.
212380e3 10899if test "${enable_profile+set}" = set; then
631ef239 10900 enableval=$enable_profile; profile=$enableval
212380e3
AC
10901else
10902 profile=no
631ef239
AC
10903fi
10904
212380e3
AC
10905
10906if test "$profile" = yes; then
10907 if test "$ac_cv_c_compiler_gnu" = yes; then
10908 IRC_CFLAGS="$IRC_CFLAGS -pg"
631ef239
AC
10909 { echo "$as_me:$LINENO: result: yes, adding -pg" >&5
10910echo "${ECHO_T}yes, adding -pg" >&6; }
212380e3
AC
10911
10912cat >>confdefs.h <<\_ACEOF
10913#define CHARYBDIS_PROFILE 1
10914_ACEOF
10915
10916 else
631ef239
AC
10917 { echo "$as_me:$LINENO: result: no, profile builds only work with gcc" >&5
10918echo "${ECHO_T}no, profile builds only work with gcc" >&6; }
212380e3
AC
10919 fi
10920else
631ef239
AC
10921 { echo "$as_me:$LINENO: result: no" >&5
10922echo "${ECHO_T}no" >&6; }
212380e3
AC
10923fi
10924
631ef239 10925# Check whether --enable-balloc was given.
212380e3 10926if test "${enable_balloc+set}" = set; then
631ef239 10927 enableval=$enable_balloc; balloc=$enableval
212380e3
AC
10928else
10929 balloc=yes
631ef239
AC
10930fi
10931
212380e3
AC
10932
10933if test "$balloc" = no; then
10934
10935cat >>confdefs.h <<\_ACEOF
10936#define NOBALLOC 1
10937_ACEOF
10938
10939fi
10940
631ef239 10941# Check whether --enable-small-net was given.
212380e3 10942if test "${enable_small_net+set}" = set; then
631ef239 10943 enableval=$enable_small_net; small_net=$enableval
212380e3
AC
10944else
10945 small_net=no
631ef239
AC
10946fi
10947
212380e3
AC
10948
10949if test "$small_net" = yes; then
10950
10951cat >>confdefs.h <<\_ACEOF
10952#define NICKNAMEHISTORYLENGTH 1500
10953_ACEOF
10954
10955
10956cat >>confdefs.h <<\_ACEOF
10957#define CHANNEL_HEAP_SIZE 256
10958_ACEOF
10959
10960
10961cat >>confdefs.h <<\_ACEOF
10962#define BAN_HEAP_SIZE 128
10963_ACEOF
10964
10965
10966cat >>confdefs.h <<\_ACEOF
10967#define CLIENT_HEAP_SIZE 256
10968_ACEOF
10969
10970
10971cat >>confdefs.h <<\_ACEOF
10972#define LCLIENT_HEAP_SIZE 128
10973_ACEOF
10974
10975
10976cat >>confdefs.h <<\_ACEOF
10977#define PCLIENT_HEAP_SIZE 32
10978_ACEOF
10979
10980
10981cat >>confdefs.h <<\_ACEOF
10982#define USER_HEAP_SIZE 128
10983_ACEOF
10984
10985
10986cat >>confdefs.h <<\_ACEOF
10987#define DNODE_HEAP_SIZE 256
10988_ACEOF
10989
10990
10991cat >>confdefs.h <<\_ACEOF
10992#define TOPIC_HEAP_SIZE 256
10993_ACEOF
10994
10995
10996cat >>confdefs.h <<\_ACEOF
10997#define LINEBUF_HEAP_SIZE 128
10998_ACEOF
10999
11000
11001cat >>confdefs.h <<\_ACEOF
11002#define MEMBER_HEAP_SIZE 256
11003_ACEOF
11004
11005
11006cat >>confdefs.h <<\_ACEOF
11007#define ND_HEAP_SIZE 128
11008_ACEOF
11009
11010
11011cat >>confdefs.h <<\_ACEOF
11012#define CONFITEM_HEAP_SIZE 128
11013_ACEOF
11014
11015
11016cat >>confdefs.h <<\_ACEOF
11017#define MONITOR_HEAP_SIZE 128
11018_ACEOF
11019
f589ec6f
AC
11020
11021cat >>confdefs.h <<\_ACEOF
11022#define AWAY_HEAP_SIZE 128
11023_ACEOF
11024
212380e3
AC
11025else
11026
11027cat >>confdefs.h <<\_ACEOF
11028#define NICKNAMEHISTORYLENGTH 15000
11029_ACEOF
11030
11031
11032cat >>confdefs.h <<\_ACEOF
11033#define CHANNEL_HEAP_SIZE 8192
11034_ACEOF
11035
11036
11037cat >>confdefs.h <<\_ACEOF
11038#define BAN_HEAP_SIZE 4096
11039_ACEOF
11040
11041
11042cat >>confdefs.h <<\_ACEOF
11043#define CLIENT_HEAP_SIZE 8192
11044_ACEOF
11045
11046
11047cat >>confdefs.h <<\_ACEOF
11048#define LCLIENT_HEAP_SIZE 1024
11049_ACEOF
11050
11051
11052cat >>confdefs.h <<\_ACEOF
11053#define PCLIENT_HEAP_SIZE 256
11054_ACEOF
11055
11056
11057cat >>confdefs.h <<\_ACEOF
11058#define USER_HEAP_SIZE 8192
11059_ACEOF
11060
11061
11062cat >>confdefs.h <<\_ACEOF
11063#define DNODE_HEAP_SIZE 8192
11064_ACEOF
11065
11066
11067cat >>confdefs.h <<\_ACEOF
11068#define TOPIC_HEAP_SIZE 4096
11069_ACEOF
11070
11071
11072cat >>confdefs.h <<\_ACEOF
11073#define LINEBUF_HEAP_SIZE 2048
11074_ACEOF
11075
11076
11077cat >>confdefs.h <<\_ACEOF
11078#define MEMBER_HEAP_SIZE 32768
11079_ACEOF
11080
11081
11082cat >>confdefs.h <<\_ACEOF
11083#define ND_HEAP_SIZE 512
11084_ACEOF
11085
11086
11087cat >>confdefs.h <<\_ACEOF
11088#define CONFITEM_HEAP_SIZE 256
11089_ACEOF
11090
11091
11092cat >>confdefs.h <<\_ACEOF
11093#define MONITOR_HEAP_SIZE 1024
11094_ACEOF
11095
f589ec6f
AC
11096
11097cat >>confdefs.h <<\_ACEOF
11098#define AWAY_HEAP_SIZE 512
11099_ACEOF
11100
212380e3
AC
11101fi
11102
11103
631ef239 11104# Check whether --with-nicklen was given.
212380e3 11105if test "${with_nicklen+set}" = set; then
631ef239 11106 withval=$with_nicklen;
212380e3
AC
11107 if test $withval -ge 50; then
11108 NICKLEN=50
11109 { echo "$as_me:$LINENO: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&5
11110echo "$as_me: WARNING: NICKLEN has a hard limit of 50. Setting NICKLEN=50" >&2;}
11111 else
11112 NICKLEN="$withval"
11113 fi
11114
11115else
11116 NICKLEN=15
631ef239 11117fi
212380e3
AC
11118
11119
212380e3 11120
631ef239
AC
11121# Check whether --with-topiclen was given.
11122if test "${with_topiclen+set}" = set; then
11123 withval=$with_topiclen;
212380e3
AC
11124 if test $withval -ge 390; then
11125 TOPICLEN=390
11126 { echo "$as_me:$LINENO: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&5
11127echo "$as_me: WARNING: TOPICLEN has a hard limit of 390. Setting TOPICLEN=390" >&2;}
11128 else
11129 TOPICLEN=$withval
11130 fi
11131
11132else
11133 TOPICLEN=390
212380e3
AC
11134fi
11135
212380e3
AC
11136
11137
11138cat >>confdefs.h <<_ACEOF
11139#define TOPICLEN ${TOPICLEN}
11140_ACEOF
11141
11142
11143cat >>confdefs.h <<_ACEOF
11144#define NICKLEN (${NICKLEN}+1)
11145_ACEOF
11146
11147
b676ea3b 11148shared_modules="yes"
212380e3
AC
11149if test "$shared_modules" = yes; then
11150
11151 if test "$CYGWIN" = yes; then
11152 { echo "$as_me:$LINENO: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&5
11153echo "$as_me: WARNING: disabling shared modules; Cygwin is at present unable to build them." >&2;}
11154 shared_modules="no"
11155 fi
11156
11157 if test "$CC" = tcc -a "$TenDRA" = "no"; then
11158 { echo "$as_me:$LINENO: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&5
11159echo "$as_me: WARNING: disabling shared modules: Tiny C Compiler can't create PIC" >&2;}
11160 shared_modules="no"
11161 fi
11162fi
11163
11164if test "$shared_modules" = yes; then
11165 DYNLINK_C=dynlink.c
11166
11167for ac_header in dlfcn.h
11168do
11169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239
AC
11170if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
11174 echo $ECHO_N "(cached) $ECHO_C" >&6
11175fi
631ef239
AC
11176ac_res=`eval echo '${'$as_ac_Header'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
11179else
11180 # Is the header compilable?
631ef239
AC
11181{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11182echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3
AC
11183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189$ac_includes_default
11190#include <$ac_header>
11191_ACEOF
11192rm -f conftest.$ac_objext
631ef239
AC
11193if { (ac_try="$ac_compile"
11194case "(($ac_try" in
11195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196 *) ac_try_echo=$ac_try;;
11197esac
11198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest.$ac_objext; then
212380e3
AC
11209 ac_header_compiler=yes
11210else
11211 echo "$as_me: failed program was:" >&5
11212sed 's/^/| /' conftest.$ac_ext >&5
11213
631ef239 11214 ac_header_compiler=no
212380e3 11215fi
631ef239
AC
11216
11217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11218{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11219echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3
AC
11220
11221# Is the header present?
631ef239
AC
11222{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11223echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3
AC
11224cat >conftest.$ac_ext <<_ACEOF
11225/* confdefs.h. */
11226_ACEOF
11227cat confdefs.h >>conftest.$ac_ext
11228cat >>conftest.$ac_ext <<_ACEOF
11229/* end confdefs.h. */
11230#include <$ac_header>
11231_ACEOF
631ef239
AC
11232if { (ac_try="$ac_cpp conftest.$ac_ext"
11233case "(($ac_try" in
11234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11236esac
11237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3
AC
11239 ac_status=$?
11240 grep -v '^ *+' conftest.er1 >conftest.err
11241 rm -f conftest.er1
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11244 (exit $ac_status); } >/dev/null && {
11245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 }; then
212380e3
AC
11248 ac_header_preproc=yes
11249else
11250 echo "$as_me: failed program was:" >&5
11251sed 's/^/| /' conftest.$ac_ext >&5
11252
11253 ac_header_preproc=no
11254fi
631ef239 11255
212380e3 11256rm -f conftest.err conftest.$ac_ext
631ef239
AC
11257{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11258echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
11259
11260# So? What about this header?
11261case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11262 yes:no: )
11263 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11267 ac_header_preproc=yes
11268 ;;
11269 no:yes:* )
11270 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11272 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11273echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11274 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11276 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11277echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11280 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 11282
212380e3
AC
11283 ;;
11284esac
631ef239
AC
11285{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289else
11290 eval "$as_ac_Header=\$ac_header_preproc"
11291fi
631ef239
AC
11292ac_res=`eval echo '${'$as_ac_Header'}'`
11293 { echo "$as_me:$LINENO: result: $ac_res" >&5
11294echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
11295
11296fi
11297if test `eval echo '${'$as_ac_Header'}'` = yes; then
11298 cat >>confdefs.h <<_ACEOF
11299#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11300_ACEOF
11301
11302fi
11303
11304done
11305
631ef239
AC
11306 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
11307echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
212380e3
AC
11308if test "${ac_cv_search_shl_load+set}" = set; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11310else
11311 ac_func_search_save_LIBS=$LIBS
212380e3
AC
11312cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
11318
631ef239
AC
11319/* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
212380e3
AC
11322#ifdef __cplusplus
11323extern "C"
11324#endif
212380e3
AC
11325char shl_load ();
11326int
11327main ()
11328{
631ef239 11329return shl_load ();
212380e3
AC
11330 ;
11331 return 0;
11332}
11333_ACEOF
631ef239
AC
11334for ac_lib in '' dld; do
11335 if test -z "$ac_lib"; then
11336 ac_res="none required"
11337 else
11338 ac_res=-l$ac_lib
11339 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11340 fi
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342if { (ac_try="$ac_link"
11343case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11346esac
11347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_link") 2>conftest.er1
212380e3
AC
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11354 (exit $ac_status); } && {
11355 test -z "$ac_c_werror_flag" ||
11356 test ! -s conftest.err
11357 } && test -s conftest$ac_exeext &&
11358 $as_test_x conftest$ac_exeext; then
11359 ac_cv_search_shl_load=$ac_res
212380e3
AC
11360else
11361 echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
212380e3 11364
631ef239 11365fi
212380e3 11366
631ef239
AC
11367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11368 conftest$ac_exeext
11369 if test "${ac_cv_search_shl_load+set}" = set; then
11370 break
212380e3 11371fi
631ef239
AC
11372done
11373if test "${ac_cv_search_shl_load+set}" = set; then
11374 :
11375else
11376 ac_cv_search_shl_load=no
212380e3 11377fi
631ef239 11378rm conftest.$ac_ext
212380e3
AC
11379LIBS=$ac_func_search_save_LIBS
11380fi
631ef239
AC
11381{ echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
11382echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
11383ac_res=$ac_cv_search_shl_load
11384if test "$ac_res" != no; then
11385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
11386
11387
11388cat >>confdefs.h <<\_ACEOF
11389#define HAVE_SHL_LOAD 1
11390_ACEOF
11391
11392 SUFFIX=".sl"
11393 MOD_TARGET=hpux_shared
11394 SEDOBJ="s/\.o/.sl/g"
11395
11396else
11397
631ef239
AC
11398 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11399echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
212380e3
AC
11400if test "${ac_cv_search_dlopen+set}" = set; then
11401 echo $ECHO_N "(cached) $ECHO_C" >&6
11402else
11403 ac_func_search_save_LIBS=$LIBS
212380e3
AC
11404cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410
631ef239
AC
11411/* Override any GCC internal prototype to avoid an error.
11412 Use char because int might match the return type of a GCC
11413 builtin and then its argument prototype would still apply. */
212380e3
AC
11414#ifdef __cplusplus
11415extern "C"
11416#endif
212380e3
AC
11417char dlopen ();
11418int
11419main ()
11420{
631ef239 11421return dlopen ();
212380e3
AC
11422 ;
11423 return 0;
11424}
11425_ACEOF
631ef239
AC
11426for ac_lib in '' dl c_r; do
11427 if test -z "$ac_lib"; then
11428 ac_res="none required"
11429 else
11430 ac_res=-l$ac_lib
11431 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11432 fi
11433 rm -f conftest.$ac_objext conftest$ac_exeext
11434if { (ac_try="$ac_link"
11435case "(($ac_try" in
11436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437 *) ac_try_echo=$ac_try;;
11438esac
11439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440 (eval "$ac_link") 2>conftest.er1
212380e3
AC
11441 ac_status=$?
11442 grep -v '^ *+' conftest.er1 >conftest.err
11443 rm -f conftest.er1
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11446 (exit $ac_status); } && {
11447 test -z "$ac_c_werror_flag" ||
11448 test ! -s conftest.err
11449 } && test -s conftest$ac_exeext &&
11450 $as_test_x conftest$ac_exeext; then
11451 ac_cv_search_dlopen=$ac_res
212380e3
AC
11452else
11453 echo "$as_me: failed program was:" >&5
11454sed 's/^/| /' conftest.$ac_ext >&5
11455
212380e3 11456
631ef239 11457fi
212380e3 11458
631ef239
AC
11459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11460 conftest$ac_exeext
11461 if test "${ac_cv_search_dlopen+set}" = set; then
11462 break
212380e3 11463fi
631ef239
AC
11464done
11465if test "${ac_cv_search_dlopen+set}" = set; then
11466 :
11467else
11468 ac_cv_search_dlopen=no
212380e3 11469fi
631ef239 11470rm conftest.$ac_ext
212380e3
AC
11471LIBS=$ac_func_search_save_LIBS
11472fi
631ef239
AC
11473{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11474echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11475ac_res=$ac_cv_search_dlopen
11476if test "$ac_res" != no; then
11477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
212380e3
AC
11478
11479
11480cat >>confdefs.h <<\_ACEOF
11481#define HAVE_DLOPEN 1
11482_ACEOF
11483
11484 SUFFIX=".so"
11485 MOD_TARGET=shared_modules
11486 SEDOBJ="s/\.o/.so/g"
11487 if test "$AppleGCC" = yes; then
11488
11489for ac_header in mach-o/dyld.h
11490do
11491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
631ef239
AC
11492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
11496 echo $ECHO_N "(cached) $ECHO_C" >&6
11497fi
631ef239
AC
11498ac_res=`eval echo '${'$as_ac_Header'}'`
11499 { echo "$as_me:$LINENO: result: $ac_res" >&5
11500echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
11501else
11502 # Is the header compilable?
631ef239
AC
11503{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11504echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
212380e3
AC
11505cat >conftest.$ac_ext <<_ACEOF
11506/* confdefs.h. */
11507_ACEOF
11508cat confdefs.h >>conftest.$ac_ext
11509cat >>conftest.$ac_ext <<_ACEOF
11510/* end confdefs.h. */
11511$ac_includes_default
11512#include <$ac_header>
11513_ACEOF
11514rm -f conftest.$ac_objext
631ef239
AC
11515if { (ac_try="$ac_compile"
11516case "(($ac_try" in
11517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518 *) ac_try_echo=$ac_try;;
11519esac
11520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
11522 ac_status=$?
11523 grep -v '^ *+' conftest.er1 >conftest.err
11524 rm -f conftest.er1
11525 cat conftest.err >&5
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11527 (exit $ac_status); } && {
11528 test -z "$ac_c_werror_flag" ||
11529 test ! -s conftest.err
11530 } && test -s conftest.$ac_objext; then
212380e3
AC
11531 ac_header_compiler=yes
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
631ef239 11536 ac_header_compiler=no
212380e3 11537fi
631ef239
AC
11538
11539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3
AC
11542
11543# Is the header present?
631ef239
AC
11544{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
212380e3
AC
11546cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552#include <$ac_header>
11553_ACEOF
631ef239
AC
11554if { (ac_try="$ac_cpp conftest.$ac_ext"
11555case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558esac
11559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3
AC
11561 ac_status=$?
11562 grep -v '^ *+' conftest.er1 >conftest.err
11563 rm -f conftest.er1
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11566 (exit $ac_status); } >/dev/null && {
11567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11568 test ! -s conftest.err
11569 }; then
212380e3
AC
11570 ac_header_preproc=yes
11571else
11572 echo "$as_me: failed program was:" >&5
11573sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 ac_header_preproc=no
11576fi
631ef239 11577
212380e3 11578rm -f conftest.err conftest.$ac_ext
631ef239
AC
11579{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
11581
11582# So? What about this header?
11583case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584 yes:no: )
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589 ac_header_preproc=yes
11590 ;;
11591 no:yes:* )
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11595echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11599echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
631ef239 11604
212380e3
AC
11605 ;;
11606esac
631ef239
AC
11607{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11608echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612 eval "$as_ac_Header=\$ac_header_preproc"
11613fi
631ef239
AC
11614ac_res=`eval echo '${'$as_ac_Header'}'`
11615 { echo "$as_me:$LINENO: result: $ac_res" >&5
11616echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
11617
11618fi
11619if test `eval echo '${'$as_ac_Header'}'` = yes; then
11620 cat >>confdefs.h <<_ACEOF
11621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11622_ACEOF
11623
11624fi
11625
11626done
11627
11628 fi
631ef239
AC
11629 { echo "$as_me:$LINENO: checking for dlsym" >&5
11630echo $ECHO_N "checking for dlsym... $ECHO_C" >&6; }
212380e3
AC
11631if test "${ac_cv_func_dlsym+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633else
11634 cat >conftest.$ac_ext <<_ACEOF
11635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
11640/* Define dlsym to an innocuous variant, in case <limits.h> declares dlsym.
11641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11642#define dlsym innocuous_dlsym
11643
11644/* System header to define __stub macros and hopefully few prototypes,
11645 which can conflict with char dlsym (); below.
11646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 <limits.h> exists even on freestanding compilers. */
11648
11649#ifdef __STDC__
11650# include <limits.h>
11651#else
11652# include <assert.h>
11653#endif
11654
11655#undef dlsym
11656
631ef239
AC
11657/* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
212380e3
AC
11660#ifdef __cplusplus
11661extern "C"
212380e3 11662#endif
212380e3
AC
11663char dlsym ();
11664/* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
631ef239 11667#if defined __stub_dlsym || defined __stub___dlsym
212380e3 11668choke me
212380e3
AC
11669#endif
11670
11671int
11672main ()
11673{
631ef239 11674return dlsym ();
212380e3
AC
11675 ;
11676 return 0;
11677}
11678_ACEOF
11679rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
11680if { (ac_try="$ac_link"
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_link") 2>conftest.er1
212380e3
AC
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
AC
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest$ac_exeext &&
11696 $as_test_x conftest$ac_exeext; then
212380e3
AC
11697 ac_cv_func_dlsym=yes
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
631ef239 11702 ac_cv_func_dlsym=no
212380e3 11703fi
631ef239
AC
11704
11705rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
11706 conftest$ac_exeext conftest.$ac_ext
11707fi
631ef239
AC
11708{ echo "$as_me:$LINENO: result: $ac_cv_func_dlsym" >&5
11709echo "${ECHO_T}$ac_cv_func_dlsym" >&6; }
212380e3
AC
11710if test $ac_cv_func_dlsym = yes; then
11711 :
11712else
11713
11714 { echo "$as_me:$LINENO: WARNING: dlsym is not available, shared modules disabled" >&5
11715echo "$as_me: WARNING: dlsym is not available, shared modules disabled" >&2;}
11716 shared_modules=no
11717
11718fi
11719
11720
11721for ac_func in dlfunc
11722do
11723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
631ef239
AC
11724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
212380e3
AC
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728else
11729 cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
11735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11737#define $ac_func innocuous_$ac_func
11738
11739/* System header to define __stub macros and hopefully few prototypes,
11740 which can conflict with char $ac_func (); below.
11741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742 <limits.h> exists even on freestanding compilers. */
11743
11744#ifdef __STDC__
11745# include <limits.h>
11746#else
11747# include <assert.h>
11748#endif
11749
11750#undef $ac_func
11751
631ef239
AC
11752/* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
212380e3
AC
11755#ifdef __cplusplus
11756extern "C"
212380e3 11757#endif
212380e3
AC
11758char $ac_func ();
11759/* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
631ef239 11762#if defined __stub_$ac_func || defined __stub___$ac_func
212380e3 11763choke me
212380e3
AC
11764#endif
11765
11766int
11767main ()
11768{
631ef239 11769return $ac_func ();
212380e3
AC
11770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
11775if { (ac_try="$ac_link"
11776case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779esac
11780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_link") 2>conftest.er1
212380e3
AC
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11787 (exit $ac_status); } && {
11788 test -z "$ac_c_werror_flag" ||
11789 test ! -s conftest.err
11790 } && test -s conftest$ac_exeext &&
11791 $as_test_x conftest$ac_exeext; then
212380e3
AC
11792 eval "$as_ac_var=yes"
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
631ef239 11797 eval "$as_ac_var=no"
212380e3 11798fi
631ef239
AC
11799
11800rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
11801 conftest$ac_exeext conftest.$ac_ext
11802fi
631ef239
AC
11803ac_res=`eval echo '${'$as_ac_var'}'`
11804 { echo "$as_me:$LINENO: result: $ac_res" >&5
11805echo "${ECHO_T}$ac_res" >&6; }
212380e3
AC
11806if test `eval echo '${'$as_ac_var'}'` = yes; then
11807 cat >>confdefs.h <<_ACEOF
11808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11809_ACEOF
11810
11811fi
11812done
11813
11814
11815else
11816
11817 shared_modules=no
11818
11819fi
11820
11821
11822fi
11823
11824fi
11825
11826
11827cat >>confdefs.h <<_ACEOF
11828#define SHARED_SUFFIX "$SUFFIX"
11829_ACEOF
11830
11831
11832if test "$shared_modules" = yes; then
11833 # The GNU linker requires the -export-dynamic option to make
11834 # all symbols visible in the dynamic symbol table.
11835 hold_ldflags=$LDFLAGS
631ef239
AC
11836 { echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
11837echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6; }
212380e3
AC
11838 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic -Werror"
11839 cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h. */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h. */
11845
11846int
11847main ()
11848{
11849int i;
11850 ;
11851 return 0;
11852}
11853_ACEOF
11854rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
11855if { (ac_try="$ac_link"
11856case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859esac
11860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_link") 2>conftest.er1
212380e3
AC
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest$ac_exeext &&
11871 $as_test_x conftest$ac_exeext; then
212380e3
AC
11872 found=yes
11873else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
631ef239 11877 found=no
212380e3 11878fi
631ef239
AC
11879
11880rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
11881 conftest$ac_exeext conftest.$ac_ext
11882 LDFLAGS=$hold_ldflags
11883
11884 if expr "`uname -s`" : ^IRIX >/dev/null 2>&1; then
11885 found="no, IRIX ld uses -B,dynamic"
11886 LDFLAGS="${LDFLAGS} -Wl,-B,dynamic"
11887 fi
11888
11889 if expr "`uname -s`" : ^AIX >/dev/null 2>&1; then
11890 found="no, AIX ld uses -G -brtl"
11891 LDFLAGS="${LDFLAGS} -Wl,-G,-brtl"
11892 fi
11893
631ef239
AC
11894 { echo "$as_me:$LINENO: result: $found" >&5
11895echo "${ECHO_T}$found" >&6; }
212380e3
AC
11896
11897 if test "$found" = yes; then
11898 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
11899 fi
11900
631ef239
AC
11901 { echo "$as_me:$LINENO: checking for compiler option to produce PIC" >&5
11902echo $ECHO_N "checking for compiler option to produce PIC... $ECHO_C" >&6; }
212380e3 11903 if test "$SGS" = "yes"; then
631ef239
AC
11904 { echo "$as_me:$LINENO: result: SVR4 SGS interfaces: -KPIC -DPIC -G" >&5
11905echo "${ECHO_T}SVR4 SGS interfaces: -KPIC -DPIC -G" >&6; }
212380e3
AC
11906 PICFLAGS="-KPIC -DPIC -G"
11907 fi
11908
11909 if test "$AppleGCC" = "yes"; then
631ef239
AC
11910 { echo "$as_me:$LINENO: result: Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&5
11911echo "${ECHO_T}Darwin Mach-O bundles: -fno-common -bundle -flat_namespace -undefined suppress" >&6; }
212380e3
AC
11912 PICFLAGS="-fno-common -bundle -flat_namespace -undefined suppress"
11913 fi
11914 if test "$HPUX" = "yes" -a "$CC" != gcc; then
631ef239
AC
11915 { echo "$as_me:$LINENO: result: HP-UX cc: +z -r -q -n" >&5
11916echo "${ECHO_T}HP-UX cc: +z -r -q -n" >&6; }
212380e3 11917 PICFLAGS="+z -r -q -n -c"
631ef239
AC
11918 { echo "$as_me:$LINENO: checking if +ESfic is required on this platform" >&5
11919echo $ECHO_N "checking if +ESfic is required on this platform... $ECHO_C" >&6; }
212380e3
AC
11920
11921 if expr "`$CC +ESfic 2>&1`" : ".*neither supported.*" >/dev/null; then
631ef239
AC
11922 { echo "$as_me:$LINENO: result: no" >&5
11923echo "${ECHO_T}no" >&6; }
212380e3 11924 else
631ef239
AC
11925 { echo "$as_me:$LINENO: result: yes" >&5
11926echo "${ECHO_T}yes" >&6; }
212380e3
AC
11927 PICFLAGS="$PICFLAGS +ESfic"
11928 fi
11929
11930 LDFLAGS="${LDFLAGS} -Wl,-E"
11931 fi
11932 if test "$Tru" = yes -a "$CC" != gcc; then
631ef239
AC
11933 { echo "$as_me:$LINENO: result: Tru64: -shared -expect_unresolved '*'" >&5
11934echo "${ECHO_T}Tru64: -shared -expect_unresolved '*'" >&6; }
212380e3
AC
11935 PICFLAGS="-shared -expect_unresolved '*' "
11936 LDFLAGS="-call_shared"
11937 fi
11938 if test -z "$PICFLAGS"; then
11939 if test "$ac_cv_c_compiler_gnu" = "yes"; then
631ef239
AC
11940 { echo "$as_me:$LINENO: result: gcc: -fPIC -DPIC -shared" >&5
11941echo "${ECHO_T}gcc: -fPIC -DPIC -shared" >&6; }
212380e3
AC
11942 PICFLAGS="-fPIC -DPIC -shared"
11943 else
631ef239
AC
11944 { echo "$as_me:$LINENO: result: no" >&5
11945echo "${ECHO_T}no" >&6; }
212380e3
AC
11946 shared_modules=no
11947 fi
11948 fi
11949fi
11950
11951# This must be down here, or it will mess up checks like the ones
11952# for -Wl,-export-dynamic
11953# -- jilles
631ef239 11954# Check whether --enable-warnings was given.
212380e3 11955if test "${enable_warnings+set}" = set; then
631ef239 11956 enableval=$enable_warnings;
212380e3
AC
11957IRC_CFLAGS="$IRC_CFLAGS -O0"
11958CFLAGS="$IRC_CFLAGS"
11959
11960
631ef239
AC
11961 { echo "$as_me:$LINENO: checking GCC flag(s) -Wall" >&5
11962echo $ECHO_N "checking GCC flag(s) -Wall... $ECHO_C" >&6; }
212380e3
AC
11963 if test "${GCC-no}" = yes
11964 then
11965 if test "${charybdis_cv_c_gcc_w_all+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968
11969 oldcflags="${CFLAGS-}"
11970 CFLAGS="${CFLAGS-} ${CWARNS} -Wall -Werror"
11971 cat >conftest.$ac_ext <<_ACEOF
11972/* confdefs.h. */
11973_ACEOF
11974cat confdefs.h >>conftest.$ac_ext
11975cat >>conftest.$ac_ext <<_ACEOF
11976/* end confdefs.h. */
11977
11978#include <string.h>
11979#include <stdio.h>
11980int main(void);
11981
11982int
11983main ()
11984{
11985
b1fc1658 11986 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
11987
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext
631ef239
AC
11993if { (ac_try="$ac_compile"
11994case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12005 (exit $ac_status); } && {
12006 test -z "$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12008 } && test -s conftest.$ac_objext; then
212380e3
AC
12009 charybdis_cv_c_gcc_w_all=yes
12010else
12011 echo "$as_me: failed program was:" >&5
12012sed 's/^/| /' conftest.$ac_ext >&5
12013
631ef239 12014 charybdis_cv_c_gcc_w_all=no
212380e3 12015fi
631ef239
AC
12016
12017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12018 CFLAGS="${oldcflags}"
12019fi
12020
12021 if test "x$charybdis_cv_c_gcc_w_all" = xyes; then
12022 CWARNS="${CWARNS}-Wall "
631ef239
AC
12023 { echo "$as_me:$LINENO: result: ok" >&5
12024echo "${ECHO_T}ok" >&6; }
212380e3
AC
12025 else
12026 charybdis_cv_c_gcc_w_all=''
631ef239
AC
12027 { echo "$as_me:$LINENO: result: no" >&5
12028echo "${ECHO_T}no" >&6; }
212380e3
AC
12029 fi
12030 else
631ef239
AC
12031 { echo "$as_me:$LINENO: result: no" >&5
12032echo "${ECHO_T}no" >&6; }
212380e3
AC
12033 fi
12034
12035
631ef239
AC
12036 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpointer-arith" >&5
12037echo $ECHO_N "checking GCC flag(s) -Wpointer-arith... $ECHO_C" >&6; }
212380e3
AC
12038 if test "${GCC-no}" = yes
12039 then
12040 if test "${charybdis_cv_c_gcc_w_pointer_arith+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042else
12043
12044 oldcflags="${CFLAGS-}"
12045 CFLAGS="${CFLAGS-} ${CWARNS} -Wpointer-arith -Werror"
12046 cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052
12053#include <string.h>
12054#include <stdio.h>
12055int main(void);
12056
12057int
12058main ()
12059{
12060
b1fc1658 12061 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12062
12063 ;
12064 return 0;
12065}
12066_ACEOF
12067rm -f conftest.$ac_objext
631ef239
AC
12068if { (ac_try="$ac_compile"
12069case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
212380e3
AC
12084 charybdis_cv_c_gcc_w_pointer_arith=yes
12085else
12086 echo "$as_me: failed program was:" >&5
12087sed 's/^/| /' conftest.$ac_ext >&5
12088
631ef239 12089 charybdis_cv_c_gcc_w_pointer_arith=no
212380e3 12090fi
631ef239
AC
12091
12092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12093 CFLAGS="${oldcflags}"
12094fi
12095
12096 if test "x$charybdis_cv_c_gcc_w_pointer_arith" = xyes; then
12097 CWARNS="${CWARNS}-Wpointer-arith "
631ef239
AC
12098 { echo "$as_me:$LINENO: result: ok" >&5
12099echo "${ECHO_T}ok" >&6; }
212380e3
AC
12100 else
12101 charybdis_cv_c_gcc_w_pointer_arith=''
631ef239
AC
12102 { echo "$as_me:$LINENO: result: no" >&5
12103echo "${ECHO_T}no" >&6; }
212380e3
AC
12104 fi
12105 else
631ef239
AC
12106 { echo "$as_me:$LINENO: result: no" >&5
12107echo "${ECHO_T}no" >&6; }
212380e3
AC
12108 fi
12109
12110
631ef239
AC
12111 { echo "$as_me:$LINENO: checking GCC flag(s) -Wimplicit -Wnested-externs" >&5
12112echo $ECHO_N "checking GCC flag(s) -Wimplicit -Wnested-externs... $ECHO_C" >&6; }
212380e3
AC
12113 if test "${GCC-no}" = yes
12114 then
12115 if test "${charybdis_cv_c_gcc_w_implicit+set}" = set; then
12116 echo $ECHO_N "(cached) $ECHO_C" >&6
12117else
12118
12119 oldcflags="${CFLAGS-}"
12120 CFLAGS="${CFLAGS-} ${CWARNS} -Wimplicit -Wnested-externs -Werror"
12121 cat >conftest.$ac_ext <<_ACEOF
12122/* confdefs.h. */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h. */
12127
12128#include <string.h>
12129#include <stdio.h>
12130int main(void);
12131
12132int
12133main ()
12134{
12135
b1fc1658 12136 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12137
12138 ;
12139 return 0;
12140}
12141_ACEOF
12142rm -f conftest.$ac_objext
631ef239
AC
12143if { (ac_try="$ac_compile"
12144case "(($ac_try" in
12145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146 *) ac_try_echo=$ac_try;;
12147esac
12148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12150 ac_status=$?
12151 grep -v '^ *+' conftest.er1 >conftest.err
12152 rm -f conftest.er1
12153 cat conftest.err >&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12155 (exit $ac_status); } && {
12156 test -z "$ac_c_werror_flag" ||
12157 test ! -s conftest.err
12158 } && test -s conftest.$ac_objext; then
212380e3
AC
12159 charybdis_cv_c_gcc_w_implicit=yes
12160else
12161 echo "$as_me: failed program was:" >&5
12162sed 's/^/| /' conftest.$ac_ext >&5
12163
631ef239 12164 charybdis_cv_c_gcc_w_implicit=no
212380e3 12165fi
631ef239
AC
12166
12167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12168 CFLAGS="${oldcflags}"
12169fi
12170
12171 if test "x$charybdis_cv_c_gcc_w_implicit" = xyes; then
12172 CWARNS="${CWARNS}-Wimplicit -Wnested-externs "
631ef239
AC
12173 { echo "$as_me:$LINENO: result: ok" >&5
12174echo "${ECHO_T}ok" >&6; }
212380e3
AC
12175 else
12176 charybdis_cv_c_gcc_w_implicit=''
631ef239
AC
12177 { echo "$as_me:$LINENO: result: no" >&5
12178echo "${ECHO_T}no" >&6; }
212380e3
AC
12179 fi
12180 else
631ef239
AC
12181 { echo "$as_me:$LINENO: result: no" >&5
12182echo "${ECHO_T}no" >&6; }
212380e3
AC
12183 fi
12184
12185
631ef239
AC
12186 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-align" >&5
12187echo $ECHO_N "checking GCC flag(s) -Wcast-align... $ECHO_C" >&6; }
212380e3
AC
12188 if test "${GCC-no}" = yes
12189 then
12190 if test "${charybdis_cv_c_gcc_w_cast_align+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193
12194 oldcflags="${CFLAGS-}"
12195 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-align -Werror"
12196 cat >conftest.$ac_ext <<_ACEOF
12197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202
12203#include <string.h>
12204#include <stdio.h>
12205int main(void);
12206
12207int
12208main ()
12209{
12210
b1fc1658 12211 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12212
12213 ;
12214 return 0;
12215}
12216_ACEOF
12217rm -f conftest.$ac_objext
631ef239
AC
12218if { (ac_try="$ac_compile"
12219case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12222esac
12223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest.$ac_objext; then
212380e3
AC
12234 charybdis_cv_c_gcc_w_cast_align=yes
12235else
12236 echo "$as_me: failed program was:" >&5
12237sed 's/^/| /' conftest.$ac_ext >&5
12238
631ef239 12239 charybdis_cv_c_gcc_w_cast_align=no
212380e3 12240fi
631ef239
AC
12241
12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12243 CFLAGS="${oldcflags}"
12244fi
12245
12246 if test "x$charybdis_cv_c_gcc_w_cast_align" = xyes; then
12247 CWARNS="${CWARNS}-Wcast-align "
631ef239
AC
12248 { echo "$as_me:$LINENO: result: ok" >&5
12249echo "${ECHO_T}ok" >&6; }
212380e3
AC
12250 else
12251 charybdis_cv_c_gcc_w_cast_align=''
631ef239
AC
12252 { echo "$as_me:$LINENO: result: no" >&5
12253echo "${ECHO_T}no" >&6; }
212380e3
AC
12254 fi
12255 else
631ef239
AC
12256 { echo "$as_me:$LINENO: result: no" >&5
12257echo "${ECHO_T}no" >&6; }
212380e3
AC
12258 fi
12259
12260
631ef239
AC
12261 { echo "$as_me:$LINENO: checking GCC flag(s) -Wcast-qual" >&5
12262echo $ECHO_N "checking GCC flag(s) -Wcast-qual... $ECHO_C" >&6; }
212380e3
AC
12263 if test "${GCC-no}" = yes
12264 then
12265 if test "${charybdis_cv_c_gcc_w_cast_qual+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12267else
12268
12269 oldcflags="${CFLAGS-}"
12270 CFLAGS="${CFLAGS-} ${CWARNS} -Wcast-qual -Werror"
12271 cat >conftest.$ac_ext <<_ACEOF
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277
12278#include <string.h>
12279#include <stdio.h>
12280int main(void);
12281
12282int
12283main ()
12284{
12285
b1fc1658 12286 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12287
12288 ;
12289 return 0;
12290}
12291_ACEOF
12292rm -f conftest.$ac_objext
631ef239
AC
12293if { (ac_try="$ac_compile"
12294case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297esac
12298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12300 ac_status=$?
12301 grep -v '^ *+' conftest.er1 >conftest.err
12302 rm -f conftest.er1
12303 cat conftest.err >&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12305 (exit $ac_status); } && {
12306 test -z "$ac_c_werror_flag" ||
12307 test ! -s conftest.err
12308 } && test -s conftest.$ac_objext; then
212380e3
AC
12309 charybdis_cv_c_gcc_w_cast_qual=yes
12310else
12311 echo "$as_me: failed program was:" >&5
12312sed 's/^/| /' conftest.$ac_ext >&5
12313
631ef239 12314 charybdis_cv_c_gcc_w_cast_qual=no
212380e3 12315fi
631ef239
AC
12316
12317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12318 CFLAGS="${oldcflags}"
12319fi
12320
12321 if test "x$charybdis_cv_c_gcc_w_cast_qual" = xyes; then
12322 CWARNS="${CWARNS}-Wcast-qual "
631ef239
AC
12323 { echo "$as_me:$LINENO: result: ok" >&5
12324echo "${ECHO_T}ok" >&6; }
212380e3
AC
12325 else
12326 charybdis_cv_c_gcc_w_cast_qual=''
631ef239
AC
12327 { echo "$as_me:$LINENO: result: no" >&5
12328echo "${ECHO_T}no" >&6; }
212380e3
AC
12329 fi
12330 else
631ef239
AC
12331 { echo "$as_me:$LINENO: result: no" >&5
12332echo "${ECHO_T}no" >&6; }
212380e3
AC
12333 fi
12334
12335
631ef239
AC
12336 { echo "$as_me:$LINENO: checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations" >&5
12337echo $ECHO_N "checking GCC flag(s) -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations... $ECHO_C" >&6; }
212380e3
AC
12338 if test "${GCC-no}" = yes
12339 then
12340 if test "${charybdis_cv_c_gcc_prototypes+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343
12344 oldcflags="${CFLAGS-}"
12345 CFLAGS="${CFLAGS-} ${CWARNS} -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Werror"
12346 cat >conftest.$ac_ext <<_ACEOF
12347/* confdefs.h. */
12348_ACEOF
12349cat confdefs.h >>conftest.$ac_ext
12350cat >>conftest.$ac_ext <<_ACEOF
12351/* end confdefs.h. */
12352
12353#include <string.h>
12354#include <stdio.h>
12355int main(void);
12356
12357int
12358main ()
12359{
12360
b1fc1658 12361 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12362
12363 ;
12364 return 0;
12365}
12366_ACEOF
12367rm -f conftest.$ac_objext
631ef239
AC
12368if { (ac_try="$ac_compile"
12369case "(($ac_try" in
12370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371 *) ac_try_echo=$ac_try;;
12372esac
12373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12375 ac_status=$?
12376 grep -v '^ *+' conftest.er1 >conftest.err
12377 rm -f conftest.er1
12378 cat conftest.err >&5
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12380 (exit $ac_status); } && {
12381 test -z "$ac_c_werror_flag" ||
12382 test ! -s conftest.err
12383 } && test -s conftest.$ac_objext; then
212380e3
AC
12384 charybdis_cv_c_gcc_prototypes=yes
12385else
12386 echo "$as_me: failed program was:" >&5
12387sed 's/^/| /' conftest.$ac_ext >&5
12388
631ef239 12389 charybdis_cv_c_gcc_prototypes=no
212380e3 12390fi
631ef239
AC
12391
12392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12393 CFLAGS="${oldcflags}"
12394fi
12395
12396 if test "x$charybdis_cv_c_gcc_prototypes" = xyes; then
12397 CWARNS="${CWARNS}-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations "
631ef239
AC
12398 { echo "$as_me:$LINENO: result: ok" >&5
12399echo "${ECHO_T}ok" >&6; }
212380e3
AC
12400 else
12401 charybdis_cv_c_gcc_prototypes=''
631ef239
AC
12402 { echo "$as_me:$LINENO: result: no" >&5
12403echo "${ECHO_T}no" >&6; }
212380e3
AC
12404 fi
12405 else
631ef239
AC
12406 { echo "$as_me:$LINENO: result: no" >&5
12407echo "${ECHO_T}no" >&6; }
212380e3
AC
12408 fi
12409
12410
631ef239
AC
12411 { echo "$as_me:$LINENO: checking GCC flag(s) -Wparenthesis" >&5
12412echo $ECHO_N "checking GCC flag(s) -Wparenthesis... $ECHO_C" >&6; }
212380e3
AC
12413 if test "${GCC-no}" = yes
12414 then
12415 if test "${charybdis_cv_c_gcc_parenthesis+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12417else
12418
12419 oldcflags="${CFLAGS-}"
12420 CFLAGS="${CFLAGS-} ${CWARNS} -Wparenthesis -Werror"
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
12427
12428#include <string.h>
12429#include <stdio.h>
12430int main(void);
12431
12432int
12433main ()
12434{
12435
b1fc1658 12436 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12437
12438 ;
12439 return 0;
12440}
12441_ACEOF
12442rm -f conftest.$ac_objext
631ef239
AC
12443if { (ac_try="$ac_compile"
12444case "(($ac_try" in
12445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12446 *) ac_try_echo=$ac_try;;
12447esac
12448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12449 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12450 ac_status=$?
12451 grep -v '^ *+' conftest.er1 >conftest.err
12452 rm -f conftest.er1
12453 cat conftest.err >&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12455 (exit $ac_status); } && {
12456 test -z "$ac_c_werror_flag" ||
12457 test ! -s conftest.err
12458 } && test -s conftest.$ac_objext; then
212380e3
AC
12459 charybdis_cv_c_gcc_parenthesis=yes
12460else
12461 echo "$as_me: failed program was:" >&5
12462sed 's/^/| /' conftest.$ac_ext >&5
12463
631ef239 12464 charybdis_cv_c_gcc_parenthesis=no
212380e3 12465fi
631ef239
AC
12466
12467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12468 CFLAGS="${oldcflags}"
12469fi
12470
12471 if test "x$charybdis_cv_c_gcc_parenthesis" = xyes; then
12472 CWARNS="${CWARNS}-Wparenthesis "
631ef239
AC
12473 { echo "$as_me:$LINENO: result: ok" >&5
12474echo "${ECHO_T}ok" >&6; }
212380e3
AC
12475 else
12476 charybdis_cv_c_gcc_parenthesis=''
631ef239
AC
12477 { echo "$as_me:$LINENO: result: no" >&5
12478echo "${ECHO_T}no" >&6; }
212380e3
AC
12479 fi
12480 else
631ef239
AC
12481 { echo "$as_me:$LINENO: result: no" >&5
12482echo "${ECHO_T}no" >&6; }
212380e3
AC
12483 fi
12484
12485
631ef239
AC
12486 { echo "$as_me:$LINENO: checking GCC flag(s) -W -Wno-unused" >&5
12487echo $ECHO_N "checking GCC flag(s) -W -Wno-unused... $ECHO_C" >&6; }
212380e3
AC
12488 if test "${GCC-no}" = yes
12489 then
12490 if test "${charybdis_cv_c_gcc_w+set}" = set; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12492else
12493
12494 oldcflags="${CFLAGS-}"
12495 CFLAGS="${CFLAGS-} ${CWARNS} -W -Wno-unused -Werror"
12496 cat >conftest.$ac_ext <<_ACEOF
12497/* confdefs.h. */
12498_ACEOF
12499cat confdefs.h >>conftest.$ac_ext
12500cat >>conftest.$ac_ext <<_ACEOF
12501/* end confdefs.h. */
12502
12503#include <string.h>
12504#include <stdio.h>
12505int main(void);
12506
12507int
12508main ()
12509{
12510
b1fc1658 12511 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12512
12513 ;
12514 return 0;
12515}
12516_ACEOF
12517rm -f conftest.$ac_objext
631ef239
AC
12518if { (ac_try="$ac_compile"
12519case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522esac
12523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest.$ac_objext; then
212380e3
AC
12534 charybdis_cv_c_gcc_w=yes
12535else
12536 echo "$as_me: failed program was:" >&5
12537sed 's/^/| /' conftest.$ac_ext >&5
12538
631ef239 12539 charybdis_cv_c_gcc_w=no
212380e3 12540fi
631ef239
AC
12541
12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12543 CFLAGS="${oldcflags}"
12544fi
12545
12546 if test "x$charybdis_cv_c_gcc_w" = xyes; then
12547 CWARNS="${CWARNS}-W -Wno-unused "
631ef239
AC
12548 { echo "$as_me:$LINENO: result: ok" >&5
12549echo "${ECHO_T}ok" >&6; }
212380e3
AC
12550 else
12551 charybdis_cv_c_gcc_w=''
631ef239
AC
12552 { echo "$as_me:$LINENO: result: no" >&5
12553echo "${ECHO_T}no" >&6; }
212380e3
AC
12554 fi
12555 else
631ef239
AC
12556 { echo "$as_me:$LINENO: result: no" >&5
12557echo "${ECHO_T}no" >&6; }
212380e3
AC
12558 fi
12559
12560
631ef239
AC
12561 { echo "$as_me:$LINENO: checking GCC flag(s) -Wextra" >&5
12562echo $ECHO_N "checking GCC flag(s) -Wextra... $ECHO_C" >&6; }
212380e3
AC
12563 if test "${GCC-no}" = yes
12564 then
12565 if test "${charybdis_cv_c_gcc_w_extra+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12567else
12568
12569 oldcflags="${CFLAGS-}"
12570 CFLAGS="${CFLAGS-} ${CWARNS} -Wextra -Werror"
12571 cat >conftest.$ac_ext <<_ACEOF
12572/* confdefs.h. */
12573_ACEOF
12574cat confdefs.h >>conftest.$ac_ext
12575cat >>conftest.$ac_ext <<_ACEOF
12576/* end confdefs.h. */
12577
12578#include <string.h>
12579#include <stdio.h>
12580int main(void);
12581
12582int
12583main ()
12584{
12585
b1fc1658 12586 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12587
12588 ;
12589 return 0;
12590}
12591_ACEOF
12592rm -f conftest.$ac_objext
631ef239
AC
12593if { (ac_try="$ac_compile"
12594case "(($ac_try" in
12595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12596 *) ac_try_echo=$ac_try;;
12597esac
12598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12599 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12600 ac_status=$?
12601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12605 (exit $ac_status); } && {
12606 test -z "$ac_c_werror_flag" ||
12607 test ! -s conftest.err
12608 } && test -s conftest.$ac_objext; then
212380e3
AC
12609 charybdis_cv_c_gcc_w_extra=yes
12610else
12611 echo "$as_me: failed program was:" >&5
12612sed 's/^/| /' conftest.$ac_ext >&5
12613
631ef239 12614 charybdis_cv_c_gcc_w_extra=no
212380e3 12615fi
631ef239
AC
12616
12617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12618 CFLAGS="${oldcflags}"
12619fi
12620
12621 if test "x$charybdis_cv_c_gcc_w_extra" = xyes; then
12622 CWARNS="${CWARNS}-Wextra "
631ef239
AC
12623 { echo "$as_me:$LINENO: result: ok" >&5
12624echo "${ECHO_T}ok" >&6; }
212380e3
AC
12625 else
12626 charybdis_cv_c_gcc_w_extra=''
631ef239
AC
12627 { echo "$as_me:$LINENO: result: no" >&5
12628echo "${ECHO_T}no" >&6; }
212380e3
AC
12629 fi
12630 else
631ef239
AC
12631 { echo "$as_me:$LINENO: result: no" >&5
12632echo "${ECHO_T}no" >&6; }
212380e3
AC
12633 fi
12634
12635
631ef239
AC
12636 { echo "$as_me:$LINENO: checking GCC flag(s) -Wshadow" >&5
12637echo $ECHO_N "checking GCC flag(s) -Wshadow... $ECHO_C" >&6; }
212380e3
AC
12638 if test "${GCC-no}" = yes
12639 then
12640 if test "${charybdis_cv_c_gcc_w_shadow+set}" = set; then
12641 echo $ECHO_N "(cached) $ECHO_C" >&6
12642else
12643
12644 oldcflags="${CFLAGS-}"
12645 CFLAGS="${CFLAGS-} ${CWARNS} -Wshadow -Werror"
12646 cat >conftest.$ac_ext <<_ACEOF
12647/* confdefs.h. */
12648_ACEOF
12649cat confdefs.h >>conftest.$ac_ext
12650cat >>conftest.$ac_ext <<_ACEOF
12651/* end confdefs.h. */
12652
12653#include <string.h>
12654#include <stdio.h>
12655int main(void);
12656
12657int
12658main ()
12659{
12660
b1fc1658 12661 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12662
12663 ;
12664 return 0;
12665}
12666_ACEOF
12667rm -f conftest.$ac_objext
631ef239
AC
12668if { (ac_try="$ac_compile"
12669case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672esac
12673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12675 ac_status=$?
12676 grep -v '^ *+' conftest.er1 >conftest.err
12677 rm -f conftest.er1
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest.$ac_objext; then
212380e3
AC
12684 charybdis_cv_c_gcc_w_shadow=yes
12685else
12686 echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
631ef239 12689 charybdis_cv_c_gcc_w_shadow=no
212380e3 12690fi
631ef239
AC
12691
12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12693 CFLAGS="${oldcflags}"
12694fi
12695
12696 if test "x$charybdis_cv_c_gcc_w_shadow" = xyes; then
12697 CWARNS="${CWARNS}-Wshadow "
631ef239
AC
12698 { echo "$as_me:$LINENO: result: ok" >&5
12699echo "${ECHO_T}ok" >&6; }
212380e3
AC
12700 else
12701 charybdis_cv_c_gcc_w_shadow=''
631ef239
AC
12702 { echo "$as_me:$LINENO: result: no" >&5
12703echo "${ECHO_T}no" >&6; }
212380e3
AC
12704 fi
12705 else
631ef239
AC
12706 { echo "$as_me:$LINENO: result: no" >&5
12707echo "${ECHO_T}no" >&6; }
212380e3
AC
12708 fi
12709
12710
631ef239
AC
12711 { echo "$as_me:$LINENO: checking GCC flag(s) -Wmissing-noreturn" >&5
12712echo $ECHO_N "checking GCC flag(s) -Wmissing-noreturn... $ECHO_C" >&6; }
212380e3
AC
12713 if test "${GCC-no}" = yes
12714 then
12715 if test "${charybdis_cv_c_gcc_w_missing_noreturn+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717else
12718
12719 oldcflags="${CFLAGS-}"
12720 CFLAGS="${CFLAGS-} ${CWARNS} -Wmissing-noreturn -Werror"
12721 cat >conftest.$ac_ext <<_ACEOF
12722/* confdefs.h. */
12723_ACEOF
12724cat confdefs.h >>conftest.$ac_ext
12725cat >>conftest.$ac_ext <<_ACEOF
12726/* end confdefs.h. */
12727
12728#include <string.h>
12729#include <stdio.h>
12730int main(void);
12731
12732int
12733main ()
12734{
12735
b1fc1658 12736 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12737
12738 ;
12739 return 0;
12740}
12741_ACEOF
12742rm -f conftest.$ac_objext
631ef239
AC
12743if { (ac_try="$ac_compile"
12744case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12747esac
12748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12750 ac_status=$?
12751 grep -v '^ *+' conftest.er1 >conftest.err
12752 rm -f conftest.er1
12753 cat conftest.err >&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12755 (exit $ac_status); } && {
12756 test -z "$ac_c_werror_flag" ||
12757 test ! -s conftest.err
12758 } && test -s conftest.$ac_objext; then
212380e3
AC
12759 charybdis_cv_c_gcc_w_missing_noreturn=yes
12760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
631ef239 12764 charybdis_cv_c_gcc_w_missing_noreturn=no
212380e3 12765fi
631ef239
AC
12766
12767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12768 CFLAGS="${oldcflags}"
12769fi
12770
12771 if test "x$charybdis_cv_c_gcc_w_missing_noreturn" = xyes; then
12772 CWARNS="${CWARNS}-Wmissing-noreturn "
631ef239
AC
12773 { echo "$as_me:$LINENO: result: ok" >&5
12774echo "${ECHO_T}ok" >&6; }
212380e3
AC
12775 else
12776 charybdis_cv_c_gcc_w_missing_noreturn=''
631ef239
AC
12777 { echo "$as_me:$LINENO: result: no" >&5
12778echo "${ECHO_T}no" >&6; }
212380e3
AC
12779 fi
12780 else
631ef239
AC
12781 { echo "$as_me:$LINENO: result: no" >&5
12782echo "${ECHO_T}no" >&6; }
212380e3
AC
12783 fi
12784
12785
631ef239
AC
12786 { echo "$as_me:$LINENO: checking GCC flag(s) -Wundef" >&5
12787echo $ECHO_N "checking GCC flag(s) -Wundef... $ECHO_C" >&6; }
212380e3
AC
12788 if test "${GCC-no}" = yes
12789 then
12790 if test "${charybdis_cv_c_gcc_w_undef+set}" = set; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12792else
12793
12794 oldcflags="${CFLAGS-}"
12795 CFLAGS="${CFLAGS-} ${CWARNS} -Wundef -Werror"
12796 cat >conftest.$ac_ext <<_ACEOF
12797/* confdefs.h. */
12798_ACEOF
12799cat confdefs.h >>conftest.$ac_ext
12800cat >>conftest.$ac_ext <<_ACEOF
12801/* end confdefs.h. */
12802
12803#include <string.h>
12804#include <stdio.h>
12805int main(void);
12806
12807int
12808main ()
12809{
12810
b1fc1658 12811 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12812
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817rm -f conftest.$ac_objext
631ef239
AC
12818if { (ac_try="$ac_compile"
12819case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822esac
12823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12824 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12825 ac_status=$?
12826 grep -v '^ *+' conftest.er1 >conftest.err
12827 rm -f conftest.er1
12828 cat conftest.err >&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12830 (exit $ac_status); } && {
12831 test -z "$ac_c_werror_flag" ||
12832 test ! -s conftest.err
12833 } && test -s conftest.$ac_objext; then
212380e3
AC
12834 charybdis_cv_c_gcc_w_undef=yes
12835else
12836 echo "$as_me: failed program was:" >&5
12837sed 's/^/| /' conftest.$ac_ext >&5
12838
631ef239 12839 charybdis_cv_c_gcc_w_undef=no
212380e3 12840fi
631ef239
AC
12841
12842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12843 CFLAGS="${oldcflags}"
12844fi
12845
12846 if test "x$charybdis_cv_c_gcc_w_undef" = xyes; then
12847 CWARNS="${CWARNS}-Wundef "
631ef239
AC
12848 { echo "$as_me:$LINENO: result: ok" >&5
12849echo "${ECHO_T}ok" >&6; }
212380e3
AC
12850 else
12851 charybdis_cv_c_gcc_w_undef=''
631ef239
AC
12852 { echo "$as_me:$LINENO: result: no" >&5
12853echo "${ECHO_T}no" >&6; }
212380e3
AC
12854 fi
12855 else
631ef239
AC
12856 { echo "$as_me:$LINENO: result: no" >&5
12857echo "${ECHO_T}no" >&6; }
212380e3
AC
12858 fi
12859
12860
631ef239
AC
12861 { echo "$as_me:$LINENO: checking GCC flag(s) -Wpacked" >&5
12862echo $ECHO_N "checking GCC flag(s) -Wpacked... $ECHO_C" >&6; }
212380e3
AC
12863 if test "${GCC-no}" = yes
12864 then
12865 if test "${charybdis_cv_c_gcc_w_packed+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12867else
12868
12869 oldcflags="${CFLAGS-}"
12870 CFLAGS="${CFLAGS-} ${CWARNS} -Wpacked -Werror"
12871 cat >conftest.$ac_ext <<_ACEOF
12872/* confdefs.h. */
12873_ACEOF
12874cat confdefs.h >>conftest.$ac_ext
12875cat >>conftest.$ac_ext <<_ACEOF
12876/* end confdefs.h. */
12877
12878#include <string.h>
12879#include <stdio.h>
12880int main(void);
12881
12882int
12883main ()
12884{
12885
b1fc1658 12886 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12887
12888 ;
12889 return 0;
12890}
12891_ACEOF
12892rm -f conftest.$ac_objext
631ef239
AC
12893if { (ac_try="$ac_compile"
12894case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897esac
12898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12899 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12900 ac_status=$?
12901 grep -v '^ *+' conftest.er1 >conftest.err
12902 rm -f conftest.er1
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12905 (exit $ac_status); } && {
12906 test -z "$ac_c_werror_flag" ||
12907 test ! -s conftest.err
12908 } && test -s conftest.$ac_objext; then
212380e3
AC
12909 charybdis_cv_c_gcc_w_packed=yes
12910else
12911 echo "$as_me: failed program was:" >&5
12912sed 's/^/| /' conftest.$ac_ext >&5
12913
631ef239 12914 charybdis_cv_c_gcc_w_packed=no
212380e3 12915fi
631ef239
AC
12916
12917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12918 CFLAGS="${oldcflags}"
12919fi
12920
12921 if test "x$charybdis_cv_c_gcc_w_packed" = xyes; then
12922 CWARNS="${CWARNS}-Wpacked "
631ef239
AC
12923 { echo "$as_me:$LINENO: result: ok" >&5
12924echo "${ECHO_T}ok" >&6; }
212380e3
AC
12925 else
12926 charybdis_cv_c_gcc_w_packed=''
631ef239
AC
12927 { echo "$as_me:$LINENO: result: no" >&5
12928echo "${ECHO_T}no" >&6; }
212380e3
AC
12929 fi
12930 else
631ef239
AC
12931 { echo "$as_me:$LINENO: result: no" >&5
12932echo "${ECHO_T}no" >&6; }
212380e3
AC
12933 fi
12934
12935
631ef239
AC
12936 { echo "$as_me:$LINENO: checking GCC flag(s) -Wnested-externs" >&5
12937echo $ECHO_N "checking GCC flag(s) -Wnested-externs... $ECHO_C" >&6; }
212380e3
AC
12938 if test "${GCC-no}" = yes
12939 then
12940 if test "${charybdis_cv_c_gcc_w_nested_externs+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942else
12943
12944 oldcflags="${CFLAGS-}"
12945 CFLAGS="${CFLAGS-} ${CWARNS} -Wnested-externs -Werror"
12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952
12953#include <string.h>
12954#include <stdio.h>
12955int main(void);
12956
12957int
12958main ()
12959{
12960
b1fc1658 12961 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
12962
12963 ;
12964 return 0;
12965}
12966_ACEOF
12967rm -f conftest.$ac_objext
631ef239
AC
12968if { (ac_try="$ac_compile"
12969case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12972esac
12973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
12975 ac_status=$?
12976 grep -v '^ *+' conftest.er1 >conftest.err
12977 rm -f conftest.er1
12978 cat conftest.err >&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
12980 (exit $ac_status); } && {
12981 test -z "$ac_c_werror_flag" ||
12982 test ! -s conftest.err
12983 } && test -s conftest.$ac_objext; then
212380e3
AC
12984 charybdis_cv_c_gcc_w_nested_externs=yes
12985else
12986 echo "$as_me: failed program was:" >&5
12987sed 's/^/| /' conftest.$ac_ext >&5
12988
631ef239 12989 charybdis_cv_c_gcc_w_nested_externs=no
212380e3 12990fi
631ef239
AC
12991
12992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
12993 CFLAGS="${oldcflags}"
12994fi
12995
12996 if test "x$charybdis_cv_c_gcc_w_nested_externs" = xyes; then
12997 CWARNS="${CWARNS}-Wnested-externs "
631ef239
AC
12998 { echo "$as_me:$LINENO: result: ok" >&5
12999echo "${ECHO_T}ok" >&6; }
212380e3
AC
13000 else
13001 charybdis_cv_c_gcc_w_nested_externs=''
631ef239
AC
13002 { echo "$as_me:$LINENO: result: no" >&5
13003echo "${ECHO_T}no" >&6; }
212380e3
AC
13004 fi
13005 else
631ef239
AC
13006 { echo "$as_me:$LINENO: result: no" >&5
13007echo "${ECHO_T}no" >&6; }
212380e3
AC
13008 fi
13009
13010
631ef239
AC
13011 { echo "$as_me:$LINENO: checking GCC flag(s) -Wbad-function-cast" >&5
13012echo $ECHO_N "checking GCC flag(s) -Wbad-function-cast... $ECHO_C" >&6; }
212380e3
AC
13013 if test "${GCC-no}" = yes
13014 then
13015 if test "${charybdis_cv_c_gcc_w_bad_function_cast+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017else
13018
13019 oldcflags="${CFLAGS-}"
13020 CFLAGS="${CFLAGS-} ${CWARNS} -Wbad-function-cast -Werror"
13021 cat >conftest.$ac_ext <<_ACEOF
13022/* confdefs.h. */
13023_ACEOF
13024cat confdefs.h >>conftest.$ac_ext
13025cat >>conftest.$ac_ext <<_ACEOF
13026/* end confdefs.h. */
13027
13028#include <string.h>
13029#include <stdio.h>
13030int main(void);
13031
13032int
13033main ()
13034{
13035
b1fc1658 13036 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
13037
13038 ;
13039 return 0;
13040}
13041_ACEOF
13042rm -f conftest.$ac_objext
631ef239
AC
13043if { (ac_try="$ac_compile"
13044case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13050 ac_status=$?
13051 grep -v '^ *+' conftest.er1 >conftest.err
13052 rm -f conftest.er1
13053 cat conftest.err >&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13055 (exit $ac_status); } && {
13056 test -z "$ac_c_werror_flag" ||
13057 test ! -s conftest.err
13058 } && test -s conftest.$ac_objext; then
212380e3
AC
13059 charybdis_cv_c_gcc_w_bad_function_cast=yes
13060else
13061 echo "$as_me: failed program was:" >&5
13062sed 's/^/| /' conftest.$ac_ext >&5
13063
631ef239 13064 charybdis_cv_c_gcc_w_bad_function_cast=no
212380e3 13065fi
631ef239
AC
13066
13067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
13068 CFLAGS="${oldcflags}"
13069fi
13070
13071 if test "x$charybdis_cv_c_gcc_w_bad_function_cast" = xyes; then
13072 CWARNS="${CWARNS}-Wbad-function-cast "
631ef239
AC
13073 { echo "$as_me:$LINENO: result: ok" >&5
13074echo "${ECHO_T}ok" >&6; }
212380e3
AC
13075 else
13076 charybdis_cv_c_gcc_w_bad_function_cast=''
631ef239
AC
13077 { echo "$as_me:$LINENO: result: no" >&5
13078echo "${ECHO_T}no" >&6; }
212380e3
AC
13079 fi
13080 else
631ef239
AC
13081 { echo "$as_me:$LINENO: result: no" >&5
13082echo "${ECHO_T}no" >&6; }
212380e3
AC
13083 fi
13084
13085
631ef239
AC
13086 { echo "$as_me:$LINENO: checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable" >&5
13087echo $ECHO_N "checking GCC flag(s) -Wunused-function -Wunused-label -Wunused-value -Wunused-variable... $ECHO_C" >&6; }
212380e3
AC
13088 if test "${GCC-no}" = yes
13089 then
13090 if test "${charybdis_cv_c_gcc_w_unused+set}" = set; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092else
13093
13094 oldcflags="${CFLAGS-}"
13095 CFLAGS="${CFLAGS-} ${CWARNS} -Wunused-function -Wunused-label -Wunused-value -Wunused-variable -Werror"
13096 cat >conftest.$ac_ext <<_ACEOF
13097/* confdefs.h. */
13098_ACEOF
13099cat confdefs.h >>conftest.$ac_ext
13100cat >>conftest.$ac_ext <<_ACEOF
13101/* end confdefs.h. */
13102
13103#include <string.h>
13104#include <stdio.h>
13105int main(void);
13106
13107int
13108main ()
13109{
13110
b1fc1658 13111 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
13112
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext
631ef239
AC
13118if { (ac_try="$ac_compile"
13119case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13125 ac_status=$?
13126 grep -v '^ *+' conftest.er1 >conftest.err
13127 rm -f conftest.er1
13128 cat conftest.err >&5
13129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13130 (exit $ac_status); } && {
13131 test -z "$ac_c_werror_flag" ||
13132 test ! -s conftest.err
13133 } && test -s conftest.$ac_objext; then
212380e3
AC
13134 charybdis_cv_c_gcc_w_unused=yes
13135else
13136 echo "$as_me: failed program was:" >&5
13137sed 's/^/| /' conftest.$ac_ext >&5
13138
631ef239 13139 charybdis_cv_c_gcc_w_unused=no
212380e3 13140fi
631ef239
AC
13141
13142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
13143 CFLAGS="${oldcflags}"
13144fi
13145
13146 if test "x$charybdis_cv_c_gcc_w_unused" = xyes; then
13147 CWARNS="${CWARNS}-Wunused-function -Wunused-label -Wunused-value -Wunused-variable "
631ef239
AC
13148 { echo "$as_me:$LINENO: result: ok" >&5
13149echo "${ECHO_T}ok" >&6; }
212380e3
AC
13150 else
13151 charybdis_cv_c_gcc_w_unused=''
631ef239
AC
13152 { echo "$as_me:$LINENO: result: no" >&5
13153echo "${ECHO_T}no" >&6; }
212380e3
AC
13154 fi
13155 else
631ef239
AC
13156 { echo "$as_me:$LINENO: result: no" >&5
13157echo "${ECHO_T}no" >&6; }
212380e3
AC
13158 fi
13159
13160
631ef239
AC
13161 { echo "$as_me:$LINENO: checking GCC flag(s) -Wredundant-decls" >&5
13162echo $ECHO_N "checking GCC flag(s) -Wredundant-decls... $ECHO_C" >&6; }
212380e3
AC
13163 if test "${GCC-no}" = yes
13164 then
13165 if test "${charybdis_cv_c_gcc_w_redundant_decls+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13167else
13168
13169 oldcflags="${CFLAGS-}"
13170 CFLAGS="${CFLAGS-} ${CWARNS} -Wredundant-decls -Werror"
13171 cat >conftest.$ac_ext <<_ACEOF
13172/* confdefs.h. */
13173_ACEOF
13174cat confdefs.h >>conftest.$ac_ext
13175cat >>conftest.$ac_ext <<_ACEOF
13176/* end confdefs.h. */
13177
13178#include <string.h>
13179#include <stdio.h>
13180int main(void);
13181
13182int
13183main ()
13184{
13185
b1fc1658 13186 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
13187
13188 ;
13189 return 0;
13190}
13191_ACEOF
13192rm -f conftest.$ac_objext
631ef239
AC
13193if { (ac_try="$ac_compile"
13194case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197esac
13198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13205 (exit $ac_status); } && {
13206 test -z "$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 } && test -s conftest.$ac_objext; then
212380e3
AC
13209 charybdis_cv_c_gcc_w_redundant_decls=yes
13210else
13211 echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
631ef239 13214 charybdis_cv_c_gcc_w_redundant_decls=no
212380e3 13215fi
631ef239
AC
13216
13217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
13218 CFLAGS="${oldcflags}"
13219fi
13220
13221 if test "x$charybdis_cv_c_gcc_w_redundant_decls" = xyes; then
13222 CWARNS="${CWARNS}-Wredundant-decls "
631ef239
AC
13223 { echo "$as_me:$LINENO: result: ok" >&5
13224echo "${ECHO_T}ok" >&6; }
212380e3
AC
13225 else
13226 charybdis_cv_c_gcc_w_redundant_decls=''
631ef239
AC
13227 { echo "$as_me:$LINENO: result: no" >&5
13228echo "${ECHO_T}no" >&6; }
212380e3
AC
13229 fi
13230 else
631ef239
AC
13231 { echo "$as_me:$LINENO: result: no" >&5
13232echo "${ECHO_T}no" >&6; }
212380e3
AC
13233 fi
13234
13235
631ef239
AC
13236 { echo "$as_me:$LINENO: checking GCC flag(s) -Wfloat-equal" >&5
13237echo $ECHO_N "checking GCC flag(s) -Wfloat-equal... $ECHO_C" >&6; }
212380e3
AC
13238 if test "${GCC-no}" = yes
13239 then
13240 if test "${charybdis_cv_c_gcc_w_float_equal+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13242else
13243
13244 oldcflags="${CFLAGS-}"
13245 CFLAGS="${CFLAGS-} ${CWARNS} -Wfloat-equal -Werror"
13246 cat >conftest.$ac_ext <<_ACEOF
13247/* confdefs.h. */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
13251/* end confdefs.h. */
13252
13253#include <string.h>
13254#include <stdio.h>
13255int main(void);
13256
13257int
13258main ()
13259{
13260
b1fc1658 13261 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
13262
13263 ;
13264 return 0;
13265}
13266_ACEOF
13267rm -f conftest.$ac_objext
631ef239
AC
13268if { (ac_try="$ac_compile"
13269case "(($ac_try" in
13270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271 *) ac_try_echo=$ac_try;;
13272esac
13273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest.$ac_objext; then
212380e3
AC
13284 charybdis_cv_c_gcc_w_float_equal=yes
13285else
13286 echo "$as_me: failed program was:" >&5
13287sed 's/^/| /' conftest.$ac_ext >&5
13288
631ef239 13289 charybdis_cv_c_gcc_w_float_equal=no
212380e3 13290fi
631ef239
AC
13291
13292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
13293 CFLAGS="${oldcflags}"
13294fi
13295
13296 if test "x$charybdis_cv_c_gcc_w_float_equal" = xyes; then
13297 CWARNS="${CWARNS}-Wfloat-equal "
631ef239
AC
13298 { echo "$as_me:$LINENO: result: ok" >&5
13299echo "${ECHO_T}ok" >&6; }
212380e3
AC
13300 else
13301 charybdis_cv_c_gcc_w_float_equal=''
631ef239
AC
13302 { echo "$as_me:$LINENO: result: no" >&5
13303echo "${ECHO_T}no" >&6; }
212380e3
AC
13304 fi
13305 else
631ef239
AC
13306 { echo "$as_me:$LINENO: result: no" >&5
13307echo "${ECHO_T}no" >&6; }
212380e3
AC
13308 fi
13309
13310
631ef239
AC
13311 { echo "$as_me:$LINENO: checking GCC flag(s) -Wformat=2" >&5
13312echo $ECHO_N "checking GCC flag(s) -Wformat=2... $ECHO_C" >&6; }
212380e3
AC
13313 if test "${GCC-no}" = yes
13314 then
13315 if test "${charybdis_cv_c_gcc_w_format+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317else
13318
13319 oldcflags="${CFLAGS-}"
13320 CFLAGS="${CFLAGS-} ${CWARNS} -Wformat=2 -Werror"
13321 cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327
13328#include <string.h>
13329#include <stdio.h>
13330int main(void);
13331
13332int
13333main ()
13334{
13335
b1fc1658 13336 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
13337
13338 ;
13339 return 0;
13340}
13341_ACEOF
13342rm -f conftest.$ac_objext
631ef239
AC
13343if { (ac_try="$ac_compile"
13344case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347esac
13348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest.$ac_objext; then
212380e3
AC
13359 charybdis_cv_c_gcc_w_format=yes
13360else
13361 echo "$as_me: failed program was:" >&5
13362sed 's/^/| /' conftest.$ac_ext >&5
13363
631ef239 13364 charybdis_cv_c_gcc_w_format=no
212380e3 13365fi
631ef239
AC
13366
13367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
13368 CFLAGS="${oldcflags}"
13369fi
13370
13371 if test "x$charybdis_cv_c_gcc_w_format" = xyes; then
13372 CWARNS="${CWARNS}-Wformat=2 "
631ef239
AC
13373 { echo "$as_me:$LINENO: result: ok" >&5
13374echo "${ECHO_T}ok" >&6; }
212380e3
AC
13375 else
13376 charybdis_cv_c_gcc_w_format=''
631ef239
AC
13377 { echo "$as_me:$LINENO: result: no" >&5
13378echo "${ECHO_T}no" >&6; }
212380e3
AC
13379 fi
13380 else
631ef239
AC
13381 { echo "$as_me:$LINENO: result: no" >&5
13382echo "${ECHO_T}no" >&6; }
212380e3
AC
13383 fi
13384
13385
631ef239
AC
13386 { echo "$as_me:$LINENO: checking GCC flag(s) -pedantic" >&5
13387echo $ECHO_N "checking GCC flag(s) -pedantic... $ECHO_C" >&6; }
212380e3
AC
13388 if test "${GCC-no}" = yes
13389 then
13390 if test "${charybdis_cv_c_gcc_pedantic+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392else
13393
13394 oldcflags="${CFLAGS-}"
13395 CFLAGS="${CFLAGS-} ${CWARNS} -pedantic -Werror"
13396 cat >conftest.$ac_ext <<_ACEOF
13397/* confdefs.h. */
13398_ACEOF
13399cat confdefs.h >>conftest.$ac_ext
13400cat >>conftest.$ac_ext <<_ACEOF
13401/* end confdefs.h. */
13402
13403#include <string.h>
13404#include <stdio.h>
13405int main(void);
13406
13407int
13408main ()
13409{
13410
b1fc1658 13411 (void)strcmp("a","b"); fprintf(stdout,"test ok\n");
212380e3
AC
13412
13413 ;
13414 return 0;
13415}
13416_ACEOF
13417rm -f conftest.$ac_objext
631ef239
AC
13418if { (ac_try="$ac_compile"
13419case "(($ac_try" in
13420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13422esac
13423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13425 ac_status=$?
13426 grep -v '^ *+' conftest.er1 >conftest.err
13427 rm -f conftest.er1
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13430 (exit $ac_status); } && {
13431 test -z "$ac_c_werror_flag" ||
13432 test ! -s conftest.err
13433 } && test -s conftest.$ac_objext; then
212380e3
AC
13434 charybdis_cv_c_gcc_pedantic=yes
13435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
631ef239 13439 charybdis_cv_c_gcc_pedantic=no
212380e3 13440fi
631ef239
AC
13441
13442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
212380e3
AC
13443 CFLAGS="${oldcflags}"
13444fi
13445
13446 if test "x$charybdis_cv_c_gcc_pedantic" = xyes; then
13447 CWARNS="${CWARNS}-pedantic "
631ef239
AC
13448 { echo "$as_me:$LINENO: result: ok" >&5
13449echo "${ECHO_T}ok" >&6; }
212380e3
AC
13450 else
13451 charybdis_cv_c_gcc_pedantic=''
631ef239
AC
13452 { echo "$as_me:$LINENO: result: no" >&5
13453echo "${ECHO_T}no" >&6; }
212380e3
AC
13454 fi
13455 else
631ef239
AC
13456 { echo "$as_me:$LINENO: result: no" >&5
13457echo "${ECHO_T}no" >&6; }
212380e3
AC
13458 fi
13459
13460
13461IRC_CFLAGS="$CFLAGS"
13462
631ef239
AC
13463fi
13464
212380e3
AC
13465
13466if test "$shared_modules" = no; then
13467 DYNLINK_C=""
13468 MOD_TARGET="libmodules.a"
13469 MODULES_LIBS="../modules/libmodules.a"
13470 SEDOBJ=""
13471
13472cat >>confdefs.h <<\_ACEOF
13473#define STATIC_MODULES 1
13474_ACEOF
13475
13476 { echo "$as_me:$LINENO: WARNING: shared module support has been disabled!" >&5
13477echo "$as_me: WARNING: shared module support has been disabled!" >&2;}
13478fi
13479
13480if test "$shared_modules" = yes; then
13481
631ef239
AC
13482 { echo "$as_me:$LINENO: checking for nlist" >&5
13483echo $ECHO_N "checking for nlist... $ECHO_C" >&6; }
212380e3
AC
13484if test "${ac_cv_func_nlist+set}" = set; then
13485 echo $ECHO_N "(cached) $ECHO_C" >&6
13486else
13487 cat >conftest.$ac_ext <<_ACEOF
13488/* confdefs.h. */
13489_ACEOF
13490cat confdefs.h >>conftest.$ac_ext
13491cat >>conftest.$ac_ext <<_ACEOF
13492/* end confdefs.h. */
13493/* Define nlist to an innocuous variant, in case <limits.h> declares nlist.
13494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13495#define nlist innocuous_nlist
13496
13497/* System header to define __stub macros and hopefully few prototypes,
13498 which can conflict with char nlist (); below.
13499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13500 <limits.h> exists even on freestanding compilers. */
13501
13502#ifdef __STDC__
13503# include <limits.h>
13504#else
13505# include <assert.h>
13506#endif
13507
13508#undef nlist
13509
631ef239
AC
13510/* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
212380e3
AC
13513#ifdef __cplusplus
13514extern "C"
212380e3 13515#endif
212380e3
AC
13516char nlist ();
13517/* The GNU C library defines this for functions which it implements
13518 to always fail with ENOSYS. Some functions are actually named
13519 something starting with __ and the normal name is an alias. */
631ef239 13520#if defined __stub_nlist || defined __stub___nlist
212380e3 13521choke me
212380e3
AC
13522#endif
13523
13524int
13525main ()
13526{
631ef239 13527return nlist ();
212380e3
AC
13528 ;
13529 return 0;
13530}
13531_ACEOF
13532rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
13533if { (ac_try="$ac_link"
13534case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>conftest.er1
212380e3
AC
13540 ac_status=$?
13541 grep -v '^ *+' conftest.er1 >conftest.err
13542 rm -f conftest.er1
13543 cat conftest.err >&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13545 (exit $ac_status); } && {
13546 test -z "$ac_c_werror_flag" ||
13547 test ! -s conftest.err
13548 } && test -s conftest$ac_exeext &&
13549 $as_test_x conftest$ac_exeext; then
212380e3
AC
13550 ac_cv_func_nlist=yes
13551else
13552 echo "$as_me: failed program was:" >&5
13553sed 's/^/| /' conftest.$ac_ext >&5
13554
631ef239 13555 ac_cv_func_nlist=no
212380e3 13556fi
631ef239
AC
13557
13558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
13559 conftest$ac_exeext conftest.$ac_ext
13560fi
631ef239
AC
13561{ echo "$as_me:$LINENO: result: $ac_cv_func_nlist" >&5
13562echo "${ECHO_T}$ac_cv_func_nlist" >&6; }
212380e3
AC
13563if test $ac_cv_func_nlist = yes; then
13564 :
13565else
631ef239
AC
13566 { echo "$as_me:$LINENO: checking for nlist in -ldl" >&5
13567echo $ECHO_N "checking for nlist in -ldl... $ECHO_C" >&6; }
212380e3
AC
13568if test "${ac_cv_lib_dl_nlist+set}" = set; then
13569 echo $ECHO_N "(cached) $ECHO_C" >&6
13570else
13571 ac_check_lib_save_LIBS=$LIBS
13572LIBS="-ldl $LIBS"
13573cat >conftest.$ac_ext <<_ACEOF
13574/* confdefs.h. */
13575_ACEOF
13576cat confdefs.h >>conftest.$ac_ext
13577cat >>conftest.$ac_ext <<_ACEOF
13578/* end confdefs.h. */
13579
631ef239
AC
13580/* Override any GCC internal prototype to avoid an error.
13581 Use char because int might match the return type of a GCC
13582 builtin and then its argument prototype would still apply. */
212380e3
AC
13583#ifdef __cplusplus
13584extern "C"
13585#endif
212380e3
AC
13586char nlist ();
13587int
13588main ()
13589{
631ef239 13590return nlist ();
212380e3
AC
13591 ;
13592 return 0;
13593}
13594_ACEOF
13595rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
13596if { (ac_try="$ac_link"
13597case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600esac
13601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_link") 2>conftest.er1
212380e3
AC
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13608 (exit $ac_status); } && {
13609 test -z "$ac_c_werror_flag" ||
13610 test ! -s conftest.err
13611 } && test -s conftest$ac_exeext &&
13612 $as_test_x conftest$ac_exeext; then
212380e3
AC
13613 ac_cv_lib_dl_nlist=yes
13614else
13615 echo "$as_me: failed program was:" >&5
13616sed 's/^/| /' conftest.$ac_ext >&5
13617
631ef239 13618 ac_cv_lib_dl_nlist=no
212380e3 13619fi
631ef239
AC
13620
13621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
13622 conftest$ac_exeext conftest.$ac_ext
13623LIBS=$ac_check_lib_save_LIBS
13624fi
631ef239
AC
13625{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_nlist" >&5
13626echo "${ECHO_T}$ac_cv_lib_dl_nlist" >&6; }
212380e3
AC
13627if test $ac_cv_lib_dl_nlist = yes; then
13628 nlist_lib="-ldl"
13629else
631ef239
AC
13630 { echo "$as_me:$LINENO: checking for nlist in -lelf" >&5
13631echo $ECHO_N "checking for nlist in -lelf... $ECHO_C" >&6; }
212380e3
AC
13632if test "${ac_cv_lib_elf_nlist+set}" = set; then
13633 echo $ECHO_N "(cached) $ECHO_C" >&6
13634else
13635 ac_check_lib_save_LIBS=$LIBS
13636LIBS="-lelf $LIBS"
13637cat >conftest.$ac_ext <<_ACEOF
13638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
13643
631ef239
AC
13644/* Override any GCC internal prototype to avoid an error.
13645 Use char because int might match the return type of a GCC
13646 builtin and then its argument prototype would still apply. */
212380e3
AC
13647#ifdef __cplusplus
13648extern "C"
13649#endif
212380e3
AC
13650char nlist ();
13651int
13652main ()
13653{
631ef239 13654return nlist ();
212380e3
AC
13655 ;
13656 return 0;
13657}
13658_ACEOF
13659rm -f conftest.$ac_objext conftest$ac_exeext
631ef239
AC
13660if { (ac_try="$ac_link"
13661case "(($ac_try" in
13662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13663 *) ac_try_echo=$ac_try;;
13664esac
13665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13666 (eval "$ac_link") 2>conftest.er1
212380e3
AC
13667 ac_status=$?
13668 grep -v '^ *+' conftest.er1 >conftest.err
13669 rm -f conftest.er1
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13672 (exit $ac_status); } && {
13673 test -z "$ac_c_werror_flag" ||
13674 test ! -s conftest.err
13675 } && test -s conftest$ac_exeext &&
13676 $as_test_x conftest$ac_exeext; then
212380e3
AC
13677 ac_cv_lib_elf_nlist=yes
13678else
13679 echo "$as_me: failed program was:" >&5
13680sed 's/^/| /' conftest.$ac_ext >&5
13681
631ef239 13682 ac_cv_lib_elf_nlist=no
212380e3 13683fi
631ef239
AC
13684
13685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
212380e3
AC
13686 conftest$ac_exeext conftest.$ac_ext
13687LIBS=$ac_check_lib_save_LIBS
13688fi
631ef239
AC
13689{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_nlist" >&5
13690echo "${ECHO_T}$ac_cv_lib_elf_nlist" >&6; }
212380e3
AC
13691if test $ac_cv_lib_elf_nlist = yes; then
13692 nlist_lib="-lelf"
13693fi
13694
13695
13696fi
13697
13698
13699fi
13700
13701
13702 if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
631ef239
AC
13703 { echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13704echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
212380e3
AC
13705if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13707fi
631ef239
AC
13708{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13709echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
212380e3
AC
13710else
13711 # Is the header compilable?
631ef239
AC
13712{ echo "$as_me:$LINENO: checking libelf/nlist.h usability" >&5
13713echo $ECHO_N "checking libelf/nlist.h usability... $ECHO_C" >&6; }
212380e3
AC
13714cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h. */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h. */
13720$ac_includes_default
13721#include <libelf/nlist.h>
13722_ACEOF
13723rm -f conftest.$ac_objext
631ef239
AC
13724if { (ac_try="$ac_compile"
13725case "(($ac_try" in
13726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727 *) ac_try_echo=$ac_try;;
13728esac
13729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13731 ac_status=$?
13732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
13735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13736 (exit $ac_status); } && {
13737 test -z "$ac_c_werror_flag" ||
13738 test ! -s conftest.err
13739 } && test -s conftest.$ac_objext; then
212380e3
AC
13740 ac_header_compiler=yes
13741else
13742 echo "$as_me: failed program was:" >&5
13743sed 's/^/| /' conftest.$ac_ext >&5
13744
631ef239 13745 ac_header_compiler=no
212380e3 13746fi
631ef239
AC
13747
13748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3
AC
13751
13752# Is the header present?
631ef239
AC
13753{ echo "$as_me:$LINENO: checking libelf/nlist.h presence" >&5
13754echo $ECHO_N "checking libelf/nlist.h presence... $ECHO_C" >&6; }
212380e3
AC
13755cat >conftest.$ac_ext <<_ACEOF
13756/* confdefs.h. */
13757_ACEOF
13758cat confdefs.h >>conftest.$ac_ext
13759cat >>conftest.$ac_ext <<_ACEOF
13760/* end confdefs.h. */
13761#include <libelf/nlist.h>
13762_ACEOF
631ef239
AC
13763if { (ac_try="$ac_cpp conftest.$ac_ext"
13764case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13767esac
13768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3
AC
13770 ac_status=$?
13771 grep -v '^ *+' conftest.er1 >conftest.err
13772 rm -f conftest.er1
13773 cat conftest.err >&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13775 (exit $ac_status); } >/dev/null && {
13776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13777 test ! -s conftest.err
13778 }; then
212380e3
AC
13779 ac_header_preproc=yes
13780else
13781 echo "$as_me: failed program was:" >&5
13782sed 's/^/| /' conftest.$ac_ext >&5
13783
13784 ac_header_preproc=no
13785fi
631ef239 13786
212380e3 13787rm -f conftest.err conftest.$ac_ext
631ef239
AC
13788{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13789echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
13790
13791# So? What about this header?
13792case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13793 yes:no: )
13794 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13795echo "$as_me: WARNING: libelf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13796 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&5
13797echo "$as_me: WARNING: libelf/nlist.h: proceeding with the compiler's result" >&2;}
13798 ac_header_preproc=yes
13799 ;;
13800 no:yes:* )
13801 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: present but cannot be compiled" >&5
13802echo "$as_me: WARNING: libelf/nlist.h: present but cannot be compiled" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&5
13804echo "$as_me: WARNING: libelf/nlist.h: check for missing prerequisite headers?" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: see the Autoconf documentation" >&5
13806echo "$as_me: WARNING: libelf/nlist.h: see the Autoconf documentation" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13808echo "$as_me: WARNING: libelf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&5
13810echo "$as_me: WARNING: libelf/nlist.h: proceeding with the preprocessor's result" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&5
13812echo "$as_me: WARNING: libelf/nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13813
212380e3
AC
13814 ;;
13815esac
631ef239
AC
13816{ echo "$as_me:$LINENO: checking for libelf/nlist.h" >&5
13817echo $ECHO_N "checking for libelf/nlist.h... $ECHO_C" >&6; }
212380e3
AC
13818if test "${ac_cv_header_libelf_nlist_h+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
13821 ac_cv_header_libelf_nlist_h=$ac_header_preproc
13822fi
631ef239
AC
13823{ echo "$as_me:$LINENO: result: $ac_cv_header_libelf_nlist_h" >&5
13824echo "${ECHO_T}$ac_cv_header_libelf_nlist_h" >&6; }
212380e3
AC
13825
13826fi
13827if test $ac_cv_header_libelf_nlist_h = yes; then
13828 nlist_h="libelf/nlist.h"
13829fi
13830
13831
13832 if test "${ac_cv_header_elf_nlist_h+set}" = set; then
631ef239
AC
13833 { echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13834echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
212380e3
AC
13835if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837fi
631ef239
AC
13838{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13839echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
212380e3
AC
13840else
13841 # Is the header compilable?
631ef239
AC
13842{ echo "$as_me:$LINENO: checking elf/nlist.h usability" >&5
13843echo $ECHO_N "checking elf/nlist.h usability... $ECHO_C" >&6; }
212380e3
AC
13844cat >conftest.$ac_ext <<_ACEOF
13845/* confdefs.h. */
13846_ACEOF
13847cat confdefs.h >>conftest.$ac_ext
13848cat >>conftest.$ac_ext <<_ACEOF
13849/* end confdefs.h. */
13850$ac_includes_default
13851#include <elf/nlist.h>
13852_ACEOF
13853rm -f conftest.$ac_objext
631ef239
AC
13854if { (ac_try="$ac_compile"
13855case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858esac
13859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13866 (exit $ac_status); } && {
13867 test -z "$ac_c_werror_flag" ||
13868 test ! -s conftest.err
13869 } && test -s conftest.$ac_objext; then
212380e3
AC
13870 ac_header_compiler=yes
13871else
13872 echo "$as_me: failed program was:" >&5
13873sed 's/^/| /' conftest.$ac_ext >&5
13874
631ef239 13875 ac_header_compiler=no
212380e3 13876fi
631ef239
AC
13877
13878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13879{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13880echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3
AC
13881
13882# Is the header present?
631ef239
AC
13883{ echo "$as_me:$LINENO: checking elf/nlist.h presence" >&5
13884echo $ECHO_N "checking elf/nlist.h presence... $ECHO_C" >&6; }
212380e3
AC
13885cat >conftest.$ac_ext <<_ACEOF
13886/* confdefs.h. */
13887_ACEOF
13888cat confdefs.h >>conftest.$ac_ext
13889cat >>conftest.$ac_ext <<_ACEOF
13890/* end confdefs.h. */
13891#include <elf/nlist.h>
13892_ACEOF
631ef239
AC
13893if { (ac_try="$ac_cpp conftest.$ac_ext"
13894case "(($ac_try" in
13895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13897esac
13898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3
AC
13900 ac_status=$?
13901 grep -v '^ *+' conftest.er1 >conftest.err
13902 rm -f conftest.er1
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13905 (exit $ac_status); } >/dev/null && {
13906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13907 test ! -s conftest.err
13908 }; then
212380e3
AC
13909 ac_header_preproc=yes
13910else
13911 echo "$as_me: failed program was:" >&5
13912sed 's/^/| /' conftest.$ac_ext >&5
13913
13914 ac_header_preproc=no
13915fi
631ef239 13916
212380e3 13917rm -f conftest.err conftest.$ac_ext
631ef239
AC
13918{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13919echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
13920
13921# So? What about this header?
13922case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13923 yes:no: )
13924 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
13925echo "$as_me: WARNING: elf/nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13926 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the compiler's result" >&5
13927echo "$as_me: WARNING: elf/nlist.h: proceeding with the compiler's result" >&2;}
13928 ac_header_preproc=yes
13929 ;;
13930 no:yes:* )
13931 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: present but cannot be compiled" >&5
13932echo "$as_me: WARNING: elf/nlist.h: present but cannot be compiled" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&5
13934echo "$as_me: WARNING: elf/nlist.h: check for missing prerequisite headers?" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: see the Autoconf documentation" >&5
13936echo "$as_me: WARNING: elf/nlist.h: see the Autoconf documentation" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&5
13938echo "$as_me: WARNING: elf/nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&5
13940echo "$as_me: WARNING: elf/nlist.h: proceeding with the preprocessor's result" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&5
13942echo "$as_me: WARNING: elf/nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 13943
212380e3
AC
13944 ;;
13945esac
631ef239
AC
13946{ echo "$as_me:$LINENO: checking for elf/nlist.h" >&5
13947echo $ECHO_N "checking for elf/nlist.h... $ECHO_C" >&6; }
212380e3
AC
13948if test "${ac_cv_header_elf_nlist_h+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950else
13951 ac_cv_header_elf_nlist_h=$ac_header_preproc
13952fi
631ef239
AC
13953{ echo "$as_me:$LINENO: result: $ac_cv_header_elf_nlist_h" >&5
13954echo "${ECHO_T}$ac_cv_header_elf_nlist_h" >&6; }
212380e3
AC
13955
13956fi
13957if test $ac_cv_header_elf_nlist_h = yes; then
13958 nlist_h="elf/nlist.h"
13959fi
13960
13961
13962 if test "${ac_cv_header_nlist_h+set}" = set; then
631ef239
AC
13963 { echo "$as_me:$LINENO: checking for nlist.h" >&5
13964echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
212380e3
AC
13965if test "${ac_cv_header_nlist_h+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967fi
631ef239
AC
13968{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
13969echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
212380e3
AC
13970else
13971 # Is the header compilable?
631ef239
AC
13972{ echo "$as_me:$LINENO: checking nlist.h usability" >&5
13973echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6; }
212380e3
AC
13974cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980$ac_includes_default
13981#include <nlist.h>
13982_ACEOF
13983rm -f conftest.$ac_objext
631ef239
AC
13984if { (ac_try="$ac_compile"
13985case "(($ac_try" in
13986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987 *) ac_try_echo=$ac_try;;
13988esac
13989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990 (eval "$ac_compile") 2>conftest.er1
212380e3
AC
13991 ac_status=$?
13992 grep -v '^ *+' conftest.er1 >conftest.err
13993 rm -f conftest.er1
13994 cat conftest.err >&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
13996 (exit $ac_status); } && {
13997 test -z "$ac_c_werror_flag" ||
13998 test ! -s conftest.err
13999 } && test -s conftest.$ac_objext; then
212380e3
AC
14000 ac_header_compiler=yes
14001else
14002 echo "$as_me: failed program was:" >&5
14003sed 's/^/| /' conftest.$ac_ext >&5
14004
631ef239 14005 ac_header_compiler=no
212380e3 14006fi
631ef239
AC
14007
14008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14010echo "${ECHO_T}$ac_header_compiler" >&6; }
212380e3
AC
14011
14012# Is the header present?
631ef239
AC
14013{ echo "$as_me:$LINENO: checking nlist.h presence" >&5
14014echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6; }
212380e3
AC
14015cat >conftest.$ac_ext <<_ACEOF
14016/* confdefs.h. */
14017_ACEOF
14018cat confdefs.h >>conftest.$ac_ext
14019cat >>conftest.$ac_ext <<_ACEOF
14020/* end confdefs.h. */
14021#include <nlist.h>
14022_ACEOF
631ef239
AC
14023if { (ac_try="$ac_cpp conftest.$ac_ext"
14024case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027esac
14028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
212380e3
AC
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
631ef239
AC
14035 (exit $ac_status); } >/dev/null && {
14036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14038 }; then
212380e3
AC
14039 ac_header_preproc=yes
14040else
14041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ac_header_preproc=no
14045fi
631ef239 14046
212380e3 14047rm -f conftest.err conftest.$ac_ext
631ef239
AC
14048{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14049echo "${ECHO_T}$ac_header_preproc" >&6; }
212380e3
AC
14050
14051# So? What about this header?
14052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14053 yes:no: )
14054 { echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
14055echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the compiler's result" >&5
14057echo "$as_me: WARNING: nlist.h: proceeding with the compiler's result" >&2;}
14058 ac_header_preproc=yes
14059 ;;
14060 no:yes:* )
14061 { echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
14062echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
14063 { echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
14064echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: nlist.h: see the Autoconf documentation" >&5
14066echo "$as_me: WARNING: nlist.h: see the Autoconf documentation" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&5
14068echo "$as_me: WARNING: nlist.h: section \"Present But Cannot Be Compiled\"" >&2;}
14069 { echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
14070echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
14071 { echo "$as_me:$LINENO: WARNING: nlist.h: in the future, the compiler will take precedence" >&5
14072echo "$as_me: WARNING: nlist.h: in the future, the compiler will take precedence" >&2;}
631ef239 14073
212380e3
AC
14074 ;;
14075esac
631ef239
AC
14076{ echo "$as_me:$LINENO: checking for nlist.h" >&5
14077echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6; }
212380e3
AC
14078if test "${ac_cv_header_nlist_h+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14080else
14081 ac_cv_header_nlist_h=$ac_header_preproc
14082fi
631ef239
AC
14083{ echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
14084echo "${ECHO_T}$ac_cv_header_nlist_h" >&6; }
212380e3
AC
14085
14086fi
14087if test $ac_cv_header_nlist_h = yes; then
14088 nlist_h="nlist.h"
14089fi
14090
14091
14092 if test x"$nlist_h" = "x"; then
14093
14094cat >>confdefs.h <<_ACEOF
14095#define SYMBOL_PREFIX ""
14096_ACEOF
14097
14098 else
631ef239
AC
14099 { echo "$as_me:$LINENO: checking for extra underscores prepended to symbol names" >&5
14100echo $ECHO_N "checking for extra underscores prepended to symbol names... $ECHO_C" >&6; }
212380e3
AC
14101 if test "${symbol_underscores+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103else
14104
14105cat << EOF > conftest.c
14106#include <$nlist_h>
14107#include <stdio.h>
14108#include <stdlib.h>
14109void _modinit(void);
14110int main(int argc, char *argv[]) {
14111 int i;
14112 struct nlist nl[5];
14113
14114 /* fill the names in this way, so it'll work almost everywhere */
14115 nl[0].n_name = "_modinit";
14116 nl[1].n_name = "__modinit";
14117 nl[2].n_name = "___modinit";
14118 nl[3].n_name = "____modinit";
14119 nl[0].n_value = nl[1].n_value = nl[2].n_value = nl[3].n_value = nl[4].n_name = NULL;
14120
14121 if(argc < 2 || (nlist(argv[1], nl)) == -1) exit(-1);
14122 for(i = 0; i < 4; i++) {
14123 if(nl[i].n_value != NULL)
14124 {
14125 int j;
14126 for(j = 0; j < i; j++)
14127 printf("_");
14128 exit(i);
14129 }
14130 }
14131 exit(-1);
14132}
14133void _modinit(void) { return; }
14134EOF
14135 $CC $CPPFLAGS $IRC_CFLAGS -o conftest conftest.c $nlist_lib >/dev/null 2>&1
14136 symbol_underscores=`./conftest conftest`
631ef239
AC
14137 { echo "$as_me:$LINENO: result: $symbol_underscores" >&5
14138echo "${ECHO_T}$symbol_underscores" >&6; }
212380e3
AC
14139 $RM -f conftest conftest.c
14140
14141fi
14142
14143
14144cat >>confdefs.h <<_ACEOF
14145#define SYMBOL_PREFIX "${symbol_underscores}"
14146_ACEOF
14147
14148 fi
14149fi
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164if test "$prefix" = "NONE"; then
14165
14166cat >>confdefs.h <<_ACEOF
14167#define IRCD_PREFIX "$ac_default_prefix"
14168_ACEOF
14169
14170
14171else
14172
14173
14174 prefix=`echo $prefix | sed 's/\/$//'`
14175
14176cat >>confdefs.h <<_ACEOF
14177#define IRCD_PREFIX "$prefix"
14178_ACEOF
14179
14180
14181fi
14182
954012d3 14183ac_config_files="$ac_config_files Makefile servlink/Makefile extensions/Makefile unsupported/Makefile src/Makefile modules/Makefile tools/Makefile doc/Makefile help/Makefile"
212380e3
AC
14184
14185
14186cat >confcache <<\_ACEOF
14187# This file is a shell script that caches the results of configure
14188# tests run on this system so they can be shared between configure
14189# scripts and configure runs, see configure's option --config-cache.
14190# It is not useful on other systems. If it contains results you don't
14191# want to keep, you may remove or edit it.
14192#
14193# config.status only pays attention to the cache file if you give it
14194# the --recheck option to rerun configure.
14195#
14196# `ac_cv_env_foo' variables (set or unset) will be overridden when
14197# loading this file, other *unset* `ac_cv_foo' will be assigned the
14198# following values.
14199
14200_ACEOF
14201
14202# The following way of writing the cache mishandles newlines in values,
14203# but we know of no workaround that is simple, portable, and efficient.
631ef239 14204# So, we kill variables containing newlines.
212380e3
AC
14205# Ultrix sh set writes to stderr and can't be redirected directly,
14206# and sets the high bit in the cache file unless we assign to the vars.
631ef239
AC
14207(
14208 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14209 eval ac_val=\$$ac_var
14210 case $ac_val in #(
14211 *${as_nl}*)
14212 case $ac_var in #(
14213 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14214echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14215 esac
14216 case $ac_var in #(
14217 _ | IFS | as_nl) ;; #(
14218 *) $as_unset $ac_var ;;
14219 esac ;;
14220 esac
14221 done
14222
212380e3 14223 (set) 2>&1 |
631ef239
AC
14224 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14225 *${as_nl}ac_space=\ *)
212380e3
AC
14226 # `set' does not quote correctly, so add quotes (double-quote
14227 # substitution turns \\\\ into \\, and sed turns \\ into \).
14228 sed -n \
14229 "s/'/'\\\\''/g;
14230 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
631ef239 14231 ;; #(
212380e3
AC
14232 *)
14233 # `set' quotes correctly as required by POSIX, so do not add quotes.
631ef239 14234 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
212380e3 14235 ;;
631ef239
AC
14236 esac |
14237 sort
14238) |
212380e3 14239 sed '
631ef239 14240 /^ac_cv_env_/b end
212380e3 14241 t clear
631ef239 14242 :clear
212380e3
AC
14243 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14244 t end
631ef239
AC
14245 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14246 :end' >>confcache
14247if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14248 if test -w "$cache_file"; then
14249 test "x$cache_file" != "x/dev/null" &&
14250 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
14251echo "$as_me: updating cache $cache_file" >&6;}
212380e3
AC
14252 cat confcache >$cache_file
14253 else
631ef239
AC
14254 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
14255echo "$as_me: not updating unwritable cache $cache_file" >&6;}
212380e3
AC
14256 fi
14257fi
14258rm -f confcache
14259
14260test "x$prefix" = xNONE && prefix=$ac_default_prefix
14261# Let make expand exec_prefix.
14262test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14263
212380e3
AC
14264DEFS=-DHAVE_CONFIG_H
14265
14266ac_libobjs=
14267ac_ltlibobjs=
14268for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14269 # 1. Remove the extension, and $U if already installed.
631ef239
AC
14270 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14271 ac_i=`echo "$ac_i" | sed "$ac_script"`
14272 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14273 # will be set to the directory where LIBOBJS objects are built.
14274 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14275 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
212380e3
AC
14276done
14277LIBOBJS=$ac_libobjs
14278
14279LTLIBOBJS=$ac_ltlibobjs
14280
14281
14282
14283: ${CONFIG_STATUS=./config.status}
14284ac_clean_files_save=$ac_clean_files
14285ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14286{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14287echo "$as_me: creating $CONFIG_STATUS" >&6;}
14288cat >$CONFIG_STATUS <<_ACEOF
14289#! $SHELL
14290# Generated by $as_me.
14291# Run this file to recreate the current configuration.
14292# Compiler output produced by configure, useful for debugging
14293# configure, is in config.log if it exists.
14294
14295debug=false
14296ac_cs_recheck=false
14297ac_cs_silent=false
14298SHELL=\${CONFIG_SHELL-$SHELL}
14299_ACEOF
14300
14301cat >>$CONFIG_STATUS <<\_ACEOF
14302## --------------------- ##
14303## M4sh Initialization. ##
14304## --------------------- ##
14305
631ef239
AC
14306# Be more Bourne compatible
14307DUALCASE=1; export DUALCASE # for MKS sh
212380e3
AC
14308if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14309 emulate sh
14310 NULLCMD=:
14311 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14312 # is contrary to our usage. Disable this feature.
14313 alias -g '${1+"$@"}'='"$@"'
631ef239 14314 setopt NO_GLOB_SUBST
212380e3 14315else
631ef239
AC
14316 case `(set -o) 2>/dev/null` in
14317 *posix*) set -o posix ;;
14318esac
14319
212380e3
AC
14320fi
14321
14322
631ef239
AC
14323
14324
14325# PATH needs CR
14326# Avoid depending upon Character Ranges.
14327as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14328as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14329as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14330as_cr_digits='0123456789'
14331as_cr_alnum=$as_cr_Letters$as_cr_digits
14332
14333# The user is always right.
14334if test "${PATH_SEPARATOR+set}" != set; then
14335 echo "#! /bin/sh" >conf$$.sh
14336 echo "exit 0" >>conf$$.sh
14337 chmod +x conf$$.sh
14338 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14339 PATH_SEPARATOR=';'
14340 else
14341 PATH_SEPARATOR=:
14342 fi
14343 rm -f conf$$.sh
14344fi
14345
14346# Support unset when possible.
14347if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14348 as_unset=unset
14349else
14350 as_unset=false
14351fi
14352
14353
14354# IFS
14355# We need space, tab and new line, in precisely that order. Quoting is
14356# there to prevent editors from complaining about space-tab.
14357# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14358# splitting by setting IFS to empty value.)
14359as_nl='
14360'
14361IFS=" "" $as_nl"
14362
14363# Find who we are. Look in the path if we contain no directory separator.
14364case $0 in
14365 *[\\/]* ) as_myself=$0 ;;
14366 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14367for as_dir in $PATH
14368do
14369 IFS=$as_save_IFS
14370 test -z "$as_dir" && as_dir=.
14371 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14372done
14373IFS=$as_save_IFS
14374
14375 ;;
14376esac
14377# We did not find ourselves, most probably we were run as `sh COMMAND'
14378# in which case we are not to be found in the path.
14379if test "x$as_myself" = x; then
14380 as_myself=$0
14381fi
14382if test ! -f "$as_myself"; then
14383 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14384 { (exit 1); exit 1; }
14385fi
14386
212380e3 14387# Work around bugs in pre-3.0 UWIN ksh.
631ef239
AC
14388for as_var in ENV MAIL MAILPATH
14389do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14390done
212380e3
AC
14391PS1='$ '
14392PS2='> '
14393PS4='+ '
14394
14395# NLS nuisances.
14396for as_var in \
14397 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14398 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14399 LC_TELEPHONE LC_TIME
14400do
14401 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14402 eval $as_var=C; export $as_var
14403 else
631ef239 14404 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
212380e3
AC
14405 fi
14406done
14407
14408# Required to use basename.
631ef239
AC
14409if expr a : '\(a\)' >/dev/null 2>&1 &&
14410 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
14411 as_expr=expr
14412else
14413 as_expr=false
14414fi
14415
631ef239 14416if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
212380e3
AC
14417 as_basename=basename
14418else
14419 as_basename=false
14420fi
14421
14422
14423# Name of the executable.
631ef239 14424as_me=`$as_basename -- "$0" ||
212380e3
AC
14425$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14426 X"$0" : 'X\(//\)$' \| \
631ef239 14427 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 14428echo X/"$0" |
631ef239
AC
14429 sed '/^.*\/\([^/][^/]*\)\/*$/{
14430 s//\1/
14431 q
14432 }
14433 /^X\/\(\/\/\)$/{
14434 s//\1/
14435 q
14436 }
14437 /^X\/\(\/\).*/{
14438 s//\1/
14439 q
14440 }
14441 s/.*/./; q'`
212380e3 14442
631ef239
AC
14443# CDPATH.
14444$as_unset CDPATH
212380e3 14445
212380e3
AC
14446
14447
14448 as_lineno_1=$LINENO
14449 as_lineno_2=$LINENO
212380e3 14450 test "x$as_lineno_1" != "x$as_lineno_2" &&
631ef239 14451 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
212380e3
AC
14452
14453 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14454 # uniformly replaced by the line number. The first 'sed' inserts a
631ef239
AC
14455 # line-number line after each line using $LINENO; the second 'sed'
14456 # does the real work. The second script uses 'N' to pair each
14457 # line-number line with the line containing $LINENO, and appends
14458 # trailing '-' during substitution so that $LINENO is not a special
14459 # case at line end.
212380e3 14460 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
631ef239
AC
14461 # scripts with optimization help from Paolo Bonzini. Blame Lee
14462 # E. McMahon (1931-1989) for sed's syntax. :-)
14463 sed -n '
14464 p
14465 /[$]LINENO/=
14466 ' <$as_myself |
212380e3 14467 sed '
631ef239
AC
14468 s/[$]LINENO.*/&-/
14469 t lineno
14470 b
14471 :lineno
212380e3 14472 N
631ef239
AC
14473 :loop
14474 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
212380e3 14475 t loop
631ef239 14476 s/-\n.*//
212380e3 14477 ' >$as_me.lineno &&
631ef239
AC
14478 chmod +x "$as_me.lineno" ||
14479 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
212380e3
AC
14480 { (exit 1); exit 1; }; }
14481
14482 # Don't try to exec as it changes $[0], causing all sort of problems
14483 # (the dirname of $[0] is not the place where we might find the
631ef239
AC
14484 # original and so on. Autoconf is especially sensitive to this).
14485 . "./$as_me.lineno"
212380e3
AC
14486 # Exit status is that of the last command.
14487 exit
14488}
14489
14490
631ef239
AC
14491if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14492 as_dirname=dirname
14493else
14494 as_dirname=false
14495fi
14496
14497ECHO_C= ECHO_N= ECHO_T=
14498case `echo -n x` in
14499-n*)
14500 case `echo 'x\c'` in
14501 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14502 *) ECHO_C='\c';;
14503 esac;;
14504*)
14505 ECHO_N='-n';;
212380e3
AC
14506esac
14507
631ef239
AC
14508if expr a : '\(a\)' >/dev/null 2>&1 &&
14509 test "X`expr 00001 : '.*\(...\)'`" = X001; then
212380e3
AC
14510 as_expr=expr
14511else
14512 as_expr=false
14513fi
14514
14515rm -f conf$$ conf$$.exe conf$$.file
631ef239
AC
14516if test -d conf$$.dir; then
14517 rm -f conf$$.dir/conf$$.file
14518else
14519 rm -f conf$$.dir
14520 mkdir conf$$.dir
14521fi
212380e3
AC
14522echo >conf$$.file
14523if ln -s conf$$.file conf$$ 2>/dev/null; then
631ef239
AC
14524 as_ln_s='ln -s'
14525 # ... but there are two gotchas:
14526 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14527 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14528 # In both cases, we have to default to `cp -p'.
14529 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
212380e3 14530 as_ln_s='cp -p'
212380e3
AC
14531elif ln conf$$.file conf$$ 2>/dev/null; then
14532 as_ln_s=ln
14533else
14534 as_ln_s='cp -p'
14535fi
631ef239
AC
14536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14537rmdir conf$$.dir 2>/dev/null
212380e3
AC
14538
14539if mkdir -p . 2>/dev/null; then
14540 as_mkdir_p=:
14541else
14542 test -d ./-p && rmdir ./-p
14543 as_mkdir_p=false
14544fi
14545
631ef239
AC
14546if test -x / >/dev/null 2>&1; then
14547 as_test_x='test -x'
14548else
14549 if ls -dL / >/dev/null 2>&1; then
14550 as_ls_L_option=L
14551 else
14552 as_ls_L_option=
14553 fi
14554 as_test_x='
14555 eval sh -c '\''
14556 if test -d "$1"; then
14557 test -d "$1/.";
14558 else
14559 case $1 in
14560 -*)set "./$1";;
14561 esac;
14562 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14563 ???[sx]*):;;*)false;;esac;fi
14564 '\'' sh
14565 '
14566fi
14567as_executable_p=$as_test_x
212380e3
AC
14568
14569# Sed expression to map a string onto a valid CPP name.
14570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14571
14572# Sed expression to map a string onto a valid variable name.
14573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14574
14575
212380e3
AC
14576exec 6>&1
14577
631ef239 14578# Save the log message, to keep $[0] and so on meaningful, and to
212380e3 14579# report actual input values of CONFIG_FILES etc. instead of their
631ef239
AC
14580# values after options handling.
14581ac_log="
b676ea3b 14582This file was extended by charybdis $as_me 2.3.0, which was
631ef239 14583generated by GNU Autoconf 2.61. Invocation command line was
212380e3
AC
14584
14585 CONFIG_FILES = $CONFIG_FILES
14586 CONFIG_HEADERS = $CONFIG_HEADERS
14587 CONFIG_LINKS = $CONFIG_LINKS
14588 CONFIG_COMMANDS = $CONFIG_COMMANDS
14589 $ $0 $@
14590
631ef239
AC
14591on `(hostname || uname -n) 2>/dev/null | sed 1q`
14592"
14593
212380e3
AC
14594_ACEOF
14595
631ef239 14596cat >>$CONFIG_STATUS <<_ACEOF
212380e3 14597# Files that config.status was made for.
631ef239
AC
14598config_files="$ac_config_files"
14599config_headers="$ac_config_headers"
212380e3 14600
631ef239 14601_ACEOF
212380e3
AC
14602
14603cat >>$CONFIG_STATUS <<\_ACEOF
212380e3
AC
14604ac_cs_usage="\
14605\`$as_me' instantiates files from templates according to the
14606current configuration.
14607
14608Usage: $0 [OPTIONS] [FILE]...
14609
14610 -h, --help print this help, then exit
631ef239 14611 -V, --version print version number and configuration settings, then exit
212380e3
AC
14612 -q, --quiet do not print progress messages
14613 -d, --debug don't remove temporary files
14614 --recheck update $as_me by reconfiguring in the same conditions
14615 --file=FILE[:TEMPLATE]
14616 instantiate the configuration file FILE
14617 --header=FILE[:TEMPLATE]
14618 instantiate the configuration header FILE
14619
14620Configuration files:
14621$config_files
14622
14623Configuration headers:
14624$config_headers
14625
14626Report bugs to <bug-autoconf@gnu.org>."
212380e3 14627
631ef239 14628_ACEOF
212380e3
AC
14629cat >>$CONFIG_STATUS <<_ACEOF
14630ac_cs_version="\\
b676ea3b 14631charybdis config.status 2.3.0
631ef239
AC
14632configured by $0, generated by GNU Autoconf 2.61,
14633 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
212380e3 14634
631ef239 14635Copyright (C) 2006 Free Software Foundation, Inc.
212380e3
AC
14636This config.status script is free software; the Free Software Foundation
14637gives unlimited permission to copy, distribute and modify it."
631ef239
AC
14638
14639ac_pwd='$ac_pwd'
14640srcdir='$srcdir'
14641INSTALL='$INSTALL'
212380e3
AC
14642_ACEOF
14643
14644cat >>$CONFIG_STATUS <<\_ACEOF
14645# If no file are specified by the user, then we need to provide default
14646# value. By we need to know if files were specified by the user.
14647ac_need_defaults=:
14648while test $# != 0
14649do
14650 case $1 in
14651 --*=*)
631ef239
AC
14652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
212380e3
AC
14654 ac_shift=:
14655 ;;
631ef239 14656 *)
212380e3
AC
14657 ac_option=$1
14658 ac_optarg=$2
14659 ac_shift=shift
14660 ;;
212380e3
AC
14661 esac
14662
14663 case $ac_option in
14664 # Handling of the options.
212380e3
AC
14665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14666 ac_cs_recheck=: ;;
631ef239
AC
14667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14668 echo "$ac_cs_version"; exit ;;
14669 --debug | --debu | --deb | --de | --d | -d )
212380e3
AC
14670 debug=: ;;
14671 --file | --fil | --fi | --f )
14672 $ac_shift
14673 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14674 ac_need_defaults=false;;
14675 --header | --heade | --head | --hea )
14676 $ac_shift
14677 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14678 ac_need_defaults=false;;
631ef239
AC
14679 --he | --h)
14680 # Conflict between --help and --header
14681 { echo "$as_me: error: ambiguous option: $1
14682Try \`$0 --help' for more information." >&2
14683 { (exit 1); exit 1; }; };;
14684 --help | --hel | -h )
14685 echo "$ac_cs_usage"; exit ;;
212380e3
AC
14686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14687 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14688 ac_cs_silent=: ;;
14689
14690 # This is an error.
631ef239
AC
14691 -*) { echo "$as_me: error: unrecognized option: $1
14692Try \`$0 --help' for more information." >&2
212380e3
AC
14693 { (exit 1); exit 1; }; } ;;
14694
631ef239
AC
14695 *) ac_config_targets="$ac_config_targets $1"
14696 ac_need_defaults=false ;;
212380e3
AC
14697
14698 esac
14699 shift
14700done
14701
14702ac_configure_extra_args=
14703
14704if $ac_cs_silent; then
14705 exec 6>/dev/null
14706 ac_configure_extra_args="$ac_configure_extra_args --silent"
14707fi
14708
14709_ACEOF
14710cat >>$CONFIG_STATUS <<_ACEOF
14711if \$ac_cs_recheck; then
631ef239
AC
14712 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14713 CONFIG_SHELL=$SHELL
14714 export CONFIG_SHELL
14715 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
212380e3
AC
14716fi
14717
14718_ACEOF
631ef239
AC
14719cat >>$CONFIG_STATUS <<\_ACEOF
14720exec 5>>config.log
14721{
14722 echo
14723 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14724## Running $as_me. ##
14725_ASBOX
14726 echo "$ac_log"
14727} >&5
212380e3 14728
631ef239
AC
14729_ACEOF
14730cat >>$CONFIG_STATUS <<_ACEOF
14731_ACEOF
212380e3
AC
14732
14733cat >>$CONFIG_STATUS <<\_ACEOF
631ef239
AC
14734
14735# Handling of arguments.
212380e3
AC
14736for ac_config_target in $ac_config_targets
14737do
631ef239
AC
14738 case $ac_config_target in
14739 "include/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS include/setup.h" ;;
14740 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
631ef239
AC
14741 "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14742 "extensions/Makefile") CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
14743 "unsupported/Makefile") CONFIG_FILES="$CONFIG_FILES unsupported/Makefile" ;;
14744 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14745 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14746 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14747 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14748 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14749
212380e3
AC
14750 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14751echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14752 { (exit 1); exit 1; }; };;
14753 esac
14754done
14755
631ef239 14756
212380e3
AC
14757# If the user did not use the arguments to specify the items to instantiate,
14758# then the envvar interface is used. Set only those that are not.
14759# We use the long form for the default assignment because of an extremely
14760# bizarre bug on SunOS 4.1.3.
14761if $ac_need_defaults; then
14762 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14763 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14764fi
14765
14766# Have a temporary directory for convenience. Make it in the build tree
631ef239 14767# simply because there is no reason against having it here, and in addition,
212380e3 14768# creating and moving files from /tmp can sometimes cause problems.
631ef239
AC
14769# Hook for its removal unless debugging.
14770# Note that there is a small window in which the directory will not be cleaned:
14771# after its creation but before its name has been assigned to `$tmp'.
212380e3
AC
14772$debug ||
14773{
631ef239
AC
14774 tmp=
14775 trap 'exit_status=$?
14776 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14777' 0
212380e3
AC
14778 trap '{ (exit 1); exit 1; }' 1 2 13 15
14779}
212380e3
AC
14780# Create a (secure) tmp directory for tmp files.
14781
14782{
631ef239 14783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
212380e3
AC
14784 test -n "$tmp" && test -d "$tmp"
14785} ||
14786{
631ef239
AC
14787 tmp=./conf$$-$RANDOM
14788 (umask 077 && mkdir "$tmp")
212380e3
AC
14789} ||
14790{
14791 echo "$me: cannot create a temporary directory in ." >&2
14792 { (exit 1); exit 1; }
14793}
14794
212380e3 14795#
631ef239 14796# Set up the sed scripts for CONFIG_FILES section.
212380e3
AC
14797#
14798
14799# No need to generate the scripts if there are no CONFIG_FILES.
14800# This happens for instance when ./config.status config.h
631ef239
AC
14801if test -n "$CONFIG_FILES"; then
14802
14803_ACEOF
14804
14805
14806
14807ac_delim='%!_!# '
14808for ac_last_try in false false false false false :; do
14809 cat >conf$$subs.sed <<_ACEOF
14810SHELL!$SHELL$ac_delim
14811PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14812PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14813PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14814PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14815PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14816PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14817exec_prefix!$exec_prefix$ac_delim
14818prefix!$prefix$ac_delim
14819program_transform_name!$program_transform_name$ac_delim
14820bindir!$bindir$ac_delim
14821sbindir!$sbindir$ac_delim
14822libexecdir!$libexecdir$ac_delim
14823datarootdir!$datarootdir$ac_delim
14824datadir!$datadir$ac_delim
14825sysconfdir!$sysconfdir$ac_delim
14826sharedstatedir!$sharedstatedir$ac_delim
14827localstatedir!$localstatedir$ac_delim
14828includedir!$includedir$ac_delim
14829oldincludedir!$oldincludedir$ac_delim
14830docdir!$docdir$ac_delim
14831infodir!$infodir$ac_delim
14832htmldir!$htmldir$ac_delim
14833dvidir!$dvidir$ac_delim
14834pdfdir!$pdfdir$ac_delim
14835psdir!$psdir$ac_delim
14836libdir!$libdir$ac_delim
14837localedir!$localedir$ac_delim
14838mandir!$mandir$ac_delim
14839DEFS!$DEFS$ac_delim
14840ECHO_C!$ECHO_C$ac_delim
14841ECHO_N!$ECHO_N$ac_delim
14842ECHO_T!$ECHO_T$ac_delim
14843LIBS!$LIBS$ac_delim
14844build_alias!$build_alias$ac_delim
14845host_alias!$host_alias$ac_delim
14846target_alias!$target_alias$ac_delim
14847CC!$CC$ac_delim
14848CFLAGS!$CFLAGS$ac_delim
14849LDFLAGS!$LDFLAGS$ac_delim
14850CPPFLAGS!$CPPFLAGS$ac_delim
14851ac_ct_CC!$ac_ct_CC$ac_delim
14852EXEEXT!$EXEEXT$ac_delim
14853OBJEXT!$OBJEXT$ac_delim
b676ea3b 14854subdirs!$subdirs$ac_delim
631ef239
AC
14855MKDEP!$MKDEP$ac_delim
14856MAKEDEPEND!$MAKEDEPEND$ac_delim
14857STDOUT!$STDOUT$ac_delim
14858CPP!$CPP$ac_delim
14859GREP!$GREP$ac_delim
14860EGREP!$EGREP$ac_delim
14861SET_MAKE!$SET_MAKE$ac_delim
14862INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14863INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14864INSTALL_DATA!$INSTALL_DATA$ac_delim
14865RM!$RM$ac_delim
14866CP!$CP$ac_delim
14867MV!$MV$ac_delim
14868LN!$LN$ac_delim
14869SED!$SED$ac_delim
14870AR!$AR$ac_delim
14871LD!$LD$ac_delim
14872RANLIB!$RANLIB$ac_delim
14873TOUCH!$TOUCH$ac_delim
14874YACC!$YACC$ac_delim
14875YFLAGS!$YFLAGS$ac_delim
14876LEX!$LEX$ac_delim
14877LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
14878LEXLIB!$LEXLIB$ac_delim
14879CRYPT_LIB!$CRYPT_LIB$ac_delim
14880VICONF!$VICONF$ac_delim
14881ALLOCA!$ALLOCA$ac_delim
14882ENCSPEED!$ENCSPEED$ac_delim
14883ZLIB_LD!$ZLIB_LD$ac_delim
14884ETC_DIR!$ETC_DIR$ac_delim
14885confdir!$confdir$ac_delim
14886LOG_DIR!$LOG_DIR$ac_delim
14887logdir!$logdir$ac_delim
14888HELP_DIR!$HELP_DIR$ac_delim
14889helpdir!$helpdir$ac_delim
14890MODULE_DIR!$MODULE_DIR$ac_delim
14891moduledir!$moduledir$ac_delim
14892SELECT_TYPE!$SELECT_TYPE$ac_delim
631ef239
AC
14893MODULES_LIBS!$MODULES_LIBS$ac_delim
14894MOD_TARGET!$MOD_TARGET$ac_delim
14895SSL_SRCS_ENABLE!$SSL_SRCS_ENABLE$ac_delim
14896SSL_INCLUDES!$SSL_INCLUDES$ac_delim
14897SSL_LIBS!$SSL_LIBS$ac_delim
14898PICFLAGS!$PICFLAGS$ac_delim
14899IRC_CFLAGS!$IRC_CFLAGS$ac_delim
14900SEDOBJ!$SEDOBJ$ac_delim
14901LIBOBJS!$LIBOBJS$ac_delim
14902LTLIBOBJS!$LTLIBOBJS$ac_delim
14903_ACEOF
14904
b676ea3b 14905 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
631ef239
AC
14906 break
14907 elif $ac_last_try; then
14908 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14909echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14910 { (exit 1); exit 1; }; }
14911 else
14912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
212380e3 14913 fi
631ef239 14914done
212380e3 14915
631ef239
AC
14916ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14917if test -n "$ac_eof"; then
14918 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14919 ac_eof=`expr $ac_eof + 1`
14920fi
14921
14922cat >>$CONFIG_STATUS <<_ACEOF
14923cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14924/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14925_ACEOF
14926sed '
14927s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14928s/^/s,@/; s/!/@,|#_!!_#|/
14929:n
14930t n
14931s/'"$ac_delim"'$/,g/; t
14932s/$/\\/; p
14933N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14934' >>$CONFIG_STATUS <conf$$subs.sed
14935rm -f conf$$subs.sed
14936cat >>$CONFIG_STATUS <<_ACEOF
14937:end
14938s/|#_!!_#|//g
14939CEOF$ac_eof
212380e3 14940_ACEOF
631ef239
AC
14941
14942
14943# VPATH may cause trouble with some makes, so we remove $(srcdir),
14944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14945# trailing colons and then remove the whole line if VPATH becomes empty
14946# (actually we leave an empty line to preserve line numbers).
14947if test "x$srcdir" = x.; then
14948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14949s/:*\$(srcdir):*/:/
14950s/:*\${srcdir}:*/:/
14951s/:*@srcdir@:*/:/
14952s/^\([^=]*=[ ]*\):*/\1/
14953s/:*$//
14954s/^[^=]*=[ ]*$//
14955}'
14956fi
14957
212380e3 14958cat >>$CONFIG_STATUS <<\_ACEOF
631ef239
AC
14959fi # test -n "$CONFIG_FILES"
14960
14961
14962for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14963do
14964 case $ac_tag in
14965 :[FHLC]) ac_mode=$ac_tag; continue;;
14966 esac
14967 case $ac_mode$ac_tag in
14968 :[FHL]*:*);;
14969 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14970echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14971 { (exit 1); exit 1; }; };;
14972 :[FH]-) ac_tag=-:-;;
14973 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
212380e3 14974 esac
631ef239
AC
14975 ac_save_IFS=$IFS
14976 IFS=:
14977 set x $ac_tag
14978 IFS=$ac_save_IFS
14979 shift
14980 ac_file=$1
14981 shift
212380e3 14982
631ef239
AC
14983 case $ac_mode in
14984 :L) ac_source=$1;;
14985 :[FH])
14986 ac_file_inputs=
14987 for ac_f
14988 do
14989 case $ac_f in
14990 -) ac_f="$tmp/stdin";;
14991 *) # Look for the file first in the build tree, then in the source tree
14992 # (if the path is not absolute). The absolute path cannot be DOS-style,
14993 # because $ac_f cannot contain `:'.
14994 test -f "$ac_f" ||
14995 case $ac_f in
14996 [\\/$]*) false;;
14997 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14998 esac ||
14999 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15000echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15001 { (exit 1); exit 1; }; };;
15002 esac
15003 ac_file_inputs="$ac_file_inputs $ac_f"
15004 done
15005
15006 # Let's still pretend it is `configure' which instantiates (i.e., don't
15007 # use $as_me), people would be surprised to read:
15008 # /* config.h. Generated by config.status. */
15009 configure_input="Generated from "`IFS=:
15010 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15011 if test x"$ac_file" != x-; then
15012 configure_input="$ac_file. $configure_input"
15013 { echo "$as_me:$LINENO: creating $ac_file" >&5
15014echo "$as_me: creating $ac_file" >&6;}
15015 fi
15016
15017 case $ac_tag in
15018 *:-:* | *:-) cat >"$tmp/stdin";;
15019 esac
15020 ;;
15021 esac
15022
15023 ac_dir=`$as_dirname -- "$ac_file" ||
212380e3
AC
15024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15025 X"$ac_file" : 'X\(//\)[^/]' \| \
15026 X"$ac_file" : 'X\(//\)$' \| \
631ef239 15027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 15028echo X"$ac_file" |
631ef239
AC
15029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15030 s//\1/
15031 q
15032 }
15033 /^X\(\/\/\)[^/].*/{
15034 s//\1/
15035 q
15036 }
15037 /^X\(\/\/\)$/{
15038 s//\1/
15039 q
15040 }
15041 /^X\(\/\).*/{
15042 s//\1/
15043 q
15044 }
15045 s/.*/./; q'`
15046 { as_dir="$ac_dir"
15047 case $as_dir in #(
15048 -*) as_dir=./$as_dir;;
15049 esac
15050 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
212380e3 15051 as_dirs=
631ef239
AC
15052 while :; do
15053 case $as_dir in #(
15054 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15055 *) as_qdir=$as_dir;;
15056 esac
15057 as_dirs="'$as_qdir' $as_dirs"
15058 as_dir=`$as_dirname -- "$as_dir" ||
212380e3
AC
15059$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15060 X"$as_dir" : 'X\(//\)[^/]' \| \
15061 X"$as_dir" : 'X\(//\)$' \| \
631ef239 15062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
212380e3 15063echo X"$as_dir" |
631ef239
AC
15064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15065 s//\1/
15066 q
15067 }
15068 /^X\(\/\/\)[^/].*/{
15069 s//\1/
15070 q
15071 }
15072 /^X\(\/\/\)$/{
15073 s//\1/
15074 q
15075 }
15076 /^X\(\/\).*/{
15077 s//\1/
15078 q
15079 }
15080 s/.*/./; q'`
15081 test -d "$as_dir" && break
212380e3 15082 done
631ef239
AC
15083 test -z "$as_dirs" || eval "mkdir $as_dirs"
15084 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15085echo "$as_me: error: cannot create directory $as_dir" >&2;}
212380e3 15086 { (exit 1); exit 1; }; }; }
212380e3
AC
15087 ac_builddir=.
15088
631ef239
AC
15089case "$ac_dir" in
15090.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15091*)
212380e3 15092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
631ef239
AC
15093 # A ".." for each directory in $ac_dir_suffix.
15094 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15095 case $ac_top_builddir_sub in
15096 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15097 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15098 esac ;;
15099esac
15100ac_abs_top_builddir=$ac_pwd
15101ac_abs_builddir=$ac_pwd$ac_dir_suffix
15102# for backward compatibility:
15103ac_top_builddir=$ac_top_build_prefix
212380e3
AC
15104
15105case $srcdir in
631ef239 15106 .) # We are building in place.
212380e3 15107 ac_srcdir=.
631ef239
AC
15108 ac_top_srcdir=$ac_top_builddir_sub
15109 ac_abs_top_srcdir=$ac_pwd ;;
15110 [\\/]* | ?:[\\/]* ) # Absolute name.
212380e3 15111 ac_srcdir=$srcdir$ac_dir_suffix;
631ef239
AC
15112 ac_top_srcdir=$srcdir
15113 ac_abs_top_srcdir=$srcdir ;;
15114 *) # Relative name.
15115 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15116 ac_top_srcdir=$ac_top_build_prefix$srcdir
15117 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
212380e3 15118esac
631ef239 15119ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
212380e3 15120
212380e3 15121
631ef239
AC
15122 case $ac_mode in
15123 :F)
15124 #
15125 # CONFIG_FILE
15126 #
212380e3
AC
15127
15128 case $INSTALL in
15129 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
631ef239 15130 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
212380e3 15131 esac
631ef239 15132_ACEOF
212380e3 15133
631ef239
AC
15134cat >>$CONFIG_STATUS <<\_ACEOF
15135# If the template does not know about datarootdir, expand it.
15136# FIXME: This hack should be removed a few years after 2.60.
15137ac_datarootdir_hack=; ac_datarootdir_seen=
15138
15139case `sed -n '/datarootdir/ {
15140 p
15141 q
15142}
15143/@datadir@/p
15144/@docdir@/p
15145/@infodir@/p
15146/@localedir@/p
15147/@mandir@/p
15148' $ac_file_inputs` in
15149*datarootdir*) ac_datarootdir_seen=yes;;
15150*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15151 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15152echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15153_ACEOF
15154cat >>$CONFIG_STATUS <<_ACEOF
15155 ac_datarootdir_hack='
15156 s&@datadir@&$datadir&g
15157 s&@docdir@&$docdir&g
15158 s&@infodir@&$infodir&g
15159 s&@localedir@&$localedir&g
15160 s&@mandir@&$mandir&g
15161 s&\\\${datarootdir}&$datarootdir&g' ;;
15162esac
212380e3 15163_ACEOF
631ef239
AC
15164
15165# Neutralize VPATH when `$srcdir' = `.'.
15166# Shell code in configure.ac might set extrasub.
15167# FIXME: do we really want to maintain this feature?
212380e3
AC
15168cat >>$CONFIG_STATUS <<_ACEOF
15169 sed "$ac_vpsub
15170$extrasub
15171_ACEOF
15172cat >>$CONFIG_STATUS <<\_ACEOF
15173:t
15174/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
631ef239
AC
15175s&@configure_input@&$configure_input&;t t
15176s&@top_builddir@&$ac_top_builddir_sub&;t t
15177s&@srcdir@&$ac_srcdir&;t t
15178s&@abs_srcdir@&$ac_abs_srcdir&;t t
15179s&@top_srcdir@&$ac_top_srcdir&;t t
15180s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15181s&@builddir@&$ac_builddir&;t t
15182s&@abs_builddir@&$ac_abs_builddir&;t t
15183s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15184s&@INSTALL@&$ac_INSTALL&;t t
15185$ac_datarootdir_hack
15186" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
15187
15188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192which seems to be undefined. Please make sure it is defined." >&5
15193echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194which seems to be undefined. Please make sure it is defined." >&2;}
15195
15196 rm -f "$tmp/stdin"
212380e3 15197 case $ac_file in
631ef239
AC
15198 -) cat "$tmp/out"; rm -f "$tmp/out";;
15199 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
212380e3 15200 esac
631ef239
AC
15201 ;;
15202 :H)
15203 #
15204 # CONFIG_HEADER
15205 #
15206_ACEOF
15207
15208# Transform confdefs.h into a sed script `conftest.defines', that
15209# substitutes the proper values into config.h.in to produce config.h.
15210rm -f conftest.defines conftest.tail
15211# First, append a space to every undef/define line, to ease matching.
15212echo 's/$/ /' >conftest.defines
15213# Then, protect against being on the right side of a sed subst, or in
15214# an unquoted here document, in config.status. If some macros were
15215# called several times there might be several #defines for the same
15216# symbol, which is useless. But do not sort them, since the last
15217# AC_DEFINE must be honored.
15218ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15219# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
15220# NAME is the cpp macro being defined, VALUE is the value it is being given.
15221# PARAMS is the parameter list in the macro definition--in most cases, it's
15222# just an empty string.
15223ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
15224ac_dB='\\)[ (].*,\\1define\\2'
15225ac_dC=' '
15226ac_dD=' ,'
15227
15228uniq confdefs.h |
15229 sed -n '
15230 t rset
15231 :rset
15232 s/^[ ]*#[ ]*define[ ][ ]*//
15233 t ok
15234 d
15235 :ok
15236 s/[\\&,]/\\&/g
15237 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
15238 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
15239 ' >>conftest.defines
15240
15241# Remove the space that was appended to ease matching.
15242# Then replace #undef with comments. This is necessary, for
212380e3
AC
15243# example, in the case of _POSIX_SOURCE, which is predefined and required
15244# on some systems where configure will not decide to define it.
631ef239
AC
15245# (The regexp can be short, since the line contains either #define or #undef.)
15246echo 's/ $//
15247s,^[ #]*u.*,/* & */,' >>conftest.defines
15248
15249# Break up conftest.defines:
15250ac_max_sed_lines=50
15251
15252# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
15253# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
15254# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
15255# et cetera.
15256ac_in='$ac_file_inputs'
15257ac_out='"$tmp/out1"'
15258ac_nxt='"$tmp/out2"'
15259
15260while :
212380e3 15261do
631ef239
AC
15262 # Write a here document:
15263 cat >>$CONFIG_STATUS <<_ACEOF
15264 # First, check the format of the line:
15265 cat >"\$tmp/defines.sed" <<\\CEOF
15266/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
15267/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
15268b
15269:def
15270_ACEOF
15271 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
212380e3 15272 echo 'CEOF
631ef239
AC
15273 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
15274 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
15275 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
15276 grep . conftest.tail >/dev/null || break
212380e3
AC
15277 rm -f conftest.defines
15278 mv conftest.tail conftest.defines
15279done
631ef239 15280rm -f conftest.defines conftest.tail
212380e3 15281
631ef239 15282echo "ac_result=$ac_in" >>$CONFIG_STATUS
212380e3 15283cat >>$CONFIG_STATUS <<\_ACEOF
212380e3 15284 if test x"$ac_file" != x-; then
631ef239
AC
15285 echo "/* $configure_input */" >"$tmp/config.h"
15286 cat "$ac_result" >>"$tmp/config.h"
15287 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
212380e3
AC
15288 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15289echo "$as_me: $ac_file is unchanged" >&6;}
15290 else
212380e3 15291 rm -f $ac_file
631ef239 15292 mv "$tmp/config.h" $ac_file
212380e3
AC
15293 fi
15294 else
631ef239
AC
15295 echo "/* $configure_input */"
15296 cat "$ac_result"
212380e3 15297 fi
631ef239
AC
15298 rm -f "$tmp/out12"
15299 ;;
15300
15301
15302 esac
15303
15304done # for ac_tag
212380e3 15305
212380e3
AC
15306
15307{ (exit 0); exit 0; }
15308_ACEOF
15309chmod +x $CONFIG_STATUS
15310ac_clean_files=$ac_clean_files_save
15311
15312
15313# configure is writing to config.log, and then calls config.status.
15314# config.status does its own redirection, appending to config.log.
15315# Unfortunately, on DOS this fails, as config.log is still kept open
15316# by configure, so config.status won't be able to write to it; its
15317# output is simply discarded. So we exec the FD to /dev/null,
15318# effectively closing config.log, so it can be properly (re)opened and
15319# appended to by config.status. When coming back to configure, we
15320# need to make the FD available again.
15321if test "$no_create" != yes; then
15322 ac_cs_success=:
15323 ac_config_status_args=
15324 test "$silent" = yes &&
15325 ac_config_status_args="$ac_config_status_args --quiet"
15326 exec 5>/dev/null
15327 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15328 exec 5>>config.log
15329 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15330 # would make configure fail if this is the last instruction.
15331 $ac_cs_success || { (exit 1); exit 1; }
15332fi
15333
b676ea3b
AC
15334#
15335# CONFIG_SUBDIRS section.
15336#
15337if test "$no_recursion" != yes; then
15338
15339 # Remove --cache-file and --srcdir arguments so they do not pile up.
15340 ac_sub_configure_args=
15341 ac_prev=
15342 eval "set x $ac_configure_args"
15343 shift
15344 for ac_arg
15345 do
15346 if test -n "$ac_prev"; then
15347 ac_prev=
15348 continue
15349 fi
15350 case $ac_arg in
15351 -cache-file | --cache-file | --cache-fil | --cache-fi \
15352 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15353 ac_prev=cache_file ;;
15354 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15355 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15356 | --c=*)
15357 ;;
15358 --config-cache | -C)
15359 ;;
15360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15361 ac_prev=srcdir ;;
15362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15363 ;;
15364 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15365 ac_prev=prefix ;;
15366 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15367 ;;
15368 *)
15369 case $ac_arg in
15370 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15371 esac
15372 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
15373 esac
15374 done
15375
15376 # Always prepend --prefix to ensure using the same prefix
15377 # in subdir configurations.
15378 ac_arg="--prefix=$prefix"
15379 case $ac_arg in
15380 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15381 esac
15382 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15383
15384 # Pass --silent
15385 if test "$silent" = yes; then
15386 ac_sub_configure_args="--silent $ac_sub_configure_args"
15387 fi
15388
15389 ac_popdir=`pwd`
15390 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15391
15392 # Do not complain, so a configure script can configure whichever
15393 # parts of a large source tree are present.
15394 test -d "$srcdir/$ac_dir" || continue
15395
15396 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15397 echo "$as_me:$LINENO: $ac_msg" >&5
15398 echo "$ac_msg" >&6
15399 { as_dir="$ac_dir"
15400 case $as_dir in #(
15401 -*) as_dir=./$as_dir;;
15402 esac
15403 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15404 as_dirs=
15405 while :; do
15406 case $as_dir in #(
15407 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15408 *) as_qdir=$as_dir;;
15409 esac
15410 as_dirs="'$as_qdir' $as_dirs"
15411 as_dir=`$as_dirname -- "$as_dir" ||
15412$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15413 X"$as_dir" : 'X\(//\)[^/]' \| \
15414 X"$as_dir" : 'X\(//\)$' \| \
15415 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15416echo X"$as_dir" |
15417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15418 s//\1/
15419 q
15420 }
15421 /^X\(\/\/\)[^/].*/{
15422 s//\1/
15423 q
15424 }
15425 /^X\(\/\/\)$/{
15426 s//\1/
15427 q
15428 }
15429 /^X\(\/\).*/{
15430 s//\1/
15431 q
15432 }
15433 s/.*/./; q'`
15434 test -d "$as_dir" && break
15435 done
15436 test -z "$as_dirs" || eval "mkdir $as_dirs"
15437 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
15438echo "$as_me: error: cannot create directory $as_dir" >&2;}
15439 { (exit 1); exit 1; }; }; }
15440 ac_builddir=.
15441
15442case "$ac_dir" in
15443.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15444*)
15445 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15446 # A ".." for each directory in $ac_dir_suffix.
15447 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
15448 case $ac_top_builddir_sub in
15449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15451 esac ;;
15452esac
15453ac_abs_top_builddir=$ac_pwd
15454ac_abs_builddir=$ac_pwd$ac_dir_suffix
15455# for backward compatibility:
15456ac_top_builddir=$ac_top_build_prefix
15457
15458case $srcdir in
15459 .) # We are building in place.
15460 ac_srcdir=.
15461 ac_top_srcdir=$ac_top_builddir_sub
15462 ac_abs_top_srcdir=$ac_pwd ;;
15463 [\\/]* | ?:[\\/]* ) # Absolute name.
15464 ac_srcdir=$srcdir$ac_dir_suffix;
15465 ac_top_srcdir=$srcdir
15466 ac_abs_top_srcdir=$srcdir ;;
15467 *) # Relative name.
15468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15469 ac_top_srcdir=$ac_top_build_prefix$srcdir
15470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15471esac
15472ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15473
15474
15475 cd "$ac_dir"
15476
15477 # Check for guested configure; otherwise get Cygnus style configure.
15478 if test -f "$ac_srcdir/configure.gnu"; then
15479 ac_sub_configure=$ac_srcdir/configure.gnu
15480 elif test -f "$ac_srcdir/configure"; then
15481 ac_sub_configure=$ac_srcdir/configure
15482 elif test -f "$ac_srcdir/configure.in"; then
15483 # This should be Cygnus configure.
15484 ac_sub_configure=$ac_aux_dir/configure
15485 else
15486 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
15487echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15488 ac_sub_configure=
15489 fi
15490
15491 # The recursion is here.
15492 if test -n "$ac_sub_configure"; then
15493 # Make the cache file name correct relative to the subdirectory.
15494 case $cache_file in
15495 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15496 *) # Relative name.
15497 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15498 esac
15499
15500 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
15501echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15502 # The eval makes quoting arguments work.
15503 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15504 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15505 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
15506echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
15507 { (exit 1); exit 1; }; }
15508 fi
15509
15510 cd "$ac_popdir"
15511 done
15512fi
15513
212380e3
AC
15514
15515if test "$cf_openssl_version_ok" = yes; then
15516 openssl="yes"
15517else
15518 openssl="no"
15519fi
15520
15521if test "$shared_modules" = yes; then
15522 modules=shared
15523else
15524 modules=static
15525fi
15526
15527echo "
15528Configuration:
15529 Install directory : $prefix
15530
15531 Ziplinks : $zlib
15532 OpenSSL : $openssl
212380e3
AC
15533 IPv6 support : $have_v6
15534 Socket Engine : $SELECT_TYPE
15535 Small network : $small_net
15536 Block allocator : $balloc
212380e3
AC
15537
15538 Nickname length : $NICKLEN
15539 Topic length : $TOPICLEN
15540
15541Use make to compile Charybdis, then make install to install it.
15542"